CiscoTool_v1/netmiko_client/build/static/js/main.6cf9f33e.js

3 lines
1.5 MiB

/*! For license information please see main.6cf9f33e.js.LICENSE.txt */
!function(){var e={3361:function(e,t,n){"use strict";n.d(t,{Z:function(){return oe}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){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}(),i=Math.abs,o=String.fromCharCode,a=Object.assign;function l(e){return e.trim()}function s(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function f(e){return e.length}function h(e){return e.length}function p(e,t){return t.push(e),e}var v=1,m=1,g=0,y=0,b=0,_="";function w(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:v,column:m,length:a,return:""}}function S(e,t){return a(w("",null,null,"",null,null,0),e,{length:-e.length},t)}function x(){return b=y>0?u(_,--y):0,m--,10===b&&(m=1,v--),b}function C(){return b=y<g?u(_,y++):0,m++,10===b&&(m=1,v++),b}function k(){return u(_,y)}function E(){return y}function R(e,t){return d(_,e,t)}function O(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 v=m=1,g=f(_=e),y=0,[]}function T(e){return _="",e}function M(e){return l(R(y-1,I(91===e?e+2:40===e?e+1:e)))}function L(e){for(;(b=k())&&b<33;)C();return O(e)>2||O(b)>3?"":" "}function Z(e,t){for(;--t&&C()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return R(e,E()+(t<6&&32==k()&&32==C()))}function I(e){for(;C();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&I(b);break;case 40:41===e&&I(e);break;case 92:C()}return y}function D(e,t){for(;C()&&e+b!==57&&(e+b!==84||47!==k()););return"/*"+R(t,y-1)+"*"+o(47===e?e:C())}function j(e){for(;!O(k());)C();return R(e,y)}var A="-ms-",N="-moz-",F="-webkit-",z="comm",B="rule",H="decl",W="@import",U="@keyframes";function V(e,t){for(var n="",r=h(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function q(e,t,n,r){switch(e.type){case W:case H:return e.return=e.return||e.value;case z:return"";case U:return e.return=e.value+"{"+V(e.children,r)+"}";case B:e.value=e.props.join(",")}return f(n=V(e.children,r))?e.return=e.value+"{"+n+"}":""}function K(e){return T(Y("",null,null,null,[""],e=P(e),0,[0],e))}function Y(e,t,n,r,i,a,l,d,h){for(var v=0,m=0,g=l,y=0,b=0,_=0,w=1,S=1,R=1,O=0,P="",T=i,I=a,A=r,N=P;S;)switch(_=O,O=C()){case 40:if(108!=_&&58==u(N,g-1)){-1!=c(N+=s(M(O),"&","&\f"),"&\f")&&(R=-1);break}case 34:case 39:case 91:N+=M(O);break;case 9:case 10:case 13:case 32:N+=L(_);break;case 92:N+=Z(E()-1,7);continue;case 47:switch(k()){case 42:case 47:p(X(D(C(),E()),t,n),h);break;default:N+="/"}break;case 123*w:d[v++]=f(N)*R;case 125*w:case 59:case 0:switch(O){case 0:case 125:S=0;case 59+m:b>0&&f(N)-g&&p(b>32?$(N+";",r,n,g-1):$(s(N," ","")+";",r,n,g-2),h);break;case 59:N+=";";default:if(p(A=G(N,t,n,v,m,i,d,P,T=[],I=[],g),a),123===O)if(0===m)Y(N,t,A,A,T,a,g,d,I);else switch(99===y&&110===u(N,3)?100:y){case 100:case 109:case 115:Y(e,A,A,r&&p(G(e,A,A,0,0,i,d,P,i,T=[],g),I),i,I,g,d,r?T:I);break;default:Y(N,A,A,A,[""],I,0,d,I)}}v=m=b=0,w=R=1,P=N="",g=l;break;case 58:g=1+f(N),b=_;default:if(w<1)if(123==O)--w;else if(125==O&&0==w++&&125==x())continue;switch(N+=o(O),O*w){case 38:R=m>0?1:(N+="\f",-1);break;case 44:d[v++]=(f(N)-1)*R,R=1;break;case 64:45===k()&&(N+=M(C())),y=k(),m=g=f(P=N+=j(E())),O++;break;case 45:45===_&&2==f(N)&&(w=0)}}return a}function G(e,t,n,r,o,a,c,u,f,p,v){for(var m=o-1,g=0===o?a:[""],y=h(g),b=0,_=0,S=0;b<r;++b)for(var x=0,C=d(e,m+1,m=i(_=c[b])),k=e;x<y;++x)(k=l(_>0?g[x]+" "+C:s(C,/&\f/g,g[x])))&&(f[S++]=k);return w(e,t,n,0===o?B:u,f,p,v)}function X(e,t,n){return w(e,t,n,z,o(b),d(e,2,-2),0)}function $(e,t,n,r){return w(e,t,n,H,d(e,0,r),d(e,r+1,-1),r)}var J=function(e,t,n){for(var r=0,i=0;r=i,i=k(),38===r&&12===i&&(t[n]=1),!O(i);)C();return R(e,y)},Q=function(e,t){return T(function(e,t){var n=-1,r=44;do{switch(O(r)){case 0:38===r&&12===k()&&(t[n]=1),e[n]+=J(y-1,t,n);break;case 2:e[n]+=M(r);break;case 4:if(44===r){e[++n]=58===k()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}}while(r=C());return e}(P(e),t))},ee=new WeakMap,te=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ee.get(n))&&!r){ee.set(e,!0);for(var i=[],o=Q(t,i),a=n.props,l=0,s=0;l<o.length;l++)for(var c=0;c<a.length;c++,s++)e.props[s]=i[l]?o[l].replace(/&\f/g,a[c]):a[c]+" "+o[l]}}},ne=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 F+"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 F+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return F+e+N+e+A+e+e;case 6828:case 4268:return F+e+A+e+e;case 6165:return F+e+A+"flex-"+e+e;case 5187:return F+e+s(e,/(\w+).+(:[^]+)/,F+"box-$1$2"+A+"flex-$1$2")+e;case 5443:return F+e+A+"flex-item-"+s(e,/flex-|-self/,"")+e;case 4675:return F+e+A+"flex-line-pack"+s(e,/align-content|flex-|-self/,"")+e;case 5548:return F+e+A+s(e,"shrink","negative")+e;case 5292:return F+e+A+s(e,"basis","preferred-size")+e;case 6060:return F+"box-"+s(e,"-grow","")+F+e+A+s(e,"grow","positive")+e;case 4554:return F+s(e,/([^-])(transform)/g,"$1"+F+"$2")+e;case 6187:return s(s(s(e,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),e,"")+e;case 5495:case 3959:return s(e,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return s(s(e,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+A+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+F+e+e;case 4095:case 3583:case 4068:case 2532:return s(e,/(.+)-inline(.+)/,F+"$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(f(e)-1-t>6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return s(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+N+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?re(s(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,f(e)-3-(~c(e,"!important")&&10))){case 107:return s(e,":",":"+F)+e;case 101:return s(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+F+(45===u(e,14)?"inline-":"")+"box$3$1"+F+"$2$3$1"+A+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return F+e+A+s(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+A+s(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+A+s(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return F+e+A+e+e}return e}var ie=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case H:e.return=re(e.value,e.length);break;case U:return V([S(e,{value:s(e.value,"@","@"+F)})],r);case B: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 V([S(e,{props:[s(t,/:(read-\w+)/,":"+N+"$1")]})],r);case"::placeholder":return V([S(e,{props:[s(t,/:(plac\w+)/,":"+F+"input-$1")]}),S(e,{props:[s(t,/:(plac\w+)/,":"+N+"$1")]}),S(e,{props:[s(t,/:(plac\w+)/,A+"input-$1")]})],r)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i=e.stylisPlugins||ie;var o,a,l={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)l[t[n]]=!0;s.push(e)}));var c,u,d=[q,(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],f=function(e){var t=h(e);return function(n,r,i,o){for(var a="",l=0;l<t;l++)a+=e[l](n,r,i,o)||"";return a}}([te,ne].concat(i,d));a=function(e,t,n,r){c=n,V(K(e?e+"{"+t.styles+"}":t.styles),f),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new r({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:a};return p.sheet.hydrate(s),p}},9797:function(e,t){"use strict";t.Z=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},5011:function(e,t,n){"use strict";n.d(t,{T:function(){return c},a:function(){return d},w:function(){return s}});var r=n(2791),i=n(3361),o=n(7462),a=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},l=(n(9140),n(2561),(0,r.createContext)("undefined"!==typeof HTMLElement?(0,i.Z)({key:"css"}):null));l.Provider;var s=function(e){return(0,r.forwardRef)((function(t,n){var i=(0,r.useContext)(l);return e(t,i,n)}))},c=(0,r.createContext)({});var u=a((function(e){return a((function(t){return function(e,t){return"function"===typeof t?t(e):(0,o.Z)({},e,t)}(e,t)}))})),d=function(e){var t=(0,r.useContext)(c);return e.theme!==t&&(t=u(t)(e.theme)),(0,r.createElement)(c.Provider,{value:t},e.children)}},9140:function(e,t,n){"use strict";n.d(t,{O:function(){return v}});var r=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},i={animationIterationCount: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=n(9797),a=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!==typeof e},u=(0,o.Z)((function(e){return s(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(l,(function(e,t,n){return h={name:t,styles:n,next:h},t}))}return 1===i[e]||s(e)||"number"!==typeof t||0===t?t:t+"px"};function f(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return h={name:n.name,styles:n.styles,next:h},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)h={name:r.name,styles:r.styles,next:h},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=f(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!==typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":c(a)&&(r+=u(o)+":"+d(o,a)+";");else if(!Array.isArray(a)||"string"!==typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=f(e,t,a);switch(o){case"animation":case"animationName":r+=u(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var s=0;s<a.length;s++)c(a[s])&&(r+=u(o)+":"+d(o,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=h,o=n(e);return h=i,f(e,t,o)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var h,p=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var v=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i=!0,o="";h=void 0;var a=e[0];null==a||void 0===a.raw?(i=!1,o+=f(n,t,a)):o+=a[0];for(var l=1;l<e.length;l++)o+=f(n,t,e[l]),i&&(o+=a[l]);p.lastIndex=0;for(var s,c="";null!==(s=p.exec(o));)c+="-"+s[1];return{name:r(o)+c,styles:o,next:h}}},2561:function(e,t,n){"use strict";var r;n.d(t,{L:function(){return a},j:function(){return l}});var i=n(2791),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,a=o||function(e){return e()},l=o||i.useLayoutEffect},5438:function(e,t,n){"use strict";n.d(t,{My:function(){return o},fp:function(){return r},hC:function(){return i}});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0);o=o.next}while(void 0!==o)}}},8422:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var i=r(n(5649)),o=n(184),a=(0,i.default)((0,o.jsx)("path",{d:"M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 12.59L17.59 17 14 13.41 10.41 17 9 15.59 12.59 12 9 8.41 10.41 7 14 10.59 17.59 7 19 8.41 15.41 12 19 15.59z"}),"Backspace");t.Z=a},6488:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var i=r(n(5649)),o=n(184),a=(0,i.default)((0,o.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z"}),"Logout");t.Z=a},1499:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var i=r(n(5649)),o=n(184),a=(0,i.default)((0,o.jsx)("path",{d:"M13 3h-2v10h2V3zm4.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.83z"}),"PowerSettingsNew");t.Z=a},4666:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var i=r(n(5649)),o=n(184),a=(0,i.default)((0,o.jsx)("path",{d:"M20 4H4c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm0 14H4V8h16v10zm-2-1h-6v-2h6v2zM7.5 17l-1.41-1.41L8.67 13l-2.59-2.59L7.5 9l4 4-4 4z"}),"Terminal");t.Z=a},5649:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(4421)},6532:function(e,t){"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function g(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case l:case a:case f:case h:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case v:case p:case s:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference")},8457:function(e,t,n){"use strict";n(6532)},4591:function(e,t,n){"use strict";n.d(t,{Z:function(){return U}});var r=n(7462),i=n(3366),o=n(6189),a=n(2466),l=n(5080),s=n(7416),c=n(104),u=n(4942);function d(e,t){var n;return(0,r.Z)({toolbar:(n={minHeight:56},(0,u.Z)(n,e.up("xs"),{"@media (orientation: landscape)":{minHeight:48}}),(0,u.Z)(n,e.up("sm"),{minHeight:64}),n)},t)}var f=n(2065),h={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"},v={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"},g={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"},y={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"},b={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"},_={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"},w=["mode","contrastThreshold","tonalOffset"],S={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:h.white,default:h.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}},x={text:{primary:h.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:h.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 C(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,f.$n)(e.main,i):"dark"===t&&(e.dark=(0,f._j)(e.main,o)))}function k(e){var t=e.mode,n=void 0===t?"light":t,l=e.contrastThreshold,s=void 0===l?3:l,c=e.tonalOffset,u=void 0===c?.2:c,d=(0,i.Z)(e,w),k=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y[200],light:y[50],dark:y[400]}:{main:y[700],light:y[400],dark:y[800]}}(n),E=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[200],light:v[50],dark:v[400]}:{main:v[500],light:v[300],dark:v[700]}}(n),R=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]}}(n),O=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:b[400],light:b[300],dark:b[700]}:{main:b[700],light:b[500],dark:b[900]}}(n),P=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:_[400],light:_[300],dark:_[700]}:{main:_[800],light:_[500],dark:_[900]}}(n),T=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[400],light:g[300],dark:g[700]}:{main:"#ed6c02",light:g[500],dark:g[900]}}(n);function M(e){return(0,f.mi)(e,x.text.primary)>=s?x.text.primary:S.text.primary}var L=function(e){var t=e.color,n=e.name,i=e.mainShade,a=void 0===i?500:i,l=e.lightShade,s=void 0===l?300:l,c=e.darkShade,d=void 0===c?700:c;if(!(t=(0,r.Z)({},t)).main&&t[a]&&(t.main=t[a]),!t.hasOwnProperty("main"))throw new Error((0,o.Z)(11,n?" (".concat(n,")"):"",a));if("string"!==typeof t.main)throw new Error((0,o.Z)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return C(t,"light",s,u),C(t,"dark",d,u),t.contrastText||(t.contrastText=M(t.main)),t},Z={dark:x,light:S};return(0,a.Z)((0,r.Z)({common:(0,r.Z)({},h),mode:n,primary:L({color:k,name:"primary"}),secondary:L({color:E,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:L({color:R,name:"error"}),warning:L({color:T,name:"warning"}),info:L({color:O,name:"info"}),success:L({color:P,name:"success"}),grey:p,contrastThreshold:s,getContrastText:M,augmentColor:L,tonalOffset:u},Z[n]),d)}var E=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];var R={textTransform:"uppercase"},O='"Roboto", "Helvetica", "Arial", sans-serif';function P(e,t){var n="function"===typeof t?t(e):t,o=n.fontFamily,l=void 0===o?O:o,s=n.fontSize,c=void 0===s?14:s,u=n.fontWeightLight,d=void 0===u?300:u,f=n.fontWeightRegular,h=void 0===f?400:f,p=n.fontWeightMedium,v=void 0===p?500:p,m=n.fontWeightBold,g=void 0===m?700:m,y=n.htmlFontSize,b=void 0===y?16:y,_=n.allVariants,w=n.pxToRem,S=(0,i.Z)(n,E);var x=c/14,C=w||function(e){return"".concat(e/b*x,"rem")},k=function(e,t,n,i,o){return(0,r.Z)({fontFamily:l,fontWeight:e,fontSize:C(t),lineHeight:n},l===O?{letterSpacing:"".concat((a=i/t,Math.round(1e5*a)/1e5),"em")}:{},o,_);var a},P={h1:k(d,96,1.167,-1.5),h2:k(d,60,1.2,-.5),h3:k(h,48,1.167,0),h4:k(h,34,1.235,.25),h5:k(h,24,1.334,0),h6:k(v,20,1.6,.15),subtitle1:k(h,16,1.75,.15),subtitle2:k(v,14,1.57,.1),body1:k(h,16,1.5,.15),body2:k(h,14,1.43,.15),button:k(v,14,1.75,.4,R),caption:k(h,12,1.66,.4),overline:k(h,12,2.66,1,R)};return(0,a.Z)((0,r.Z)({htmlFontSize:b,pxToRem:C,fontFamily:l,fontSize:c,fontWeightLight:d,fontWeightRegular:h,fontWeightMedium:v,fontWeightBold:g},P),S,{clone:!1})}var T=.2,M=.14,L=.12;function Z(){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(T,")"),"".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(M,")"),"".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(L,")")].join(",")}var I=["none",Z(0,2,1,-1,0,1,1,0,0,1,3,0),Z(0,3,1,-2,0,2,2,0,0,1,5,0),Z(0,3,3,-2,0,3,4,0,0,1,8,0),Z(0,2,4,-1,0,4,5,0,0,1,10,0),Z(0,3,5,-1,0,5,8,0,0,1,14,0),Z(0,3,5,-1,0,6,10,0,0,1,18,0),Z(0,4,5,-2,0,7,10,1,0,2,16,1),Z(0,5,5,-3,0,8,10,1,0,3,14,2),Z(0,5,6,-3,0,9,12,1,0,3,16,2),Z(0,6,6,-3,0,10,14,1,0,4,18,3),Z(0,6,7,-4,0,11,15,1,0,4,20,3),Z(0,7,8,-4,0,12,17,2,0,5,22,4),Z(0,7,8,-4,0,13,19,2,0,5,24,4),Z(0,7,9,-4,0,14,21,2,0,5,26,4),Z(0,8,9,-5,0,15,22,2,0,6,28,5),Z(0,8,10,-5,0,16,24,2,0,6,30,5),Z(0,8,11,-5,0,17,26,2,0,6,32,5),Z(0,9,11,-5,0,18,28,2,0,7,34,6),Z(0,9,12,-6,0,19,29,2,0,7,36,6),Z(0,10,13,-6,0,20,31,3,0,8,38,7),Z(0,10,13,-6,0,21,33,3,0,8,40,7),Z(0,10,14,-6,0,22,35,3,0,8,42,7),Z(0,11,14,-7,0,23,36,3,0,9,44,8),Z(0,11,15,-7,0,24,38,3,0,9,46,8)],D=["duration","easing","delay"],j={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 N(e){return"".concat(Math.round(e),"ms")}function F(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}function z(e){var t=(0,r.Z)({},j,e.easing),n=(0,r.Z)({},A,e.duration);return(0,r.Z)({getAutoHeightDuration:F,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.duration,a=void 0===o?n.standard:o,l=r.easing,s=void 0===l?t.easeInOut:l,c=r.delay,u=void 0===c?0:c;(0,i.Z)(r,D);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof a?a:N(a)," ").concat(s," ").concat("string"===typeof u?u:N(u))})).join(",")}},e,{easing:t,duration:n})}var B={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},H=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function W(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mixins,n=void 0===t?{}:t,u=e.palette,f=void 0===u?{}:u,h=e.transitions,p=void 0===h?{}:h,v=e.typography,m=void 0===v?{}:v,g=(0,i.Z)(e,H);if(e.vars)throw new Error((0,o.Z)(18));var y=k(f),b=(0,l.Z)(e),_=(0,a.Z)(b,{mixins:d(b.breakpoints,n),palette:y,shadows:I.slice(),typography:P(y,m),transitions:z(p),zIndex:(0,r.Z)({},B)});_=(0,a.Z)(_,g);for(var w=arguments.length,S=new Array(w>1?w-1:0),x=1;x<w;x++)S[x-1]=arguments[x];return(_=S.reduce((function(e,t){return(0,a.Z)(e,t)}),_)).unstable_sxConfig=(0,r.Z)({},s.Z,null==g?void 0:g.unstable_sxConfig),_.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},_}var U=W()},4923:function(e,t,n){"use strict";n.d(t,{ZP:function(){return W},FO:function(){return z},Dz:function(){return B}});var r=n(3433),i=n(9439),o=n(3366),a=n(7462),l=n(2791),s=n(9797),c=/^((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)-.*))$/,u=(0,s.Z)((function(e){return c.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),d=n(5011),f=n(5438),h=n(9140),p=n(2561),v=u,m=function(e){return"theme"!==e},g=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?v:m},y=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},b=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;(0,f.hC)(t,n,r);(0,p.L)((function(){return(0,f.My)(t,n,r)}));return null},_=function e(t,n){var r,i,o=t.__emotion_real===t,s=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var c=y(t,n,o),u=c||g(s),p=!u("as");return function(){var v=arguments,m=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&m.push("label:"+r+";"),null==v[0]||void 0===v[0].raw)m.push.apply(m,v);else{0,m.push(v[0][0]);for(var _=v.length,w=1;w<_;w++)m.push(v[w],v[0][w])}var S=(0,d.w)((function(e,t,n){var r=p&&e.as||s,o="",a=[],v=e;if(null==e.theme){for(var y in v={},e)v[y]=e[y];v.theme=(0,l.useContext)(d.T)}"string"===typeof e.className?o=(0,f.fp)(t.registered,a,e.className):null!=e.className&&(o=e.className+" ");var _=(0,h.O)(m.concat(a),t.registered,v);o+=t.key+"-"+_.name,void 0!==i&&(o+=" "+i);var w=p&&void 0===c?g(r):u,S={};for(var x in e)p&&"as"===x||w(x)&&(S[x]=e[x]);return S.className=o,S.ref=n,(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b,{cache:t,serialized:_,isStringTag:"string"===typeof r}),(0,l.createElement)(r,S))}));return S.displayName=void 0!==r?r:"Styled("+("string"===typeof s?s:s.displayName||s.name||"Component")+")",S.defaultProps=t.defaultProps,S.__emotion_real=S,S.__emotion_base=s,S.__emotion_styles=m,S.__emotion_forwardProp=c,Object.defineProperty(S,"toString",{value:function(){return"."+i}}),S.withComponent=function(t,r){return e(t,(0,a.Z)({},n,r,{shouldForwardProp:y(S,r,!0)})).apply(void 0,m)},S}},w=_.bind();["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){w[e]=w(e)}));var S=w;var x=function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},C=n(5080),k=n(1122),E=["variant"];function R(e){return 0===e.length}function O(e){var t=e.variant,n=(0,o.Z)(e,E),r=t||"";return Object.keys(n).sort().forEach((function(t){r+="color"===t?R(r)?e[t]:(0,k.Z)(e[t]):"".concat(R(r)?t:(0,k.Z)(t)).concat((0,k.Z)(e[t].toString()))})),r}var P=n(104),T=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],M=["theme"],L=["theme"];function Z(e){return 0===Object.keys(e).length}var I=function(e,t){return t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null},D=function(e,t){var n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);var r={};return n.forEach((function(e){var t=O(e.props);r[t]=e.style})),r},j=function(e,t,n,r){var i,o,a=e.ownerState,l=void 0===a?{}:a,s=[],c=null==n||null==(i=n.components)||null==(o=i[r])?void 0:o.variants;return c&&c.forEach((function(n){var r=!0;Object.keys(n.props).forEach((function(t){l[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&s.push(t[O(n.props)])})),s};function A(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var N=(0,C.Z)();var F=n(4591),z=function(e){return A(e)&&"classes"!==e},B=A,H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultTheme,n=void 0===t?N:t,l=e.rootShouldForwardProp,s=void 0===l?A:l,c=e.slotShouldForwardProp,u=void 0===c?A:c,d=function(e){var t=Z(e.theme)?n:e.theme;return(0,P.Z)((0,a.Z)({},e,{theme:t}))};return d.__mui_systemSx=!0,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};x(e,(function(e){return e.filter((function(e){return!(null!=e&&e.__mui_systemSx)}))}));var l=t.name,c=t.slot,f=t.skipVariantsResolver,h=t.skipSx,p=t.overridesResolver,v=(0,o.Z)(t,T),m=void 0!==f?f:c&&"Root"!==c||!1,g=h||!1;var y=A;"Root"===c?y=s:c?y=u:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(y=void 0);var b=function(e,t){return S(e,t)}(e,(0,a.Z)({shouldForwardProp:y,label:undefined},v)),_=function(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),c=1;c<t;c++)s[c-1]=arguments[c];var u=s?s.map((function(e){return"function"===typeof e&&e.__emotion_real!==e?function(t){var r=t.theme,i=(0,o.Z)(t,M);return e((0,a.Z)({theme:Z(r)?n:r},i))}:e})):[],f=e;l&&p&&u.push((function(e){var t=Z(e.theme)?n:e.theme,r=I(l,t);if(r){var o={};return Object.entries(r).forEach((function(n){var r=(0,i.Z)(n,2),l=r[0],s=r[1];o[l]="function"===typeof s?s((0,a.Z)({},e,{theme:t})):s})),p(e,o)}return null})),l&&!m&&u.push((function(e){var t=Z(e.theme)?n:e.theme;return j(e,D(l,t),t,l)})),g||u.push(d);var h=u.length-s.length;if(Array.isArray(e)&&h>0){var v=new Array(h).fill("");(f=[].concat((0,r.Z)(e),(0,r.Z)(v))).raw=[].concat((0,r.Z)(e.raw),(0,r.Z)(v))}else"function"===typeof e&&e.__emotion_real!==e&&(f=function(t){var r=t.theme,i=(0,o.Z)(t,L);return e((0,a.Z)({theme:Z(r)?n:r},i))});return b.apply(void 0,[f].concat((0,r.Z)(u)))};return b.withConfig&&(_.withConfig=b.withConfig),_}}({defaultTheme:F.Z,rootShouldForwardProp:z}),W=H},1046:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(5735);var i=n(418);function o(e){var t=e.props,n=e.name,o=e.defaultTheme,a=function(e){var t=e.theme,n=e.name,i=e.props;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.Z)(t.components[n].defaultProps,i):i}({theme:(0,i.Z)(o),name:n,props:t});return a}var a=n(4591);function l(e){return o({props:e.props,name:e.name,defaultTheme:a.Z})}},4036:function(e,t,n){"use strict";var r=n(1122);t.Z=r.Z},9201:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(7462),i=n(2791),o=n(3366),a=n(8182),l=n(4419),s=n(4036),c=n(1046),u=n(4923),d=n(5878),f=n(1217);function h(e){return(0,f.Z)("MuiSvgIcon",e)}(0,d.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var p=n(184),v=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],m=(0,u.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"inherit"!==n.color&&t["color".concat((0,s.Z)(n.color))],t["fontSize".concat((0,s.Z)(n.fontSize))]]}})((function(e){var t,n,r,i,o,a,l,s,c,u,d,f,h,p,v,m,g,y=e.theme,b=e.ownerState;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(t=y.transitions)||null==(n=t.create)?void 0:n.call(t,"fill",{duration:null==(r=y.transitions)||null==(i=r.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(o=y.typography)||null==(a=o.pxToRem)?void 0:a.call(o,20))||"1.25rem",medium:(null==(l=y.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(c=y.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[b.fontSize],color:null!=(d=null==(f=(y.vars||y).palette)||null==(h=f[b.color])?void 0:h.main)?d:{action:null==(p=(y.vars||y).palette)||null==(v=p.action)?void 0:v.active,disabled:null==(m=(y.vars||y).palette)||null==(g=m.action)?void 0:g.disabled,inherit:void 0}[b.color]}})),g=i.forwardRef((function(e,t){var n=(0,c.Z)({props:e,name:"MuiSvgIcon"}),i=n.children,u=n.className,d=n.color,f=void 0===d?"inherit":d,g=n.component,y=void 0===g?"svg":g,b=n.fontSize,_=void 0===b?"medium":b,w=n.htmlColor,S=n.inheritViewBox,x=void 0!==S&&S,C=n.titleAccess,k=n.viewBox,E=void 0===k?"0 0 24 24":k,R=(0,o.Z)(n,v),O=(0,r.Z)({},n,{color:f,component:y,fontSize:_,instanceFontSize:e.fontSize,inheritViewBox:x,viewBox:E}),P={};x||(P.viewBox=E);var T=function(e){var t=e.color,n=e.fontSize,r=e.classes,i={root:["root","inherit"!==t&&"color".concat((0,s.Z)(t)),"fontSize".concat((0,s.Z)(n))]};return(0,l.Z)(i,h,r)}(O);return(0,p.jsxs)(m,(0,r.Z)({as:y,className:(0,a.Z)(T.root,u),focusable:"false",color:w,"aria-hidden":!C||void 0,role:C?"img":void 0,ref:t},P,R,{ownerState:O,children:[i,C?(0,p.jsx)("title",{children:C}):null]}))}));g.muiName="SvgIcon";var y=g;function b(e,t){function n(n,i){return(0,p.jsx)(y,(0,r.Z)({"data-testid":"".concat(t,"Icon"),ref:i},n,{children:e}))}return n.muiName=y.muiName,i.memo(i.forwardRef(n))}},3199:function(e,t,n){"use strict";var r=n(2254);t.Z=r.Z},4421:function(e,t,n){"use strict";n.r(t),n.d(t,{capitalize:function(){return i.Z},createChainedFunction:function(){return o},createSvgIcon:function(){return a.Z},debounce:function(){return l.Z},deprecatedPropType:function(){return s},isMuiElement:function(){return c.Z},ownerDocument:function(){return u.Z},ownerWindow:function(){return d.Z},requirePropFactory:function(){return f},setRef:function(){return h},unstable_ClassNameGenerator:function(){return w},unstable_useEnhancedEffect:function(){return p.Z},unstable_useId:function(){return v.Z},unsupportedProp:function(){return m},useControlled:function(){return g.Z},useEventCallback:function(){return y.Z},useForkRef:function(){return b.Z},useIsFocusVisible:function(){return _.Z}});var r=n(5902),i=n(4036),o=n(8949).Z,a=n(9201),l=n(3199);var s=function(e,t){return function(){return null}},c=n(9103),u=n(8301),d=n(7602);n(7462);var f=function(e,t){return function(){return null}},h=n(2971).Z,p=n(162),v=n(7384);var m=function(e,t,n,r,i){return null},g=n(8278),y=n(9683),b=n(2071),_=n(3031),w={configure:function(e){r.Z.configure(e)}}},9103:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(2791);var i=function(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},8301:function(e,t,n){"use strict";var r=n(4913);t.Z=r.Z},7602:function(e,t,n){"use strict";var r=n(5202);t.Z=r.Z},8278:function(e,t,n){"use strict";var r=n(8637);t.Z=r.Z},162:function(e,t,n){"use strict";var r=n(2876);t.Z=r.Z},9683:function(e,t,n){"use strict";var r=n(7054);t.Z=r.Z},2071:function(e,t,n){"use strict";var r=n(6117);t.Z=r.Z},7384:function(e,t,n){"use strict";var r=n(8252);t.Z=r.Z},3031:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r,i=n(2791),o=!0,a=!1,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 s(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function c(){o=!1}function u(){"hidden"===this.visibilityState&&a&&(o=!0)}function d(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return o||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}var f=function(){var e=i.useCallback((function(e){var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",s,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",u,!0))}),[]),t=i.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!d(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,window.clearTimeout(r),r=window.setTimeout((function(){a=!1}),100),t.current=!1,!0)},ref:e}}},1184:function(e,t,n){"use strict";n.d(t,{L7:function(){return l},VO:function(){return r},W8:function(){return a},k9:function(){return o}});var r={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(r[e],"px)")}};function o(e,t,n){var o=e.theme||{};if(Array.isArray(t)){var a=o.breakpoints||i;return t.reduce((function(e,r,i){return e[a.up(a.keys[i])]=n(t[i]),e}),{})}if("object"===typeof t){var l=o.breakpoints||i;return Object.keys(t).reduce((function(e,i){if(-1!==Object.keys(l.values||r).indexOf(i)){e[l.up(i)]=n(t[i],i)}else{var o=i;e[o]=t[o]}return e}),{})}return n(t)}function a(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(null==(e=t.keys)?void 0:e.reduce((function(e,n){return e[t.up(n)]={},e}),{}))||{}}function l(e,t){return e.reduce((function(e,t){var n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}},2065:function(e,t,n){"use strict";n.d(t,{$n:function(){return d},Fq:function(){return c},_j:function(){return u},mi:function(){return s}});var r=n(6189);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function o(e){if(e.type)return e;if("#"===e.charAt(0))return o(function(e){e=e.slice(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.Z)(9,e));var i,a=e.substring(t+1,e.length-1);if("color"===n){if(i=(a=a.split(" ")).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(i))throw new Error((0,r.Z)(10,i))}else a=a.split(",");return{type:n,values:a=a.map((function(e){return parseFloat(e)})),colorSpace:i}}function a(e){var t=e.type,n=e.colorSpace,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),r=-1!==t.indexOf("color")?"".concat(n," ").concat(r.join(" ")):"".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function l(e){var t="hsl"===(e=o(e)).type||"hsla"===e.type?o(function(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,l=r*Math.min(i,1-i),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-l*Math.max(Math.min(t-3,9-t,1),-1)},c="rgb",u=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),a({type:c,values:u})}(e)).values:e.values;return t=t.map((function(t){return"color"!==e.type&&(t/=255),t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function s(e,t){var n=l(e),r=l(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function c(e,t){return e=o(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,a(e)}function u(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function d(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(var r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return a(e)}},5080:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(7462),i=n(3366),o=n(2466),a=n(4942),l=["values","unit","step"],s=function(e){var t=Object.keys(e).map((function(t){return{key:t,val:e[t]}}))||[];return t.sort((function(e,t){return e.val-t.val})),t.reduce((function(e,t){return(0,r.Z)({},e,(0,a.Z)({},t.key,t.val))}),{})};var c={borderRadius:4},u=n(5682);var d=n(104),f=n(7416),h=["breakpoints","palette","spacing","shape"];var p=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,a=e.palette,p=void 0===a?{}:a,v=e.spacing,m=e.shape,g=void 0===m?{}:m,y=(0,i.Z)(e,h),b=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:900,lg:1200,xl:1536}:t,o=e.unit,a=void 0===o?"px":o,c=e.step,u=void 0===c?5:c,d=(0,i.Z)(e,l),f=s(n),h=Object.keys(f);function p(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(a,")")}function v(e){var t="number"===typeof n[e]?n[e]:e;return"@media (max-width:".concat(t-u/100).concat(a,")")}function m(e,t){var r=h.indexOf(t);return"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(a,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[h[r]]?n[h[r]]:t)-u/100).concat(a,")")}return(0,r.Z)({keys:h,values:f,up:p,down:v,between:m,only:function(e){return h.indexOf(e)+1<h.length?m(e,h[h.indexOf(e)+1]):p(e)},not:function(e){var t=h.indexOf(e);return 0===t?p(h[1]):t===h.length-1?v(h[t]):m(e,h[h.indexOf(e)+1]).replace("@media","@media not all and")},unit:a},d)}(n),_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,u.hB)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0===n.length?[1]:n).map((function(e){var n=t(e);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return n.mui=!0,n}(v),w=(0,o.Z)({breakpoints:b,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},p),spacing:_,shape:(0,r.Z)({},c,g)},y),S=arguments.length,x=new Array(S>1?S-1:0),C=1;C<S;C++)x[C-1]=arguments[C];return(w=x.reduce((function(e,t){return(0,o.Z)(e,t)}),w)).unstable_sxConfig=(0,r.Z)({},f.Z,null==y?void 0:y.unstable_sxConfig),w.unstable_sx=function(e){return(0,d.Z)({sx:e,theme:this})},w}},8247:function(e,t,n){"use strict";var r=n(2466);t.Z=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},5682:function(e,t,n){"use strict";n.d(t,{hB:function(){return v},eI:function(){return p},NA:function(){return m},e6:function(){return b},o3:function(){return _}});var r=n(9439),i=n(1184),o=n(8529),a=n(8247);var l={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},c={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},u=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!c[e])return[e];e=c[e]}var t=e.split(""),n=(0,r.Z)(t,2),i=n[0],o=n[1],a=l[i],u=s[o]||"";return Array.isArray(u)?u.map((function(e){return a+e})):[a+u]})),d=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],f=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],h=[].concat(d,f);function p(e,t,n,r){var i,a=null!=(i=(0,o.DW)(e,t,!1))?i:n;return"number"===typeof a?function(e){return"string"===typeof e?e:a*e}:Array.isArray(a)?function(e){return"string"===typeof e?e:a[e]}:"function"===typeof a?a:function(){}}function v(e){return p(e,"spacing",8)}function m(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}function g(e,t,n,r){if(-1===t.indexOf(n))return null;var o=function(e,t){return function(n){return e.reduce((function(e,r){return e[r]=m(t,n),e}),{})}}(u(n),r),a=e[n];return(0,i.k9)(e,a,o)}function y(e,t){var n=v(e.theme);return Object.keys(e).map((function(r){return g(e,t,r,n)})).reduce(a.Z,{})}function b(e){return y(e,d)}function _(e){return y(e,f)}function w(e){return y(e,h)}b.propTypes={},b.filterProps=d,_.propTypes={},_.filterProps=f,w.propTypes={},w.filterProps=h},8529:function(e,t,n){"use strict";n.d(t,{DW:function(){return a},Jq:function(){return l}});var r=n(4942),i=n(1122),o=n(1184);function a(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){var r="vars.".concat(t).split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e);if(null!=r)return r}return t.split(".").reduce((function(e,t){return e&&null!=e[t]?e[t]:null}),e)}function l(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||i:a(e,n)||i,t&&(r=t(r,i,e)),r}t.ZP=function(e){var t=e.prop,n=e.cssProperty,s=void 0===n?e.prop:n,c=e.themeKey,u=e.transform,d=function(e){if(null==e[t])return null;var n=e[t],d=a(e.theme,c)||{};return(0,o.k9)(e,n,(function(e){var n=l(d,u,e);return e===n&&"string"===typeof e&&(n=l(d,u,"".concat(t).concat("default"===e?"":(0,i.Z)(e)),e)),!1===s?n:(0,r.Z)({},s,n)}))};return d.propTypes={},d.filterProps=[t],d}},7416:function(e,t,n){"use strict";n.d(t,{Z:function(){return M}});var r=n(5682),i=n(8529),o=n(8247);var a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce((function(e,t){return t.filterProps.forEach((function(n){e[n]=t})),e}),{}),i=function(e){return Object.keys(e).reduce((function(t,n){return r[n]?(0,o.Z)(t,r[n](e)):t}),{})};return i.propTypes={},i.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),i},l=n(1184);function s(e){return"number"!==typeof e?e:"".concat(e,"px solid")}var c=(0,i.ZP)({prop:"border",themeKey:"borders",transform:s}),u=(0,i.ZP)({prop:"borderTop",themeKey:"borders",transform:s}),d=(0,i.ZP)({prop:"borderRight",themeKey:"borders",transform:s}),f=(0,i.ZP)({prop:"borderBottom",themeKey:"borders",transform:s}),h=(0,i.ZP)({prop:"borderLeft",themeKey:"borders",transform:s}),p=(0,i.ZP)({prop:"borderColor",themeKey:"palette"}),v=(0,i.ZP)({prop:"borderTopColor",themeKey:"palette"}),m=(0,i.ZP)({prop:"borderRightColor",themeKey:"palette"}),g=(0,i.ZP)({prop:"borderBottomColor",themeKey:"palette"}),y=(0,i.ZP)({prop:"borderLeftColor",themeKey:"palette"}),b=function(e){if(void 0!==e.borderRadius&&null!==e.borderRadius){var t=(0,r.eI)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,l.k9)(e,e.borderRadius,(function(e){return{borderRadius:(0,r.NA)(t,e)}}))}return null};b.propTypes={},b.filterProps=["borderRadius"];a(c,u,d,f,h,p,v,m,g,y,b);var _=function(e){if(void 0!==e.gap&&null!==e.gap){var t=(0,r.eI)(e.theme,"spacing",8,"gap");return(0,l.k9)(e,e.gap,(function(e){return{gap:(0,r.NA)(t,e)}}))}return null};_.propTypes={},_.filterProps=["gap"];var w=function(e){if(void 0!==e.columnGap&&null!==e.columnGap){var t=(0,r.eI)(e.theme,"spacing",8,"columnGap");return(0,l.k9)(e,e.columnGap,(function(e){return{columnGap:(0,r.NA)(t,e)}}))}return null};w.propTypes={},w.filterProps=["columnGap"];var S=function(e){if(void 0!==e.rowGap&&null!==e.rowGap){var t=(0,r.eI)(e.theme,"spacing",8,"rowGap");return(0,l.k9)(e,e.rowGap,(function(e){return{rowGap:(0,r.NA)(t,e)}}))}return null};S.propTypes={},S.filterProps=["rowGap"];a(_,w,S,(0,i.ZP)({prop:"gridColumn"}),(0,i.ZP)({prop:"gridRow"}),(0,i.ZP)({prop:"gridAutoFlow"}),(0,i.ZP)({prop:"gridAutoColumns"}),(0,i.ZP)({prop:"gridAutoRows"}),(0,i.ZP)({prop:"gridTemplateColumns"}),(0,i.ZP)({prop:"gridTemplateRows"}),(0,i.ZP)({prop:"gridTemplateAreas"}),(0,i.ZP)({prop:"gridArea"}));function x(e,t){return"grey"===t?t:e}a((0,i.ZP)({prop:"color",themeKey:"palette",transform:x}),(0,i.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:x}),(0,i.ZP)({prop:"backgroundColor",themeKey:"palette",transform:x}));function C(e){return e<=1&&0!==e?"".concat(100*e,"%"):e}var k=(0,i.ZP)({prop:"width",transform:C}),E=function(e){if(void 0!==e.maxWidth&&null!==e.maxWidth){return(0,l.k9)(e,e.maxWidth,(function(t){var n,r,i;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(i=r.values)?void 0:i[t])||l.VO[t]||C(t)}}))}return null};E.filterProps=["maxWidth"];var R=(0,i.ZP)({prop:"minWidth",transform:C}),O=(0,i.ZP)({prop:"height",transform:C}),P=(0,i.ZP)({prop:"maxHeight",transform:C}),T=(0,i.ZP)({prop:"minHeight",transform:C}),M=((0,i.ZP)({prop:"size",cssProperty:"width",transform:C}),(0,i.ZP)({prop:"size",cssProperty:"height",transform:C}),a(k,E,R,O,P,T,(0,i.ZP)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:s},borderTop:{themeKey:"borders",transform:s},borderRight:{themeKey:"borders",transform:s},borderBottom:{themeKey:"borders",transform:s},borderLeft:{themeKey:"borders",transform:s},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:b},color:{themeKey:"palette",transform:x},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:x},backgroundColor:{themeKey:"palette",transform:x},p:{style:r.o3},pt:{style:r.o3},pr:{style:r.o3},pb:{style:r.o3},pl:{style:r.o3},px:{style:r.o3},py:{style:r.o3},padding:{style:r.o3},paddingTop:{style:r.o3},paddingRight:{style:r.o3},paddingBottom:{style:r.o3},paddingLeft:{style:r.o3},paddingX:{style:r.o3},paddingY:{style:r.o3},paddingInline:{style:r.o3},paddingInlineStart:{style:r.o3},paddingInlineEnd:{style:r.o3},paddingBlock:{style:r.o3},paddingBlockStart:{style:r.o3},paddingBlockEnd:{style:r.o3},m:{style:r.e6},mt:{style:r.e6},mr:{style:r.e6},mb:{style:r.e6},ml:{style:r.e6},mx:{style:r.e6},my:{style:r.e6},margin:{style:r.e6},marginTop:{style:r.e6},marginRight:{style:r.e6},marginBottom:{style:r.e6},marginLeft:{style:r.e6},marginX:{style:r.e6},marginY:{style:r.e6},marginInline:{style:r.e6},marginInlineStart:{style:r.e6},marginInlineEnd:{style:r.e6},marginBlock:{style:r.e6},marginBlockStart:{style:r.e6},marginBlockEnd:{style:r.e6},displayPrint:{cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:_},rowGap:{style:S},columnGap:{style:w},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:C},maxWidth:{style:E},minWidth:{transform:C},height:{transform:C},maxHeight:{transform:C},minHeight:{transform:C},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},104:function(e,t,n){"use strict";var r=n(4942),i=n(1122),o=n(8247),a=n(8529),l=n(1184),s=n(7416);var c=function(){function e(e,t,n,o){var s,c=(s={},(0,r.Z)(s,e,t),(0,r.Z)(s,"theme",n),s),u=o[e];if(!u)return(0,r.Z)({},e,t);var d=u.cssProperty,f=void 0===d?e:d,h=u.themeKey,p=u.transform,v=u.style;if(null==t)return null;var m=(0,a.DW)(n,h)||{};if(v)return v(c);return(0,l.k9)(c,t,(function(t){var n=(0,a.Jq)(m,p,t);return t===n&&"string"===typeof t&&(n=(0,a.Jq)(m,p,"".concat(e).concat("default"===t?"":(0,i.Z)(t)),t)),!1===f?n:(0,r.Z)({},f,n)}))}return function t(n){var i,a=n||{},c=a.sx,u=a.theme,d=void 0===u?{}:u;if(!c)return null;var f=null!=(i=d.unstable_sxConfig)?i:s.Z;function h(n){var i=n;if("function"===typeof n)i=n(d);else if("object"!==typeof n)return n;if(!i)return null;var a=(0,l.W8)(d.breakpoints),s=Object.keys(a),c=a;return Object.keys(i).forEach((function(n){var a,s,u=(a=i[n],s=d,"function"===typeof a?a(s):a);if(null!==u&&void 0!==u)if("object"===typeof u)if(f[n])c=(0,o.Z)(c,e(n,u,d,f));else{var h=(0,l.k9)({theme:d},u,(function(e){return(0,r.Z)({},n,e)}));!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce((function(e,t){return e.concat(Object.keys(t))}),[]),i=new Set(r);return t.every((function(e){return i.size===Object.keys(e).length}))}(h,u)?c=(0,o.Z)(c,h):c[n]=t({sx:u,theme:d})}else c=(0,o.Z)(c,e(n,u,d,f))})),(0,l.L7)(s,c)}return Array.isArray(c)?c.map(h):h(c)}}();c.filterProps=["sx"],t.Z=c},418:function(e,t,n){"use strict";var r=n(5080),i=n(7301),o=(0,r.Z)();t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(0,i.Z)(e)}},7301:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(2791);var i=r.createContext(null);var o=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=r.useContext(i);return n&&(e=n,0!==Object.keys(e).length)?n:t}},5902:function(e,t){"use strict";var n=function(e){return e},r=function(){var e=n;return{configure:function(t){e=t},generate:function(t){return e(t)},reset:function(){e=n}}}();t.Z=r},1122:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(6189);function i(e){if("string"!==typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},4419:function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r={};return Object.keys(e).forEach((function(i){r[i]=e[i].reduce((function(e,r){if(r){var i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{Z:function(){return r}})},8949:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,{Z:function(){return r}})},2254:function(e,t,n){"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){e.apply(r,o)}),n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,{Z:function(){return r}})},2466:function(e,t,n){"use strict";n.d(t,{P:function(){return i},Z:function(){return a}});var r=n(7462);function i(e){return null!==e&&"object"===typeof e&&e.constructor===Object}function o(e){if(!i(e))return e;var t={};return Object.keys(e).forEach((function(n){t[n]=o(e[n])})),t}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},l=n.clone?(0,r.Z)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(i(t[r])&&r in e&&i(e[r])?l[r]=a(e[r],t[r],n):n.clone?l[r]=i(t[r])?o(t[r]):t[r]:l[r]=t[r])})),l}},6189:function(e,t,n){"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:function(){return r}})},1217:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(5902),i={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",o=i[t];return o?"".concat(n,"-").concat(o):"".concat(r.Z.generate(e),"-").concat(t)}},5878:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1217);function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",i={};return t.forEach((function(t){i[t]=(0,r.Z)(e,t,n)})),i}},4913:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},5202:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(4913);function i(e){return(0,r.Z)(e).defaultView||window}},5735:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(7462);function i(e,t){var n=(0,r.Z)({},t);return Object.keys(e).forEach((function(o){if(o.toString().match(/^(components|slots)$/))n[o]=(0,r.Z)({},e[o],n[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){var a=e[o]||{},l=t[o];n[o]={},l&&Object.keys(l)?a&&Object.keys(a)?(n[o]=(0,r.Z)({},l),Object.keys(a).forEach((function(e){n[o][e]=i(a[e],l[e])}))):n[o]=l:n[o]=a}else void 0===n[o]&&(n[o]=e[o])})),n}},2971:function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},8637:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9439),i=n(2791);function o(e){var t=e.controlled,n=e.default,o=(e.name,e.state,i.useRef(void 0!==t).current),a=i.useState(n),l=(0,r.Z)(a,2),s=l[0],c=l[1];return[o?t:s,i.useCallback((function(e){o||c(e)}),[])]}},2876:function(e,t,n){"use strict";var r=n(2791),i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;t.Z=i},7054:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(2791),i=n(2876);function o(e){var t=r.useRef(e);return(0,i.Z)((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},6117:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(2791),i=n(2971);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo((function(){return t.every((function(e){return null==e}))?null:function(e){t.forEach((function(t){(0,i.Z)(t,e)}))}}),t)}},8252:function(e,t,n){"use strict";var r;n.d(t,{Z:function(){return s}});var i=n(9439),o=n(2791),a=0;var l=(r||(r=n.t(o,2)))["useId".toString()];function s(e){if(void 0!==l){var t=l();return null!=e?e:t}return function(e){var t=o.useState(e),n=(0,i.Z)(t,2),r=n[0],l=n[1],s=e||r;return o.useEffect((function(){null==r&&l("mui-".concat(a+=1))}),[r]),s}(e)}},8182:function(e,t,n){"use strict";function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}t.Z=function(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}},2110:function(e,t,n){"use strict";var r=n(8309),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?a:l[e.$$typeof]||i}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var l=s(t),v=s(n),m=0;m<a.length;++m){var g=a[m];if(!o[g]&&(!r||!r[g])&&(!v||!v[g])&&(!l||!l[g])){var y=f(n,g);try{c(t,g,y)}catch(b){}}}}return t}},746:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case l:case a:case h:return e;default:switch(e=e&&e.$$typeof){case c:case f:case m:case v:case s:return e;default:return t}}case i:return t}}}function S(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=m,t.Memo=v,t.Portal=i,t.Profiler=l,t.StrictMode=a,t.Suspense=h,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)===s},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===v},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===l||e===a||e===h||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===s||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===_||e.$$typeof===g)},t.typeOf=w},8309:function(e,t,n){"use strict";e.exports=n(746)},9353:function(e){e.exports=function(e,t,n,r){var i=new Blob("undefined"!==typeof r?[r,e]:[e],{type:n||"application/octet-stream"});if("undefined"!==typeof window.navigator.msSaveBlob)window.navigator.msSaveBlob(i,t);else{var o=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(i):window.webkitURL.createObjectURL(i),a=document.createElement("a");a.style.display="none",a.href=o,a.setAttribute("download",t),"undefined"===typeof a.download&&a.setAttribute("target","_blank"),document.body.appendChild(a),a.click(),setTimeout((function(){document.body.removeChild(a),window.URL.revokeObjectURL(o)}),200)}}},2426:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function i(e){t=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(l(e,t))return!1;return!0}function c(e){return void 0===e}function u(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function h(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return Yn(e,t,n,r,!0).utc()}function v(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function m(e){return null==e._pf&&(e._pf=v()),e._pf}function g(e){if(null==e._isValid){var t=m(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function y(e){var t=p(NaN);return null!=e?h(m(t),e):m(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var b=r.momentProperties=[],_=!1;function w(e,t){var n,r,i,o=b.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=m(t)),c(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)c(i=t[r=b[n]])||(e[r]=i);return e}function S(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===_&&(_=!0,r.updateOffset(this),_=!1)}function x(e){return e instanceof S||null!=e&&null!=e._isAMomentObject}function C(e){!1===r.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function k(e,t){var n=!0;return h((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,o,a,s=[],c=arguments.length;for(o=0;o<c;o++){if(i="","object"===typeof arguments[o]){for(a in i+="\n["+o+"] ",arguments[0])l(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[o];s.push(i)}C(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var E,R={};function O(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),R[e]||(C(t),R[e]=!0)}function P(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function T(e){var t,n;for(n in e)l(e,n)&&(P(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function M(e,t){var n,r=h({},e);for(n in t)l(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},h(r[n],e[n]),h(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)l(e,n)&&!l(t,n)&&a(e[n])&&(r[n]=h({},r[n]));return r}function L(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,E=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var Z={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function I(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return P(r)?r.call(t,n):r}function D(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var j=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,A=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,N={},F={};function z(e,t,n,r){var i=r;"string"===typeof r&&(i=function(){return this[r]()}),e&&(F[e]=i),t&&(F[t[0]]=function(){return D(i.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function B(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function H(e){var t,n,r=e.match(j);for(t=0,n=r.length;t<n;t++)F[r[t]]?r[t]=F[r[t]]:r[t]=B(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=P(r[i])?r[i].call(t,e):r[i];return o}}function W(e,t){return e.isValid()?(t=U(t,e.localeData()),N[t]=N[t]||H(t),N[t](e)):e.localeData().invalidDate()}function U(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(A.lastIndex=0;n>=0&&A.test(e);)e=e.replace(A,r),A.lastIndex=0,n-=1;return e}var V={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function q(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(j).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var K="Invalid date";function Y(){return this._invalidDate}var G="%d",X=/\d{1,2}/;function $(e){return this._ordinal.replace("%d",e)}var J={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Q(e,t,n,r){var i=this._relativeTime[n];return P(i)?i(e,t,n,r):i.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return P(n)?n(t):n.replace(/%s/i,t)}var te={};function ne(e,t){var n=e.toLowerCase();te[n]=te[n+"s"]=te[t]=e}function re(e){return"string"===typeof e?te[e]||te[e.toLowerCase()]:void 0}function ie(e){var t,n,r={};for(n in e)l(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var oe={};function ae(e,t){oe[e]=t}function le(e){var t,n=[];for(t in e)l(e,t)&&n.push({unit:t,priority:oe[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function se(e){return e%4===0&&e%100!==0||e%400===0}function ce(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ue(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ce(t)),n}function de(e,t){return function(n){return null!=n?(he(this,e,n),r.updateOffset(this,t),this):fe(this,e)}}function fe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function he(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&se(e.year())&&1===e.month()&&29===e.date()?(n=ue(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Qe(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function pe(e){return P(this[e=re(e)])?this[e]():this}function ve(e,t){if("object"===typeof e){var n,r=le(e=ie(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(P(this[e=re(e)]))return this[e](t);return this}var me,ge=/\d/,ye=/\d\d/,be=/\d{3}/,_e=/\d{4}/,we=/[+-]?\d{6}/,Se=/\d\d?/,xe=/\d\d\d\d?/,Ce=/\d\d\d\d\d\d?/,ke=/\d{1,3}/,Ee=/\d{1,4}/,Re=/[+-]?\d{1,6}/,Oe=/\d+/,Pe=/[+-]?\d+/,Te=/Z|[+-]\d\d:?\d\d/gi,Me=/Z|[+-]\d\d(?::?\d\d)?/gi,Le=/[+-]?\d+(\.\d{1,3})?/,Ze=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Ie(e,t,n){me[e]=P(t)?t:function(e,r){return e&&n?n:t}}function De(e,t){return l(me,e)?me[e](t._strict,t._locale):new RegExp(je(e))}function je(e){return Ae(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Ae(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}me={};var Ne={};function Fe(e,t){var n,r,i=t;for("string"===typeof e&&(e=[e]),u(t)&&(i=function(e,n){n[t]=ue(e)}),r=e.length,n=0;n<r;n++)Ne[e[n]]=i}function ze(e,t){Fe(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function Be(e,t,n){null!=t&&l(Ne,e)&&Ne[e](t,n._a,n,e)}var He,We=0,Ue=1,Ve=2,qe=3,Ke=4,Ye=5,Ge=6,Xe=7,$e=8;function Je(e,t){return(e%t+t)%t}function Qe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Je(t,12);return e+=(t-n)/12,1===n?se(e)?29:28:31-n%7%2}He=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},z("M",["MM",2],"Mo",(function(){return this.month()+1})),z("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),z("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),ne("month","M"),ae("month",8),Ie("M",Se),Ie("MM",Se,ye),Ie("MMM",(function(e,t){return t.monthsShortRegex(e)})),Ie("MMMM",(function(e,t){return t.monthsRegex(e)})),Fe(["M","MM"],(function(e,t){t[Ue]=ue(e)-1})),Fe(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[Ue]=i:m(n).invalidMonth=e}));var et="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),tt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),nt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,rt=Ze,it=Ze;function ot(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||nt).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function at(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[nt.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function lt(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=He.call(this._shortMonthsParse,a))?i:null:-1!==(i=He.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=He.call(this._shortMonthsParse,a))||-1!==(i=He.call(this._longMonthsParse,a))?i:null:-1!==(i=He.call(this._longMonthsParse,a))||-1!==(i=He.call(this._shortMonthsParse,a))?i:null}function st(e,t,n){var r,i,o;if(this._monthsParseExact)return lt.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ct(e,t){var n;if(!e.isValid())return e;if("string"===typeof t)if(/^\d+$/.test(t))t=ue(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Qe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ut(e){return null!=e?(ct(this,e),r.updateOffset(this,!0),this):fe(this,"Month")}function dt(){return Qe(this.year(),this.month())}function ft(e){return this._monthsParseExact?(l(this,"_monthsRegex")||pt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=rt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ht(e){return this._monthsParseExact?(l(this,"_monthsRegex")||pt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=it),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function pt(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=p([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=Ae(r[t]),i[t]=Ae(i[t]);for(t=0;t<24;t++)o[t]=Ae(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function vt(e){return se(e)?366:365}z("Y",0,0,(function(){var e=this.year();return e<=9999?D(e,4):"+"+e})),z(0,["YY",2],0,(function(){return this.year()%100})),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),ne("year","y"),ae("year",1),Ie("Y",Pe),Ie("YY",Se,ye),Ie("YYYY",Ee,_e),Ie("YYYYY",Re,we),Ie("YYYYYY",Re,we),Fe(["YYYYY","YYYYYY"],We),Fe("YYYY",(function(e,t){t[We]=2===e.length?r.parseTwoDigitYear(e):ue(e)})),Fe("YY",(function(e,t){t[We]=r.parseTwoDigitYear(e)})),Fe("Y",(function(e,t){t[We]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return ue(e)+(ue(e)>68?1900:2e3)};var mt=de("FullYear",!0);function gt(){return se(this.year())}function yt(e,t,n,r,i,o,a){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,r,i,o,a),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,i,o,a),l}function bt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function _t(e,t,n){var r=7+t-n;return-(7+bt(e,0,r).getUTCDay()-t)%7+r-1}function wt(e,t,n,r,i){var o,a,l=1+7*(t-1)+(7+n-r)%7+_t(e,r,i);return l<=0?a=vt(o=e-1)+l:l>vt(e)?(o=e+1,a=l-vt(e)):(o=e,a=l),{year:o,dayOfYear:a}}function St(e,t,n){var r,i,o=_t(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+xt(i=e.year()-1,t,n):a>xt(e.year(),t,n)?(r=a-xt(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function xt(e,t,n){var r=_t(e,t,n),i=_t(e+1,t,n);return(vt(e)-r+i)/7}function Ct(e){return St(e,this._week.dow,this._week.doy).week}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),ne("week","w"),ne("isoWeek","W"),ae("week",5),ae("isoWeek",5),Ie("w",Se),Ie("ww",Se,ye),Ie("W",Se),Ie("WW",Se,ye),ze(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=ue(e)}));var kt={dow:0,doy:6};function Et(){return this._week.dow}function Rt(){return this._week.doy}function Ot(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Pt(e){var t=St(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Tt(e,t){return"string"!==typeof e?e:isNaN(e)?"number"===typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Mt(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Lt(e,t){return e.slice(t,7).concat(e.slice(0,t))}z("d",0,"do","day"),z("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),z("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),z("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),ae("day",11),ae("weekday",11),ae("isoWeekday",11),Ie("d",Se),Ie("e",Se),Ie("E",Se),Ie("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Ie("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Ie("dddd",(function(e,t){return t.weekdaysRegex(e)})),ze(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:m(n).invalidWeekday=e})),ze(["d","e","E"],(function(e,t,n,r){t[r]=ue(e)}));var Zt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),It="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Dt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),jt=Ze,At=Ze,Nt=Ze;function Ft(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Lt(n,this._week.dow):e?n[e.day()]:n}function zt(e){return!0===e?Lt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Bt(e){return!0===e?Lt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ht(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=He.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=He.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=He.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=He.call(this._weekdaysParse,a))||-1!==(i=He.call(this._shortWeekdaysParse,a))||-1!==(i=He.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=He.call(this._shortWeekdaysParse,a))||-1!==(i=He.call(this._weekdaysParse,a))||-1!==(i=He.call(this._minWeekdaysParse,a))?i:null:-1!==(i=He.call(this._minWeekdaysParse,a))||-1!==(i=He.call(this._weekdaysParse,a))||-1!==(i=He.call(this._shortWeekdaysParse,a))?i:null}function Wt(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Ht.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Ut(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Tt(e,this.localeData()),this.add(e-t,"d")):t}function Vt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function qt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Mt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Kt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=jt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Yt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=At),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Gt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xt(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],l=[],s=[],c=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=Ae(this.weekdaysMin(n,"")),i=Ae(this.weekdaysShort(n,"")),o=Ae(this.weekdays(n,"")),a.push(r),l.push(i),s.push(o),c.push(r),c.push(i),c.push(o);a.sort(e),l.sort(e),s.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function $t(){return this.hours()%12||12}function Jt(){return this.hours()||24}function Qt(e,t){z(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function en(e,t){return t._meridiemParse}function tn(e){return"p"===(e+"").toLowerCase().charAt(0)}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,$t),z("k",["kk",2],0,Jt),z("hmm",0,0,(function(){return""+$t.apply(this)+D(this.minutes(),2)})),z("hmmss",0,0,(function(){return""+$t.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)})),z("Hmm",0,0,(function(){return""+this.hours()+D(this.minutes(),2)})),z("Hmmss",0,0,(function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)})),Qt("a",!0),Qt("A",!1),ne("hour","h"),ae("hour",13),Ie("a",en),Ie("A",en),Ie("H",Se),Ie("h",Se),Ie("k",Se),Ie("HH",Se,ye),Ie("hh",Se,ye),Ie("kk",Se,ye),Ie("hmm",xe),Ie("hmmss",Ce),Ie("Hmm",xe),Ie("Hmmss",Ce),Fe(["H","HH"],qe),Fe(["k","kk"],(function(e,t,n){var r=ue(e);t[qe]=24===r?0:r})),Fe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Fe(["h","hh"],(function(e,t,n){t[qe]=ue(e),m(n).bigHour=!0})),Fe("hmm",(function(e,t,n){var r=e.length-2;t[qe]=ue(e.substr(0,r)),t[Ke]=ue(e.substr(r)),m(n).bigHour=!0})),Fe("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[qe]=ue(e.substr(0,r)),t[Ke]=ue(e.substr(r,2)),t[Ye]=ue(e.substr(i)),m(n).bigHour=!0})),Fe("Hmm",(function(e,t,n){var r=e.length-2;t[qe]=ue(e.substr(0,r)),t[Ke]=ue(e.substr(r))})),Fe("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[qe]=ue(e.substr(0,r)),t[Ke]=ue(e.substr(r,2)),t[Ye]=ue(e.substr(i))}));var nn=/[ap]\.?m?\.?/i,rn=de("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,ln={calendar:Z,longDateFormat:V,invalidDate:K,ordinal:G,dayOfMonthOrdinalParse:X,relativeTime:J,months:et,monthsShort:tt,week:kt,weekdays:Zt,weekdaysMin:Dt,weekdaysShort:It,meridiemParse:nn},sn={},cn={};function un(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function dn(e){return e?e.toLowerCase().replace("_","-"):e}function fn(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=dn(e[o]).split("-")).length,n=(n=dn(e[o+1]))?n.split("-"):null;t>0;){if(r=pn(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&un(i,n)>=t-1)break;t--}o++}return an}function hn(e){return null!=e.match("^[^/\\\\]*$")}function pn(t){var n=null;if(void 0===sn[t]&&e&&e.exports&&hn(t))try{n=an._abbr,Object(function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}()),vn(n)}catch(r){sn[t]=null}return sn[t]}function vn(e,t){var n;return e&&((n=c(t)?yn(e):mn(e,t))?an=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function mn(e,t){if(null!==t){var n,r=ln;if(t.abbr=e,null!=sn[e])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=sn[e]._config;else if(null!=t.parentLocale)if(null!=sn[t.parentLocale])r=sn[t.parentLocale]._config;else{if(null==(n=pn(t.parentLocale)))return cn[t.parentLocale]||(cn[t.parentLocale]=[]),cn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return sn[e]=new L(M(r,t)),cn[e]&&cn[e].forEach((function(e){mn(e.name,e.config)})),vn(e),sn[e]}return delete sn[e],null}function gn(e,t){if(null!=t){var n,r,i=ln;null!=sn[e]&&null!=sn[e].parentLocale?sn[e].set(M(sn[e]._config,t)):(null!=(r=pn(e))&&(i=r._config),t=M(i,t),null==r&&(t.abbr=e),(n=new L(t)).parentLocale=sn[e],sn[e]=n),vn(e)}else null!=sn[e]&&(null!=sn[e].parentLocale?(sn[e]=sn[e].parentLocale,e===vn()&&vn(e)):null!=sn[e]&&delete sn[e]);return sn[e]}function yn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!o(e)){if(t=pn(e))return t;e=[e]}return fn(e)}function bn(){return E(sn)}function _n(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[Ue]<0||n[Ue]>11?Ue:n[Ve]<1||n[Ve]>Qe(n[We],n[Ue])?Ve:n[qe]<0||n[qe]>24||24===n[qe]&&(0!==n[Ke]||0!==n[Ye]||0!==n[Ge])?qe:n[Ke]<0||n[Ke]>59?Ke:n[Ye]<0||n[Ye]>59?Ye:n[Ge]<0||n[Ge]>999?Ge:-1,m(e)._overflowDayOfYear&&(t<We||t>Ve)&&(t=Ve),m(e)._overflowWeeks&&-1===t&&(t=Xe),m(e)._overflowWeekday&&-1===t&&(t=$e),m(e).overflow=t),e}var wn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xn=/Z|[+-]\d\d(?::?\d\d)?/,Cn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],kn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],En=/^\/?Date\((-?\d+)/i,Rn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,On={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Pn(e){var t,n,r,i,o,a,l=e._i,s=wn.exec(l)||Sn.exec(l),c=Cn.length,u=kn.length;if(s){for(m(e).iso=!0,t=0,n=c;t<n;t++)if(Cn[t][1].exec(s[1])){i=Cn[t][0],r=!1!==Cn[t][2];break}if(null==i)return void(e._isValid=!1);if(s[3]){for(t=0,n=u;t<n;t++)if(kn[t][1].exec(s[3])){o=(s[2]||" ")+kn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(s[4]){if(!xn.exec(s[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),Bn(e)}else e._isValid=!1}function Tn(e,t,n,r,i,o){var a=[Mn(e),tt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}function Mn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Ln(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Zn(e,t,n){return!e||It.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(m(n).weekdayMismatch=!0,n._isValid=!1,!1)}function In(e,t,n){if(e)return On[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function Dn(e){var t,n=Rn.exec(Ln(e._i));if(n){if(t=Tn(n[4],n[3],n[2],n[5],n[6],n[7]),!Zn(n[1],t,e))return;e._a=t,e._tzm=In(n[8],n[9],n[10]),e._d=bt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function jn(e){var t=En.exec(e._i);null===t?(Pn(e),!1===e._isValid&&(delete e._isValid,Dn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function An(e,t,n){return null!=e?e:null!=t?t:n}function Nn(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Fn(e){var t,n,r,i,o,a=[];if(!e._d){for(r=Nn(e),e._w&&null==e._a[Ve]&&null==e._a[Ue]&&zn(e),null!=e._dayOfYear&&(o=An(e._a[We],r[We]),(e._dayOfYear>vt(o)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=bt(o,0,e._dayOfYear),e._a[Ue]=n.getUTCMonth(),e._a[Ve]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[qe]&&0===e._a[Ke]&&0===e._a[Ye]&&0===e._a[Ge]&&(e._nextDay=!0,e._a[qe]=0),e._d=(e._useUTC?bt:yt).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[qe]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==i&&(m(e).weekdayMismatch=!0)}}function zn(e){var t,n,r,i,o,a,l,s,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,a=4,n=An(t.GG,e._a[We],St(Gn(),1,4).year),r=An(t.W,1),((i=An(t.E,1))<1||i>7)&&(s=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=St(Gn(),o,a),n=An(t.gg,e._a[We],c.year),r=An(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(s=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(s=!0)):i=o),r<1||r>xt(n,o,a)?m(e)._overflowWeeks=!0:null!=s?m(e)._overflowWeekday=!0:(l=wt(n,r,i,o,a),e._a[We]=l.year,e._dayOfYear=l.dayOfYear)}function Bn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],m(e).empty=!0;var t,n,i,o,a,l,s,c=""+e._i,u=c.length,d=0;for(s=(i=U(e._f,e._locale).match(j)||[]).length,t=0;t<s;t++)o=i[t],(n=(c.match(De(o,e))||[])[0])&&((a=c.substr(0,c.indexOf(n))).length>0&&m(e).unusedInput.push(a),c=c.slice(c.indexOf(n)+n.length),d+=n.length),F[o]?(n?m(e).empty=!1:m(e).unusedTokens.push(o),Be(o,n,e)):e._strict&&!n&&m(e).unusedTokens.push(o);m(e).charsLeftOver=u-d,c.length>0&&m(e).unusedInput.push(c),e._a[qe]<=12&&!0===m(e).bigHour&&e._a[qe]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[qe]=Hn(e._locale,e._a[qe],e._meridiem),null!==(l=m(e).era)&&(e._a[We]=e._locale.erasConvertYear(l,e._a[We])),Fn(e),_n(e)}else Dn(e);else Pn(e)}function Hn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Wn(e){var t,n,r,i,o,a,l=!1,s=e._f.length;if(0===s)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<s;i++)o=0,a=!1,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Bn(t),g(t)&&(a=!0),o+=m(t).charsLeftOver,o+=10*m(t).unusedTokens.length,m(t).score=o,l?o<r&&(r=o,n=t):(null==r||o<r||a)&&(r=o,n=t,a&&(l=!0));h(e,n||t)}function Un(e){if(!e._d){var t=ie(e._i),n=void 0===t.day?t.date:t.day;e._a=f([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Fn(e)}}function Vn(e){var t=new S(_n(qn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function qn(e){var t=e._i,n=e._f;return e._locale=e._locale||yn(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),x(t)?new S(_n(t)):(d(t)?e._d=t:o(n)?Wn(e):n?Bn(e):Kn(e),g(e)||(e._d=null),e))}function Kn(e){var t=e._i;c(t)?e._d=new Date(r.now()):d(t)?e._d=new Date(t.valueOf()):"string"===typeof t?jn(e):o(t)?(e._a=f(t.slice(0),(function(e){return parseInt(e,10)})),Fn(e)):a(t)?Un(e):u(t)?e._d=new Date(t):r.createFromInputFallback(e)}function Yn(e,t,n,r,i){var l={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&s(e)||o(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=i,l._l=n,l._i=e,l._f=t,l._strict=r,Vn(l)}function Gn(e,t,n,r){return Yn(e,t,n,r,!1)}r.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Xn=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Gn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),$n=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Gn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}));function Jn(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Gn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Qn(){return Jn("isBefore",[].slice.call(arguments,0))}function er(){return Jn("isAfter",[].slice.call(arguments,0))}var tr=function(){return Date.now?Date.now():+new Date},nr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rr(e){var t,n,r=!1,i=nr.length;for(t in e)if(l(e,t)&&(-1===He.call(nr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[nr[n]]){if(r)return!1;parseFloat(e[nr[n]])!==ue(e[nr[n]])&&(r=!0)}return!0}function ir(){return this._isValid}function or(){return Or(NaN)}function ar(e){var t=ie(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,l=t.hour||0,s=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=rr(t),this._milliseconds=+u+1e3*c+6e4*s+1e3*l*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=yn(),this._bubble()}function lr(e){return e instanceof ar}function sr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function cr(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&ue(e[r])!==ue(t[r]))&&a++;return a+o}function ur(e,t){z(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+D(~~(e/60),2)+t+D(~~e%60,2)}))}ur("Z",":"),ur("ZZ",""),Ie("Z",Me),Ie("ZZ",Me),Fe(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=fr(Me,e)}));var dr=/([\+\-]|\d\d)/gi;function fr(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(dr)||["-",0,0])[1]+ue(n[2]))?0:"+"===n[0]?r:-r}function hr(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(x(e)||d(e)?e.valueOf():Gn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):Gn(e).local()}function pr(e){return-Math.round(e._d.getTimezoneOffset())}function vr(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(null===(e=fr(Me,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=pr(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?Zr(this,Or(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:pr(this)}function mr(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function gr(e){return this.utcOffset(0,e)}function yr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(pr(this),"m")),this}function br(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=fr(Te,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function _r(e){return!!this.isValid()&&(e=e?Gn(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function wr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Sr(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),(t=qn(t))._a?(e=t._isUTC?p(t._a):Gn(t._a),this._isDSTShifted=this.isValid()&&cr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function xr(){return!!this.isValid()&&!this._isUTC}function Cr(){return!!this.isValid()&&this._isUTC}function kr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Er=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Rr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Or(e,t){var n,r,i,o=e,a=null;return lr(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(a=Er.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:ue(a[Ve])*n,h:ue(a[qe])*n,m:ue(a[Ke])*n,s:ue(a[Ye])*n,ms:ue(sr(1e3*a[Ge]))*n}):(a=Rr.exec(e))?(n="-"===a[1]?-1:1,o={y:Pr(a[2],n),M:Pr(a[3],n),w:Pr(a[4],n),d:Pr(a[5],n),h:Pr(a[6],n),m:Pr(a[7],n),s:Pr(a[8],n)}):null==o?o={}:"object"===typeof o&&("from"in o||"to"in o)&&(i=Mr(Gn(o.from),Gn(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new ar(o),lr(e)&&l(e,"_locale")&&(r._locale=e._locale),lr(e)&&l(e,"_isValid")&&(r._isValid=e._isValid),r}function Pr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Tr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Mr(e,t){var n;return e.isValid()&&t.isValid()?(t=hr(t,e),e.isBefore(t)?n=Tr(e,t):((n=Tr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Lr(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(O(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Zr(this,Or(n,r),e),this}}function Zr(e,t,n,i){var o=t._milliseconds,a=sr(t._days),l=sr(t._months);e.isValid()&&(i=null==i||i,l&&ct(e,fe(e,"Month")+l*n),a&&he(e,"Date",fe(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&r.updateOffset(e,a||l))}Or.fn=ar.prototype,Or.invalid=or;var Ir=Lr(1,"add"),Dr=Lr(-1,"subtract");function jr(e){return"string"===typeof e||e instanceof String}function Ar(e){return x(e)||d(e)||jr(e)||u(e)||Fr(e)||Nr(e)||null===e||void 0===e}function Nr(e){var t,n,r=a(e)&&!s(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=o.length;for(t=0;t<c;t+=1)n=o[t],i=i||l(e,n);return r&&i}function Fr(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!u(t)&&jr(e)})).length),t&&n}function zr(e){var t,n,r=a(e)&&!s(e),i=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)n=o[t],i=i||l(e,n);return r&&i}function Br(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Hr(e,t){1===arguments.length&&(arguments[0]?Ar(arguments[0])?(e=arguments[0],t=void 0):zr(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Gn(),i=hr(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",a=t&&(P(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,Gn(n)))}function Wr(){return new S(this)}function Ur(e,t){var n=x(e)?e:Gn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Vr(e,t){var n=x(e)?e:Gn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function qr(e,t,n,r){var i=x(e)?e:Gn(e),o=x(t)?t:Gn(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))}function Kr(e,t){var n,r=x(e)?e:Gn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Yr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Gr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Xr(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=hr(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=re(t)){case"year":o=$r(this,r)/12;break;case"month":o=$r(this,r);break;case"quarter":o=$r(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:ce(o)}function $r(e,t){if(e.date()<t.date())return-$r(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Jr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Qr(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?W(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):P(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",W(n,"Z")):W(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ei(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(e+t+n+r)}function ti(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=W(this,e);return this.localeData().postformat(t)}function ni(e,t){return this.isValid()&&(x(e)&&e.isValid()||Gn(e).isValid())?Or({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ri(e){return this.from(Gn(),e)}function ii(e,t){return this.isValid()&&(x(e)&&e.isValid()||Gn(e).isValid())?Or({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function oi(e){return this.to(Gn(),e)}function ai(e){var t;return void 0===e?this._locale._abbr:(null!=(t=yn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var li=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function si(){return this._locale}var ci=1e3,ui=60*ci,di=60*ui,fi=3506328*di;function hi(e,t){return(e%t+t)%t}function pi(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-fi:new Date(e,t,n).valueOf()}function vi(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-fi:Date.UTC(e,t,n)}function mi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?vi:pi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=hi(t+(this._isUTC?0:this.utcOffset()*ui),di);break;case"minute":t=this._d.valueOf(),t-=hi(t,ui);break;case"second":t=this._d.valueOf(),t-=hi(t,ci)}return this._d.setTime(t),r.updateOffset(this,!0),this}function gi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?vi:pi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=di-hi(t+(this._isUTC?0:this.utcOffset()*ui),di)-1;break;case"minute":t=this._d.valueOf(),t+=ui-hi(t,ui)-1;break;case"second":t=this._d.valueOf(),t+=ci-hi(t,ci)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function yi(){return this._d.valueOf()-6e4*(this._offset||0)}function bi(){return Math.floor(this.valueOf()/1e3)}function _i(){return new Date(this.valueOf())}function wi(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Si(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function xi(){return this.isValid()?this.toISOString():null}function Ci(){return g(this)}function ki(){return h({},m(this))}function Ei(){return m(this).overflow}function Ri(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Oi(e,t){var n,i,o,a=this._eras||yn("en")._eras;for(n=0,i=a.length;n<i;++n)switch("string"===typeof a[n].since&&(o=r(a[n].since).startOf("day"),a[n].since=o.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":o=r(a[n].until).startOf("day").valueOf(),a[n].until=o.valueOf()}return a}function Pi(e,t,n){var r,i,o,a,l,s=this.eras();for(e=e.toUpperCase(),r=0,i=s.length;r<i;++r)if(o=s[r].name.toUpperCase(),a=s[r].abbr.toUpperCase(),l=s[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return s[r];break;case"NNNN":if(o===e)return s[r];break;case"NNNNN":if(l===e)return s[r]}else if([o,a,l].indexOf(e)>=0)return s[r]}function Ti(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Mi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Li(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Zi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Ii(){var e,t,n,i,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-r(o[e].since).year())*n+o[e].offset;return this.year()}function Di(e){return l(this,"_erasNameRegex")||Hi.call(this),e?this._erasNameRegex:this._erasRegex}function ji(e){return l(this,"_erasAbbrRegex")||Hi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ai(e){return l(this,"_erasNarrowRegex")||Hi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ni(e,t){return t.erasAbbrRegex(e)}function Fi(e,t){return t.erasNameRegex(e)}function zi(e,t){return t.erasNarrowRegex(e)}function Bi(e,t){return t._eraYearOrdinalRegex||Oe}function Hi(){var e,t,n=[],r=[],i=[],o=[],a=this.eras();for(e=0,t=a.length;e<t;++e)r.push(Ae(a[e].name)),n.push(Ae(a[e].abbr)),i.push(Ae(a[e].narrow)),o.push(Ae(a[e].name)),o.push(Ae(a[e].abbr)),o.push(Ae(a[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function Wi(e,t){z(0,[e,e.length],0,t)}function Ui(e){return Xi.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Vi(e){return Xi.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function qi(){return xt(this.year(),1,4)}function Ki(){return xt(this.isoWeekYear(),1,4)}function Yi(){var e=this.localeData()._week;return xt(this.year(),e.dow,e.doy)}function Gi(){var e=this.localeData()._week;return xt(this.weekYear(),e.dow,e.doy)}function Xi(e,t,n,r,i){var o;return null==e?St(this,r,i).year:(t>(o=xt(e,r,i))&&(t=o),$i.call(this,e,t,n,r,i))}function $i(e,t,n,r,i){var o=wt(e,t,n,r,i),a=bt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Ji(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}z("N",0,0,"eraAbbr"),z("NN",0,0,"eraAbbr"),z("NNN",0,0,"eraAbbr"),z("NNNN",0,0,"eraName"),z("NNNNN",0,0,"eraNarrow"),z("y",["y",1],"yo","eraYear"),z("y",["yy",2],0,"eraYear"),z("y",["yyy",3],0,"eraYear"),z("y",["yyyy",4],0,"eraYear"),Ie("N",Ni),Ie("NN",Ni),Ie("NNN",Ni),Ie("NNNN",Fi),Ie("NNNNN",zi),Fe(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?m(n).era=i:m(n).invalidEra=e})),Ie("y",Oe),Ie("yy",Oe),Ie("yyy",Oe),Ie("yyyy",Oe),Ie("yo",Bi),Fe(["y","yy","yyy","yyyy"],We),Fe(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[We]=n._locale.eraYearOrdinalParse(e,i):t[We]=parseInt(e,10)})),z(0,["gg",2],0,(function(){return this.weekYear()%100})),z(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Wi("gggg","weekYear"),Wi("ggggg","weekYear"),Wi("GGGG","isoWeekYear"),Wi("GGGGG","isoWeekYear"),ne("weekYear","gg"),ne("isoWeekYear","GG"),ae("weekYear",1),ae("isoWeekYear",1),Ie("G",Pe),Ie("g",Pe),Ie("GG",Se,ye),Ie("gg",Se,ye),Ie("GGGG",Ee,_e),Ie("gggg",Ee,_e),Ie("GGGGG",Re,we),Ie("ggggg",Re,we),ze(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=ue(e)})),ze(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),z("Q",0,"Qo","quarter"),ne("quarter","Q"),ae("quarter",7),Ie("Q",ge),Fe("Q",(function(e,t){t[Ue]=3*(ue(e)-1)})),z("D",["DD",2],"Do","date"),ne("date","D"),ae("date",9),Ie("D",Se),Ie("DD",Se,ye),Ie("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Fe(["D","DD"],Ve),Fe("Do",(function(e,t){t[Ve]=ue(e.match(Se)[0])}));var Qi=de("Date",!0);function eo(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}z("DDD",["DDDD",3],"DDDo","dayOfYear"),ne("dayOfYear","DDD"),ae("dayOfYear",4),Ie("DDD",ke),Ie("DDDD",be),Fe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=ue(e)})),z("m",["mm",2],0,"minute"),ne("minute","m"),ae("minute",14),Ie("m",Se),Ie("mm",Se,ye),Fe(["m","mm"],Ke);var to=de("Minutes",!1);z("s",["ss",2],0,"second"),ne("second","s"),ae("second",15),Ie("s",Se),Ie("ss",Se,ye),Fe(["s","ss"],Ye);var no,ro,io=de("Seconds",!1);for(z("S",0,0,(function(){return~~(this.millisecond()/100)})),z(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),z(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),z(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),z(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),z(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),z(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ne("millisecond","ms"),ae("millisecond",16),Ie("S",ke,ge),Ie("SS",ke,ye),Ie("SSS",ke,be),no="SSSS";no.length<=9;no+="S")Ie(no,Oe);function oo(e,t){t[Ge]=ue(1e3*("0."+e))}for(no="S";no.length<=9;no+="S")Fe(no,oo);function ao(){return this._isUTC?"UTC":""}function lo(){return this._isUTC?"Coordinated Universal Time":""}ro=de("Milliseconds",!1),z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var so=S.prototype;function co(e){return Gn(1e3*e)}function uo(){return Gn.apply(null,arguments).parseZone()}function fo(e){return e}so.add=Ir,so.calendar=Hr,so.clone=Wr,so.diff=Xr,so.endOf=gi,so.format=ti,so.from=ni,so.fromNow=ri,so.to=ii,so.toNow=oi,so.get=pe,so.invalidAt=Ei,so.isAfter=Ur,so.isBefore=Vr,so.isBetween=qr,so.isSame=Kr,so.isSameOrAfter=Yr,so.isSameOrBefore=Gr,so.isValid=Ci,so.lang=li,so.locale=ai,so.localeData=si,so.max=$n,so.min=Xn,so.parsingFlags=ki,so.set=ve,so.startOf=mi,so.subtract=Dr,so.toArray=wi,so.toObject=Si,so.toDate=_i,so.toISOString=Qr,so.inspect=ei,"undefined"!==typeof Symbol&&null!=Symbol.for&&(so[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),so.toJSON=xi,so.toString=Jr,so.unix=bi,so.valueOf=yi,so.creationData=Ri,so.eraName=Mi,so.eraNarrow=Li,so.eraAbbr=Zi,so.eraYear=Ii,so.year=mt,so.isLeapYear=gt,so.weekYear=Ui,so.isoWeekYear=Vi,so.quarter=so.quarters=Ji,so.month=ut,so.daysInMonth=dt,so.week=so.weeks=Ot,so.isoWeek=so.isoWeeks=Pt,so.weeksInYear=Yi,so.weeksInWeekYear=Gi,so.isoWeeksInYear=qi,so.isoWeeksInISOWeekYear=Ki,so.date=Qi,so.day=so.days=Ut,so.weekday=Vt,so.isoWeekday=qt,so.dayOfYear=eo,so.hour=so.hours=rn,so.minute=so.minutes=to,so.second=so.seconds=io,so.millisecond=so.milliseconds=ro,so.utcOffset=vr,so.utc=gr,so.local=yr,so.parseZone=br,so.hasAlignedHourOffset=_r,so.isDST=wr,so.isLocal=xr,so.isUtcOffset=Cr,so.isUtc=kr,so.isUTC=kr,so.zoneAbbr=ao,so.zoneName=lo,so.dates=k("dates accessor is deprecated. Use date instead.",Qi),so.months=k("months accessor is deprecated. Use month instead",ut),so.years=k("years accessor is deprecated. Use year instead",mt),so.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",mr),so.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Sr);var ho=L.prototype;function po(e,t,n,r){var i=yn(),o=p().set(r,t);return i[n](o,e)}function vo(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return po(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=po(e,r,n,"month");return i}function mo(e,t,n,r){"boolean"===typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var i,o=yn(),a=e?o._week.dow:0,l=[];if(null!=n)return po(t,(n+a)%7,r,"day");for(i=0;i<7;i++)l[i]=po(t,(i+a)%7,r,"day");return l}function go(e,t){return vo(e,t,"months")}function yo(e,t){return vo(e,t,"monthsShort")}function bo(e,t,n){return mo(e,t,n,"weekdays")}function _o(e,t,n){return mo(e,t,n,"weekdaysShort")}function wo(e,t,n){return mo(e,t,n,"weekdaysMin")}ho.calendar=I,ho.longDateFormat=q,ho.invalidDate=Y,ho.ordinal=$,ho.preparse=fo,ho.postformat=fo,ho.relativeTime=Q,ho.pastFuture=ee,ho.set=T,ho.eras=Oi,ho.erasParse=Pi,ho.erasConvertYear=Ti,ho.erasAbbrRegex=ji,ho.erasNameRegex=Di,ho.erasNarrowRegex=Ai,ho.months=ot,ho.monthsShort=at,ho.monthsParse=st,ho.monthsRegex=ht,ho.monthsShortRegex=ft,ho.week=Ct,ho.firstDayOfYear=Rt,ho.firstDayOfWeek=Et,ho.weekdays=Ft,ho.weekdaysMin=Bt,ho.weekdaysShort=zt,ho.weekdaysParse=Wt,ho.weekdaysRegex=Kt,ho.weekdaysShortRegex=Yt,ho.weekdaysMinRegex=Gt,ho.isPM=tn,ho.meridiem=on,vn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ue(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=k("moment.lang is deprecated. Use moment.locale instead.",vn),r.langData=k("moment.langData is deprecated. Use moment.localeData instead.",yn);var So=Math.abs;function xo(){var e=this._data;return this._milliseconds=So(this._milliseconds),this._days=So(this._days),this._months=So(this._months),e.milliseconds=So(e.milliseconds),e.seconds=So(e.seconds),e.minutes=So(e.minutes),e.hours=So(e.hours),e.months=So(e.months),e.years=So(e.years),this}function Co(e,t,n,r){var i=Or(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function ko(e,t){return Co(this,e,t,1)}function Eo(e,t){return Co(this,e,t,-1)}function Ro(e){return e<0?Math.floor(e):Math.ceil(e)}function Oo(){var e,t,n,r,i,o=this._milliseconds,a=this._days,l=this._months,s=this._data;return o>=0&&a>=0&&l>=0||o<=0&&a<=0&&l<=0||(o+=864e5*Ro(To(l)+a),a=0,l=0),s.milliseconds=o%1e3,e=ce(o/1e3),s.seconds=e%60,t=ce(e/60),s.minutes=t%60,n=ce(t/60),s.hours=n%24,a+=ce(n/24),l+=i=ce(Po(a)),a-=Ro(To(i)),r=ce(l/12),l%=12,s.days=a,s.months=l,s.years=r,this}function Po(e){return 4800*e/146097}function To(e){return 146097*e/4800}function Mo(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Po(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(To(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Lo(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ue(this._months/12):NaN}function Zo(e){return function(){return this.as(e)}}var Io=Zo("ms"),Do=Zo("s"),jo=Zo("m"),Ao=Zo("h"),No=Zo("d"),Fo=Zo("w"),zo=Zo("M"),Bo=Zo("Q"),Ho=Zo("y");function Wo(){return Or(this)}function Uo(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Vo(e){return function(){return this.isValid()?this._data[e]:NaN}}var qo=Vo("milliseconds"),Ko=Vo("seconds"),Yo=Vo("minutes"),Go=Vo("hours"),Xo=Vo("days"),$o=Vo("months"),Jo=Vo("years");function Qo(){return ce(this.days()/7)}var ea=Math.round,ta={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function na(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function ra(e,t,n,r){var i=Or(e).abs(),o=ea(i.as("s")),a=ea(i.as("m")),l=ea(i.as("h")),s=ea(i.as("d")),c=ea(i.as("M")),u=ea(i.as("w")),d=ea(i.as("y")),f=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||l<=1&&["h"]||l<n.h&&["hh",l]||s<=1&&["d"]||s<n.d&&["dd",s];return null!=n.w&&(f=f||u<=1&&["w"]||u<n.w&&["ww",u]),(f=f||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,f[3]=+e>0,f[4]=r,na.apply(null,f)}function ia(e){return void 0===e?ea:"function"===typeof e&&(ea=e,!0)}function oa(e,t){return void 0!==ta[e]&&(void 0===t?ta[e]:(ta[e]=t,"s"===e&&(ta.ss=t-1),!0))}function aa(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=ta;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(i=e),"object"===typeof t&&(o=Object.assign({},ta,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),r=ra(this,!i,o,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var la=Math.abs;function sa(e){return(e>0)-(e<0)||+e}function ca(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,a,l,s=la(this._milliseconds)/1e3,c=la(this._days),u=la(this._months),d=this.asSeconds();return d?(e=ce(s/60),t=ce(e/60),s%=60,e%=60,n=ce(u/12),u%=12,r=s?s.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",o=sa(this._months)!==sa(d)?"-":"",a=sa(this._days)!==sa(d)?"-":"",l=sa(this._milliseconds)!==sa(d)?"-":"",i+"P"+(n?o+n+"Y":"")+(u?o+u+"M":"")+(c?a+c+"D":"")+(t||e||s?"T":"")+(t?l+t+"H":"")+(e?l+e+"M":"")+(s?l+r+"S":"")):"P0D"}var ua=ar.prototype;return ua.isValid=ir,ua.abs=xo,ua.add=ko,ua.subtract=Eo,ua.as=Mo,ua.asMilliseconds=Io,ua.asSeconds=Do,ua.asMinutes=jo,ua.asHours=Ao,ua.asDays=No,ua.asWeeks=Fo,ua.asMonths=zo,ua.asQuarters=Bo,ua.asYears=Ho,ua.valueOf=Lo,ua._bubble=Oo,ua.clone=Wo,ua.get=Uo,ua.milliseconds=qo,ua.seconds=Ko,ua.minutes=Yo,ua.hours=Go,ua.days=Xo,ua.weeks=Qo,ua.months=$o,ua.years=Jo,ua.humanize=aa,ua.toISOString=ca,ua.toString=ca,ua.toJSON=ca,ua.locale=ai,ua.localeData=si,ua.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ca),ua.lang=li,z("X",0,0,"unix"),z("x",0,0,"valueOf"),Ie("x",Pe),Ie("X",Le),Fe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Fe("x",(function(e,t,n){n._d=new Date(ue(e))})),r.version="2.29.4",i(Gn),r.fn=so,r.min=Qn,r.max=er,r.now=tr,r.utc=p,r.unix=co,r.months=go,r.isDate=d,r.locale=vn,r.invalid=y,r.duration=Or,r.isMoment=x,r.weekdays=bo,r.parseZone=uo,r.localeData=yn,r.isDuration=lr,r.monthsShort=yo,r.weekdaysMin=wo,r.defineLocale=mn,r.updateLocale=gn,r.locales=bn,r.weekdaysShort=_o,r.normalizeUnits=re,r.relativeTimeRounding=ia,r.relativeTimeThreshold=oa,r.calendarFormat=Br,r.prototype=so,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()},2973:function(e){var t;window,t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}({"./src/index.js":function(e,t,n){"use strict";n.r(t),n("./src/sass/index.scss");var r=n("./src/js/init.js").default.init;"undefined"!==typeof window&&(window.printJS=r),t.default=r},"./src/js/browser.js":function(e,t,n){"use strict";n.r(t);var r={isFirefox:function(){return"undefined"!==typeof InstallTrigger},isIE:function(){return-1!==navigator.userAgent.indexOf("MSIE")||!!document.documentMode},isEdge:function(){return!r.isIE()&&!!window.StyleMedia},isChrome:function(){return!!(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||-1!==navigator.userAgent.toLowerCase().indexOf("safari")},isIOSChrome:function(){return-1!==navigator.userAgent.toLowerCase().indexOf("crios")}};t.default=r},"./src/js/functions.js":function(e,t,n){"use strict";n.r(t),n.d(t,"addWrapper",(function(){return a})),n.d(t,"capitalizePrint",(function(){return l})),n.d(t,"collectStyles",(function(){return s})),n.d(t,"addHeader",(function(){return u})),n.d(t,"cleanUp",(function(){return d})),n.d(t,"isRawHTML",(function(){return f}));var r=n("./src/js/modal.js"),i=n("./src/js/browser.js");function o(e){return o="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(e)}function a(e,t){return'<div style="font-family:'+t.font+" !important; font-size: "+t.font_size+' !important; width:100%;">'+e+"</div>"}function l(e){return e.charAt(0).toUpperCase()+e.slice(1)}function s(e,t){for(var n="",r=(document.defaultView||window).getComputedStyle(e,""),i=0;i<r.length;i++)(-1!==t.targetStyles.indexOf("*")||-1!==t.targetStyle.indexOf(r[i])||c(t.targetStyles,r[i]))&&r.getPropertyValue(r[i])&&(n+=r[i]+":"+r.getPropertyValue(r[i])+";");return n+="max-width: "+t.maxWidth+"px !important; font-size: "+t.font_size+" !important;"}function c(e,t){for(var n=0;n<e.length;n++)if("object"===o(t)&&-1!==t.indexOf(e[n]))return!0;return!1}function u(e,t){var n=document.createElement("div");if(f(t.header))n.innerHTML=t.header;else{var r=document.createElement("h1"),i=document.createTextNode(t.header);r.appendChild(i),r.setAttribute("style",t.headerStyle),n.appendChild(r)}e.insertBefore(n,e.childNodes[0])}function d(e){e.showModal&&r.default.close(),e.onLoadingEnd&&e.onLoadingEnd(),(e.showModal||e.onLoadingStart)&&window.URL.revokeObjectURL(e.printable);var t="mouseover";(i.default.isChrome()||i.default.isFirefox())&&(t="focus"),window.addEventListener(t,(function n(){window.removeEventListener(t,n),e.onPrintDialogClose();var r=document.getElementById(e.frameId);r&&r.remove()}))}function f(e){return new RegExp("<([A-Za-z][A-Za-z0-9]*)\\b[^>]*>(.*?)</\\1>").test(e)}},"./src/js/html.js":function(e,t,n){"use strict";n.r(t);var r=n("./src/js/functions.js"),i=n("./src/js/print.js");function o(e){return o="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(e)}function a(e,t){for(var n=e.cloneNode(),i=Array.prototype.slice.call(e.childNodes),o=0;o<i.length;o++)if(-1===t.ignoreElements.indexOf(i[o].id)){var l=a(i[o],t);n.appendChild(l)}switch(t.scanStyles&&1===e.nodeType&&n.setAttribute("style",Object(r.collectStyles)(e,t)),e.tagName){case"SELECT":n.value=e.value;break;case"CANVAS":n.getContext("2d").drawImage(e,0,0)}return n}t.default={print:function(e,t){var n,l="object"===o(n=e.printable)&&n&&(n instanceof HTMLElement||1===n.nodeType)?e.printable:document.getElementById(e.printable);l?(e.printableElement=a(l,e),e.header&&Object(r.addHeader)(e.printableElement,e),i.default.send(e,t)):window.console.error("Invalid HTML element id: "+e.printable)}}},"./src/js/image.js":function(e,t,n){"use strict";n.r(t);var r=n("./src/js/functions.js"),i=n("./src/js/print.js"),o=n("./src/js/browser.js");t.default={print:function(e,t){e.printable.constructor!==Array&&(e.printable=[e.printable]),e.printableElement=document.createElement("div"),e.printable.forEach((function(t){var n=document.createElement("img");if(n.setAttribute("style",e.imageStyle),n.src=t,o.default.isFirefox()){var r=n.src;n.src=r}var i=document.createElement("div");i.appendChild(n),e.printableElement.appendChild(i)})),e.header&&Object(r.addHeader)(e.printableElement,e),i.default.send(e,t)}}},"./src/js/init.js":function(e,t,n){"use strict";n.r(t);var r=n("./src/js/browser.js"),i=n("./src/js/modal.js"),o=n("./src/js/pdf.js"),a=n("./src/js/html.js"),l=n("./src/js/raw-html.js"),s=n("./src/js/image.js"),c=n("./src/js/json.js");function u(e){return u="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},u(e)}var d=["pdf","html","image","json","raw-html"];t.default={init:function(){var e={printable:null,fallbackPrintable:null,type:"pdf",header:null,headerStyle:"font-weight: 300;",maxWidth:800,properties:null,gridHeaderStyle:"font-weight: bold; padding: 5px; border: 1px solid #dddddd;",gridStyle:"border: 1px solid lightgray; margin-bottom: -1px;",showModal:!1,onError:function(e){throw e},onLoadingStart:null,onLoadingEnd:null,onPrintDialogClose:function(){},onIncompatibleBrowser:function(){},modalMessage:"Retrieving Document...",frameId:"printJS",printableElement:null,documentTitle:"Document",targetStyle:["clear","display","width","min-width","height","min-height","max-height"],targetStyles:["border","box","break","text-decoration"],ignoreElements:[],repeatTableHeader:!0,css:null,style:null,scanStyles:!0,base64:!1,onPdfOpen:null,font:"TimesNewRoman",font_size:"12pt",honorMarginPadding:!0,honorColor:!1,imageStyle:"max-width: 100%;"},t=arguments[0];if(void 0===t)throw new Error("printJS expects at least 1 attribute.");switch(u(t)){case"string":e.printable=encodeURI(t),e.fallbackPrintable=e.printable,e.type=arguments[1]||e.type;break;case"object":for(var n in e.printable=t.printable,e.fallbackPrintable="undefined"!==typeof t.fallbackPrintable?t.fallbackPrintable:e.printable,e.fallbackPrintable=e.base64?"data:application/pdf;base64,".concat(e.fallbackPrintable):e.fallbackPrintable,e)"printable"!==n&&"fallbackPrintable"!==n&&(e[n]="undefined"!==typeof t[n]?t[n]:e[n]);break;default:throw new Error('Unexpected argument type! Expected "string" or "object", got '+u(t))}if(!e.printable)throw new Error("Missing printable information.");if(!e.type||"string"!==typeof e.type||-1===d.indexOf(e.type.toLowerCase()))throw new Error("Invalid print type. Available types are: pdf, html, image and json.");e.showModal&&i.default.show(e),e.onLoadingStart&&e.onLoadingStart();var f=document.getElementById(e.frameId);f&&f.parentNode.removeChild(f);var h=document.createElement("iframe");switch(r.default.isFirefox()?h.setAttribute("style","width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0"):h.setAttribute("style","visibility: hidden; height: 0; width: 0; position: absolute; border: 0"),h.setAttribute("id",e.frameId),"pdf"!==e.type&&(h.srcdoc="<html><head><title>"+e.documentTitle+"</title>",e.css&&(Array.isArray(e.css)||(e.css=[e.css]),e.css.forEach((function(e){h.srcdoc+='<link rel="stylesheet" href="'+e+'">'}))),h.srcdoc+="</head><body></body></html>"),e.type){case"pdf":if(r.default.isIE())try{console.info("Print.js doesn't support PDF printing in Internet Explorer."),window.open(e.fallbackPrintable,"_blank").focus(),e.onIncompatibleBrowser()}catch(p){e.onError(p)}finally{e.showModal&&i.default.close(),e.onLoadingEnd&&e.onLoadingEnd()}else o.default.print(e,h);break;case"image":s.default.print(e,h);break;case"html":a.default.print(e,h);break;case"raw-html":l.default.print(e,h);break;case"json":c.default.print(e,h)}}}},"./src/js/json.js":function(e,t,n){"use strict";n.r(t);var r=n("./src/js/functions.js"),i=n("./src/js/print.js");function o(e){return o="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(e)}t.default={print:function(e,t){if("object"!==o(e.printable))throw new Error("Invalid javascript data object (JSON).");if("boolean"!==typeof e.repeatTableHeader)throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!e.properties||!Array.isArray(e.properties))throw new Error("Invalid properties array for your JSON data.");e.properties=e.properties.map((function(t){return{field:"object"===o(t)?t.field:t,displayName:"object"===o(t)?t.displayName:t,columnSize:"object"===o(t)&&t.columnSize?t.columnSize+";":100/e.properties.length+"%;"}})),e.printableElement=document.createElement("div"),e.header&&Object(r.addHeader)(e.printableElement,e),e.printableElement.innerHTML+=function(e){var t=e.printable,n=e.properties,i='<table style="border-collapse: collapse; width: 100%;">';e.repeatTableHeader&&(i+="<thead>"),i+="<tr>";for(var o=0;o<n.length;o++)i+='<th style="width:'+n[o].columnSize+";"+e.gridHeaderStyle+'">'+Object(r.capitalizePrint)(n[o].displayName)+"</th>";i+="</tr>",e.repeatTableHeader&&(i+="</thead>"),i+="<tbody>";for(var a=0;a<t.length;a++){i+="<tr>";for(var l=0;l<n.length;l++){var s=t[a],c=n[l].field.split(".");if(c.length>1)for(var u=0;u<c.length;u++)s=s[c[u]];else s=s[n[l].field];i+='<td style="width:'+n[l].columnSize+e.gridStyle+'">'+s+"</td>"}i+="</tr>"}return i+="</tbody></table>"}(e),i.default.send(e,t)}}},"./src/js/modal.js":function(e,t,n){"use strict";n.r(t);var r={show:function(e){var t=document.createElement("div");t.setAttribute("style","font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;"),t.setAttribute("id","printJS-Modal");var n=document.createElement("div");n.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var i=document.createElement("div");i.setAttribute("class","printClose"),i.setAttribute("id","printClose"),n.appendChild(i);var o=document.createElement("span");o.setAttribute("class","printSpinner"),n.appendChild(o);var a=document.createTextNode(e.modalMessage);n.appendChild(a),t.appendChild(n),document.getElementsByTagName("body")[0].appendChild(t),document.getElementById("printClose").addEventListener("click",(function(){r.close()}))},close:function(){var e=document.getElementById("printJS-Modal");e&&e.parentNode.removeChild(e)}};t.default=r},"./src/js/pdf.js":function(e,t,n){"use strict";n.r(t);var r=n("./src/js/print.js"),i=n("./src/js/functions.js");function o(e,t,n){var i=new window.Blob([n],{type:"application/pdf"});i=window.URL.createObjectURL(i),t.setAttribute("src",i),r.default.send(e,t)}t.default={print:function(e,t){if(e.base64){var n=Uint8Array.from(atob(e.printable),(function(e){return e.charCodeAt(0)}));o(e,t,n)}else{e.printable=/^(blob|http|\/\/)/i.test(e.printable)?e.printable:window.location.origin+("/"!==e.printable.charAt(0)?"/"+e.printable:e.printable);var r=new window.XMLHttpRequest;r.responseType="arraybuffer",r.addEventListener("error",(function(){Object(i.cleanUp)(e),e.onError(r.statusText,r)})),r.addEventListener("load",(function(){if(-1===[200,201].indexOf(r.status))return Object(i.cleanUp)(e),void e.onError(r.statusText,r);o(e,t,r.response)})),r.open("GET",e.printable,!0),r.send()}}}},"./src/js/print.js":function(e,t,n){"use strict";n.r(t);var r=n("./src/js/browser.js"),i=n("./src/js/functions.js"),o={send:function(e,t){document.getElementsByTagName("body")[0].appendChild(t);var n=document.getElementById(e.frameId);n.onload=function(){if("pdf"!==e.type){var t=n.contentWindow||n.contentDocument;if(t.document&&(t=t.document),t.body.appendChild(e.printableElement),"pdf"!==e.type&&e.style){var i=document.createElement("style");i.innerHTML=e.style,t.head.appendChild(i)}var o=t.getElementsByTagName("img");o.length>0?function(e){var t=e.map((function(e){if(e.src&&e.src!==window.location.href)return function(e){return new Promise((function(t){!function n(){e&&"undefined"!==typeof e.naturalWidth&&0!==e.naturalWidth&&e.complete?t():setTimeout(n,500)}()}))}(e)}));return Promise.all(t)}(Array.from(o)).then((function(){return a(n,e)})):a(n,e)}else r.default.isFirefox()?setTimeout((function(){return a(n,e)}),1e3):a(n,e)}}};function a(e,t){try{if(e.focus(),r.default.isEdge()||r.default.isIE())try{e.contentWindow.document.execCommand("print",!1,null)}catch(n){e.contentWindow.print()}else e.contentWindow.print()}catch(o){t.onError(o)}finally{r.default.isFirefox()&&(e.style.visibility="hidden",e.style.left="-1px"),Object(i.cleanUp)(t)}}t.default=o},"./src/js/raw-html.js":function(e,t,n){"use strict";n.r(t);var r=n("./src/js/print.js");t.default={print:function(e,t){e.printableElement=document.createElement("div"),e.printableElement.setAttribute("style","width:100%"),e.printableElement.innerHTML=e.printable,r.default.send(e,t)}}},"./src/sass/index.scss":function(e,t,n){},0:function(e,t,n){e.exports=n("./src/index.js")}}).default},e.exports=t()},888:function(e,t,n){"use strict";var r=n(9047);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},2007:function(e,t,n){e.exports=n(888)()},9047:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4463:function(e,t,n){"use strict";var r=n(2791),i=n(5296);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,l={};function s(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},p={};function v(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new v(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){m[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=m.hasOwnProperty(t)?m[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.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,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(p,e)||!d.call(h,e)&&(f.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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);m[t]=new v(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);m[t]=new v(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);m[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),S=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),R=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),L=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var Z=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var I=Symbol.iterator;function D(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=I&&e[I]||e["@@iterator"])?e:null}var j,A=Object.assign;function N(e){if(void 0===j)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);j=t&&t[1]||""}return"\n"+j+e}var F=!1;function z(e,t){if(!e||F)return"";F=!0;var n=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 r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var i=c.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,l=o.length-1;1<=a&&0<=l&&i[a]!==o[l];)l--;for(;1<=a&&0<=l;a--,l--)if(i[a]!==o[l]){if(1!==a||1!==l)do{if(a--,0>--l||i[a]!==o[l]){var s="\n"+i[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?N(e):""}function B(e){switch(e.tag){case 5:return N(e.type);case 16:return N("Lazy");case 13:return N("Suspense");case 19:return N("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function H(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 x:return"Fragment";case S:return"Portal";case k:return"Profiler";case C:return"StrictMode";case P:return"Suspense";case T:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case R:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case O:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case M:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case L:t=e._payload,e=e._init;try{return H(e(t))}catch(n){}}return null}function W(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 H(t);case 8:return t===C?"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 V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(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 n=t.checked;return A({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=U(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function $(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){$(e,t);var n=U(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,U(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Q(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+U(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return A({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:U(n)}}function oe(e,t){var n=U(t.value),r=U(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(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 se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(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,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={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},pe=["Webkit","ms","Moz","O"];function ve(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=ve(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ge=A({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(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(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 _e=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,xe=null,Ce=null;function ke(e){if(e=bi(e)){if("function"!==typeof Se)throw Error(o(280));var t=e.stateNode;t&&(t=wi(t),Se(e.stateNode,e.type,t))}}function Ee(e){xe?Ce?Ce.push(e):Ce=[e]:xe=e}function Re(){if(xe){var e=xe,t=Ce;if(Ce=xe=null,ke(e),t)for(e=0;e<t.length;e++)ke(t[e])}}function Oe(e,t){return e(t)}function Pe(){}var Te=!1;function Me(e,t,n){if(Te)return e(t,n);Te=!0;try{return Oe(e,t,n)}finally{Te=!1,(null!==xe||null!==Ce)&&(Pe(),Re())}}function Le(e,t){var n=e.stateNode;if(null===n)return null;var r=wi(n);if(null===r)return null;n=r[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":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Ze=!1;if(u)try{var Ie={};Object.defineProperty(Ie,"passive",{get:function(){Ze=!0}}),window.addEventListener("test",Ie,Ie),window.removeEventListener("test",Ie,Ie)}catch(ue){Ze=!1}function De(e,t,n,r,i,o,a,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var je=!1,Ae=null,Ne=!1,Fe=null,ze={onError:function(e){je=!0,Ae=e}};function Be(e,t,n,r,i,o,a,l,s){je=!1,Ae=null,De.apply(ze,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(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(He(e)!==e)throw Error(o(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Ue(i),e;if(a===r)return Ue(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var l=!1,s=i.child;s;){if(s===n){l=!0,n=i,r=a;break}if(s===r){l=!0,r=i,n=a;break}s=s.sibling}if(!l){for(s=a.child;s;){if(s===n){l=!0,n=a,r=i;break}if(s===r){l=!0,r=a,n=i;break}s=s.sibling}if(!l)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var Ke=i.unstable_scheduleCallback,Ye=i.unstable_cancelCallback,Ge=i.unstable_shouldYield,Xe=i.unstable_requestPaint,$e=i.unstable_now,Je=i.unstable_getCurrentPriorityLevel,Qe=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/st|0)|0},lt=Math.log,st=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 ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~i;0!==l?r=dt(l):0!==(o&=a)&&(r=dt(o))}else 0!==(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function ht(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 pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function vt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function _t(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var wt,St,xt,Ct,kt,Et=!1,Rt=[],Ot=null,Pt=null,Tt=null,Mt=new Map,Lt=new Map,Zt=[],It="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 Dt(e,t){switch(e){case"focusin":case"focusout":Ot=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":Mt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lt.delete(t.pointerId)}}function jt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&St(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function At(e){var t=yi(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void kt(e.priority,(function(){xt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Nt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);_e=r,n.target.dispatchEvent(r),_e=null,t.shift()}return!0}function Ft(e,t,n){Nt(e)&&n.delete(t)}function zt(){Et=!1,null!==Ot&&Nt(Ot)&&(Ot=null),null!==Pt&&Nt(Pt)&&(Pt=null),null!==Tt&&Nt(Tt)&&(Tt=null),Mt.forEach(Ft),Lt.forEach(Ft)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,Et||(Et=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,zt)))}function Ht(e){function t(t){return Bt(t,e)}if(0<Rt.length){Bt(Rt[0],e);for(var n=1;n<Rt.length;n++){var r=Rt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ot&&Bt(Ot,e),null!==Pt&&Bt(Pt,e),null!==Tt&&Bt(Tt,e),Mt.forEach(t),Lt.forEach(t),n=0;n<Zt.length;n++)(r=Zt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Zt.length&&null===(n=Zt[0]).blockedOn;)At(n),null===n.blockedOn&&Zt.shift()}var Wt=_.ReactCurrentBatchConfig,Ut=!0;function Vt(e,t,n,r){var i=bt,o=Wt.transition;Wt.transition=null;try{bt=1,Kt(e,t,n,r)}finally{bt=i,Wt.transition=o}}function qt(e,t,n,r){var i=bt,o=Wt.transition;Wt.transition=null;try{bt=4,Kt(e,t,n,r)}finally{bt=i,Wt.transition=o}}function Kt(e,t,n,r){if(Ut){var i=Gt(e,t,n,r);if(null===i)Ur(e,t,r,Yt,n),Dt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Ot=jt(Ot,e,t,n,r,i),!0;case"dragenter":return Pt=jt(Pt,e,t,n,r,i),!0;case"mouseover":return Tt=jt(Tt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Mt.set(o,jt(Mt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Lt.set(o,jt(Lt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Dt(e,r),4&t&&-1<It.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&wt(o),null===(o=Gt(e,t,n,r))&&Ur(e,t,r,Yt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Ur(e,t,r,null,n)}}var Yt=null;function Gt(e,t,n,r){if(Yt=null,null!==(e=yi(e=we(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Xt(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 Qe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var $t=null,Jt=null,Qt=null;function en(){if(Qt)return Qt;var e,t,n=Jt,r=n.length,i="value"in $t?$t.value:$t.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Qt=i.slice(e,1<t?1-t:void 0)}function tn(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 nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return A(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=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,sn,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=A({},cn,{view:0,detail:0}),fn=on(dn),hn=A({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,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!==sn&&(sn&&"mousemove"===e.type?(an=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),pn=on(hn),vn=on(A({},hn,{dataTransfer:0})),mn=on(A({},dn,{relatedTarget:0})),gn=on(A({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=A({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),_n=on(A({},cn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={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"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function kn(){return Cn}var En=A({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Rn=on(En),On=on(A({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=on(A({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),Tn=on(A({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mn=A({},hn,{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}),Ln=on(Mn),Zn=[9,13,27,32],In=u&&"CompositionEvent"in window,Dn=null;u&&"documentMode"in document&&(Dn=document.documentMode);var jn=u&&"TextEvent"in window&&!Dn,An=u&&(!In||Dn&&8<Dn&&11>=Dn),Nn=String.fromCharCode(32),Fn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Zn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var Wn={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 Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Vn(e,t,n,r){Ee(r),0<(t=qr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,Kn=null;function Yn(e){Nr(e,0)}function Gn(e){if(K(_i(e)))return e}function Xn(e,t){if("change"===e)return t}var $n=!1;if(u){var Jn;if(u){var Qn="oninput"in document;if(!Qn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Qn="function"===typeof er.oninput}Jn=Qn}else Jn=!1;$n=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),Kn=qn=null)}function nr(e){if("value"===e.propertyName&&Gn(Kn)){var t=[];Vn(t,Kn,e,we(e)),Me(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(Kn)}function or(e,t){if("click"===e)return Gn(t)}function ar(e,t){if("input"===e||"change"===e)return Gn(t)}var lr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function sr(e,t){if(lr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!lr(e[i],t[i]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function hr(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 pr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=ur(n,o);var a=ur(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var vr=u&&"documentMode"in document&&11>=document.documentMode,mr=null,gr=null,yr=null,br=!1;function _r(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==mr||mr!==Y(r)||("selectionStart"in(r=mr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&sr(yr,r)||(yr=r,0<(r=qr(gr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},xr={},Cr={};function kr(e){if(xr[e])return xr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return xr[e]=n[t];return e}u&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var Er=kr("animationend"),Rr=kr("animationiteration"),Or=kr("animationstart"),Pr=kr("transitionend"),Tr=new Map,Mr="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 Lr(e,t){Tr.set(e,t),s(t,[e])}for(var Zr=0;Zr<Mr.length;Zr++){var Ir=Mr[Zr];Lr(Ir.toLowerCase(),"on"+(Ir[0].toUpperCase()+Ir.slice(1)))}Lr(Er,"onAnimationEnd"),Lr(Rr,"onAnimationIteration"),Lr(Or,"onAnimationStart"),Lr("dblclick","onDoubleClick"),Lr("focusin","onFocus"),Lr("focusout","onBlur"),Lr(Pr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dr="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(" "),jr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dr));function Ar(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,l,s,c){if(Be.apply(this,arguments),je){if(!je)throw Error(o(198));var u=Ae;je=!1,Ae=null,Ne||(Ne=!0,Fe=u)}}(r,t,void 0,e),e.currentTarget=null}function Nr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==o&&i.isPropagationStopped())break e;Ar(i,l,c),o=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,c=l.currentTarget,l=l.listener,s!==o&&i.isPropagationStopped())break e;Ar(i,l,c),o=s}}}if(Ne)throw e=Fe,Ne=!1,Fe=null,e}function Fr(e,t){var n=t[vi];void 0===n&&(n=t[vi]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[Br]){e[Br]=!0,a.forEach((function(t){"selectionchange"!==t&&(jr.has(t)||zr(t,!1,e),zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,zr("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Xt(t)){case 1:var i=Vt;break;case 4:i=qt;break;default:i=Kt}n=i.bind(null,t,n,e),i=void 0,!Ze||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Ur(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===i||8===l.nodeType&&l.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===i||8===s.nodeType&&s.parentNode===i))return;a=a.return}for(;null!==l;){if(null===(a=yi(l)))return;if(5===(s=a.tag)||6===s){r=o=a;continue e}l=l.parentNode}}r=r.return}Me((function(){var r=o,i=we(n),a=[];e:{var l=Tr.get(e);if(void 0!==l){var s=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=Rn;break;case"focusin":c="focus",s=mn;break;case"focusout":c="blur",s=mn;break;case"beforeblur":case"afterblur":s=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Pn;break;case Er:case Rr:case Or:s=gn;break;case Pr:s=Tn;break;case"scroll":s=fn;break;case"wheel":s=Ln;break;case"copy":case"cut":case"paste":s=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=On}var u=0!==(4&t),d=!u&&"scroll"===e,f=u?null!==l?l+"Capture":null:l;u=[];for(var h,p=r;null!==p;){var v=(h=p).stateNode;if(5===h.tag&&null!==v&&(h=v,null!==f&&(null!=(v=Le(p,f))&&u.push(Vr(p,v,h)))),d)break;p=p.return}0<u.length&&(l=new s(l,c,null,n,i),a.push({event:l,listeners:u}))}}if(0===(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===_e||!(c=n.relatedTarget||n.fromElement)||!yi(c)&&!c[pi])&&(s||l)&&(l=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(c=(c=n.relatedTarget||n.toElement)?yi(c):null)&&(c!==(d=He(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=pn,v="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=On,v="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==s?l:_i(s),h=null==c?l:_i(c),(l=new u(v,p+"leave",s,n,i)).target=d,l.relatedTarget=h,v=null,yi(i)===r&&((u=new u(f,p+"enter",c,n,i)).target=h,u.relatedTarget=d,v=u),d=v,s&&c)e:{for(f=c,p=0,h=u=s;h;h=Kr(h))p++;for(h=0,v=f;v;v=Kr(v))h++;for(;0<p-h;)u=Kr(u),p--;for(;0<h-p;)f=Kr(f),h--;for(;p--;){if(u===f||null!==f&&u===f.alternate)break e;u=Kr(u),f=Kr(f)}u=null}else u=null;null!==s&&Yr(a,l,s,u,!1),null!==c&&null!==d&&Yr(a,d,c,u,!0)}if("select"===(s=(l=r?_i(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var m=Xn;else if(Un(l))if($n)m=ar;else{m=ir;var g=rr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(m=or);switch(m&&(m=m(e,r))?Vn(a,m,n,i):(g&&g(e,l,r),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&ee(l,"number",l.value)),g=r?_i(r):window,e){case"focusin":(Un(g)||"true"===g.contentEditable)&&(mr=g,gr=r,yr=null);break;case"focusout":yr=gr=mr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,_r(a,n,i);break;case"selectionchange":if(vr)break;case"keydown":case"keyup":_r(a,n,i)}var y;if(In)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 Hn?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(An&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(y=en()):(Jt="value"in($t=i)?$t.value:$t.textContent,Hn=!0)),0<(g=qr(r,b)).length&&(b=new _n(b,e,null,n,i),a.push({event:b,listeners:g}),y?b.data=y:null!==(y=Bn(n))&&(b.data=y))),(y=jn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Fn=!0,Nn);case"textInput":return(e=t.data)===Nn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!In&&zn(e,t)?(e=en(),Qt=Jt=$t=null,Hn=!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 An&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=qr(r,"onBeforeInput")).length&&(i=new _n("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y))}Nr(a,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Le(e,n))&&r.unshift(Vr(e,o,i)),null!=(o=Le(e,t))&&r.push(Vr(e,o,i))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==c&&(l=c,i?null!=(s=Le(n,o))&&a.unshift(Vr(n,s,l)):i||null!=(s=Le(n,o))&&a.push(Vr(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Gr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function $r(e){return("string"===typeof e?e:""+e).replace(Gr,"\n").replace(Xr,"")}function Jr(e,t,n){if(t=$r(t),$r(e)!==t&&n)throw Error(o(425))}function Qr(){}var ei=null,ti=null;function ni(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 ri="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,oi="function"===typeof Promise?Promise:void 0,ai="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof oi?function(e){return oi.resolve(null).then(e).catch(li)}:ri;function li(e){setTimeout((function(){throw e}))}function si(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Ht(t)}function ci(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 ui(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),fi="__reactFiber$"+di,hi="__reactProps$"+di,pi="__reactContainer$"+di,vi="__reactEvents$"+di,mi="__reactListeners$"+di,gi="__reactHandles$"+di;function yi(e){var t=e[fi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pi]||n[fi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ui(e);null!==e;){if(n=e[fi])return n;e=ui(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[fi]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _i(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function wi(e){return e[hi]||null}var Si=[],xi=-1;function Ci(e){return{current:e}}function ki(e){0>xi||(e.current=Si[xi],Si[xi]=null,xi--)}function Ei(e,t){xi++,Si[xi]=e.current,e.current=t}var Ri={},Oi=Ci(Ri),Pi=Ci(!1),Ti=Ri;function Mi(e,t){var n=e.type.contextTypes;if(!n)return Ri;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Li(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Zi(){ki(Pi),ki(Oi)}function Ii(e,t,n){if(Oi.current!==Ri)throw Error(o(168));Ei(Oi,t),Ei(Pi,n)}function Di(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,W(e)||"Unknown",i));return A({},n,r)}function ji(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ri,Ti=Oi.current,Ei(Oi,e),Ei(Pi,Pi.current),!0}function Ai(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Di(e,t,Ti),r.__reactInternalMemoizedMergedChildContext=e,ki(Pi),ki(Oi),Ei(Oi,e)):ki(Pi),Ei(Pi,n)}var Ni=null,Fi=!1,zi=!1;function Bi(e){null===Ni?Ni=[e]:Ni.push(e)}function Hi(){if(!zi&&null!==Ni){zi=!0;var e=0,t=bt;try{var n=Ni;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ni=null,Fi=!1}catch(i){throw null!==Ni&&(Ni=Ni.slice(e+1)),Ke(Qe,Hi),i}finally{bt=t,zi=!1}}return null}var Wi=[],Ui=0,Vi=null,qi=0,Ki=[],Yi=0,Gi=null,Xi=1,$i="";function Ji(e,t){Wi[Ui++]=qi,Wi[Ui++]=Vi,Vi=e,qi=t}function Qi(e,t,n){Ki[Yi++]=Xi,Ki[Yi++]=$i,Ki[Yi++]=Gi,Gi=e;var r=Xi;e=$i;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Xi=1<<32-at(t)+i|n<<i|r,$i=o+e}else Xi=1<<o|n<<i|r,$i=e}function eo(e){null!==e.return&&(Ji(e,1),Qi(e,1,0))}function to(e){for(;e===Vi;)Vi=Wi[--Ui],Wi[Ui]=null,qi=Wi[--Ui],Wi[Ui]=null;for(;e===Gi;)Gi=Ki[--Yi],Ki[Yi]=null,$i=Ki[--Yi],Ki[Yi]=null,Xi=Ki[--Yi],Ki[Yi]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Lc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function lo(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Gi?{id:Xi,overflow:$i}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Lc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function so(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function co(e){if(io){var t=ro;if(t){var n=t;if(!lo(e,t)){if(so(e))throw Error(o(418));t=ci(n.nextSibling);var r=no;t&&lo(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(so(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function fo(e){if(e!==no)return!1;if(!io)return uo(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(so(e))throw ho(),Error(o(418));for(;t;)ao(e,t),t=ci(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ci(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ci(e.stateNode.nextSibling):null;return!0}function ho(){for(var e=ro;e;)e=ci(e.nextSibling)}function po(){ro=no=null,io=!1}function vo(e){null===oo?oo=[e]:oo.push(e)}var mo=_.ReactCurrentBatchConfig;function go(e,t){if(e&&e.defaultProps){for(var n in t=A({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var yo=Ci(null),bo=null,_o=null,wo=null;function So(){wo=_o=bo=null}function xo(e){var t=yo.current;ki(yo),e._currentValue=t}function Co(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ko(e,t){bo=e,wo=_o=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(_l=!0),e.firstContext=null)}function Eo(e){var t=e._currentValue;if(wo!==e)if(e={context:e,memoizedValue:t,next:null},null===_o){if(null===bo)throw Error(o(308));_o=e,bo.dependencies={lanes:0,firstContext:e}}else _o=_o.next=e;return t}var Ro=null;function Oo(e){null===Ro?Ro=[e]:Ro.push(e)}function Po(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Oo(t)):(n.next=i.next,i.next=n),t.interleaved=n,To(e,r)}function To(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Mo=!1;function Lo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Zo(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 Io(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Do(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Ps)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,To(e,n)}return null===(i=r.interleaved)?(t.next=t,Oo(r)):(t.next=i.next,i.next=t),r.interleaved=t,To(e,n)}function jo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Ao(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function No(e,t,n,r){var i=e.updateQueue;Mo=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var s=l,c=s.next;s.next=null,null===a?o=c:a.next=c,a=s;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s))}if(null!==o){var d=i.baseState;for(a=0,u=c=s=null,l=o;;){var f=l.lane,h=l.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:h,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var p=e,v=l;switch(f=t,h=n,v.tag){case 1:if("function"===typeof(p=v.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(f="function"===typeof(p=v.payload)?p.call(h,d,f):p)||void 0===f)break e;d=A({},d,f);break e;case 2:Mo=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[l]:f.push(l))}else h={eventTime:h,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=h,s=d):u=u.next=h,a|=f;if(null===(l=l.next)){if(null===(l=i.shared.pending))break;l=(f=l).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===u&&(s=d),i.baseState=s,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);As|=a,e.lanes=a,e.memoizedState=d}}function Fo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(o(191,i));i.call(r)}}}var zo=(new r.Component).refs;function Bo(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:A({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Ho={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),i=nc(e),o=Io(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Do(e,o,i))&&(rc(t,e,i,r),jo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),i=nc(e),o=Io(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Do(e,o,i))&&(rc(t,e,i,r),jo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),i=Io(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=Do(e,i,r))&&(rc(t,e,r,n),jo(t,e,r))}};function Wo(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(i,o))}function Uo(e,t,n){var r=!1,i=Ri,o=t.contextType;return"object"===typeof o&&null!==o?o=Eo(o):(i=Li(t)?Ti:Oi.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Mi(e,i):Ri),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ho,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Vo(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ho.enqueueReplaceState(t,t.state,null)}function qo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=zo,Lo(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=Eo(o):(o=Li(t)?Ti:Oi.current,i.context=Mi(e,o)),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(Bo(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Ho.enqueueReplaceState(i,i.state,null),No(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function Ko(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;t===zo&&(t=i.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Yo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Go(e){return(0,e._init)(e._payload)}function Xo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(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 i(e,t){return(e=Ic(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Nc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===L&&Go(o)===t.type)?((r=i(t,n.props)).ref=Ko(e,t,n),r.return=e,r):((r=Dc(n.type,n.key,n.props,null,e.mode,r)).ref=Ko(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=jc(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Nc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Dc(t.type,t.key,t.props,null,e.mode,n)).ref=Ko(e,null,t),n.return=e,n;case S:return(t=Fc(t,e.mode,n)).return=e,t;case L:return f(e,(0,t._init)(t._payload),n)}if(te(t)||D(t))return(t=jc(t,e.mode,n,null)).return=e,t;Yo(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:s(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===i?c(e,t,n,r):null;case S:return n.key===i?u(e,t,n,r):null;case L:return h(e,t,(i=n._init)(n._payload),r)}if(te(n)||D(n))return null!==i?null:d(e,t,n,r,null);Yo(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case w:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case S:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case L:return p(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||D(r))return d(t,e=e.get(n)||null,r,i,null);Yo(t,r)}return null}function v(i,o,l,s){for(var c=null,u=null,d=o,v=o=0,m=null;null!==d&&v<l.length;v++){d.index>v?(m=d,d=null):m=d.sibling;var g=h(i,d,l[v],s);if(null===g){null===d&&(d=m);break}e&&d&&null===g.alternate&&t(i,d),o=a(g,o,v),null===u?c=g:u.sibling=g,u=g,d=m}if(v===l.length)return n(i,d),io&&Ji(i,v),c;if(null===d){for(;v<l.length;v++)null!==(d=f(i,l[v],s))&&(o=a(d,o,v),null===u?c=d:u.sibling=d,u=d);return io&&Ji(i,v),c}for(d=r(i,d);v<l.length;v++)null!==(m=p(d,i,v,l[v],s))&&(e&&null!==m.alternate&&d.delete(null===m.key?v:m.key),o=a(m,o,v),null===u?c=m:u.sibling=m,u=m);return e&&d.forEach((function(e){return t(i,e)})),io&&Ji(i,v),c}function m(i,l,s,c){var u=D(s);if("function"!==typeof u)throw Error(o(150));if(null==(s=u.call(s)))throw Error(o(151));for(var d=u=null,v=l,m=l=0,g=null,y=s.next();null!==v&&!y.done;m++,y=s.next()){v.index>m?(g=v,v=null):g=v.sibling;var b=h(i,v,y.value,c);if(null===b){null===v&&(v=g);break}e&&v&&null===b.alternate&&t(i,v),l=a(b,l,m),null===d?u=b:d.sibling=b,d=b,v=g}if(y.done)return n(i,v),io&&Ji(i,m),u;if(null===v){for(;!y.done;m++,y=s.next())null!==(y=f(i,y.value,c))&&(l=a(y,l,m),null===d?u=y:d.sibling=y,d=y);return io&&Ji(i,m),u}for(v=r(i,v);!y.done;m++,y=s.next())null!==(y=p(v,i,m,y.value,c))&&(e&&null!==y.alternate&&v.delete(null===y.key?m:y.key),l=a(y,l,m),null===d?u=y:d.sibling=y,d=y);return e&&v.forEach((function(e){return t(i,e)})),io&&Ji(i,m),u}return function e(r,o,a,s){if("object"===typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var c=a.key,u=o;null!==u;){if(u.key===c){if((c=a.type)===x){if(7===u.tag){n(r,u.sibling),(o=i(u,a.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===L&&Go(c)===u.type){n(r,u.sibling),(o=i(u,a.props)).ref=Ko(r,u,a),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===x?((o=jc(a.props.children,r.mode,s,a.key)).return=r,r=o):((s=Dc(a.type,a.key,a.props,null,r.mode,s)).ref=Ko(r,o,a),s.return=r,r=s)}return l(r);case S:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Fc(a,r.mode,s)).return=r,r=o}return l(r);case L:return e(r,o,(u=a._init)(a._payload),s)}if(te(a))return v(r,o,a,s);if(D(a))return m(r,o,a,s);Yo(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Nc(a,r.mode,s)).return=r,r=o),l(r)):n(r,o)}}var $o=Xo(!0),Jo=Xo(!1),Qo={},ea=Ci(Qo),ta=Ci(Qo),na=Ci(Qo);function ra(e){if(e===Qo)throw Error(o(174));return e}function ia(e,t){switch(Ei(na,t),Ei(ta,e),Ei(ea,Qo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ki(ea),Ei(ea,t)}function oa(){ki(ea),ki(ta),ki(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=se(t,e.type);t!==n&&(Ei(ta,e),Ei(ea,n))}function la(e){ta.current===e&&(ki(ea),ki(ta))}var sa=Ci(0);function ca(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.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 ua=[];function da(){for(var e=0;e<ua.length;e++)ua[e]._workInProgressVersionPrimary=null;ua.length=0}var fa=_.ReactCurrentDispatcher,ha=_.ReactCurrentBatchConfig,pa=0,va=null,ma=null,ga=null,ya=!1,ba=!1,_a=0,wa=0;function Sa(){throw Error(o(321))}function xa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function Ca(e,t,n,r,i,a){if(pa=a,va=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fa.current=null===e||null===e.memoizedState?ll:sl,e=n(r,i),ba){a=0;do{if(ba=!1,_a=0,25<=a)throw Error(o(301));a+=1,ga=ma=null,t.updateQueue=null,fa.current=cl,e=n(r,i)}while(ba)}if(fa.current=al,t=null!==ma&&null!==ma.next,pa=0,ga=ma=va=null,ya=!1,t)throw Error(o(300));return e}function ka(){var e=0!==_a;return _a=0,e}function Ea(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ga?va.memoizedState=ga=e:ga=ga.next=e,ga}function Ra(){if(null===ma){var e=va.alternate;e=null!==e?e.memoizedState:null}else e=ma.next;var t=null===ga?va.memoizedState:ga.next;if(null!==t)ga=t,ma=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ma=e).memoizedState,baseState:ma.baseState,baseQueue:ma.baseQueue,queue:ma.queue,next:null},null===ga?va.memoizedState=ga=e:ga=ga.next=e}return ga}function Oa(e,t){return"function"===typeof t?t(e):t}function Pa(e){var t=Ra(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=ma,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var l=i.next;i.next=a.next,a.next=l}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var s=l=null,c=null,u=a;do{var d=u.lane;if((pa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(s=c=f,l=r):c=c.next=f,va.lanes|=d,As|=d}u=u.next}while(null!==u&&u!==a);null===c?l=r:c.next=s,lr(r,t.memoizedState)||(_l=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,va.lanes|=a,As|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ta(e){var t=Ra(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var l=i=i.next;do{a=e(a,l.action),l=l.next}while(l!==i);lr(a,t.memoizedState)||(_l=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ma(){}function La(e,t){var n=va,r=Ra(),i=t(),a=!lr(r.memoizedState,i);if(a&&(r.memoizedState=i,_l=!0),r=r.queue,Ua(Da.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ga&&1&ga.memoizedState.tag){if(n.flags|=2048,Fa(9,Ia.bind(null,n,r,i,t),void 0,null),null===Ts)throw Error(o(349));0!==(30&pa)||Za(n,t,i)}return i}function Za(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=va.updateQueue)?(t={lastEffect:null,stores:null},va.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ia(e,t,n,r){t.value=n,t.getSnapshot=r,ja(t)&&Aa(e)}function Da(e,t,n){return n((function(){ja(t)&&Aa(e)}))}function ja(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(r){return!0}}function Aa(e){var t=To(e,1);null!==t&&rc(t,e,1,-1)}function Na(e){var t=Ea();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Oa,lastRenderedState:e},t.queue=e,e=e.dispatch=nl.bind(null,va,e),[t.memoizedState,e]}function Fa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=va.updateQueue)?(t={lastEffect:null,stores:null},va.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function za(){return Ra().memoizedState}function Ba(e,t,n,r){var i=Ea();va.flags|=e,i.memoizedState=Fa(1|t,n,void 0,void 0===r?null:r)}function Ha(e,t,n,r){var i=Ra();r=void 0===r?null:r;var o=void 0;if(null!==ma){var a=ma.memoizedState;if(o=a.destroy,null!==r&&xa(r,a.deps))return void(i.memoizedState=Fa(t,n,o,r))}va.flags|=e,i.memoizedState=Fa(1|t,n,o,r)}function Wa(e,t){return Ba(8390656,8,e,t)}function Ua(e,t){return Ha(2048,8,e,t)}function Va(e,t){return Ha(4,2,e,t)}function qa(e,t){return Ha(4,4,e,t)}function Ka(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 Ya(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ha(4,4,Ka.bind(null,t,e),n)}function Ga(){}function Xa(e,t){var n=Ra();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $a(e,t){var n=Ra();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ja(e,t,n){return 0===(21&pa)?(e.baseState&&(e.baseState=!1,_l=!0),e.memoizedState=n):(lr(n,t)||(n=vt(),va.lanes|=n,As|=n,e.baseState=!0),t)}function Qa(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ha.transition;ha.transition={};try{e(!1),t()}finally{bt=n,ha.transition=r}}function el(){return Ra().memoizedState}function tl(e,t,n){var r=nc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rl(e))il(t,n);else if(null!==(n=Po(e,t,n,r))){rc(n,e,r,tc()),ol(n,t,r)}}function nl(e,t,n){var r=nc(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rl(e))il(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=o(a,n);if(i.hasEagerState=!0,i.eagerState=l,lr(l,a)){var s=t.interleaved;return null===s?(i.next=i,Oo(t)):(i.next=s.next,s.next=i),void(t.interleaved=i)}}catch(c){}null!==(n=Po(e,t,i,r))&&(rc(n,e,r,i=tc()),ol(n,t,r))}}function rl(e){var t=e.alternate;return e===va||null!==t&&t===va}function il(e,t){ba=ya=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ol(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var al={readContext:Eo,useCallback:Sa,useContext:Sa,useEffect:Sa,useImperativeHandle:Sa,useInsertionEffect:Sa,useLayoutEffect:Sa,useMemo:Sa,useReducer:Sa,useRef:Sa,useState:Sa,useDebugValue:Sa,useDeferredValue:Sa,useTransition:Sa,useMutableSource:Sa,useSyncExternalStore:Sa,useId:Sa,unstable_isNewReconciler:!1},ll={readContext:Eo,useCallback:function(e,t){return Ea().memoizedState=[e,void 0===t?null:t],e},useContext:Eo,useEffect:Wa,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ba(4194308,4,Ka.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ba(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ba(4,2,e,t)},useMemo:function(e,t){var n=Ea();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ea();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tl.bind(null,va,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ea().memoizedState=e},useState:Na,useDebugValue:Ga,useDeferredValue:function(e){return Ea().memoizedState=e},useTransition:function(){var e=Na(!1),t=e[0];return e=Qa.bind(null,e[1]),Ea().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=va,i=Ea();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Ts)throw Error(o(349));0!==(30&pa)||Za(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Wa(Da.bind(null,r,a,e),[e]),r.flags|=2048,Fa(9,Ia.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Ea(),t=Ts.identifierPrefix;if(io){var n=$i;t=":"+t+"R"+(n=(Xi&~(1<<32-at(Xi)-1)).toString(32)+n),0<(n=_a++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sl={readContext:Eo,useCallback:Xa,useContext:Eo,useEffect:Ua,useImperativeHandle:Ya,useInsertionEffect:Va,useLayoutEffect:qa,useMemo:$a,useReducer:Pa,useRef:za,useState:function(){return Pa(Oa)},useDebugValue:Ga,useDeferredValue:function(e){return Ja(Ra(),ma.memoizedState,e)},useTransition:function(){return[Pa(Oa)[0],Ra().memoizedState]},useMutableSource:Ma,useSyncExternalStore:La,useId:el,unstable_isNewReconciler:!1},cl={readContext:Eo,useCallback:Xa,useContext:Eo,useEffect:Ua,useImperativeHandle:Ya,useInsertionEffect:Va,useLayoutEffect:qa,useMemo:$a,useReducer:Ta,useRef:za,useState:function(){return Ta(Oa)},useDebugValue:Ga,useDeferredValue:function(e){var t=Ra();return null===ma?t.memoizedState=e:Ja(t,ma.memoizedState,e)},useTransition:function(){return[Ta(Oa)[0],Ra().memoizedState]},useMutableSource:Ma,useSyncExternalStore:La,useId:el,unstable_isNewReconciler:!1};function ul(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function dl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fl(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var hl="function"===typeof WeakMap?WeakMap:Map;function pl(e,t,n){(n=Io(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vs||(Vs=!0,qs=r),fl(0,t)},n}function vl(e,t,n){(n=Io(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){fl(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){fl(0,t),"function"!==typeof r&&(null===Ks?Ks=new Set([this]):Ks.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ml(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hl;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Ec.bind(null,e,t,n),t.then(e,e))}function gl(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 yl(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Io(-1,1)).tag=2,Do(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var bl=_.ReactCurrentOwner,_l=!1;function wl(e,t,n,r){t.child=null===e?Jo(t,null,n,r):$o(t,e.child,n,r)}function Sl(e,t,n,r,i){n=n.render;var o=t.ref;return ko(t,i),r=Ca(e,t,n,r,o,i),n=ka(),null===e||_l?(io&&n&&eo(t),t.flags|=1,wl(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Vl(e,t,i))}function xl(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||Zc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Dc(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Cl(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(a,r)&&e.ref===t.ref)return Vl(e,t,i)}return t.flags|=1,(e=Ic(o,r)).ref=t.ref,e.return=t,t.child=e}function Cl(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(sr(o,r)&&e.ref===t.ref){if(_l=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Vl(e,t,i);0!==(131072&e.flags)&&(_l=!0)}}return Rl(e,t,n,r,i)}function kl(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ei(Is,Zs),Zs|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ei(Is,Zs),Zs|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Ei(Is,Zs),Zs|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ei(Is,Zs),Zs|=r;return wl(e,t,i,n),t.child}function El(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Rl(e,t,n,r,i){var o=Li(n)?Ti:Oi.current;return o=Mi(t,o),ko(t,i),n=Ca(e,t,n,r,o,i),r=ka(),null===e||_l?(io&&r&&eo(t),t.flags|=1,wl(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Vl(e,t,i))}function Ol(e,t,n,r,i){if(Li(n)){var o=!0;ji(t)}else o=!1;if(ko(t,i),null===t.stateNode)Ul(e,t),Uo(t,n,r),qo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=Eo(c):c=Mi(t,c=Li(n)?Ti:Oi.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==r||s!==c)&&Vo(t,a,r,c),Mo=!1;var f=t.memoizedState;a.state=f,No(t,r,a,i),s=t.memoizedState,l!==r||f!==s||Pi.current||Mo?("function"===typeof u&&(Bo(t,n,u,r),s=t.memoizedState),(l=Mo||Wo(t,n,l,r,f,s,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=c,r=l):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Zo(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:go(t.type,l),a.props=c,d=t.pendingProps,f=a.context,"object"===typeof(s=n.contextType)&&null!==s?s=Eo(s):s=Mi(t,s=Li(n)?Ti:Oi.current);var h=n.getDerivedStateFromProps;(u="function"===typeof h||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==d||f!==s)&&Vo(t,a,r,s),Mo=!1,f=t.memoizedState,a.state=f,No(t,r,a,i);var p=t.memoizedState;l!==d||f!==p||Pi.current||Mo?("function"===typeof h&&(Bo(t,n,h,r),p=t.memoizedState),(c=Mo||Wo(t,n,c,r,f,p,s)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,s),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,s)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=s,r=c):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Pl(e,t,n,r,o,i)}function Pl(e,t,n,r,i,o){El(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&Ai(t,n,!1),Vl(e,t,o);r=t.stateNode,bl.current=t;var l=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=$o(t,e.child,null,o),t.child=$o(t,null,l,o)):wl(e,t,l,o),t.memoizedState=r.state,i&&Ai(t,n,!0),t.child}function Tl(e){var t=e.stateNode;t.pendingContext?Ii(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ii(0,t.context,!1),ia(e,t.containerInfo)}function Ml(e,t,n,r,i){return po(),vo(i),t.flags|=256,wl(e,t,n,r),t.child}var Ll,Zl,Il,Dl,jl={dehydrated:null,treeContext:null,retryLane:0};function Al(e){return{baseLanes:e,cachePool:null,transitions:null}}function Nl(e,t,n){var r,i=t.pendingProps,a=sa.current,l=!1,s=0!==(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ei(sa,1&a),null===e)return co(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):(s=i.children,e=i.fallback,l?(i=t.mode,l=t.child,s={mode:"hidden",children:s},0===(1&i)&&null!==l?(l.childLanes=0,l.pendingProps=s):l=Ac(s,i,0,null),e=jc(e,i,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Al(n),t.memoizedState=jl,e):Fl(t,s));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,l){if(n)return 256&t.flags?(t.flags&=-257,zl(e,t,l,r=dl(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Ac({mode:"visible",children:r.children},i,0,null),(a=jc(a,i,l,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&$o(t,e.child,null,l),t.child.memoizedState=Al(l),t.memoizedState=jl,a);if(0===(1&t.mode))return zl(e,t,l,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var s=r.dgst;return r=s,zl(e,t,l,r=dl(a=Error(o(419)),r,void 0))}if(s=0!==(l&e.childLanes),_l||s){if(null!==(r=Ts)){switch(l&-l){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|l))?0:i)&&i!==a.retryLane&&(a.retryLane=i,To(e,i),rc(r,e,i,-1))}return mc(),zl(e,t,l,r=dl(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Oc.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=ci(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(Ki[Yi++]=Xi,Ki[Yi++]=$i,Ki[Yi++]=Gi,Xi=e.id,$i=e.overflow,Gi=t),t=Fl(t,r.children),t.flags|=4096,t)}(e,t,s,i,r,a,n);if(l){l=i.fallback,s=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:i.children};return 0===(1&s)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null):(i=Ic(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?l=Ic(r,l):(l=jc(l,s,n,null)).flags|=2,l.return=t,i.return=t,i.sibling=l,t.child=i,i=l,l=t.child,s=null===(s=e.child.memoizedState)?Al(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=jl,i}return e=(l=e.child).sibling,i=Ic(l,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Fl(e,t){return(t=Ac({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zl(e,t,n,r){return null!==r&&vo(r),$o(t,e.child,null,n),(e=Fl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Co(e.return,t,n)}function Hl(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Wl(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(wl(e,t,r.children,n),0!==(2&(r=sa.current)))r=1&r|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&&Bl(e,n,t);else if(19===e.tag)Bl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ei(sa,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ca(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Hl(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ca(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Hl(t,!0,n,null,o);break;case"together":Hl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ul(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),As|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Ic(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ic(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ql(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Kl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Yl(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kl(t),null;case 1:case 17:return Li(t.type)&&Zi(),Kl(t),null;case 3:return r=t.stateNode,oa(),ki(Pi),ki(Oi),da(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(lc(oo),oo=null))),Zl(e,t),Kl(t),null;case 5:la(t);var i=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)Il(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Kl(t),null}if(e=ra(ea.current),fo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[fi]=t,r[hi]=a,e=0!==(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(i=0;i<Dr.length;i++)Fr(Dr[i],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":X(r,a),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Fr("invalid",r);break;case"textarea":ie(r,a),Fr("invalid",r)}for(var s in ye(n,a),i=null,a)if(a.hasOwnProperty(s)){var c=a[s];"children"===s?"string"===typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),i=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),i=["children",""+c]):l.hasOwnProperty(s)&&null!=c&&"onScroll"===s&&Fr("scroll",r)}switch(n){case"input":q(r),Q(r,a,!0);break;case"textarea":q(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Qr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[fi]=t,e[hi]=r,Ll(e,t,!1,!1),t.stateNode=e;e:{switch(s=be(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),i=r;break;case"iframe":case"object":case"embed":Fr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Dr.length;i++)Fr(Dr[i],e);i=r;break;case"source":Fr("error",e),i=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),i=r;break;case"details":Fr("toggle",e),i=r;break;case"input":X(e,r),i=G(e,r),Fr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=A({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Fr("invalid",e)}for(a in ye(n,i),c=i)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?me(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"===typeof u?("textarea"!==n||""!==u)&&fe(e,u):"number"===typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Fr("scroll",e):null!=u&&b(e,a,u,s))}switch(n){case"input":q(e),Q(e,r,!1);break;case"textarea":q(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+U(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Qr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Kl(t),null;case 6:if(e&&null!=t.stateNode)Dl(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));if(n=ra(na.current),ra(ea.current),fo(t)){if(r=t.stateNode,n=t.memoizedProps,r[fi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Jr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fi]=t,t.stateNode=r}return Kl(t),null;case 13:if(ki(sa),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&0!==(1&t.mode)&&0===(128&t.flags))ho(),po(),t.flags|=98560,a=!1;else if(a=fo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[fi]=t}else po(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Kl(t),a=!1}else null!==oo&&(lc(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&sa.current)?0===Ds&&(Ds=3):mc())),null!==t.updateQueue&&(t.flags|=4),Kl(t),null);case 4:return oa(),Zl(e,t),null===e&&Hr(t.stateNode.containerInfo),Kl(t),null;case 10:return xo(t.type._context),Kl(t),null;case 19:if(ki(sa),null===(a=t.memoizedState))return Kl(t),null;if(r=0!==(128&t.flags),null===(s=a.rendering))if(r)ql(a,!1);else{if(0!==Ds||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=ca(e))){for(t.flags|=128,ql(a,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(s=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ei(sa,1&sa.current|2),t.child}e=e.sibling}null!==a.tail&&$e()>Ws&&(t.flags|=128,r=!0,ql(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ca(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ql(a,!0),null===a.tail&&"hidden"===a.tailMode&&!s.alternate&&!io)return Kl(t),null}else 2*$e()-a.renderingStartTime>Ws&&1073741824!==n&&(t.flags|=128,r=!0,ql(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=a.last)?n.sibling=s:t.child=s,a.last=s)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=$e(),t.sibling=null,n=sa.current,Ei(sa,r?1&n|2:1&n),t):(Kl(t),null);case 22:case 23:return fc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Zs)&&(Kl(t),6&t.subtreeFlags&&(t.flags|=8192)):Kl(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Gl(e,t){switch(to(t),t.tag){case 1:return Li(t.type)&&Zi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oa(),ki(Pi),ki(Oi),da(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return la(t),null;case 13:if(ki(sa),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));po()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ki(sa),null;case 4:return oa(),null;case 10:return xo(t.type._context),null;case 22:case 23:return fc(),null;default:return null}}Ll=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Zl=function(){},Il=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ra(ea.current);var o,a=null;switch(n){case"input":i=G(e,i),r=G(e,r),a=[];break;case"select":i=A({},i,{value:void 0}),r=A({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Qr)}for(u in ye(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var s=i[u];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(l.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(s=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(null!=c||null!=s))if("style"===u)if(s){for(o in s)!s.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&s[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(l.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Fr("scroll",e),a||s===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Dl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Xl=!1,$l=!1,Jl="function"===typeof WeakSet?WeakSet:Set,Ql=null;function es(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){kc(e,t,r)}else n.current=null}function ts(e,t,n){try{n()}catch(r){kc(e,t,r)}}var ns=!1;function rs(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&ts(t,n,o)}i=i.next}while(i!==r)}}function is(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function os(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function as(e){var t=e.alternate;null!==t&&(e.alternate=null,as(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fi],delete t[hi],delete t[vi],delete t[mi],delete t[gi])),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 ls(e){return 5===e.tag||3===e.tag||4===e.tag}function ss(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ls(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 cs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Qr));else if(4!==r&&null!==(e=e.child))for(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}function us(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}var ds=null,fs=!1;function hs(e,t,n){for(n=n.child;null!==n;)ps(e,t,n),n=n.sibling}function ps(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(l){}switch(n.tag){case 5:$l||es(n,t);case 6:var r=ds,i=fs;ds=null,hs(e,t,n),fs=i,null!==(ds=r)&&(fs?(e=ds,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ds.removeChild(n.stateNode));break;case 18:null!==ds&&(fs?(e=ds,n=n.stateNode,8===e.nodeType?si(e.parentNode,n):1===e.nodeType&&si(e,n),Ht(e)):si(ds,n.stateNode));break;case 4:r=ds,i=fs,ds=n.stateNode.containerInfo,fs=!0,hs(e,t,n),ds=r,fs=i;break;case 0:case 11:case 14:case 15:if(!$l&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&ts(n,t,a),i=i.next}while(i!==r)}hs(e,t,n);break;case 1:if(!$l&&(es(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){kc(n,t,l)}hs(e,t,n);break;case 21:hs(e,t,n);break;case 22:1&n.mode?($l=(r=$l)||null!==n.memoizedState,hs(e,t,n),$l=r):hs(e,t,n);break;default:hs(e,t,n)}}function vs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Jl),t.forEach((function(t){var r=Pc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ms(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:ds=s.stateNode,fs=!1;break e;case 3:case 4:ds=s.stateNode.containerInfo,fs=!0;break e}s=s.return}if(null===ds)throw Error(o(160));ps(a,l,i),ds=null,fs=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(u){kc(i,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gs(t,e),t=t.sibling}function gs(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ms(t,e),ys(e),4&r){try{rs(3,e,e.return),is(3,e)}catch(m){kc(e,e.return,m)}try{rs(5,e,e.return)}catch(m){kc(e,e.return,m)}}break;case 1:ms(t,e),ys(e),512&r&&null!==n&&es(n,n.return);break;case 5:if(ms(t,e),ys(e),512&r&&null!==n&&es(n,n.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(m){kc(e,e.return,m)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,l=null!==n?n.memoizedProps:a,s=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===s&&"radio"===a.type&&null!=a.name&&$(i,a),be(s,l);var u=be(s,a);for(l=0;l<c.length;l+=2){var d=c[l],f=c[l+1];"style"===d?me(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):b(i,d,f,u)}switch(s){case"input":J(i,a);break;case"textarea":oe(i,a);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(i,!!a.multiple,p,!1):h!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[hi]=a}catch(m){kc(e,e.return,m)}}break;case 6:if(ms(t,e),ys(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(m){kc(e,e.return,m)}}break;case 3:if(ms(t,e),ys(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(m){kc(e,e.return,m)}break;case 4:default:ms(t,e),ys(e);break;case 13:ms(t,e),ys(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Hs=$e())),4&r&&vs(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?($l=(u=$l)||d,ms(t,e),$l=u):ms(t,e),ys(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Ql=e,d=e.child;null!==d;){for(f=Ql=d;null!==Ql;){switch(p=(h=Ql).child,h.tag){case 0:case 11:case 14:case 15:rs(4,h,h.return);break;case 1:es(h,h.return);var v=h.stateNode;if("function"===typeof v.componentWillUnmount){r=h,n=h.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(m){kc(r,n,m)}}break;case 5:es(h,h.return);break;case 22:if(null!==h.memoizedState){Ss(f);continue}}null!==p?(p.return=h,Ql=p):Ss(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,u?"function"===typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=f.stateNode,l=void 0!==(c=f.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,s.style.display=ve("display",l))}catch(m){kc(e,e.return,m)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(m){kc(e,e.return,m)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ms(t,e),ys(e),4&r&&vs(e);case 21:}}function ys(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ls(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(fe(i,""),r.flags&=-33),us(e,ss(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;cs(e,ss(e),a);break;default:throw Error(o(161))}}catch(l){kc(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bs(e,t,n){Ql=e,_s(e,t,n)}function _s(e,t,n){for(var r=0!==(1&e.mode);null!==Ql;){var i=Ql,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Xl;if(!a){var l=i.alternate,s=null!==l&&null!==l.memoizedState||$l;l=Xl;var c=$l;if(Xl=a,($l=s)&&!c)for(Ql=i;null!==Ql;)s=(a=Ql).child,22===a.tag&&null!==a.memoizedState?xs(i):null!==s?(s.return=a,Ql=s):xs(i);for(;null!==o;)Ql=o,_s(o,t,n),o=o.sibling;Ql=i,Xl=l,$l=c}ws(e)}else 0!==(8772&i.subtreeFlags)&&null!==o?(o.return=i,Ql=o):ws(e)}}function ws(e){for(;null!==Ql;){var t=Ql;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:$l||is(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!$l)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:go(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Fo(t,a,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Fo(t,l,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.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 f=d.dehydrated;null!==f&&Ht(f)}}}break;default:throw Error(o(163))}$l||512&t.flags&&os(t)}catch(h){kc(t,t.return,h)}}if(t===e){Ql=null;break}if(null!==(n=t.sibling)){n.return=t.return,Ql=n;break}Ql=t.return}}function Ss(e){for(;null!==Ql;){var t=Ql;if(t===e){Ql=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ql=n;break}Ql=t.return}}function xs(e){for(;null!==Ql;){var t=Ql;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{is(4,t)}catch(s){kc(t,n,s)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(s){kc(t,i,s)}}var o=t.return;try{os(t)}catch(s){kc(t,o,s)}break;case 5:var a=t.return;try{os(t)}catch(s){kc(t,a,s)}}}catch(s){kc(t,t.return,s)}if(t===e){Ql=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Ql=l;break}Ql=t.return}}var Cs,ks=Math.ceil,Es=_.ReactCurrentDispatcher,Rs=_.ReactCurrentOwner,Os=_.ReactCurrentBatchConfig,Ps=0,Ts=null,Ms=null,Ls=0,Zs=0,Is=Ci(0),Ds=0,js=null,As=0,Ns=0,Fs=0,zs=null,Bs=null,Hs=0,Ws=1/0,Us=null,Vs=!1,qs=null,Ks=null,Ys=!1,Gs=null,Xs=0,$s=0,Js=null,Qs=-1,ec=0;function tc(){return 0!==(6&Ps)?$e():-1!==Qs?Qs:Qs=$e()}function nc(e){return 0===(1&e.mode)?1:0!==(2&Ps)&&0!==Ls?Ls&-Ls:null!==mo.transition?(0===ec&&(ec=vt()),ec):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Xt(e.type)}function rc(e,t,n,r){if(50<$s)throw $s=0,Js=null,Error(o(185));gt(e,n,r),0!==(2&Ps)&&e===Ts||(e===Ts&&(0===(2&Ps)&&(Ns|=n),4===Ds&&sc(e,Ls)),ic(e,r),1===n&&0===Ps&&0===(1&t.mode)&&(Ws=$e()+500,Fi&&Hi()))}function ic(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),l=1<<a,s=i[a];-1===s?0!==(l&n)&&0===(l&r)||(i[a]=ht(l,t)):s<=t&&(e.expiredLanes|=l),o&=~l}}(e,t);var r=ft(e,e===Ts?Ls:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){Fi=!0,Bi(e)}(cc.bind(null,e)):Bi(cc.bind(null,e)),ai((function(){0===(6&Ps)&&Hi()})),n=null;else{switch(_t(r)){case 1:n=Qe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Tc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Qs=-1,ec=0,0!==(6&Ps))throw Error(o(327));var n=e.callbackNode;if(xc()&&e.callbackNode!==n)return null;var r=ft(e,e===Ts?Ls:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=gc(e,r);else{t=r;var i=Ps;Ps|=2;var a=vc();for(Ts===e&&Ls===t||(Us=null,Ws=$e()+500,hc(e,t));;)try{bc();break}catch(s){pc(e,s)}So(),Es.current=a,Ps=i,null!==Ms?t=0:(Ts=null,Ls=0,t=Ds)}if(0!==t){if(2===t&&(0!==(i=pt(e))&&(r=i,t=ac(e,i))),1===t)throw n=js,hc(e,0),sc(e,r),ic(e,$e()),n;if(6===t)sc(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!lr(o(),i))return!1}catch(l){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=gc(e,r))&&(0!==(a=pt(e))&&(r=a,t=ac(e,a))),1===t))throw n=js,hc(e,0),sc(e,r),ic(e,$e()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:Sc(e,Bs,Us);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=Hs+500-$e())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&r)!==r){tc(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(Sc.bind(null,e,Bs,Us),t);break}Sc(e,Bs,Us);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var l=31-at(r);a=1<<l,(l=t[l])>i&&(i=l),r&=~a}if(r=i,10<(r=(120>(r=$e()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ks(r/1960))-r)){e.timeoutHandle=ri(Sc.bind(null,e,Bs,Us),r);break}Sc(e,Bs,Us);break;default:throw Error(o(329))}}}return ic(e,$e()),e.callbackNode===n?oc.bind(null,e):null}function ac(e,t){var n=zs;return e.current.memoizedState.isDehydrated&&(hc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Bs,Bs=n,null!==t&&lc(t)),e}function lc(e){null===Bs?Bs=e:Bs.push.apply(Bs,e)}function sc(e,t){for(t&=~Fs,t&=~Ns,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(0!==(6&Ps))throw Error(o(327));xc();var t=ft(e,0);if(0===(1&t))return ic(e,$e()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=ac(e,r))}if(1===n)throw n=js,hc(e,0),sc(e,t),ic(e,$e()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sc(e,Bs,Us),ic(e,$e()),null}function uc(e,t){var n=Ps;Ps|=1;try{return e(t)}finally{0===(Ps=n)&&(Ws=$e()+500,Fi&&Hi())}}function dc(e){null!==Gs&&0===Gs.tag&&0===(6&Ps)&&xc();var t=Ps;Ps|=1;var n=Os.transition,r=bt;try{if(Os.transition=null,bt=1,e)return e()}finally{bt=r,Os.transition=n,0===(6&(Ps=t))&&Hi()}}function fc(){Zs=Is.current,ki(Is)}function hc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Ms)for(n=Ms.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Zi();break;case 3:oa(),ki(Pi),ki(Oi),da();break;case 5:la(r);break;case 4:oa();break;case 13:case 19:ki(sa);break;case 10:xo(r.type._context);break;case 22:case 23:fc()}n=n.return}if(Ts=e,Ms=e=Ic(e.current,null),Ls=Zs=t,Ds=0,js=null,Fs=Ns=As=0,Bs=zs=null,null!==Ro){for(t=0;t<Ro.length;t++)if(null!==(r=(n=Ro[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Ro=null}return e}function pc(e,t){for(;;){var n=Ms;try{if(So(),fa.current=al,ya){for(var r=va.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ya=!1}if(pa=0,ga=ma=va=null,ba=!1,_a=0,Rs.current=null,null===n||null===n.return){Ds=1,js=t,Ms=null;break}e:{var a=e,l=n.return,s=n,c=t;if(t=Ls,s.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=s,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=gl(l);if(null!==p){p.flags&=-257,yl(p,l,s,0,t),1&p.mode&&ml(a,u,t),c=u;var v=(t=p).updateQueue;if(null===v){var m=new Set;m.add(c),t.updateQueue=m}else v.add(c);break e}if(0===(1&t)){ml(a,u,t),mc();break e}c=Error(o(426))}else if(io&&1&s.mode){var g=gl(l);if(null!==g){0===(65536&g.flags)&&(g.flags|=256),yl(g,l,s,0,t),vo(ul(c,s));break e}}a=c=ul(c,s),4!==Ds&&(Ds=2),null===zs?zs=[a]:zs.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Ao(a,pl(0,c,t));break e;case 1:s=c;var y=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Ks||!Ks.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Ao(a,vl(a,s,t));break e}}a=a.return}while(null!==a)}wc(n)}catch(_){t=_,Ms===n&&null!==n&&(Ms=n=n.return);continue}break}}function vc(){var e=Es.current;return Es.current=al,null===e?al:e}function mc(){0!==Ds&&3!==Ds&&2!==Ds||(Ds=4),null===Ts||0===(268435455&As)&&0===(268435455&Ns)||sc(Ts,Ls)}function gc(e,t){var n=Ps;Ps|=2;var r=vc();for(Ts===e&&Ls===t||(Us=null,hc(e,t));;)try{yc();break}catch(i){pc(e,i)}if(So(),Ps=n,Es.current=r,null!==Ms)throw Error(o(261));return Ts=null,Ls=0,Ds}function yc(){for(;null!==Ms;)_c(Ms)}function bc(){for(;null!==Ms&&!Ge();)_c(Ms)}function _c(e){var t=Cs(e.alternate,e,Zs);e.memoizedProps=e.pendingProps,null===t?wc(e):Ms=t,Rs.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Yl(n,t,Zs)))return void(Ms=n)}else{if(null!==(n=Gl(n,t)))return n.flags&=32767,void(Ms=n);if(null===e)return Ds=6,void(Ms=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Ms=t);Ms=t=e}while(null!==t);0===Ds&&(Ds=5)}function Sc(e,t,n){var r=bt,i=Os.transition;try{Os.transition=null,bt=1,function(e,t,n,r){do{xc()}while(null!==Gs);if(0!==(6&Ps))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Ts&&(Ms=Ts=null,Ls=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Ys||(Ys=!0,Tc(tt,(function(){return xc(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Os.transition,Os.transition=null;var l=bt;bt=1;var s=Ps;Ps|=4,Rs.current=null,function(e,t){if(ei=Ut,hr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(w){n=null;break e}var l=0,s=-1,c=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||0!==i&&3!==f.nodeType||(s=l+i),f!==a||0!==r&&3!==f.nodeType||(c=l+r),3===f.nodeType&&(l+=f.nodeValue.length),null!==(p=f.firstChild);)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++u===i&&(s=l),h===a&&++d===r&&(c=l),null!==(p=f.nextSibling))break;h=(f=h).parentNode}f=p}n=-1===s||-1===c?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Ut=!1,Ql=t;null!==Ql;)if(e=(t=Ql).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Ql=e;else for(;null!==Ql;){t=Ql;try{var v=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!==v){var m=v.memoizedProps,g=v.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:go(t.type,m),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;1===_.nodeType?_.textContent="":9===_.nodeType&&_.documentElement&&_.removeChild(_.documentElement);break;default:throw Error(o(163))}}catch(w){kc(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Ql=e;break}Ql=t.return}v=ns,ns=!1}(e,n),gs(n,e),pr(ti),Ut=!!ei,ti=ei=null,e.current=n,bs(n,e,i),Xe(),Ps=s,bt=l,Os.transition=a}else e.current=n;if(Ys&&(Ys=!1,Gs=e,Xs=i),a=e.pendingLanes,0===a&&(Ks=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),ic(e,$e()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Vs)throw Vs=!1,e=qs,qs=null,e;0!==(1&Xs)&&0!==e.tag&&xc(),a=e.pendingLanes,0!==(1&a)?e===Js?$s++:($s=0,Js=e):$s=0,Hi()}(e,t,n,r)}finally{Os.transition=i,bt=r}return null}function xc(){if(null!==Gs){var e=_t(Xs),t=Os.transition,n=bt;try{if(Os.transition=null,bt=16>e?16:e,null===Gs)var r=!1;else{if(e=Gs,Gs=null,Xs=0,0!==(6&Ps))throw Error(o(331));var i=Ps;for(Ps|=4,Ql=e.current;null!==Ql;){var a=Ql,l=a.child;if(0!==(16&Ql.flags)){var s=a.deletions;if(null!==s){for(var c=0;c<s.length;c++){var u=s[c];for(Ql=u;null!==Ql;){var d=Ql;switch(d.tag){case 0:case 11:case 15:rs(8,d,a)}var f=d.child;if(null!==f)f.return=d,Ql=f;else for(;null!==Ql;){var h=(d=Ql).sibling,p=d.return;if(as(d),d===u){Ql=null;break}if(null!==h){h.return=p,Ql=h;break}Ql=p}}}var v=a.alternate;if(null!==v){var m=v.child;if(null!==m){v.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}Ql=a}}if(0!==(2064&a.subtreeFlags)&&null!==l)l.return=a,Ql=l;else e:for(;null!==Ql;){if(0!==(2048&(a=Ql).flags))switch(a.tag){case 0:case 11:case 15:rs(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Ql=y;break e}Ql=a.return}}var b=e.current;for(Ql=b;null!==Ql;){var _=(l=Ql).child;if(0!==(2064&l.subtreeFlags)&&null!==_)_.return=l,Ql=_;else e:for(l=b;null!==Ql;){if(0!==(2048&(s=Ql).flags))try{switch(s.tag){case 0:case 11:case 15:is(9,s)}}catch(S){kc(s,s.return,S)}if(s===l){Ql=null;break e}var w=s.sibling;if(null!==w){w.return=s.return,Ql=w;break e}Ql=s.return}}if(Ps=i,Hi(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(S){}r=!0}return r}finally{bt=n,Os.transition=t}}return!1}function Cc(e,t,n){e=Do(e,t=pl(0,t=ul(n,t),1),1),t=tc(),null!==e&&(gt(e,1,t),ic(e,t))}function kc(e,t,n){if(3===e.tag)Cc(e,e,n);else for(;null!==t;){if(3===t.tag){Cc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Ks||!Ks.has(r))){t=Do(t,e=vl(t,e=ul(n,e),1),1),e=tc(),null!==t&&(gt(t,1,e),ic(t,e));break}}t=t.return}}function Ec(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,Ts===e&&(Ls&n)===n&&(4===Ds||3===Ds&&(130023424&Ls)===Ls&&500>$e()-Hs?hc(e,0):Fs|=n),ic(e,t)}function Rc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=tc();null!==(e=To(e,t))&&(gt(e,t,n),ic(e,n))}function Oc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Rc(e,n)}function Pc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Rc(e,n)}function Tc(e,t){return Ke(e,t)}function Mc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lc(e,t,n,r){return new Mc(e,t,n,r)}function Zc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ic(e,t){var n=e.alternate;return null===n?((n=Lc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dc(e,t,n,r,i,a){var l=2;if(r=e,"function"===typeof e)Zc(e)&&(l=1);else if("string"===typeof e)l=5;else e:switch(e){case x:return jc(n.children,i,a,t);case C:l=8,i|=8;break;case k:return(e=Lc(12,n,t,2|i)).elementType=k,e.lanes=a,e;case P:return(e=Lc(13,n,t,i)).elementType=P,e.lanes=a,e;case T:return(e=Lc(19,n,t,i)).elementType=T,e.lanes=a,e;case Z:return Ac(n,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case E:l=10;break e;case R:l=9;break e;case O:l=11;break e;case M:l=14;break e;case L:l=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Lc(l,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function jc(e,t,n,r){return(e=Lc(7,e,r,t)).lanes=n,e}function Ac(e,t,n,r){return(e=Lc(22,e,r,t)).elementType=Z,e.lanes=n,e.stateNode={isHidden:!1},e}function Nc(e,t,n){return(e=Lc(6,e,null,t)).lanes=n,e}function Fc(e,t,n){return(t=Lc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zc(e,t,n,r,i){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=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Bc(e,t,n,r,i,o,a,l,s){return e=new zc(e,t,n,l,s),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Lc(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Lo(o),e}function Hc(e){if(!e)return Ri;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Li(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Li(n))return Di(e,n,t)}return t}function Wc(e,t,n,r,i,o,a,l,s){return(e=Bc(n,r,!0,e,0,o,0,l,s)).context=Hc(null),n=e.current,(o=Io(r=tc(),i=nc(n))).callback=void 0!==t&&null!==t?t:null,Do(n,o,i),e.current.lanes=i,gt(e,i,r),ic(e,r),e}function Uc(e,t,n,r){var i=t.current,o=tc(),a=nc(i);return n=Hc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Io(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Do(i,t,a))&&(rc(e,i,a,o),jo(e,i,a)),a}function Vc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Kc(e,t){qc(e,t),(e=e.alternate)&&qc(e,t)}Cs=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Pi.current)_l=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return _l=!1,function(e,t,n){switch(t.tag){case 3:Tl(t),po();break;case 5:aa(t);break;case 1:Li(t.type)&&ji(t);break;case 4:ia(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ei(yo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ei(sa,1&sa.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Nl(e,t,n):(Ei(sa,1&sa.current),null!==(e=Vl(e,t,n))?e.sibling:null);Ei(sa,1&sa.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Wl(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ei(sa,sa.current),r)break;return null;case 22:case 23:return t.lanes=0,kl(e,t,n)}return Vl(e,t,n)}(e,t,n);_l=0!==(131072&e.flags)}else _l=!1,io&&0!==(1048576&t.flags)&&Qi(t,qi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ul(e,t),e=t.pendingProps;var i=Mi(t,Oi.current);ko(t,n),i=Ca(null,t,r,e,i,n);var a=ka();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Li(r)?(a=!0,ji(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Lo(t),i.updater=Ho,t.stateNode=i,i._reactInternals=t,qo(t,r,e,n),t=Pl(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),wl(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ul(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return Zc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===O)return 11;if(e===M)return 14}return 2}(r),e=go(r,e),i){case 0:t=Rl(null,t,r,e,n);break e;case 1:t=Ol(null,t,r,e,n);break e;case 11:t=Sl(null,t,r,e,n);break e;case 14:t=xl(null,t,r,go(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Rl(e,t,r,i=t.elementType===r?i:go(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ol(e,t,r,i=t.elementType===r?i:go(r,i),n);case 3:e:{if(Tl(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,Zo(e,t),No(t,r,null,n);var l=t.memoizedState;if(r=l.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ml(e,t,r,n,i=ul(Error(o(423)),t));break e}if(r!==i){t=Ml(e,t,r,n,i=ul(Error(o(424)),t));break e}for(ro=ci(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=Jo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(po(),r===i){t=Vl(e,t,n);break e}wl(e,t,r,n)}t=t.child}return t;case 5:return aa(t),null===e&&co(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,l=i.children,ni(r,i)?l=null:null!==a&&ni(r,a)&&(t.flags|=32),El(e,t),wl(e,t,l,n),t.child;case 6:return null===e&&co(t),null;case 13:return Nl(e,t,n);case 4:return ia(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=$o(t,null,r,n):wl(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Sl(e,t,r,i=t.elementType===r?i:go(r,i),n);case 7:return wl(e,t,t.pendingProps,n),t.child;case 8:case 12:return wl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,l=i.value,Ei(yo,r._currentValue),r._currentValue=l,null!==a)if(lr(a.value,l)){if(a.children===i.children&&!Pi.current){t=Vl(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){l=a.child;for(var c=s.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Io(-1,n&-n)).tag=2;var u=a.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}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),Co(a.return,n,t),s.lanes|=n;break}c=c.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(o(341));l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),Co(l,n,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}wl(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ko(t,n),r=r(i=Eo(i)),t.flags|=1,wl(e,t,r,n),t.child;case 14:return i=go(r=t.type,t.pendingProps),xl(e,t,r,i=go(r.type,i),n);case 15:return Cl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:go(r,i),Ul(e,t),t.tag=1,Li(r)?(e=!0,ji(t)):e=!1,ko(t,n),Uo(t,r,i),qo(t,r,i,n),Pl(null,t,r,!0,e,n);case 19:return Wl(e,t,n);case 22:return kl(e,t,n)}throw Error(o(156,t.tag))};var Yc="function"===typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function Xc(e){this._internalRoot=e}function $c(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 Qc(){}function eu(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"===typeof i){var l=i;i=function(){var e=Vc(a);l.call(e)}}Uc(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"===typeof r){var o=r;r=function(){var e=Vc(a);o.call(e)}}var a=Wc(t,r,e,0,null,!1,0,"",Qc);return e._reactRootContainer=a,e[pi]=a.current,Hr(8===e.nodeType?e.parentNode:e),dc(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var l=r;r=function(){var e=Vc(s);l.call(e)}}var s=Bc(e,0,!1,null,0,!1,0,"",Qc);return e._reactRootContainer=s,e[pi]=s.current,Hr(8===e.nodeType?e.parentNode:e),dc((function(){Uc(t,s,n,r)})),s}(n,t,e,i,r);return Vc(a)}Xc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Uc(e,t,null,null)},Xc.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[pi]=null}},Xc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Zt.length&&0!==t&&t<Zt[n].priority;n++);Zt.splice(n,0,e),0===n&&At(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),ic(t,$e()),0===(6&Ps)&&(Ws=$e()+500,Hi()))}break;case 13:dc((function(){var t=To(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}})),Kc(e,1)}},St=function(e){if(13===e.tag){var t=To(e,134217728);if(null!==t)rc(t,e,134217728,tc());Kc(e,134217728)}},xt=function(e){if(13===e.tag){var t=nc(e),n=To(e,t);if(null!==n)rc(n,e,t,tc());Kc(e,t)}},Ct=function(){return bt},kt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Se=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=wi(r);if(!i)throw Error(o(90));K(r),J(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Oe=uc,Pe=dc;var tu={usingClientEntryPoint:!1,Events:[bi,_i,wi,Ee,Re,uc]},nu={findFiberByHostInstance:yi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ve(e))?null:e.stateNode},findFiberByHostInstance:nu.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 iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iu.isDisabled&&iu.supportsFiber)try{it=iu.inject(ru),ot=iu}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!$c(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!$c(e))throw Error(o(299));var n=!1,r="",i=Yc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Bc(e,1,!1,null,0,n,0,r,i),e[pi]=t.current,Hr(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(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=Ve(t))?null:e.stateNode},t.flushSync=function(e){return dc(e)},t.hydrate=function(e,t,n){if(!Jc(t))throw Error(o(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!$c(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",l=Yc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Wc(t,null,e,1,null!=n?n:null,i,0,a,l),e[pi]=t.current,Hr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Xc(t)},t.render=function(e,t,n){if(!Jc(t))throw Error(o(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Jc(e))throw Error(o(40));return!!e._reactRootContainer&&(dc((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[pi]=null}))})),!0)},t.unstable_batchedUpdates=uc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Jc(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return eu(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},1250:function(e,t,n){"use strict";var r=n(4164);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},4164:function(e,t,n){"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=n(4463)},6374:function(e,t,n){"use strict";var r=n(2791),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!s.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:l.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},9117:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}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 _=b.prototype=new y;_.constructor=b,v(_,g.prototype),_.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,x={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,r){var i,o={},a=null,l=null;if(null!=t)for(i in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,i)&&!C.hasOwnProperty(i)&&(o[i]=t[i]);var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(i in s=e.defaultProps)void 0===o[i]&&(o[i]=s[i]);return{$$typeof:n,type:e,key:a,ref:l,props:o,_owner:x.current}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var R=/\/+/g;function O(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,i,o,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return a=a(s=e),e=""===o?"."+O(s,0):o,w(a)?(i="",null!=e&&(i=e.replace(R,"$&/")+"/"),P(a,t,i,"",(function(e){return e}))):null!=a&&(E(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(R,"$&/")+"/")+e)),t.push(a)),1;if(s=0,o=""===o?".":o+":",w(e))for(var c=0;c<e.length;c++){var u=o+O(l=e[c],c);s+=P(l,t,i,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(l=e.next()).done;)s+=P(l=l.value,t,i,u=o+O(l,c++),a);else if("object"===l)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 s}function T(e,t,n){if(null==e)return e;var r=[],i=0;return P(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function M(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 L={current:null},Z={transition:null},I={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:Z,ReactCurrentOwner:x};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=v({},e.props),o=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=x.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)S.call(t,c)&&!C.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];i.children=s}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:l}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.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=E,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:M}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=Z.transition;Z.transition={};try{e()}finally{Z.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return L.current.useCallback(e,t)},t.useContext=function(e){return L.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return L.current.useDeferredValue(e)},t.useEffect=function(e,t){return L.current.useEffect(e,t)},t.useId=function(){return L.current.useId()},t.useImperativeHandle=function(e,t,n){return L.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return L.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return L.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return L.current.useMemo(e,t)},t.useReducer=function(e,t,n){return L.current.useReducer(e,t,n)},t.useRef=function(e){return L.current.useRef(e)},t.useState=function(e){return L.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return L.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return L.current.useTransition()},t.version="18.2.0"},2791:function(e,t,n){"use strict";e.exports=n(9117)},184:function(e,t,n){"use strict";e.exports=n(6374)},6813:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>o(s,n))c<i&&0>o(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var c=[],u=[],d=1,f=null,h=3,p=!1,v=!1,m=!1,g="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function _(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function w(e){if(m=!1,_(e),!v)if(null!==r(c))v=!0,Z(S);else{var t=r(u);null!==t&&I(w,t.startTime-e)}}function S(e,n){v=!1,m&&(m=!1,y(E),E=-1),p=!0;var o=h;try{for(_(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!P());){var a=f.callback;if("function"===typeof a){f.callback=null,h=f.priorityLevel;var l=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof l?f.callback=l:f===r(c)&&i(c),_(n)}else i(c);f=r(c)}if(null!==f)var s=!0;else{var d=r(u);null!==d&&I(w,d.startTime-n),s=!1}return s}finally{f=null,h=o,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,C=!1,k=null,E=-1,R=5,O=-1;function P(){return!(t.unstable_now()-O<R)}function T(){if(null!==k){var e=t.unstable_now();O=e;var n=!0;try{n=k(!0,e)}finally{n?x():(C=!1,k=null)}}else C=!1}if("function"===typeof b)x=function(){b(T)};else if("undefined"!==typeof MessageChannel){var M=new MessageChannel,L=M.port2;M.port1.onmessage=T,x=function(){L.postMessage(null)}}else x=function(){g(T,0)};function Z(e){k=e,C||(C=!0,x())}function I(e,n){E=g((function(){e(t.unstable_now())}),n)}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(){v||p||(v=!0,Z(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"):R=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},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 n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:l=o+l,sortIndex:-1},o>a?(e.sortIndex=o,n(u,e),null===r(c)&&e===r(u)&&(m?(y(E),E=-1):m=!0,I(w,o-a))):(e.sortIndex=l,n(c,e),v||p||(v=!0,Z(S))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},5296:function(e,t,n){"use strict";e.exports=n(6813)},9024:function(e,t,n){var r=n(7424).default,i=n(6690).default,o=n(9728).default;self,e.exports=function(){"use strict";var e={6:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkComputer=t.WebLinkProvider=void 0,t.WebLinkProvider=function(){function e(t,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};i(this,e),this._terminal=t,this._regex=n,this._handler=r,this._options=o}return o(e,[{key:"provideLinks",value:function(e,t){var r=n.computeLink(e,this._regex,this._terminal,this._handler);t(this._addCallbacks(r))}},{key:"_addCallbacks",value:function(e){var t=this;return e.map((function(e){return e.leave=t._options.leave,e.hover=function(n,r){if(t._options.hover){var i=e.range;t._options.hover(n,r,i)}},e}))}}]),e}();var n=function(){function e(){i(this,e)}return o(e,null,[{key:"computeLink",value:function(t,n,i,o){for(var a,l=new RegExp(n.source,(n.flags||"")+"g"),s=e._getWindowedLineStrings(t-1,i),c=r(s,2),u=c[0],d=c[1],f=u.join(""),h=[];a=l.exec(f);){var p=a[0];try{var v=new URL(p),m=decodeURI(v.toString());if(p!==m&&p+"/"!==m)continue}catch(t){continue}var g=e._mapStrIdx(i,d,0,a.index),y=r(g,2),b=y[0],_=y[1],w=e._mapStrIdx(i,b,_,p.length),S=r(w,2),x=S[0],C=S[1];if(-1!==b&&-1!==_&&-1!==x&&-1!==C){var k={start:{x:_+1,y:b+1},end:{x:C,y:x+1}};h.push({range:k,text:p,activate:o})}}return h}},{key:"_getWindowedLineStrings",value:function(e,t){var n,r=e,i=e,o=0,a="",l=[];if(n=t.buffer.active.getLine(e)){var s=n.translateToString(!0);if(n.isWrapped&&" "!==s[0]){for(o=0;(n=t.buffer.active.getLine(--r))&&o<2048&&(o+=(a=n.translateToString(!0)).length,l.push(a),n.isWrapped&&-1===a.indexOf(" ")););l.reverse()}for(l.push(s),o=0;(n=t.buffer.active.getLine(++i))&&n.isWrapped&&o<2048&&(o+=(a=n.translateToString(!0)).length,l.push(a),-1===a.indexOf(" ")););}return[l,r]}},{key:"_mapStrIdx",value:function(e,t,n,r){for(var i=e.buffer.active,o=i.getNullCell(),a=n;r;){var l=i.getLine(t);if(!l)return[-1,-1];for(var s=a;s<l.length;++s){l.getCell(s,o);var c=o.getChars();if(o.getWidth()&&(r-=c.length||1,s===l.length-1&&""===c)){var u=i.getLine(t+1);u&&u.isWrapped&&(u.getCell(0,o),2===o.getWidth()&&(r+=1))}if(r<0)return[t,s]}t++,a=0}return[t,a]}}]),e}();t.LinkComputer=n}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}var a={};return function(){var e=a;Object.defineProperty(e,"__esModule",{value:!0}),e.WebLinksAddon=void 0;var t=n(6),r=/https?:[/]{2}[^\s"'!*(){}|\\\^<>`]*[^\s"':,.!?{}|\\\^~\[\]`()<>]/;function l(e,t){var n=window.open();if(n){try{n.opener=null}catch(e){}n.location.href=t}else console.warn("Opening link blocked as opener could not be cleared")}e.WebLinksAddon=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this._handler=t,this._options=n}return o(e,[{key:"activate",value:function(e){this._terminal=e;var n=this._options,i=n.urlRegex||r;this._linkProvider=this._terminal.registerLinkProvider(new t.WebLinkProvider(this._terminal,i,this._handler,n))}},{key:"dispose",value:function(){var e;null===(e=this._linkProvider)||void 0===e||e.dispose()}}]),e}()}(),a}()},2699:function(e,t,n){var r=n(3515).default,i=n(7061).default,o=n(4993).default,a=n(861).default,l=n(1588).default,s=n(3808).default,c=n(7424).default,u=n(4704).default,d=n(6690).default,f=n(9728).default,h=n(6115).default,p=n(1655).default,v=n(6389).default;self,e.exports=function(){"use strict";var e={4567:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AccessibilityManager=void 0;var o=n(9042),a=n(6114),l=n(9924),s=n(844),c=n(5596),u=n(4725),m=n(3656),g=function(e){p(n,e);var t=v(n);function n(e,r){var i;d(this,n),(i=t.call(this))._terminal=e,i._renderService=r,i._liveRegionLineCount=0,i._charsToConsume=[],i._charsToAnnounce="",i._accessibilityContainer=document.createElement("div"),i._accessibilityContainer.classList.add("xterm-accessibility"),i._rowContainer=document.createElement("div"),i._rowContainer.setAttribute("role","list"),i._rowContainer.classList.add("xterm-accessibility-tree"),i._rowElements=[];for(var o=0;o<i._terminal.rows;o++)i._rowElements[o]=i._createAccessibilityTreeNode(),i._rowContainer.appendChild(i._rowElements[o]);if(i._topBoundaryFocusListener=function(e){return i._handleBoundaryFocus(e,0)},i._bottomBoundaryFocusListener=function(e){return i._handleBoundaryFocus(e,1)},i._rowElements[0].addEventListener("focus",i._topBoundaryFocusListener),i._rowElements[i._rowElements.length-1].addEventListener("focus",i._bottomBoundaryFocusListener),i._refreshRowsDimensions(),i._accessibilityContainer.appendChild(i._rowContainer),i._liveRegion=document.createElement("div"),i._liveRegion.classList.add("live-region"),i._liveRegion.setAttribute("aria-live","assertive"),i._accessibilityContainer.appendChild(i._liveRegion),i._liveRegionDebouncer=i.register(new l.TimeBasedDebouncer(i._announceCharacters.bind(h(i)))),!i._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return i._terminal.element.insertAdjacentElement("afterbegin",i._accessibilityContainer),i.register(i._liveRegionDebouncer),i.register(i._terminal.onResize((function(e){return i._handleResize(e.rows)}))),i.register(i._terminal.onRender((function(e){return i._refreshRows(e.start,e.end)}))),i.register(i._terminal.onScroll((function(){return i._refreshRows()}))),i.register(i._terminal.onA11yChar((function(e){return i._handleChar(e)}))),i.register(i._terminal.onLineFeed((function(){return i._handleChar("\n")}))),i.register(i._terminal.onA11yTab((function(e){return i._handleTab(e)}))),i.register(i._terminal.onKey((function(e){return i._handleKey(e.key)}))),i.register(i._terminal.onBlur((function(){return i._clearLiveRegion()}))),i.register(i._renderService.onDimensionsChange((function(){return i._refreshRowsDimensions()}))),i._screenDprMonitor=new c.ScreenDprMonitor(window),i.register(i._screenDprMonitor),i._screenDprMonitor.setListener((function(){return i._refreshRowsDimensions()})),i.register((0,m.addDisposableDomListener)(window,"resize",(function(){return i._refreshRowsDimensions()}))),i._refreshRows(),i.register((0,s.toDisposable)((function(){i._accessibilityContainer.remove(),i._rowElements.length=0}))),i}return f(n,[{key:"_handleTab",value:function(e){for(var t=0;t<e;t++)this._handleChar(" ")}},{key:"_handleChar",value:function(e){var t=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,"\n"===e&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=o.tooMuchOutput)),a.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout((function(){t._accessibilityContainer.appendChild(t._liveRegion)}),0))}},{key:"_clearLiveRegion",value:function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,a.isMac&&this._liveRegion.remove()}},{key:"_handleKey",value:function(e){this._clearLiveRegion(),/[\0-\x1F\x7F-\x9F]/.test(e)||this._charsToConsume.push(e)}},{key:"_refreshRows",value:function(e,t){this._liveRegionDebouncer.refresh(e,t,this._terminal.rows)}},{key:"_announceCharacters",value:function(){0!==this._charsToAnnounce.length&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}},{key:"_handleBoundaryFocus",value:function(e,t){var n=e.target,r=this._rowElements[0===t?1:this._rowElements.length-2];if(n.getAttribute("aria-posinset")!==(0===t?"1":"".concat(this._terminal.buffer.lines.length))&&e.relatedTarget===r){var i,o;if(0===t?(i=n,o=this._rowElements.pop(),this._rowContainer.removeChild(o)):(i=this._rowElements.shift(),o=n,this._rowContainer.removeChild(i)),i.removeEventListener("focus",this._topBoundaryFocusListener),o.removeEventListener("focus",this._bottomBoundaryFocusListener),0===t){var a=this._createAccessibilityTreeNode();this._rowElements.unshift(a),this._rowContainer.insertAdjacentElement("afterbegin",a)}else{var l=this._createAccessibilityTreeNode();this._rowElements.push(l),this._rowContainer.appendChild(l)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===t?-1:1),this._rowElements[0===t?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}}},{key:"_handleResize",value:function(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var t=this._rowContainer.children.length;t<this._terminal.rows;t++)this._rowElements[t]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[t]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}},{key:"_createAccessibilityTreeNode",value:function(){var e=document.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e}},{key:"_refreshRowsDimensions",value:function(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width="".concat(this._renderService.dimensions.css.canvas.width,"px"),this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(var e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e])}}},{key:"_refreshRowDimensions",value:function(e){e.style.height="".concat(this._renderService.dimensions.css.cell.height,"px")}}]),n}(s.Disposable);g=r([i(1,u.IRenderService)],g),t.AccessibilityManager=g},3614:function(e,t){function n(e){return e.replace(/\r?\n/g,"\r")}function r(e,t){return t?"\x1b[200~"+e+"\x1b[201~":e}function i(e,t,i){e=r(e=n(e),i.decPrivateModes.bracketedPasteMode),i.triggerDataEvent(e,!0),t.value=""}function o(e,t,n){var r=n.getBoundingClientRect(),i=e.clientX-r.left-10,o=e.clientY-r.top-10;t.style.width="20px",t.style.height="20px",t.style.left="".concat(i,"px"),t.style.top="".concat(o,"px"),t.style.zIndex="1000",t.focus()}Object.defineProperty(t,"__esModule",{value:!0}),t.rightClickHandler=t.moveTextAreaUnderMouseCursor=t.paste=t.handlePasteEvent=t.copyHandler=t.bracketTextForPaste=t.prepareTextForTerminal=void 0,t.prepareTextForTerminal=n,t.bracketTextForPaste=r,t.copyHandler=function(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()},t.handlePasteEvent=function(e,t,n){e.stopPropagation(),e.clipboardData&&i(e.clipboardData.getData("text/plain"),t,n)},t.paste=i,t.moveTextAreaUnderMouseCursor=o,t.rightClickHandler=function(e,t,n,r,i){o(e,t,n),i&&r.rightClickSelect(e),t.value=r.selectionText,t.select()}},7239:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContrastCache=void 0;var r=n(1505);t.ColorContrastCache=function(){function e(){d(this,e),this._color=new r.TwoKeyMap,this._css=new r.TwoKeyMap}return f(e,[{key:"setCss",value:function(e,t,n){this._css.set(e,t,n)}},{key:"getCss",value:function(e,t){return this._css.get(e,t)}},{key:"setColor",value:function(e,t,n){this._color.set(e,t,n)}},{key:"getColor",value:function(e,t){return this._color.get(e,t)}},{key:"clear",value:function(){this._color.clear(),this._css.clear()}}]),e}()},3656:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=void 0,t.addDisposableDomListener=function(e,t,n,r){e.addEventListener(t,n,r);var i=!1;return{dispose:function(){i||(i=!0,e.removeEventListener(t,n,r))}}}},6465:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Linkifier2=void 0;var o=n(2585),a=n(8460),l=n(844),s=n(3656),h=function(e){p(n,e);var t=v(n);function n(e){var r;return d(this,n),(r=t.call(this))._bufferService=e,r._linkProviders=[],r._linkCacheDisposables=[],r._isMouseOut=!0,r._wasResized=!1,r._activeLine=-1,r._onShowLinkUnderline=r.register(new a.EventEmitter),r.onShowLinkUnderline=r._onShowLinkUnderline.event,r._onHideLinkUnderline=r.register(new a.EventEmitter),r.onHideLinkUnderline=r._onHideLinkUnderline.event,r.register((0,l.getDisposeArrayDisposable)(r._linkCacheDisposables)),r.register((0,l.toDisposable)((function(){r._lastMouseEvent=void 0}))),r.register(r._bufferService.onResize((function(){r._clearCurrentLink(),r._wasResized=!0}))),r}return f(n,[{key:"currentLink",get:function(){return this._currentLink}},{key:"registerLinkProvider",value:function(e){var t=this;return this._linkProviders.push(e),{dispose:function(){var n=t._linkProviders.indexOf(e);-1!==n&&t._linkProviders.splice(n,1)}}}},{key:"attachToDom",value:function(e,t,n){var r=this;this._element=e,this._mouseService=t,this._renderService=n,this.register((0,s.addDisposableDomListener)(this._element,"mouseleave",(function(){r._isMouseOut=!0,r._clearCurrentLink()}))),this.register((0,s.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,s.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,s.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}},{key:"_handleMouseMove",value:function(e){if(this._lastMouseEvent=e,this._element&&this._mouseService){var t=this._positionFromMouseEvent(e,this._element,this._mouseService);if(t){this._isMouseOut=!1;for(var n=e.composedPath(),r=0;r<n.length;r++){var i=n[r];if(i.classList.contains("xterm"))break;if(i.classList.contains("xterm-hover"))return}this._lastBufferCell&&t.x===this._lastBufferCell.x&&t.y===this._lastBufferCell.y||(this._handleHover(t),this._lastBufferCell=t)}}}},{key:"_handleHover",value:function(e){if(this._activeLine!==e.y||this._wasResized)return this._clearCurrentLink(),this._askForLink(e,!1),void(this._wasResized=!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,e)||(this._clearCurrentLink(),this._askForLink(e,!0))}},{key:"_askForLink",value:function(e,t){var n,r,i=this;this._activeProviderReplies&&t||(null===(n=this._activeProviderReplies)||void 0===n||n.forEach((function(e){null==e||e.forEach((function(e){e.link.dispose&&e.link.dispose()}))})),this._activeProviderReplies=new Map,this._activeLine=e.y);var o,a=!1,l=u(this._linkProviders.entries());try{var s=function(){var n=c(o.value,2),l=n[0],s=n[1];t?(null===(r=i._activeProviderReplies)||void 0===r?void 0:r.get(l))&&(a=i._checkLinkProviderResult(l,e,a)):s.provideLinks(e.y,(function(t){var n,r;if(!i._isMouseOut){var o=null==t?void 0:t.map((function(e){return{link:e}}));null===(n=i._activeProviderReplies)||void 0===n||n.set(l,o),a=i._checkLinkProviderResult(l,e,a),(null===(r=i._activeProviderReplies)||void 0===r?void 0:r.size)===i._linkProviders.length&&i._removeIntersectingLinks(e.y,i._activeProviderReplies)}}))};for(l.s();!(o=l.n()).done;)s()}catch(d){l.e(d)}finally{l.f()}}},{key:"_removeIntersectingLinks",value:function(e,t){for(var n=new Set,r=0;r<t.size;r++){var i=t.get(r);if(i)for(var o=0;o<i.length;o++)for(var a=i[o],l=a.link.range.start.y<e?0:a.link.range.start.x,s=a.link.range.end.y>e?this._bufferService.cols:a.link.range.end.x,c=l;c<=s;c++){if(n.has(c)){i.splice(o--,1);break}n.add(c)}}}},{key:"_checkLinkProviderResult",value:function(e,t,n){var r,i=this;if(!this._activeProviderReplies)return n;for(var o=this._activeProviderReplies.get(e),a=!1,l=0;l<e;l++)this._activeProviderReplies.has(l)&&!this._activeProviderReplies.get(l)||(a=!0);if(!a&&o){var s=o.find((function(e){return i._linkAtPosition(e.link,t)}));s&&(n=!0,this._handleNewLink(s))}if(this._activeProviderReplies.size===this._linkProviders.length&&!n)for(var c=0;c<this._activeProviderReplies.size;c++){var u=null===(r=this._activeProviderReplies.get(c))||void 0===r?void 0:r.find((function(e){return i._linkAtPosition(e.link,t)}));if(u){n=!0,this._handleNewLink(u);break}}return n}},{key:"_handleMouseDown",value:function(){this._mouseDownLink=this._currentLink}},{key:"_handleMouseUp",value:function(e){if(this._element&&this._mouseService&&this._currentLink){var t=this._positionFromMouseEvent(e,this._element,this._mouseService);t&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,t)&&this._currentLink.link.activate(e,this._currentLink.link.text)}}},{key:"_clearCurrentLink",value:function(e,t){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!t||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=t)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,l.disposeArray)(this._linkCacheDisposables))}},{key:"_handleNewLink",value:function(e){var t=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var n=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);n&&this._linkAtPosition(e.link,n)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:void 0===e.link.decorations||e.link.decorations.underline,pointerCursor:void 0===e.link.decorations||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:function(){var e,n;return null===(n=null===(e=t._currentLink)||void 0===e?void 0:e.state)||void 0===n?void 0:n.decorations.pointerCursor},set:function(e){var n,r;(null===(n=t._currentLink)||void 0===n?void 0:n.state)&&t._currentLink.state.decorations.pointerCursor!==e&&(t._currentLink.state.decorations.pointerCursor=e,t._currentLink.state.isHovered&&(null===(r=t._element)||void 0===r||r.classList.toggle("xterm-cursor-pointer",e)))}},underline:{get:function(){var e,n;return null===(n=null===(e=t._currentLink)||void 0===e?void 0:e.state)||void 0===n?void 0:n.decorations.underline},set:function(n){var r,i,o;(null===(r=t._currentLink)||void 0===r?void 0:r.state)&&(null===(o=null===(i=t._currentLink)||void 0===i?void 0:i.state)||void 0===o?void 0:o.decorations.underline)!==n&&(t._currentLink.state.decorations.underline=n,t._currentLink.state.isHovered&&t._fireUnderlineEvent(e.link,n))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange((function(e){if(t._currentLink){var n=0===e.start?0:e.start+1+t._bufferService.buffer.ydisp,r=t._bufferService.buffer.ydisp+1+e.end;if(t._currentLink.link.range.start.y>=n&&t._currentLink.link.range.end.y<=r&&(t._clearCurrentLink(n,r),t._lastMouseEvent&&t._element)){var i=t._positionFromMouseEvent(t._lastMouseEvent,t._element,t._mouseService);i&&t._askForLink(i,!1)}}}))))}}},{key:"_linkHover",value:function(e,t,n){var r;(null===(r=this._currentLink)||void 0===r?void 0:r.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),t.hover&&t.hover(n,t.text)}},{key:"_fireUnderlineEvent",value:function(e,t){var n=e.range,r=this._bufferService.buffer.ydisp,i=this._createLinkUnderlineEvent(n.start.x-1,n.start.y-r-1,n.end.x,n.end.y-r-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(i)}},{key:"_linkLeave",value:function(e,t,n){var r;(null===(r=this._currentLink)||void 0===r?void 0:r.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),t.leave&&t.leave(n,t.text)}},{key:"_linkAtPosition",value:function(e,t){var n=e.range.start.y*this._bufferService.cols+e.range.start.x,r=e.range.end.y*this._bufferService.cols+e.range.end.x,i=t.y*this._bufferService.cols+t.x;return n<=i&&i<=r}},{key:"_positionFromMouseEvent",value:function(e,t,n){var r=n.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(r)return{x:r[0],y:r[1]+this._bufferService.buffer.ydisp}}},{key:"_createLinkUnderlineEvent",value:function(e,t,n,r,i){return{x1:e,y1:t,x2:n,y2:r,cols:this._bufferService.cols,fg:i}}}]),n}(l.Disposable);h=r([i(0,o.IBufferService)],h),t.Linkifier2=h},9042:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.tooMuchOutput=t.promptLabel=void 0,t.promptLabel="Terminal input",t.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OscLinkProvider=void 0;var o=n(511),a=n(2585),l=function(){function e(t,n,r){d(this,e),this._bufferService=t,this._optionsService=n,this._oscLinkService=r}return f(e,[{key:"provideLinks",value:function(e,t){var n,r=this._bufferService.buffer.lines.get(e-1);if(r){for(var i=[],a=this._optionsService.rawOptions.linkHandler,l=new o.CellData,c=r.getTrimmedLength(),u=-1,d=-1,f=!1,h=0;h<c;h++)if(-1!==d||r.hasContent(h)){if(r.loadCell(h,l),l.hasExtendedAttrs()&&l.extended.urlId){if(-1===d){d=h,u=l.extended.urlId;continue}f=l.extended.urlId!==u}else-1!==d&&(f=!0);if(f||-1!==d&&h===c-1){var p=null===(n=this._oscLinkService.getLinkData(u))||void 0===n?void 0:n.uri;if(p){var v={start:{x:d+1,y:e},end:{x:h+(f||h!==c-1?0:1),y:e}},m=!1;if(!(null==a?void 0:a.allowNonHttpProtocols))try{var g=new URL(p);["http:","https:"].includes(g.protocol)||(m=!0)}catch(e){m=!0}m||i.push({text:p,range:v,activate:function(e,t){return a?a.activate(e,t,v):s(0,t)},hover:function(e,t){var n;return null===(n=null==a?void 0:a.hover)||void 0===n?void 0:n.call(a,e,t,v)},leave:function(e,t){var n;return null===(n=null==a?void 0:a.leave)||void 0===n?void 0:n.call(a,e,t,v)}})}f=!1,l.hasExtendedAttrs()&&l.extended.urlId?(d=h,u=l.extended.urlId):(d=-1,u=-1)}}t(i)}else t(void 0)}}]),e}();function s(e,t){if(confirm("Do you want to navigate to ".concat(t,"?\n\nWARNING: This link could potentially be dangerous"))){var n=window.open();if(n){try{n.opener=null}catch(e){}n.location.href=t}else console.warn("Opening link blocked as opener could not be cleared")}}l=r([i(0,a.IBufferService),i(1,a.IOptionsService),i(2,a.IOscLinkService)],l),t.OscLinkProvider=l},6193:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.RenderDebouncer=void 0,t.RenderDebouncer=function(){function e(t,n){d(this,e),this._parentWindow=t,this._renderCallback=n,this._refreshCallbacks=[]}return f(e,[{key:"dispose",value:function(){this._animationFrame&&(this._parentWindow.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}},{key:"addRefreshCallback",value:function(e){var t=this;return this._refreshCallbacks.push(e),this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame((function(){return t._innerRefresh()}))),this._animationFrame}},{key:"refresh",value:function(e,t,n){var r=this;this._rowCount=n,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t,this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame((function(){return r._innerRefresh()})))}},{key:"_innerRefresh",value:function(){if(this._animationFrame=void 0,void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t),this._runRefreshCallbacks()}else this._runRefreshCallbacks()}},{key:"_runRefreshCallbacks",value:function(){var e,t=u(this._refreshCallbacks);try{for(t.s();!(e=t.n()).done;)(0,e.value)(0)}catch(n){t.e(n)}finally{t.f()}this._refreshCallbacks=[]}}]),e}()},5596:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenDprMonitor=void 0;var r=n(844),i=function(e){p(n,e);var t=v(n);function n(e){var i;return d(this,n),(i=t.call(this))._parentWindow=e,i._currentDevicePixelRatio=i._parentWindow.devicePixelRatio,i.register((0,r.toDisposable)((function(){i.clearListener()}))),i}return f(n,[{key:"setListener",value:function(e){var t=this;this._listener&&this.clearListener(),this._listener=e,this._outerListener=function(){t._listener&&(t._listener(t._parentWindow.devicePixelRatio,t._currentDevicePixelRatio),t._updateDpr())},this._updateDpr()}},{key:"_updateDpr",value:function(){var e;this._outerListener&&(null===(e=this._resolutionMediaMatchList)||void 0===e||e.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia("screen and (resolution: ".concat(this._parentWindow.devicePixelRatio,"dppx)")),this._resolutionMediaMatchList.addListener(this._outerListener))}},{key:"clearListener",value:function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)}}]),n}(r.Disposable);t.ScreenDprMonitor=i},3236:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;var r=n(2950),i=n(1680),o=n(3614),c=n(2584),h=n(5435),m=n(9312),g=n(6114),y=n(3656),b=n(9042),_=n(4567),w=n(1296),S=n(7399),x=n(8460),C=n(8437),k=n(3230),E=n(4725),R=n(428),O=n(8934),P=n(6465),T=n(5114),M=n(8969),L=n(8055),Z=n(4269),I=n(5941),D=n(3107),j=n(5744),A=n(9074),N=n(2585),F=n(3730),z=n(844),B=n(6731),H="undefined"!=typeof window?window.document:null,W=function(e){p(n,e);var t=v(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d(this,n),(e=t.call(this,r)).browser=g,e._keyDownHandled=!1,e._keyDownSeen=!1,e._keyPressHandled=!1,e._unprocessedDeadKey=!1,e._onCursorMove=e.register(new x.EventEmitter),e.onCursorMove=e._onCursorMove.event,e._onKey=e.register(new x.EventEmitter),e.onKey=e._onKey.event,e._onRender=e.register(new x.EventEmitter),e.onRender=e._onRender.event,e._onSelectionChange=e.register(new x.EventEmitter),e.onSelectionChange=e._onSelectionChange.event,e._onTitleChange=e.register(new x.EventEmitter),e.onTitleChange=e._onTitleChange.event,e._onBell=e.register(new x.EventEmitter),e.onBell=e._onBell.event,e._onFocus=e.register(new x.EventEmitter),e._onBlur=e.register(new x.EventEmitter),e._onA11yCharEmitter=e.register(new x.EventEmitter),e._onA11yTabEmitter=e.register(new x.EventEmitter),e._onWillOpen=e.register(new x.EventEmitter),e._setup(),e.linkifier2=e.register(e._instantiationService.createInstance(P.Linkifier2)),e.linkifier2.registerLinkProvider(e._instantiationService.createInstance(F.OscLinkProvider)),e._decorationService=e._instantiationService.createInstance(A.DecorationService),e._instantiationService.setService(N.IDecorationService,e._decorationService),e.register(e._inputHandler.onRequestBell((function(){return e._onBell.fire()}))),e.register(e._inputHandler.onRequestRefreshRows((function(t,n){return e.refresh(t,n)}))),e.register(e._inputHandler.onRequestSendFocus((function(){return e._reportFocus()}))),e.register(e._inputHandler.onRequestReset((function(){return e.reset()}))),e.register(e._inputHandler.onRequestWindowsOptionsReport((function(t){return e._reportWindowsOptions(t)}))),e.register(e._inputHandler.onColor((function(t){return e._handleColorEvent(t)}))),e.register((0,x.forwardEvent)(e._inputHandler.onCursorMove,e._onCursorMove)),e.register((0,x.forwardEvent)(e._inputHandler.onTitleChange,e._onTitleChange)),e.register((0,x.forwardEvent)(e._inputHandler.onA11yChar,e._onA11yCharEmitter)),e.register((0,x.forwardEvent)(e._inputHandler.onA11yTab,e._onA11yTabEmitter)),e.register(e._bufferService.onResize((function(t){return e._afterResize(t.cols,t.rows)}))),e.register((0,z.toDisposable)((function(){var t,n;e._customKeyEventHandler=void 0,null===(n=null===(t=e.element)||void 0===t?void 0:t.parentNode)||void 0===n||n.removeChild(e.element)}))),e}return f(n,[{key:"onFocus",get:function(){return this._onFocus.event}},{key:"onBlur",get:function(){return this._onBlur.event}},{key:"onA11yChar",get:function(){return this._onA11yCharEmitter.event}},{key:"onA11yTab",get:function(){return this._onA11yTabEmitter.event}},{key:"onWillOpen",get:function(){return this._onWillOpen.event}},{key:"_handleColorEvent",value:function(e){var t=this;if(this._themeService){var n,r=u(e);try{var i=function(){var e,r=n.value,i="";switch(r.index){case 256:e="foreground",i="10";break;case 257:e="background",i="11";break;case 258:e="cursor",i="12";break;default:e="ansi",i="4;"+r.index}switch(r.type){case 0:var o=L.color.toColorRGB("ansi"===e?t._themeService.colors.ansi[r.index]:t._themeService.colors[e]);t.coreService.triggerDataEvent("".concat(c.C0.ESC,"]").concat(i,";").concat((0,I.toRgbString)(o)).concat(c.C1_ESCAPED.ST));break;case 1:if("ansi"===e)t._themeService.modifyColors((function(e){var t;return e.ansi[r.index]=(t=L.rgba).toColor.apply(t,a(r.color))}));else{var l=e;t._themeService.modifyColors((function(e){var t;return e[l]=(t=L.rgba).toColor.apply(t,a(r.color))}))}break;case 2:t._themeService.restoreColor(r.index)}};for(r.s();!(n=r.n()).done;)i()}catch(o){r.e(o)}finally{r.f()}}}},{key:"_setup",value:function(){l(s(n.prototype),"_setup",this).call(this),this._customKeyEventHandler=void 0}},{key:"buffer",get:function(){return this.buffers.active}},{key:"focus",value:function(){this.textarea&&this.textarea.focus({preventScroll:!0})}},{key:"_handleScreenReaderModeOptionChange",value:function(e){var t;e?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=this._instantiationService.createInstance(_.AccessibilityManager,this)):(null===(t=this._accessibilityManager)||void 0===t||t.dispose(),this._accessibilityManager=void 0)}},{key:"_handleTextAreaFocus",value:function(e){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(c.C0.ESC+"[I"),this.updateCursorStyle(e),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}},{key:"blur",value:function(){var e;return null===(e=this.textarea)||void 0===e?void 0:e.blur()}},{key:"_handleTextAreaBlur",value:function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(c.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}},{key:"_syncTextArea",value:function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing&&this._renderService){var e=this.buffer.ybase+this.buffer.y,t=this.buffer.lines.get(e);if(t){var n=Math.min(this.buffer.x,this.cols-1),r=this._renderService.dimensions.css.cell.height,i=t.getWidth(n),o=this._renderService.dimensions.css.cell.width*i,a=this.buffer.y*this._renderService.dimensions.css.cell.height,l=n*this._renderService.dimensions.css.cell.width;this.textarea.style.left=l+"px",this.textarea.style.top=a+"px",this.textarea.style.width=o+"px",this.textarea.style.height=r+"px",this.textarea.style.lineHeight=r+"px",this.textarea.style.zIndex="-5"}}}},{key:"_initGlobal",value:function(){var e=this;this._bindKeys(),this.register((0,y.addDisposableDomListener)(this.element,"copy",(function(t){e.hasSelection()&&(0,o.copyHandler)(t,e._selectionService)})));var t=function(t){return(0,o.handlePasteEvent)(t,e.textarea,e.coreService)};this.register((0,y.addDisposableDomListener)(this.textarea,"paste",t)),this.register((0,y.addDisposableDomListener)(this.element,"paste",t)),g.isFirefox?this.register((0,y.addDisposableDomListener)(this.element,"mousedown",(function(t){2===t.button&&(0,o.rightClickHandler)(t,e.textarea,e.screenElement,e._selectionService,e.options.rightClickSelectsWord)}))):this.register((0,y.addDisposableDomListener)(this.element,"contextmenu",(function(t){(0,o.rightClickHandler)(t,e.textarea,e.screenElement,e._selectionService,e.options.rightClickSelectsWord)}))),g.isLinux&&this.register((0,y.addDisposableDomListener)(this.element,"auxclick",(function(t){1===t.button&&(0,o.moveTextAreaUnderMouseCursor)(t,e.textarea,e.screenElement)})))}},{key:"_bindKeys",value:function(){var e=this;this.register((0,y.addDisposableDomListener)(this.textarea,"keyup",(function(t){return e._keyUp(t)}),!0)),this.register((0,y.addDisposableDomListener)(this.textarea,"keydown",(function(t){return e._keyDown(t)}),!0)),this.register((0,y.addDisposableDomListener)(this.textarea,"keypress",(function(t){return e._keyPress(t)}),!0)),this.register((0,y.addDisposableDomListener)(this.textarea,"compositionstart",(function(){return e._compositionHelper.compositionstart()}))),this.register((0,y.addDisposableDomListener)(this.textarea,"compositionupdate",(function(t){return e._compositionHelper.compositionupdate(t)}))),this.register((0,y.addDisposableDomListener)(this.textarea,"compositionend",(function(){return e._compositionHelper.compositionend()}))),this.register((0,y.addDisposableDomListener)(this.textarea,"input",(function(t){return e._inputEvent(t)}),!0)),this.register(this.onRender((function(){return e._compositionHelper.updateCompositionElements()})))}},{key:"open",value:function(e){var t,n=this;if(!e)throw new Error("Terminal requires a parent element.");e.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=e.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),e.appendChild(this.element);var o=H.createDocumentFragment();this._viewportElement=H.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),o.appendChild(this._viewportElement),this._viewportScrollArea=H.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=H.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=H.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),o.appendChild(this.screenElement),this.textarea=H.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",b.promptLabel),g.isChromeOS||this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this._coreBrowserService=this._instantiationService.createInstance(T.CoreBrowserService,this.textarea,null!==(t=this._document.defaultView)&&void 0!==t?t:window),this._instantiationService.setService(E.ICoreBrowserService,this._coreBrowserService),this.register((0,y.addDisposableDomListener)(this.textarea,"focus",(function(e){return n._handleTextAreaFocus(e)}))),this.register((0,y.addDisposableDomListener)(this.textarea,"blur",(function(){return n._handleTextAreaBlur()}))),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(R.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(E.ICharSizeService,this._charSizeService),this._themeService=this._instantiationService.createInstance(B.ThemeService),this._instantiationService.setService(E.IThemeService,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(Z.CharacterJoinerService),this._instantiationService.setService(E.ICharacterJoinerService,this._characterJoinerService),this._renderService=this.register(this._instantiationService.createInstance(k.RenderService,this.rows,this.screenElement)),this._instantiationService.setService(E.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange((function(e){return n._onRender.fire(e)}))),this.onResize((function(e){return n._renderService.resize(e.cols,e.rows)})),this._compositionView=H.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(r.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(o);try{this._onWillOpen.fire(this.element)}catch(e){}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this._mouseService=this._instantiationService.createInstance(O.MouseService),this._instantiationService.setService(E.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(i.Viewport,(function(e){return n.scrollLines(e,!0,1)}),this._viewportElement,this._viewportScrollArea),this.register(this._inputHandler.onRequestSyncScrollBar((function(){return n.viewport.syncScrollArea()}))),this.register(this.viewport),this.register(this.onCursorMove((function(){n._renderService.handleCursorMove(),n._syncTextArea()}))),this.register(this.onResize((function(){return n._renderService.handleResize(n.cols,n.rows)}))),this.register(this.onBlur((function(){return n._renderService.handleBlur()}))),this.register(this.onFocus((function(){return n._renderService.handleFocus()}))),this.register(this._renderService.onDimensionsChange((function(){return n.viewport.syncScrollArea()}))),this._selectionService=this.register(this._instantiationService.createInstance(m.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(E.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines((function(e){return n.scrollLines(e.amount,e.suppressScrollEvent)}))),this.register(this._selectionService.onSelectionChange((function(){return n._onSelectionChange.fire()}))),this.register(this._selectionService.onRequestRedraw((function(e){return n._renderService.handleSelectionChanged(e.start,e.end,e.columnSelectMode)}))),this.register(this._selectionService.onLinuxMouseSelection((function(e){n.textarea.value=e,n.textarea.focus(),n.textarea.select()}))),this.register(this._onScroll.event((function(e){n.viewport.syncScrollArea(),n._selectionService.refresh()}))),this.register((0,y.addDisposableDomListener)(this._viewportElement,"scroll",(function(){return n._selectionService.refresh()}))),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.register(this._instantiationService.createInstance(D.BufferDecorationRenderer,this.screenElement)),this.register((0,y.addDisposableDomListener)(this.element,"mousedown",(function(e){return n._selectionService.handleMouseDown(e)}))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=this._instantiationService.createInstance(_.AccessibilityManager,this)),this.register(this.optionsService.onSpecificOptionChange("screenReaderMode",(function(e){return n._handleScreenReaderModeOptionChange(e)}))),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(j.OverviewRulerRenderer,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRulerWidth",(function(e){!n._overviewRulerRenderer&&e&&n._viewportElement&&n.screenElement&&(n._overviewRulerRenderer=n.register(n._instantiationService.createInstance(j.OverviewRulerRenderer,n._viewportElement,n.screenElement)))})),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}},{key:"_createRenderer",value:function(){return this._instantiationService.createInstance(w.DomRenderer,this.element,this.screenElement,this._viewportElement,this.linkifier2)}},{key:"bindMouse",value:function(){var e=this,t=this,n=this.element;function r(e){var n,r,i=t._mouseService.getMouseReportCoords(e,t.screenElement);if(!i)return!1;switch(e.overrideType||e.type){case"mousemove":r=32,void 0===e.buttons?(n=3,void 0!==e.button&&(n=e.button<3?e.button:3)):n=1&e.buttons?0:4&e.buttons?1:2&e.buttons?2:3;break;case"mouseup":r=0,n=e.button<3?e.button:3;break;case"mousedown":r=1,n=e.button<3?e.button:3;break;case"wheel":if(0===t.viewport.getLinesScrolled(e))return!1;r=e.deltaY<0?0:1,n=4;break;default:return!1}return!(void 0===r||void 0===n||n>4)&&t.coreMouseService.triggerMouseEvent({col:i.col,row:i.row,x:i.x,y:i.y,button:n,action:r,ctrl:e.ctrlKey,alt:e.altKey,shift:e.shiftKey})}var i={mouseup:null,wheel:null,mousedrag:null,mousemove:null},o={mouseup:function(t){return r(t),t.buttons||(e._document.removeEventListener("mouseup",i.mouseup),i.mousedrag&&e._document.removeEventListener("mousemove",i.mousedrag)),e.cancel(t)},wheel:function(t){return r(t),e.cancel(t,!0)},mousedrag:function(e){e.buttons&&r(e)},mousemove:function(e){e.buttons||r(e)}};this.register(this.coreMouseService.onProtocolChange((function(t){t?("debug"===e.optionsService.rawOptions.logLevel&&e._logService.debug("Binding to mouse events:",e.coreMouseService.explainEvents(t)),e.element.classList.add("enable-mouse-events"),e._selectionService.disable()):(e._logService.debug("Unbinding from mouse events."),e.element.classList.remove("enable-mouse-events"),e._selectionService.enable()),8&t?i.mousemove||(n.addEventListener("mousemove",o.mousemove),i.mousemove=o.mousemove):(n.removeEventListener("mousemove",i.mousemove),i.mousemove=null),16&t?i.wheel||(n.addEventListener("wheel",o.wheel,{passive:!1}),i.wheel=o.wheel):(n.removeEventListener("wheel",i.wheel),i.wheel=null),2&t?i.mouseup||(i.mouseup=o.mouseup):(e._document.removeEventListener("mouseup",i.mouseup),i.mouseup=null),4&t?i.mousedrag||(i.mousedrag=o.mousedrag):(e._document.removeEventListener("mousemove",i.mousedrag),i.mousedrag=null)}))),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,y.addDisposableDomListener)(n,"mousedown",(function(t){if(t.preventDefault(),e.focus(),e.coreMouseService.areMouseEventsActive&&!e._selectionService.shouldForceSelection(t))return r(t),i.mouseup&&e._document.addEventListener("mouseup",i.mouseup),i.mousedrag&&e._document.addEventListener("mousemove",i.mousedrag),e.cancel(t)}))),this.register((0,y.addDisposableDomListener)(n,"wheel",(function(t){if(!i.wheel){if(!e.buffer.hasScrollback){var n=e.viewport.getLinesScrolled(t);if(0===n)return;for(var r=c.C0.ESC+(e.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(t.deltaY<0?"A":"B"),o="",a=0;a<Math.abs(n);a++)o+=r;return e.coreService.triggerDataEvent(o,!0),e.cancel(t,!0)}return e.viewport.handleWheel(t)?e.cancel(t):void 0}}),{passive:!1})),this.register((0,y.addDisposableDomListener)(n,"touchstart",(function(t){if(!e.coreMouseService.areMouseEventsActive)return e.viewport.handleTouchStart(t),e.cancel(t)}),{passive:!0})),this.register((0,y.addDisposableDomListener)(n,"touchmove",(function(t){if(!e.coreMouseService.areMouseEventsActive)return e.viewport.handleTouchMove(t)?void 0:e.cancel(t)}),{passive:!1}))}},{key:"refresh",value:function(e,t){var n;null===(n=this._renderService)||void 0===n||n.refreshRows(e,t)}},{key:"updateCursorStyle",value:function(e){var t;(null===(t=this._selectionService)||void 0===t?void 0:t.shouldColumnSelect(e))?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}},{key:"_showCursor",value:function(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}},{key:"scrollLines",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;l(s(n.prototype),"scrollLines",this).call(this,e,t,r),this.refresh(0,this.rows-1)}},{key:"paste",value:function(e){(0,o.paste)(e,this.textarea,this.coreService)}},{key:"attachCustomKeyEventHandler",value:function(e){this._customKeyEventHandler=e}},{key:"registerLinkProvider",value:function(e){return this.linkifier2.registerLinkProvider(e)}},{key:"registerCharacterJoiner",value:function(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");var t=this._characterJoinerService.register(e);return this.refresh(0,this.rows-1),t}},{key:"deregisterCharacterJoiner",value:function(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(e)&&this.refresh(0,this.rows-1)}},{key:"markers",get:function(){return this.buffer.markers}},{key:"addMarker",value:function(e){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+e)}},{key:"registerDecoration",value:function(e){return this._decorationService.registerDecoration(e)}},{key:"hasSelection",value:function(){return!!this._selectionService&&this._selectionService.hasSelection}},{key:"select",value:function(e,t,n){this._selectionService.setSelection(e,t,n)}},{key:"getSelection",value:function(){return this._selectionService?this._selectionService.selectionText:""}},{key:"getSelectionPosition",value:function(){if(this._selectionService&&this._selectionService.hasSelection)return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}},{key:"clearSelection",value:function(){var e;null===(e=this._selectionService)||void 0===e||e.clearSelection()}},{key:"selectAll",value:function(){var e;null===(e=this._selectionService)||void 0===e||e.selectAll()}},{key:"selectLines",value:function(e,t){var n;null===(n=this._selectionService)||void 0===n||n.selectLines(e,t)}},{key:"_keyDown",value:function(e){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;var t=this.browser.isMac&&this.options.macOptionIsMeta&&e.altKey;if(!t&&!this._compositionHelper.keydown(e))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this._bufferService.scrollToBottom(),!1;t||"Dead"!==e.key&&"AltGraph"!==e.key||(this._unprocessedDeadKey=!0);var n=(0,S.evaluateKeyboardEvent)(e,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),3===n.type||2===n.type){var r=this.rows-1;return this.scrollLines(2===n.type?-r:r),this.cancel(e,!0)}return 1===n.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,e)||(n.cancel&&this.cancel(e,!0),!n.key||!!(e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&1===e.key.length&&e.key.charCodeAt(0)>=65&&e.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(n.key!==c.C0.ETX&&n.key!==c.C0.CR||(this.textarea.value=""),this._onKey.fire({key:n.key,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(n.key,!0),!this.optionsService.rawOptions.screenReaderMode||e.altKey||e.ctrlKey?this.cancel(e,!0):void(this._keyDownHandled=!0))))}},{key:"_isThirdLevelShift",value:function(e,t){var n=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isWindows&&t.altKey&&t.ctrlKey&&!t.metaKey||e.isWindows&&t.getModifierState("AltGraph");return"keypress"===t.type?n:n&&(!t.keyCode||t.keyCode>47)}},{key:"_keyUp",value:function(e){this._keyDownSeen=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e)||(function(e){return 16===e.keyCode||17===e.keyCode||18===e.keyCode}(e)||this.focus(),this.updateCursorStyle(e),this._keyPressHandled=!1)}},{key:"_keyPress",value:function(e){var t;if(this._keyPressHandled=!1,this._keyDownHandled)return!1;if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(null===e.which||void 0===e.which)t=e.keyCode;else{if(0===e.which||0===e.charCode)return!1;t=e.which}return!(!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e)||(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(t,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))}},{key:"_inputEvent",value:function(e){if(e.data&&"insertText"===e.inputType&&(!e.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;var t=e.data;return this.coreService.triggerDataEvent(t,!0),this.cancel(e),!0}return!1}},{key:"resize",value:function(e,t){e!==this.cols||t!==this.rows?l(s(n.prototype),"resize",this).call(this,e,t):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()}},{key:"_afterResize",value:function(e,t){var n,r;null===(n=this._charSizeService)||void 0===n||n.measure(),null===(r=this.viewport)||void 0===r||r.syncScrollArea(!0)}},{key:"clear",value:function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var e=1;e<this.rows;e++)this.buffer.lines.push(this.buffer.getBlankLine(C.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire({position:this.buffer.ydisp,source:0})}}},{key:"reset",value:function(){var e,t;this.options.rows=this.rows,this.options.cols=this.cols;var r=this._customKeyEventHandler;this._setup(),l(s(n.prototype),"reset",this).call(this),null===(e=this._selectionService)||void 0===e||e.reset(),this._decorationService.reset(),this._customKeyEventHandler=r,this.refresh(0,this.rows-1),null===(t=this.viewport)||void 0===t||t.syncScrollArea()}},{key:"clearTextureAtlas",value:function(){var e;null===(e=this._renderService)||void 0===e||e.clearTextureAtlas()}},{key:"_reportFocus",value:function(){var e;(null===(e=this.element)||void 0===e?void 0:e.classList.contains("focus"))?this.coreService.triggerDataEvent(c.C0.ESC+"[I"):this.coreService.triggerDataEvent(c.C0.ESC+"[O")}},{key:"_reportWindowsOptions",value:function(e){if(this._renderService)switch(e){case h.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var t=this._renderService.dimensions.css.canvas.width.toFixed(0),n=this._renderService.dimensions.css.canvas.height.toFixed(0);this.coreService.triggerDataEvent("".concat(c.C0.ESC,"[4;").concat(n,";").concat(t,"t"));break;case h.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var r=this._renderService.dimensions.css.cell.width.toFixed(0),i=this._renderService.dimensions.css.cell.height.toFixed(0);this.coreService.triggerDataEvent("".concat(c.C0.ESC,"[6;").concat(i,";").concat(r,"t"))}}},{key:"cancel",value:function(e,t){if(this.options.cancelEvents||t)return e.preventDefault(),e.stopPropagation(),!1}}]),n}(M.CoreTerminal);t.Terminal=W},9924:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TimeBasedDebouncer=void 0,t.TimeBasedDebouncer=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;d(this,e),this._renderCallback=t,this._debounceThresholdMS=n,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}return f(e,[{key:"dispose",value:function(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}},{key:"refresh",value:function(e,t,n){var r=this;this._rowCount=n,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t;var i=Date.now();if(i-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=i,this._innerRefresh();else if(!this._additionalRefreshRequested){var o=i-this._lastRefreshMs,a=this._debounceThresholdMS-o;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout((function(){r._lastRefreshMs=Date.now(),r._innerRefresh(),r._additionalRefreshRequested=!1,r._refreshTimeoutID=void 0}),a)}}},{key:"_innerRefresh",value:function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t)}}}]),e}()},1680:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Viewport=void 0;var o=n(844),a=n(3656),l=n(4725),s=n(2585),c=function(e){p(n,e);var t=v(n);function n(e,r,i,o,l,s,c,u,f){var p;return d(this,n),(p=t.call(this))._scrollLines=e,p._viewportElement=r,p._scrollArea=i,p._bufferService=o,p._optionsService=l,p._charSizeService=s,p._renderService=c,p._coreBrowserService=u,p.scrollBarWidth=0,p._currentRowHeight=0,p._currentDeviceCellHeight=0,p._lastRecordedBufferLength=0,p._lastRecordedViewportHeight=0,p._lastRecordedBufferHeight=0,p._lastTouchY=0,p._lastScrollTop=0,p._wheelPartialScroll=0,p._refreshAnimationFrame=null,p._ignoreNextScrollEvent=!1,p._smoothScrollState={startTime:0,origin:-1,target:-1},p.scrollBarWidth=p._viewportElement.offsetWidth-p._scrollArea.offsetWidth||15,p.register((0,a.addDisposableDomListener)(p._viewportElement,"scroll",p._handleScroll.bind(h(p)))),p._activeBuffer=p._bufferService.buffer,p.register(p._bufferService.buffers.onBufferActivate((function(e){return p._activeBuffer=e.activeBuffer}))),p._renderDimensions=p._renderService.dimensions,p.register(p._renderService.onDimensionsChange((function(e){return p._renderDimensions=e}))),p._handleThemeChange(f.colors),p.register(f.onChangeColors((function(e){return p._handleThemeChange(e)}))),p.register(p._optionsService.onSpecificOptionChange("scrollback",(function(){return p.syncScrollArea()}))),setTimeout((function(){return p.syncScrollArea()}),0),p}return f(n,[{key:"_handleThemeChange",value:function(e){this._viewportElement.style.backgroundColor=e.background.css}},{key:"_refresh",value:function(e){var t=this;if(e)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&this._coreBrowserService.window.cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame((function(){return t._innerRefresh()})))}},{key:"_innerRefresh",value:function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.device.cell.height/this._coreBrowserService.dpr,this._currentDeviceCellHeight=this._renderService.dimensions.device.cell.height,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.css.canvas.height);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var t=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==t&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=t),this._refreshAnimationFrame=null}},{key:"syncScrollArea",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);this._lastRecordedViewportHeight===this._renderService.dimensions.css.canvas.height&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.device.cell.height===this._currentDeviceCellHeight||this._refresh(e)}},{key:"_handleScroll",value:function(e){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(t)}}},{key:"_smoothScroll",value:function(){var e=this;if(!this._isDisposed&&-1!==this._smoothScrollState.origin&&-1!==this._smoothScrollState.target){var t=this._smoothScrollPercent();this._viewportElement.scrollTop=this._smoothScrollState.origin+Math.round(t*(this._smoothScrollState.target-this._smoothScrollState.origin)),t<1?this._coreBrowserService.window.requestAnimationFrame((function(){return e._smoothScroll()})):this._clearSmoothScrollState()}}},{key:"_smoothScrollPercent",value:function(){return this._optionsService.rawOptions.smoothScrollDuration&&this._smoothScrollState.startTime?Math.max(Math.min((Date.now()-this._smoothScrollState.startTime)/this._optionsService.rawOptions.smoothScrollDuration,1),0):1}},{key:"_clearSmoothScrollState",value:function(){this._smoothScrollState.startTime=0,this._smoothScrollState.origin=-1,this._smoothScrollState.target=-1}},{key:"_bubbleScroll",value:function(e,t){var n=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(t<0&&0!==this._viewportElement.scrollTop||t>0&&n<this._lastRecordedBufferHeight)||(e.cancelable&&e.preventDefault(),!1)}},{key:"handleWheel",value:function(e){var t=this._getPixelsScrolled(e);return 0!==t&&(this._optionsService.rawOptions.smoothScrollDuration?(this._smoothScrollState.startTime=Date.now(),this._smoothScrollPercent()<1?(this._smoothScrollState.origin=this._viewportElement.scrollTop,-1===this._smoothScrollState.target?this._smoothScrollState.target=this._viewportElement.scrollTop+t:this._smoothScrollState.target+=t,this._smoothScrollState.target=Math.max(Math.min(this._smoothScrollState.target,this._viewportElement.scrollHeight),0),this._smoothScroll()):this._clearSmoothScrollState()):this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))}},{key:"_getPixelsScrolled",value:function(e){if(0===e.deltaY||e.shiftKey)return 0;var t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._currentRowHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._currentRowHeight*this._bufferService.rows),t}},{key:"getBufferElements",value:function(e,t){for(var n,r,i="",o=[],a=null!=t?t:this._bufferService.buffer.lines.length,l=this._bufferService.buffer.lines,s=e;s<a;s++){var c=l.get(s);if(c){var u=null===(n=l.get(s+1))||void 0===n?void 0:n.isWrapped;if(i+=c.translateToString(!u),!u||s===l.length-1){var d=document.createElement("div");d.textContent=i,o.push(d),i.length>0&&(r=d),i=""}}}return{bufferElements:o,cursorElement:r}}},{key:"getLinesScrolled",value:function(e){if(0===e.deltaY||e.shiftKey)return 0;var t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(t/=this._currentRowHeight+0,this._wheelPartialScroll+=t,t=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t}},{key:"_applyScrollModifier",value:function(e,t){var n=this._optionsService.rawOptions.fastScrollModifier;return"alt"===n&&t.altKey||"ctrl"===n&&t.ctrlKey||"shift"===n&&t.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity}},{key:"handleTouchStart",value:function(e){this._lastTouchY=e.touches[0].pageY}},{key:"handleTouchMove",value:function(e){var t=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,0!==t&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))}}]),n}(o.Disposable);c=r([i(3,s.IBufferService),i(4,s.IOptionsService),i(5,l.ICharSizeService),i(6,l.IRenderService),i(7,l.ICoreBrowserService),i(8,l.IThemeService)],c),t.Viewport=c},3107:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferDecorationRenderer=void 0;var o=n(3656),a=n(4725),l=n(844),s=n(2585),c=function(e){p(n,e);var t=v(n);function n(e,r,i,a){var s;return d(this,n),(s=t.call(this))._screenElement=e,s._bufferService=r,s._decorationService=i,s._renderService=a,s._decorationElements=new Map,s._altBufferIsActive=!1,s._dimensionsChanged=!1,s._container=document.createElement("div"),s._container.classList.add("xterm-decoration-container"),s._screenElement.appendChild(s._container),s.register(s._renderService.onRenderedViewportChange((function(){return s._doRefreshDecorations()}))),s.register(s._renderService.onDimensionsChange((function(){s._dimensionsChanged=!0,s._queueRefresh()}))),s.register((0,o.addDisposableDomListener)(window,"resize",(function(){return s._queueRefresh()}))),s.register(s._bufferService.buffers.onBufferActivate((function(){s._altBufferIsActive=s._bufferService.buffer===s._bufferService.buffers.alt}))),s.register(s._decorationService.onDecorationRegistered((function(){return s._queueRefresh()}))),s.register(s._decorationService.onDecorationRemoved((function(e){return s._removeDecoration(e)}))),s.register((0,l.toDisposable)((function(){s._container.remove(),s._decorationElements.clear()}))),s}return f(n,[{key:"_queueRefresh",value:function(){var e=this;void 0===this._animationFrame&&(this._animationFrame=this._renderService.addRefreshCallback((function(){e._doRefreshDecorations(),e._animationFrame=void 0})))}},{key:"_doRefreshDecorations",value:function(){var e,t=u(this._decorationService.decorations);try{for(t.s();!(e=t.n()).done;){var n=e.value;this._renderDecoration(n)}}catch(r){t.e(r)}finally{t.f()}this._dimensionsChanged=!1}},{key:"_renderDecoration",value:function(e){this._refreshStyle(e),this._dimensionsChanged&&this._refreshXPosition(e)}},{key:"_createElement",value:function(e){var t,n,r=document.createElement("div");r.classList.add("xterm-decoration"),r.classList.toggle("xterm-decoration-top-layer","top"===(null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.layer)),r.style.width="".concat(Math.round((e.options.width||1)*this._renderService.dimensions.css.cell.width),"px"),r.style.height=(e.options.height||1)*this._renderService.dimensions.css.cell.height+"px",r.style.top=(e.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height+"px",r.style.lineHeight="".concat(this._renderService.dimensions.css.cell.height,"px");var i=null!==(n=e.options.x)&&void 0!==n?n:0;return i&&i>this._bufferService.cols&&(r.style.display="none"),this._refreshXPosition(e,r),r}},{key:"_refreshStyle",value:function(e){var t=e.marker.line-this._bufferService.buffers.active.ydisp;if(t<0||t>=this._bufferService.rows)e.element&&(e.element.style.display="none",e.onRenderEmitter.fire(e.element));else{var n=this._decorationElements.get(e);n||(n=this._createElement(e),e.element=n,this._decorationElements.set(e,n),this._container.appendChild(n)),n.style.top=t*this._renderService.dimensions.css.cell.height+"px",n.style.display=this._altBufferIsActive?"none":"block",e.onRenderEmitter.fire(n)}}},{key:"_refreshXPosition",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.element;if(n){var r=null!==(t=e.options.x)&&void 0!==t?t:0;"right"===(e.options.anchor||"left")?n.style.right=r?r*this._renderService.dimensions.css.cell.width+"px":"":n.style.left=r?r*this._renderService.dimensions.css.cell.width+"px":""}}},{key:"_removeDecoration",value:function(e){var t;null===(t=this._decorationElements.get(e))||void 0===t||t.remove(),this._decorationElements.delete(e),e.dispose()}}]),n}(l.Disposable);c=r([i(1,s.IBufferService),i(2,s.IDecorationService),i(3,a.IRenderService)],c),t.BufferDecorationRenderer=c},5871:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorZoneStore=void 0,t.ColorZoneStore=function(){function e(){d(this,e),this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}return f(e,[{key:"zones",get:function(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}},{key:"clear",value:function(){this._zones.length=0,this._zonePoolIndex=0}},{key:"addDecoration",value:function(e){if(e.options.overviewRulerOptions){var t,n=u(this._zones);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.color===e.options.overviewRulerOptions.color&&r.position===e.options.overviewRulerOptions.position){if(this._lineIntersectsZone(r,e.marker.line))return;if(this._lineAdjacentToZone(r,e.marker.line,e.options.overviewRulerOptions.position))return void this._addLineToZone(r,e.marker.line)}}}catch(i){n.e(i)}finally{n.f()}if(this._zonePoolIndex<this._zonePool.length)return this._zonePool[this._zonePoolIndex].color=e.options.overviewRulerOptions.color,this._zonePool[this._zonePoolIndex].position=e.options.overviewRulerOptions.position,this._zonePool[this._zonePoolIndex].startBufferLine=e.marker.line,this._zonePool[this._zonePoolIndex].endBufferLine=e.marker.line,void this._zones.push(this._zonePool[this._zonePoolIndex++]);this._zones.push({color:e.options.overviewRulerOptions.color,position:e.options.overviewRulerOptions.position,startBufferLine:e.marker.line,endBufferLine:e.marker.line}),this._zonePool.push(this._zones[this._zones.length-1]),this._zonePoolIndex++}}},{key:"setPadding",value:function(e){this._linePadding=e}},{key:"_lineIntersectsZone",value:function(e,t){return t>=e.startBufferLine&&t<=e.endBufferLine}},{key:"_lineAdjacentToZone",value:function(e,t,n){return t>=e.startBufferLine-this._linePadding[n||"full"]&&t<=e.endBufferLine+this._linePadding[n||"full"]}},{key:"_addLineToZone",value:function(e,t){e.startBufferLine=Math.min(e.startBufferLine,t),e.endBufferLine=Math.max(e.endBufferLine,t)}}]),e}()},5744:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OverviewRulerRenderer=void 0;var o=n(5871),a=n(3656),l=n(4725),s=n(844),c=n(2585),h={full:0,left:0,center:0,right:0},m={full:0,left:0,center:0,right:0},g={full:0,left:0,center:0,right:0},y=function(e){p(n,e);var t=v(n);function n(e,r,i,a,l,c,u){var f,h;d(this,n),(f=t.call(this))._viewportElement=e,f._screenElement=r,f._bufferService=i,f._decorationService=a,f._renderService=l,f._optionsService=c,f._coreBrowseService=u,f._colorZoneStore=new o.ColorZoneStore,f._shouldUpdateDimensions=!0,f._shouldUpdateAnchor=!0,f._lastKnownBufferLength=0,f._canvas=document.createElement("canvas"),f._canvas.classList.add("xterm-decoration-overview-ruler"),f._refreshCanvasDimensions(),null===(h=f._viewportElement.parentElement)||void 0===h||h.insertBefore(f._canvas,f._viewportElement);var p=f._canvas.getContext("2d");if(!p)throw new Error("Ctx cannot be null");return f._ctx=p,f._registerDecorationListeners(),f._registerBufferChangeListeners(),f._registerDimensionChangeListeners(),f.register((0,s.toDisposable)((function(){var e;null===(e=f._canvas)||void 0===e||e.remove()}))),f}return f(n,[{key:"_width",get:function(){return this._optionsService.options.overviewRulerWidth||0}},{key:"_registerDecorationListeners",value:function(){var e=this;this.register(this._decorationService.onDecorationRegistered((function(){return e._queueRefresh(void 0,!0)}))),this.register(this._decorationService.onDecorationRemoved((function(){return e._queueRefresh(void 0,!0)})))}},{key:"_registerBufferChangeListeners",value:function(){var e=this;this.register(this._renderService.onRenderedViewportChange((function(){return e._queueRefresh()}))),this.register(this._bufferService.buffers.onBufferActivate((function(){e._canvas.style.display=e._bufferService.buffer===e._bufferService.buffers.alt?"none":"block"}))),this.register(this._bufferService.onScroll((function(){e._lastKnownBufferLength!==e._bufferService.buffers.normal.lines.length&&(e._refreshDrawHeightConstants(),e._refreshColorZonePadding())})))}},{key:"_registerDimensionChangeListeners",value:function(){var e=this;this.register(this._renderService.onRender((function(){e._containerHeight&&e._containerHeight===e._screenElement.clientHeight||(e._queueRefresh(!0),e._containerHeight=e._screenElement.clientHeight)}))),this.register(this._optionsService.onSpecificOptionChange("overviewRulerWidth",(function(){return e._queueRefresh(!0)}))),this.register((0,a.addDisposableDomListener)(this._coreBrowseService.window,"resize",(function(){return e._queueRefresh(!0)}))),this._queueRefresh(!0)}},{key:"_refreshDrawConstants",value:function(){var e=Math.floor(this._canvas.width/3),t=Math.ceil(this._canvas.width/3);m.full=this._canvas.width,m.left=e,m.center=t,m.right=e,this._refreshDrawHeightConstants(),g.full=0,g.left=0,g.center=m.left,g.right=m.left+m.center}},{key:"_refreshDrawHeightConstants",value:function(){h.full=Math.round(2*this._coreBrowseService.dpr);var e=this._canvas.height/this._bufferService.buffer.lines.length,t=Math.round(Math.max(Math.min(e,12),6)*this._coreBrowseService.dpr);h.left=t,h.center=t,h.right=t}},{key:"_refreshColorZonePadding",value:function(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*h.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*h.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*h.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*h.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}},{key:"_refreshCanvasDimensions",value:function(){this._canvas.style.width="".concat(this._width,"px"),this._canvas.width=Math.round(this._width*this._coreBrowseService.dpr),this._canvas.style.height="".concat(this._screenElement.clientHeight,"px"),this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowseService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}},{key:"_refreshDecorations",value:function(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();var e,t=u(this._decorationService.decorations);try{for(t.s();!(e=t.n()).done;){var n=e.value;this._colorZoneStore.addDecoration(n)}}catch(d){t.e(d)}finally{t.f()}this._ctx.lineWidth=1;var r,i=this._colorZoneStore.zones,o=u(i);try{for(o.s();!(r=o.n()).done;){var a=r.value;"full"!==a.position&&this._renderColorZone(a)}}catch(d){o.e(d)}finally{o.f()}var l,s=u(i);try{for(s.s();!(l=s.n()).done;){var c=l.value;"full"===c.position&&this._renderColorZone(c)}}catch(d){s.e(d)}finally{s.f()}this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}},{key:"_renderColorZone",value:function(e){this._ctx.fillStyle=e.color,this._ctx.fillRect(g[e.position||"full"],Math.round((this._canvas.height-1)*(e.startBufferLine/this._bufferService.buffers.active.lines.length)-h[e.position||"full"]/2),m[e.position||"full"],Math.round((this._canvas.height-1)*((e.endBufferLine-e.startBufferLine)/this._bufferService.buffers.active.lines.length)+h[e.position||"full"]))}},{key:"_queueRefresh",value:function(e,t){var n=this;this._shouldUpdateDimensions=e||this._shouldUpdateDimensions,this._shouldUpdateAnchor=t||this._shouldUpdateAnchor,void 0===this._animationFrame&&(this._animationFrame=this._coreBrowseService.window.requestAnimationFrame((function(){n._refreshDecorations(),n._animationFrame=void 0})))}}]),n}(s.Disposable);y=r([i(2,c.IBufferService),i(3,c.IDecorationService),i(4,l.IRenderService),i(5,c.IOptionsService),i(6,l.ICoreBrowserService)],y),t.OverviewRulerRenderer=y},2950:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompositionHelper=void 0;var o=n(4725),a=n(2585),l=n(2584),s=function(){function e(t,n,r,i,o,a){d(this,e),this._textarea=t,this._compositionView=n,this._bufferService=r,this._optionsService=i,this._coreService=o,this._renderService=a,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return f(e,[{key:"isComposing",get:function(){return this._isComposing}},{key:"compositionstart",value:function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")}},{key:"compositionupdate",value:function(e){var t=this;this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout((function(){t._compositionPosition.end=t._textarea.value.length}),0)}},{key:"compositionend",value:function(){this._finalizeComposition(!0)}},{key:"keydown",value:function(e){if(this._isComposing||this._isSendingComposition){if(229===e.keyCode)return!1;if(16===e.keyCode||17===e.keyCode||18===e.keyCode)return!1;this._finalizeComposition(!1)}return 229!==e.keyCode||(this._handleAnyTextareaChanges(),!1)}},{key:"_finalizeComposition",value:function(e){var t=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,e){var n={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout((function(){var e;t._isSendingComposition&&(t._isSendingComposition=!1,n.start+=t._dataAlreadySent.length,(e=t._isComposing?t._textarea.value.substring(n.start,n.end):t._textarea.value.substring(n.start)).length>0&&t._coreService.triggerDataEvent(e,!0))}),0)}else{this._isSendingComposition=!1;var r=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(r,!0)}}},{key:"_handleAnyTextareaChanges",value:function(){var e=this,t=this._textarea.value;setTimeout((function(){if(!e._isComposing){var n=e._textarea.value,r=n.replace(t,"");e._dataAlreadySent=r,n.length>t.length?e._coreService.triggerDataEvent(r,!0):n.length<t.length?e._coreService.triggerDataEvent("".concat(l.C0.DEL),!0):n.length===t.length&&n!==t&&e._coreService.triggerDataEvent(n,!0)}}),0)}},{key:"updateCompositionElements",value:function(e){var t=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var n=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),r=this._renderService.dimensions.css.cell.height,i=this._bufferService.buffer.y*this._renderService.dimensions.css.cell.height,o=n*this._renderService.dimensions.css.cell.width;this._compositionView.style.left=o+"px",this._compositionView.style.top=i+"px",this._compositionView.style.height=r+"px",this._compositionView.style.lineHeight=r+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var a=this._compositionView.getBoundingClientRect();this._textarea.style.left=o+"px",this._textarea.style.top=i+"px",this._textarea.style.width=Math.max(a.width,1)+"px",this._textarea.style.height=Math.max(a.height,1)+"px",this._textarea.style.lineHeight=a.height+"px"}e||setTimeout((function(){return t.updateCompositionElements(!0)}),0)}}}]),e}();s=r([i(2,a.IBufferService),i(3,a.IOptionsService),i(4,a.ICoreService),i(5,o.IRenderService)],s),t.CompositionHelper=s},9806:function(e,t){function n(e,t,n){var r=n.getBoundingClientRect(),i=e.getComputedStyle(n),o=parseInt(i.getPropertyValue("padding-left")),a=parseInt(i.getPropertyValue("padding-top"));return[t.clientX-r.left-o,t.clientY-r.top-a]}Object.defineProperty(t,"__esModule",{value:!0}),t.getCoords=t.getCoordsRelativeToElement=void 0,t.getCoordsRelativeToElement=n,t.getCoords=function(e,t,r,i,o,a,l,s,c){if(a){var u=n(e,t,r);return u?(u[0]=Math.ceil((u[0]+(c?l/2:0))/l),u[1]=Math.ceil(u[1]/s),u[0]=Math.min(Math.max(u[0],1),i+(c?1:0)),u[1]=Math.min(Math.max(u[1],1),o),u):void 0}}},9504:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.moveToCellSequence=void 0;var r=n(2584);function i(e,t,n,r){var i=e-o(e,n),l=t-o(t,n),u=Math.abs(i-l)-function(e,t,n){for(var r=0,i=e-o(e,n),l=t-o(t,n),s=0;s<Math.abs(i-l);s++){var c="A"===a(e,t)?-1:1,u=n.buffer.lines.get(i+c*s);(null==u?void 0:u.isWrapped)&&r++}return r}(e,t,n);return c(u,s(a(e,t),r))}function o(e,t){for(var n=0,r=t.buffer.lines.get(e),i=null==r?void 0:r.isWrapped;i&&e>=0&&e<t.rows;)n++,i=null==(r=t.buffer.lines.get(--e))?void 0:r.isWrapped;return n}function a(e,t){return e>t?"A":"B"}function l(e,t,n,r,i,o){for(var a=e,l=t,s="";a!==n||l!==r;)a+=i?1:-1,i&&a>o.cols-1?(s+=o.buffer.translateBufferLineToString(l,!1,e,a),a=0,e=0,l++):!i&&a<0&&(s+=o.buffer.translateBufferLineToString(l,!1,0,e+1),e=a=o.cols-1,l--);return s+o.buffer.translateBufferLineToString(l,!1,e,a)}function s(e,t){var n=t?"O":"[";return r.C0.ESC+n+e}function c(e,t){e=Math.floor(e);for(var n="",r=0;r<e;r++)n+=t;return n}t.moveToCellSequence=function(e,t,n,r){var a,u=n.buffer.x,d=n.buffer.y;if(!n.buffer.hasScrollback)return function(e,t,n,r,a,u){return 0===i(t,r,a,u).length?"":c(l(e,t,e,t-o(t,a),!1,a).length,s("D",u))}(u,d,0,t,n,r)+i(d,t,n,r)+function(e,t,n,r,a,u){var d;d=i(t,r,a,u).length>0?r-o(r,a):t;var f=r,h=function(e,t,n,r,a,l){var s;return s=i(n,r,a,l).length>0?r-o(r,a):t,e<n&&s<=r||e>=n&&s<r?"C":"D"}(e,t,n,r,a,u);return c(l(e,d,n,f,"C"===h,a).length,s(h,u))}(u,d,e,t,n,r);if(d===t)return a=u>e?"D":"C",c(Math.abs(u-e),s(a,r));a=d>t?"D":"C";var f=Math.abs(d-t);return c(function(e,t){return t.cols-e}(d>t?e:u,n)+(f-1)*n.cols+1+((d>t?u:e)-1),s(a,r))}},1296:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRenderer=void 0;var o=n(3787),a=n(2223),l=n(6171),s=n(4725),h=n(8055),m=n(8460),g=n(844),y=n(2585),b="xterm-dom-renderer-owner-",_="xterm-focus",w=1,S=function(e){p(n,e);var t=v(n);function n(e,r,i,a,s,c,u,f,h,p){var v;return d(this,n),(v=t.call(this))._element=e,v._screenElement=r,v._viewportElement=i,v._linkifier2=a,v._charSizeService=c,v._optionsService=u,v._bufferService=f,v._coreBrowserService=h,v._themeService=p,v._terminalClass=w++,v._rowElements=[],v._cellToRowElements=[],v.onRequestRedraw=v.register(new m.EventEmitter).event,v._rowContainer=document.createElement("div"),v._rowContainer.classList.add("xterm-rows"),v._rowContainer.style.lineHeight="normal",v._rowContainer.setAttribute("aria-hidden","true"),v._refreshRowElements(v._bufferService.cols,v._bufferService.rows),v._selectionContainer=document.createElement("div"),v._selectionContainer.classList.add("xterm-selection"),v._selectionContainer.setAttribute("aria-hidden","true"),v.dimensions=(0,l.createRenderDimensions)(),v._updateDimensions(),v.register(v._optionsService.onOptionChange((function(){return v._handleOptionsChanged()}))),v.register(v._themeService.onChangeColors((function(e){return v._injectCss(e)}))),v._injectCss(v._themeService.colors),v._rowFactory=s.createInstance(o.DomRendererRowFactory,document),v._element.classList.add(b+v._terminalClass),v._screenElement.appendChild(v._rowContainer),v._screenElement.appendChild(v._selectionContainer),v.register(v._linkifier2.onShowLinkUnderline((function(e){return v._handleLinkHover(e)}))),v.register(v._linkifier2.onHideLinkUnderline((function(e){return v._handleLinkLeave(e)}))),v.register((0,g.toDisposable)((function(){v._element.classList.remove(b+v._terminalClass),v._rowContainer.remove(),v._selectionContainer.remove(),v._themeStyleElement.remove(),v._dimensionsStyleElement.remove()}))),v}return f(n,[{key:"_updateDimensions",value:function(){var e=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*e,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*e),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.left=0,this.dimensions.device.char.top=0,this.dimensions.device.canvas.width=this.dimensions.device.cell.width*this._bufferService.cols,this.dimensions.device.canvas.height=this.dimensions.device.cell.height*this._bufferService.rows,this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/e),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/e),this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols,this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows;var t,n=u(this._rowElements);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.style.width="".concat(this.dimensions.css.canvas.width,"px"),r.style.height="".concat(this.dimensions.css.cell.height,"px"),r.style.lineHeight="".concat(this.dimensions.css.cell.height,"px"),r.style.overflow="hidden"}}catch(o){n.e(o)}finally{n.f()}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var i="".concat(this._terminalSelector," .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: ").concat(this.dimensions.css.cell.width,"px}");this._dimensionsStyleElement.textContent=i,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width="".concat(this.dimensions.css.canvas.width,"px"),this._screenElement.style.height="".concat(this.dimensions.css.canvas.height,"px")}},{key:"_injectCss",value:function(e){this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var t="".concat(this._terminalSelector," .xterm-rows { color: ").concat(e.foreground.css,"; font-family: ").concat(this._optionsService.rawOptions.fontFamily,"; font-size: ").concat(this._optionsService.rawOptions.fontSize,"px;}");t+="".concat(this._terminalSelector," .xterm-rows .xterm-dim { color: ").concat(h.color.multiplyOpacity(e.foreground,.5).css,";}"),t+="".concat(this._terminalSelector," span:not(.").concat(o.BOLD_CLASS,") { font-weight: ").concat(this._optionsService.rawOptions.fontWeight,";}").concat(this._terminalSelector," span.").concat(o.BOLD_CLASS," { font-weight: ").concat(this._optionsService.rawOptions.fontWeightBold,";}").concat(this._terminalSelector," span.").concat(o.ITALIC_CLASS," { font-style: italic;}"),t+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",t+="@keyframes blink_block_"+this._terminalClass+" { 0% {"+" background-color: ".concat(e.cursor.css,";")+" color: ".concat(e.cursorAccent.css,"; } 50% {")+" background-color: ".concat(e.cursorAccent.css,";")+" color: ".concat(e.cursor.css,"; }}"),t+="".concat(this._terminalSelector," .xterm-rows:not(.xterm-focus) .").concat(o.CURSOR_CLASS,".").concat(o.CURSOR_STYLE_BLOCK_CLASS," ,").concat(this._terminalSelector," .xterm-rows:not(.xterm-focus) .").concat(o.CURSOR_CLASS,".").concat(o.CURSOR_STYLE_BAR_CLASS," ,").concat(this._terminalSelector," .xterm-rows:not(.xterm-focus) .").concat(o.CURSOR_CLASS,".").concat(o.CURSOR_STYLE_UNDERLINE_CLASS," { outline: 1px solid ").concat(e.cursor.css,"; outline-offset: -1px;}").concat(this._terminalSelector," .xterm-rows.xterm-focus .").concat(o.CURSOR_CLASS,".").concat(o.CURSOR_BLINK_CLASS,":not(.").concat(o.CURSOR_STYLE_BLOCK_CLASS,") { animation: blink_box_shadow_")+this._terminalClass+" 1s step-end infinite;}"+"".concat(this._terminalSelector," .xterm-rows.xterm-focus .").concat(o.CURSOR_CLASS,".").concat(o.CURSOR_BLINK_CLASS,".").concat(o.CURSOR_STYLE_BLOCK_CLASS," { animation: blink_block_")+this._terminalClass+" 1s step-end infinite;}"+"".concat(this._terminalSelector," .xterm-rows.xterm-focus .").concat(o.CURSOR_CLASS,".").concat(o.CURSOR_STYLE_BLOCK_CLASS," {")+" background-color: ".concat(e.cursor.css,";")+" color: ".concat(e.cursorAccent.css,";}")+"".concat(this._terminalSelector," .xterm-rows .").concat(o.CURSOR_CLASS,".").concat(o.CURSOR_STYLE_BAR_CLASS," {")+" box-shadow: ".concat(this._optionsService.rawOptions.cursorWidth,"px 0 0 ").concat(e.cursor.css," inset;}")+"".concat(this._terminalSelector," .xterm-rows .").concat(o.CURSOR_CLASS,".").concat(o.CURSOR_STYLE_UNDERLINE_CLASS," {")+" box-shadow: 0 -1px 0 ".concat(e.cursor.css," inset;}"),t+="".concat(this._terminalSelector," .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}").concat(this._terminalSelector,".focus .xterm-selection div { position: absolute; background-color: ").concat(e.selectionBackgroundOpaque.css,";}").concat(this._terminalSelector," .xterm-selection div { position: absolute; background-color: ").concat(e.selectionInactiveBackgroundOpaque.css,";}");var n,r=u(e.ansi.entries());try{for(r.s();!(n=r.n()).done;){var i=c(n.value,2),l=i[0],s=i[1];t+="".concat(this._terminalSelector," .xterm-fg-").concat(l," { color: ").concat(s.css,"; }").concat(this._terminalSelector," .xterm-fg-").concat(l,".").concat(o.DIM_CLASS," { color: ").concat(h.color.multiplyOpacity(s,.5).css,"; }").concat(this._terminalSelector," .xterm-bg-").concat(l," { background-color: ").concat(s.css,"; }")}}catch(d){r.e(d)}finally{r.f()}t+="".concat(this._terminalSelector," .xterm-fg-").concat(a.INVERTED_DEFAULT_COLOR," { color: ").concat(h.color.opaque(e.background).css,"; }").concat(this._terminalSelector," .xterm-fg-").concat(a.INVERTED_DEFAULT_COLOR,".").concat(o.DIM_CLASS," { color: ").concat(h.color.multiplyOpacity(h.color.opaque(e.background),.5).css,"; }").concat(this._terminalSelector," .xterm-bg-").concat(a.INVERTED_DEFAULT_COLOR," { background-color: ").concat(e.foreground.css,"; }"),this._themeStyleElement.textContent=t}},{key:"handleDevicePixelRatioChange",value:function(){this._updateDimensions()}},{key:"_refreshRowElements",value:function(e,t){for(var n=this._rowElements.length;n<=t;n++){var r=document.createElement("div");this._rowContainer.appendChild(r),this._rowElements.push(r)}for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop())}},{key:"handleResize",value:function(e,t){this._refreshRowElements(e,t),this._updateDimensions()}},{key:"handleCharSizeChanged",value:function(){this._updateDimensions()}},{key:"handleBlur",value:function(){this._rowContainer.classList.remove(_)}},{key:"handleFocus",value:function(){this._rowContainer.classList.add(_)}},{key:"handleSelectionChanged",value:function(e,t,n){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(this._rowFactory.handleSelectionChanged(e,t,n),this.renderRows(0,this._bufferService.rows-1),e&&t){var r=e[1]-this._bufferService.buffer.ydisp,i=t[1]-this._bufferService.buffer.ydisp,o=Math.max(r,0),a=Math.min(i,this._bufferService.rows-1);if(!(o>=this._bufferService.rows||a<0)){var l=document.createDocumentFragment();if(n){var s=e[0]>t[0];l.appendChild(this._createSelectionElement(o,s?t[0]:e[0],s?e[0]:t[0],a-o+1))}else{var c=r===o?e[0]:0,u=o===i?t[0]:this._bufferService.cols;l.appendChild(this._createSelectionElement(o,c,u));var d=a-o-1;if(l.appendChild(this._createSelectionElement(o+1,0,this._bufferService.cols,d)),o!==a){var f=i===a?t[0]:this._bufferService.cols;l.appendChild(this._createSelectionElement(a,0,f))}}this._selectionContainer.appendChild(l)}}}},{key:"_createSelectionElement",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=document.createElement("div");return i.style.height=r*this.dimensions.css.cell.height+"px",i.style.top=e*this.dimensions.css.cell.height+"px",i.style.left=t*this.dimensions.css.cell.width+"px",i.style.width=this.dimensions.css.cell.width*(n-t)+"px",i}},{key:"handleCursorMove",value:function(){}},{key:"_handleOptionsChanged",value:function(){this._updateDimensions(),this._injectCss(this._themeService.colors)}},{key:"clear",value:function(){var e,t=u(this._rowElements);try{for(t.s();!(e=t.n()).done;)e.value.replaceChildren()}catch(n){t.e(n)}finally{t.f()}}},{key:"renderRows",value:function(e,t){for(var n=this._bufferService.buffer.ybase+this._bufferService.buffer.y,r=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),i=this._optionsService.rawOptions.cursorBlink,o=e;o<=t;o++){var a=this._rowElements[o],l=o+this._bufferService.buffer.ydisp,s=this._bufferService.buffer.lines.get(l),c=this._optionsService.rawOptions.cursorStyle;this._cellToRowElements[o]&&this._cellToRowElements[o].length===this._bufferService.cols||(this._cellToRowElements[o]=new Int16Array(this._bufferService.cols)),a.replaceChildren(this._rowFactory.createRow(s,l,l===n,c,r,i,this.dimensions.css.cell.width,this._bufferService.cols,this._cellToRowElements[o]))}}},{key:"_terminalSelector",get:function(){return".".concat(b).concat(this._terminalClass)}},{key:"_handleLinkHover",value:function(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)}},{key:"_handleLinkLeave",value:function(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)}},{key:"_setCellUnderline",value:function(e,t,n,r,i,o){n<0&&(e=0),r<0&&(t=0);var a=this._cellToRowElements.length-1;n=Math.max(Math.min(n,a),0),r=Math.max(Math.min(r,a),0);var l=this._cellToRowElements[n],s=this._cellToRowElements[r];if(!(e>=l.length||t>=s.length)&&(e=l[e],t=s[t],-1!==e&&-1!==t))for(;e!==t||n!==r;){var c=this._rowElements[n];if(!c)return;var u=c.children[e];u&&(u.style.textDecoration=o?"underline":"none"),++e>=i&&(e=0,n++)}}}]),n}(g.Disposable);S=r([i(4,y.IInstantiationService),i(5,s.ICharSizeService),i(6,y.IOptionsService),i(7,y.IBufferService),i(8,s.ICoreBrowserService),i(9,s.IThemeService)],S),t.DomRenderer=S},3787:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRendererRowFactory=t.CURSOR_STYLE_UNDERLINE_CLASS=t.CURSOR_STYLE_BAR_CLASS=t.CURSOR_STYLE_BLOCK_CLASS=t.CURSOR_BLINK_CLASS=t.CURSOR_CLASS=t.STRIKETHROUGH_CLASS=t.OVERLINE_CLASS=t.UNDERLINE_CLASS=t.ITALIC_CLASS=t.DIM_CLASS=t.BOLD_CLASS=void 0;var o=n(2223),a=n(643),l=n(511),s=n(2585),c=n(8055),u=n(4725),h=n(4269),p=n(6171),v=n(3734);t.BOLD_CLASS="xterm-bold",t.DIM_CLASS="xterm-dim",t.ITALIC_CLASS="xterm-italic",t.UNDERLINE_CLASS="xterm-underline",t.OVERLINE_CLASS="xterm-overline",t.STRIKETHROUGH_CLASS="xterm-strikethrough",t.CURSOR_CLASS="xterm-cursor",t.CURSOR_BLINK_CLASS="xterm-cursor-blink",t.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",t.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",t.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var m=function(){function e(t,n,r,i,o,a,s){d(this,e),this._document=t,this._characterJoinerService=n,this._optionsService=r,this._coreBrowserService=i,this._coreService=o,this._decorationService=a,this._themeService=s,this._workCell=new l.CellData,this._columnSelectMode=!1}return f(e,[{key:"handleSelectionChanged",value:function(e,t,n){this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=n}},{key:"createRow",value:function(e,n,r,i,l,s,u,d,f){for(var p=this,m=this._document.createDocumentFragment(),y=this._characterJoinerService.getJoinedCharacters(n),b=0,_=Math.min(e.length,d)-1;_>=0;_--)if(e.loadCell(_,this._workCell).getCode()!==a.NULL_CELL_CODE||r&&_===l){b=_+1;break}for(var w=this._themeService.colors,S=-1,x=0,C=function(){e.loadCell(x,p._workCell);var d=p._workCell.getWidth();if(0===d)return f[x]=S,"continue";var b=!1,_=x,C=p._workCell;if(y.length>0&&x===y[0][0]){b=!0;var k=y.shift();C=new h.JoinedCellData(p._workCell,e.translateToString(!0,k[0],k[1]),k[1]-k[0]),_=k[1]-1,d=C.getWidth()}var E=p._document.createElement("span");if(d>1&&(E.style.width=u*d+"px"),b&&(E.style.display="inline",l>=x&&l<=_&&(l=x)),!p._coreService.isCursorHidden&&r&&x===l)switch(E.classList.add(t.CURSOR_CLASS),s&&E.classList.add(t.CURSOR_BLINK_CLASS),i){case"bar":E.classList.add(t.CURSOR_STYLE_BAR_CLASS);break;case"underline":E.classList.add(t.CURSOR_STYLE_UNDERLINE_CLASS);break;default:E.classList.add(t.CURSOR_STYLE_BLOCK_CLASS)}if(C.isBold()&&E.classList.add(t.BOLD_CLASS),C.isItalic()&&E.classList.add(t.ITALIC_CLASS),C.isDim()&&E.classList.add(t.DIM_CLASS),C.isInvisible()?E.textContent=a.WHITESPACE_CELL_CHAR:E.textContent=C.getChars()||a.WHITESPACE_CELL_CHAR,C.isUnderline()&&(E.classList.add("".concat(t.UNDERLINE_CLASS,"-").concat(C.extended.underlineStyle))," "===E.textContent&&(E.textContent="\xa0"),!C.isUnderlineColorDefault()))if(C.isUnderlineColorRGB())E.style.textDecorationColor="rgb(".concat(v.AttributeData.toColorRGB(C.getUnderlineColor()).join(","),")");else{var R=C.getUnderlineColor();p._optionsService.rawOptions.drawBoldTextInBrightColors&&C.isBold()&&R<8&&(R+=8),E.style.textDecorationColor=w.ansi[R].css}C.isOverline()&&(E.classList.add(t.OVERLINE_CLASS)," "===E.textContent&&(E.textContent="\xa0")),C.isStrikethrough()&&E.classList.add(t.STRIKETHROUGH_CLASS);var O=C.getFgColor(),P=C.getFgColorMode(),T=C.getBgColor(),M=C.getBgColorMode(),L=!!C.isInverse();if(L){var Z=O;O=T,T=Z;var I=P;P=M,M=I}var D,j,A=!1;p._decorationService.forEachDecorationAtCell(x,n,void 0,(function(e){"top"!==e.options.layer&&A||(e.backgroundColorRGB&&(M=50331648,T=e.backgroundColorRGB.rgba>>8&16777215,D=e.backgroundColorRGB),e.foregroundColorRGB&&(P=50331648,O=e.foregroundColorRGB.rgba>>8&16777215,j=e.foregroundColorRGB),A="top"===e.options.layer)}));var N,F=p._isCellInSelection(x,n);switch(A||w.selectionForeground&&F&&(P=50331648,O=w.selectionForeground.rgba>>8&16777215,j=w.selectionForeground),F&&(D=p._coreBrowserService.isFocused?w.selectionBackgroundOpaque:w.selectionInactiveBackgroundOpaque,A=!0),A&&E.classList.add("xterm-decoration-top"),M){case 16777216:case 33554432:N=w.ansi[T],E.classList.add("xterm-bg-".concat(T));break;case 50331648:N=c.rgba.toColor(T>>16,T>>8&255,255&T),p._addStyle(E,"background-color:#".concat(g((T>>>0).toString(16),"0",6)));break;default:L?(N=w.foreground,E.classList.add("xterm-bg-".concat(o.INVERTED_DEFAULT_COLOR))):N=w.background}switch(D||C.isDim()&&(D=c.color.multiplyOpacity(N,.5)),P){case 16777216:case 33554432:C.isBold()&&O<8&&p._optionsService.rawOptions.drawBoldTextInBrightColors&&(O+=8),p._applyMinimumContrast(E,N,w.ansi[O],C,D,void 0)||E.classList.add("xterm-fg-".concat(O));break;case 50331648:var z=c.rgba.toColor(O>>16&255,O>>8&255,255&O);p._applyMinimumContrast(E,N,z,C,D,j)||p._addStyle(E,"color:#".concat(g(O.toString(16),"0",6)));break;default:p._applyMinimumContrast(E,N,w.foreground,C,D,void 0)||L&&E.classList.add("xterm-fg-".concat(o.INVERTED_DEFAULT_COLOR))}m.appendChild(E),f[x]=++S,x=_};x<b;x++)C();return x<d-1&&f.subarray(x).fill(++S),m}},{key:"_applyMinimumContrast",value:function(e,t,n,r,i,o){return 1!==this._optionsService.rawOptions.minimumContrastRatio&&!(0,p.excludeFromContrastRatioDemands)(r.getCode())&&(i||o||(a=this._themeService.colors.contrastCache.getColor(t.rgba,n.rgba)),void 0===a&&(a=c.color.ensureContrastRatio(i||t,o||n,this._optionsService.rawOptions.minimumContrastRatio),this._themeService.colors.contrastCache.setColor((i||t).rgba,(o||n).rgba,null!=a?a:null)),!!a&&(this._addStyle(e,"color:".concat(a.css)),!0));var a}},{key:"_addStyle",value:function(e,t){e.setAttribute("style","".concat(e.getAttribute("style")||"").concat(t,";"))}},{key:"_isCellInSelection",value:function(e,t){var n=this._selectionStart,r=this._selectionEnd;return!(!n||!r)&&(this._columnSelectMode?n[0]<=r[0]?e>=n[0]&&t>=n[1]&&e<r[0]&&t<=r[1]:e<n[0]&&t>=n[1]&&e>=r[0]&&t<=r[1]:t>n[1]&&t<r[1]||n[1]===r[1]&&t===n[1]&&e>=n[0]&&e<r[0]||n[1]<r[1]&&t===r[1]&&e<r[0]||n[1]<r[1]&&t===n[1]&&e>=n[0])}}]),e}();function g(e,t,n){for(;e.length<n;)e=t+e;return e}m=r([i(1,u.ICharacterJoinerService),i(2,s.IOptionsService),i(3,u.ICoreBrowserService),i(4,s.ICoreService),i(5,s.IDecorationService),i(6,u.IThemeService)],m),t.DomRendererRowFactory=m},2223:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TEXT_BASELINE=t.DIM_OPACITY=t.INVERTED_DEFAULT_COLOR=void 0;var r=n(6114);t.INVERTED_DEFAULT_COLOR=257,t.DIM_OPACITY=.5,t.TEXT_BASELINE=r.isFirefox||r.isLegacyEdge?"bottom":"ideographic"},6171:function(e,t){function n(e){return 57508<=e&&e<=57558}Object.defineProperty(t,"__esModule",{value:!0}),t.createRenderDimensions=t.excludeFromContrastRatioDemands=t.isRestrictedPowerlineGlyph=t.isPowerlineGlyph=t.throwIfFalsy=void 0,t.throwIfFalsy=function(e){if(!e)throw new Error("value must not be falsy");return e},t.isPowerlineGlyph=n,t.isRestrictedPowerlineGlyph=function(e){return 57520<=e&&e<=57527},t.excludeFromContrastRatioDemands=function(e){return n(e)||function(e){return 9472<=e&&e<=9631}(e)},t.createRenderDimensions=function(){return{css:{canvas:{width:0,height:0},cell:{width:0,height:0}},device:{canvas:{width:0,height:0},cell:{width:0,height:0},char:{width:0,height:0,left:0,top:0}}}}},456:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionModel=void 0,t.SelectionModel=function(){function e(t){d(this,e),this._bufferService=t,this.isSelectAllActive=!1,this.selectionStartLength=0}return f(e,[{key:"clearSelection",value:function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}},{key:"finalSelectionStart",get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}},{key:"finalSelectionEnd",get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?e%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)-1]:[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[e,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){var t=this.selectionStart[0]+this.selectionStartLength;return t>this._bufferService.cols?[t%this._bufferService.cols,this.selectionStart[1]+Math.floor(t/this._bufferService.cols)]:[Math.max(t,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}},{key:"areSelectionValuesReversed",value:function(){var e=this.selectionStart,t=this.selectionEnd;return!(!e||!t)&&(e[1]>t[1]||e[1]===t[1]&&e[0]>t[0])}},{key:"handleTrim",value:function(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}}]),e}()},428:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharSizeService=void 0;var o=n(2585),a=n(8460),l=function(e){p(n,e);var t=v(n);function n(e,r,i){var o;return d(this,n),(o=t.call(this))._optionsService=i,o.width=0,o.height=0,o._onCharSizeChange=o.register(new a.EventEmitter),o.onCharSizeChange=o._onCharSizeChange.event,o._measureStrategy=new s(e,r,o._optionsService),o.register(o._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],(function(){return o.measure()}))),o}return f(n,[{key:"hasValidSize",get:function(){return this.width>0&&this.height>0}},{key:"measure",value:function(){var e=this._measureStrategy.measure();e.width===this.width&&e.height===this.height||(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())}}]),n}(n(844).Disposable);l=r([i(2,o.IOptionsService)],l),t.CharSizeService=l;var s=function(){function e(t,n,r){d(this,e),this._document=t,this._parentElement=n,this._optionsService=r,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return f(e,[{key:"measure",value:function(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize="".concat(this._optionsService.rawOptions.fontSize,"px");var e=this._measureElement.getBoundingClientRect();return 0!==e.width&&0!==e.height&&(this._result.width=e.width,this._result.height=Math.ceil(e.height)),this._result}}]),e}()},4269:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterJoinerService=t.JoinedCellData=void 0;var o=n(3734),a=n(643),l=n(511),s=n(2585),c=function(e){p(n,e);var t=v(n);function n(e,r,i){var o;return d(this,n),(o=t.call(this)).content=0,o.combinedData="",o.fg=e.fg,o.bg=e.bg,o.combinedData=r,o._width=i,o}return f(n,[{key:"isCombined",value:function(){return 2097152}},{key:"getWidth",value:function(){return this._width}},{key:"getChars",value:function(){return this.combinedData}},{key:"getCode",value:function(){return 2097151}},{key:"setFromCharData",value:function(e){throw new Error("not implemented")}},{key:"getAsCharData",value:function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}]),n}(o.AttributeData);t.JoinedCellData=c;var u=function(){function e(t){d(this,e),this._bufferService=t,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new l.CellData}return f(e,[{key:"register",value:function(e){var t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id}},{key:"deregister",value:function(e){for(var t=0;t<this._characterJoiners.length;t++)if(this._characterJoiners[t].id===e)return this._characterJoiners.splice(t,1),!0;return!1}},{key:"getJoinedCharacters",value:function(e){if(0===this._characterJoiners.length)return[];var t=this._bufferService.buffer.lines.get(e);if(!t||0===t.length)return[];for(var n=[],r=t.translateToString(!0),i=0,o=0,l=0,s=t.getFg(0),c=t.getBg(0),u=0;u<t.getTrimmedLength();u++)if(t.loadCell(u,this._workCell),0!==this._workCell.getWidth()){if(this._workCell.fg!==s||this._workCell.bg!==c){if(u-i>1)for(var d=this._getJoinedRanges(r,l,o,t,i),f=0;f<d.length;f++)n.push(d[f]);i=u,l=o,s=this._workCell.fg,c=this._workCell.bg}o+=this._workCell.getChars().length||a.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-i>1)for(var h=this._getJoinedRanges(r,l,o,t,i),p=0;p<h.length;p++)n.push(h[p]);return n}},{key:"_getJoinedRanges",value:function(t,n,r,i,o){var a=t.substring(n,r),l=[];try{l=this._characterJoiners[0].handler(a)}catch(d){console.error(d)}for(var s=1;s<this._characterJoiners.length;s++)try{for(var c=this._characterJoiners[s].handler(a),u=0;u<c.length;u++)e._mergeRanges(l,c[u])}catch(f){console.error(f)}return this._stringRangesToCellRanges(l,i,o),l}},{key:"_stringRangesToCellRanges",value:function(e,t,n){var r=0,i=!1,o=0,l=e[r];if(l){for(var s=n;s<this._bufferService.cols;s++){var c=t.getWidth(s),u=t.getString(s).length||a.WHITESPACE_CELL_CHAR.length;if(0!==c){if(!i&&l[0]<=o&&(l[0]=s,i=!0),l[1]<=o){if(l[1]=s,!(l=e[++r]))break;l[0]<=o?(l[0]=s,i=!0):i=!1}o+=u}}l&&(l[1]=this._bufferService.cols)}}}],[{key:"_mergeRanges",value:function(e,t){for(var n=!1,r=0;r<e.length;r++){var i=e[r];if(n){if(t[1]<=i[0])return e[r-1][1]=t[1],e;if(t[1]<=i[1])return e[r-1][1]=Math.max(t[1],i[1]),e.splice(r,1),e;e.splice(r,1),r--}else{if(t[1]<=i[0])return e.splice(r,0,t),e;if(t[1]<=i[1])return i[0]=Math.min(t[0],i[0]),e;t[0]<i[1]&&(i[0]=Math.min(t[0],i[0]),n=!0)}}return n?e[e.length-1][1]=t[1]:e.push(t),e}}]),e}();u=r([i(0,s.IBufferService)],u),t.CharacterJoinerService=u},5114:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.CoreBrowserService=void 0,t.CoreBrowserService=function(){function e(t,n){var r=this;d(this,e),this._textarea=t,this.window=n,this._isFocused=!1,this._cachedIsFocused=void 0,this._textarea.addEventListener("focus",(function(){return r._isFocused=!0})),this._textarea.addEventListener("blur",(function(){return r._isFocused=!1}))}return f(e,[{key:"dpr",get:function(){return this.window.devicePixelRatio}},{key:"isFocused",get:function(){var e=this;return void 0===this._cachedIsFocused&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask((function(){return e._cachedIsFocused=void 0}))),this._cachedIsFocused}}]),e}()},8934:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseService=void 0;var o=n(4725),a=n(9806),l=function(){function e(t,n){d(this,e),this._renderService=t,this._charSizeService=n}return f(e,[{key:"getCoords",value:function(e,t,n,r,i){return(0,a.getCoords)(window,e,t,n,r,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,i)}},{key:"getMouseReportCoords",value:function(e,t){var n=(0,a.getCoordsRelativeToElement)(window,e,t);if(!(!this._charSizeService.hasValidSize||n[0]<0||n[1]<0||n[0]>=this._renderService.dimensions.css.canvas.width||n[1]>=this._renderService.dimensions.css.canvas.height))return{col:Math.floor(n[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(n[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(n[0]),y:Math.floor(n[1])}}}]),e}();l=r([i(0,o.IRenderService),i(1,o.ICharSizeService)],l),t.MouseService=l},3230:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderService=void 0;var a=n(6193),l=n(8460),s=n(844),c=n(5596),u=n(3656),h=n(2585),m=n(4725),g=n(7226),y=function(e){p(n,e);var t=v(n);function n(e,r,i,s,f,h,p,v){var m;if(d(this,n),(m=t.call(this))._rowCount=e,m._charSizeService=s,m._pausedResizeTask=new g.DebouncedIdleTask,m._isPaused=!1,m._needsFullRefresh=!1,m._isNextRenderRedrawOnly=!0,m._needsSelectionRefresh=!1,m._canvasWidth=0,m._canvasHeight=0,m._selectionState={start:void 0,end:void 0,columnSelectMode:!1},m._onDimensionsChange=m.register(new l.EventEmitter),m.onDimensionsChange=m._onDimensionsChange.event,m._onRenderedViewportChange=m.register(new l.EventEmitter),m.onRenderedViewportChange=m._onRenderedViewportChange.event,m._onRender=m.register(new l.EventEmitter),m.onRender=m._onRender.event,m._onRefreshRequest=m.register(new l.EventEmitter),m.onRefreshRequest=m._onRefreshRequest.event,m.register({dispose:function(){var e;return null===(e=m._renderer)||void 0===e?void 0:e.dispose()}}),m._renderDebouncer=new a.RenderDebouncer(p.window,(function(e,t){return m._renderRows(e,t)})),m.register(m._renderDebouncer),m._screenDprMonitor=new c.ScreenDprMonitor(p.window),m._screenDprMonitor.setListener((function(){return m.handleDevicePixelRatioChange()})),m.register(m._screenDprMonitor),m.register(h.onResize((function(){return m._fullRefresh()}))),m.register(h.buffers.onBufferActivate((function(){var e;return null===(e=m._renderer)||void 0===e?void 0:e.clear()}))),m.register(i.onOptionChange((function(){return m._handleOptionsChanged()}))),m.register(m._charSizeService.onCharSizeChange((function(){return m.handleCharSizeChanged()}))),m.register(f.onDecorationRegistered((function(){return m._fullRefresh()}))),m.register(f.onDecorationRemoved((function(){return m._fullRefresh()}))),m.register(i.onMultipleOptionChange(["customGlyphs","drawBoldTextInBrightColors","letterSpacing","lineHeight","fontFamily","fontSize","fontWeight","fontWeightBold","minimumContrastRatio"],(function(){m.clear(),m.handleResize(h.cols,h.rows),m._fullRefresh()}))),m.register(i.onMultipleOptionChange(["cursorBlink","cursorStyle"],(function(){return m.refreshRows(h.buffer.y,h.buffer.y,!0)}))),m.register((0,u.addDisposableDomListener)(p.window,"resize",(function(){return m.handleDevicePixelRatioChange()}))),m.register(v.onChangeColors((function(){return m._fullRefresh()}))),"IntersectionObserver"in p.window){var y=new p.window.IntersectionObserver((function(e){return m._handleIntersectionChange(e[e.length-1])}),{threshold:0});y.observe(r),m.register({dispose:function(){return y.disconnect()}})}return o(m)}return f(n,[{key:"dimensions",get:function(){return this._renderer.dimensions}},{key:"_handleIntersectionChange",value:function(e){this._isPaused=void 0===e.isIntersecting?0===e.intersectionRatio:!e.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this._pausedResizeTask.flush(),this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}},{key:"refreshRows",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._isPaused?this._needsFullRefresh=!0:(n||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(e,t,this._rowCount))}},{key:"_renderRows",value:function(e,t){this._renderer&&(e=Math.min(e,this._rowCount-1),t=Math.min(t,this._rowCount-1),this._renderer.renderRows(e,t),this._needsSelectionRefresh&&(this._renderer.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:e,end:t}),this._onRender.fire({start:e,end:t}),this._isNextRenderRedrawOnly=!0)}},{key:"resize",value:function(e,t){this._rowCount=t,this._fireOnCanvasResize()}},{key:"_handleOptionsChanged",value:function(){this._renderer&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}},{key:"_fireOnCanvasResize",value:function(){this._renderer&&(this._renderer.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions))}},{key:"hasRenderer",value:function(){return!!this._renderer}},{key:"setRenderer",value:function(e){var t,n=this;null===(t=this._renderer)||void 0===t||t.dispose(),this._renderer=e,this._renderer.onRequestRedraw((function(e){return n.refreshRows(e.start,e.end,!0)})),this._needsSelectionRefresh=!0,this._fullRefresh()}},{key:"addRefreshCallback",value:function(e){return this._renderDebouncer.addRefreshCallback(e)}},{key:"_fullRefresh",value:function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}},{key:"clearTextureAtlas",value:function(){var e,t;this._renderer&&(null===(t=(e=this._renderer).clearTextureAtlas)||void 0===t||t.call(e),this._fullRefresh())}},{key:"handleDevicePixelRatioChange",value:function(){this._charSizeService.measure(),this._renderer&&(this._renderer.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}},{key:"handleResize",value:function(e,t){var n=this;this._renderer&&(this._isPaused?this._pausedResizeTask.set((function(){return n._renderer.handleResize(e,t)})):this._renderer.handleResize(e,t),this._fullRefresh())}},{key:"handleCharSizeChanged",value:function(){var e;null===(e=this._renderer)||void 0===e||e.handleCharSizeChanged()}},{key:"handleBlur",value:function(){var e;null===(e=this._renderer)||void 0===e||e.handleBlur()}},{key:"handleFocus",value:function(){var e;null===(e=this._renderer)||void 0===e||e.handleFocus()}},{key:"handleSelectionChanged",value:function(e,t,n){var r;this._selectionState.start=e,this._selectionState.end=t,this._selectionState.columnSelectMode=n,null===(r=this._renderer)||void 0===r||r.handleSelectionChanged(e,t,n)}},{key:"handleCursorMove",value:function(){var e;null===(e=this._renderer)||void 0===e||e.handleCursorMove()}},{key:"clear",value:function(){var e;null===(e=this._renderer)||void 0===e||e.clear()}}]),n}(s.Disposable);y=r([i(2,h.IOptionsService),i(3,m.ICharSizeService),i(4,h.IDecorationService),i(5,h.IBufferService),i(6,m.ICoreBrowserService),i(7,m.IThemeService)],y),t.RenderService=y},9312:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionService=void 0;var o=n(6114),a=n(456),l=n(511),s=n(8460),c=n(4725),u=n(2585),h=n(9806),m=n(9504),g=n(844),y=n(4841),b=String.fromCharCode(160),_=new RegExp(b,"g"),w=function(e){p(n,e);var t=v(n);function n(e,r,i,o,c,u,f,h,p){var v;return d(this,n),(v=t.call(this))._element=e,v._screenElement=r,v._linkifier=i,v._bufferService=o,v._coreService=c,v._mouseService=u,v._optionsService=f,v._renderService=h,v._coreBrowserService=p,v._dragScrollAmount=0,v._enabled=!0,v._workCell=new l.CellData,v._mouseDownTimeStamp=0,v._oldHasSelection=!1,v._oldSelectionStart=void 0,v._oldSelectionEnd=void 0,v._onLinuxMouseSelection=v.register(new s.EventEmitter),v.onLinuxMouseSelection=v._onLinuxMouseSelection.event,v._onRedrawRequest=v.register(new s.EventEmitter),v.onRequestRedraw=v._onRedrawRequest.event,v._onSelectionChange=v.register(new s.EventEmitter),v.onSelectionChange=v._onSelectionChange.event,v._onRequestScrollLines=v.register(new s.EventEmitter),v.onRequestScrollLines=v._onRequestScrollLines.event,v._mouseMoveListener=function(e){return v._handleMouseMove(e)},v._mouseUpListener=function(e){return v._handleMouseUp(e)},v._coreService.onUserInput((function(){v.hasSelection&&v.clearSelection()})),v._trimListener=v._bufferService.buffer.lines.onTrim((function(e){return v._handleTrim(e)})),v.register(v._bufferService.buffers.onBufferActivate((function(e){return v._handleBufferActivate(e)}))),v.enable(),v._model=new a.SelectionModel(v._bufferService),v._activeSelectionMode=0,v.register((0,g.toDisposable)((function(){v._removeMouseDownListeners()}))),v}return f(n,[{key:"reset",value:function(){this.clearSelection()}},{key:"disable",value:function(){this.clearSelection(),this._enabled=!1}},{key:"enable",value:function(){this._enabled=!0}},{key:"selectionStart",get:function(){return this._model.finalSelectionStart}},{key:"selectionEnd",get:function(){return this._model.finalSelectionEnd}},{key:"hasSelection",get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!(!e||!t||e[0]===t[0]&&e[1]===t[1])}},{key:"selectionText",get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";var n=this._bufferService.buffer,r=[];if(3===this._activeSelectionMode){if(e[0]===t[0])return"";for(var i=e[0]<t[0]?e[0]:t[0],a=e[0]<t[0]?t[0]:e[0],l=e[1];l<=t[1];l++){var s=n.translateBufferLineToString(l,!0,i,a);r.push(s)}}else{var c=e[1]===t[1]?t[0]:void 0;r.push(n.translateBufferLineToString(e[1],!0,e[0],c));for(var u=e[1]+1;u<=t[1]-1;u++){var d=n.lines.get(u),f=n.translateBufferLineToString(u,!0);(null==d?void 0:d.isWrapped)?r[r.length-1]+=f:r.push(f)}if(e[1]!==t[1]){var h=n.lines.get(t[1]),p=n.translateBufferLineToString(t[1],!0,0,t[0]);h&&h.isWrapped?r[r.length-1]+=p:r.push(p)}}return r.map((function(e){return e.replace(_," ")})).join(o.isWindows?"\r\n":"\n")}},{key:"clearSelection",value:function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}},{key:"refresh",value:function(e){var t=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame((function(){return t._refresh()}))),o.isLinux&&e&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}},{key:"_refresh",value:function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})}},{key:"_isClickInSelection",value:function(e){var t=this._getMouseBufferCoords(e),n=this._model.finalSelectionStart,r=this._model.finalSelectionEnd;return!!(n&&r&&t)&&this._areCoordsInSelection(t,n,r)}},{key:"isCellInSelection",value:function(e,t){var n=this._model.finalSelectionStart,r=this._model.finalSelectionEnd;return!(!n||!r)&&this._areCoordsInSelection([e,t],n,r)}},{key:"_areCoordsInSelection",value:function(e,t,n){return e[1]>t[1]&&e[1]<n[1]||t[1]===n[1]&&e[1]===t[1]&&e[0]>=t[0]&&e[0]<n[0]||t[1]<n[1]&&e[1]===n[1]&&e[0]<n[0]||t[1]<n[1]&&e[1]===t[1]&&e[0]>=t[0]}},{key:"_selectWordAtCursor",value:function(e,t){var n,r,i=null===(r=null===(n=this._linkifier.currentLink)||void 0===n?void 0:n.link)||void 0===r?void 0:r.range;if(i)return this._model.selectionStart=[i.start.x-1,i.start.y-1],this._model.selectionStartLength=(0,y.getRangeLength)(i,this._bufferService.cols),this._model.selectionEnd=void 0,!0;var o=this._getMouseBufferCoords(e);return!!o&&(this._selectWordAt(o,t),this._model.selectionEnd=void 0,!0)}},{key:"selectAll",value:function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}},{key:"selectLines",value:function(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()}},{key:"_handleTrim",value:function(e){this._model.handleTrim(e)&&this.refresh()}},{key:"_getMouseBufferCoords",value:function(e){var t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(t)return t[0]--,t[1]--,t[1]+=this._bufferService.buffer.ydisp,t}},{key:"_getMouseEventScrollAmount",value:function(e){var t=(0,h.getCoordsRelativeToElement)(this._coreBrowserService.window,e,this._screenElement)[1],n=this._renderService.dimensions.css.canvas.height;return t>=0&&t<=n?0:(t>n&&(t-=n),t=Math.min(Math.max(t,-50),50),(t/=50)/Math.abs(t)+Math.round(14*t))}},{key:"shouldForceSelection",value:function(e){return o.isMac?e.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:e.shiftKey}},{key:"handleMouseDown",value:function(e){if(this._mouseDownTimeStamp=e.timeStamp,(2!==e.button||!this.hasSelection)&&0===e.button){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._handleIncrementalClick(e):1===e.detail?this._handleSingleClick(e):2===e.detail?this._handleDoubleClick(e):3===e.detail&&this._handleTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}}},{key:"_addMouseDownListeners",value:function(){var e=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval((function(){return e._dragScroll()}),50)}},{key:"_removeMouseDownListeners",value:function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}},{key:"_handleIncrementalClick",value:function(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))}},{key:"_handleSingleClick",value:function(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),this._model.selectionStart){this._model.selectionEnd=void 0;var t=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);t&&t.length!==this._model.selectionStart[0]&&0===t.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}}},{key:"_handleDoubleClick",value:function(e){this._selectWordAtCursor(e,!0)&&(this._activeSelectionMode=1)}},{key:"_handleTripleClick",value:function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))}},{key:"shouldColumnSelect",value:function(e){return e.altKey&&!(o.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}},{key:"_handleMouseMove",value:function(e){if(e.stopImmediatePropagation(),this._model.selectionStart){var t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),this._model.selectionEnd){2===this._activeSelectionMode?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:1===this._activeSelectionMode&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(e),3!==this._activeSelectionMode&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var n=this._bufferService.buffer;if(this._model.selectionEnd[1]<n.lines.length){var r=n.lines.get(this._model.selectionEnd[1]);r&&0===r.hasWidth(this._model.selectionEnd[0])&&this._model.selectionEnd[0]++}t&&t[0]===this._model.selectionEnd[0]&&t[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}}},{key:"_dragScroll",value:function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var e=this._bufferService.buffer;this._dragScrollAmount>0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh()}}},{key:"_handleMouseUp",value:function(e){var t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&t<500&&e.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var n=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(n&&void 0!==n[0]&&void 0!==n[1]){var r=(0,m.moveToCellSequence)(n[0]-1,n[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(r,!0)}}}else this._fireEventIfSelectionChanged()}},{key:"_fireEventIfSelectionChanged",value:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd,n=!(!e||!t||e[0]===t[0]&&e[1]===t[1]);n?e&&t&&(this._oldSelectionStart&&this._oldSelectionEnd&&e[0]===this._oldSelectionStart[0]&&e[1]===this._oldSelectionStart[1]&&t[0]===this._oldSelectionEnd[0]&&t[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(e,t,n)):this._oldHasSelection&&this._fireOnSelectionChange(e,t,n)}},{key:"_fireOnSelectionChange",value:function(e,t,n){this._oldSelectionStart=e,this._oldSelectionEnd=t,this._oldHasSelection=n,this._onSelectionChange.fire()}},{key:"_handleBufferActivate",value:function(e){var t=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim((function(e){return t._handleTrim(e)}))}},{key:"_convertViewportColToCharacterIndex",value:function(e,t){for(var n=t,r=0;t>=r;r++){var i=e.loadCell(r,this._workCell).getChars().length;0===this._workCell.getWidth()?n--:i>1&&t!==r&&(n+=i-1)}return n}},{key:"setSelection",value:function(e,t,n){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=n,this.refresh(),this._fireEventIfSelectionChanged()}},{key:"rightClickSelect",value:function(e){this._isClickInSelection(e)||(this._selectWordAtCursor(e,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}},{key:"_getWordAt",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!(e[0]>=this._bufferService.cols)){var i=this._bufferService.buffer,o=i.lines.get(e[1]);if(o){var a=i.translateBufferLineToString(e[1],!1),l=this._convertViewportColToCharacterIndex(o,e[0]),s=l,c=e[0]-l,u=0,d=0,f=0,h=0;if(" "===a.charAt(l)){for(;l>0&&" "===a.charAt(l-1);)l--;for(;s<a.length&&" "===a.charAt(s+1);)s++}else{var p=e[0],v=e[0];0===o.getWidth(p)&&(u++,p--),2===o.getWidth(v)&&(d++,v++);var m=o.getString(v).length;for(m>1&&(h+=m-1,s+=m-1);p>0&&l>0&&!this._isCharWordSeparator(o.loadCell(p-1,this._workCell));){o.loadCell(p-1,this._workCell);var g=this._workCell.getChars().length;0===this._workCell.getWidth()?(u++,p--):g>1&&(f+=g-1,l-=g-1),l--,p--}for(;v<o.length&&s+1<a.length&&!this._isCharWordSeparator(o.loadCell(v+1,this._workCell));){o.loadCell(v+1,this._workCell);var y=this._workCell.getChars().length;2===this._workCell.getWidth()?(d++,v++):y>1&&(h+=y-1,s+=y-1),s++,v++}}s++;var b=l+c-u+f,_=Math.min(this._bufferService.cols,s-l+u+d-f-h);if(t||""!==a.slice(l,s).trim()){if(n&&0===b&&32!==o.getCodePoint(0)){var w=i.lines.get(e[1]-1);if(w&&o.isWrapped&&32!==w.getCodePoint(this._bufferService.cols-1)){var S=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1);if(S){var x=this._bufferService.cols-S.start;b-=x,_+=x}}}if(r&&b+_===this._bufferService.cols&&32!==o.getCodePoint(this._bufferService.cols-1)){var C=i.lines.get(e[1]+1);if((null==C?void 0:C.isWrapped)&&32!==C.getCodePoint(0)){var k=this._getWordAt([0,e[1]+1],!1,!1,!0);k&&(_+=k.length)}}return{start:b,length:_}}}}}},{key:"_selectWordAt",value:function(e,t){var n=this._getWordAt(e,t);if(n){for(;n.start<0;)n.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[n.start,e[1]],this._model.selectionStartLength=n.length}}},{key:"_selectToWordAt",value:function(e){var t=this._getWordAt(e,!0);if(t){for(var n=e[1];t.start<0;)t.start+=this._bufferService.cols,n--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._bufferService.cols;)t.length-=this._bufferService.cols,n++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,n]}}},{key:"_isCharWordSeparator",value:function(e){return 0!==e.getWidth()&&this._optionsService.rawOptions.wordSeparator.indexOf(e.getChars())>=0}},{key:"_selectLineAt",value:function(e){var t=this._bufferService.buffer.getWrappedRangeForLine(e),n={start:{x:0,y:t.first},end:{x:this._bufferService.cols-1,y:t.last}};this._model.selectionStart=[0,t.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,y.getRangeLength)(n,this._bufferService.cols)}}]),n}(g.Disposable);w=r([i(3,u.IBufferService),i(4,u.ICoreService),i(5,c.IMouseService),i(6,u.IOptionsService),i(7,c.IRenderService),i(8,c.ICoreBrowserService)],w),t.SelectionService=w},4725:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IThemeService=t.ICharacterJoinerService=t.ISelectionService=t.IRenderService=t.IMouseService=t.ICoreBrowserService=t.ICharSizeService=void 0;var r=n(8343);t.ICharSizeService=(0,r.createDecorator)("CharSizeService"),t.ICoreBrowserService=(0,r.createDecorator)("CoreBrowserService"),t.IMouseService=(0,r.createDecorator)("MouseService"),t.IRenderService=(0,r.createDecorator)("RenderService"),t.ISelectionService=(0,r.createDecorator)("SelectionService"),t.ICharacterJoinerService=(0,r.createDecorator)("CharacterJoinerService"),t.IThemeService=(0,r.createDecorator)("ThemeService")},6731:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeService=t.DEFAULT_ANSI_COLORS=void 0;var o=n(7239),a=n(8055),l=n(8460),s=n(844),c=n(2585),u=a.css.toColor("#ffffff"),h=a.css.toColor("#000000"),m=a.css.toColor("#ffffff"),g=a.css.toColor("#000000"),y={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};t.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var e=[a.css.toColor("#2e3436"),a.css.toColor("#cc0000"),a.css.toColor("#4e9a06"),a.css.toColor("#c4a000"),a.css.toColor("#3465a4"),a.css.toColor("#75507b"),a.css.toColor("#06989a"),a.css.toColor("#d3d7cf"),a.css.toColor("#555753"),a.css.toColor("#ef2929"),a.css.toColor("#8ae234"),a.css.toColor("#fce94f"),a.css.toColor("#729fcf"),a.css.toColor("#ad7fa8"),a.css.toColor("#34e2e2"),a.css.toColor("#eeeeec")],t=[0,95,135,175,215,255],n=0;n<216;n++){var r=t[n/36%6|0],i=t[n/6%6|0],o=t[n%6];e.push({css:a.channels.toCss(r,i,o),rgba:a.channels.toRgba(r,i,o)})}for(var l=0;l<24;l++){var s=8+10*l;e.push({css:a.channels.toCss(s,s,s),rgba:a.channels.toRgba(s,s,s)})}return e}());var b=function(e){p(r,e);var n=v(r);function r(e){var i;return d(this,r),(i=n.call(this))._optionsService=e,i._onChangeColors=i.register(new l.EventEmitter),i.onChangeColors=i._onChangeColors.event,i._contrastCache=new o.ColorContrastCache,i._colors={foreground:u,background:h,cursor:m,cursorAccent:g,selectionForeground:void 0,selectionBackgroundTransparent:y,selectionBackgroundOpaque:a.color.blend(h,y),selectionInactiveBackgroundTransparent:y,selectionInactiveBackgroundOpaque:a.color.blend(h,y),ansi:t.DEFAULT_ANSI_COLORS.slice(),contrastCache:i._contrastCache},i._updateRestoreColors(),i._setTheme(i._optionsService.rawOptions.theme),i.register(i._optionsService.onSpecificOptionChange("minimumContrastRatio",(function(){return i._contrastCache.clear()}))),i.register(i._optionsService.onSpecificOptionChange("theme",(function(){return i._setTheme(i._optionsService.rawOptions.theme)}))),i}return f(r,[{key:"colors",get:function(){return this._colors}},{key:"_setTheme",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._colors;if(n.foreground=_(e.foreground,u),n.background=_(e.background,h),n.cursor=_(e.cursor,m),n.cursorAccent=_(e.cursorAccent,g),n.selectionBackgroundTransparent=_(e.selectionBackground,y),n.selectionBackgroundOpaque=a.color.blend(n.background,n.selectionBackgroundTransparent),n.selectionInactiveBackgroundTransparent=_(e.selectionInactiveBackground,n.selectionBackgroundTransparent),n.selectionInactiveBackgroundOpaque=a.color.blend(n.background,n.selectionInactiveBackgroundTransparent),n.selectionForeground=e.selectionForeground?_(e.selectionForeground,a.NULL_COLOR):void 0,n.selectionForeground===a.NULL_COLOR&&(n.selectionForeground=void 0),a.color.isOpaque(n.selectionBackgroundTransparent)){var r=.3;n.selectionBackgroundTransparent=a.color.opacity(n.selectionBackgroundTransparent,r)}if(a.color.isOpaque(n.selectionInactiveBackgroundTransparent)){var i=.3;n.selectionInactiveBackgroundTransparent=a.color.opacity(n.selectionInactiveBackgroundTransparent,i)}if(n.ansi=t.DEFAULT_ANSI_COLORS.slice(),n.ansi[0]=_(e.black,t.DEFAULT_ANSI_COLORS[0]),n.ansi[1]=_(e.red,t.DEFAULT_ANSI_COLORS[1]),n.ansi[2]=_(e.green,t.DEFAULT_ANSI_COLORS[2]),n.ansi[3]=_(e.yellow,t.DEFAULT_ANSI_COLORS[3]),n.ansi[4]=_(e.blue,t.DEFAULT_ANSI_COLORS[4]),n.ansi[5]=_(e.magenta,t.DEFAULT_ANSI_COLORS[5]),n.ansi[6]=_(e.cyan,t.DEFAULT_ANSI_COLORS[6]),n.ansi[7]=_(e.white,t.DEFAULT_ANSI_COLORS[7]),n.ansi[8]=_(e.brightBlack,t.DEFAULT_ANSI_COLORS[8]),n.ansi[9]=_(e.brightRed,t.DEFAULT_ANSI_COLORS[9]),n.ansi[10]=_(e.brightGreen,t.DEFAULT_ANSI_COLORS[10]),n.ansi[11]=_(e.brightYellow,t.DEFAULT_ANSI_COLORS[11]),n.ansi[12]=_(e.brightBlue,t.DEFAULT_ANSI_COLORS[12]),n.ansi[13]=_(e.brightMagenta,t.DEFAULT_ANSI_COLORS[13]),n.ansi[14]=_(e.brightCyan,t.DEFAULT_ANSI_COLORS[14]),n.ansi[15]=_(e.brightWhite,t.DEFAULT_ANSI_COLORS[15]),e.extendedAnsi)for(var o=Math.min(n.ansi.length-16,e.extendedAnsi.length),l=0;l<o;l++)n.ansi[l+16]=_(e.extendedAnsi[l],t.DEFAULT_ANSI_COLORS[l+16]);this._contrastCache.clear(),this._updateRestoreColors(),this._onChangeColors.fire(this.colors)}},{key:"restoreColor",value:function(e){this._restoreColor(e),this._onChangeColors.fire(this.colors)}},{key:"_restoreColor",value:function(e){if(void 0!==e)switch(e){case 256:this._colors.foreground=this._restoreColors.foreground;break;case 257:this._colors.background=this._restoreColors.background;break;case 258:this._colors.cursor=this._restoreColors.cursor;break;default:this._colors.ansi[e]=this._restoreColors.ansi[e]}else for(var t=0;t<this._restoreColors.ansi.length;++t)this._colors.ansi[t]=this._restoreColors.ansi[t]}},{key:"modifyColors",value:function(e){e(this._colors),this._onChangeColors.fire(this.colors)}},{key:"_updateRestoreColors",value:function(){this._restoreColors={foreground:this._colors.foreground,background:this._colors.background,cursor:this._colors.cursor,ansi:this._colors.ansi.slice()}}}]),r}(s.Disposable);function _(e,t){if(void 0!==e)try{return a.css.toColor(e)}catch(e){}return t}b=r([i(0,c.IOptionsService)],b),t.ThemeService=b},6349:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CircularList=void 0;var r=n(8460),i=function(e){p(n,e);var t=v(n);function n(e){var i;return d(this,n),(i=t.call(this))._maxLength=e,i.onDeleteEmitter=i.register(new r.EventEmitter),i.onDelete=i.onDeleteEmitter.event,i.onInsertEmitter=i.register(new r.EventEmitter),i.onInsert=i.onInsertEmitter.event,i.onTrimEmitter=i.register(new r.EventEmitter),i.onTrim=i.onTrimEmitter.event,i._array=new Array(i._maxLength),i._startIndex=0,i._length=0,i}return f(n,[{key:"maxLength",get:function(){return this._maxLength},set:function(e){if(this._maxLength!==e){for(var t=new Array(e),n=0;n<Math.min(e,this.length);n++)t[n]=this._array[this._getCyclicIndex(n)];this._array=t,this._maxLength=e,this._startIndex=0}}},{key:"length",get:function(){return this._length},set:function(e){if(e>this._length)for(var t=this._length;t<e;t++)this._array[t]=void 0;this._length=e}},{key:"get",value:function(e){return this._array[this._getCyclicIndex(e)]}},{key:"set",value:function(e,t){this._array[this._getCyclicIndex(e)]=t}},{key:"push",value:function(e){this._array[this._getCyclicIndex(this._length)]=e,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++}},{key:"recycle",value:function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]}},{key:"isFull",get:function(){return this._length===this._maxLength}},{key:"pop",value:function(){return this._array[this._getCyclicIndex(this._length---1)]}},{key:"splice",value:function(e,t){if(t){for(var n=e;n<this._length-t;n++)this._array[this._getCyclicIndex(n)]=this._array[this._getCyclicIndex(n+t)];this._length-=t,this.onDeleteEmitter.fire({index:e,amount:t})}for(var r=this._length-1;r>=e;r--)this._array[this._getCyclicIndex(r+(arguments.length<=2?0:arguments.length-2))]=this._array[this._getCyclicIndex(r)];for(var i=0;i<(arguments.length<=2?0:arguments.length-2);i++)this._array[this._getCyclicIndex(e+i)]=i+2<2||arguments.length<=i+2?void 0:arguments[i+2];if((arguments.length<=2?0:arguments.length-2)&&this.onInsertEmitter.fire({index:e,amount:arguments.length<=2?0:arguments.length-2}),this._length+(arguments.length<=2?0:arguments.length-2)>this._maxLength){var o=this._length+(arguments.length<=2?0:arguments.length-2)-this._maxLength;this._startIndex+=o,this._length=this._maxLength,this.onTrimEmitter.fire(o)}else this._length+=arguments.length<=2?0:arguments.length-2}},{key:"trimStart",value:function(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)}},{key:"shiftElements",value:function(e,t,n){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+n<0)throw new Error("Cannot shift elements in list beyond index 0");if(n>0){for(var r=t-1;r>=0;r--)this.set(e+r+n,this.get(e+r));var i=e+t+n-this._length;if(i>0)for(this._length+=i;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(var o=0;o<t;o++)this.set(e+o+n,this.get(e+o))}}},{key:"_getCyclicIndex",value:function(e){return(this._startIndex+e)%this._maxLength}}]),n}(n(844).Disposable);t.CircularList=i},1439:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if("object"!=typeof t)return t;var r=Array.isArray(t)?[]:{};for(var i in t)r[i]=n<=1?t[i]:t[i]&&e(t[i],n-1);return r}},8055:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.contrastRatio=t.toPaddedHex=t.rgba=t.rgb=t.css=t.color=t.channels=t.NULL_COLOR=void 0;var r,i,o,a=n(6114),l=0,s=0,u=0,d=0;function f(e){var t=e.toString(16);return t.length<2?"0"+t:t}function h(e,t){return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)}t.NULL_COLOR={css:"#00000000",rgba:0},function(e){e.toCss=function(e,t,n,r){return void 0!==r?"#".concat(f(e)).concat(f(t)).concat(f(n)).concat(f(r)):"#".concat(f(e)).concat(f(t)).concat(f(n))},e.toRgba=function(e,t,n){return(e<<24|t<<16|n<<8|(arguments.length>3&&void 0!==arguments[3]?arguments[3]:255))>>>0}}(r=t.channels||(t.channels={})),function(e){function t(e,t){var n,i;return d=Math.round(255*t),n=o.toChannels(e.rgba),i=c(n,3),l=i[0],s=i[1],u=i[2],{css:r.toCss(l,s,u,d),rgba:r.toRgba(l,s,u,d)}}e.blend=function(e,t){if(1===(d=(255&t.rgba)/255))return{css:t.css,rgba:t.rgba};var n=t.rgba>>24&255,i=t.rgba>>16&255,o=t.rgba>>8&255,a=e.rgba>>24&255,c=e.rgba>>16&255,f=e.rgba>>8&255;return l=a+Math.round((n-a)*d),s=c+Math.round((i-c)*d),u=f+Math.round((o-f)*d),{css:r.toCss(l,s,u),rgba:r.toRgba(l,s,u)}},e.isOpaque=function(e){return 255==(255&e.rgba)},e.ensureContrastRatio=function(e,t,n){var r=o.ensureContrastRatio(e.rgba,t.rgba,n);if(r)return o.toColor(r>>24&255,r>>16&255,r>>8&255)},e.opaque=function(e){var t,n,i=(255|e.rgba)>>>0;return t=o.toChannels(i),n=c(t,3),l=n[0],s=n[1],u=n[2],{css:r.toCss(l,s,u),rgba:i}},e.opacity=t,e.multiplyOpacity=function(e,n){return t(e,(d=255&e.rgba)*n/255)},e.toColorRGB=function(e){return[e.rgba>>24&255,e.rgba>>16&255,e.rgba>>8&255]}}(t.color||(t.color={})),function(e){var t,n;if(!a.isNode){var i=document.createElement("canvas");i.width=1,i.height=1;var f=i.getContext("2d",{willReadFrequently:!0});f&&((t=f).globalCompositeOperation="copy",n=t.createLinearGradient(0,0,1,1))}e.toColor=function(e){var i;if(e.match(/#[\da-f]{3,8}/i))switch(e.length){case 4:return l=parseInt(e.slice(1,2).repeat(2),16),s=parseInt(e.slice(2,3).repeat(2),16),u=parseInt(e.slice(3,4).repeat(2),16),o.toColor(l,s,u);case 5:return l=parseInt(e.slice(1,2).repeat(2),16),s=parseInt(e.slice(2,3).repeat(2),16),u=parseInt(e.slice(3,4).repeat(2),16),d=parseInt(e.slice(4,5).repeat(2),16),o.toColor(l,s,u,d);case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}var a=e.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(a)return l=parseInt(a[1]),s=parseInt(a[2]),u=parseInt(a[3]),d=Math.round(255*(void 0===a[5]?1:parseFloat(a[5]))),o.toColor(l,s,u,d);if(!t||!n)throw new Error("css.toColor: Unsupported css format");if(t.fillStyle=n,t.fillStyle=e,"string"!=typeof t.fillStyle)throw new Error("css.toColor: Unsupported css format");if(t.fillRect(0,0,1,1),i=c(t.getImageData(0,0,1,1).data,4),l=i[0],s=i[1],u=i[2],255!==(d=i[3]))throw new Error("css.toColor: Unsupported css format");return{rgba:r.toRgba(l,s,u,d),css:e}}}(t.css||(t.css={})),function(e){function t(e,t,n){var r=e/255,i=t/255,o=n/255;return.2126*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.7152*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))}e.relativeLuminance=function(e){return t(e>>16&255,e>>8&255,255&e)},e.relativeLuminance2=t}(i=t.rgb||(t.rgb={})),function(e){function t(e,t,n){for(var r=e>>24&255,o=e>>16&255,a=e>>8&255,l=t>>24&255,s=t>>16&255,c=t>>8&255,u=h(i.relativeLuminance2(l,s,c),i.relativeLuminance2(r,o,a));u<n&&(l>0||s>0||c>0);)l-=Math.max(0,Math.ceil(.1*l)),s-=Math.max(0,Math.ceil(.1*s)),c-=Math.max(0,Math.ceil(.1*c)),u=h(i.relativeLuminance2(l,s,c),i.relativeLuminance2(r,o,a));return(l<<24|s<<16|c<<8|255)>>>0}function n(e,t,n){for(var r=e>>24&255,o=e>>16&255,a=e>>8&255,l=t>>24&255,s=t>>16&255,c=t>>8&255,u=h(i.relativeLuminance2(l,s,c),i.relativeLuminance2(r,o,a));u<n&&(l<255||s<255||c<255);)l=Math.min(255,l+Math.ceil(.1*(255-l))),s=Math.min(255,s+Math.ceil(.1*(255-s))),c=Math.min(255,c+Math.ceil(.1*(255-c))),u=h(i.relativeLuminance2(l,s,c),i.relativeLuminance2(r,o,a));return(l<<24|s<<16|c<<8|255)>>>0}e.ensureContrastRatio=function(e,r,o){var a=i.relativeLuminance(e>>8),l=i.relativeLuminance(r>>8);if(h(a,l)<o){if(l<a){var s=t(e,r,o),c=h(a,i.relativeLuminance(s>>8));if(c<o){var u=n(e,r,o);return c>h(a,i.relativeLuminance(u>>8))?s:u}return s}var d=n(e,r,o),f=h(a,i.relativeLuminance(d>>8));if(f<o){var p=t(e,r,o);return f>h(a,i.relativeLuminance(p>>8))?d:p}return d}},e.reduceLuminance=t,e.increaseLuminance=n,e.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},e.toColor=function(e,t,n,i){return{css:r.toCss(e,t,n,i),rgba:r.toRgba(e,t,n,i)}}}(o=t.rgba||(t.rgba={})),t.toPaddedHex=f,t.contrastRatio=h},8969:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CoreTerminal=void 0;var r=n(844),i=n(2585),o=n(4348),a=n(7866),l=n(744),s=n(7302),c=n(6975),u=n(8460),h=n(1753),m=n(1480),g=n(7994),y=n(9282),b=n(5435),_=n(5981),w=n(2660),S=!1,x=function(e){p(n,e);var t=v(n);function n(e){var f;return d(this,n),(f=t.call(this))._onBinary=f.register(new u.EventEmitter),f.onBinary=f._onBinary.event,f._onData=f.register(new u.EventEmitter),f.onData=f._onData.event,f._onLineFeed=f.register(new u.EventEmitter),f.onLineFeed=f._onLineFeed.event,f._onResize=f.register(new u.EventEmitter),f.onResize=f._onResize.event,f._onWriteParsed=f.register(new u.EventEmitter),f.onWriteParsed=f._onWriteParsed.event,f._onScroll=f.register(new u.EventEmitter),f._instantiationService=new o.InstantiationService,f.optionsService=f.register(new s.OptionsService(e)),f._instantiationService.setService(i.IOptionsService,f.optionsService),f._bufferService=f.register(f._instantiationService.createInstance(l.BufferService)),f._instantiationService.setService(i.IBufferService,f._bufferService),f._logService=f.register(f._instantiationService.createInstance(a.LogService)),f._instantiationService.setService(i.ILogService,f._logService),f.coreService=f.register(f._instantiationService.createInstance(c.CoreService)),f._instantiationService.setService(i.ICoreService,f.coreService),f.coreMouseService=f.register(f._instantiationService.createInstance(h.CoreMouseService)),f._instantiationService.setService(i.ICoreMouseService,f.coreMouseService),f.unicodeService=f.register(f._instantiationService.createInstance(m.UnicodeService)),f._instantiationService.setService(i.IUnicodeService,f.unicodeService),f._charsetService=f._instantiationService.createInstance(g.CharsetService),f._instantiationService.setService(i.ICharsetService,f._charsetService),f._oscLinkService=f._instantiationService.createInstance(w.OscLinkService),f._instantiationService.setService(i.IOscLinkService,f._oscLinkService),f._inputHandler=f.register(new b.InputHandler(f._bufferService,f._charsetService,f.coreService,f._logService,f.optionsService,f._oscLinkService,f.coreMouseService,f.unicodeService)),f.register((0,u.forwardEvent)(f._inputHandler.onLineFeed,f._onLineFeed)),f.register(f._inputHandler),f.register((0,u.forwardEvent)(f._bufferService.onResize,f._onResize)),f.register((0,u.forwardEvent)(f.coreService.onData,f._onData)),f.register((0,u.forwardEvent)(f.coreService.onBinary,f._onBinary)),f.register(f.coreService.onRequestScrollToBottom((function(){return f.scrollToBottom()}))),f.register(f.coreService.onUserInput((function(){return f._writeBuffer.handleUserInput()}))),f.register(f.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],(function(){return f._handleWindowsPtyOptionChange()}))),f.register(f._bufferService.onScroll((function(e){f._onScroll.fire({position:f._bufferService.buffer.ydisp,source:0}),f._inputHandler.markRangeDirty(f._bufferService.buffer.scrollTop,f._bufferService.buffer.scrollBottom)}))),f.register(f._inputHandler.onScroll((function(e){f._onScroll.fire({position:f._bufferService.buffer.ydisp,source:0}),f._inputHandler.markRangeDirty(f._bufferService.buffer.scrollTop,f._bufferService.buffer.scrollBottom)}))),f._writeBuffer=f.register(new _.WriteBuffer((function(e,t){return f._inputHandler.parse(e,t)}))),f.register((0,u.forwardEvent)(f._writeBuffer.onWriteParsed,f._onWriteParsed)),f.register((0,r.toDisposable)((function(){var e;null===(e=f._windowsWrappingHeuristics)||void 0===e||e.dispose(),f._windowsWrappingHeuristics=void 0}))),f}return f(n,[{key:"onScroll",get:function(){var e=this;return this._onScrollApi||(this._onScrollApi=this.register(new u.EventEmitter),this._onScroll.event((function(t){var n;null===(n=e._onScrollApi)||void 0===n||n.fire(t.position)}))),this._onScrollApi.event}},{key:"cols",get:function(){return this._bufferService.cols}},{key:"rows",get:function(){return this._bufferService.rows}},{key:"buffers",get:function(){return this._bufferService.buffers}},{key:"options",get:function(){return this.optionsService.options},set:function(e){for(var t in e)this.optionsService.options[t]=e[t]}},{key:"write",value:function(e,t){this._writeBuffer.write(e,t)}},{key:"writeSync",value:function(e,t){this._logService.logLevel<=i.LogLevelEnum.WARN&&!S&&(this._logService.warn("writeSync is unreliable and will be removed soon."),S=!0),this._writeBuffer.writeSync(e,t)}},{key:"resize",value:function(e,t){isNaN(e)||isNaN(t)||(e=Math.max(e,l.MINIMUM_COLS),t=Math.max(t,l.MINIMUM_ROWS),this._bufferService.resize(e,t))}},{key:"scroll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._bufferService.scroll(e,t)}},{key:"scrollLines",value:function(e,t,n){this._bufferService.scrollLines(e,t,n)}},{key:"scrollPages",value:function(e){this._bufferService.scrollPages(e)}},{key:"scrollToTop",value:function(){this._bufferService.scrollToTop()}},{key:"scrollToBottom",value:function(){this._bufferService.scrollToBottom()}},{key:"scrollToLine",value:function(e){this._bufferService.scrollToLine(e)}},{key:"registerEscHandler",value:function(e,t){return this._inputHandler.registerEscHandler(e,t)}},{key:"registerDcsHandler",value:function(e,t){return this._inputHandler.registerDcsHandler(e,t)}},{key:"registerCsiHandler",value:function(e,t){return this._inputHandler.registerCsiHandler(e,t)}},{key:"registerOscHandler",value:function(e,t){return this._inputHandler.registerOscHandler(e,t)}},{key:"_setup",value:function(){this._handleWindowsPtyOptionChange()}},{key:"reset",value:function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}},{key:"_handleWindowsPtyOptionChange",value:function(){var e,t=!1,n=this.optionsService.rawOptions.windowsPty;n&&void 0!==n.buildNumber&&void 0!==n.buildNumber?t=!!("conpty"===n.backend&&n.buildNumber<21376):this.optionsService.rawOptions.windowsMode&&(t=!0),t?this._enableWindowsWrappingHeuristics():(null===(e=this._windowsWrappingHeuristics)||void 0===e||e.dispose(),this._windowsWrappingHeuristics=void 0)}},{key:"_enableWindowsWrappingHeuristics",value:function(){var e=this;if(!this._windowsWrappingHeuristics){var t=[];t.push(this.onLineFeed(y.updateWindowsModeWrappedState.bind(null,this._bufferService))),t.push(this.registerCsiHandler({final:"H"},(function(){return(0,y.updateWindowsModeWrappedState)(e._bufferService),!1}))),this._windowsWrappingHeuristics=(0,r.toDisposable)((function(){for(var e=0,n=t;e<n.length;e++)n[e].dispose()}))}}}]),n}(r.Disposable);t.CoreTerminal=x},8460:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.forwardEvent=t.EventEmitter=void 0,t.EventEmitter=function(){function e(){d(this,e),this._listeners=[],this._disposed=!1}return f(e,[{key:"event",get:function(){var e=this;return this._event||(this._event=function(t){return e._listeners.push(t),{dispose:function(){if(!e._disposed)for(var n=0;n<e._listeners.length;n++)if(e._listeners[n]===t)return void e._listeners.splice(n,1)}}}),this._event}},{key:"fire",value:function(e,t){for(var n=[],r=0;r<this._listeners.length;r++)n.push(this._listeners[r]);for(var i=0;i<n.length;i++)n[i].call(void 0,e,t)}},{key:"dispose",value:function(){this._listeners&&(this._listeners.length=0),this._disposed=!0}}]),e}(),t.forwardEvent=function(e,t){return e((function(e){return t.fire(e)}))}},5435:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.InputHandler=t.WindowsOptionsReportType=void 0;var o,a=n(2584),l=n(7116),s=n(2015),c=n(844),u=n(482),h=n(8437),m=n(8460),g=n(643),y=n(511),b=n(3734),_=n(2585),w=n(6242),S=n(6351),x=n(5941),C={"(":0,")":1,"*":2,"+":3,"-":1,".":2},k=131072;function E(e,t){if(e>24)return t.setWinLines||!1;switch(e){case 1:return!!t.restoreWin;case 2:return!!t.minimizeWin;case 3:return!!t.setWinPosition;case 4:return!!t.setWinSizePixels;case 5:return!!t.raiseWin;case 6:return!!t.lowerWin;case 7:return!!t.refreshWin;case 8:return!!t.setWinSizeChars;case 9:return!!t.maximizeWin;case 10:return!!t.fullscreenWin;case 11:return!!t.getWinState;case 13:return!!t.getWinPosition;case 14:return!!t.getWinSizePixels;case 15:return!!t.getScreenSizePixels;case 16:return!!t.getCellSizePixels;case 18:return!!t.getWinSizeChars;case 19:return!!t.getScreenSizeChars;case 20:return!!t.getIconTitle;case 21:return!!t.getWinTitle;case 22:return!!t.pushTitle;case 23:return!!t.popTitle;case 24:return!!t.setWinLines}return!1}!function(e){e[e.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",e[e.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(o=t.WindowsOptionsReportType||(t.WindowsOptionsReportType={}));var R=0,O=function(e){p(n,e);var t=v(n);function n(e,r,i,o,c,f,p,v){var g,b=arguments.length>8&&void 0!==arguments[8]?arguments[8]:new s.EscapeSequenceParser;d(this,n),(g=t.call(this))._bufferService=e,g._charsetService=r,g._coreService=i,g._logService=o,g._optionsService=c,g._oscLinkService=f,g._coreMouseService=p,g._unicodeService=v,g._parser=b,g._parseBuffer=new Uint32Array(4096),g._stringDecoder=new u.StringToUtf32,g._utf8Decoder=new u.Utf8ToUtf32,g._workCell=new y.CellData,g._windowTitle="",g._iconName="",g._windowTitleStack=[],g._iconNameStack=[],g._curAttrData=h.DEFAULT_ATTR_DATA.clone(),g._eraseAttrDataInternal=h.DEFAULT_ATTR_DATA.clone(),g._onRequestBell=g.register(new m.EventEmitter),g.onRequestBell=g._onRequestBell.event,g._onRequestRefreshRows=g.register(new m.EventEmitter),g.onRequestRefreshRows=g._onRequestRefreshRows.event,g._onRequestReset=g.register(new m.EventEmitter),g.onRequestReset=g._onRequestReset.event,g._onRequestSendFocus=g.register(new m.EventEmitter),g.onRequestSendFocus=g._onRequestSendFocus.event,g._onRequestSyncScrollBar=g.register(new m.EventEmitter),g.onRequestSyncScrollBar=g._onRequestSyncScrollBar.event,g._onRequestWindowsOptionsReport=g.register(new m.EventEmitter),g.onRequestWindowsOptionsReport=g._onRequestWindowsOptionsReport.event,g._onA11yChar=g.register(new m.EventEmitter),g.onA11yChar=g._onA11yChar.event,g._onA11yTab=g.register(new m.EventEmitter),g.onA11yTab=g._onA11yTab.event,g._onCursorMove=g.register(new m.EventEmitter),g.onCursorMove=g._onCursorMove.event,g._onLineFeed=g.register(new m.EventEmitter),g.onLineFeed=g._onLineFeed.event,g._onScroll=g.register(new m.EventEmitter),g.onScroll=g._onScroll.event,g._onTitleChange=g.register(new m.EventEmitter),g.onTitleChange=g._onTitleChange.event,g._onColor=g.register(new m.EventEmitter),g.onColor=g._onColor.event,g._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},g._specialColors=[256,257,258],g.register(g._parser),g._dirtyRowTracker=new P(g._bufferService),g._activeBuffer=g._bufferService.buffer,g.register(g._bufferService.buffers.onBufferActivate((function(e){return g._activeBuffer=e.activeBuffer}))),g._parser.setCsiHandlerFallback((function(e,t){g._logService.debug("Unknown CSI code: ",{identifier:g._parser.identToString(e),params:t.toArray()})})),g._parser.setEscHandlerFallback((function(e){g._logService.debug("Unknown ESC code: ",{identifier:g._parser.identToString(e)})})),g._parser.setExecuteHandlerFallback((function(e){g._logService.debug("Unknown EXECUTE code: ",{code:e})})),g._parser.setOscHandlerFallback((function(e,t,n){g._logService.debug("Unknown OSC code: ",{identifier:e,action:t,data:n})})),g._parser.setDcsHandlerFallback((function(e,t,n){"HOOK"===t&&(n=n.toArray()),g._logService.debug("Unknown DCS code: ",{identifier:g._parser.identToString(e),action:t,payload:n})})),g._parser.setPrintHandler((function(e,t,n){return g.print(e,t,n)})),g._parser.registerCsiHandler({final:"@"},(function(e){return g.insertChars(e)})),g._parser.registerCsiHandler({intermediates:" ",final:"@"},(function(e){return g.scrollLeft(e)})),g._parser.registerCsiHandler({final:"A"},(function(e){return g.cursorUp(e)})),g._parser.registerCsiHandler({intermediates:" ",final:"A"},(function(e){return g.scrollRight(e)})),g._parser.registerCsiHandler({final:"B"},(function(e){return g.cursorDown(e)})),g._parser.registerCsiHandler({final:"C"},(function(e){return g.cursorForward(e)})),g._parser.registerCsiHandler({final:"D"},(function(e){return g.cursorBackward(e)})),g._parser.registerCsiHandler({final:"E"},(function(e){return g.cursorNextLine(e)})),g._parser.registerCsiHandler({final:"F"},(function(e){return g.cursorPrecedingLine(e)})),g._parser.registerCsiHandler({final:"G"},(function(e){return g.cursorCharAbsolute(e)})),g._parser.registerCsiHandler({final:"H"},(function(e){return g.cursorPosition(e)})),g._parser.registerCsiHandler({final:"I"},(function(e){return g.cursorForwardTab(e)})),g._parser.registerCsiHandler({final:"J"},(function(e){return g.eraseInDisplay(e,!1)})),g._parser.registerCsiHandler({prefix:"?",final:"J"},(function(e){return g.eraseInDisplay(e,!0)})),g._parser.registerCsiHandler({final:"K"},(function(e){return g.eraseInLine(e,!1)})),g._parser.registerCsiHandler({prefix:"?",final:"K"},(function(e){return g.eraseInLine(e,!0)})),g._parser.registerCsiHandler({final:"L"},(function(e){return g.insertLines(e)})),g._parser.registerCsiHandler({final:"M"},(function(e){return g.deleteLines(e)})),g._parser.registerCsiHandler({final:"P"},(function(e){return g.deleteChars(e)})),g._parser.registerCsiHandler({final:"S"},(function(e){return g.scrollUp(e)})),g._parser.registerCsiHandler({final:"T"},(function(e){return g.scrollDown(e)})),g._parser.registerCsiHandler({final:"X"},(function(e){return g.eraseChars(e)})),g._parser.registerCsiHandler({final:"Z"},(function(e){return g.cursorBackwardTab(e)})),g._parser.registerCsiHandler({final:"`"},(function(e){return g.charPosAbsolute(e)})),g._parser.registerCsiHandler({final:"a"},(function(e){return g.hPositionRelative(e)})),g._parser.registerCsiHandler({final:"b"},(function(e){return g.repeatPrecedingCharacter(e)})),g._parser.registerCsiHandler({final:"c"},(function(e){return g.sendDeviceAttributesPrimary(e)})),g._parser.registerCsiHandler({prefix:">",final:"c"},(function(e){return g.sendDeviceAttributesSecondary(e)})),g._parser.registerCsiHandler({final:"d"},(function(e){return g.linePosAbsolute(e)})),g._parser.registerCsiHandler({final:"e"},(function(e){return g.vPositionRelative(e)})),g._parser.registerCsiHandler({final:"f"},(function(e){return g.hVPosition(e)})),g._parser.registerCsiHandler({final:"g"},(function(e){return g.tabClear(e)})),g._parser.registerCsiHandler({final:"h"},(function(e){return g.setMode(e)})),g._parser.registerCsiHandler({prefix:"?",final:"h"},(function(e){return g.setModePrivate(e)})),g._parser.registerCsiHandler({final:"l"},(function(e){return g.resetMode(e)})),g._parser.registerCsiHandler({prefix:"?",final:"l"},(function(e){return g.resetModePrivate(e)})),g._parser.registerCsiHandler({final:"m"},(function(e){return g.charAttributes(e)})),g._parser.registerCsiHandler({final:"n"},(function(e){return g.deviceStatus(e)})),g._parser.registerCsiHandler({prefix:"?",final:"n"},(function(e){return g.deviceStatusPrivate(e)})),g._parser.registerCsiHandler({intermediates:"!",final:"p"},(function(e){return g.softReset(e)})),g._parser.registerCsiHandler({intermediates:" ",final:"q"},(function(e){return g.setCursorStyle(e)})),g._parser.registerCsiHandler({final:"r"},(function(e){return g.setScrollRegion(e)})),g._parser.registerCsiHandler({final:"s"},(function(e){return g.saveCursor(e)})),g._parser.registerCsiHandler({final:"t"},(function(e){return g.windowOptions(e)})),g._parser.registerCsiHandler({final:"u"},(function(e){return g.restoreCursor(e)})),g._parser.registerCsiHandler({intermediates:"'",final:"}"},(function(e){return g.insertColumns(e)})),g._parser.registerCsiHandler({intermediates:"'",final:"~"},(function(e){return g.deleteColumns(e)})),g._parser.registerCsiHandler({intermediates:'"',final:"q"},(function(e){return g.selectProtected(e)})),g._parser.registerCsiHandler({intermediates:"$",final:"p"},(function(e){return g.requestMode(e,!0)})),g._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},(function(e){return g.requestMode(e,!1)})),g._parser.setExecuteHandler(a.C0.BEL,(function(){return g.bell()})),g._parser.setExecuteHandler(a.C0.LF,(function(){return g.lineFeed()})),g._parser.setExecuteHandler(a.C0.VT,(function(){return g.lineFeed()})),g._parser.setExecuteHandler(a.C0.FF,(function(){return g.lineFeed()})),g._parser.setExecuteHandler(a.C0.CR,(function(){return g.carriageReturn()})),g._parser.setExecuteHandler(a.C0.BS,(function(){return g.backspace()})),g._parser.setExecuteHandler(a.C0.HT,(function(){return g.tab()})),g._parser.setExecuteHandler(a.C0.SO,(function(){return g.shiftOut()})),g._parser.setExecuteHandler(a.C0.SI,(function(){return g.shiftIn()})),g._parser.setExecuteHandler(a.C1.IND,(function(){return g.index()})),g._parser.setExecuteHandler(a.C1.NEL,(function(){return g.nextLine()})),g._parser.setExecuteHandler(a.C1.HTS,(function(){return g.tabSet()})),g._parser.registerOscHandler(0,new w.OscHandler((function(e){return g.setTitle(e),g.setIconName(e),!0}))),g._parser.registerOscHandler(1,new w.OscHandler((function(e){return g.setIconName(e)}))),g._parser.registerOscHandler(2,new w.OscHandler((function(e){return g.setTitle(e)}))),g._parser.registerOscHandler(4,new w.OscHandler((function(e){return g.setOrReportIndexedColor(e)}))),g._parser.registerOscHandler(8,new w.OscHandler((function(e){return g.setHyperlink(e)}))),g._parser.registerOscHandler(10,new w.OscHandler((function(e){return g.setOrReportFgColor(e)}))),g._parser.registerOscHandler(11,new w.OscHandler((function(e){return g.setOrReportBgColor(e)}))),g._parser.registerOscHandler(12,new w.OscHandler((function(e){return g.setOrReportCursorColor(e)}))),g._parser.registerOscHandler(104,new w.OscHandler((function(e){return g.restoreIndexedColor(e)}))),g._parser.registerOscHandler(110,new w.OscHandler((function(e){return g.restoreFgColor(e)}))),g._parser.registerOscHandler(111,new w.OscHandler((function(e){return g.restoreBgColor(e)}))),g._parser.registerOscHandler(112,new w.OscHandler((function(e){return g.restoreCursorColor(e)}))),g._parser.registerEscHandler({final:"7"},(function(){return g.saveCursor()})),g._parser.registerEscHandler({final:"8"},(function(){return g.restoreCursor()})),g._parser.registerEscHandler({final:"D"},(function(){return g.index()})),g._parser.registerEscHandler({final:"E"},(function(){return g.nextLine()})),g._parser.registerEscHandler({final:"H"},(function(){return g.tabSet()})),g._parser.registerEscHandler({final:"M"},(function(){return g.reverseIndex()})),g._parser.registerEscHandler({final:"="},(function(){return g.keypadApplicationMode()})),g._parser.registerEscHandler({final:">"},(function(){return g.keypadNumericMode()})),g._parser.registerEscHandler({final:"c"},(function(){return g.fullReset()})),g._parser.registerEscHandler({final:"n"},(function(){return g.setgLevel(2)})),g._parser.registerEscHandler({final:"o"},(function(){return g.setgLevel(3)})),g._parser.registerEscHandler({final:"|"},(function(){return g.setgLevel(3)})),g._parser.registerEscHandler({final:"}"},(function(){return g.setgLevel(2)})),g._parser.registerEscHandler({final:"~"},(function(){return g.setgLevel(1)})),g._parser.registerEscHandler({intermediates:"%",final:"@"},(function(){return g.selectDefaultCharset()})),g._parser.registerEscHandler({intermediates:"%",final:"G"},(function(){return g.selectDefaultCharset()}));var _=function(e){g._parser.registerEscHandler({intermediates:"(",final:e},(function(){return g.selectCharset("("+e)})),g._parser.registerEscHandler({intermediates:")",final:e},(function(){return g.selectCharset(")"+e)})),g._parser.registerEscHandler({intermediates:"*",final:e},(function(){return g.selectCharset("*"+e)})),g._parser.registerEscHandler({intermediates:"+",final:e},(function(){return g.selectCharset("+"+e)})),g._parser.registerEscHandler({intermediates:"-",final:e},(function(){return g.selectCharset("-"+e)})),g._parser.registerEscHandler({intermediates:".",final:e},(function(){return g.selectCharset("."+e)})),g._parser.registerEscHandler({intermediates:"/",final:e},(function(){return g.selectCharset("/"+e)}))};for(var x in l.CHARSETS)_(x);return g._parser.registerEscHandler({intermediates:"#",final:"8"},(function(){return g.screenAlignmentPattern()})),g._parser.setErrorHandler((function(e){return g._logService.error("Parsing error: ",e),e})),g._parser.registerDcsHandler({intermediates:"$",final:"q"},new S.DcsHandler((function(e,t){return g.requestStatusString(e,t)}))),g}return f(n,[{key:"getAttrData",value:function(){return this._curAttrData}},{key:"_preserveStack",value:function(e,t,n,r){this._parseStack.paused=!0,this._parseStack.cursorStartX=e,this._parseStack.cursorStartY=t,this._parseStack.decodedLength=n,this._parseStack.position=r}},{key:"_logSlowResolvingAsync",value:function(e){this._logService.logLevel<=_.LogLevelEnum.WARN&&Promise.race([e,new Promise((function(e,t){return setTimeout((function(){return t("#SLOW_TIMEOUT")}),5e3)}))]).catch((function(e){if("#SLOW_TIMEOUT"!==e)throw e;console.warn("async parser handler taking longer than 5000 ms")}))}},{key:"_getCurrentLinkId",value:function(){return this._curAttrData.extended.urlId}},{key:"parse",value:function(e,t){var n,r=this._activeBuffer.x,i=this._activeBuffer.y,o=0,a=this._parseStack.paused;if(a){if(n=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,t))return this._logSlowResolvingAsync(n),n;r=this._parseStack.cursorStartX,i=this._parseStack.cursorStartY,this._parseStack.paused=!1,e.length>k&&(o=this._parseStack.position+k)}if(this._logService.logLevel<=_.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+' "'.concat("string"==typeof e?e:Array.prototype.map.call(e,(function(e){return String.fromCharCode(e)})).join(""),'"'),"string"==typeof e?e.split("").map((function(e){return e.charCodeAt(0)})):e),this._parseBuffer.length<e.length&&this._parseBuffer.length<k&&(this._parseBuffer=new Uint32Array(Math.min(e.length,k))),a||this._dirtyRowTracker.clearRange(),e.length>k)for(var l=o;l<e.length;l+=k){var s=l+k<e.length?l+k:e.length,c="string"==typeof e?this._stringDecoder.decode(e.substring(l,s),this._parseBuffer):this._utf8Decoder.decode(e.subarray(l,s),this._parseBuffer);if(n=this._parser.parse(this._parseBuffer,c))return this._preserveStack(r,i,c,l),this._logSlowResolvingAsync(n),n}else if(!a){var u="string"==typeof e?this._stringDecoder.decode(e,this._parseBuffer):this._utf8Decoder.decode(e,this._parseBuffer);if(n=this._parser.parse(this._parseBuffer,u))return this._preserveStack(r,i,u,0),this._logSlowResolvingAsync(n),n}this._activeBuffer.x===r&&this._activeBuffer.y===i||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowTracker.start,this._dirtyRowTracker.end)}},{key:"print",value:function(e,t,n){var r,i,o=this._charsetService.charset,a=this._optionsService.rawOptions.screenReaderMode,l=this._bufferService.cols,s=this._coreService.decPrivateModes.wraparound,c=this._coreService.modes.insertMode,d=this._curAttrData,f=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._activeBuffer.x&&n-t>0&&2===f.getWidth(this._activeBuffer.x-1)&&f.setCellFromCodePoint(this._activeBuffer.x-1,0,1,d.fg,d.bg,d.extended);for(var h=t;h<n;++h){if(r=e[h],i=this._unicodeService.wcwidth(r),r<127&&o){var p=o[String.fromCharCode(r)];p&&(r=p.charCodeAt(0))}if(a&&this._onA11yChar.fire((0,u.stringFromCodePoint)(r)),this._getCurrentLinkId()&&this._oscLinkService.addLineToLink(this._getCurrentLinkId(),this._activeBuffer.ybase+this._activeBuffer.y),i||!this._activeBuffer.x){if(this._activeBuffer.x+i-1>=l)if(s){for(;this._activeBuffer.x<l;)f.setCellFromCodePoint(this._activeBuffer.x++,0,1,d.fg,d.bg,d.extended);this._activeBuffer.x=0,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),f=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=l-1,2===i)continue;if(c&&(f.insertCells(this._activeBuffer.x,i,this._activeBuffer.getNullCell(d),d),2===f.getWidth(l-1)&&f.setCellFromCodePoint(l-1,g.NULL_CELL_CODE,g.NULL_CELL_WIDTH,d.fg,d.bg,d.extended)),f.setCellFromCodePoint(this._activeBuffer.x++,r,i,d.fg,d.bg,d.extended),i>0)for(;--i;)f.setCellFromCodePoint(this._activeBuffer.x++,0,0,d.fg,d.bg,d.extended)}else f.getWidth(this._activeBuffer.x-1)?f.addCodepointToCell(this._activeBuffer.x-1,r):f.addCodepointToCell(this._activeBuffer.x-2,r)}n-t>0&&(f.loadCell(this._activeBuffer.x-1,this._workCell),2===this._workCell.getWidth()||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x<l&&n-t>0&&0===f.getWidth(this._activeBuffer.x)&&!f.hasContent(this._activeBuffer.x)&&f.setCellFromCodePoint(this._activeBuffer.x,0,1,d.fg,d.bg,d.extended),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}},{key:"registerCsiHandler",value:function(e,t){var n=this;return"t"!==e.final||e.prefix||e.intermediates?this._parser.registerCsiHandler(e,t):this._parser.registerCsiHandler(e,(function(e){return!E(e.params[0],n._optionsService.rawOptions.windowOptions)||t(e)}))}},{key:"registerDcsHandler",value:function(e,t){return this._parser.registerDcsHandler(e,new S.DcsHandler(t))}},{key:"registerEscHandler",value:function(e,t){return this._parser.registerEscHandler(e,t)}},{key:"registerOscHandler",value:function(e,t){return this._parser.registerOscHandler(e,new w.OscHandler(t))}},{key:"bell",value:function(){return this._onRequestBell.fire(),!0}},{key:"lineFeed",value:function(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}},{key:"carriageReturn",value:function(){return this._activeBuffer.x=0,!0}},{key:"backspace",value:function(){var e;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(0===this._activeBuffer.x&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&(null===(e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))||void 0===e?void 0:e.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);t.hasWidth(this._activeBuffer.x)&&!t.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}},{key:"tab",value:function(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;var e=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-e),!0}},{key:"shiftOut",value:function(){return this._charsetService.setgLevel(1),!0}},{key:"shiftIn",value:function(){return this._charsetService.setgLevel(0),!0}},{key:"_restrictCursor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._bufferService.cols-1;this._activeBuffer.x=Math.min(e,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}},{key:"_setCursor",value:function(e,t){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=e,this._activeBuffer.y=this._activeBuffer.scrollTop+t):(this._activeBuffer.x=e,this._activeBuffer.y=t),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}},{key:"_moveCursor",value:function(e,t){this._restrictCursor(),this._setCursor(this._activeBuffer.x+e,this._activeBuffer.y+t)}},{key:"cursorUp",value:function(e){var t=this._activeBuffer.y-this._activeBuffer.scrollTop;return t>=0?this._moveCursor(0,-Math.min(t,e.params[0]||1)):this._moveCursor(0,-(e.params[0]||1)),!0}},{key:"cursorDown",value:function(e){var t=this._activeBuffer.scrollBottom-this._activeBuffer.y;return t>=0?this._moveCursor(0,Math.min(t,e.params[0]||1)):this._moveCursor(0,e.params[0]||1),!0}},{key:"cursorForward",value:function(e){return this._moveCursor(e.params[0]||1,0),!0}},{key:"cursorBackward",value:function(e){return this._moveCursor(-(e.params[0]||1),0),!0}},{key:"cursorNextLine",value:function(e){return this.cursorDown(e),this._activeBuffer.x=0,!0}},{key:"cursorPrecedingLine",value:function(e){return this.cursorUp(e),this._activeBuffer.x=0,!0}},{key:"cursorCharAbsolute",value:function(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}},{key:"cursorPosition",value:function(e){return this._setCursor(e.length>=2?(e.params[1]||1)-1:0,(e.params[0]||1)-1),!0}},{key:"charPosAbsolute",value:function(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}},{key:"hPositionRelative",value:function(e){return this._moveCursor(e.params[0]||1,0),!0}},{key:"linePosAbsolute",value:function(e){return this._setCursor(this._activeBuffer.x,(e.params[0]||1)-1),!0}},{key:"vPositionRelative",value:function(e){return this._moveCursor(0,e.params[0]||1),!0}},{key:"hVPosition",value:function(e){return this.cursorPosition(e),!0}},{key:"tabClear",value:function(e){var t=e.params[0];return 0===t?delete this._activeBuffer.tabs[this._activeBuffer.x]:3===t&&(this._activeBuffer.tabs={}),!0}},{key:"cursorForwardTab",value:function(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var t=e.params[0]||1;t--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}},{key:"cursorBackwardTab",value:function(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var t=e.params[0]||1;t--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}},{key:"selectProtected",value:function(e){var t=e.params[0];return 1===t&&(this._curAttrData.bg|=536870912),2!==t&&0!==t||(this._curAttrData.bg&=-536870913),!0}},{key:"_eraseInBufferLine",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);o.replaceCells(t,n,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData(),i),r&&(o.isWrapped=!1)}},{key:"_resetBufferLine",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);n&&(n.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),t),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+e),n.isWrapped=!1)}},{key:"eraseInDisplay",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:for(t=this._activeBuffer.y,this._dirtyRowTracker.markDirty(t),this._eraseInBufferLine(t++,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x,n);t<this._bufferService.rows;t++)this._resetBufferLine(t,n);this._dirtyRowTracker.markDirty(t);break;case 1:for(t=this._activeBuffer.y,this._dirtyRowTracker.markDirty(t),this._eraseInBufferLine(t,0,this._activeBuffer.x+1,!0,n),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(t+1).isWrapped=!1);t--;)this._resetBufferLine(t,n);this._dirtyRowTracker.markDirty(0);break;case 2:for(t=this._bufferService.rows,this._dirtyRowTracker.markDirty(t-1);t--;)this._resetBufferLine(t,n);this._dirtyRowTracker.markDirty(0);break;case 3:var r=this._activeBuffer.lines.length-this._bufferService.rows;r>0&&(this._activeBuffer.lines.trimStart(r),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-r,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-r,0),this._onScroll.fire(0))}return!0}},{key:"eraseInLine",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x,t);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,t);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,t)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}},{key:"insertLines",value:function(e){this._restrictCursor();var t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var n=this._activeBuffer.ybase+this._activeBuffer.y,r=this._bufferService.rows-1-this._activeBuffer.scrollBottom,i=this._bufferService.rows-1+this._activeBuffer.ybase-r+1;t--;)this._activeBuffer.lines.splice(i-1,1),this._activeBuffer.lines.splice(n,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}},{key:"deleteLines",value:function(e){this._restrictCursor();var t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;var n,r=this._activeBuffer.ybase+this._activeBuffer.y;for(n=this._bufferService.rows-1-this._activeBuffer.scrollBottom,n=this._bufferService.rows-1+this._activeBuffer.ybase-n;t--;)this._activeBuffer.lines.splice(r,1),this._activeBuffer.lines.splice(n,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}},{key:"insertChars",value:function(e){this._restrictCursor();var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.insertCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}},{key:"deleteChars",value:function(e){this._restrictCursor();var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.deleteCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}},{key:"scrollUp",value:function(e){for(var t=e.params[0]||1;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}},{key:"scrollDown",value:function(e){for(var t=e.params[0]||1;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,0,this._activeBuffer.getBlankLine(h.DEFAULT_ATTR_DATA));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}},{key:"scrollLeft",value:function(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var t=e.params[0]||1,n=this._activeBuffer.scrollTop;n<=this._activeBuffer.scrollBottom;++n){var r=this._activeBuffer.lines.get(this._activeBuffer.ybase+n);r.deleteCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),r.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}},{key:"scrollRight",value:function(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var t=e.params[0]||1,n=this._activeBuffer.scrollTop;n<=this._activeBuffer.scrollBottom;++n){var r=this._activeBuffer.lines.get(this._activeBuffer.ybase+n);r.insertCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),r.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}},{key:"insertColumns",value:function(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var t=e.params[0]||1,n=this._activeBuffer.scrollTop;n<=this._activeBuffer.scrollBottom;++n){var r=this._activeBuffer.lines.get(this._activeBuffer.ybase+n);r.insertCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),r.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}},{key:"deleteColumns",value:function(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var t=e.params[0]||1,n=this._activeBuffer.scrollTop;n<=this._activeBuffer.scrollBottom;++n){var r=this._activeBuffer.lines.get(this._activeBuffer.ybase+n);r.deleteCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),r.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}},{key:"eraseChars",value:function(e){this._restrictCursor();var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(e.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}},{key:"repeatPrecedingCharacter",value:function(e){if(!this._parser.precedingCodepoint)return!0;for(var t=e.params[0]||1,n=new Uint32Array(t),r=0;r<t;++r)n[r]=this._parser.precedingCodepoint;return this.print(n,0,n.length),!0}},{key:"sendDeviceAttributesPrimary",value:function(e){return e.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(a.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(a.C0.ESC+"[?6c")),!0}},{key:"sendDeviceAttributesSecondary",value:function(e){return e.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(a.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(a.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(a.C0.ESC+"[>83;40003;0c")),!0}},{key:"_is",value:function(e){return 0===(this._optionsService.rawOptions.termName+"").indexOf(e)}},{key:"setMode",value:function(e){for(var t=0;t<e.length;t++)switch(e.params[t]){case 4:this._coreService.modes.insertMode=!0;break;case 20:this._optionsService.options.convertEol=!0}return!0}},{key:"setModePrivate",value:function(e){for(var t=0;t<e.length;t++)switch(e.params[t]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,l.DEFAULT_CHARSET),this._charsetService.setgCharset(1,l.DEFAULT_CHARSET),this._charsetService.setgCharset(2,l.DEFAULT_CHARSET),this._charsetService.setgCharset(3,l.DEFAULT_CHARSET);break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:this._optionsService.options.cursorBlink=!0;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0,this._onRequestSendFocus.fire();break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 1016:this._coreMouseService.activeEncoding="SGR_PIXELS";break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}return!0}},{key:"resetMode",value:function(e){for(var t=0;t<e.length;t++)switch(e.params[t]){case 4:this._coreService.modes.insertMode=!1;break;case 20:this._optionsService.options.convertEol=!1}return!0}},{key:"resetModePrivate",value:function(e){for(var t=0;t<e.length;t++)switch(e.params[t]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:this._optionsService.options.cursorBlink=!1;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:case 1016:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),1049===e.params[t]&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}return!0}},{key:"requestMode",value:function(e,t){var n,r,i=this._coreService.decPrivateModes,o=this._coreMouseService,l=o.activeProtocol,s=o.activeEncoding,c=this._coreService,u=this._bufferService,d=u.buffers,f=u.cols,h=d.active,p=d.alt,v=this._optionsService.rawOptions,m=function(e){return e?1:2},g=e.params[0];return n=g,r=t?2===g?4:4===g?m(c.modes.insertMode):12===g?3:20===g?m(v.convertEol):0:1===g?m(i.applicationCursorKeys):3===g?v.windowOptions.setWinLines?80===f?2:132===f?1:0:0:6===g?m(i.origin):7===g?m(i.wraparound):8===g?3:9===g?m("X10"===l):12===g?m(v.cursorBlink):25===g?m(!c.isCursorHidden):45===g?m(i.reverseWraparound):66===g?m(i.applicationKeypad):67===g?4:1e3===g?m("VT200"===l):1002===g?m("DRAG"===l):1003===g?m("ANY"===l):1004===g?m(i.sendFocus):1005===g?4:1006===g?m("SGR"===s):1015===g?4:1016===g?m("SGR_PIXELS"===s):1048===g?1:47===g||1047===g||1049===g?m(h===p):2004===g?m(i.bracketedPasteMode):0,c.triggerDataEvent("".concat(a.C0.ESC,"[").concat(t?"":"?").concat(n,";").concat(r,"$y")),!0}},{key:"_updateAttrColor",value:function(e,t,n,r,i){return 2===t?(e|=50331648,e&=-16777216,e|=b.AttributeData.fromColorRGB([n,r,i])):5===t&&(e&=-50331904,e|=33554432|255&n),e}},{key:"_extractColor",value:function(e,t,n){var r=[0,0,-1,0,0,0],i=0,o=0;do{if(r[o+i]=e.params[t+o],e.hasSubParams(t+o)){var a=e.getSubParams(t+o),l=0;do{5===r[1]&&(i=1),r[o+l+1+i]=a[l]}while(++l<a.length&&l+o+1+i<r.length);break}if(5===r[1]&&o+i>=2||2===r[1]&&o+i>=5)break;r[1]&&(i=1)}while(++o+t<e.length&&o+i<r.length);for(var s=2;s<r.length;++s)-1===r[s]&&(r[s]=0);switch(r[0]){case 38:n.fg=this._updateAttrColor(n.fg,r[1],r[3],r[4],r[5]);break;case 48:n.bg=this._updateAttrColor(n.bg,r[1],r[3],r[4],r[5]);break;case 58:n.extended=n.extended.clone(),n.extended.underlineColor=this._updateAttrColor(n.extended.underlineColor,r[1],r[3],r[4],r[5])}return o}},{key:"_processUnderline",value:function(e,t){t.extended=t.extended.clone(),(!~e||e>5)&&(e=1),t.extended.underlineStyle=e,t.fg|=268435456,0===e&&(t.fg&=-268435457),t.updateExtended()}},{key:"_processSGR0",value:function(e){e.fg=h.DEFAULT_ATTR_DATA.fg,e.bg=h.DEFAULT_ATTR_DATA.bg,e.extended=e.extended.clone(),e.extended.underlineStyle=0,e.extended.underlineColor&=-67108864,e.updateExtended()}},{key:"charAttributes",value:function(e){if(1===e.length&&0===e.params[0])return this._processSGR0(this._curAttrData),!0;for(var t,n=e.length,r=this._curAttrData,i=0;i<n;i++)(t=e.params[i])>=30&&t<=37?(r.fg&=-50331904,r.fg|=16777216|t-30):t>=40&&t<=47?(r.bg&=-50331904,r.bg|=16777216|t-40):t>=90&&t<=97?(r.fg&=-50331904,r.fg|=16777224|t-90):t>=100&&t<=107?(r.bg&=-50331904,r.bg|=16777224|t-100):0===t?this._processSGR0(r):1===t?r.fg|=134217728:3===t?r.bg|=67108864:4===t?(r.fg|=268435456,this._processUnderline(e.hasSubParams(i)?e.getSubParams(i)[0]:1,r)):5===t?r.fg|=536870912:7===t?r.fg|=67108864:8===t?r.fg|=1073741824:9===t?r.fg|=2147483648:2===t?r.bg|=134217728:21===t?this._processUnderline(2,r):22===t?(r.fg&=-134217729,r.bg&=-134217729):23===t?r.bg&=-67108865:24===t?(r.fg&=-268435457,this._processUnderline(0,r)):25===t?r.fg&=-536870913:27===t?r.fg&=-67108865:28===t?r.fg&=-1073741825:29===t?r.fg&=2147483647:39===t?(r.fg&=-67108864,r.fg|=16777215&h.DEFAULT_ATTR_DATA.fg):49===t?(r.bg&=-67108864,r.bg|=16777215&h.DEFAULT_ATTR_DATA.bg):38===t||48===t||58===t?i+=this._extractColor(e,i,r):53===t?r.bg|=1073741824:55===t?r.bg&=-1073741825:59===t?(r.extended=r.extended.clone(),r.extended.underlineColor=-1,r.updateExtended()):100===t?(r.fg&=-67108864,r.fg|=16777215&h.DEFAULT_ATTR_DATA.fg,r.bg&=-67108864,r.bg|=16777215&h.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",t);return!0}},{key:"deviceStatus",value:function(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent("".concat(a.C0.ESC,"[0n"));break;case 6:var t=this._activeBuffer.y+1,n=this._activeBuffer.x+1;this._coreService.triggerDataEvent("".concat(a.C0.ESC,"[").concat(t,";").concat(n,"R"))}return!0}},{key:"deviceStatusPrivate",value:function(e){if(6===e.params[0]){var t=this._activeBuffer.y+1,n=this._activeBuffer.x+1;this._coreService.triggerDataEvent("".concat(a.C0.ESC,"[?").concat(t,";").concat(n,"R"))}return!0}},{key:"softReset",value:function(e){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=h.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}},{key:"setCursorStyle",value:function(e){var t=e.params[0]||1;switch(t){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var n=t%2==1;return this._optionsService.options.cursorBlink=n,!0}},{key:"setScrollRegion",value:function(e){var t,n=e.params[0]||1;return(e.length<2||(t=e.params[1])>this._bufferService.rows||0===t)&&(t=this._bufferService.rows),t>n&&(this._activeBuffer.scrollTop=n-1,this._activeBuffer.scrollBottom=t-1,this._setCursor(0,0)),!0}},{key:"windowOptions",value:function(e){if(!E(e.params[0],this._optionsService.rawOptions.windowOptions))return!0;var t=e.length>1?e.params[1]:0;switch(e.params[0]){case 14:2!==t&&this._onRequestWindowsOptionsReport.fire(o.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(o.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent("".concat(a.C0.ESC,"[8;").concat(this._bufferService.rows,";").concat(this._bufferService.cols,"t"));break;case 22:0!==t&&2!==t||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==t&&1!==t||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==t&&2!==t||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==t&&1!==t||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0}},{key:"saveCursor",value:function(e){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}},{key:"restoreCursor",value:function(e){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}},{key:"setTitle",value:function(e){return this._windowTitle=e,this._onTitleChange.fire(e),!0}},{key:"setIconName",value:function(e){return this._iconName=e,!0}},{key:"setOrReportIndexedColor",value:function(e){for(var t=[],n=e.split(";");n.length>1;){var r=n.shift(),i=n.shift();if(/^\d+$/.exec(r)){var o=parseInt(r);if(0<=o&&o<256)if("?"===i)t.push({type:0,index:o});else{var a=(0,x.parseColor)(i);a&&t.push({type:1,index:o,color:a})}}}return t.length&&this._onColor.fire(t),!0}},{key:"setHyperlink",value:function(e){var t=e.split(";");return!(t.length<2)&&(t[1]?this._createHyperlink(t[0],t[1]):!t[0]&&this._finishHyperlink())}},{key:"_createHyperlink",value:function(e,t){this._getCurrentLinkId()&&this._finishHyperlink();var n,r=e.split(":"),i=r.findIndex((function(e){return e.startsWith("id=")}));return-1!==i&&(n=r[i].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:n,uri:t}),this._curAttrData.updateExtended(),!0}},{key:"_finishHyperlink",value:function(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}},{key:"_setOrReportSpecialColor",value:function(e,t){for(var n=e.split(";"),r=0;r<n.length&&!(t>=this._specialColors.length);++r,++t)if("?"===n[r])this._onColor.fire([{type:0,index:this._specialColors[t]}]);else{var i=(0,x.parseColor)(n[r]);i&&this._onColor.fire([{type:1,index:this._specialColors[t],color:i}])}return!0}},{key:"setOrReportFgColor",value:function(e){return this._setOrReportSpecialColor(e,0)}},{key:"setOrReportBgColor",value:function(e){return this._setOrReportSpecialColor(e,1)}},{key:"setOrReportCursorColor",value:function(e){return this._setOrReportSpecialColor(e,2)}},{key:"restoreIndexedColor",value:function(e){if(!e)return this._onColor.fire([{type:2}]),!0;for(var t=[],n=e.split(";"),r=0;r<n.length;++r)if(/^\d+$/.exec(n[r])){var i=parseInt(n[r]);0<=i&&i<256&&t.push({type:2,index:i})}return t.length&&this._onColor.fire(t),!0}},{key:"restoreFgColor",value:function(e){return this._onColor.fire([{type:2,index:256}]),!0}},{key:"restoreBgColor",value:function(e){return this._onColor.fire([{type:2,index:257}]),!0}},{key:"restoreCursorColor",value:function(e){return this._onColor.fire([{type:2,index:258}]),!0}},{key:"nextLine",value:function(){return this._activeBuffer.x=0,this.index(),!0}},{key:"keypadApplicationMode",value:function(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0}},{key:"keypadNumericMode",value:function(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0}},{key:"selectDefaultCharset",value:function(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,l.DEFAULT_CHARSET),!0}},{key:"selectCharset",value:function(e){return 2!==e.length?(this.selectDefaultCharset(),!0):("/"===e[0]||this._charsetService.setgCharset(C[e[0]],l.CHARSETS[e[1]]||l.DEFAULT_CHARSET),!0)}},{key:"index",value:function(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}},{key:"tabSet",value:function(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}},{key:"reverseIndex",value:function(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){var e=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,e,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}},{key:"fullReset",value:function(){return this._parser.reset(),this._onRequestReset.fire(),!0}},{key:"reset",value:function(){this._curAttrData=h.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=h.DEFAULT_ATTR_DATA.clone()}},{key:"_eraseAttrData",value:function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal}},{key:"setgLevel",value:function(e){return this._charsetService.setgLevel(e),!0}},{key:"screenAlignmentPattern",value:function(){var e=new y.CellData;e.content=1<<22|"E".charCodeAt(0),e.fg=this._curAttrData.fg,e.bg=this._curAttrData.bg,this._setCursor(0,0);for(var t=0;t<this._bufferService.rows;++t){var n=this._activeBuffer.ybase+this._activeBuffer.y+t,r=this._activeBuffer.lines.get(n);r&&(r.fill(e),r.isWrapped=!1)}return this._dirtyRowTracker.markAllDirty(),this._setCursor(0,0),!0}},{key:"requestStatusString",value:function(e,t){var n=this,r=this._bufferService.buffer,i=this._optionsService.rawOptions;return function(e){return n._coreService.triggerDataEvent("".concat(a.C0.ESC).concat(e).concat(a.C0.ESC,"\\")),!0}('"q'===e?"P1$r".concat(this._curAttrData.isProtected()?1:0,'"q'):'"p'===e?'P1$r61;1"p':"r"===e?"P1$r".concat(r.scrollTop+1,";").concat(r.scrollBottom+1,"r"):"m"===e?"P1$r0m":" q"===e?"P1$r".concat({block:2,underline:4,bar:6}[i.cursorStyle]-(i.cursorBlink?1:0)," q"):"P0$r")}},{key:"markRangeDirty",value:function(e,t){this._dirtyRowTracker.markRangeDirty(e,t)}}]),n}(c.Disposable);t.InputHandler=O;var P=function(){function e(t){d(this,e),this._bufferService=t,this.clearRange()}return f(e,[{key:"clearRange",value:function(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}},{key:"markDirty",value:function(e){e<this.start?this.start=e:e>this.end&&(this.end=e)}},{key:"markRangeDirty",value:function(e,t){e>t&&(R=e,e=t,t=R),e<this.start&&(this.start=e),t>this.end&&(this.end=t)}},{key:"markAllDirty",value:function(){this.markRangeDirty(0,this._bufferService.rows-1)}}]),e}();P=r([i(0,_.IBufferService)],P)},844:function(e,t){function n(e){var t,n=u(e);try{for(n.s();!(t=n.n()).done;)t.value.dispose()}catch(r){n.e(r)}finally{n.f()}e.length=0}Object.defineProperty(t,"__esModule",{value:!0}),t.getDisposeArrayDisposable=t.disposeArray=t.toDisposable=t.Disposable=void 0,t.Disposable=function(){function e(){d(this,e),this._disposables=[],this._isDisposed=!1}return f(e,[{key:"dispose",value:function(){this._isDisposed=!0;var e,t=u(this._disposables);try{for(t.s();!(e=t.n()).done;)e.value.dispose()}catch(n){t.e(n)}finally{t.f()}this._disposables.length=0}},{key:"register",value:function(e){return this._disposables.push(e),e}},{key:"unregister",value:function(e){var t=this._disposables.indexOf(e);-1!==t&&this._disposables.splice(t,1)}}]),e}(),t.toDisposable=function(e){return{dispose:e}},t.disposeArray=n,t.getDisposeArrayDisposable=function(e){return{dispose:function(){return n(e)}}}},1505:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FourKeyMap=t.TwoKeyMap=void 0;var n=function(){function e(){d(this,e),this._data={}}return f(e,[{key:"set",value:function(e,t,n){this._data[e]||(this._data[e]={}),this._data[e][t]=n}},{key:"get",value:function(e,t){return this._data[e]?this._data[e][t]:void 0}},{key:"clear",value:function(){this._data={}}}]),e}();t.TwoKeyMap=n,t.FourKeyMap=function(){function e(){d(this,e),this._data=new n}return f(e,[{key:"set",value:function(e,t,r,i,o){this._data.get(e,t)||this._data.set(e,t,new n),this._data.get(e,t).set(r,i,o)}},{key:"get",value:function(e,t,n,r){var i;return null===(i=this._data.get(e,t))||void 0===i?void 0:i.get(n,r)}},{key:"clear",value:function(){this._data.clear()}}]),e}()},6114:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isChromeOS=t.isLinux=t.isWindows=t.isIphone=t.isIpad=t.isMac=t.getSafariVersion=t.isSafari=t.isLegacyEdge=t.isFirefox=t.isNode=void 0,t.isNode="undefined"==typeof navigator;var n=t.isNode?"node":navigator.userAgent,r=t.isNode?"node":navigator.platform;t.isFirefox=n.includes("Firefox"),t.isLegacyEdge=n.includes("Edge"),t.isSafari=/^((?!chrome|android).)*safari/i.test(n),t.getSafariVersion=function(){if(!t.isSafari)return 0;var e=n.match(/Version\/(\d+)/);return null===e||e.length<2?0:parseInt(e[1])},t.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(r),t.isIpad="iPad"===r,t.isIphone="iPhone"===r,t.isWindows=["Windows","Win16","Win32","WinCE"].includes(r),t.isLinux=r.indexOf("Linux")>=0,t.isChromeOS=/\bCrOS\b/.test(n)},6106:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SortedList=void 0;var n=0;t.SortedList=function(){function e(t){d(this,e),this._getKey=t,this._array=[]}return f(e,[{key:"clear",value:function(){this._array.length=0}},{key:"insert",value:function(e){0!==this._array.length?(n=this._search(this._getKey(e),0,this._array.length-1),this._array.splice(n,0,e)):this._array.push(e)}},{key:"delete",value:function(e){if(0===this._array.length)return!1;var t=this._getKey(e);if(void 0===t)return!1;if(-1===(n=this._search(t,0,this._array.length-1)))return!1;if(this._getKey(this._array[n])!==t)return!1;do{if(this._array[n]===e)return this._array.splice(n,1),!0}while(++n<this._array.length&&this._getKey(this._array[n])===t);return!1}},{key:"getKeyIterator",value:i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0===this._array.length||(n=this._search(t,0,this._array.length-1))<0||n>=this._array.length||this._getKey(this._array[n])!==t){e.next=4;break}case 1:return e.next=3,this._array[n];case 3:if(++n<this._array.length&&this._getKey(this._array[n])===t){e.next=1;break}case 4:case"end":return e.stop()}}),e,this)}))},{key:"forEachByKey",value:function(e,t){if(0!==this._array.length&&!((n=this._search(e,0,this._array.length-1))<0||n>=this._array.length)&&this._getKey(this._array[n])===e)do{t(this._array[n])}while(++n<this._array.length&&this._getKey(this._array[n])===e)}},{key:"values",value:function(){return this._array.values()}},{key:"_search",value:function(e,t,n){if(n<t)return t;var r=Math.floor((t+n)/2),i=this._getKey(this._array[r]);if(i>e)return this._search(e,t,r-1);if(i<e)return this._search(e,r+1,n);for(;r>0&&this._getKey(this._array[r-1])===e;)r--;return r}}]),e}()},7226:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DebouncedIdleTask=t.IdleTaskQueue=t.PriorityTaskQueue=void 0;var r=n(6114),i=function(){function e(){d(this,e),this._tasks=[],this._i=0}return f(e,[{key:"enqueue",value:function(e){this._tasks.push(e),this._start()}},{key:"flush",value:function(){for(;this._i<this._tasks.length;)this._tasks[this._i]()||this._i++;this.clear()}},{key:"clear",value:function(){this._idleCallback&&(this._cancelCallback(this._idleCallback),this._idleCallback=void 0),this._i=0,this._tasks.length=0}},{key:"_start",value:function(){this._idleCallback||(this._idleCallback=this._requestCallback(this._process.bind(this)))}},{key:"_process",value:function(e){this._idleCallback=void 0;for(var t=0,n=0,r=e.timeRemaining(),i=0;this._i<this._tasks.length;){if(t=Date.now(),this._tasks[this._i]()||this._i++,t=Math.max(1,Date.now()-t),1.5*(n=Math.max(t,n))>(i=e.timeRemaining()))return r-t<-20&&console.warn("task queue exceeded allotted deadline by ".concat(Math.abs(Math.round(r-t)),"ms")),void this._start();r=i}this.clear()}}]),e}(),o=function(e){p(n,e);var t=v(n);function n(){return d(this,n),t.apply(this,arguments)}return f(n,[{key:"_requestCallback",value:function(e){var t=this;return setTimeout((function(){return e(t._createDeadline(16))}))}},{key:"_cancelCallback",value:function(e){clearTimeout(e)}},{key:"_createDeadline",value:function(e){var t=Date.now()+e;return{timeRemaining:function(){return Math.max(0,t-Date.now())}}}}]),n}(i);t.PriorityTaskQueue=o,t.IdleTaskQueue=!r.isNode&&"requestIdleCallback"in window?function(e){p(n,e);var t=v(n);function n(){return d(this,n),t.apply(this,arguments)}return f(n,[{key:"_requestCallback",value:function(e){return requestIdleCallback(e)}},{key:"_cancelCallback",value:function(e){cancelIdleCallback(e)}}]),n}(i):o,t.DebouncedIdleTask=function(){function e(){d(this,e),this._queue=new t.IdleTaskQueue}return f(e,[{key:"set",value:function(e){this._queue.clear(),this._queue.enqueue(e)}},{key:"flush",value:function(){this._queue.flush()}}]),e}()},9282:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.updateWindowsModeWrappedState=void 0;var r=n(643);t.updateWindowsModeWrappedState=function(e){var t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1),n=null==t?void 0:t.get(e.cols-1),i=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);i&&n&&(i.isWrapped=n[r.CHAR_DATA_CODE_INDEX]!==r.NULL_CELL_CODE&&n[r.CHAR_DATA_CODE_INDEX]!==r.WHITESPACE_CELL_CODE)}},3734:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedAttrs=t.AttributeData=void 0;var n=function(){function e(){d(this,e),this.fg=0,this.bg=0,this.extended=new r}return f(e,[{key:"clone",value:function(){var t=new e;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t}},{key:"isInverse",value:function(){return 67108864&this.fg}},{key:"isBold",value:function(){return 134217728&this.fg}},{key:"isUnderline",value:function(){return this.hasExtendedAttrs()&&0!==this.extended.underlineStyle?1:268435456&this.fg}},{key:"isBlink",value:function(){return 536870912&this.fg}},{key:"isInvisible",value:function(){return 1073741824&this.fg}},{key:"isItalic",value:function(){return 67108864&this.bg}},{key:"isDim",value:function(){return 134217728&this.bg}},{key:"isStrikethrough",value:function(){return 2147483648&this.fg}},{key:"isProtected",value:function(){return 536870912&this.bg}},{key:"isOverline",value:function(){return 1073741824&this.bg}},{key:"getFgColorMode",value:function(){return 50331648&this.fg}},{key:"getBgColorMode",value:function(){return 50331648&this.bg}},{key:"isFgRGB",value:function(){return 50331648==(50331648&this.fg)}},{key:"isBgRGB",value:function(){return 50331648==(50331648&this.bg)}},{key:"isFgPalette",value:function(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)}},{key:"isBgPalette",value:function(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)}},{key:"isFgDefault",value:function(){return 0==(50331648&this.fg)}},{key:"isBgDefault",value:function(){return 0==(50331648&this.bg)}},{key:"isAttributeDefault",value:function(){return 0===this.fg&&0===this.bg}},{key:"getFgColor",value:function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}},{key:"getBgColor",value:function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}},{key:"hasExtendedAttrs",value:function(){return 268435456&this.bg}},{key:"updateExtended",value:function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}},{key:"getUnderlineColor",value:function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}},{key:"getUnderlineColorMode",value:function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}},{key:"isUnderlineColorRGB",value:function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()}},{key:"isUnderlineColorPalette",value:function(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()}},{key:"isUnderlineColorDefault",value:function(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()}},{key:"getUnderlineStyle",value:function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}}],[{key:"toColorRGB",value:function(e){return[e>>>16&255,e>>>8&255,255&e]}},{key:"fromColorRGB",value:function(e){return(255&e[0])<<16|(255&e[1])<<8|255&e[2]}}]),e}();t.AttributeData=n;var r=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this._ext=0,this._urlId=0,this._ext=t,this._urlId=n}return f(e,[{key:"ext",get:function(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext},set:function(e){this._ext=e}},{key:"underlineStyle",get:function(){return this._urlId?5:(469762048&this._ext)>>26},set:function(e){this._ext&=-469762049,this._ext|=e<<26&469762048}},{key:"underlineColor",get:function(){return 67108863&this._ext},set:function(e){this._ext&=-67108864,this._ext|=67108863&e}},{key:"urlId",get:function(){return this._urlId},set:function(e){this._urlId=e}},{key:"clone",value:function(){return new e(this._ext,this._urlId)}},{key:"isEmpty",value:function(){return 0===this.underlineStyle&&0===this._urlId}}]),e}();t.ExtendedAttrs=r},9092:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Buffer=t.MAX_BUFFER_SIZE=void 0;var r=n(6349),i=n(8437),o=n(511),a=n(643),l=n(4634),s=n(4863),c=n(7116),u=n(3734),h=n(7226);t.MAX_BUFFER_SIZE=4294967295,t.Buffer=function(){function e(t,n,l){d(this,e),this._hasScrollback=t,this._optionsService=n,this._bufferService=l,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=i.DEFAULT_ATTR_DATA.clone(),this.savedCharset=c.DEFAULT_CHARSET,this.markers=[],this._nullCell=o.CellData.fromCharData([0,a.NULL_CELL_CHAR,a.NULL_CELL_WIDTH,a.NULL_CELL_CODE]),this._whitespaceCell=o.CellData.fromCharData([0,a.WHITESPACE_CELL_CHAR,a.WHITESPACE_CELL_WIDTH,a.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new h.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new r.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return f(e,[{key:"getNullCell",value:function(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new u.ExtendedAttrs),this._nullCell}},{key:"getWhitespaceCell",value:function(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new u.ExtendedAttrs),this._whitespaceCell}},{key:"getBlankLine",value:function(e,t){return new i.BufferLine(this._bufferService.cols,this.getNullCell(e),t)}},{key:"hasScrollback",get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows}},{key:"isCursorInViewport",get:function(){var e=this.ybase+this.y-this.ydisp;return e>=0&&e<this._rows}},{key:"_getCorrectBufferLength",value:function(e){if(!this._hasScrollback)return e;var n=e+this._optionsService.rawOptions.scrollback;return n>t.MAX_BUFFER_SIZE?t.MAX_BUFFER_SIZE:n}},{key:"fillViewportRows",value:function(e){if(0===this.lines.length){void 0===e&&(e=i.DEFAULT_ATTR_DATA);for(var t=this._rows;t--;)this.lines.push(this.getBlankLine(e))}}},{key:"clear",value:function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new r.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}},{key:"resize",value:function(e,t){var n=this,r=this.getNullCell(i.DEFAULT_ATTR_DATA),o=0,a=this._getCorrectBufferLength(t);if(a>this.lines.maxLength&&(this.lines.maxLength=a),this.lines.length>0){if(this._cols<e)for(var l=0;l<this.lines.length;l++)o+=+this.lines.get(l).resize(e,r);var s=0;if(this._rows<t)for(var c=this._rows;c<t;c++)this.lines.length<t+this.ybase&&(this._optionsService.rawOptions.windowsMode||void 0!==this._optionsService.rawOptions.windowsPty.backend||void 0!==this._optionsService.rawOptions.windowsPty.buildNumber?this.lines.push(new i.BufferLine(e,r)):this.ybase>0&&this.lines.length<=this.ybase+this.y+s+1?(this.ybase--,s++,this.ydisp>0&&this.ydisp--):this.lines.push(new i.BufferLine(e,r)));else for(var u=this._rows;u>t;u--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(a<this.lines.maxLength){var d=this.lines.length-a;d>0&&(this.lines.trimStart(d),this.ybase=Math.max(this.ybase-d,0),this.ydisp=Math.max(this.ydisp-d,0),this.savedY=Math.max(this.savedY-d,0)),this.lines.maxLength=a}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),s&&(this.y+=s),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=t-1,this._isReflowEnabled&&(this._reflow(e,t),this._cols>e))for(var f=0;f<this.lines.length;f++)o+=+this.lines.get(f).resize(e,r);this._cols=e,this._rows=t,this._memoryCleanupQueue.clear(),o>.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue((function(){return n._batchedMemoryCleanup()})))}},{key:"_batchedMemoryCleanup",value:function(){var e=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,e=!1);for(var t=0;this._memoryCleanupPosition<this.lines.length;)if((t+=this.lines.get(this._memoryCleanupPosition++).cleanupMemory())>100)return!0;return e}},{key:"_isReflowEnabled",get:function(){var e=this._optionsService.rawOptions.windowsPty;return e&&e.buildNumber?this._hasScrollback&&"conpty"===e.backend&&e.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}},{key:"_reflow",value:function(e,t){this._cols!==e&&(e>this._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))}},{key:"_reflowLarger",value:function(e,t){var n=(0,l.reflowLargerGetLinesToRemove)(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(i.DEFAULT_ATTR_DATA));if(n.length>0){var r=(0,l.reflowLargerCreateNewLayout)(this.lines,n);(0,l.reflowLargerApplyNewLayout)(this.lines,r.layout),this._reflowLargerAdjustViewport(e,t,r.countRemoved)}}},{key:"_reflowLargerAdjustViewport",value:function(e,t,n){for(var r=this.getNullCell(i.DEFAULT_ATTR_DATA),o=n;o-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length<t&&this.lines.push(new i.BufferLine(e,r))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-n,0)}},{key:"_reflowSmaller",value:function(e,t){for(var n=this.getNullCell(i.DEFAULT_ATTR_DATA),r=[],o=0,a=this.lines.length-1;a>=0;a--){var s=this.lines.get(a);if(!(!s||!s.isWrapped&&s.getTrimmedLength()<=e)){for(var c=[s];s.isWrapped&&a>0;)s=this.lines.get(--a),c.unshift(s);var u=this.ybase+this.y;if(!(u>=a&&u<a+c.length)){var d=c[c.length-1].getTrimmedLength(),f=(0,l.reflowSmallerGetNewLineLengths)(c,this._cols,e),h=f.length-c.length,p=void 0;p=0===this.ybase&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+h):Math.max(0,this.lines.length-this.lines.maxLength+h);for(var v=[],m=0;m<h;m++){var g=this.getBlankLine(i.DEFAULT_ATTR_DATA,!0);v.push(g)}v.length>0&&(r.push({start:a+c.length+o,newLines:v}),o+=v.length),c.push.apply(c,v);var y=f.length-1,b=f[y];0===b&&(b=f[--y]);for(var _=c.length-h-1,w=d;_>=0;){var S=Math.min(w,b);if(void 0===c[y])break;if(c[y].copyCellsFrom(c[_],w-S,b-S,S,!0),0===(b-=S)&&(b=f[--y]),0===(w-=S)){_--;var x=Math.max(_,0);w=(0,l.getWrappedLineTrimmedLength)(c,x,this._cols)}}for(var C=0;C<c.length;C++)f[C]<e&&c[C].setCell(f[C],n);for(var k=h-p;k-- >0;)0===this.ybase?this.y<t-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+o)-t&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+h,this.ybase+t-1)}}}if(r.length>0){for(var E=[],R=[],O=0;O<this.lines.length;O++)R.push(this.lines.get(O));var P=this.lines.length,T=P-1,M=0,L=r[M];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+o);for(var Z=0,I=Math.min(this.lines.maxLength-1,P+o-1);I>=0;I--)if(L&&L.start>T+Z){for(var D=L.newLines.length-1;D>=0;D--)this.lines.set(I--,L.newLines[D]);I++,E.push({index:T+1,amount:L.newLines.length}),Z+=L.newLines.length,L=r[++M]}else this.lines.set(I,R[T--]);for(var j=0,A=E.length-1;A>=0;A--)E[A].index+=j,this.lines.onInsertEmitter.fire(E[A]),j+=E[A].amount;var N=Math.max(0,P+o-this.lines.maxLength);N>0&&this.lines.onTrimEmitter.fire(N)}}},{key:"translateBufferLineToString",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0,i=this.lines.get(e);return i?i.translateToString(t,n,r):""}},{key:"getWrappedRangeForLine",value:function(e){for(var t=e,n=e;t>0&&this.lines.get(t).isWrapped;)t--;for(;n+1<this.lines.length&&this.lines.get(n+1).isWrapped;)n++;return{first:t,last:n}}},{key:"setupTabStops",value:function(e){for(null!=e?this.tabs[e]||(e=this.prevStop(e)):(this.tabs={},e=0);e<this._cols;e+=this._optionsService.rawOptions.tabStopWidth)this.tabs[e]=!0}},{key:"prevStop",value:function(e){for(null==e&&(e=this.x);!this.tabs[--e]&&e>0;);return e>=this._cols?this._cols-1:e<0?0:e}},{key:"nextStop",value:function(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e<this._cols;);return e>=this._cols?this._cols-1:e<0?0:e}},{key:"clearMarkers",value:function(e){this._isClearing=!0;for(var t=0;t<this.markers.length;t++)this.markers[t].line===e&&(this.markers[t].dispose(),this.markers.splice(t--,1));this._isClearing=!1}},{key:"clearAllMarkers",value:function(){this._isClearing=!0;for(var e=0;e<this.markers.length;e++)this.markers[e].dispose(),this.markers.splice(e--,1);this._isClearing=!1}},{key:"addMarker",value:function(e){var t=this,n=new s.Marker(e);return this.markers.push(n),n.register(this.lines.onTrim((function(e){n.line-=e,n.line<0&&n.dispose()}))),n.register(this.lines.onInsert((function(e){n.line>=e.index&&(n.line+=e.amount)}))),n.register(this.lines.onDelete((function(e){n.line>=e.index&&n.line<e.index+e.amount&&n.dispose(),n.line>e.index&&(n.line-=e.amount)}))),n.register(n.onDispose((function(){return t._removeMarker(n)}))),n}},{key:"_removeMarker",value:function(e){this._isClearing||this.markers.splice(this.markers.indexOf(e),1)}}]),e}()},8437:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLine=t.DEFAULT_ATTR_DATA=void 0;var r=n(482),i=n(643),o=n(511),a=n(3734);t.DEFAULT_ATTR_DATA=Object.freeze(new a.AttributeData);var l=0,s=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];d(this,e),this.isWrapped=r,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*t);for(var a=n||o.CellData.fromCharData([0,i.NULL_CELL_CHAR,i.NULL_CELL_WIDTH,i.NULL_CELL_CODE]),l=0;l<t;++l)this.setCell(l,a);this.length=t}return f(e,[{key:"get",value:function(e){var t=this._data[3*e+0],n=2097151&t;return[this._data[3*e+1],2097152&t?this._combined[e]:n?(0,r.stringFromCodePoint)(n):"",t>>22,2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):n]}},{key:"set",value:function(e,t){this._data[3*e+1]=t[i.CHAR_DATA_ATTR_INDEX],t[i.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[e]=t[1],this._data[3*e+0]=2097152|e|t[i.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=t[i.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[i.CHAR_DATA_WIDTH_INDEX]<<22}},{key:"getWidth",value:function(e){return this._data[3*e+0]>>22}},{key:"hasWidth",value:function(e){return 12582912&this._data[3*e+0]}},{key:"getFg",value:function(e){return this._data[3*e+1]}},{key:"getBg",value:function(e){return this._data[3*e+2]}},{key:"hasContent",value:function(e){return 4194303&this._data[3*e+0]}},{key:"getCodePoint",value:function(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&t}},{key:"isCombined",value:function(e){return 2097152&this._data[3*e+0]}},{key:"getString",value:function(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e]:2097151&t?(0,r.stringFromCodePoint)(2097151&t):""}},{key:"isProtected",value:function(e){return 536870912&this._data[3*e+2]}},{key:"loadCell",value:function(e,t){return l=3*e,t.content=this._data[l+0],t.fg=this._data[l+1],t.bg=this._data[l+2],2097152&t.content&&(t.combinedData=this._combined[e]),268435456&t.bg&&(t.extended=this._extendedAttrs[e]),t}},{key:"setCell",value:function(e,t){2097152&t.content&&(this._combined[e]=t.combinedData),268435456&t.bg&&(this._extendedAttrs[e]=t.extended),this._data[3*e+0]=t.content,this._data[3*e+1]=t.fg,this._data[3*e+2]=t.bg}},{key:"setCellFromCodePoint",value:function(e,t,n,r,i,o){268435456&i&&(this._extendedAttrs[e]=o),this._data[3*e+0]=t|n<<22,this._data[3*e+1]=r,this._data[3*e+2]=i}},{key:"addCodepointToCell",value:function(e,t){var n=this._data[3*e+0];2097152&n?this._combined[e]+=(0,r.stringFromCodePoint)(t):(2097151&n?(this._combined[e]=(0,r.stringFromCodePoint)(2097151&n)+(0,r.stringFromCodePoint)(t),n&=-2097152,n|=2097152):n=t|1<<22,this._data[3*e+0]=n)}},{key:"insertCells",value:function(e,t,n,r){if((e%=this.length)&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==r?void 0:r.fg)||0,(null==r?void 0:r.bg)||0,(null==r?void 0:r.extended)||new a.ExtendedAttrs),t<this.length-e){for(var i=new o.CellData,l=this.length-e-t-1;l>=0;--l)this.setCell(e+t+l,this.loadCell(e+l,i));for(var s=0;s<t;++s)this.setCell(e+s,n)}else for(var c=e;c<this.length;++c)this.setCell(c,n);2===this.getWidth(this.length-1)&&this.setCellFromCodePoint(this.length-1,0,1,(null==r?void 0:r.fg)||0,(null==r?void 0:r.bg)||0,(null==r?void 0:r.extended)||new a.ExtendedAttrs)}},{key:"deleteCells",value:function(e,t,n,r){if(e%=this.length,t<this.length-e){for(var i=new o.CellData,l=0;l<this.length-e-t;++l)this.setCell(e+l,this.loadCell(e+t+l,i));for(var s=this.length-t;s<this.length;++s)this.setCell(s,n)}else for(var c=e;c<this.length;++c)this.setCell(c,n);e&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==r?void 0:r.fg)||0,(null==r?void 0:r.bg)||0,(null==r?void 0:r.extended)||new a.ExtendedAttrs),0!==this.getWidth(e)||this.hasContent(e)||this.setCellFromCodePoint(e,0,1,(null==r?void 0:r.fg)||0,(null==r?void 0:r.bg)||0,(null==r?void 0:r.extended)||new a.ExtendedAttrs)}},{key:"replaceCells",value:function(e,t,n,r){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])for(e&&2===this.getWidth(e-1)&&!this.isProtected(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==r?void 0:r.fg)||0,(null==r?void 0:r.bg)||0,(null==r?void 0:r.extended)||new a.ExtendedAttrs),t<this.length&&2===this.getWidth(t-1)&&!this.isProtected(t)&&this.setCellFromCodePoint(t,0,1,(null==r?void 0:r.fg)||0,(null==r?void 0:r.bg)||0,(null==r?void 0:r.extended)||new a.ExtendedAttrs);e<t&&e<this.length;)this.isProtected(e)||this.setCell(e,n),e++;else for(e&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==r?void 0:r.fg)||0,(null==r?void 0:r.bg)||0,(null==r?void 0:r.extended)||new a.ExtendedAttrs),t<this.length&&2===this.getWidth(t-1)&&this.setCellFromCodePoint(t,0,1,(null==r?void 0:r.fg)||0,(null==r?void 0:r.bg)||0,(null==r?void 0:r.extended)||new a.ExtendedAttrs);e<t&&e<this.length;)this.setCell(e++,n)}},{key:"resize",value:function(e,t){if(e===this.length)return 4*this._data.length*2<this._data.buffer.byteLength;var n=3*e;if(e>this.length){if(this._data.buffer.byteLength>=4*n)this._data=new Uint32Array(this._data.buffer,0,n);else{var r=new Uint32Array(n);r.set(this._data),this._data=r}for(var i=this.length;i<e;++i)this.setCell(i,t)}else{this._data=this._data.subarray(0,n);for(var o=Object.keys(this._combined),a=0;a<o.length;a++){var l=parseInt(o[a],10);l>=e&&delete this._combined[l]}for(var s=Object.keys(this._extendedAttrs),c=0;c<s.length;c++){var u=parseInt(s[c],10);u>=e&&delete this._extendedAttrs[u]}}return this.length=e,4*n*2<this._data.buffer.byteLength}},{key:"cleanupMemory",value:function(){if(4*this._data.length*2<this._data.buffer.byteLength){var e=new Uint32Array(this._data.length);return e.set(this._data),this._data=e,1}return 0}},{key:"fill",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])for(var t=0;t<this.length;++t)this.isProtected(t)||this.setCell(t,e);else{this._combined={},this._extendedAttrs={};for(var n=0;n<this.length;++n)this.setCell(n,e)}}},{key:"copyFrom",value:function(e){for(var t in this.length!==e.length?this._data=new Uint32Array(e._data):this._data.set(e._data),this.length=e.length,this._combined={},e._combined)this._combined[t]=e._combined[t];for(var n in this._extendedAttrs={},e._extendedAttrs)this._extendedAttrs[n]=e._extendedAttrs[n];this.isWrapped=e.isWrapped}},{key:"clone",value:function(){var t=new e(0);for(var n in t._data=new Uint32Array(this._data),t.length=this.length,this._combined)t._combined[n]=this._combined[n];for(var r in this._extendedAttrs)t._extendedAttrs[r]=this._extendedAttrs[r];return t.isWrapped=this.isWrapped,t}},{key:"getTrimmedLength",value:function(){for(var e=this.length-1;e>=0;--e)if(4194303&this._data[3*e+0])return e+(this._data[3*e+0]>>22);return 0}},{key:"copyCellsFrom",value:function(e,t,n,r,i){var o=e._data;if(i)for(var a=r-1;a>=0;a--){for(var l=0;l<3;l++)this._data[3*(n+a)+l]=o[3*(t+a)+l];268435456&o[3*(t+a)+2]&&(this._extendedAttrs[n+a]=e._extendedAttrs[t+a])}else for(var s=0;s<r;s++){for(var c=0;c<3;c++)this._data[3*(n+s)+c]=o[3*(t+s)+c];268435456&o[3*(t+s)+2]&&(this._extendedAttrs[n+s]=e._extendedAttrs[t+s])}for(var u=Object.keys(e._combined),d=0;d<u.length;d++){var f=parseInt(u[d],10);f>=t&&(this._combined[f-t+n]=e._combined[f])}}},{key:"translateToString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.length;e&&(n=Math.min(n,this.getTrimmedLength()));for(var o="";t<n;){var a=this._data[3*t+0],l=2097151&a;o+=2097152&a?this._combined[t]:l?(0,r.stringFromCodePoint)(l):i.WHITESPACE_CELL_CHAR,t+=a>>22||1}return o}}]),e}();t.BufferLine=s},4841:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getRangeLength=void 0,t.getRangeLength=function(e,t){if(e.start.y>e.end.y)throw new Error("Buffer range end (".concat(e.end.x,", ").concat(e.end.y,") cannot be before start (").concat(e.start.x,", ").concat(e.start.y,")"));return t*(e.end.y-e.start.y)+(e.end.x-e.start.x+1)}},4634:function(e,t){function n(e,t,n){if(t===e.length-1)return e[t].getTrimmedLength();var r=!e[t].hasContent(n-1)&&1===e[t].getWidth(n-1),i=2===e[t+1].getWidth(0);return r&&i?n-1:n}Object.defineProperty(t,"__esModule",{value:!0}),t.getWrappedLineTrimmedLength=t.reflowSmallerGetNewLineLengths=t.reflowLargerApplyNewLayout=t.reflowLargerCreateNewLayout=t.reflowLargerGetLinesToRemove=void 0,t.reflowLargerGetLinesToRemove=function(e,t,r,i,o){for(var a=[],l=0;l<e.length-1;l++){var s=l,c=e.get(++s);if(c.isWrapped){for(var u=[e.get(l)];s<e.length&&c.isWrapped;)u.push(c),c=e.get(++s);if(i>=l&&i<s)l+=u.length-1;else{for(var d=0,f=n(u,d,t),h=1,p=0;h<u.length;){var v=n(u,h,t),m=v-p,g=r-f,y=Math.min(m,g);u[d].copyCellsFrom(u[h],p,f,y,!1),(f+=y)===r&&(d++,f=0),(p+=y)===v&&(h++,p=0),0===f&&0!==d&&2===u[d-1].getWidth(r-1)&&(u[d].copyCellsFrom(u[d-1],r-1,f++,1,!1),u[d-1].setCell(r-1,o))}u[d].replaceCells(f,r,o);for(var b=0,_=u.length-1;_>0&&(_>d||0===u[_].getTrimmedLength());_--)b++;b>0&&(a.push(l+u.length-b),a.push(b)),l+=u.length-1}}}return a},t.reflowLargerCreateNewLayout=function(e,t){for(var n=[],r=0,i=t[r],o=0,a=0;a<e.length;a++)if(i===a){var l=t[++r];e.onDeleteEmitter.fire({index:a-o,amount:l}),a+=l-1,o+=l,i=t[++r]}else n.push(a);return{layout:n,countRemoved:o}},t.reflowLargerApplyNewLayout=function(e,t){for(var n=[],r=0;r<t.length;r++)n.push(e.get(t[r]));for(var i=0;i<n.length;i++)e.set(i,n[i]);e.length=t.length},t.reflowSmallerGetNewLineLengths=function(e,t,r){for(var i=[],o=e.map((function(r,i){return n(e,i,t)})).reduce((function(e,t){return e+t})),a=0,l=0,s=0;s<o;){if(o-s<r){i.push(o-s);break}a+=r;var c=n(e,l,t);a>c&&(a-=c,l++);var u=2===e[l].getWidth(a-1);u&&a--;var d=u?r-1:r;i.push(d),s+=d}return i},t.getWrappedLineTrimmedLength=n},5295:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BufferSet=void 0;var r=n(9092),i=n(8460),o=function(e){p(n,e);var t=v(n);function n(e,r){var o;return d(this,n),(o=t.call(this))._optionsService=e,o._bufferService=r,o._onBufferActivate=o.register(new i.EventEmitter),o.onBufferActivate=o._onBufferActivate.event,o.reset(),o.register(o._optionsService.onSpecificOptionChange("scrollback",(function(){return o.resize(o._bufferService.cols,o._bufferService.rows)}))),o.register(o._optionsService.onSpecificOptionChange("tabStopWidth",(function(){return o.setupTabStops()}))),o}return f(n,[{key:"reset",value:function(){this._normal=new r.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new r.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}},{key:"alt",get:function(){return this._alt}},{key:"active",get:function(){return this._activeBuffer}},{key:"normal",get:function(){return this._normal}},{key:"activateNormalBuffer",value:function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}},{key:"activateAltBuffer",value:function(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}},{key:"resize",value:function(e,t){this._normal.resize(e,t),this._alt.resize(e,t),this.setupTabStops(e)}},{key:"setupTabStops",value:function(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)}}]),n}(n(844).Disposable);t.BufferSet=o},511:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CellData=void 0;var r=n(482),i=n(643),o=n(3734),a=function(e){p(n,e);var t=v(n);function n(){var e;return d(this,n),(e=t.apply(this,arguments)).content=0,e.fg=0,e.bg=0,e.extended=new o.ExtendedAttrs,e.combinedData="",e}return f(n,[{key:"isCombined",value:function(){return 2097152&this.content}},{key:"getWidth",value:function(){return this.content>>22}},{key:"getChars",value:function(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,r.stringFromCodePoint)(2097151&this.content):""}},{key:"getCode",value:function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}},{key:"setFromCharData",value:function(e){this.fg=e[i.CHAR_DATA_ATTR_INDEX],this.bg=0;var t=!1;if(e[i.CHAR_DATA_CHAR_INDEX].length>2)t=!0;else if(2===e[i.CHAR_DATA_CHAR_INDEX].length){var n=e[i.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=n&&n<=56319){var r=e[i.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=r&&r<=57343?this.content=1024*(n-55296)+r-56320+65536|e[i.CHAR_DATA_WIDTH_INDEX]<<22:t=!0}else t=!0}else this.content=e[i.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|e[i.CHAR_DATA_WIDTH_INDEX]<<22;t&&(this.combinedData=e[i.CHAR_DATA_CHAR_INDEX],this.content=2097152|e[i.CHAR_DATA_WIDTH_INDEX]<<22)}},{key:"getAsCharData",value:function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}],[{key:"fromCharData",value:function(e){var t=new n;return t.setFromCharData(e),t}}]),n}(o.AttributeData);t.CellData=a},643:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.WHITESPACE_CELL_CODE=t.WHITESPACE_CELL_WIDTH=t.WHITESPACE_CELL_CHAR=t.NULL_CELL_CODE=t.NULL_CELL_WIDTH=t.NULL_CELL_CHAR=t.CHAR_DATA_CODE_INDEX=t.CHAR_DATA_WIDTH_INDEX=t.CHAR_DATA_CHAR_INDEX=t.CHAR_DATA_ATTR_INDEX=t.DEFAULT_EXT=t.DEFAULT_ATTR=t.DEFAULT_COLOR=void 0,t.DEFAULT_COLOR=0,t.DEFAULT_ATTR=256|t.DEFAULT_COLOR<<9,t.DEFAULT_EXT=0,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.NULL_CELL_CHAR="",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=0,t.WHITESPACE_CELL_CHAR=" ",t.WHITESPACE_CELL_WIDTH=1,t.WHITESPACE_CELL_CODE=32},4863:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Marker=void 0;var r=n(8460),i=n(844),o=function(){function e(t){d(this,e),this.line=t,this.isDisposed=!1,this._disposables=[],this._id=e._nextId++,this._onDispose=this.register(new r.EventEmitter),this.onDispose=this._onDispose.event}return f(e,[{key:"id",get:function(){return this._id}},{key:"dispose",value:function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,i.disposeArray)(this._disposables),this._disposables.length=0)}},{key:"register",value:function(e){return this._disposables.push(e),e}}]),e}();t.Marker=o,o._nextId=1},7116:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CHARSET=t.CHARSETS=void 0,t.CHARSETS={},t.DEFAULT_CHARSET=t.CHARSETS.B,t.CHARSETS[0]={"`":"\u25c6",a:"\u2592",b:"\u2409",c:"\u240c",d:"\u240d",e:"\u240a",f:"\xb0",g:"\xb1",h:"\u2424",i:"\u240b",j:"\u2518",k:"\u2510",l:"\u250c",m:"\u2514",n:"\u253c",o:"\u23ba",p:"\u23bb",q:"\u2500",r:"\u23bc",s:"\u23bd",t:"\u251c",u:"\u2524",v:"\u2534",w:"\u252c",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03c0","|":"\u2260","}":"\xa3","~":"\xb7"},t.CHARSETS.A={"#":"\xa3"},t.CHARSETS.B=void 0,t.CHARSETS[4]={"#":"\xa3","@":"\xbe","[":"ij","\\":"\xbd","]":"|","{":"\xa8","|":"f","}":"\xbc","~":"\xb4"},t.CHARSETS.C=t.CHARSETS[5]={"[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},t.CHARSETS.R={"#":"\xa3","@":"\xe0","[":"\xb0","\\":"\xe7","]":"\xa7","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xa8"},t.CHARSETS.Q={"@":"\xe0","[":"\xe2","\\":"\xe7","]":"\xea","^":"\xee","`":"\xf4","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xfb"},t.CHARSETS.K={"@":"\xa7","[":"\xc4","\\":"\xd6","]":"\xdc","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xdf"},t.CHARSETS.Y={"#":"\xa3","@":"\xa7","[":"\xb0","\\":"\xe7","]":"\xe9","`":"\xf9","{":"\xe0","|":"\xf2","}":"\xe8","~":"\xec"},t.CHARSETS.E=t.CHARSETS[6]={"@":"\xc4","[":"\xc6","\\":"\xd8","]":"\xc5","^":"\xdc","`":"\xe4","{":"\xe6","|":"\xf8","}":"\xe5","~":"\xfc"},t.CHARSETS.Z={"#":"\xa3","@":"\xa7","[":"\xa1","\\":"\xd1","]":"\xbf","{":"\xb0","|":"\xf1","}":"\xe7"},t.CHARSETS.H=t.CHARSETS[7]={"@":"\xc9","[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},t.CHARSETS["="]={"#":"\xf9","@":"\xe0","[":"\xe9","\\":"\xe7","]":"\xea","^":"\xee",_:"\xe8","`":"\xf4","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xfb"}},2584:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.C1_ESCAPED=t.C1=t.C0=void 0,function(e){e.NUL="\0",e.SOH="\x01",e.STX="\x02",e.ETX="\x03",e.EOT="\x04",e.ENQ="\x05",e.ACK="\x06",e.BEL="\x07",e.BS="\b",e.HT="\t",e.LF="\n",e.VT="\v",e.FF="\f",e.CR="\r",e.SO="\x0e",e.SI="\x0f",e.DLE="\x10",e.DC1="\x11",e.DC2="\x12",e.DC3="\x13",e.DC4="\x14",e.NAK="\x15",e.SYN="\x16",e.ETB="\x17",e.CAN="\x18",e.EM="\x19",e.SUB="\x1a",e.ESC="\x1b",e.FS="\x1c",e.GS="\x1d",e.RS="\x1e",e.US="\x1f",e.SP=" ",e.DEL="\x7f"}(n=t.C0||(t.C0={})),(r=t.C1||(t.C1={})).PAD="\x80",r.HOP="\x81",r.BPH="\x82",r.NBH="\x83",r.IND="\x84",r.NEL="\x85",r.SSA="\x86",r.ESA="\x87",r.HTS="\x88",r.HTJ="\x89",r.VTS="\x8a",r.PLD="\x8b",r.PLU="\x8c",r.RI="\x8d",r.SS2="\x8e",r.SS3="\x8f",r.DCS="\x90",r.PU1="\x91",r.PU2="\x92",r.STS="\x93",r.CCH="\x94",r.MW="\x95",r.SPA="\x96",r.EPA="\x97",r.SOS="\x98",r.SGCI="\x99",r.SCI="\x9a",r.CSI="\x9b",r.ST="\x9c",r.OSC="\x9d",r.PM="\x9e",r.APC="\x9f",(t.C1_ESCAPED||(t.C1_ESCAPED={})).ST="".concat(n.ESC,"\\")},7399:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateKeyboardEvent=void 0;var r=n(2584),i={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};t.evaluateKeyboardEvent=function(e,t,n,o){var a={type:0,cancel:!1,key:void 0},l=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:"UIKeyInputUpArrow"===e.key?a.key=t?r.C0.ESC+"OA":r.C0.ESC+"[A":"UIKeyInputLeftArrow"===e.key?a.key=t?r.C0.ESC+"OD":r.C0.ESC+"[D":"UIKeyInputRightArrow"===e.key?a.key=t?r.C0.ESC+"OC":r.C0.ESC+"[C":"UIKeyInputDownArrow"===e.key&&(a.key=t?r.C0.ESC+"OB":r.C0.ESC+"[B");break;case 8:if(e.altKey){a.key=r.C0.ESC+r.C0.DEL;break}a.key=r.C0.DEL;break;case 9:if(e.shiftKey){a.key=r.C0.ESC+"[Z";break}a.key=r.C0.HT,a.cancel=!0;break;case 13:a.key=e.altKey?r.C0.ESC+r.C0.CR:r.C0.CR,a.cancel=!0;break;case 27:a.key=r.C0.ESC,e.altKey&&(a.key=r.C0.ESC+r.C0.ESC),a.cancel=!0;break;case 37:if(e.metaKey)break;l?(a.key=r.C0.ESC+"[1;"+(l+1)+"D",a.key===r.C0.ESC+"[1;3D"&&(a.key=r.C0.ESC+(n?"b":"[1;5D"))):a.key=t?r.C0.ESC+"OD":r.C0.ESC+"[D";break;case 39:if(e.metaKey)break;l?(a.key=r.C0.ESC+"[1;"+(l+1)+"C",a.key===r.C0.ESC+"[1;3C"&&(a.key=r.C0.ESC+(n?"f":"[1;5C"))):a.key=t?r.C0.ESC+"OC":r.C0.ESC+"[C";break;case 38:if(e.metaKey)break;l?(a.key=r.C0.ESC+"[1;"+(l+1)+"A",n||a.key!==r.C0.ESC+"[1;3A"||(a.key=r.C0.ESC+"[1;5A")):a.key=t?r.C0.ESC+"OA":r.C0.ESC+"[A";break;case 40:if(e.metaKey)break;l?(a.key=r.C0.ESC+"[1;"+(l+1)+"B",n||a.key!==r.C0.ESC+"[1;3B"||(a.key=r.C0.ESC+"[1;5B")):a.key=t?r.C0.ESC+"OB":r.C0.ESC+"[B";break;case 45:e.shiftKey||e.ctrlKey||(a.key=r.C0.ESC+"[2~");break;case 46:a.key=l?r.C0.ESC+"[3;"+(l+1)+"~":r.C0.ESC+"[3~";break;case 36:a.key=l?r.C0.ESC+"[1;"+(l+1)+"H":t?r.C0.ESC+"OH":r.C0.ESC+"[H";break;case 35:a.key=l?r.C0.ESC+"[1;"+(l+1)+"F":t?r.C0.ESC+"OF":r.C0.ESC+"[F";break;case 33:e.shiftKey?a.type=2:e.ctrlKey?a.key=r.C0.ESC+"[5;"+(l+1)+"~":a.key=r.C0.ESC+"[5~";break;case 34:e.shiftKey?a.type=3:e.ctrlKey?a.key=r.C0.ESC+"[6;"+(l+1)+"~":a.key=r.C0.ESC+"[6~";break;case 112:a.key=l?r.C0.ESC+"[1;"+(l+1)+"P":r.C0.ESC+"OP";break;case 113:a.key=l?r.C0.ESC+"[1;"+(l+1)+"Q":r.C0.ESC+"OQ";break;case 114:a.key=l?r.C0.ESC+"[1;"+(l+1)+"R":r.C0.ESC+"OR";break;case 115:a.key=l?r.C0.ESC+"[1;"+(l+1)+"S":r.C0.ESC+"OS";break;case 116:a.key=l?r.C0.ESC+"[15;"+(l+1)+"~":r.C0.ESC+"[15~";break;case 117:a.key=l?r.C0.ESC+"[17;"+(l+1)+"~":r.C0.ESC+"[17~";break;case 118:a.key=l?r.C0.ESC+"[18;"+(l+1)+"~":r.C0.ESC+"[18~";break;case 119:a.key=l?r.C0.ESC+"[19;"+(l+1)+"~":r.C0.ESC+"[19~";break;case 120:a.key=l?r.C0.ESC+"[20;"+(l+1)+"~":r.C0.ESC+"[20~";break;case 121:a.key=l?r.C0.ESC+"[21;"+(l+1)+"~":r.C0.ESC+"[21~";break;case 122:a.key=l?r.C0.ESC+"[23;"+(l+1)+"~":r.C0.ESC+"[23~";break;case 123:a.key=l?r.C0.ESC+"[24;"+(l+1)+"~":r.C0.ESC+"[24~";break;default:if(!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)if(n&&!o||!e.altKey||e.metaKey)!n||e.altKey||e.ctrlKey||e.shiftKey||!e.metaKey?e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.keyCode>=48&&1===e.key.length?a.key=e.key:e.key&&e.ctrlKey&&("_"===e.key&&(a.key=r.C0.US),"@"===e.key&&(a.key=r.C0.NUL)):65===e.keyCode&&(a.type=1);else{var s=i[e.keyCode],c=null==s?void 0:s[e.shiftKey?1:0];if(c)a.key=r.C0.ESC+c;else if(e.keyCode>=65&&e.keyCode<=90){var u=e.ctrlKey?e.keyCode-64:e.keyCode+32,d=String.fromCharCode(u);e.shiftKey&&(d=d.toUpperCase()),a.key=r.C0.ESC+d}else if(32===e.keyCode)a.key=r.C0.ESC+(e.ctrlKey?r.C0.NUL:" ");else if("Dead"===e.key&&e.code.startsWith("Key")){var f=e.code.slice(3,4);e.shiftKey||(f=f.toLowerCase()),a.key=r.C0.ESC+f,a.cancel=!0}}else e.keyCode>=65&&e.keyCode<=90?a.key=String.fromCharCode(e.keyCode-64):32===e.keyCode?a.key=r.C0.NUL:e.keyCode>=51&&e.keyCode<=55?a.key=String.fromCharCode(e.keyCode-51+27):56===e.keyCode?a.key=r.C0.DEL:219===e.keyCode?a.key=r.C0.ESC:220===e.keyCode?a.key=r.C0.FS:221===e.keyCode&&(a.key=r.C0.GS)}return a}},482:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Utf8ToUtf32=t.StringToUtf32=t.utf32ToString=t.stringFromCodePoint=void 0,t.stringFromCodePoint=function(e){return e>65535?(e-=65536,String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)},t.utf32ToString=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r="",i=t;i<n;++i){var o=e[i];o>65535?(o-=65536,r+=String.fromCharCode(55296+(o>>10))+String.fromCharCode(o%1024+56320)):r+=String.fromCharCode(o)}return r},t.StringToUtf32=function(){function e(){d(this,e),this._interim=0}return f(e,[{key:"clear",value:function(){this._interim=0}},{key:"decode",value:function(e,t){var n=e.length;if(!n)return 0;var r=0,i=0;if(this._interim){var o=e.charCodeAt(i++);56320<=o&&o<=57343?t[r++]=1024*(this._interim-55296)+o-56320+65536:(t[r++]=this._interim,t[r++]=o),this._interim=0}for(var a=i;a<n;++a){var l=e.charCodeAt(a);if(55296<=l&&l<=56319){if(++a>=n)return this._interim=l,r;var s=e.charCodeAt(a);56320<=s&&s<=57343?t[r++]=1024*(l-55296)+s-56320+65536:(t[r++]=l,t[r++]=s)}else 65279!==l&&(t[r++]=l)}return r}}]),e}(),t.Utf8ToUtf32=function(){function e(){d(this,e),this.interim=new Uint8Array(3)}return f(e,[{key:"clear",value:function(){this.interim.fill(0)}},{key:"decode",value:function(e,t){var n=e.length;if(!n)return 0;var r,i,o,a,l=0,s=0,c=0;if(this.interim[0]){var u=!1,d=this.interim[0];d&=192==(224&d)?31:224==(240&d)?15:7;for(var f,h=0;(f=63&this.interim[++h])&&h<4;)d<<=6,d|=f;for(var p=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,v=p-h;c<v;){if(c>=n)return 0;if(128!=(192&(f=e[c++]))){c--,u=!0;break}this.interim[h++]=f,d<<=6,d|=63&f}u||(2===p?d<128?c--:t[l++]=d:3===p?d<2048||d>=55296&&d<=57343||65279===d||(t[l++]=d):d<65536||d>1114111||(t[l++]=d)),this.interim.fill(0)}for(var m=n-4,g=c;g<n;){for(;!(!(g<m)||128&(r=e[g])||128&(i=e[g+1])||128&(o=e[g+2])||128&(a=e[g+3]));)t[l++]=r,t[l++]=i,t[l++]=o,t[l++]=a,g+=4;if((r=e[g++])<128)t[l++]=r;else if(192==(224&r)){if(g>=n)return this.interim[0]=r,l;if(128!=(192&(i=e[g++]))){g--;continue}if((s=(31&r)<<6|63&i)<128){g--;continue}t[l++]=s}else if(224==(240&r)){if(g>=n)return this.interim[0]=r,l;if(128!=(192&(i=e[g++]))){g--;continue}if(g>=n)return this.interim[0]=r,this.interim[1]=i,l;if(128!=(192&(o=e[g++]))){g--;continue}if((s=(15&r)<<12|(63&i)<<6|63&o)<2048||s>=55296&&s<=57343||65279===s)continue;t[l++]=s}else if(240==(248&r)){if(g>=n)return this.interim[0]=r,l;if(128!=(192&(i=e[g++]))){g--;continue}if(g>=n)return this.interim[0]=r,this.interim[1]=i,l;if(128!=(192&(o=e[g++]))){g--;continue}if(g>=n)return this.interim[0]=r,this.interim[1]=i,this.interim[2]=o,l;if(128!=(192&(a=e[g++]))){g--;continue}if((s=(7&r)<<18|(63&i)<<12|(63&o)<<6|63&a)<65536||s>1114111)continue;t[l++]=s}}return l}}]),e}()},225:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeV6=void 0;var n,r=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],i=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];t.UnicodeV6=function(){function e(){if(d(this,e),this.version="6",!n){(n=new Uint8Array(65536)).fill(1),n[0]=0,n.fill(0,1,32),n.fill(0,127,160),n.fill(2,4352,4448),n[9001]=2,n[9002]=2,n.fill(2,11904,42192),n[12351]=1,n.fill(2,44032,55204),n.fill(2,63744,64256),n.fill(2,65040,65050),n.fill(2,65072,65136),n.fill(2,65280,65377),n.fill(2,65504,65511);for(var t=0;t<r.length;++t)n.fill(0,r[t][0],r[t][1]+1)}}return f(e,[{key:"wcwidth",value:function(e){return e<32?0:e<127?1:e<65536?n[e]:function(e,t){var n,r=0,i=t.length-1;if(e<t[0][0]||e>t[i][1])return!1;for(;i>=r;)if(e>t[n=r+i>>1][1])r=n+1;else{if(!(e<t[n][0]))return!0;i=n-1}return!1}(e,i)?0:e>=131072&&e<=196605||e>=196608&&e<=262141?2:1}}]),e}()},5981:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WriteBuffer=void 0;var r=n(8460),i=function(e){p(n,e);var t=v(n);function n(e){var i;return d(this,n),(i=t.call(this))._action=e,i._writeBuffer=[],i._callbacks=[],i._pendingData=0,i._bufferOffset=0,i._isSyncWriting=!1,i._syncCalls=0,i._didUserInput=!1,i._onWriteParsed=i.register(new r.EventEmitter),i.onWriteParsed=i._onWriteParsed.event,i}return f(n,[{key:"handleUserInput",value:function(){this._didUserInput=!0}},{key:"writeSync",value:function(e,t){if(void 0!==t&&this._syncCalls>t)this._syncCalls=0;else if(this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(void 0),this._syncCalls++,!this._isSyncWriting){var n;for(this._isSyncWriting=!0;n=this._writeBuffer.shift();){this._action(n);var r=this._callbacks.shift();r&&r()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}}},{key:"write",value:function(e,t){var n=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput)return this._didUserInput=!1,this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t),void this._innerWrite();setTimeout((function(){return n._innerWrite()}))}this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)}},{key:"_innerWrite",value:function(){for(var e=this,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)||Date.now();this._writeBuffer.length>this._bufferOffset;){var r=this._writeBuffer[this._bufferOffset],i=this._action(r,t);if(i){var o=function(t){return Date.now()-n>=12?setTimeout((function(){return e._innerWrite(0,t)})):e._innerWrite(n,t)};return void i.catch((function(e){return queueMicrotask((function(){throw e})),Promise.resolve(!1)})).then(o)}var a=this._callbacks[this._bufferOffset];if(a&&a(),this._bufferOffset++,this._pendingData-=r.length,Date.now()-n>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout((function(){return e._innerWrite()}))):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}}]),n}(n(844).Disposable);t.WriteBuffer=i},5941:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.toRgbString=t.parseColor=void 0;var n=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,r=/^[\da-f]+$/;function i(e,t){var n=e.toString(16),r=n.length<2?"0"+n:n;switch(t){case 4:return n[0];case 8:return r;case 12:return(r+r).slice(0,3);default:return r+r}}t.parseColor=function(e){if(e){var t=e.toLowerCase();if(0===t.indexOf("rgb:")){t=t.slice(4);var i=n.exec(t);if(i){var o=i[1]?15:i[4]?255:i[7]?4095:65535;return[Math.round(parseInt(i[1]||i[4]||i[7]||i[10],16)/o*255),Math.round(parseInt(i[2]||i[5]||i[8]||i[11],16)/o*255),Math.round(parseInt(i[3]||i[6]||i[9]||i[12],16)/o*255)]}}else if(0===t.indexOf("#")&&(t=t.slice(1),r.exec(t)&&[3,6,9,12].includes(t.length))){for(var a=t.length/3,l=[0,0,0],s=0;s<3;++s){var c=parseInt(t.slice(a*s,a*s+a),16);l[s]=1===a?c<<4:2===a?c:3===a?c>>4:c>>8}return l}}},t.toRgbString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,n=c(e,3),r=n[0],o=n[1],a=n[2];return"rgb:".concat(i(r,t),"/").concat(i(o,t),"/").concat(i(a,t))}},5770:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.PAYLOAD_LIMIT=void 0,t.PAYLOAD_LIMIT=1e7},6351:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DcsHandler=t.DcsParser=void 0;var r=n(482),i=n(8742),o=n(5770),a=[];t.DcsParser=function(){function e(){d(this,e),this._handlers=Object.create(null),this._active=a,this._ident=0,this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return f(e,[{key:"dispose",value:function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=a}},{key:"registerHandler",value:function(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);var n=this._handlers[e];return n.push(t),{dispose:function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}}},{key:"clearHandler",value:function(e){this._handlers[e]&&delete this._handlers[e]}},{key:"setHandlerFallback",value:function(e){this._handlerFb=e}},{key:"reset",value:function(){if(this._active.length)for(var e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].unhook(!1);this._stack.paused=!1,this._active=a,this._ident=0}},{key:"hook",value:function(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||a,this._active.length)for(var n=this._active.length-1;n>=0;n--)this._active[n].hook(t);else this._handlerFb(this._ident,"HOOK",t)}},{key:"put",value:function(e,t,n){if(this._active.length)for(var i=this._active.length-1;i>=0;i--)this._active[i].put(e,t,n);else this._handlerFb(this._ident,"PUT",(0,r.utf32ToString)(e,t,n))}},{key:"unhook",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this._active.length){var n=!1,r=this._active.length-1,i=!1;if(this._stack.paused&&(r=this._stack.loopPosition-1,n=t,i=this._stack.fallThrough,this._stack.paused=!1),!i&&!1===n){for(;r>=0&&!0!==(n=this._active[r].unhook(e));r--)if(n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!1,n;r--}for(;r>=0;r--)if((n=this._active[r].unhook(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!0,n}else this._handlerFb(this._ident,"UNHOOK",e);this._active=a,this._ident=0}}]),e}();var l=new i.Params;l.addParam(0),t.DcsHandler=function(){function e(t){d(this,e),this._handler=t,this._data="",this._params=l,this._hitLimit=!1}return f(e,[{key:"hook",value:function(e){this._params=e.length>1||e.params[0]?e.clone():l,this._data="",this._hitLimit=!1}},{key:"put",value:function(e,t,n){this._hitLimit||(this._data+=(0,r.utf32ToString)(e,t,n),this._data.length>o.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}},{key:"unhook",value:function(e){var t=this,n=!1;if(this._hitLimit)n=!1;else if(e&&(n=this._handler(this._data,this._params))instanceof Promise)return n.then((function(e){return t._params=l,t._data="",t._hitLimit=!1,e}));return this._params=l,this._data="",this._hitLimit=!1,n}}]),e}()},2015:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EscapeSequenceParser=t.VT500_TRANSITION_TABLE=t.TransitionTable=void 0;var r=n(844),i=n(8742),o=n(6242),a=n(6351),l=function(){function e(t){d(this,e),this.table=new Uint8Array(t)}return f(e,[{key:"setDefault",value:function(e,t){this.table.fill(e<<4|t)}},{key:"add",value:function(e,t,n,r){this.table[t<<8|e]=n<<4|r}},{key:"addMany",value:function(e,t,n,r){for(var i=0;i<e.length;i++)this.table[t<<8|e[i]]=n<<4|r}}]),e}();t.TransitionTable=l;var s=160;t.VT500_TRANSITION_TABLE=function(){var e=new l(4095),t=Array.apply(null,Array(256)).map((function(e,t){return t})),n=function(e,n){return t.slice(e,n)},r=n(32,127),i=n(0,24);i.push(25),i.push.apply(i,n(28,32));var o,a=n(0,14);for(o in e.setDefault(1,0),e.addMany(r,0,2,0),a)e.addMany([24,26,153,154],o,3,0),e.addMany(n(128,144),o,3,0),e.addMany(n(144,152),o,3,0),e.add(156,o,0,0),e.add(27,o,11,1),e.add(157,o,4,8),e.addMany([152,158,159],o,0,7),e.add(155,o,11,3),e.add(144,o,11,9);return e.addMany(i,0,3,0),e.addMany(i,1,3,1),e.add(127,1,0,1),e.addMany(i,8,0,8),e.addMany(i,3,3,3),e.add(127,3,0,3),e.addMany(i,4,3,4),e.add(127,4,0,4),e.addMany(i,6,3,6),e.addMany(i,5,3,5),e.add(127,5,0,5),e.addMany(i,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(r,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(n(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(r,7,0,7),e.addMany(i,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(n(64,127),3,7,0),e.addMany(n(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(n(48,60),4,8,4),e.addMany(n(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(n(32,64),6,0,6),e.add(127,6,0,6),e.addMany(n(64,127),6,0,0),e.addMany(n(32,48),3,9,5),e.addMany(n(32,48),5,9,5),e.addMany(n(48,64),5,0,6),e.addMany(n(64,127),5,7,0),e.addMany(n(32,48),4,9,5),e.addMany(n(32,48),1,9,2),e.addMany(n(32,48),2,9,2),e.addMany(n(48,127),2,10,0),e.addMany(n(48,80),1,10,0),e.addMany(n(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(n(96,127),1,10,0),e.add(80,1,11,9),e.addMany(i,9,0,9),e.add(127,9,0,9),e.addMany(n(28,32),9,0,9),e.addMany(n(32,48),9,9,12),e.addMany(n(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(i,11,0,11),e.addMany(n(32,128),11,0,11),e.addMany(n(28,32),11,0,11),e.addMany(i,10,0,10),e.add(127,10,0,10),e.addMany(n(28,32),10,0,10),e.addMany(n(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(n(32,48),10,9,12),e.addMany(i,12,0,12),e.add(127,12,0,12),e.addMany(n(28,32),12,0,12),e.addMany(n(32,48),12,9,12),e.addMany(n(48,64),12,0,11),e.addMany(n(64,127),12,12,13),e.addMany(n(64,127),10,12,13),e.addMany(n(64,127),9,12,13),e.addMany(i,13,13,13),e.addMany(r,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(s,0,2,0),e.add(s,8,5,8),e.add(s,6,0,6),e.add(s,11,0,11),e.add(s,13,13,13),e}();var c=function(e){p(l,e);var n=v(l);function l(){var e,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.VT500_TRANSITION_TABLE;return d(this,l),(e=n.call(this))._transitions=s,e._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},e.initialState=0,e.currentState=e.initialState,e._params=new i.Params,e._params.addParam(0),e._collect=0,e.precedingCodepoint=0,e._printHandlerFb=function(e,t,n){},e._executeHandlerFb=function(e){},e._csiHandlerFb=function(e,t){},e._escHandlerFb=function(e){},e._errorHandlerFb=function(e){return e},e._printHandler=e._printHandlerFb,e._executeHandlers=Object.create(null),e._csiHandlers=Object.create(null),e._escHandlers=Object.create(null),e.register((0,r.toDisposable)((function(){e._csiHandlers=Object.create(null),e._executeHandlers=Object.create(null),e._escHandlers=Object.create(null)}))),e._oscParser=e.register(new o.OscParser),e._dcsParser=e.register(new a.DcsParser),e._errorHandler=e._errorHandlerFb,e.registerEscHandler({final:"\\"},(function(){return!0})),e}return f(l,[{key:"_identifier",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[64,126],n=0;if(e.prefix){if(e.prefix.length>1)throw new Error("only one byte as prefix supported");if((n=e.prefix.charCodeAt(0))&&60>n||n>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(e.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var r=0;r<e.intermediates.length;++r){var i=e.intermediates.charCodeAt(r);if(32>i||i>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");n<<=8,n|=i}}if(1!==e.final.length)throw new Error("final must be a single byte");var o=e.final.charCodeAt(0);if(t[0]>o||o>t[1])throw new Error("final must be in range ".concat(t[0]," .. ").concat(t[1]));return n<<=8,n|=o}},{key:"identToString",value:function(e){for(var t=[];e;)t.push(String.fromCharCode(255&e)),e>>=8;return t.reverse().join("")}},{key:"setPrintHandler",value:function(e){this._printHandler=e}},{key:"clearPrintHandler",value:function(){this._printHandler=this._printHandlerFb}},{key:"registerEscHandler",value:function(e,t){var n=this._identifier(e,[48,126]);void 0===this._escHandlers[n]&&(this._escHandlers[n]=[]);var r=this._escHandlers[n];return r.push(t),{dispose:function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}}},{key:"clearEscHandler",value:function(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]}},{key:"setEscHandlerFallback",value:function(e){this._escHandlerFb=e}},{key:"setExecuteHandler",value:function(e,t){this._executeHandlers[e.charCodeAt(0)]=t}},{key:"clearExecuteHandler",value:function(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]}},{key:"setExecuteHandlerFallback",value:function(e){this._executeHandlerFb=e}},{key:"registerCsiHandler",value:function(e,t){var n=this._identifier(e);void 0===this._csiHandlers[n]&&(this._csiHandlers[n]=[]);var r=this._csiHandlers[n];return r.push(t),{dispose:function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}}},{key:"clearCsiHandler",value:function(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]}},{key:"setCsiHandlerFallback",value:function(e){this._csiHandlerFb=e}},{key:"registerDcsHandler",value:function(e,t){return this._dcsParser.registerHandler(this._identifier(e),t)}},{key:"clearDcsHandler",value:function(e){this._dcsParser.clearHandler(this._identifier(e))}},{key:"setDcsHandlerFallback",value:function(e){this._dcsParser.setHandlerFallback(e)}},{key:"registerOscHandler",value:function(e,t){return this._oscParser.registerHandler(e,t)}},{key:"clearOscHandler",value:function(e){this._oscParser.clearHandler(e)}},{key:"setOscHandlerFallback",value:function(e){this._oscParser.setHandlerFallback(e)}},{key:"setErrorHandler",value:function(e){this._errorHandler=e}},{key:"clearErrorHandler",value:function(){this._errorHandler=this._errorHandlerFb}},{key:"reset",value:function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,0!==this._parseStack.state&&(this._parseStack.state=2,this._parseStack.handlers=[])}},{key:"_preserveStack",value:function(e,t,n,r,i){this._parseStack.state=e,this._parseStack.handlers=t,this._parseStack.handlerPos=n,this._parseStack.transition=r,this._parseStack.chunkPos=i}},{key:"parse",value:function(e,t,n){var r,i=0,o=0,a=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,a=this._parseStack.chunkPos+1;else{if(void 0===n||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");var l=this._parseStack.handlers,c=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===n&&c>-1)for(;c>=0&&!0!==(r=l[c](this._params));c--)if(r instanceof Promise)return this._parseStack.handlerPos=c,r;this._parseStack.handlers=[];break;case 4:if(!1===n&&c>-1)for(;c>=0&&!0!==(r=l[c]());c--)if(r instanceof Promise)return this._parseStack.handlerPos=c,r;this._parseStack.handlers=[];break;case 6:if(i=e[this._parseStack.chunkPos],r=this._dcsParser.unhook(24!==i&&26!==i,n))return r;27===i&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(i=e[this._parseStack.chunkPos],r=this._oscParser.end(24!==i&&26!==i,n))return r;27===i&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,a=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(var u=a;u<t;++u){switch(i=e[u],(o=this._transitions.table[this.currentState<<8|(i<160?i:s)])>>4){case 2:for(var d=u+1;;++d){if(d>=t||(i=e[d])<32||i>126&&i<s){this._printHandler(e,u,d),u=d-1;break}if(++d>=t||(i=e[d])<32||i>126&&i<s){this._printHandler(e,u,d),u=d-1;break}if(++d>=t||(i=e[d])<32||i>126&&i<s){this._printHandler(e,u,d),u=d-1;break}if(++d>=t||(i=e[d])<32||i>126&&i<s){this._printHandler(e,u,d),u=d-1;break}}break;case 3:this._executeHandlers[i]?this._executeHandlers[i]():this._executeHandlerFb(i),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:u,code:i,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:for(var f=this._csiHandlers[this._collect<<8|i],h=f?f.length-1:-1;h>=0&&!0!==(r=f[h](this._params));h--)if(r instanceof Promise)return this._preserveStack(3,f,h,o,u),r;h<0&&this._csiHandlerFb(this._collect<<8|i,this._params),this.precedingCodepoint=0;break;case 8:do{switch(i){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(i-48)}}while(++u<t&&(i=e[u])>47&&i<60);u--;break;case 9:this._collect<<=8,this._collect|=i;break;case 10:for(var p=this._escHandlers[this._collect<<8|i],v=p?p.length-1:-1;v>=0&&!0!==(r=p[v]());v--)if(r instanceof Promise)return this._preserveStack(4,p,v,o,u),r;v<0&&this._escHandlerFb(this._collect<<8|i),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|i,this._params);break;case 13:for(var m=u+1;;++m)if(m>=t||24===(i=e[m])||26===i||27===i||i>127&&i<s){this._dcsParser.put(e,u,m),u=m-1;break}break;case 14:if(r=this._dcsParser.unhook(24!==i&&26!==i))return this._preserveStack(6,[],0,o,u),r;27===i&&(o|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0;break;case 4:this._oscParser.start();break;case 5:for(var g=u+1;;g++)if(g>=t||(i=e[g])<32||i>127&&i<s){this._oscParser.put(e,u,g),u=g-1;break}break;case 6:if(r=this._oscParser.end(24!==i&&26!==i))return this._preserveStack(5,[],0,o,u),r;27===i&&(o|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0}this.currentState=15&o}}}]),l}(r.Disposable);t.EscapeSequenceParser=c},6242:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.OscHandler=t.OscParser=void 0;var r=n(5770),i=n(482),o=[];t.OscParser=function(){function e(){d(this,e),this._state=0,this._active=o,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return f(e,[{key:"registerHandler",value:function(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);var n=this._handlers[e];return n.push(t),{dispose:function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}}},{key:"clearHandler",value:function(e){this._handlers[e]&&delete this._handlers[e]}},{key:"setHandlerFallback",value:function(e){this._handlerFb=e}},{key:"dispose",value:function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=o}},{key:"reset",value:function(){if(2===this._state)for(var e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].end(!1);this._stack.paused=!1,this._active=o,this._id=-1,this._state=0}},{key:"_start",value:function(){if(this._active=this._handlers[this._id]||o,this._active.length)for(var e=this._active.length-1;e>=0;e--)this._active[e].start();else this._handlerFb(this._id,"START")}},{key:"_put",value:function(e,t,n){if(this._active.length)for(var r=this._active.length-1;r>=0;r--)this._active[r].put(e,t,n);else this._handlerFb(this._id,"PUT",(0,i.utf32ToString)(e,t,n))}},{key:"start",value:function(){this.reset(),this._state=1}},{key:"put",value:function(e,t,n){if(3!==this._state){if(1===this._state)for(;t<n;){var r=e[t++];if(59===r){this._state=2,this._start();break}if(r<48||57<r)return void(this._state=3);-1===this._id&&(this._id=0),this._id=10*this._id+r-48}2===this._state&&n-t>0&&this._put(e,t,n)}}},{key:"end",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){var n=!1,r=this._active.length-1,i=!1;if(this._stack.paused&&(r=this._stack.loopPosition-1,n=t,i=this._stack.fallThrough,this._stack.paused=!1),!i&&!1===n){for(;r>=0&&!0!==(n=this._active[r].end(e));r--)if(n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!1,n;r--}for(;r>=0;r--)if((n=this._active[r].end(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!0,n}else this._handlerFb(this._id,"END",e);this._active=o,this._id=-1,this._state=0}}}]),e}(),t.OscHandler=function(){function e(t){d(this,e),this._handler=t,this._data="",this._hitLimit=!1}return f(e,[{key:"start",value:function(){this._data="",this._hitLimit=!1}},{key:"put",value:function(e,t,n){this._hitLimit||(this._data+=(0,i.utf32ToString)(e,t,n),this._data.length>r.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}},{key:"end",value:function(e){var t=this,n=!1;if(this._hitLimit)n=!1;else if(e&&(n=this._handler(this._data))instanceof Promise)return n.then((function(e){return t._data="",t._hitLimit=!1,e}));return this._data="",this._hitLimit=!1,n}}]),e}()},8742:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Params=void 0;var n=2147483647,r=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:32;if(d(this,e),this.maxLength=t,this.maxSubParamsLength=n,n>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(t),this.length=0,this._subParams=new Int32Array(n),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(t),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return f(e,[{key:"clone",value:function(){var t=new e(this.maxLength,this.maxSubParamsLength);return t.params.set(this.params),t.length=this.length,t._subParams.set(this._subParams),t._subParamsLength=this._subParamsLength,t._subParamsIdx.set(this._subParamsIdx),t._rejectDigits=this._rejectDigits,t._rejectSubDigits=this._rejectSubDigits,t._digitIsSub=this._digitIsSub,t}},{key:"toArray",value:function(){for(var e=[],t=0;t<this.length;++t){e.push(this.params[t]);var n=this._subParamsIdx[t]>>8,r=255&this._subParamsIdx[t];r-n>0&&e.push(Array.prototype.slice.call(this._subParams,n,r))}return e}},{key:"reset",value:function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}},{key:"addParam",value:function(e){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=e>n?n:e}}},{key:"addSubParam",value:function(e){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=e>n?n:e,this._subParamsIdx[this.length-1]++}}},{key:"hasSubParams",value:function(e){return(255&this._subParamsIdx[e])-(this._subParamsIdx[e]>>8)>0}},{key:"getSubParams",value:function(e){var t=this._subParamsIdx[e]>>8,n=255&this._subParamsIdx[e];return n-t>0?this._subParams.subarray(t,n):null}},{key:"getSubParamsAll",value:function(){for(var e={},t=0;t<this.length;++t){var n=this._subParamsIdx[t]>>8,r=255&this._subParamsIdx[t];r-n>0&&(e[t]=this._subParams.slice(n,r))}return e}},{key:"addDigit",value:function(e){var t;if(!(this._rejectDigits||!(t=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var r=this._digitIsSub?this._subParams:this.params,i=r[t-1];r[t-1]=~i?Math.min(10*i+e,n):e}}}],[{key:"fromArray",value:function(t){var n=new e;if(!t.length)return n;for(var r=Array.isArray(t[0])?1:0;r<t.length;++r){var i=t[r];if(Array.isArray(i))for(var o=0;o<i.length;++o)n.addSubParam(i[o]);else n.addParam(i)}return n}}]),e}();t.Params=r},5741:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AddonManager=void 0,t.AddonManager=function(){function e(){d(this,e),this._addons=[]}return f(e,[{key:"dispose",value:function(){for(var e=this._addons.length-1;e>=0;e--)this._addons[e].instance.dispose()}},{key:"loadAddon",value:function(e,t){var n=this,r={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(r),t.dispose=function(){return n._wrappedAddonDispose(r)},t.activate(e)}},{key:"_wrappedAddonDispose",value:function(e){if(!e.isDisposed){for(var t=-1,n=0;n<this._addons.length;n++)if(this._addons[n]===e){t=n;break}if(-1===t)throw new Error("Could not dispose an addon that has not been loaded");e.isDisposed=!0,e.dispose.apply(e.instance),this._addons.splice(t,1)}}}]),e}()},8771:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BufferApiView=void 0;var r=n(3785),i=n(511);t.BufferApiView=function(){function e(t,n){d(this,e),this._buffer=t,this.type=n}return f(e,[{key:"init",value:function(e){return this._buffer=e,this}},{key:"cursorY",get:function(){return this._buffer.y}},{key:"cursorX",get:function(){return this._buffer.x}},{key:"viewportY",get:function(){return this._buffer.ydisp}},{key:"baseY",get:function(){return this._buffer.ybase}},{key:"length",get:function(){return this._buffer.lines.length}},{key:"getLine",value:function(e){var t=this._buffer.lines.get(e);if(t)return new r.BufferLineApiView(t)}},{key:"getNullCell",value:function(){return new i.CellData}}]),e}()},3785:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLineApiView=void 0;var r=n(511);t.BufferLineApiView=function(){function e(t){d(this,e),this._line=t}return f(e,[{key:"isWrapped",get:function(){return this._line.isWrapped}},{key:"length",get:function(){return this._line.length}},{key:"getCell",value:function(e,t){if(!(e<0||e>=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new r.CellData)}},{key:"translateToString",value:function(e,t,n){return this._line.translateToString(e,t,n)}}]),e}()},8285:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BufferNamespaceApi=void 0;var r=n(8771),i=n(8460);t.BufferNamespaceApi=function(){function e(t){var n=this;d(this,e),this._core=t,this._onBufferChange=new i.EventEmitter,this.onBufferChange=this._onBufferChange.event,this._normal=new r.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new r.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate((function(){return n._onBufferChange.fire(n.active)}))}return f(e,[{key:"active",get:function(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}},{key:"normal",get:function(){return this._normal.init(this._core.buffers.normal)}},{key:"alternate",get:function(){return this._alternate.init(this._core.buffers.alt)}}]),e}()},7975:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ParserApi=void 0,t.ParserApi=function(){function e(t){d(this,e),this._core=t}return f(e,[{key:"registerCsiHandler",value:function(e,t){return this._core.registerCsiHandler(e,(function(e){return t(e.toArray())}))}},{key:"addCsiHandler",value:function(e,t){return this.registerCsiHandler(e,t)}},{key:"registerDcsHandler",value:function(e,t){return this._core.registerDcsHandler(e,(function(e,n){return t(e,n.toArray())}))}},{key:"addDcsHandler",value:function(e,t){return this.registerDcsHandler(e,t)}},{key:"registerEscHandler",value:function(e,t){return this._core.registerEscHandler(e,t)}},{key:"addEscHandler",value:function(e,t){return this.registerEscHandler(e,t)}},{key:"registerOscHandler",value:function(e,t){return this._core.registerOscHandler(e,t)}},{key:"addOscHandler",value:function(e,t){return this.registerOscHandler(e,t)}}]),e}()},7090:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeApi=void 0,t.UnicodeApi=function(){function e(t){d(this,e),this._core=t}return f(e,[{key:"register",value:function(e){this._core.unicodeService.register(e)}},{key:"versions",get:function(){return this._core.unicodeService.versions}},{key:"activeVersion",get:function(){return this._core.unicodeService.activeVersion},set:function(e){this._core.unicodeService.activeVersion=e}}]),e}()},744:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferService=t.MINIMUM_ROWS=t.MINIMUM_COLS=void 0;var o=n(2585),a=n(5295),l=n(8460),s=n(844);t.MINIMUM_COLS=2,t.MINIMUM_ROWS=1;var c=function(e){p(r,e);var n=v(r);function r(e){var i;return d(this,r),(i=n.call(this)).isUserScrolling=!1,i._onResize=i.register(new l.EventEmitter),i.onResize=i._onResize.event,i._onScroll=i.register(new l.EventEmitter),i.onScroll=i._onScroll.event,i.cols=Math.max(e.rawOptions.cols||0,t.MINIMUM_COLS),i.rows=Math.max(e.rawOptions.rows||0,t.MINIMUM_ROWS),i.buffers=i.register(new a.BufferSet(e,h(i))),i}return f(r,[{key:"buffer",get:function(){return this.buffers.active}},{key:"resize",value:function(e,t){this.cols=e,this.rows=t,this.buffers.resize(e,t),this._onResize.fire({cols:e,rows:t})}},{key:"reset",value:function(){this.buffers.reset(),this.isUserScrolling=!1}},{key:"scroll",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.buffer;(t=this._cachedBlankLine)&&t.length===this.cols&&t.getFg(0)===e.fg&&t.getBg(0)===e.bg||(t=r.getBlankLine(e,n),this._cachedBlankLine=t),t.isWrapped=n;var i=r.ybase+r.scrollTop,o=r.ybase+r.scrollBottom;if(0===r.scrollTop){var a=r.lines.isFull;o===r.lines.length-1?a?r.lines.recycle().copyFrom(t):r.lines.push(t.clone()):r.lines.splice(o+1,0,t.clone()),a?this.isUserScrolling&&(r.ydisp=Math.max(r.ydisp-1,0)):(r.ybase++,this.isUserScrolling||r.ydisp++)}else{var l=o-i+1;r.lines.shiftElements(i+1,l-1,-1),r.lines.set(o,t.clone())}this.isUserScrolling||(r.ydisp=r.ybase),this._onScroll.fire(r.ydisp)}},{key:"scrollLines",value:function(e,t,n){var r=this.buffer;if(e<0){if(0===r.ydisp)return;this.isUserScrolling=!0}else e+r.ydisp>=r.ybase&&(this.isUserScrolling=!1);var i=r.ydisp;r.ydisp=Math.max(Math.min(r.ydisp+e,r.ybase),0),i!==r.ydisp&&(t||this._onScroll.fire(r.ydisp))}},{key:"scrollPages",value:function(e){this.scrollLines(e*(this.rows-1))}},{key:"scrollToTop",value:function(){this.scrollLines(-this.buffer.ydisp)}},{key:"scrollToBottom",value:function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)}},{key:"scrollToLine",value:function(e){var t=e-this.buffer.ydisp;0!==t&&this.scrollLines(t)}}]),r}(s.Disposable);c=r([i(0,o.IOptionsService)],c),t.BufferService=c},7994:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.CharsetService=void 0,t.CharsetService=function(){function e(){d(this,e),this.glevel=0,this._charsets=[]}return f(e,[{key:"reset",value:function(){this.charset=void 0,this._charsets=[],this.glevel=0}},{key:"setgLevel",value:function(e){this.glevel=e,this.charset=this._charsets[e]}},{key:"setgCharset",value:function(e,t){this._charsets[e]=t,this.glevel===e&&(this.charset=t)}}]),e}()},1753:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreMouseService=void 0;var o=n(2585),a=n(8460),l=n(844),s={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(e){return 4!==e.button&&1===e.action&&(e.ctrl=!1,e.alt=!1,e.shift=!1,!0)}},VT200:{events:19,restrict:function(e){return 32!==e.action}},DRAG:{events:23,restrict:function(e){return 32!==e.action||3!==e.button}},ANY:{events:31,restrict:function(e){return!0}}};function c(e,t){var n=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return 4===e.button?(n|=64,n|=e.action):(n|=3&e.button,4&e.button&&(n|=64),8&e.button&&(n|=128),32===e.action?n|=32:0!==e.action||t||(n|=3)),n}var u=String.fromCharCode,h={DEFAULT:function(e){var t=[c(e,!1)+32,e.col+32,e.row+32];return t[0]>255||t[1]>255||t[2]>255?"":"\x1b[M".concat(u(t[0])).concat(u(t[1])).concat(u(t[2]))},SGR:function(e){var t=0===e.action&&4!==e.button?"m":"M";return"\x1b[<".concat(c(e,!0),";").concat(e.col,";").concat(e.row).concat(t)},SGR_PIXELS:function(e){var t=0===e.action&&4!==e.button?"m":"M";return"\x1b[<".concat(c(e,!0),";").concat(e.x,";").concat(e.y).concat(t)}},m=function(e){p(n,e);var t=v(n);function n(e,r){var i;d(this,n),(i=t.call(this))._bufferService=e,i._coreService=r,i._protocols={},i._encodings={},i._activeProtocol="",i._activeEncoding="",i._lastEvent=null,i._onProtocolChange=i.register(new a.EventEmitter),i.onProtocolChange=i._onProtocolChange.event;for(var o=0,l=Object.keys(s);o<l.length;o++){var c=l[o];i.addProtocol(c,s[c])}for(var u=0,f=Object.keys(h);u<f.length;u++){var p=f[u];i.addEncoding(p,h[p])}return i.reset(),i}return f(n,[{key:"addProtocol",value:function(e,t){this._protocols[e]=t}},{key:"addEncoding",value:function(e,t){this._encodings[e]=t}},{key:"activeProtocol",get:function(){return this._activeProtocol},set:function(e){if(!this._protocols[e])throw new Error('unknown protocol "'.concat(e,'"'));this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)}},{key:"areMouseEventsActive",get:function(){return 0!==this._protocols[this._activeProtocol].events}},{key:"activeEncoding",get:function(){return this._activeEncoding},set:function(e){if(!this._encodings[e])throw new Error('unknown encoding "'.concat(e,'"'));this._activeEncoding=e}},{key:"reset",value:function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}},{key:"triggerMouseEvent",value:function(e){if(e.col<0||e.col>=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows)return!1;if(4===e.button&&32===e.action)return!1;if(3===e.button&&32!==e.action)return!1;if(4!==e.button&&(2===e.action||3===e.action))return!1;if(e.col++,e.row++,32===e.action&&this._lastEvent&&this._equalEvents(this._lastEvent,e,"SGR_PIXELS"===this._activeEncoding))return!1;if(!this._protocols[this._activeProtocol].restrict(e))return!1;var t=this._encodings[this._activeEncoding](e);return t&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0}},{key:"explainEvents",value:function(e){return{down:!!(1&e),up:!!(2&e),drag:!!(4&e),move:!!(8&e),wheel:!!(16&e)}}},{key:"_equalEvents",value:function(e,t,n){if(n){if(e.x!==t.x)return!1;if(e.y!==t.y)return!1}else{if(e.col!==t.col)return!1;if(e.row!==t.row)return!1}return e.button===t.button&&e.action===t.action&&e.ctrl===t.ctrl&&e.alt===t.alt&&e.shift===t.shift}}]),n}(l.Disposable);m=r([i(0,o.IBufferService),i(1,o.ICoreService)],m),t.CoreMouseService=m},6975:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreService=void 0;var o=n(2585),a=n(8460),l=n(1439),s=n(844),c=Object.freeze({insertMode:!1}),u=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),h=function(e){p(n,e);var t=v(n);function n(e,r,i){var o;return d(this,n),(o=t.call(this))._bufferService=e,o._logService=r,o._optionsService=i,o.isCursorInitialized=!1,o.isCursorHidden=!1,o._onData=o.register(new a.EventEmitter),o.onData=o._onData.event,o._onUserInput=o.register(new a.EventEmitter),o.onUserInput=o._onUserInput.event,o._onBinary=o.register(new a.EventEmitter),o.onBinary=o._onBinary.event,o._onRequestScrollToBottom=o.register(new a.EventEmitter),o.onRequestScrollToBottom=o._onRequestScrollToBottom.event,o.modes=(0,l.clone)(c),o.decPrivateModes=(0,l.clone)(u),o}return f(n,[{key:"reset",value:function(){this.modes=(0,l.clone)(c),this.decPrivateModes=(0,l.clone)(u)}},{key:"triggerDataEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this._optionsService.rawOptions.disableStdin){var n=this._bufferService.buffer;t&&this._optionsService.rawOptions.scrollOnUserInput&&n.ybase!==n.ydisp&&this._onRequestScrollToBottom.fire(),t&&this._onUserInput.fire(),this._logService.debug('sending data "'.concat(e,'"'),(function(){return e.split("").map((function(e){return e.charCodeAt(0)}))})),this._onData.fire(e)}}},{key:"triggerBinaryEvent",value:function(e){this._optionsService.rawOptions.disableStdin||(this._logService.debug('sending binary "'.concat(e,'"'),(function(){return e.split("").map((function(e){return e.charCodeAt(0)}))})),this._onBinary.fire(e))}}]),n}(s.Disposable);h=r([i(0,o.IBufferService),i(1,o.ILogService),i(2,o.IOptionsService)],h),t.CoreService=h},9074:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DecorationService=void 0;var r=n(8055),o=n(8460),a=n(844),c=n(6106),h=0,m=0,g=function(e){p(n,e);var t=v(n);function n(){var e;return d(this,n),(e=t.call(this))._decorations=new c.SortedList((function(e){return null==e?void 0:e.marker.line})),e._onDecorationRegistered=e.register(new o.EventEmitter),e.onDecorationRegistered=e._onDecorationRegistered.event,e._onDecorationRemoved=e.register(new o.EventEmitter),e.onDecorationRemoved=e._onDecorationRemoved.event,e.register((0,a.toDisposable)((function(){var t,n=u(e._decorations.values());try{for(n.s();!(t=n.n()).done;){var r=t.value;e._onDecorationRemoved.fire(r)}}catch(i){n.e(i)}finally{n.f()}e.reset()}))),e}return f(n,[{key:"decorations",get:function(){return this._decorations.values()}},{key:"registerDecoration",value:function(e){var t=this;if(!e.marker.isDisposed){var n=new y(e);if(n){var r=n.marker.onDispose((function(){return n.dispose()}));n.onDispose((function(){n&&(t._decorations.delete(n)&&t._onDecorationRemoved.fire(n),r.dispose())})),this._decorations.insert(n),this._onDecorationRegistered.fire(n)}return n}}},{key:"reset",value:function(){var e,t=u(this._decorations.values());try{for(t.s();!(e=t.n()).done;)e.value.dispose()}catch(n){t.e(n)}finally{t.f()}this._decorations.clear()}},{key:"getDecorationsAtCell",value:i().mark((function e(t,n,r){var o,a,l,s,c,d,f,h;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s=0,c=0,d=u(this._decorations.getKeyIterator(n)),e.prev=2,d.s();case 4:if((f=d.n()).done){e.next=14;break}if(h=f.value,s=null!==(o=h.options.x)&&void 0!==o?o:0,c=s+(null!==(a=h.options.width)&&void 0!==a?a:1),e.t0=t>=s&&t<c&&(!r||(null!==(l=h.options.layer)&&void 0!==l?l:"bottom")===r),!e.t0){e.next=12;break}return e.next=12,h;case 12:e.next=4;break;case 14:e.next=19;break;case 16:e.prev=16,e.t1=e.catch(2),d.e(e.t1);case 19:return e.prev=19,d.f(),e.finish(19);case 22:case"end":return e.stop()}}),e,this,[[2,16,19,22]])}))},{key:"forEachDecorationAtCell",value:function(e,t,n,r){this._decorations.forEachByKey(t,(function(t){var i,o,a;h=null!==(i=t.options.x)&&void 0!==i?i:0,m=h+(null!==(o=t.options.width)&&void 0!==o?o:1),e>=h&&e<m&&(!n||(null!==(a=t.options.layer)&&void 0!==a?a:"bottom")===n)&&r(t)}))}},{key:"dispose",value:function(){var e,t=u(this._decorations.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;this._onDecorationRemoved.fire(n)}}catch(r){t.e(r)}finally{t.f()}this.reset()}}]),n}(a.Disposable);t.DecorationService=g;var y=function(e){p(n,e);var t=v(n);function n(e){var r;return d(this,n),(r=t.call(this)).options=e,r.onRenderEmitter=r.register(new o.EventEmitter),r.onRender=r.onRenderEmitter.event,r._onDispose=r.register(new o.EventEmitter),r.onDispose=r._onDispose.event,r._cachedBg=null,r._cachedFg=null,r.marker=e.marker,r.options.overviewRulerOptions&&!r.options.overviewRulerOptions.position&&(r.options.overviewRulerOptions.position="full"),r}return f(n,[{key:"isDisposed",get:function(){return this._isDisposed}},{key:"backgroundColorRGB",get:function(){return null===this._cachedBg&&(this.options.backgroundColor?this._cachedBg=r.css.toColor(this.options.backgroundColor):this._cachedBg=void 0),this._cachedBg}},{key:"foregroundColorRGB",get:function(){return null===this._cachedFg&&(this.options.foregroundColor?this._cachedFg=r.css.toColor(this.options.foregroundColor):this._cachedFg=void 0),this._cachedFg}},{key:"dispose",value:function(){this._onDispose.fire(),l(s(n.prototype),"dispose",this).call(this)}}]),n}(a.Disposable)},4348:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.InstantiationService=t.ServiceCollection=void 0;var i=n(2585),o=n(8343),a=function(){function e(){d(this,e),this._entries=new Map;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=c(o[i],2),l=a[0],s=a[1];this.set(l,s)}}return f(e,[{key:"set",value:function(e,t){var n=this._entries.get(e);return this._entries.set(e,t),n}},{key:"forEach",value:function(e){var t,n=u(this._entries.entries());try{for(n.s();!(t=n.n()).done;){var r=c(t.value,2);e(r[0],r[1])}}catch(i){n.e(i)}finally{n.f()}}},{key:"has",value:function(e){return this._entries.has(e)}},{key:"get",value:function(e){return this._entries.get(e)}}]),e}();t.ServiceCollection=a,t.InstantiationService=function(){function e(){d(this,e),this._services=new a,this._services.set(i.IInstantiationService,this)}return f(e,[{key:"setService",value:function(e,t){this._services.set(e,t)}},{key:"getService",value:function(e){return this._services.get(e)}},{key:"createInstance",value:function(e){var t,n=(0,o.getServiceDependencies)(e).sort((function(e,t){return e.index-t.index})),i=[],a=u(n);try{for(a.s();!(t=a.n()).done;){var l=t.value,s=this._services.get(l.id);if(!s)throw new Error("[createInstance] ".concat(e.name," depends on UNKNOWN service ").concat(l.id,"."));i.push(s)}}catch(p){a.e(p)}finally{a.f()}for(var c=arguments.length,d=new Array(c>1?c-1:0),f=1;f<c;f++)d[f-1]=arguments[f];var h=n.length>0?n[0].index:d.length;if(d.length!==h)throw new Error("[createInstance] First service dependency of ".concat(e.name," at position ").concat(h+1," conflicts with ").concat(d.length," static arguments"));return r(e,[].concat(d,i))}}]),e}()},7866:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LogService=void 0;var o=n(844),l=n(2585),s={debug:l.LogLevelEnum.DEBUG,info:l.LogLevelEnum.INFO,warn:l.LogLevelEnum.WARN,error:l.LogLevelEnum.ERROR,off:l.LogLevelEnum.OFF},c=function(e){p(n,e);var t=v(n);function n(e){var r;return d(this,n),(r=t.call(this))._optionsService=e,r.logLevel=l.LogLevelEnum.OFF,r._updateLogLevel(),r.register(r._optionsService.onSpecificOptionChange("logLevel",(function(){return r._updateLogLevel()}))),r}return f(n,[{key:"_updateLogLevel",value:function(){this.logLevel=s[this._optionsService.rawOptions.logLevel]}},{key:"_evalLazyOptionalParams",value:function(e){for(var t=0;t<e.length;t++)"function"==typeof e[t]&&(e[t]=e[t]())}},{key:"_log",value:function(e,t,n){this._evalLazyOptionalParams(n),e.call.apply(e,[console,"xterm.js: "+t].concat(a(n)))}},{key:"debug",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.logLevel<=l.LogLevelEnum.DEBUG&&this._log(console.log,e,n)}},{key:"info",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.logLevel<=l.LogLevelEnum.INFO&&this._log(console.info,e,n)}},{key:"warn",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.logLevel<=l.LogLevelEnum.WARN&&this._log(console.warn,e,n)}},{key:"error",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.logLevel<=l.LogLevelEnum.ERROR&&this._log(console.error,e,n)}}]),n}(o.Disposable);c=r([i(0,l.IOptionsService)],c),t.LogService=c},7302:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsService=t.DEFAULT_OPTIONS=void 0;var r=n(8460),i=n(6114),o=n(844);t.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,customGlyphs:!0,drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",scrollback:1e3,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:i.isMac,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0};var a=["normal","bold","100","200","300","400","500","600","700","800","900"],l=function(e){p(i,e);var n=v(i);function i(e){var o;d(this,i),(o=n.call(this))._onOptionChange=o.register(new r.EventEmitter),o.onOptionChange=o._onOptionChange.event;var a=Object.assign({},t.DEFAULT_OPTIONS);for(var l in e)if(l in a)try{var s=e[l];a[l]=o._sanitizeAndValidateOption(l,s)}catch(e){console.error(e)}return o.rawOptions=a,o.options=Object.assign({},a),o._setupOptions(),o}return f(i,[{key:"onSpecificOptionChange",value:function(e,t){var n=this;return this.onOptionChange((function(r){r===e&&t(n.rawOptions[e])}))}},{key:"onMultipleOptionChange",value:function(e,t){return this.onOptionChange((function(n){-1!==e.indexOf(n)&&t()}))}},{key:"_setupOptions",value:function(){var e=this,n=function(n){if(!(n in t.DEFAULT_OPTIONS))throw new Error('No option with key "'.concat(n,'"'));return e.rawOptions[n]},r=function(n,r){if(!(n in t.DEFAULT_OPTIONS))throw new Error('No option with key "'.concat(n,'"'));r=e._sanitizeAndValidateOption(n,r),e.rawOptions[n]!==r&&(e.rawOptions[n]=r,e._onOptionChange.fire(n))};for(var i in this.rawOptions){var o={get:n.bind(this,i),set:r.bind(this,i)};Object.defineProperty(this.options,i,o)}}},{key:"_sanitizeAndValidateOption",value:function(e,n){switch(e){case"cursorStyle":if(n||(n=t.DEFAULT_OPTIONS[e]),!function(e){return"block"===e||"underline"===e||"bar"===e}(n))throw new Error('"'.concat(n,'" is not a valid value for ').concat(e));break;case"wordSeparator":n||(n=t.DEFAULT_OPTIONS[e]);break;case"fontWeight":case"fontWeightBold":if("number"==typeof n&&1<=n&&n<=1e3)break;n=a.includes(n)?n:t.DEFAULT_OPTIONS[e];break;case"cursorWidth":n=Math.floor(n);case"lineHeight":case"tabStopWidth":if(n<1)throw new Error("".concat(e," cannot be less than 1, value: ").concat(n));break;case"minimumContrastRatio":n=Math.max(1,Math.min(21,Math.round(10*n)/10));break;case"scrollback":if((n=Math.min(n,4294967295))<0)throw new Error("".concat(e," cannot be less than 0, value: ").concat(n));break;case"fastScrollSensitivity":case"scrollSensitivity":if(n<=0)throw new Error("".concat(e," cannot be less than or equal to 0, value: ").concat(n));break;case"rows":case"cols":if(!n&&0!==n)throw new Error("".concat(e," must be numeric, value: ").concat(n));break;case"windowsPty":n=null!=n?n:{}}return n}}]),i}(o.Disposable);t.OptionsService=l},2660:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OscLinkService=void 0;var o=n(2585),a=function(){function e(t){d(this,e),this._bufferService=t,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}return f(e,[{key:"registerLink",value:function(e){var t=this,n=this._bufferService.buffer;if(void 0===e.id){var r=n.addMarker(n.ybase+n.y),i={data:e,id:this._nextId++,lines:[r]};return r.onDispose((function(){return t._removeMarkerFromLink(i,r)})),this._dataByLinkId.set(i.id,i),i.id}var o=e,a=this._getEntryIdKey(o),l=this._entriesWithId.get(a);if(l)return this.addLineToLink(l.id,n.ybase+n.y),l.id;var s=n.addMarker(n.ybase+n.y),c={id:this._nextId++,key:this._getEntryIdKey(o),data:o,lines:[s]};return s.onDispose((function(){return t._removeMarkerFromLink(c,s)})),this._entriesWithId.set(c.key,c),this._dataByLinkId.set(c.id,c),c.id}},{key:"addLineToLink",value:function(e,t){var n=this,r=this._dataByLinkId.get(e);if(r&&r.lines.every((function(e){return e.line!==t}))){var i=this._bufferService.buffer.addMarker(t);r.lines.push(i),i.onDispose((function(){return n._removeMarkerFromLink(r,i)}))}}},{key:"getLinkData",value:function(e){var t;return null===(t=this._dataByLinkId.get(e))||void 0===t?void 0:t.data}},{key:"_getEntryIdKey",value:function(e){return"".concat(e.id,";;").concat(e.uri)}},{key:"_removeMarkerFromLink",value:function(e,t){var n=e.lines.indexOf(t);-1!==n&&(e.lines.splice(n,1),0===e.lines.length&&(void 0!==e.data.id&&this._entriesWithId.delete(e.key),this._dataByLinkId.delete(e.id)))}}]),e}();a=r([i(0,o.IBufferService)],a),t.OscLinkService=a},8343:function(e,t){function n(e,t,n){t.di$target===t?t.di$dependencies.push({id:e,index:n}):(t.di$dependencies=[{id:e,index:n}],t.di$target=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=t.getServiceDependencies=t.serviceRegistry=void 0,t.serviceRegistry=new Map,t.getServiceDependencies=function(e){return e.di$dependencies||[]},t.createDecorator=function(e){if(t.serviceRegistry.has(e))return t.serviceRegistry.get(e);var r=function e(t,r,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");n(e,t,i)};return r.toString=function(){return e},t.serviceRegistry.set(e,r),r}},2585:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IDecorationService=t.IUnicodeService=t.IOscLinkService=t.IOptionsService=t.ILogService=t.LogLevelEnum=t.IInstantiationService=t.ICharsetService=t.ICoreService=t.ICoreMouseService=t.IBufferService=void 0;var r,i=n(8343);t.IBufferService=(0,i.createDecorator)("BufferService"),t.ICoreMouseService=(0,i.createDecorator)("CoreMouseService"),t.ICoreService=(0,i.createDecorator)("CoreService"),t.ICharsetService=(0,i.createDecorator)("CharsetService"),t.IInstantiationService=(0,i.createDecorator)("InstantiationService"),(r=t.LogLevelEnum||(t.LogLevelEnum={}))[r.DEBUG=0]="DEBUG",r[r.INFO=1]="INFO",r[r.WARN=2]="WARN",r[r.ERROR=3]="ERROR",r[r.OFF=4]="OFF",t.ILogService=(0,i.createDecorator)("LogService"),t.IOptionsService=(0,i.createDecorator)("OptionsService"),t.IOscLinkService=(0,i.createDecorator)("OscLinkService"),t.IUnicodeService=(0,i.createDecorator)("UnicodeService"),t.IDecorationService=(0,i.createDecorator)("DecorationService")},1480:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeService=void 0;var r=n(8460),i=n(225);t.UnicodeService=function(){function e(){d(this,e),this._providers=Object.create(null),this._active="",this._onChange=new r.EventEmitter,this.onChange=this._onChange.event;var t=new i.UnicodeV6;this.register(t),this._active=t.version,this._activeProvider=t}return f(e,[{key:"dispose",value:function(){this._onChange.dispose()}},{key:"versions",get:function(){return Object.keys(this._providers)}},{key:"activeVersion",get:function(){return this._active},set:function(e){if(!this._providers[e])throw new Error('unknown Unicode version "'.concat(e,'"'));this._active=e,this._activeProvider=this._providers[e],this._onChange.fire(e)}},{key:"register",value:function(e){this._providers[e.version]=e}},{key:"wcwidth",value:function(e){return this._activeProvider.wcwidth(e)}},{key:"getStringCellWidth",value:function(e){for(var t=0,n=e.length,r=0;r<n;++r){var i=e.charCodeAt(r);if(55296<=i&&i<=56319){if(++r>=n)return t+this.wcwidth(i);var o=e.charCodeAt(r);56320<=o&&o<=57343?i=1024*(i-55296)+o-56320+65536:t+=this.wcwidth(o)}t+=this.wcwidth(i)}return t}}]),e}()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}var m={};return function(){var e=m;Object.defineProperty(e,"__esModule",{value:!0}),e.Terminal=void 0;var t=n(3236),r=n(9042),i=n(7975),o=n(7090),a=n(5741),l=n(8285),s=["cols","rows"];e.Terminal=function(){function e(n){var r=this;d(this,e),this._core=new t.Terminal(n),this._addonManager=new a.AddonManager,this._publicOptions=Object.assign({},this._core.options);var i=function(e){return r._core.options[e]},o=function(e,t){r._checkReadonlyOptions(e),r._core.options[e]=t};for(var l in this._core.options){var s={get:i.bind(this,l),set:o.bind(this,l)};Object.defineProperty(this._publicOptions,l,s)}}return f(e,[{key:"_checkReadonlyOptions",value:function(e){if(s.includes(e))throw new Error('Option "'.concat(e,'" can only be set in the constructor'))}},{key:"_checkProposedApi",value:function(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}},{key:"onBell",get:function(){return this._core.onBell}},{key:"onBinary",get:function(){return this._core.onBinary}},{key:"onCursorMove",get:function(){return this._core.onCursorMove}},{key:"onData",get:function(){return this._core.onData}},{key:"onKey",get:function(){return this._core.onKey}},{key:"onLineFeed",get:function(){return this._core.onLineFeed}},{key:"onRender",get:function(){return this._core.onRender}},{key:"onResize",get:function(){return this._core.onResize}},{key:"onScroll",get:function(){return this._core.onScroll}},{key:"onSelectionChange",get:function(){return this._core.onSelectionChange}},{key:"onTitleChange",get:function(){return this._core.onTitleChange}},{key:"onWriteParsed",get:function(){return this._core.onWriteParsed}},{key:"element",get:function(){return this._core.element}},{key:"parser",get:function(){return this._parser||(this._parser=new i.ParserApi(this._core)),this._parser}},{key:"unicode",get:function(){return this._checkProposedApi(),new o.UnicodeApi(this._core)}},{key:"textarea",get:function(){return this._core.textarea}},{key:"rows",get:function(){return this._core.rows}},{key:"cols",get:function(){return this._core.cols}},{key:"buffer",get:function(){return this._buffer||(this._buffer=new l.BufferNamespaceApi(this._core)),this._buffer}},{key:"markers",get:function(){return this._checkProposedApi(),this._core.markers}},{key:"modes",get:function(){var e=this._core.coreService.decPrivateModes,t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any"}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,wraparoundMode:e.wraparound}}},{key:"options",get:function(){return this._publicOptions},set:function(e){for(var t in e)this._publicOptions[t]=e[t]}},{key:"blur",value:function(){this._core.blur()}},{key:"focus",value:function(){this._core.focus()}},{key:"resize",value:function(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)}},{key:"open",value:function(e){this._core.open(e)}},{key:"attachCustomKeyEventHandler",value:function(e){this._core.attachCustomKeyEventHandler(e)}},{key:"registerLinkProvider",value:function(e){return this._core.registerLinkProvider(e)}},{key:"registerCharacterJoiner",value:function(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)}},{key:"deregisterCharacterJoiner",value:function(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)}},{key:"registerMarker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this._verifyIntegers(e),this._core.addMarker(e)}},{key:"registerDecoration",value:function(e){var t,n,r;return this._checkProposedApi(),this._verifyPositiveIntegers(null!==(t=e.x)&&void 0!==t?t:0,null!==(n=e.width)&&void 0!==n?n:0,null!==(r=e.height)&&void 0!==r?r:0),this._core.registerDecoration(e)}},{key:"hasSelection",value:function(){return this._core.hasSelection()}},{key:"select",value:function(e,t,n){this._verifyIntegers(e,t,n),this._core.select(e,t,n)}},{key:"getSelection",value:function(){return this._core.getSelection()}},{key:"getSelectionPosition",value:function(){return this._core.getSelectionPosition()}},{key:"clearSelection",value:function(){this._core.clearSelection()}},{key:"selectAll",value:function(){this._core.selectAll()}},{key:"selectLines",value:function(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)}},{key:"dispose",value:function(){this._addonManager.dispose(),this._core.dispose()}},{key:"scrollLines",value:function(e){this._verifyIntegers(e),this._core.scrollLines(e)}},{key:"scrollPages",value:function(e){this._verifyIntegers(e),this._core.scrollPages(e)}},{key:"scrollToTop",value:function(){this._core.scrollToTop()}},{key:"scrollToBottom",value:function(){this._core.scrollToBottom()}},{key:"scrollToLine",value:function(e){this._verifyIntegers(e),this._core.scrollToLine(e)}},{key:"clear",value:function(){this._core.clear()}},{key:"write",value:function(e,t){this._core.write(e,t)}},{key:"writeln",value:function(e,t){this._core.write(e),this._core.write("\r\n",t)}},{key:"paste",value:function(e){this._core.paste(e)}},{key:"refresh",value:function(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)}},{key:"reset",value:function(){this._core.reset()}},{key:"clearTextureAtlas",value:function(){this._core.clearTextureAtlas()}},{key:"loadAddon",value:function(e){return this._addonManager.loadAddon(this,e)}},{key:"_verifyIntegers",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o=i[r];if(o===1/0||isNaN(o)||o%1!=0)throw new Error("This API only accepts integers")}}},{key:"_verifyPositiveIntegers",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o=i[r];if(o&&(o===1/0||isNaN(o)||o%1!=0||o<0))throw new Error("This API only accepts positive integers")}}}],[{key:"strings",get:function(){return r}}]),e}()}(),m}()},3897:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},5372:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},3405:function(e,t,n){var r=n(3897);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},6115:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},6690:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},3515:function(e,t,n){var r=n(6015),i=n(9617);function o(t,n,a){return i()?(e.exports=o=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&r(o,n.prototype),o},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(null,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},9728:function(e,t,n){var r=n(4062);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},4704:function(e,t,n){var r=n(6116);e.exports=function(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){s=!0,a=e},f:function(){try{l||null==n.return||n.return()}finally{if(s)throw a}}}},e.exports.__esModule=!0,e.exports.default=e.exports},6389:function(e,t,n){var r=n(3808),i=n(9617),o=n(4993);e.exports=function(e){var t=i();return function(){var n,i=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return o(this,n)}},e.exports.__esModule=!0,e.exports.default=e.exports},1588:function(e,t,n){var r=n(1753);function i(){return"undefined"!==typeof Reflect&&Reflect.get?(e.exports=i=Reflect.get.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=i=function(e,t,n){var i=r(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},e.exports.__esModule=!0,e.exports.default=e.exports),i.apply(this,arguments)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},3808:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},1655:function(e,t,n){var r=n(6015);e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},4836:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},9617:function(e){e.exports=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},9498:function(e){e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},8872:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(u){c=!0,i=u}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}},e.exports.__esModule=!0,e.exports.default=e.exports},2218:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},2281:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},4993:function(e,t,n){var r=n(8698).default,i=n(6115);e.exports=function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},7061:function(e,t,n){var r=n(8698).default;function i(){"use strict";e.exports=i=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},s=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",u=l.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(M){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,o=Object.create(i.prototype),l=new O(r||[]);return a(o,"_invoke",{value:C(e,n,l)}),o}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(M){return{type:"throw",arg:M}}}t.wrap=f;var p={};function v(){}function m(){}function g(){}var y={};d(y,s,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(P([])));_&&_!==n&&o.call(_,s)&&(y=_);var w=g.prototype=v.prototype=Object.create(y);function S(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(i,a,l,s){var c=h(e[i],e,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,l,s)}),(function(e){n("throw",e,l,s)})):t.resolve(d).then((function(e){u.value=e,l(u)}),(function(e){return n("throw",e,l,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}})}function C(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return T()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var l=k(a,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=h(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function k(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=h(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,p;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function P(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(o.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:T}}function T(){return{value:void 0,done:!0}}return m.prototype=g,a(w,"constructor",{value:g,configurable:!0}),a(g,"constructor",{value:m,configurable:!0}),m.displayName=d(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,d(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},S(x.prototype),d(x.prototype,c,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new x(f(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(w),d(w,u,"Generator"),d(w,s,(function(){return this})),d(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=P,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(R),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),R(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;R(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},t}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},6015:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},7424:function(e,t,n){var r=n(5372),i=n(8872),o=n(6116),a=n(2218);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},1753:function(e,t,n){var r=n(3808);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},861:function(e,t,n){var r=n(3405),i=n(9498),o=n(6116),a=n(2281);e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},5036:function(e,t,n){var r=n(8698).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},4062:function(e,t,n){var r=n(8698).default,i=n(5036);e.exports=function(e){var t=i(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},8698:function(e){function t(n){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},6116:function(e,t,n){var r=n(3897);e.exports=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},907:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},3878:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return r}})},4942:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(9142);function i(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},7462:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})},9199:function(e,t,n){"use strict";function r(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return r}})},5267:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},3366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:function(){return r}})},9439:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(3878);var i=n(181),o=n(5267);function a(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(u){c=!0,i=u}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(e,t)||(0,i.Z)(e,t)||(0,o.Z)()}},3433:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(907);var i=n(9199),o=n(181);function a(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,i.Z)(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},9142:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1002);function i(e){var t=function(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==(0,r.Z)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},1002:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n.d(t,{Z:function(){return r}})},181:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(907);function i(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=e,n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var o=Object.create(null);n.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var l=2&i&&r;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((function(e){a[e]=function(){return r[e]}}));return a.default=function(){return r},n.d(o,a),o}}(),n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))},n.u=function(e){return"static/js/"+e+".49f8686c.chunk.js"},n.miniCssF=function(e){},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="netmiko_client:";n.l=function(r,i,o,a){if(e[r])e[r].push(i);else{var l,s;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+o){l=d;break}}l||(s=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,n.nc&&l.setAttribute("nonce",n.nc),l.setAttribute("data-webpack",t+o),l.src=r),e[r]=[i];var f=function(t,n){l.onerror=l.onload=null,clearTimeout(h);var i=e[r];if(delete e[r],l.parentNode&&l.parentNode.removeChild(l),i&&i.forEach((function(e){return e(n)})),t)return t(n)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=f.bind(null,l.onerror),l.onload=f.bind(null,l.onload),s&&document.head.appendChild(l)}}}(),n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},n.p="/",function(){var e={179:0};n.f.j=function(t,r){var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else{var o=new Promise((function(n,r){i=e[t]=[n,r]}));r.push(i[2]=o);var a=n.p+n.u(t),l=new Error;n.l(a,(function(r){if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;l.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",l.name="ChunkLoadError",l.type=o,l.request=a,i[1](l)}}),"chunk-"+t,t)}};var t=function(t,r){var i,o,a=r[0],l=r[1],s=r[2],c=0;if(a.some((function(t){return 0!==e[t]}))){for(i in l)n.o(l,i)&&(n.m[i]=l[i]);if(s)s(n)}for(t&&t(r);c<a.length;c++)o=a[c],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=self.webpackChunknetmiko_client=self.webpackChunknetmiko_client||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}(),function(){"use strict";var e={};n.r(e),n.d(e,{Decoder:function(){return _t},Encoder:function(){return bt},PacketType:function(){return gt},protocol:function(){return yt}});var t=n(2791),r=n.t(t,2),i=n(1250),o=n(4942),a=n(1002);function l(){l=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(T){u=function(e,t,n){return e[t]=n}}function d(e,t,n,i){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),l=new R(i||[]);return r(a,"_invoke",{value:x(e,n,l)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=d;var h={};function p(){}function v(){}function m(){}var g={};u(g,o,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(O([])));b&&b!==t&&n.call(b,o)&&(g=b);var _=m.prototype=p.prototype=Object.create(g);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function i(r,o,l,s){var c=f(e[r],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==(0,a.Z)(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,l,s)}),(function(e){i("throw",e,l,s)})):t.resolve(d).then((function(e){u.value=e,l(u)}),(function(e){return i("throw",e,l,s)}))}s(c.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return P()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var l=C(a,n);if(l){if(l===h)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=f(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,h;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function O(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=m,r(_,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:v,configurable:!0}),v.displayName=u(m,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,u(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(S.prototype),u(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new S(d(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),u(_,c,"Generator"),u(_,o,(function(){return this})),u(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=O,R.prototype={constructor:R,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(l&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}function s(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(c){return void n(c)}l.done?t(s):Promise.resolve(s).then(r,i)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){s(o,r,i,a,l,"next",e)}function l(e){s(o,r,i,a,l,"throw",e)}a(void 0)}))}}var u=n(9439);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=n(3366);function p(e,t){if(null==e)return{};var n,r,i=(0,h.Z)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var v=n(3433),m=n(8182),g=["theme","type"],y=["delay","staleId"],b=function(e){return"number"==typeof e&&!isNaN(e)},_=function(e){return"string"==typeof e},w=function(e){return"function"==typeof e},S=function(e){return _(e)||w(e)?e:null},x=function(e){return(0,t.isValidElement)(e)||_(e)||w(e)||b(e)};function C(e){var n=e.enter,r=e.exit,i=e.appendPosition,o=void 0!==i&&i,a=e.collapse,l=void 0===a||a,s=e.collapseDuration,c=void 0===s?300:s;return function(e){var i=e.children,a=e.position,s=e.preventExitTransition,u=e.done,d=e.nodeRef,f=e.isIn,h=o?"".concat(n,"--").concat(a):n,p=o?"".concat(r,"--").concat(a):r,m=(0,t.useRef)(0);return(0,t.useLayoutEffect)((function(){var e,t=d.current,n=h.split(" "),r=function e(r){var i;r.target===d.current&&(t.dispatchEvent(new Event("d")),t.removeEventListener("animationend",e),t.removeEventListener("animationcancel",e),0===m.current&&"animationcancel"!==r.type&&(i=t.classList).remove.apply(i,(0,v.Z)(n)))};(e=t.classList).add.apply(e,(0,v.Z)(n)),t.addEventListener("animationend",r),t.addEventListener("animationcancel",r)}),[]),(0,t.useEffect)((function(){var e=d.current,t=function t(){e.removeEventListener("animationend",t),l?function(e,t,n){void 0===n&&(n=300);var r=e.scrollHeight,i=e.style;requestAnimationFrame((function(){i.minHeight="initial",i.height=r+"px",i.transition="all ".concat(n,"ms"),requestAnimationFrame((function(){i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)}))}))}(e,u,c):u()};f||(s?t():(m.current=1,e.className+=" ".concat(p),e.addEventListener("animationend",t)))}),[f]),t.createElement(t.Fragment,null,i)}}function k(e,t){return{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}}var E={list:new Map,emitQueue:new Map,on:function(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off:function(e,t){if(t){var n=this.list.get(e).filter((function(e){return e!==t}));return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit:function(e){var t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit:function(e){var t=arguments,n=this;this.list.has(e)&&this.list.get(e).forEach((function(r){var i=setTimeout((function(){r.apply(void 0,(0,v.Z)([].slice.call(t,1)))}),0);n.emitQueue.has(e)||n.emitQueue.set(e,[]),n.emitQueue.get(e).push(i)}))}},R=function(e){var n=e.theme,r=e.type,i=p(e,g);return t.createElement("svg",f({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===n?"currentColor":"var(--toastify-icon-color-".concat(r,")")},i))},O={info:function(e){return t.createElement(R,f({},e),t.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return t.createElement(R,f({},e),t.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return t.createElement(R,f({},e),t.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return t.createElement(R,f({},e),t.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return t.createElement("div",{className:"Toastify__spinner"})}};function P(e){var n=(0,t.useReducer)((function(e){return e+1}),0),r=(0,u.Z)(n,2)[1],i=(0,t.useState)([]),o=(0,u.Z)(i,2),a=o[0],l=o[1],s=(0,t.useRef)(null),c=(0,t.useRef)(new Map).current,d=function(e){return-1!==a.indexOf(e)},h=(0,t.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:d,getToast:function(e){return c.get(e)}}).current;function m(e){var t=e.containerId;!h.props.limit||t&&h.containerId!==t||(h.count-=h.queue.length,h.queue=[])}function g(e){l((function(t){return null==e?[]:t.filter((function(t){return t!==e}))}))}function C(){var e=h.queue.shift();P(e.toastContent,e.toastProps,e.staleId)}function R(e,n){var i=n.delay,o=n.staleId,a=p(n,y);if(x(e)&&!function(e){return!s.current||h.props.enableMultiContainer&&e.containerId!==h.props.containerId||c.has(e.toastId)&&null==e.updateId}(a)){var l=a.toastId,u=a.updateId,d=a.data,v=h.props,m=function(){return g(l)},R=null==u;R&&h.count++;var T,M,L=f(f(f({},v),{},{style:v.toastStyle,key:h.toastKey++},a),{},{toastId:l,updateId:u,data:d,closeToast:m,isIn:!1,className:S(a.className||v.toastClassName),bodyClassName:S(a.bodyClassName||v.bodyClassName),progressClassName:S(a.progressClassName||v.progressClassName),autoClose:!a.isLoading&&(T=a.autoClose,M=v.autoClose,!1===T||b(T)&&T>0?T:M),deleteToast:function(){var e=k(c.get(l),"removed");c.delete(l),E.emit(4,e);var t=h.queue.length;if(h.count=null==l?h.count-h.displayedToast:h.count-1,h.count<0&&(h.count=0),t>0){var n=null==l?h.props.limit:1;if(1===t||1===n)h.displayedToast++,C();else{var i=n>t?t:n;h.displayedToast=i;for(var o=0;o<i;o++)C()}}else r()}});L.iconOut=function(e){var n=e.theme,r=e.type,i=e.isLoading,o=e.icon,a=null,l={theme:n,type:r};return!1===o||(w(o)?a=o(l):(0,t.isValidElement)(o)?a=(0,t.cloneElement)(o,l):_(o)||b(o)?a=o:i?a=O.spinner():function(e){return e in O}(r)&&(a=O[r](l))),a}(L),w(a.onOpen)&&(L.onOpen=a.onOpen),w(a.onClose)&&(L.onClose=a.onClose),L.closeButton=v.closeButton,!1===a.closeButton||x(a.closeButton)?L.closeButton=a.closeButton:!0===a.closeButton&&(L.closeButton=!x(v.closeButton)||v.closeButton);var Z=e;(0,t.isValidElement)(e)&&!_(e.type)?Z=(0,t.cloneElement)(e,{closeToast:m,toastProps:L,data:d}):w(e)&&(Z=e({closeToast:m,toastProps:L,data:d})),v.limit&&v.limit>0&&h.count>v.limit&&R?h.queue.push({toastContent:Z,toastProps:L,staleId:o}):b(i)?setTimeout((function(){P(Z,L,o)}),i):P(Z,L,o)}}function P(e,t,n){var r=t.toastId;n&&c.delete(n);var i={content:e,props:t};c.set(r,i),l((function(e){return[].concat((0,v.Z)(e),[r]).filter((function(e){return e!==n}))})),E.emit(4,k(i,null==i.props.updateId?"added":"updated"))}return(0,t.useEffect)((function(){return h.containerId=e.containerId,E.cancelEmit(3).on(0,R).on(1,(function(e){return s.current&&g(e)})).on(5,m).emit(2,h),function(){c.clear(),E.emit(3,h)}}),[]),(0,t.useEffect)((function(){h.props=e,h.isToastActive=d,h.displayedToast=a.length})),{getToastToRender:function(t){var n=new Map,r=Array.from(c.values());return e.newestOnTop&&r.reverse(),r.forEach((function(e){var t=e.props.position;n.has(t)||n.set(t,[]),n.get(t).push(e)})),Array.from(n,(function(e){return t(e[0],e[1])}))},containerRef:s,isToastActive:d}}function T(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function M(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function L(e){var n=(0,t.useState)(!1),r=(0,u.Z)(n,2),i=r[0],o=r[1],a=(0,t.useState)(!1),l=(0,u.Z)(a,2),s=l[0],c=l[1],d=(0,t.useRef)(null),f=(0,t.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,h=(0,t.useRef)(e),p=e.autoClose,v=e.pauseOnHover,m=e.closeToast,g=e.onClick,y=e.closeOnClick;function b(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),f.didMove=!1,document.addEventListener("mousemove",C),document.addEventListener("mouseup",k),document.addEventListener("touchmove",C),document.addEventListener("touchend",k);var n=d.current;f.canCloseOnClick=!0,f.canDrag=!0,f.boundingRect=n.getBoundingClientRect(),n.style.transition="",f.x=T(t.nativeEvent),f.y=M(t.nativeEvent),"x"===e.draggableDirection?(f.start=f.x,f.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(f.start=f.y,f.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function _(t){if(f.boundingRect){var n=f.boundingRect,r=n.top,i=n.bottom,o=n.left,a=n.right;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&f.x>=o&&f.x<=a&&f.y>=r&&f.y<=i?x():S()}}function S(){o(!0)}function x(){o(!1)}function C(t){var n=d.current;f.canDrag&&n&&(f.didMove=!0,i&&x(),f.x=T(t),f.y=M(t),f.delta="x"===e.draggableDirection?f.x-f.start:f.y-f.start,f.start!==f.x&&(f.canCloseOnClick=!1),n.style.transform="translate".concat(e.draggableDirection,"(").concat(f.delta,"px)"),n.style.opacity=""+(1-Math.abs(f.delta/f.removalDistance)))}function k(){document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",k),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",k);var t=d.current;if(f.canDrag&&f.didMove&&t){if(f.canDrag=!1,Math.abs(f.delta)>f.removalDistance)return c(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform="translate".concat(e.draggableDirection,"(0)"),t.style.opacity="1"}}(0,t.useEffect)((function(){h.current=e})),(0,t.useEffect)((function(){return d.current&&d.current.addEventListener("d",S,{once:!0}),w(e.onOpen)&&e.onOpen((0,t.isValidElement)(e.children)&&e.children.props),function(){var e=h.current;w(e.onClose)&&e.onClose((0,t.isValidElement)(e.children)&&e.children.props)}}),[]),(0,t.useEffect)((function(){return e.pauseOnFocusLoss&&(document.hasFocus()||x(),window.addEventListener("focus",S),window.addEventListener("blur",x)),function(){e.pauseOnFocusLoss&&(window.removeEventListener("focus",S),window.removeEventListener("blur",x))}}),[e.pauseOnFocusLoss]);var E={onMouseDown:b,onTouchStart:b,onMouseUp:_,onTouchEnd:_};return p&&v&&(E.onMouseEnter=x,E.onMouseLeave=S),y&&(E.onClick=function(e){g&&g(e),f.canCloseOnClick&&m()}),{playToast:S,pauseToast:x,isRunning:i,preventExitTransition:s,toastRef:d,eventHandlers:E}}function Z(e){var n=e.closeToast,r=e.theme,i=e.ariaLabel,o=void 0===i?"close":i;return t.createElement("button",{className:"Toastify__close-button Toastify__close-button--".concat(r),type:"button",onClick:function(e){e.stopPropagation(),n(e)},"aria-label":o},t.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},t.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function I(e){var n=e.delay,r=e.isRunning,i=e.closeToast,a=e.type,l=void 0===a?"default":a,s=e.hide,c=e.className,u=e.style,d=e.controlledProgress,h=e.progress,p=e.rtl,v=e.isIn,g=e.theme,y=s||d&&0===h,b=f(f({},u),{},{animationDuration:"".concat(n,"ms"),animationPlayState:r?"running":"paused",opacity:y?0:1});d&&(b.transform="scaleX(".concat(h,")"));var _=(0,m.Z)("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar-theme--".concat(g),"Toastify__progress-bar--".concat(l),{"Toastify__progress-bar--rtl":p}),S=w(c)?c({rtl:p,type:l,defaultClassName:_}):(0,m.Z)(_,c);return t.createElement("div",(0,o.Z)({role:"progressbar","aria-hidden":y?"true":"false","aria-label":"notification timer",className:S,style:b},d&&h>=1?"onTransitionEnd":"onAnimationEnd",d&&h<1?null:function(){v&&i()}))}var D=function(e){var n=L(e),r=n.isRunning,i=n.preventExitTransition,o=n.toastRef,a=n.eventHandlers,l=e.closeButton,s=e.children,c=e.autoClose,u=e.onClick,d=e.type,h=e.hideProgressBar,p=e.closeToast,v=e.transition,g=e.position,y=e.className,b=e.style,_=e.bodyClassName,S=e.bodyStyle,x=e.progressClassName,C=e.progressStyle,k=e.updateId,E=e.role,R=e.progress,O=e.rtl,P=e.toastId,T=e.deleteToast,M=e.isIn,D=e.isLoading,j=e.iconOut,A=e.closeOnClick,N=e.theme,F=(0,m.Z)("Toastify__toast","Toastify__toast-theme--".concat(N),"Toastify__toast--".concat(d),{"Toastify__toast--rtl":O},{"Toastify__toast--close-on-click":A}),z=w(y)?y({rtl:O,position:g,type:d,defaultClassName:F}):(0,m.Z)(F,y),B=!!R||!c,H={closeToast:p,type:d,theme:N},W=null;return!1===l||(W=w(l)?l(H):(0,t.isValidElement)(l)?(0,t.cloneElement)(l,H):Z(H)),t.createElement(v,{isIn:M,done:T,position:g,preventExitTransition:i,nodeRef:o},t.createElement("div",f(f({id:P,onClick:u,className:z},a),{},{style:b,ref:o}),t.createElement("div",f(f({},M&&{role:E}),{},{className:w(_)?_({type:d}):(0,m.Z)("Toastify__toast-body",_),style:S}),null!=j&&t.createElement("div",{className:(0,m.Z)("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!D})},j),t.createElement("div",null,s)),W,t.createElement(I,f(f({},k&&!B?{key:"pb-".concat(k)}:{}),{},{rtl:O,theme:N,delay:c,isRunning:r,isIn:M,closeToast:p,hide:h,type:d,style:C,className:x,controlledProgress:B,progress:R||0}))))},j=function(e,t){return void 0===t&&(t=!1),{enter:"Toastify--animate Toastify__".concat(e,"-enter"),exit:"Toastify--animate Toastify__".concat(e,"-exit"),appendPosition:t}},A=C(j("bounce",!0)),N=(C(j("slide",!0)),C(j("zoom")),C(j("flip")),(0,t.forwardRef)((function(e,n){var r=P(e),i=r.getToastToRender,o=r.containerRef,a=r.isToastActive,l=e.className,s=e.style,c=e.rtl,u=e.containerId;function d(e){var t=(0,m.Z)("Toastify__toast-container","Toastify__toast-container--".concat(e),{"Toastify__toast-container--rtl":c});return w(l)?l({position:e,rtl:c,defaultClassName:t}):(0,m.Z)(t,S(l))}return(0,t.useEffect)((function(){n&&(n.current=o.current)}),[]),t.createElement("div",{ref:o,className:"Toastify",id:u},i((function(e,n){var r=n.length?f({},s):f(f({},s),{},{pointerEvents:"none"});return t.createElement("div",{className:d(e),style:r,key:"container-".concat(e)},n.map((function(e,r){var i=e.content,o=e.props;return t.createElement(D,f(f({},o),{},{isIn:a(o.toastId),style:f(f({},o.style),{},{"--nth":r+1,"--len":n.length}),key:"toast-".concat(o.key)}),i)})))})))})));N.displayName="ToastContainer",N.defaultProps={position:"top-right",transition:A,autoClose:5e3,closeButton:Z,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};var F,z=new Map,B=[],H=1;function W(){return""+H++}function U(e){return e&&(_(e.toastId)||b(e.toastId))?e.toastId:W()}function V(e,t){return z.size>0?E.emit(0,e,t):B.push({content:e,options:t}),t.toastId}function q(e,t){return f(f({},t),{},{type:t&&t.type||e,toastId:U(t)})}function K(e){return function(t,n){return V(t,q(e,n))}}function Y(e,t){return V(e,q("default",t))}function G(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Y.loading=function(e,t){return V(e,q("default",f({isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1},t)))},Y.promise=function(e,t,n){var r,i=t.pending,o=t.error,a=t.success;i&&(r=_(i)?Y.loading(i,n):Y.loading(i.render,f(f({},n),i)));var l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null,delay:100},s=function(e,t,i){if(null!=t){var o=f(f(f({type:e},l),n),{},{data:i}),a=_(t)?{render:t}:t;return r?Y.update(r,f(f({},o),a)):Y(a.render,f(f({},o),a)),i}Y.dismiss(r)},c=w(e)?e():e;return c.then((function(e){return s("success",a,e)})).catch((function(e){return s("error",o,e)})),c},Y.success=K("success"),Y.info=K("info"),Y.error=K("error"),Y.warning=K("warning"),Y.warn=Y.warning,Y.dark=function(e,t){return V(e,q("default",f({theme:"dark"},t)))},Y.dismiss=function(e){z.size>0?E.emit(1,e):B=B.filter((function(t){return null!=e&&t.options.toastId!==e}))},Y.clearWaitingQueue=function(e){return void 0===e&&(e={}),E.emit(5,e)},Y.isActive=function(e){var t=!1;return z.forEach((function(n){n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},Y.update=function(e,t){void 0===t&&(t={}),setTimeout((function(){var n=function(e,t){var n=t.containerId,r=z.get(n||F);return r&&r.getToast(e)}(e,t);if(n){var r=n.props,i=n.content,o=f(f(f({},r),t),{},{toastId:t.toastId||e,updateId:W()});o.toastId!==e&&(o.staleId=e);var a=o.render||i;delete o.render,V(a,o)}}),0)},Y.done=function(e){Y.update(e,{progress:1})},Y.onChange=function(e){return E.on(4,e),function(){E.off(4,e)}},Y.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Y.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},E.on(2,(function(e){F=e.containerId||e,z.set(F,e),B.forEach((function(e){E.emit(0,e.content,e.options)})),B=[]})).on(3,(function(e){z.delete(e.containerId||e),0===z.size&&E.off(0).off(1).off(5)}));var X=n(9142);function $(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(0,X.Z)(r.key),r)}}function J(e,t,n){return t&&$(e.prototype,t),n&&$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ee(e,t){return ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ee(e,t)}function te(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ee(e,t)}function ne(e){return ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ne(e)}function re(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Mo){return!1}}function ie(e){var t=re();return function(){var n,r=ne(e);if(t){var i=ne(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===(0,a.Z)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Q(e)}(this,n)}}function oe(){return oe="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ne(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},oe.apply(this,arguments)}function ae(e,t,n){return ae=re()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&ee(i,n.prototype),i},ae.apply(null,arguments)}function le(e){var t="function"===typeof Map?new Map:void 0;return le=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return ae(e,arguments,ne(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ee(r,e)},le(e)}var se=Object.create(null);se.open="0",se.close="1",se.ping="2",se.pong="3",se.message="4",se.upgrade="5",se.noop="6";var ce=Object.create(null);Object.keys(se).forEach((function(e){ce[se[e]]=e}));for(var ue={type:"error",data:"parser error"},de="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),fe="function"===typeof ArrayBuffer,he=function(e,t){var n=new FileReader;return n.onload=function(){var e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)},pe=function(e,t,n){var r,i=e.type,o=e.data;return de&&o instanceof Blob?t?n(o):he(o,n):fe&&(o instanceof ArrayBuffer||(r=o,"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(r):r&&r.buffer instanceof ArrayBuffer))?t?n(o):he(new Blob([o]),n):n(se[i]+(o||""))},ve="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",me="undefined"===typeof Uint8Array?[]:new Uint8Array(256),ge=0;ge<ve.length;ge++)me[ve.charCodeAt(ge)]=ge;var ye="function"===typeof ArrayBuffer,be=function(e,t){if(ye){var n=function(e){var t,n,r,i,o,a=.75*e.length,l=e.length,s=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var c=new ArrayBuffer(a),u=new Uint8Array(c);for(t=0;t<l;t+=4)n=me[e.charCodeAt(t)],r=me[e.charCodeAt(t+1)],i=me[e.charCodeAt(t+2)],o=me[e.charCodeAt(t+3)],u[s++]=n<<2|r>>4,u[s++]=(15&r)<<4|i>>2,u[s++]=(3&i)<<6|63&o;return c}(e);return _e(n,t)}return{base64:!0,data:e}},_e=function(e,t){return"blob"===t&&e instanceof ArrayBuffer?new Blob([e]):e},we=function(e,t){if("string"!==typeof e)return{type:"message",data:_e(e,t)};var n=e.charAt(0);return"b"===n?{type:"message",data:be(e.substring(1),t)}:ce[n]?e.length>1?{type:ce[n],data:e.substring(1)}:{type:ce[n]}:ue},Se=String.fromCharCode(30);function xe(e){if(e)return function(e){for(var t in xe.prototype)e[t]=xe.prototype[t];return e}(e)}xe.prototype.on=xe.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},xe.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},xe.prototype.off=xe.prototype.removeListener=xe.prototype.removeAllListeners=xe.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},xe.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t)}return this},xe.prototype.emitReserved=xe.prototype.emit,xe.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},xe.prototype.hasListeners=function(e){return!!this.listeners(e).length};var Ce="undefined"!==typeof self?self:"undefined"!==typeof window?window:Function("return this")();function ke(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})}var Ee=Ce.setTimeout,Re=Ce.clearTimeout;function Oe(e,t){t.useNativeTimers?(e.setTimeoutFn=Ee.bind(Ce),e.clearTimeoutFn=Re.bind(Ce)):(e.setTimeoutFn=Ce.setTimeout.bind(Ce),e.clearTimeoutFn=Ce.clearTimeout.bind(Ce))}var Pe=1.33;var Te,Me=function(e){te(n,e);var t=ie(n);function n(e,r,i){var o;return G(this,n),(o=t.call(this,e)).description=r,o.context=i,o.type="TransportError",o}return J(n)}(le(Error)),Le=function(e){te(n,e);var t=ie(n);function n(e){var r;return G(this,n),(r=t.call(this)).writable=!1,Oe(Q(r),e),r.opts=e,r.query=e.query,r.socket=e.socket,r}return J(n,[{key:"onError",value:function(e,t,r){return oe(ne(n.prototype),"emitReserved",this).call(this,"error",new Me(e,t,r)),this}},{key:"open",value:function(){return this.readyState="opening",this.doOpen(),this}},{key:"close",value:function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}},{key:"send",value:function(e){"open"===this.readyState&&this.write(e)}},{key:"onOpen",value:function(){this.readyState="open",this.writable=!0,oe(ne(n.prototype),"emitReserved",this).call(this,"open")}},{key:"onData",value:function(e){var t=we(e,this.socket.binaryType);this.onPacket(t)}},{key:"onPacket",value:function(e){oe(ne(n.prototype),"emitReserved",this).call(this,"packet",e)}},{key:"onClose",value:function(e){this.readyState="closed",oe(ne(n.prototype),"emitReserved",this).call(this,"close",e)}},{key:"pause",value:function(e){}}]),n}(xe),Ze="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Ie=64,De={},je=0,Ae=0;function Ne(e){var t="";do{t=Ze[e%Ie]+t,e=Math.floor(e/Ie)}while(e>0);return t}function Fe(){var e=Ne(+new Date);return e!==Te?(je=0,Te=e):e+"."+Ne(je++)}for(;Ae<Ie;Ae++)De[Ze[Ae]]=Ae;function ze(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}var Be=!1;try{Be="undefined"!==typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(pW){}var He=Be;function We(e){var t=e.xdomain;try{if("undefined"!==typeof XMLHttpRequest&&(!t||He))return new XMLHttpRequest}catch(Mo){}if(!t)try{return new(Ce[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(Mo){}}function Ue(){}var Ve=null!=new We({xdomain:!1}).responseType,qe=function(e){te(n,e);var t=ie(n);function n(e){var r;if(G(this,n),(r=t.call(this,e)).polling=!1,"undefined"!==typeof location){var i="https:"===location.protocol,o=location.port;o||(o=i?"443":"80"),r.xd="undefined"!==typeof location&&e.hostname!==location.hostname||o!==e.port,r.xs=e.secure!==i}var a=e&&e.forceBase64;return r.supportsBinary=Ve&&!a,r}return J(n,[{key:"name",get:function(){return"polling"}},{key:"doOpen",value:function(){this.poll()}},{key:"pause",value:function(e){var t=this;this.readyState="pausing";var n=function(){t.readyState="paused",e()};if(this.polling||!this.writable){var r=0;this.polling&&(r++,this.once("pollComplete",(function(){--r||n()}))),this.writable||(r++,this.once("drain",(function(){--r||n()})))}else n()}},{key:"poll",value:function(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}},{key:"onData",value:function(e){var t=this;(function(e,t){for(var n=e.split(Se),r=[],i=0;i<n.length;i++){var o=we(n[i],t);if(r.push(o),"error"===o.type)break}return r})(e,this.socket.binaryType).forEach((function(e){if("opening"===t.readyState&&"open"===e.type&&t.onOpen(),"close"===e.type)return t.onClose({description:"transport closed by the server"}),!1;t.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}},{key:"doClose",value:function(){var e=this,t=function(){e.write([{type:"close"}])};"open"===this.readyState?t():this.once("open",t)}},{key:"write",value:function(e){var t=this;this.writable=!1,function(e,t){var n=e.length,r=new Array(n),i=0;e.forEach((function(e,o){pe(e,!1,(function(e){r[o]=e,++i===n&&t(r.join(Se))}))}))}(e,(function(e){t.doWrite(e,(function(){t.writable=!0,t.emitReserved("drain")}))}))}},{key:"uri",value:function(){var e=this.query||{},t=this.opts.secure?"https":"http",n="";!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=Fe()),this.supportsBinary||e.sid||(e.b64=1),this.opts.port&&("https"===t&&443!==Number(this.opts.port)||"http"===t&&80!==Number(this.opts.port))&&(n=":"+this.opts.port);var r=ze(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+(r.length?"?"+r:"")}},{key:"request",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new Ke(this.uri(),e)}},{key:"doWrite",value:function(e,t){var n=this,r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(function(e,t){n.onError("xhr post error",e,t)}))}},{key:"doPoll",value:function(){var e=this,t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(function(t,n){e.onError("xhr poll error",t,n)})),this.pollXhr=t}}]),n}(Le),Ke=function(e){te(n,e);var t=ie(n);function n(e,r){var i;return G(this,n),Oe(Q(i=t.call(this)),r),i.opts=r,i.method=r.method||"GET",i.uri=e,i.async=!1!==r.async,i.data=void 0!==r.data?r.data:null,i.create(),i}return J(n,[{key:"create",value:function(){var e=this,t=ke(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;var r=this.xhr=new We(t);try{r.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders)for(var i in r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}catch(Mo){}if("POST"===this.method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(Mo){}try{r.setRequestHeader("Accept","*/*")}catch(Mo){}"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=function(){4===r.readyState&&(200===r.status||1223===r.status?e.onLoad():e.setTimeoutFn((function(){e.onError("number"===typeof r.status?r.status:0)}),0))},r.send(this.data)}catch(Mo){return void this.setTimeoutFn((function(){e.onError(Mo)}),0)}"undefined"!==typeof document&&(this.index=n.requestsCount++,n.requests[this.index]=this)}},{key:"onError",value:function(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}},{key:"cleanup",value:function(e){if("undefined"!==typeof this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=Ue,e)try{this.xhr.abort()}catch(Mo){}"undefined"!==typeof document&&delete n.requests[this.index],this.xhr=null}}},{key:"onLoad",value:function(){var e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}},{key:"abort",value:function(){this.cleanup()}}]),n}(xe);if(Ke.requestsCount=0,Ke.requests={},"undefined"!==typeof document)if("function"===typeof attachEvent)attachEvent("onunload",Ye);else if("function"===typeof addEventListener){addEventListener("onpagehide"in Ce?"pagehide":"unload",Ye,!1)}function Ye(){for(var e in Ke.requests)Ke.requests.hasOwnProperty(e)&&Ke.requests[e].abort()}var Ge="function"===typeof Promise&&"function"===typeof Promise.resolve?function(e){return Promise.resolve().then(e)}:function(e,t){return t(e,0)},Xe=Ce.WebSocket||Ce.MozWebSocket,$e="undefined"!==typeof navigator&&"string"===typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),Je=function(e){te(n,e);var t=ie(n);function n(e){var r;return G(this,n),(r=t.call(this,e)).supportsBinary=!e.forceBase64,r}return J(n,[{key:"name",get:function(){return"websocket"}},{key:"doOpen",value:function(){if(this.check()){var e=this.uri(),t=this.opts.protocols,n=$e?{}:ke(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=$e?new Xe(e,t,n):t?new Xe(e,t):new Xe(e)}catch(pW){return this.emitReserved("error",pW)}this.ws.binaryType=this.socket.binaryType||"arraybuffer",this.addEventListeners()}}},{key:"addEventListeners",value:function(){var e=this;this.ws.onopen=function(){e.opts.autoUnref&&e.ws._socket.unref(),e.onOpen()},this.ws.onclose=function(t){return e.onClose({description:"websocket connection closed",context:t})},this.ws.onmessage=function(t){return e.onData(t.data)},this.ws.onerror=function(t){return e.onError("websocket error",t)}}},{key:"write",value:function(e){var t=this;this.writable=!1;for(var n=function(){var n=e[r],i=r===e.length-1;pe(n,t.supportsBinary,(function(e){try{t.ws.send(e)}catch(Mo){}i&&Ge((function(){t.writable=!0,t.emitReserved("drain")}),t.setTimeoutFn)}))},r=0;r<e.length;r++)n()}},{key:"doClose",value:function(){"undefined"!==typeof this.ws&&(this.ws.close(),this.ws=null)}},{key:"uri",value:function(){var e=this.query||{},t=this.opts.secure?"wss":"ws",n="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(n=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=Fe()),this.supportsBinary||(e.b64=1);var r=ze(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+(r.length?"?"+r:"")}},{key:"check",value:function(){return!!Xe}}]),n}(Le),Qe={websocket:Je,polling:qe},et=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,tt=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function nt(e){var t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));for(var i=et.exec(e||""),o={},a=14;a--;)o[tt[a]]=i[a]||"";return-1!=n&&-1!=r&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=function(e,t){var n=/\/{2,9}/g,r=t.replace(n,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||r.splice(0,1);"/"==t.slice(-1)&&r.splice(r.length-1,1);return r}(0,o.path),o.queryKey=function(e,t){var n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,r){t&&(n[t]=r)})),n}(0,o.query),o}var rt=function(e){te(n,e);var t=ie(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return G(this,n),(r=t.call(this)).writeBuffer=[],e&&"object"===typeof e&&(i=e,e=null),e?(e=nt(e),i.hostname=e.host,i.secure="https"===e.protocol||"wss"===e.protocol,i.port=e.port,e.query&&(i.query=e.query)):i.host&&(i.hostname=nt(i.host).host),Oe(Q(r),i),r.secure=null!=i.secure?i.secure:"undefined"!==typeof location&&"https:"===location.protocol,i.hostname&&!i.port&&(i.port=r.secure?"443":"80"),r.hostname=i.hostname||("undefined"!==typeof location?location.hostname:"localhost"),r.port=i.port||("undefined"!==typeof location&&location.port?location.port:r.secure?"443":"80"),r.transports=i.transports||["polling","websocket"],r.writeBuffer=[],r.prevBufferLen=0,r.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},i),r.opts.path=r.opts.path.replace(/\/$/,"")+(r.opts.addTrailingSlash?"/":""),"string"===typeof r.opts.query&&(r.opts.query=function(e){for(var t={},n=e.split("&"),r=0,i=n.length;r<i;r++){var o=n[r].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}(r.opts.query)),r.id=null,r.upgrades=null,r.pingInterval=null,r.pingTimeout=null,r.pingTimeoutTimer=null,"function"===typeof addEventListener&&(r.opts.closeOnBeforeunload&&(r.beforeunloadEventListener=function(){r.transport&&(r.transport.removeAllListeners(),r.transport.close())},addEventListener("beforeunload",r.beforeunloadEventListener,!1)),"localhost"!==r.hostname&&(r.offlineEventListener=function(){r.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",r.offlineEventListener,!1))),r.open(),r}return J(n,[{key:"createTransport",value:function(e){var t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);var n=Object.assign({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new Qe[e](n)}},{key:"open",value:function(){var e,t=this;if(this.opts.rememberUpgrade&&n.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((function(){t.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(Mo){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}},{key:"setTransport",value:function(e){var t=this;this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(function(e){return t.onClose("transport close",e)}))}},{key:"probe",value:function(e){var t=this,r=this.createTransport(e),i=!1;n.priorWebsocketSuccess=!1;var o=function(){i||(r.send([{type:"ping",data:"probe"}]),r.once("packet",(function(e){if(!i)if("pong"===e.type&&"probe"===e.data){if(t.upgrading=!0,t.emitReserved("upgrading",r),!r)return;n.priorWebsocketSuccess="websocket"===r.name,t.transport.pause((function(){i||"closed"!==t.readyState&&(d(),t.setTransport(r),r.send([{type:"upgrade"}]),t.emitReserved("upgrade",r),r=null,t.upgrading=!1,t.flush())}))}else{var o=new Error("probe error");o.transport=r.name,t.emitReserved("upgradeError",o)}})))};function a(){i||(i=!0,d(),r.close(),r=null)}var l=function(e){var n=new Error("probe error: "+e);n.transport=r.name,a(),t.emitReserved("upgradeError",n)};function s(){l("transport closed")}function c(){l("socket closed")}function u(e){r&&e.name!==r.name&&a()}var d=function(){r.removeListener("open",o),r.removeListener("error",l),r.removeListener("close",s),t.off("close",c),t.off("upgrading",u)};r.once("open",o),r.once("error",l),r.once("close",s),this.once("close",c),this.once("upgrading",u),r.open()}},{key:"onOpen",value:function(){if(this.readyState="open",n.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade)for(var e=0,t=this.upgrades.length;e<t;e++)this.probe(this.upgrades[e])}},{key:"onPacket",value:function(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":var t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}},{key:"onHandshake",value:function(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}},{key:"resetPingTimeout",value:function(){var e=this;this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn((function(){e.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}},{key:"onDrain",value:function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}},{key:"flush",value:function(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){var e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}},{key:"getWritablePackets",value:function(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;for(var e,t=1,n=0;n<this.writeBuffer.length;n++){var r=this.writeBuffer[n].data;if(r&&(t+="string"===typeof(e=r)?function(e){for(var t=0,n=0,r=0,i=e.length;r<i;r++)(t=e.charCodeAt(r))<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}(e):Math.ceil((e.byteLength||e.size)*Pe)),n>0&&t>this.maxPayload)return this.writeBuffer.slice(0,n);t+=2}return this.writeBuffer}},{key:"write",value:function(e,t,n){return this.sendPacket("message",e,t,n),this}},{key:"send",value:function(e,t,n){return this.sendPacket("message",e,t,n),this}},{key:"sendPacket",value:function(e,t,n,r){if("function"===typeof t&&(r=t,t=void 0),"function"===typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var i={type:e,data:t,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}}},{key:"close",value:function(){var e=this,t=function(){e.onClose("forced close"),e.transport.close()},n=function n(){e.off("upgrade",n),e.off("upgradeError",n),t()},r=function(){e.once("upgrade",n),e.once("upgradeError",n)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(function(){e.upgrading?r():t()})):this.upgrading?r():t()),this}},{key:"onError",value:function(e){n.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}},{key:"onClose",value:function(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"===typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}},{key:"filterUpgrades",value:function(e){for(var t=[],n=0,r=e.length;n<r;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}]),n}(xe);rt.protocol=4;rt.protocol;var it=n(181);function ot(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,it.Z)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}var at="function"===typeof ArrayBuffer,lt=function(e){return"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer},st=Object.prototype.toString,ct="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===st.call(Blob),ut="function"===typeof File||"undefined"!==typeof File&&"[object FileConstructor]"===st.call(File);function dt(e){return at&&(e instanceof ArrayBuffer||lt(e))||ct&&e instanceof Blob||ut&&e instanceof File}function ft(e,t){if(!e||"object"!==typeof e)return!1;if(Array.isArray(e)){for(var n=0,r=e.length;n<r;n++)if(ft(e[n]))return!0;return!1}if(dt(e))return!0;if(e.toJSON&&"function"===typeof e.toJSON&&1===arguments.length)return ft(e.toJSON(),!0);for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&ft(e[i]))return!0;return!1}function ht(e){var t=[],n=e.data,r=e;return r.data=pt(n,t),r.attachments=t.length,{packet:r,buffers:t}}function pt(e,t){if(!e)return e;if(dt(e)){var n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){for(var r=new Array(e.length),i=0;i<e.length;i++)r[i]=pt(e[i],t);return r}if("object"===typeof e&&!(e instanceof Date)){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(o[a]=pt(e[a],t));return o}return e}function vt(e,t){return e.data=mt(e.data,t),delete e.attachments,e}function mt(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"===typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(var n=0;n<e.length;n++)e[n]=mt(e[n],t);else if("object"===typeof e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=mt(e[r],t));return e}var gt,yt=5;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(gt||(gt={}));var bt=function(){function e(t){G(this,e),this.replacer=t}return J(e,[{key:"encode",value:function(e){return e.type!==gt.EVENT&&e.type!==gt.ACK||!ft(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===gt.EVENT?gt.BINARY_EVENT:gt.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}},{key:"encodeAsString",value:function(e){var t=""+e.type;return e.type!==gt.BINARY_EVENT&&e.type!==gt.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}},{key:"encodeAsBinary",value:function(e){var t=ht(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}}]),e}(),_t=function(e){te(n,e);var t=ie(n);function n(e){var r;return G(this,n),(r=t.call(this)).reviver=e,r}return J(n,[{key:"add",value:function(e){var t;if("string"===typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");var r=(t=this.decodeString(e)).type===gt.BINARY_EVENT;r||t.type===gt.BINARY_ACK?(t.type=r?gt.EVENT:gt.ACK,this.reconstructor=new wt(t),0===t.attachments&&oe(ne(n.prototype),"emitReserved",this).call(this,"decoded",t)):oe(ne(n.prototype),"emitReserved",this).call(this,"decoded",t)}else{if(!dt(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(t=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,oe(ne(n.prototype),"emitReserved",this).call(this,"decoded",t))}}},{key:"decodeString",value:function(e){var t=0,r={type:Number(e.charAt(0))};if(void 0===gt[r.type])throw new Error("unknown packet type "+r.type);if(r.type===gt.BINARY_EVENT||r.type===gt.BINARY_ACK){for(var i=t+1;"-"!==e.charAt(++t)&&t!=e.length;);var o=e.substring(i,t);if(o!=Number(o)||"-"!==e.charAt(t))throw new Error("Illegal attachments");r.attachments=Number(o)}if("/"===e.charAt(t+1)){for(var a=t+1;++t;){if(","===e.charAt(t))break;if(t===e.length)break}r.nsp=e.substring(a,t)}else r.nsp="/";var l=e.charAt(t+1);if(""!==l&&Number(l)==l){for(var s=t+1;++t;){var c=e.charAt(t);if(null==c||Number(c)!=c){--t;break}if(t===e.length)break}r.id=Number(e.substring(s,t+1))}if(e.charAt(++t)){var u=this.tryParse(e.substr(t));if(!n.isPayloadValid(r.type,u))throw new Error("invalid payload");r.data=u}return r}},{key:"tryParse",value:function(e){try{return JSON.parse(e,this.reviver)}catch(Mo){return!1}}},{key:"destroy",value:function(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}],[{key:"isPayloadValid",value:function(e,t){switch(e){case gt.CONNECT:return"object"===typeof t;case gt.DISCONNECT:return void 0===t;case gt.CONNECT_ERROR:return"string"===typeof t||"object"===typeof t;case gt.EVENT:case gt.BINARY_EVENT:return Array.isArray(t)&&t.length>0;case gt.ACK:case gt.BINARY_ACK:return Array.isArray(t)}}}]),n}(xe),wt=function(){function e(t){G(this,e),this.packet=t,this.buffers=[],this.reconPack=t}return J(e,[{key:"takeBinaryData",value:function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=vt(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}},{key:"finishedReconstruction",value:function(){this.reconPack=null,this.buffers=[]}}]),e}();function St(e,t,n){return e.on(t,n),function(){e.off(t,n)}}var xt=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Ct=function(e){te(n,e);var t=ie(n);function n(e,r,i){var o;return G(this,n),(o=t.call(this)).connected=!1,o.recovered=!1,o.receiveBuffer=[],o.sendBuffer=[],o._queue=[],o._queueSeq=0,o.ids=0,o.acks={},o.flags={},o.io=e,o.nsp=r,i&&i.auth&&(o.auth=i.auth),o._opts=Object.assign({},i),o.io._autoConnect&&o.open(),o}return J(n,[{key:"disconnected",get:function(){return!this.connected}},{key:"subEvents",value:function(){if(!this.subs){var e=this.io;this.subs=[St(e,"open",this.onopen.bind(this)),St(e,"packet",this.onpacket.bind(this)),St(e,"error",this.onerror.bind(this)),St(e,"close",this.onclose.bind(this))]}}},{key:"active",get:function(){return!!this.subs}},{key:"connect",value:function(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}},{key:"open",value:function(){return this.connect()}},{key:"send",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.unshift("message"),this.emit.apply(this,t),this}},{key:"emit",value:function(e){if(xt.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(n.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;var i={type:gt.EVENT,data:n,options:{}};if(i.options.compress=!1!==this.flags.compress,"function"===typeof n[n.length-1]){var o=this.ids++,a=n.pop();this._registerAckCallback(o,a),i.id=o}var l=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!l||!this.connected)||(this.connected?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}},{key:"_registerAckCallback",value:function(e,t){var n,r=this,i=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0!==i){var o=this.io.setTimeoutFn((function(){delete r.acks[e];for(var n=0;n<r.sendBuffer.length;n++)r.sendBuffer[n].id===e&&r.sendBuffer.splice(n,1);t.call(r,new Error("operation has timed out"))}),i);this.acks[e]=function(){r.io.clearTimeoutFn(o);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];t.apply(r,[null].concat(n))}}else this.acks[e]=t}},{key:"emitWithAck",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise((function(n,i){r.push((function(e,t){return o?e?i(e):n(t):n(e)})),t.emit.apply(t,[e].concat(r))}))}},{key:"_addToQueue",value:function(e){var t,n=this;"function"===typeof e[e.length-1]&&(t=e.pop());var r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((function(e){if(r===n._queue[0]){if(null!==e)r.tryCount>n._opts.retries&&(n._queue.shift(),t&&t(e));else if(n._queue.shift(),t){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];t.apply(void 0,[null].concat(o))}return r.pending=!1,n._drainQueue()}})),this._queue.push(r),this._drainQueue()}},{key:"_drainQueue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.connected&&0!==this._queue.length){var t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}}},{key:"packet",value:function(e){e.nsp=this.nsp,this.io._packet(e)}},{key:"onopen",value:function(){var e=this;"function"==typeof this.auth?this.auth((function(t){e._sendConnectPacket(t)})):this._sendConnectPacket(this.auth)}},{key:"_sendConnectPacket",value:function(e){this.packet({type:gt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}},{key:"onerror",value:function(e){this.connected||this.emitReserved("connect_error",e)}},{key:"onclose",value:function(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}},{key:"onpacket",value:function(e){if(e.nsp===this.nsp)switch(e.type){case gt.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case gt.EVENT:case gt.BINARY_EVENT:this.onevent(e);break;case gt.ACK:case gt.BINARY_ACK:this.onack(e);break;case gt.DISCONNECT:this.ondisconnect();break;case gt.CONNECT_ERROR:this.destroy();var t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}},{key:"onevent",value:function(e){var t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}},{key:"emitEvent",value:function(e){if(this._anyListeners&&this._anyListeners.length){var t,r=ot(this._anyListeners.slice());try{for(r.s();!(t=r.n()).done;){t.value.apply(this,e)}}catch(pW){r.e(pW)}finally{r.f()}}oe(ne(n.prototype),"emit",this).apply(this,e),this._pid&&e.length&&"string"===typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}},{key:"ack",value:function(e){var t=this,n=!1;return function(){if(!n){n=!0;for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];t.packet({type:gt.ACK,id:e,data:i})}}}},{key:"onack",value:function(e){var t=this.acks[e.id];"function"===typeof t&&(t.apply(this,e.data),delete this.acks[e.id])}},{key:"onconnect",value:function(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}},{key:"emitBuffered",value:function(){var e=this;this.receiveBuffer.forEach((function(t){return e.emitEvent(t)})),this.receiveBuffer=[],this.sendBuffer.forEach((function(t){e.notifyOutgoingListeners(t),e.packet(t)})),this.sendBuffer=[]}},{key:"ondisconnect",value:function(){this.destroy(),this.onclose("io server disconnect")}},{key:"destroy",value:function(){this.subs&&(this.subs.forEach((function(e){return e()})),this.subs=void 0),this.io._destroy(this)}},{key:"disconnect",value:function(){return this.connected&&this.packet({type:gt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}},{key:"close",value:function(){return this.disconnect()}},{key:"compress",value:function(e){return this.flags.compress=e,this}},{key:"volatile",get:function(){return this.flags.volatile=!0,this}},{key:"timeout",value:function(e){return this.flags.timeout=e,this}},{key:"onAny",value:function(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}},{key:"prependAny",value:function(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}},{key:"offAny",value:function(e){if(!this._anyListeners)return this;if(e){for(var t=this._anyListeners,n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}},{key:"listenersAny",value:function(){return this._anyListeners||[]}},{key:"onAnyOutgoing",value:function(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}},{key:"prependAnyOutgoing",value:function(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}},{key:"offAnyOutgoing",value:function(e){if(!this._anyOutgoingListeners)return this;if(e){for(var t=this._anyOutgoingListeners,n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}},{key:"listenersAnyOutgoing",value:function(){return this._anyOutgoingListeners||[]}},{key:"notifyOutgoingListeners",value:function(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){var t,n=ot(this._anyOutgoingListeners.slice());try{for(n.s();!(t=n.n()).done;){t.value.apply(this,e.data)}}catch(pW){n.e(pW)}finally{n.f()}}}}]),n}(xe);function kt(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}kt.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},kt.prototype.reset=function(){this.attempts=0},kt.prototype.setMin=function(e){this.ms=e},kt.prototype.setMax=function(e){this.max=e},kt.prototype.setJitter=function(e){this.jitter=e};var Et=function(t){te(r,t);var n=ie(r);function r(t,i){var o,a;G(this,r),(o=n.call(this)).nsps={},o.subs=[],t&&"object"===typeof t&&(i=t,t=void 0),(i=i||{}).path=i.path||"/socket.io",o.opts=i,Oe(Q(o),i),o.reconnection(!1!==i.reconnection),o.reconnectionAttempts(i.reconnectionAttempts||1/0),o.reconnectionDelay(i.reconnectionDelay||1e3),o.reconnectionDelayMax(i.reconnectionDelayMax||5e3),o.randomizationFactor(null!==(a=i.randomizationFactor)&&void 0!==a?a:.5),o.backoff=new kt({min:o.reconnectionDelay(),max:o.reconnectionDelayMax(),jitter:o.randomizationFactor()}),o.timeout(null==i.timeout?2e4:i.timeout),o._readyState="closed",o.uri=t;var l=i.parser||e;return o.encoder=new l.Encoder,o.decoder=new l.Decoder,o._autoConnect=!1!==i.autoConnect,o._autoConnect&&o.open(),o}return J(r,[{key:"reconnection",value:function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}},{key:"reconnectionAttempts",value:function(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}},{key:"reconnectionDelay",value:function(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}},{key:"randomizationFactor",value:function(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}},{key:"reconnectionDelayMax",value:function(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}},{key:"timeout",value:function(e){return arguments.length?(this._timeout=e,this):this._timeout}},{key:"maybeReconnectOnOpen",value:function(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}},{key:"open",value:function(e){var t=this;if(~this._readyState.indexOf("open"))return this;this.engine=new rt(this.uri,this.opts);var n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;var i=St(n,"open",(function(){r.onopen(),e&&e()})),o=St(n,"error",(function(n){r.cleanup(),r._readyState="closed",t.emitReserved("error",n),e?e(n):r.maybeReconnectOnOpen()}));if(!1!==this._timeout){var a=this._timeout;0===a&&i();var l=this.setTimeoutFn((function(){i(),n.close(),n.emit("error",new Error("timeout"))}),a);this.opts.autoUnref&&l.unref(),this.subs.push((function(){clearTimeout(l)}))}return this.subs.push(i),this.subs.push(o),this}},{key:"connect",value:function(e){return this.open(e)}},{key:"onopen",value:function(){this.cleanup(),this._readyState="open",this.emitReserved("open");var e=this.engine;this.subs.push(St(e,"ping",this.onping.bind(this)),St(e,"data",this.ondata.bind(this)),St(e,"error",this.onerror.bind(this)),St(e,"close",this.onclose.bind(this)),St(this.decoder,"decoded",this.ondecoded.bind(this)))}},{key:"onping",value:function(){this.emitReserved("ping")}},{key:"ondata",value:function(e){try{this.decoder.add(e)}catch(Mo){this.onclose("parse error",Mo)}}},{key:"ondecoded",value:function(e){var t=this;Ge((function(){t.emitReserved("packet",e)}),this.setTimeoutFn)}},{key:"onerror",value:function(e){this.emitReserved("error",e)}},{key:"socket",value:function(e,t){var n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new Ct(this,e,t),this.nsps[e]=n),n}},{key:"_destroy",value:function(e){for(var t=0,n=Object.keys(this.nsps);t<n.length;t++){var r=n[t];if(this.nsps[r].active)return}this._close()}},{key:"_packet",value:function(e){for(var t=this.encoder.encode(e),n=0;n<t.length;n++)this.engine.write(t[n],e.options)}},{key:"cleanup",value:function(){this.subs.forEach((function(e){return e()})),this.subs.length=0,this.decoder.destroy()}},{key:"_close",value:function(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}},{key:"disconnect",value:function(){return this._close()}},{key:"onclose",value:function(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}},{key:"reconnect",value:function(){var e=this;if(this._reconnecting||this.skipReconnect)return this;var t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{var n=this.backoff.duration();this._reconnecting=!0;var r=this.setTimeoutFn((function(){t.skipReconnect||(e.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open((function(n){n?(t._reconnecting=!1,t.reconnect(),e.emitReserved("reconnect_error",n)):t.onreconnect()})))}),n);this.opts.autoUnref&&r.unref(),this.subs.push((function(){clearTimeout(r)}))}}},{key:"onreconnect",value:function(){var e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}]),r}(xe),Rt={};function Ot(e,t){"object"===typeof e&&(t=e,e=void 0);var n,r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=e;n=n||"undefined"!==typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"===typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e="undefined"!==typeof n?n.protocol+"//"+e:"https://"+e),r=nt(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";var i=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+t,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}(e,(t=t||{}).path||"/socket.io"),i=r.source,o=r.id,a=r.path,l=Rt[o]&&a in Rt[o].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||l?n=new Et(i,t):(Rt[o]||(Rt[o]=new Et(i,t)),n=Rt[o]),r.query&&!t.query&&(t.query=r.queryKey),n.socket(r.path,t)}Object.assign(Ot,{Manager:Et,Socket:Ct,io:Ot,connect:Ot});var Pt=n(7462),Tt=n(5735),Mt=n(4419),Lt=n(2065),Zt=n(4923),It=n(1046),Dt=n(2071),jt=n(9683),At=n(3031);function Nt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ft(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ee(e,t)}var zt=t.createContext(null);function Bt(e,n){var r=Object.create(null);return e&&t.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return n&&(0,t.isValidElement)(e)?n(e):e}(e)})),r}function Ht(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Wt(e,n,r){var i=Bt(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var l={};for(var s in t){if(i[s])for(r=0;r<i[s].length;r++){var c=i[s][r];l[i[s][r]]=n(c)}l[s]=n(s)}for(r=0;r<o.length;r++)l[o[r]]=n(o[r]);return l}(n,i);return Object.keys(o).forEach((function(a){var l=o[a];if((0,t.isValidElement)(l)){var s=a in n,c=a in i,u=n[a],d=(0,t.isValidElement)(u)&&!u.props.in;!c||s&&!d?c||!s||d?c&&s&&(0,t.isValidElement)(u)&&(o[a]=(0,t.cloneElement)(l,{onExited:r.bind(null,l),in:u.props.in,exit:Ht(l,"exit",e),enter:Ht(l,"enter",e)})):o[a]=(0,t.cloneElement)(l,{in:!1}):o[a]=(0,t.cloneElement)(l,{onExited:r.bind(null,l),in:!0,exit:Ht(l,"exit",e),enter:Ht(l,"enter",e)})}})),o}var Ut=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Vt=function(e){function n(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(Q(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}Ft(n,e);var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(e,n){var r,i,o=n.children,a=n.handleExited;return{children:n.firstRender?(r=e,i=a,Bt(r.children,(function(e){return(0,t.cloneElement)(e,{onExited:i.bind(null,e),in:!0,appear:Ht(e,"appear",r),enter:Ht(e,"enter",r),exit:Ht(e,"exit",r)})}))):Wt(e,o,a),firstRender:!1}},r.handleExited=function(e,t){var n=Bt(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,Pt.Z)({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var e=this.props,n=e.component,r=e.childFactory,i=(0,h.Z)(e,["component","childFactory"]),o=this.state.contextValue,a=Ut(this.state.children).map(r);return delete i.appear,delete i.enter,delete i.exit,null===n?t.createElement(zt.Provider,{value:o},a):t.createElement(zt.Provider,{value:o},t.createElement(n,i,a))},n}(t.Component);Vt.propTypes={},Vt.defaultProps={component:"div",childFactory:function(e){return e}};var qt=Vt,Kt=n(3361),Yt=n(5011),Gt=(n(2110),n(5438)),Xt=n(9140),$t=n(2561),Jt=(0,Yt.w)((function(e,n){var r=e.styles,i=(0,Xt.O)([r],void 0,(0,t.useContext)(Yt.T)),o=(0,t.useRef)();return(0,$t.j)((function(){var e=n.key+"-global",t=new n.sheet.constructor({key:e,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy}),r=!1,a=document.querySelector('style[data-emotion="'+e+" "+i.name+'"]');return n.sheet.tags.length&&(t.before=n.sheet.tags[0]),null!==a&&(r=!0,a.setAttribute("data-emotion",e),t.hydrate([a])),o.current=[t,r],function(){t.flush()}}),[n]),(0,$t.j)((function(){var e=o.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==i.next&&(0,Gt.My)(n,i.next,!0),t.tags.length){var r=t.tags[t.tags.length-1].nextElementSibling;t.before=r,t.flush()}n.insert("",i,t,!1)}}),[n,i.name]),null}));function Qt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,Xt.O)(t)}var en=function(){var e=Qt.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};var tn=n(184);var nn=function(e){var n=e.className,r=e.classes,i=e.pulsate,o=void 0!==i&&i,a=e.rippleX,l=e.rippleY,s=e.rippleSize,c=e.in,d=e.onExited,f=e.timeout,h=t.useState(!1),p=(0,u.Z)(h,2),v=p[0],g=p[1],y=(0,m.Z)(n,r.ripple,r.rippleVisible,o&&r.ripplePulsate),b={width:s,height:s,top:-s/2+l,left:-s/2+a},_=(0,m.Z)(r.child,v&&r.childLeaving,o&&r.childPulsate);return c||v||g(!0),t.useEffect((function(){if(!c&&null!=d){var e=setTimeout(d,f);return function(){clearTimeout(e)}}}),[d,c,f]),(0,tn.jsx)("span",{className:y,style:b,children:(0,tn.jsx)("span",{className:_})})},rn=n(5878);var on,an,ln,sn,cn,un,dn,fn,hn=(0,rn.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),pn=["center","classes","className"],vn=80,mn=en(cn||(cn=on||(on=Nt(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"])))),gn=en(un||(un=an||(an=Nt(["\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n"])))),yn=en(dn||(dn=ln||(ln=Nt(["\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"])))),bn=(0,Zt.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),_n=(0,Zt.ZP)(nn,{name:"MuiTouchRipple",slot:"Ripple"})(fn||(fn=sn||(sn=Nt(["\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"]))),hn.rippleVisible,mn,550,(function(e){return e.theme.transitions.easing.easeInOut}),hn.ripplePulsate,(function(e){return e.theme.transitions.duration.shorter}),hn.child,hn.childLeaving,gn,550,(function(e){return e.theme.transitions.easing.easeInOut}),hn.childPulsate,yn,(function(e){return e.theme.transitions.easing.easeInOut})),wn=t.forwardRef((function(e,n){var r=(0,It.Z)({props:e,name:"MuiTouchRipple"}),i=r.center,o=void 0!==i&&i,a=r.classes,l=void 0===a?{}:a,s=r.className,c=(0,h.Z)(r,pn),d=t.useState([]),f=(0,u.Z)(d,2),p=f[0],g=f[1],y=t.useRef(0),b=t.useRef(null);t.useEffect((function(){b.current&&(b.current(),b.current=null)}),[p]);var _=t.useRef(!1),w=t.useRef(null),S=t.useRef(null),x=t.useRef(null);t.useEffect((function(){return function(){clearTimeout(w.current)}}),[]);var C=t.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,o=e.cb;g((function(e){return[].concat((0,v.Z)(e),[(0,tn.jsx)(_n,{classes:{ripple:(0,m.Z)(l.ripple,hn.ripple),rippleVisible:(0,m.Z)(l.rippleVisible,hn.rippleVisible),ripplePulsate:(0,m.Z)(l.ripplePulsate,hn.ripplePulsate),child:(0,m.Z)(l.child,hn.child),childLeaving:(0,m.Z)(l.childLeaving,hn.childLeaving),childPulsate:(0,m.Z)(l.childPulsate,hn.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},y.current)])})),y.current+=1,b.current=o}),[l]),k=t.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=t.pulsate,i=void 0!==r&&r,a=t.center,l=void 0===a?o||t.pulsate:a,s=t.fakeElement,c=void 0!==s&&s;if("mousedown"===(null==e?void 0:e.type)&&_.current)_.current=!1;else{"touchstart"===(null==e?void 0:e.type)&&(_.current=!0);var u,d,f,h=c?null:x.current,p=h?h.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(l||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(p.width/2),d=Math.round(p.height/2);else{var v=e.touches&&e.touches.length>0?e.touches[0]:e,m=v.clientX,g=v.clientY;u=Math.round(m-p.left),d=Math.round(g-p.top)}if(l)(f=Math.sqrt((2*Math.pow(p.width,2)+Math.pow(p.height,2))/3))%2===0&&(f+=1);else{var y=2*Math.max(Math.abs((h?h.clientWidth:0)-u),u)+2,b=2*Math.max(Math.abs((h?h.clientHeight:0)-d),d)+2;f=Math.sqrt(Math.pow(y,2)+Math.pow(b,2))}null!=e&&e.touches?null===S.current&&(S.current=function(){C({pulsate:i,rippleX:u,rippleY:d,rippleSize:f,cb:n})},w.current=setTimeout((function(){S.current&&(S.current(),S.current=null)}),vn)):C({pulsate:i,rippleX:u,rippleY:d,rippleSize:f,cb:n})}}),[o,C]),E=t.useCallback((function(){k({},{pulsate:!0})}),[k]),R=t.useCallback((function(e,t){if(clearTimeout(w.current),"touchend"===(null==e?void 0:e.type)&&S.current)return S.current(),S.current=null,void(w.current=setTimeout((function(){R(e,t)})));S.current=null,g((function(e){return e.length>0?e.slice(1):e})),b.current=t}),[]);return t.useImperativeHandle(n,(function(){return{pulsate:E,start:k,stop:R}}),[E,k,R]),(0,tn.jsx)(bn,(0,Pt.Z)({className:(0,m.Z)(hn.root,l.root,s),ref:x},c,{children:(0,tn.jsx)(qt,{component:null,exit:!0,children:p})}))})),Sn=wn,xn=n(1217);function Cn(e){return(0,xn.Z)("MuiButtonBase",e)}var kn,En=(0,rn.Z)("MuiButtonBase",["root","disabled","focusVisible"]),Rn=["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"],On=(0,Zt.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:function(e,t){return t.root}})((kn={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"}},(0,o.Z)(kn,"&.".concat(En.disabled),{pointerEvents:"none",cursor:"default"}),(0,o.Z)(kn,"@media print",{colorAdjust:"exact"}),kn)),Pn=t.forwardRef((function(e,n){var r=(0,It.Z)({props:e,name:"MuiButtonBase"}),i=r.action,o=r.centerRipple,a=void 0!==o&&o,l=r.children,s=r.className,c=r.component,d=void 0===c?"button":c,f=r.disabled,p=void 0!==f&&f,v=r.disableRipple,g=void 0!==v&&v,y=r.disableTouchRipple,b=void 0!==y&&y,_=r.focusRipple,w=void 0!==_&&_,S=r.LinkComponent,x=void 0===S?"a":S,C=r.onBlur,k=r.onClick,E=r.onContextMenu,R=r.onDragLeave,O=r.onFocus,P=r.onFocusVisible,T=r.onKeyDown,M=r.onKeyUp,L=r.onMouseDown,Z=r.onMouseLeave,I=r.onMouseUp,D=r.onTouchEnd,j=r.onTouchMove,A=r.onTouchStart,N=r.tabIndex,F=void 0===N?0:N,z=r.TouchRippleProps,B=r.touchRippleRef,H=r.type,W=(0,h.Z)(r,Rn),U=t.useRef(null),V=t.useRef(null),q=(0,Dt.Z)(V,B),K=(0,At.Z)(),Y=K.isFocusVisibleRef,G=K.onFocus,X=K.onBlur,$=K.ref,J=t.useState(!1),Q=(0,u.Z)(J,2),ee=Q[0],te=Q[1];p&&ee&&te(!1),t.useImperativeHandle(i,(function(){return{focusVisible:function(){te(!0),U.current.focus()}}}),[]);var ne=t.useState(!1),re=(0,u.Z)(ne,2),ie=re[0],oe=re[1];t.useEffect((function(){oe(!0)}),[]);var ae=ie&&!g&&!p;function le(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b;return(0,jt.Z)((function(r){return t&&t(r),!n&&V.current&&V.current[e](r),!0}))}t.useEffect((function(){ee&&w&&!g&&ie&&V.current.pulsate()}),[g,w,ee,ie]);var se=le("start",L),ce=le("stop",E),ue=le("stop",R),de=le("stop",I),fe=le("stop",(function(e){ee&&e.preventDefault(),Z&&Z(e)})),he=le("start",A),pe=le("stop",D),ve=le("stop",j),me=le("stop",(function(e){X(e),!1===Y.current&&te(!1),C&&C(e)}),!1),ge=(0,jt.Z)((function(e){U.current||(U.current=e.currentTarget),G(e),!0===Y.current&&(te(!0),P&&P(e)),O&&O(e)})),ye=function(){var e=U.current;return d&&"button"!==d&&!("A"===e.tagName&&e.href)},be=t.useRef(!1),_e=(0,jt.Z)((function(e){w&&!be.current&&ee&&V.current&&" "===e.key&&(be.current=!0,V.current.stop(e,(function(){V.current.start(e)}))),e.target===e.currentTarget&&ye()&&" "===e.key&&e.preventDefault(),T&&T(e),e.target===e.currentTarget&&ye()&&"Enter"===e.key&&!p&&(e.preventDefault(),k&&k(e))})),we=(0,jt.Z)((function(e){w&&" "===e.key&&V.current&&ee&&!e.defaultPrevented&&(be.current=!1,V.current.stop(e,(function(){V.current.pulsate(e)}))),M&&M(e),k&&e.target===e.currentTarget&&ye()&&" "===e.key&&!e.defaultPrevented&&k(e)})),Se=d;"button"===Se&&(W.href||W.to)&&(Se=x);var xe={};"button"===Se?(xe.type=void 0===H?"button":H,xe.disabled=p):(W.href||W.to||(xe.role="button"),p&&(xe["aria-disabled"]=p));var Ce=(0,Dt.Z)(n,$,U);var ke=(0,Pt.Z)({},r,{centerRipple:a,component:d,disabled:p,disableRipple:g,disableTouchRipple:b,focusRipple:w,tabIndex:F,focusVisible:ee}),Ee=function(e){var t=e.disabled,n=e.focusVisible,r=e.focusVisibleClassName,i=e.classes,o={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,Mt.Z)(o,Cn,i);return n&&r&&(a.root+=" ".concat(r)),a}(ke);return(0,tn.jsxs)(On,(0,Pt.Z)({as:Se,className:(0,m.Z)(Ee.root,s),ownerState:ke,onBlur:me,onClick:k,onContextMenu:ce,onFocus:ge,onKeyDown:_e,onKeyUp:we,onMouseDown:se,onMouseLeave:fe,onMouseUp:de,onDragLeave:ue,onTouchEnd:pe,onTouchMove:ve,onTouchStart:he,ref:Ce,tabIndex:p?-1:F,type:H},xe,W,{children:[l,ae?(0,tn.jsx)(Sn,(0,Pt.Z)({ref:q,center:a},z)):null]}))})),Tn=Pn,Mn=n(4036);function Ln(e){return(0,xn.Z)("MuiButton",e)}var Zn=(0,rn.Z)("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"]);var In=t.createContext({}),Dn=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],jn=function(e){return(0,Pt.Z)({},"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}})},An=(0,Zt.ZP)(Tn,{shouldForwardProp:function(e){return(0,Zt.FO)(e)||"classes"===e},name:"MuiButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["".concat(n.variant).concat((0,Mn.Z)(n.color))],t["size".concat((0,Mn.Z)(n.size))],t["".concat(n.variant,"Size").concat((0,Mn.Z)(n.size))],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((function(e){var t,n,r,i=e.theme,a=e.ownerState;return(0,Pt.Z)({},i.typography.button,(t={minWidth:64,padding:"6px 16px",borderRadius:(i.vars||i).shape.borderRadius,transition:i.transitions.create(["background-color","box-shadow","border-color","color"],{duration:i.transitions.duration.short}),"&:hover":(0,Pt.Z)({textDecoration:"none",backgroundColor:i.vars?"rgba(".concat(i.vars.palette.text.primaryChannel," / ").concat(i.vars.palette.action.hoverOpacity,")"):(0,Lt.Fq)(i.palette.text.primary,i.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===a.variant&&"inherit"!==a.color&&{backgroundColor:i.vars?"rgba(".concat(i.vars.palette[a.color].mainChannel," / ").concat(i.vars.palette.action.hoverOpacity,")"):(0,Lt.Fq)(i.palette[a.color].main,i.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===a.variant&&"inherit"!==a.color&&{border:"1px solid ".concat((i.vars||i).palette[a.color].main),backgroundColor:i.vars?"rgba(".concat(i.vars.palette[a.color].mainChannel," / ").concat(i.vars.palette.action.hoverOpacity,")"):(0,Lt.Fq)(i.palette[a.color].main,i.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===a.variant&&{backgroundColor:(i.vars||i).palette.grey.A100,boxShadow:(i.vars||i).shadows[4],"@media (hover: none)":{boxShadow:(i.vars||i).shadows[2],backgroundColor:(i.vars||i).palette.grey[300]}},"contained"===a.variant&&"inherit"!==a.color&&{backgroundColor:(i.vars||i).palette[a.color].dark,"@media (hover: none)":{backgroundColor:(i.vars||i).palette[a.color].main}}),"&:active":(0,Pt.Z)({},"contained"===a.variant&&{boxShadow:(i.vars||i).shadows[8]})},(0,o.Z)(t,"&.".concat(Zn.focusVisible),(0,Pt.Z)({},"contained"===a.variant&&{boxShadow:(i.vars||i).shadows[6]})),(0,o.Z)(t,"&.".concat(Zn.disabled),(0,Pt.Z)({color:(i.vars||i).palette.action.disabled},"outlined"===a.variant&&{border:"1px solid ".concat((i.vars||i).palette.action.disabledBackground)},"contained"===a.variant&&{color:(i.vars||i).palette.action.disabled,boxShadow:(i.vars||i).shadows[0],backgroundColor:(i.vars||i).palette.action.disabledBackground})),t),"text"===a.variant&&{padding:"6px 8px"},"text"===a.variant&&"inherit"!==a.color&&{color:(i.vars||i).palette[a.color].main},"outlined"===a.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===a.variant&&"inherit"!==a.color&&{color:(i.vars||i).palette[a.color].main,border:i.vars?"1px solid rgba(".concat(i.vars.palette[a.color].mainChannel," / 0.5)"):"1px solid ".concat((0,Lt.Fq)(i.palette[a.color].main,.5))},"contained"===a.variant&&{color:i.vars?i.vars.palette.text.primary:null==(n=(r=i.palette).getContrastText)?void 0:n.call(r,i.palette.grey[300]),backgroundColor:(i.vars||i).palette.grey[300],boxShadow:(i.vars||i).shadows[2]},"contained"===a.variant&&"inherit"!==a.color&&{color:(i.vars||i).palette[a.color].contrastText,backgroundColor:(i.vars||i).palette[a.color].main},"inherit"===a.color&&{color:"inherit",borderColor:"currentColor"},"small"===a.size&&"text"===a.variant&&{padding:"4px 5px",fontSize:i.typography.pxToRem(13)},"large"===a.size&&"text"===a.variant&&{padding:"8px 11px",fontSize:i.typography.pxToRem(15)},"small"===a.size&&"outlined"===a.variant&&{padding:"3px 9px",fontSize:i.typography.pxToRem(13)},"large"===a.size&&"outlined"===a.variant&&{padding:"7px 21px",fontSize:i.typography.pxToRem(15)},"small"===a.size&&"contained"===a.variant&&{padding:"4px 10px",fontSize:i.typography.pxToRem(13)},"large"===a.size&&"contained"===a.variant&&{padding:"8px 22px",fontSize:i.typography.pxToRem(15)},a.fullWidth&&{width:"100%"})}),(function(e){var t;return e.ownerState.disableElevation&&(t={boxShadow:"none","&:hover":{boxShadow:"none"}},(0,o.Z)(t,"&.".concat(Zn.focusVisible),{boxShadow:"none"}),(0,o.Z)(t,"&:active",{boxShadow:"none"}),(0,o.Z)(t,"&.".concat(Zn.disabled),{boxShadow:"none"}),t)})),Nn=(0,Zt.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:function(e,t){var n=e.ownerState;return[t.startIcon,t["iconSize".concat((0,Mn.Z)(n.size))]]}})((function(e){var t=e.ownerState;return(0,Pt.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},jn(t))})),Fn=(0,Zt.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:function(e,t){var n=e.ownerState;return[t.endIcon,t["iconSize".concat((0,Mn.Z)(n.size))]]}})((function(e){var t=e.ownerState;return(0,Pt.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},jn(t))})),zn=t.forwardRef((function(e,n){var r=t.useContext(In),i=(0,Tt.Z)(r,e),o=(0,It.Z)({props:i,name:"MuiButton"}),a=o.children,l=o.color,s=void 0===l?"primary":l,c=o.component,u=void 0===c?"button":c,d=o.className,f=o.disabled,p=void 0!==f&&f,v=o.disableElevation,g=void 0!==v&&v,y=o.disableFocusRipple,b=void 0!==y&&y,_=o.endIcon,w=o.focusVisibleClassName,S=o.fullWidth,x=void 0!==S&&S,C=o.size,k=void 0===C?"medium":C,E=o.startIcon,R=o.type,O=o.variant,P=void 0===O?"text":O,T=(0,h.Z)(o,Dn),M=(0,Pt.Z)({},o,{color:s,component:u,disabled:p,disableElevation:g,disableFocusRipple:b,fullWidth:x,size:k,type:R,variant:P}),L=function(e){var t=e.color,n=e.disableElevation,r=e.fullWidth,i=e.size,o=e.variant,a=e.classes,l={root:["root",o,"".concat(o).concat((0,Mn.Z)(t)),"size".concat((0,Mn.Z)(i)),"".concat(o,"Size").concat((0,Mn.Z)(i)),"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon","iconSize".concat((0,Mn.Z)(i))],endIcon:["endIcon","iconSize".concat((0,Mn.Z)(i))]},s=(0,Mt.Z)(l,Ln,a);return(0,Pt.Z)({},a,s)}(M),Z=E&&(0,tn.jsx)(Nn,{className:L.startIcon,ownerState:M,children:E}),I=_&&(0,tn.jsx)(Fn,{className:L.endIcon,ownerState:M,children:_});return(0,tn.jsxs)(An,(0,Pt.Z)({ownerState:M,className:(0,m.Z)(r.className,L.root,d),component:u,disabled:p,focusRipple:!b,focusVisibleClassName:(0,m.Z)(L.focusVisible,w),ref:n,type:R},T,{classes:L,children:[Z,a,I]}))})),Bn=zn;var Hn=function(e){return"string"===typeof e};function Wn(e,t,n){return void 0===e||Hn(e)?t:(0,Pt.Z)({},t,{ownerState:(0,Pt.Z)({},t.ownerState,n)})}var Un=n(418),Vn=n(4591);function qn(){return(0,Un.Z)(Vn.Z)}var Kn=n(4164),Yn=!1,Gn="unmounted",Xn="exited",$n="entering",Jn="entered",Qn="exiting",er=function(e){function n(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=Xn,r.appearStatus=$n):i=Jn:i=t.unmountOnExit||t.mountOnEnter?Gn:Xn,r.state={status:i},r.nextCallback=null,r}Ft(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Gn?{status:Xn}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==$n&&n!==Jn&&(t=$n):n!==$n&&n!==Jn||(t=Qn)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===$n){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Kn.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Xn&&this.setState({status:Gn})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Kn.findDOMNode(this),r],o=i[0],a=i[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||Yn?this.safeSetState({status:Jn},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:$n},(function(){t.props.onEntering(o,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Jn},(function(){t.props.onEntered(o,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Kn.findDOMNode(this);t&&!Yn?(this.props.onExit(r),this.safeSetState({status:Qn},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Xn},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Xn},(function(){e.props.onExited(r)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Kn.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Gn)return null;var n=this.props,r=n.children,i=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,(0,h.Z)(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return t.createElement(zt.Provider,{value:null},"function"===typeof r?r(e,i):t.cloneElement(t.Children.only(r),i))},n}(t.Component);function tr(){}er.contextType=zt,er.propTypes={},er.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:tr,onEntering:tr,onEntered:tr,onExit:tr,onExiting:tr,onExited:tr},er.UNMOUNTED=Gn,er.EXITED=Xn,er.ENTERING=$n,er.ENTERED=Jn,er.EXITING=Qn;var nr=er,rr=function(e){return e.scrollTop};function ir(e,t){var n,r,i=e.timeout,o=e.easing,a=e.style,l=void 0===a?{}:a;return{duration:null!=(n=l.transitionDuration)?n:"number"===typeof i?i:i[t.mode]||0,easing:null!=(r=l.transitionTimingFunction)?r:"object"===typeof o?o[t.mode]:o,delay:l.transitionDelay}}var or=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ar(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var lr={entering:{opacity:1,transform:ar(1)},entered:{opacity:1,transform:"none"}},sr="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),cr=t.forwardRef((function(e,n){var r=e.addEndListener,i=e.appear,o=void 0===i||i,a=e.children,l=e.easing,s=e.in,c=e.onEnter,u=e.onEntered,d=e.onEntering,f=e.onExit,p=e.onExited,v=e.onExiting,m=e.style,g=e.timeout,y=void 0===g?"auto":g,b=e.TransitionComponent,_=void 0===b?nr:b,w=(0,h.Z)(e,or),S=t.useRef(),x=t.useRef(),C=qn(),k=t.useRef(null),E=(0,Dt.Z)(k,a.ref,n),R=function(e){return function(t){if(e){var n=k.current;void 0===t?e(n):e(n,t)}}},O=R(d),P=R((function(e,t){rr(e);var n,r=ir({style:m,timeout:y,easing:l},{mode:"enter"}),i=r.duration,o=r.delay,a=r.easing;"auto"===y?(n=C.transitions.getAutoHeightDuration(e.clientHeight),x.current=n):n=i,e.style.transition=[C.transitions.create("opacity",{duration:n,delay:o}),C.transitions.create("transform",{duration:sr?n:.666*n,delay:o,easing:a})].join(","),c&&c(e,t)})),T=R(u),M=R(v),L=R((function(e){var t,n=ir({style:m,timeout:y,easing:l},{mode:"exit"}),r=n.duration,i=n.delay,o=n.easing;"auto"===y?(t=C.transitions.getAutoHeightDuration(e.clientHeight),x.current=t):t=r,e.style.transition=[C.transitions.create("opacity",{duration:t,delay:i}),C.transitions.create("transform",{duration:sr?t:.666*t,delay:sr?i:i||.333*t,easing:o})].join(","),e.style.opacity=0,e.style.transform=ar(.75),f&&f(e)})),Z=R(p);return t.useEffect((function(){return function(){clearTimeout(S.current)}}),[]),(0,tn.jsx)(_,(0,Pt.Z)({appear:o,in:s,nodeRef:k,onEnter:P,onEntered:T,onEntering:O,onExit:L,onExited:Z,onExiting:M,addEndListener:function(e){"auto"===y&&(S.current=setTimeout(e,x.current||0)),r&&r(k.current,e)},timeout:"auto"===y?null:y},w,{children:function(e,n){return t.cloneElement(a,(0,Pt.Z)({style:(0,Pt.Z)({opacity:0,transform:ar(.75),visibility:"exited"!==e||s?void 0:"hidden"},lr[e],m,a.props.style),ref:E},n))}}))}));cr.muiSupportAuto=!0;var ur=cr,dr=n(6117),fr=n(2876),hr=n(4913);function pr(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function vr(e){return e instanceof pr(e).Element||e instanceof Element}function mr(e){return e instanceof pr(e).HTMLElement||e instanceof HTMLElement}function gr(e){return"undefined"!==typeof ShadowRoot&&(e instanceof pr(e).ShadowRoot||e instanceof ShadowRoot)}var yr=Math.max,br=Math.min,_r=Math.round;function wr(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Sr(){return!/^((?!chrome|android).)*safari/i.test(wr())}function xr(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&mr(e)&&(i=e.offsetWidth>0&&_r(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&_r(r.height)/e.offsetHeight||1);var a=(vr(e)?pr(e):window).visualViewport,l=!Sr()&&n,s=(r.left+(l&&a?a.offsetLeft:0))/i,c=(r.top+(l&&a?a.offsetTop:0))/o,u=r.width/i,d=r.height/o;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function Cr(e){var t=pr(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function kr(e){return e?(e.nodeName||"").toLowerCase():null}function Er(e){return((vr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Rr(e){return xr(Er(e)).left+Cr(e).scrollLeft}function Or(e){return pr(e).getComputedStyle(e)}function Pr(e){var t=Or(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Tr(e,t,n){void 0===n&&(n=!1);var r=mr(t),i=mr(t)&&function(e){var t=e.getBoundingClientRect(),n=_r(t.width)/e.offsetWidth||1,r=_r(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=Er(t),a=xr(e,i,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==kr(t)||Pr(o))&&(l=function(e){return e!==pr(e)&&mr(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Cr(e);var t}(t)),mr(t)?((s=xr(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):o&&(s.x=Rr(o))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function Mr(e){var t=xr(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Lr(e){return"html"===kr(e)?e:e.assignedSlot||e.parentNode||(gr(e)?e.host:null)||Er(e)}function Zr(e){return["html","body","#document"].indexOf(kr(e))>=0?e.ownerDocument.body:mr(e)&&Pr(e)?e:Zr(Lr(e))}function Ir(e,t){var n;void 0===t&&(t=[]);var r=Zr(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=pr(r),a=i?[o].concat(o.visualViewport||[],Pr(r)?r:[]):r,l=t.concat(a);return i?l:l.concat(Ir(Lr(a)))}function Dr(e){return["table","td","th"].indexOf(kr(e))>=0}function jr(e){return mr(e)&&"fixed"!==Or(e).position?e.offsetParent:null}function Ar(e){for(var t=pr(e),n=jr(e);n&&Dr(n)&&"static"===Or(n).position;)n=jr(n);return n&&("html"===kr(n)||"body"===kr(n)&&"static"===Or(n).position)?t:n||function(e){var t=/firefox/i.test(wr());if(/Trident/i.test(wr())&&mr(e)&&"fixed"===Or(e).position)return null;var n=Lr(e);for(gr(n)&&(n=n.host);mr(n)&&["html","body"].indexOf(kr(n))<0;){var r=Or(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var Nr="top",Fr="bottom",zr="right",Br="left",Hr="auto",Wr=[Nr,Fr,zr,Br],Ur="start",Vr="end",qr="clippingParents",Kr="viewport",Yr="popper",Gr="reference",Xr=Wr.reduce((function(e,t){return e.concat([t+"-"+Ur,t+"-"+Vr])}),[]),$r=[].concat(Wr,[Hr]).reduce((function(e,t){return e.concat([t,t+"-"+Ur,t+"-"+Vr])}),[]),Jr=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Qr(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function ei(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var ti={placement:"bottom",modifiers:[],strategy:"absolute"};function ni(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function ri(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?ti:i;return function(e,t,n){void 0===n&&(n=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},ti,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],l=!1,s={state:i,setOptions:function(n){var l="function"===typeof n?n(i.options):n;c(),i.options=Object.assign({},o,i.options,l),i.scrollParents={reference:vr(e)?Ir(e):e.contextElement?Ir(e.contextElement):[],popper:Ir(t)};var u=function(e){var t=Qr(e);return Jr.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,i.options.modifiers)));return i.orderedModifiers=u.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"===typeof o){var l=o({state:i,name:t,instance:s,options:r}),c=function(){};a.push(l||c)}})),s.update()},forceUpdate:function(){if(!l){var e=i.elements,t=e.reference,n=e.popper;if(ni(t,n)){i.rects={reference:Tr(t,Ar(n),"fixed"===i.options.strategy),popper:Mr(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,c=o.options,u=void 0===c?{}:c,d=o.name;"function"===typeof a&&(i=a({state:i,options:u,name:d,instance:s})||i)}else i.reset=!1,r=-1}}},update:ei((function(){return new Promise((function(e){s.forceUpdate(),e(i)}))})),destroy:function(){c(),l=!0}};if(!ni(e,t))return s;function c(){a.forEach((function(e){return e()})),a=[]}return s.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),s}}var ii={passive:!0};var oi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,l=void 0===a||a,s=pr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",n.update,ii)})),l&&s.addEventListener("resize",n.update,ii),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",n.update,ii)})),l&&s.removeEventListener("resize",n.update,ii)}},data:{}};function ai(e){return e.split("-")[0]}function li(e){return e.split("-")[1]}function si(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ci(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?ai(i):null,a=i?li(i):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(o){case Nr:t={x:l,y:n.y-r.height};break;case Fr:t={x:l,y:n.y+n.height};break;case zr:t={x:n.x+n.width,y:s};break;case Br:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=o?si(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Ur:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Vr:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var ui={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ci({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},di={top:"auto",right:"auto",bottom:"auto",left:"auto"};function fi(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,h=void 0===f?0:f,p=a.y,v=void 0===p?0:p,m="function"===typeof u?u({x:h,y:v}):{x:h,y:v};h=m.x,v=m.y;var g=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=Br,_=Nr,w=window;if(c){var S=Ar(n),x="clientHeight",C="clientWidth";if(S===pr(n)&&"static"!==Or(S=Er(n)).position&&"absolute"===l&&(x="scrollHeight",C="scrollWidth"),i===Nr||(i===Br||i===zr)&&o===Vr)_=Fr,v-=(d&&S===w&&w.visualViewport?w.visualViewport.height:S[x])-r.height,v*=s?1:-1;if(i===Br||(i===Nr||i===Fr)&&o===Vr)b=zr,h-=(d&&S===w&&w.visualViewport?w.visualViewport.width:S[C])-r.width,h*=s?1:-1}var k,E=Object.assign({position:l},c&&di),R=!0===u?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:_r(t*r)/r||0,y:_r(n*r)/r||0}}({x:h,y:v}):{x:h,y:v};return h=R.x,v=R.y,s?Object.assign({},E,((k={})[_]=y?"0":"",k[b]=g?"0":"",k.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",k)):Object.assign({},E,((t={})[_]=y?v+"px":"",t[b]=g?h+"px":"",t.transform="",t))}var hi={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];mr(i)&&kr(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});mr(r)&&kr(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var pi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=$r.reduce((function(e,n){return e[n]=function(e,t,n){var r=ai(e),i=[Br,Nr].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],l=o[1];return a=a||0,l=(l||0)*i,[Br,zr].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,o),e}),{}),l=a[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},vi={left:"right",right:"left",bottom:"top",top:"bottom"};function mi(e){return e.replace(/left|right|bottom|top/g,(function(e){return vi[e]}))}var gi={start:"end",end:"start"};function yi(e){return e.replace(/start|end/g,(function(e){return gi[e]}))}function bi(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&gr(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function _i(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function wi(e,t,n){return t===Kr?_i(function(e,t){var n=pr(e),r=Er(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,l=0,s=0;if(i){o=i.width,a=i.height;var c=Sr();(c||!c&&"fixed"===t)&&(l=i.offsetLeft,s=i.offsetTop)}return{width:o,height:a,x:l+Rr(e),y:s}}(e,n)):vr(t)?function(e,t){var n=xr(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):_i(function(e){var t,n=Er(e),r=Cr(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=yr(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=yr(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+Rr(e),s=-r.scrollTop;return"rtl"===Or(i||n).direction&&(l+=yr(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:l,y:s}}(Er(e)))}function Si(e,t,n,r){var i="clippingParents"===t?function(e){var t=Ir(Lr(e)),n=["absolute","fixed"].indexOf(Or(e).position)>=0&&mr(e)?Ar(e):e;return vr(n)?t.filter((function(e){return vr(e)&&bi(e,n)&&"body"!==kr(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],l=o.reduce((function(t,n){var i=wi(e,n,r);return t.top=yr(i.top,t.top),t.right=br(i.right,t.right),t.bottom=br(i.bottom,t.bottom),t.left=yr(i.left,t.left),t}),wi(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function xi(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ci(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ki(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,l=n.boundary,s=void 0===l?qr:l,c=n.rootBoundary,u=void 0===c?Kr:c,d=n.elementContext,f=void 0===d?Yr:d,h=n.altBoundary,p=void 0!==h&&h,v=n.padding,m=void 0===v?0:v,g=xi("number"!==typeof m?m:Ci(m,Wr)),y=f===Yr?Gr:Yr,b=e.rects.popper,_=e.elements[p?y:f],w=Si(vr(_)?_:_.contextElement||Er(e.elements.popper),s,u,a),S=xr(e.elements.reference),x=ci({reference:S,element:b,strategy:"absolute",placement:i}),C=_i(Object.assign({},b,x)),k=f===Yr?C:S,E={top:w.top-k.top+g.top,bottom:k.bottom-w.bottom+g.bottom,left:w.left-k.left+g.left,right:k.right-w.right+g.right},R=e.modifiersData.offset;if(f===Yr&&R){var O=R[i];Object.keys(E).forEach((function(e){var t=[zr,Fr].indexOf(e)>=0?1:-1,n=[Nr,Fr].indexOf(e)>=0?"y":"x";E[e]+=O[n]*t}))}return E}var Ei={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,l=void 0===a||a,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=void 0===h||h,v=n.allowedAutoPlacements,m=t.options.placement,g=ai(m),y=s||(g===m||!p?[mi(m)]:function(e){if(ai(e)===Hr)return[];var t=mi(e);return[yi(e),t,yi(t)]}(m)),b=[m].concat(y).reduce((function(e,n){return e.concat(ai(n)===Hr?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?$r:s,u=li(r),d=u?l?Xr:Xr.filter((function(e){return li(e)===u})):Wr,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var h=f.reduce((function(t,n){return t[n]=ki(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[ai(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:v}):n)}),[]),_=t.rects.reference,w=t.rects.popper,S=new Map,x=!0,C=b[0],k=0;k<b.length;k++){var E=b[k],R=ai(E),O=li(E)===Ur,P=[Nr,Fr].indexOf(R)>=0,T=P?"width":"height",M=ki(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),L=P?O?zr:Br:O?Fr:Nr;_[T]>w[T]&&(L=mi(L));var Z=mi(L),I=[];if(o&&I.push(M[R]<=0),l&&I.push(M[L]<=0,M[Z]<=0),I.every((function(e){return e}))){C=E,x=!1;break}S.set(E,I)}if(x)for(var D=function(e){var t=b.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},j=p?3:1;j>0;j--){if("break"===D(j))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ri(e,t,n){return yr(e,br(t,n))}var Oi={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,l=void 0!==a&&a,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,h=void 0===f||f,p=n.tetherOffset,v=void 0===p?0:p,m=ki(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),g=ai(t.placement),y=li(t.placement),b=!y,_=si(g),w="x"===_?"y":"x",S=t.modifiersData.popperOffsets,x=t.rects.reference,C=t.rects.popper,k="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,E="number"===typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(o){var P,T="y"===_?Nr:Br,M="y"===_?Fr:zr,L="y"===_?"height":"width",Z=S[_],I=Z+m[T],D=Z-m[M],j=h?-C[L]/2:0,A=y===Ur?x[L]:C[L],N=y===Ur?-C[L]:-x[L],F=t.elements.arrow,z=h&&F?Mr(F):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=B[T],W=B[M],U=Ri(0,x[L],z[L]),V=b?x[L]/2-j-U-H-E.mainAxis:A-U-H-E.mainAxis,q=b?-x[L]/2+j+U+W+E.mainAxis:N+U+W+E.mainAxis,K=t.elements.arrow&&Ar(t.elements.arrow),Y=K?"y"===_?K.clientTop||0:K.clientLeft||0:0,G=null!=(P=null==R?void 0:R[_])?P:0,X=Z+q-G,$=Ri(h?br(I,Z+V-G-Y):I,Z,h?yr(D,X):D);S[_]=$,O[_]=$-Z}if(l){var J,Q="x"===_?Nr:Br,ee="x"===_?Fr:zr,te=S[w],ne="y"===w?"height":"width",re=te+m[Q],ie=te-m[ee],oe=-1!==[Nr,Br].indexOf(g),ae=null!=(J=null==R?void 0:R[w])?J:0,le=oe?re:te-x[ne]-C[ne]-ae+E.altAxis,se=oe?te+x[ne]+C[ne]-ae-E.altAxis:ie,ce=h&&oe?function(e,t,n){var r=Ri(e,t,n);return r>n?n:r}(le,te,se):Ri(h?le:re,te,h?se:ie);S[w]=ce,O[w]=ce-te}t.modifiersData[r]=O}},requiresIfExists:["offset"]},Pi=function(e,t){return xi("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ci(e,Wr))};var Ti={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,l=ai(n.placement),s=si(l),c=[Br,zr].indexOf(l)>=0?"height":"width";if(o&&a){var u=Pi(i.padding,n),d=Mr(o),f="y"===s?Nr:Br,h="y"===s?Fr:zr,p=n.rects.reference[c]+n.rects.reference[s]-a[s]-n.rects.popper[c],v=a[s]-n.rects.reference[s],m=Ar(o),g=m?"y"===s?m.clientHeight||0:m.clientWidth||0:0,y=p/2-v/2,b=u[f],_=g-d[c]-u[h],w=g/2-d[c]/2+y,S=Ri(b,w,_),x=s;n.modifiersData[r]=((t={})[x]=S,t.centerOffset=S-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&bi(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Mi(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Li(e){return[Nr,zr,Fr,Br].some((function(t){return e[t]>=0}))}var Zi={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=ki(t,{elementContext:"reference"}),l=ki(t,{altBoundary:!0}),s=Mi(a,r),c=Mi(l,i,o),u=Li(s),d=Li(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},Ii=ri({defaultModifiers:[oi,ui,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,l=n.roundOffsets,s=void 0===l||l,c={placement:ai(t.placement),variation:li(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,fi(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,fi(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},hi,pi,Ei,Oi,Ti,Zi]}),Di=n(2971);var ji=t.forwardRef((function(e,n){var r=e.children,i=e.container,o=e.disablePortal,a=void 0!==o&&o,l=t.useState(null),s=(0,u.Z)(l,2),c=s[0],d=s[1],f=(0,dr.Z)(t.isValidElement(r)?r.ref:null,n);if((0,fr.Z)((function(){a||d(function(e){return"function"===typeof e?e():e}(i)||document.body)}),[i,a]),(0,fr.Z)((function(){if(c&&!a)return(0,Di.Z)(n,c),function(){(0,Di.Z)(n,null)}}),[n,c,a]),a){if(t.isValidElement(r)){var h={ref:f};return t.cloneElement(r,h)}return(0,tn.jsx)(t.Fragment,{children:r})}return(0,tn.jsx)(t.Fragment,{children:c?Kn.createPortal(r,c):c})}));function Ai(e){return(0,xn.Z)("MuiPopperUnstyled",e)}(0,rn.Z)("MuiPopperUnstyled",["root"]);function Ni(e){if(void 0===e)return{};var t={};return Object.keys(e).filter((function(t){return!(t.match(/^on[A-Z]/)&&"function"===typeof e[t])})).forEach((function(n){t[n]=e[n]})),t}function Fi(e){var t=e.getSlotProps,n=e.additionalProps,r=e.externalSlotProps,i=e.externalForwardedProps,o=e.className;if(!t){var a=(0,m.Z)(null==i?void 0:i.className,null==r?void 0:r.className,o,null==n?void 0:n.className),l=(0,Pt.Z)({},null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),s=(0,Pt.Z)({},n,i,r);return a.length>0&&(s.className=a),Object.keys(l).length>0&&(s.style=l),{props:s,internalRef:void 0}}var c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};var n={};return Object.keys(e).filter((function(n){return n.match(/^on[A-Z]/)&&"function"===typeof e[n]&&!t.includes(n)})).forEach((function(t){n[t]=e[t]})),n}((0,Pt.Z)({},i,r)),u=Ni(r),d=Ni(i),f=t(c),h=(0,m.Z)(null==f?void 0:f.className,null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),p=(0,Pt.Z)({},null==f?void 0:f.style,null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),v=(0,Pt.Z)({},f,n,d,u);return h.length>0&&(v.className=h),Object.keys(p).length>0&&(v.style=p),{props:v,internalRef:f.ref}}function zi(e,t){return"function"===typeof e?e(t):e}var Bi=["elementType","externalSlotProps","ownerState"];function Hi(e){var t,n=e.elementType,r=e.externalSlotProps,i=e.ownerState,o=(0,h.Z)(e,Bi),a=zi(r,i),l=Fi((0,Pt.Z)({},o,{externalSlotProps:a})),s=l.props,c=l.internalRef,u=(0,dr.Z)(c,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref);return Wn(n,(0,Pt.Z)({},s,{ref:u}),i)}var Wi=["anchorEl","children","component","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","slotProps","slots","TransitionProps"],Ui=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Vi(e){return"function"===typeof e?e():e}function qi(e){return void 0!==e.nodeType}var Ki={},Yi=t.forwardRef((function(e,n){var r,i=e.anchorEl,o=e.children,a=e.component,l=e.direction,s=e.disablePortal,c=e.modifiers,d=e.open,f=e.ownerState,p=e.placement,v=e.popperOptions,m=e.popperRef,g=e.slotProps,y=void 0===g?{}:g,b=e.slots,_=void 0===b?{}:b,w=e.TransitionProps,S=(0,h.Z)(e,Wi),x=t.useRef(null),C=(0,dr.Z)(x,n),k=t.useRef(null),E=(0,dr.Z)(k,m),R=t.useRef(E);(0,fr.Z)((function(){R.current=E}),[E]),t.useImperativeHandle(m,(function(){return k.current}),[]);var O=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}}(p,l),P=t.useState(O),T=(0,u.Z)(P,2),M=T[0],L=T[1],Z=t.useState(Vi(i)),I=(0,u.Z)(Z,2),D=I[0],j=I[1];t.useEffect((function(){k.current&&k.current.forceUpdate()})),t.useEffect((function(){i&&j(Vi(i))}),[i]),(0,fr.Z)((function(){if(D&&d){var e=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:function(e){var t=e.state;L(t.placement)}}];null!=c&&(e=e.concat(c)),v&&null!=v.modifiers&&(e=e.concat(v.modifiers));var t=Ii(D,x.current,(0,Pt.Z)({placement:O},v,{modifiers:e}));return R.current(t),function(){t.destroy(),R.current(null)}}}),[D,s,c,d,v,O]);var A={placement:M};null!==w&&(A.TransitionProps=w);var N=(0,Mt.Z)({root:["root"]},Ai,{}),F=null!=(r=null!=a?a:_.root)?r:"div",z=Hi({elementType:F,externalSlotProps:y.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:C},ownerState:(0,Pt.Z)({},e,f),className:N.root});return(0,tn.jsx)(F,(0,Pt.Z)({},z,{children:"function"===typeof o?o(A):o}))})),Gi=t.forwardRef((function(e,n){var r,i=e.anchorEl,o=e.children,a=e.container,l=e.direction,s=void 0===l?"ltr":l,c=e.disablePortal,d=void 0!==c&&c,f=e.keepMounted,p=void 0!==f&&f,v=e.modifiers,m=e.open,g=e.placement,y=void 0===g?"bottom":g,b=e.popperOptions,_=void 0===b?Ki:b,w=e.popperRef,S=e.style,x=e.transition,C=void 0!==x&&x,k=e.slotProps,E=void 0===k?{}:k,R=e.slots,O=void 0===R?{}:R,P=(0,h.Z)(e,Ui),T=t.useState(!0),M=(0,u.Z)(T,2),L=M[0],Z=M[1];if(!p&&!m&&(!C||L))return null;if(a)r=a;else if(i){var I=Vi(i);r=I&&qi(I)?(0,hr.Z)(I).body:(0,hr.Z)(null).body}var D=m||!p||C&&!L?void 0:"none",j=C?{in:m,onEnter:function(){Z(!1)},onExited:function(){Z(!0)}}:void 0;return(0,tn.jsx)(ji,{disablePortal:d,container:r,children:(0,tn.jsx)(Yi,(0,Pt.Z)({anchorEl:i,direction:s,disablePortal:d,modifiers:v,ref:n,open:C?!L:m,placement:y,popperOptions:_,popperRef:w,slotProps:E,slots:O},P,{style:(0,Pt.Z)({position:"fixed",top:0,left:0,display:D},S),TransitionProps:j,children:o}))})})),Xi=n(7301),$i=["components","componentsProps","slots","slotProps"],Ji=(0,Zt.ZP)(Gi,{name:"MuiPopper",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),Qi=t.forwardRef((function(e,t){var n,r=(0,Xi.Z)(),i=(0,It.Z)({props:e,name:"MuiPopper"}),o=i.components,a=i.componentsProps,l=i.slots,s=i.slotProps,c=(0,h.Z)(i,$i),u=null!=(n=null==l?void 0:l.root)?n:null==o?void 0:o.Root;return(0,tn.jsx)(Ji,(0,Pt.Z)({direction:null==r?void 0:r.direction,slots:{root:u},slotProps:null!=s?s:a},c,{ref:t}))})),eo=n(7384),to=n(8278);function no(e){return(0,xn.Z)("MuiTooltip",e)}var ro=(0,rn.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),io=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function oo(e){return Math.round(1e5*e)/1e5}var ao=(0,Zt.ZP)(Qi,{name:"MuiTooltip",slot:"Popper",overridesResolver:function(e,t){var n=e.ownerState;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((function(e){var t,n=e.theme,r=e.ownerState,i=e.open;return(0,Pt.Z)({zIndex:(n.vars||n).zIndex.tooltip,pointerEvents:"none"},!r.disableInteractive&&{pointerEvents:"auto"},!i&&{pointerEvents:"none"},r.arrow&&(t={},(0,o.Z)(t,'&[data-popper-placement*="bottom"] .'.concat(ro.arrow),{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}}),(0,o.Z)(t,'&[data-popper-placement*="top"] .'.concat(ro.arrow),{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}}),(0,o.Z)(t,'&[data-popper-placement*="right"] .'.concat(ro.arrow),(0,Pt.Z)({},r.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}})),(0,o.Z)(t,'&[data-popper-placement*="left"] .'.concat(ro.arrow),(0,Pt.Z)({},r.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})),t))})),lo=(0,Zt.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:function(e,t){var n=e.ownerState;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t["tooltipPlacement".concat((0,Mn.Z)(n.placement.split("-")[0]))]]}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,Pt.Z)({backgroundColor:n.vars?n.vars.palette.Tooltip.bg:(0,Lt.Fq)(n.palette.grey[700],.92),borderRadius:(n.vars||n).shape.borderRadius,color:(n.vars||n).palette.common.white,fontFamily:n.typography.fontFamily,padding:"4px 8px",fontSize:n.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:n.typography.fontWeightMedium},r.arrow&&{position:"relative",margin:0},r.touch&&{padding:"8px 16px",fontSize:n.typography.pxToRem(14),lineHeight:"".concat(oo(16/14),"em"),fontWeight:n.typography.fontWeightRegular},(t={},(0,o.Z)(t,".".concat(ro.popper,'[data-popper-placement*="left"] &'),(0,Pt.Z)({transformOrigin:"right center"},r.isRtl?(0,Pt.Z)({marginLeft:"14px"},r.touch&&{marginLeft:"24px"}):(0,Pt.Z)({marginRight:"14px"},r.touch&&{marginRight:"24px"}))),(0,o.Z)(t,".".concat(ro.popper,'[data-popper-placement*="right"] &'),(0,Pt.Z)({transformOrigin:"left center"},r.isRtl?(0,Pt.Z)({marginRight:"14px"},r.touch&&{marginRight:"24px"}):(0,Pt.Z)({marginLeft:"14px"},r.touch&&{marginLeft:"24px"}))),(0,o.Z)(t,".".concat(ro.popper,'[data-popper-placement*="top"] &'),(0,Pt.Z)({transformOrigin:"center bottom",marginBottom:"14px"},r.touch&&{marginBottom:"24px"})),(0,o.Z)(t,".".concat(ro.popper,'[data-popper-placement*="bottom"] &'),(0,Pt.Z)({transformOrigin:"center top",marginTop:"14px"},r.touch&&{marginTop:"24px"})),t))})),so=(0,Zt.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:function(e,t){return t.arrow}})((function(e){var t=e.theme;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:(0,Lt.Fq)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}})),co=!1,uo=null,fo={x:0,y:0};function ho(e,t){return function(n){t&&t(n),e(n)}}var po=t.forwardRef((function(e,n){var r,i,o,a,l,s,c,d,f,p,v,g,y,b,_,w,S,x,C,k=(0,It.Z)({props:e,name:"MuiTooltip"}),E=k.arrow,R=void 0!==E&&E,O=k.children,P=k.components,T=void 0===P?{}:P,M=k.componentsProps,L=void 0===M?{}:M,Z=k.describeChild,I=void 0!==Z&&Z,D=k.disableFocusListener,j=void 0!==D&&D,A=k.disableHoverListener,N=void 0!==A&&A,F=k.disableInteractive,z=void 0!==F&&F,B=k.disableTouchListener,H=void 0!==B&&B,W=k.enterDelay,U=void 0===W?100:W,V=k.enterNextDelay,q=void 0===V?0:V,K=k.enterTouchDelay,Y=void 0===K?700:K,G=k.followCursor,X=void 0!==G&&G,$=k.id,J=k.leaveDelay,Q=void 0===J?0:J,ee=k.leaveTouchDelay,te=void 0===ee?1500:ee,ne=k.onClose,re=k.onOpen,ie=k.open,oe=k.placement,ae=void 0===oe?"bottom":oe,le=k.PopperComponent,se=k.PopperProps,ce=void 0===se?{}:se,ue=k.slotProps,de=void 0===ue?{}:ue,fe=k.slots,he=void 0===fe?{}:fe,pe=k.title,ve=k.TransitionComponent,me=void 0===ve?ur:ve,ge=k.TransitionProps,ye=(0,h.Z)(k,io),be=qn(),_e="rtl"===be.direction,we=t.useState(),Se=(0,u.Z)(we,2),xe=Se[0],Ce=Se[1],ke=t.useState(null),Ee=(0,u.Z)(ke,2),Re=Ee[0],Oe=Ee[1],Pe=t.useRef(!1),Te=z||X,Me=t.useRef(),Le=t.useRef(),Ze=t.useRef(),Ie=t.useRef(),De=(0,to.Z)({controlled:ie,default:!1,name:"Tooltip",state:"open"}),je=(0,u.Z)(De,2),Ae=je[0],Ne=je[1],Fe=Ae,ze=(0,eo.Z)($),Be=t.useRef(),He=t.useCallback((function(){void 0!==Be.current&&(document.body.style.WebkitUserSelect=Be.current,Be.current=void 0),clearTimeout(Ie.current)}),[]);t.useEffect((function(){return function(){clearTimeout(Me.current),clearTimeout(Le.current),clearTimeout(Ze.current),He()}}),[He]);var We=function(e){clearTimeout(uo),co=!0,Ne(!0),re&&!Fe&&re(e)},Ue=(0,jt.Z)((function(e){clearTimeout(uo),uo=setTimeout((function(){co=!1}),800+Q),Ne(!1),ne&&Fe&&ne(e),clearTimeout(Me.current),Me.current=setTimeout((function(){Pe.current=!1}),be.transitions.duration.shortest)})),Ve=function(e){Pe.current&&"touchstart"!==e.type||(xe&&xe.removeAttribute("title"),clearTimeout(Le.current),clearTimeout(Ze.current),U||co&&q?Le.current=setTimeout((function(){We(e)}),co?q:U):We(e))},qe=function(e){clearTimeout(Le.current),clearTimeout(Ze.current),Ze.current=setTimeout((function(){Ue(e)}),Q)},Ke=(0,At.Z)(),Ye=Ke.isFocusVisibleRef,Ge=Ke.onBlur,Xe=Ke.onFocus,$e=Ke.ref,Je=t.useState(!1),Qe=(0,u.Z)(Je,2)[1],et=function(e){Ge(e),!1===Ye.current&&(Qe(!1),qe(e))},tt=function(e){xe||Ce(e.currentTarget),Xe(e),!0===Ye.current&&(Qe(!0),Ve(e))},nt=function(e){Pe.current=!0;var t=O.props;t.onTouchStart&&t.onTouchStart(e)},rt=Ve,it=qe;t.useEffect((function(){if(Fe)return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||Ue(e)}}),[Ue,Fe]);var ot=(0,Dt.Z)(O.ref,$e,Ce,n);pe||0===pe||(Fe=!1);var at=t.useRef(),lt={},st="string"===typeof pe;I?(lt.title=Fe||!st||N?null:pe,lt["aria-describedby"]=Fe?ze:null):(lt["aria-label"]=st?pe:null,lt["aria-labelledby"]=Fe&&!st?ze:null);var ct=(0,Pt.Z)({},lt,ye,O.props,{className:(0,m.Z)(ye.className,O.props.className),onTouchStart:nt,ref:ot},X?{onMouseMove:function(e){var t=O.props;t.onMouseMove&&t.onMouseMove(e),fo={x:e.clientX,y:e.clientY},at.current&&at.current.update()}}:{});var ut={};H||(ct.onTouchStart=function(e){nt(e),clearTimeout(Ze.current),clearTimeout(Me.current),He(),Be.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ie.current=setTimeout((function(){document.body.style.WebkitUserSelect=Be.current,Ve(e)}),Y)},ct.onTouchEnd=function(e){O.props.onTouchEnd&&O.props.onTouchEnd(e),He(),clearTimeout(Ze.current),Ze.current=setTimeout((function(){Ue(e)}),te)}),N||(ct.onMouseOver=ho(rt,ct.onMouseOver),ct.onMouseLeave=ho(it,ct.onMouseLeave),Te||(ut.onMouseOver=rt,ut.onMouseLeave=it)),j||(ct.onFocus=ho(tt,ct.onFocus),ct.onBlur=ho(et,ct.onBlur),Te||(ut.onFocus=tt,ut.onBlur=et));var dt=t.useMemo((function(){var e,t=[{name:"arrow",enabled:Boolean(Re),options:{element:Re,padding:4}}];return null!=(e=ce.popperOptions)&&e.modifiers&&(t=t.concat(ce.popperOptions.modifiers)),(0,Pt.Z)({},ce.popperOptions,{modifiers:t})}),[Re,ce]),ft=(0,Pt.Z)({},k,{isRtl:_e,arrow:R,disableInteractive:Te,placement:ae,PopperComponentProp:le,touch:Pe.current}),ht=function(e){var t=e.classes,n=e.disableInteractive,r=e.arrow,i=e.touch,o=e.placement,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch","tooltipPlacement".concat((0,Mn.Z)(o.split("-")[0]))],arrow:["arrow"]};return(0,Mt.Z)(a,no,t)}(ft),pt=null!=(r=null!=(i=he.popper)?i:T.Popper)?r:ao,vt=null!=(o=null!=(a=null!=(l=he.transition)?l:T.Transition)?a:me)?o:ur,mt=null!=(s=null!=(c=he.tooltip)?c:T.Tooltip)?s:lo,gt=null!=(d=null!=(f=he.arrow)?f:T.Arrow)?d:so,yt=Wn(pt,(0,Pt.Z)({},ce,null!=(p=de.popper)?p:L.popper,{className:(0,m.Z)(ht.popper,null==ce?void 0:ce.className,null==(v=null!=(g=de.popper)?g:L.popper)?void 0:v.className)}),ft),bt=Wn(vt,(0,Pt.Z)({},ge,null!=(y=de.transition)?y:L.transition),ft),_t=Wn(mt,(0,Pt.Z)({},null!=(b=de.tooltip)?b:L.tooltip,{className:(0,m.Z)(ht.tooltip,null==(_=null!=(w=de.tooltip)?w:L.tooltip)?void 0:_.className)}),ft),wt=Wn(gt,(0,Pt.Z)({},null!=(S=de.arrow)?S:L.arrow,{className:(0,m.Z)(ht.arrow,null==(x=null!=(C=de.arrow)?C:L.arrow)?void 0:x.className)}),ft);return(0,tn.jsxs)(t.Fragment,{children:[t.cloneElement(O,ct),(0,tn.jsx)(pt,(0,Pt.Z)({as:null!=le?le:Qi,placement:ae,anchorEl:X?{getBoundingClientRect:function(){return{top:fo.y,left:fo.x,right:fo.x,bottom:fo.y,width:0,height:0}}}:xe,popperRef:at,open:!!xe&&Fe,id:ze,transition:!0},ut,yt,{popperOptions:dt,children:function(e){var t=e.TransitionProps;return(0,tn.jsx)(vt,(0,Pt.Z)({timeout:be.transitions.duration.shorter},t,bt,{children:(0,tn.jsxs)(mt,(0,Pt.Z)({},_t,{children:[pe,R?(0,tn.jsx)(gt,(0,Pt.Z)({},wt,{ref:Oe})):null]}))}))}}))]})})),vo=po,mo=n(2007),go=n.n(mo),yo={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},bo=Object.defineProperty,_o=Object.defineProperties,wo=Object.getOwnPropertyDescriptors,So=Object.getOwnPropertySymbols,xo=Object.prototype.hasOwnProperty,Co=Object.prototype.propertyIsEnumerable,ko=function(e,t,n){return t in e?bo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Eo=function(e,t){for(var n in t||(t={}))xo.call(t,n)&&ko(e,n,t[n]);if(So){var r,i=ot(So(t));try{for(i.s();!(r=i.n()).done;){n=r.value;Co.call(t,n)&&ko(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},Ro=function(e,n,r){var i=(0,t.forwardRef)((function(n,i){var o=n,a=o.color,l=void 0===a?"currentColor":a,s=o.size,c=void 0===s?24:s,d=o.stroke,f=void 0===d?2:d,h=o.children,p=function(e,t){var n={};for(var r in e)xo.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&So){var i,o=ot(So(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&Co.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(o,["color","size","stroke","children"]);return(0,t.createElement)("svg",Eo(function(e,t){return _o(e,wo(t))}(Eo({ref:i},yo),{width:c,height:c,stroke:l,strokeWidth:f,className:"tabler-icon tabler-icon-".concat(e)}),p),[].concat((0,v.Z)(r.map((function(e){var n=(0,u.Z)(e,2),r=n[0],i=n[1];return(0,t.createElement)(r,i)}))),(0,v.Z)(h||[])))}));return i.propTypes={color:go().string,size:go().oneOfType([go().string,go().number]),stroke:go().oneOfType([go().string,go().number])},i.displayName="".concat(n),i},Oo=Ro("router","IconRouter",[["path",{d:"M3 13m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M17 17l0 .01",key:"svg-1"}],["path",{d:"M13 17l0 .01",key:"svg-2"}],["path",{d:"M15 13l0 -2",key:"svg-3"}],["path",{d:"M11.75 8.75a4 4 0 0 1 6.5 0",key:"svg-4"}],["path",{d:"M8.5 6.5a8 8 0 0 1 13 0",key:"svg-5"}]]),Po=n(6488),To="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADcAAAA3CAYAAACo29JGAAAAAXNSR0IArs4c6QAAFb9JREFUaEPtmgmUVdWVhr9zhzfXezVSzJOADMqkRHEEGowmjRrMpMFWosaoaDC2KA6gEiUGE0XUoDFtFE1LGxziGCMIGEWBFCgygwXUQBU1vfnd+fS6rzCJaRFQO2t1Vp+1znq17nDO/e6/zz5771uCf+Im/onZ+H+4/6vq/r9yX0S51NxrztTGVn9D9K88zssVRnqGqXoFE5ku1MsO6/fSDv20PFbRKr7948IXmefT7v1SlZO5mu6O1fRB/r2aiuwjr6NaNiWX/wv6qUfhpgt4BRtpOnimjVsoIFMFvNY8NGeRTWkUJzI72GXQ87HZszd+GaBfGE6m3im3tcb+ihpZ4zSlRHLVq2RWbSJSVUblv41H7V2Fly3g2SBtD8/08AwHz7Dw8gZeqoDcnyt2b18KWZ9Caw/W66O/clPi/jsXfxHIzw0npRRu66+/htr6sAj17WHv3kahZglqcxqjYgilZ5+MFgviGTbSVord87sJnik7AfMWXs7A7SggW/LIfekioNidRuy1ED16bAudf95l8SunvfV5ID8XnNX62leksXqyqmVuUeLd8XavQW7/A9JI83Z6DCOnnEiiTEXaDjgq0tGQloZna3iWhjQFriHxCh6uD5c18NoK0JTF25eGxiRsz0CLDSVhIhd+Z3Zizg1zjxTwiOCkTFc4Tc9fIs2104RIDlarIri1W3FqN2KrDu8q00kPHsrkXkvQpQ6OBraGdAN4dgBpB5FmALcIqOIWJG7exc1aeGkDzzdPH7CxA7E3DTtyYLigQOSCb72WuO+uc4UQ5uFCHjaczNYNt9ufvUaa739P0QohpboHXt1qjLo2tIruFLpcTaFyGN21i8BTQAaRLuD6ygWQThBph5FWGM8K4JoBPEPBzYObczoB2/J4zXlko7/2koidGYSvHiCRRC++YG/ixmtOEF26NB0O4GHBSatltNXw9K2ysGayomdUtbI/pFowN70O3Yeh9jufXGQyJe7PUHkXKAdy/uICzwNHKaon7Qie331AM1wEdPMCN+fh5RycDl89f+1lkA3JzrW3xwBbgpCIcIjY1ZfvKbly2ihRWtpxKMBDwklpDja3L1oojbUTFC2rqBW+gwjgrXkdr6QURtxLpuxMPHMnlfI/EUoF4FtOO3iNCK8evCzSB3R0pB3Ds6K4VgTPjOAYAby8gpuVOEkbd38erzGD9NddYwq1No9I+yYgQUrUrtUkfnLzxtB3vjFSCOF9FuBnwkkpexhbf7XYy6wcp+o5oZZmkBGL/Fv7CRvbEGNmkup7GynLo8p9nZjSjhQh3xZBmuC2ItRdiFAzyDRID1x/3cWQ2QhuLoib0nFTCl7Ww8uaeMkCbruB02Bgbe6A7e1oGROh+XwSEATGjKL0njuW6mNGf/NzwUkpNbv+zZ+be5+6RtU7UEMZ1K4FUusV7I3bSAwfiDHuZfY7cTBq6SOWoSkChNK5RjyJUHxTKsV+4U9QuwEqA4iAjiIEqueCa4BjIEUBAgUIGhA2kULBy5VT2Kth/MnAfCOHyNmIkAAPREAjds3la+I3XXuuiEb3HQzwoMo5mcYphY0LF+PsjGjBLGrCwsh2o2VJLaGqLOErVtAeTNCWtekhV9JNXVdcF75nk1L1nwCh9cS+/lU6frOUpKLi9a2g0L2cbFWCTEWCdKKEpmAJDZSQtFRU26C3to/jy7dxyuCNhHpaCDOI+Vac1NwgVlsOVRMITUOJRKh84/kFgVHHzjgiOGkYA3Lbn/m12/TaaaoPFkyiVXWh9Z4Wsrt3E/n3O3DGXcj+lIvr7WOw8jQl6laE0gYYICtA7w9/zrJt5hoevXI2y6uOJpNxSJmCjBPAMAUULMh4kDYhnYdUDpI5lFw7J4R38G8j3+brp6+ne/8k1JXSMTtOYV0WRdUQQhCZNnVd2UPzxxwRnNW08ZLcxscfFfZHqKECgeos7ocWrVduwRt/At4Dj5GMdqO9IOnGWo7WHkHVPgCl5YDTDoB6DPbLCks/nMIrl32bNbWS7RkXcjaYLpgm5LKQz0M2Dzn/NweZHKQKRBolZak8E4du4tqLVnLssfV4uxMkbwlivJ9HqAIlFjW7/Xl1P9G36lNN83+Ypczne2U2/W6pVfviGC1ioCppwqN1UtdsI/diCveuu0heeilt/vO4DsepT9Ej8Dhoe0DxXbZvlyYocZLLh/NMxxy2HTWQ99MFVhkelumB7YHlQaEAOb/7gxUgk4d0FpHJUp3KEm+3yLWojBrUyv2z36F3zyast4Kk78xg1WcRiiB+63VvJGbPnHRYWYHdsnt8ctW9y6WxGy2cJzq2HO+dJOmL38EZPoaW++6lo/9QWg2J5qWYoN9NPPAa6K2g+M7E9842uDoty85gqbyV7VXV1OYtVlmSdl812wVDh1wMMmnI+T3V2TMGJE1imXZ659rR8jbNrSEmndTKYz9bg58umQ8VSD21D2wHrUe3/d32fFB9SDgppWrsfPuG5MoFdyqBLLFRlSg1Fqkfv0zYDlJ3y220XHopSUNQbwUYSg3jAvcjAh8htC2gfmwIBTDLafzj2TwTv4E9JQkaDJuVlqTZV85UCJk5zuM1yt08Zbk0FYUkEaNANi3Y1RphdWMVtc0ldLEyBD2H7XUxnvjZBs791h6sZR7Zn9RjbUv75mlU1SwbFRw+fOvfA37CLKXMde/4w6+WF2rfPDrcL0Jwj2T/dS8Qqgox67zbOW7mdAZLm4acQ50XYojcwLnBhYhAO0LdCWpD5x4nwpAfyO5lp7Gk+3Sa9Ch7TZdVpqTNjxUzcX7YeyG/jN6A19YVjChkI5DUkWkJWZNUq8aiXcfweNNwNOlRyCr07ZVj6aJ1xIRF4Y42Ui/sRZEKifm3PVhy3fTpnw2X6xi177ezaoTaSiSok1qylepYG7cO+gGLe1/FjSeF6B2GvYZLmwsFKZmqP8mw4DLQXfz7wEISR2RjbF01nN/2/SFtBNlmurxtSizfLNMJLuj3GE+VXUXH5uOw7QBOVsPJqsVIxU27hFNZSlrb+G3DMdxXOJ2wYrOvJciieRv4+llN2IuzJO/ejZd2iUz5+ofls356gji+e/5vAT+hnFm78TvNv5vzdCiuorbkcVvqaejTk7H5O4lFYlx+Uin9K8I0GB4drkebF+Rk9X0uCD1KQM+Cv4n7Ia6ioGY83n9nGI8NuIx2V2O16bHbdyK+WWbjnNh1Gav7nk3yvdEYThA3r+P6YVhGIjM2dJiE93fgNBrMzJ/DulA/7LTH1HMauOXHW1HXp0n+qB5jX57gcSOSJT+/82uRcSevPihc+t2Xb0yueHReOKBgp7KUdtvN7MI53NN8BVppkglHV/AvR5XSakvaHUmzVCihjZnBRQwJ1OIpoc4QSQUt67D63WO4f9BlbHdUtlgejuU7k064geXr2H7sONIrh5O1SvAMDTcncLP+vmcj2g3E/izltftZmh7OjT2+TUUhzdCjctw/dz1drX2kf9BGamuGYK+eTuK+eVMj501eclC49pceWZipeXl6JKiB2ka0x0ecvu161mbHQ6lBIh5h0tHl9CoLU2+6NLsKWc/ipuBDnB14F1tEkfgRhEswa/Dceydw4+Cr2Osz+ar5YI6EXJiq8Hb2n3QCuZXDSGYq8fwE1k8kMk4nXFsB0ZylbGcrmzNdubD/ZWi2TUWJzYNz1zCi22by1xq0rjIJVFXI0vm3zYhc/L37DwrX8uTPFme3rpwajQQJlTXgVu3lmHfvosEdCqUSgiEisTAjeiWIR3TaPIU21+UmfR6X6M9iKqVFOEU3CeQy/GLNN7l9yM1kPOevYH76kheEaKNl/Hj098pobumNtPyk1YOMg0haiLYcojFLSW2GVjvB1F7TaJdhSjSHBTcv49Rj1lK4NULLSy6BylISd8+5OXrJhXcdFG7/f9z1m9zmty4KxwJEuzVCl48YsmIe9c4BuEgYAgHQA2jxGIFgAF2BO2I3c03oVzjoIAUi4KDmPea9N52fDJ1L3t/U/b3Nz1xMCwpOMUrZPWEG3TbV0ljXo1g8klnf2dgoSRNaMih1OWINJh0ixoU9L6KZEmKKzb3XP8P44zdg3FFNy3MeelUpifm33xK9+II7DwrX9tSC+en3Xvr3QCxIsDpNvN8HnPH21axo+hpU5sGHCwch5AMGIRCjXPe4s+xGLg8/hVOMmkEEQS1I5r4zg3mDb8WQfvTv26YfehlQ8CDnsHnSj+lf20zDti7gOJ2q+SbZ0Vnu0/aYlHSY7NXLisoVvAAR1eL+G57klOEfYdxWRetLFnp1BaUL7rwu8t1v/uKgcJlXn7689dmHF6klQbRyj/IhHzJvx+ncvvYq6JaG8MdwQQgGIBBlQKDA/Irr+HpoBa4sJl0I3Stm2zPfm8lDfS/FE3l/0YFldSpneJDy+GDy+QyqE9Sv74Xws/aMjUiaiNYsSpOBWu+SKGR5N9qPab2mUWIZJCJ5HrzxCUb0aadwSzltb6YJ9u3tld5/9+Xhs8989KBwhQ/WnN7802tXUBpGj2pEerbRGNEZs3wG+UAU4gqEQhA6AKfHmBjdwi+73ExPbT9u0Sw9hGLT6vTg2k238Gz52M6Sg2+Wlt0J6G/kHQprpkzj2MYCde/1R/UKiJQJ7XmUDgNtjwUdHgk3yxNlY7m962QqjByDejTxwHW/pVpTyN0QIfVhO5HTTjHjd9/xrdDY4148KJxsb+/deP1FK20n2VeJBJGKSfeBGa6vm8h9eyZCwoSwDkHfNFUiSjXXd32EmeVLcfyCkChaJUJYbGofyrVtN7Im1NWvAHXCFc3SV8+BDo0V/3obJ+yvo25Nd1THhzOKgFqDgaizCXomtlCY0eO7rA/3xsqqnH9qDbOnLYc9CXKzC+T3pUlcN31jYtaMs0RlpR8i/aX9Xfglw+3zblqQWfPHy6iIoRg2tLYgB8X5fvq7LBOjQctD0CfoyqCSBv5w1F2Ua1lMGUD4RRwkkRKdpe8fxwz7YtqiIbAKxSC3COerZziQVHltwkOc3raN+g2lqLaJyJio+w3EDgPFdin30rwQH8mcblMIY9LQXsLDV/2eM0+pw3ojTv6hBty0Q9XzT84PnXPWzM8Mv/yTxltvTmye86M/ytIgVMXgwxai62vJVET5SdfzeKnXqWTVMoIhmxdHLmJEpIG0F0coLkKAaxnEulUyZ+3ZLDBHQdA64Ez+Bs5XLqPx6vG/YnzHZup3VKGaeZSWAuquAsGMSYnI8EbsGOZ0PZecFiKb0ji2TwtPXv0qGhG8xQaZP+5BETrV9RtP0aur3z4knNy5s0vrPXOfym9eO1FWRIqAsjZNdOs+AkaB3ZEuNA/sQ8+THHrF83Q4YYQqi2AeklDAYTf9mbr5PHaoCfD8wuSBNKeonL8NOCgZleXHPsKJmR3U76pCT2aI7M1gZV1269W8HD+W5xOjMBUdzbRJGwEW/2AZXxnSirEpivdELfaeDOEzJ+6reGVJHyFEZ4HzYGb58fHc08+ck1w4/3mbDJSFkNUxfyGhOg5R3UEvVzGjQTK2VlSsM0kFz7Xp2SvEnG2T+Gn9sE7VfDDXj0585Rx0y0Y3XfQc/GHIE4xs3cm+nTFizSkaC3EeLj+Nd6JH0aqVEPGsonnmbY0fnb6JK07bQjIfR3+lFXPF3mLBt+LlJfPCX51w0yHzuY8vkE1N0dR9D92cfW7JLDfuIcuCyHgISkLIkB+aCVAVfOdYDJZVcKVHZcRgvTKMb9VMoK1YhrOLRVnVddFtl5DtELUcNMM/Jlk67BmGrN9Kx26VdjfEnK5TWB3pR0RahFybjB0gpDl8f8QOLhm9lUIogv5hHvfZXbgpm8DI4U6XmhU9hRDNhw3nXyi3NVZ2zJq1MPv28u/KCg1ZHkTG9M4NPKQh/fjTD080xX+BJHQLlDIm7jyTbZkYumaieH627hFwXYKOR8B20S0Xx5AEooJnhz5L799tJGkGWVp2HPdVn0HAc8i6OpanMSzeyvcGbmdSrwZkuY7eaCKX7sHeX0AoKmWLfvFk7LKLLjyiAtFfFEwmy3JX3HRP+3NLv++VKojKIDIRgLCGDOjIgILUBKVBP4er5Pt7xvNGrpIeAb8CJotwwv91fKX8gqxEcT0Ktkqip+DlAU8Te2xr0QRnd5/CkvgYEk6eoVozZ1V+xDnVH1Eas7DKNYL1Gezft+Dk/X1UI3jqWLfs8QfG6X36/OlzwRUV9L/DLXrqUvOeBY9oDdtxwxKzNIgX14n4W0IwyCaO4pb2saw1S+mj53H8Behbpb9j+L/Fvw8cQJA2dPoNM3i9z6OkFrVSUMLsiHVlQ6I3/WMdnFRSRzxi015ejqe76DtTmOsNpKejqAoiGqX00XvnRL895Y6DgRXn/qyTf3tu35a6cW/c9JtX+dPqUA+zAyUo2FtSwbpAL5Y7PUh6OlWqgee7zf/R/Er0Xw+2ZcKMPa2R/6pYSNODIWwlQNzLExZmcU2nusdwSv191kPW53FTXrH45Ncq0XWil130VumsmVNF9/K9XwqcP8jKNY2nLVywauWumt24tkdG6JgIYsImLJwD8xz6fTV3lDD1gtXMzz5N/aMVRQdVvKuoskTE/FKMgpf36zG+BD6Y77wUgqedlCmdf8dX9dHDP5F1H5FDOdgbqanZe/z8+SvWbqipR8Pz84Ajar4TbctGuOXyVfxw9Yvsfa0U5WO4A4Cy6Gn93eeTimsD+pF4+N4J4XGnvHk4kx76NX/KKJs3Nx3zwL0rFr+9aufIw5nkb6/xMx9LBHjw2g1M+vmz7N0VRlXVQw6jVJRR9vhD48NnTVpxyIsP24YOMlI6na58/Nfrrnny8bW3GgU/vT689ZvO6HQfZPL4zOfpMnkL7W4MTf3Y2Xz6ZFrf3pQveeS4wPHH1xwu2BE5lIMN+v66htEPLFxx0wcb6s8zTcf3rge5tPP4/vY4ky/ewLwz/ovCpACeoqEUXeqnNFUlcOLxbfFfLjgxNGzAziMB+1LgistEyvArL344+cUXNl5Vu6v1tEzawDAcXH9v+0uTGEagqO/c+57hG3+uoXFuJYrqfarkalUlwbMmvhS6ecaVkQED6o4U7EuD+3hivxxfU1N30pYPGk/euaPljKamzPhMxsA0bAzD/4DjcfqEFVwx9TWi0yzaVsfRVb+w8temlJehjxllRqee/73w+ec+d6hPw58F/bkcyuG8RSllvLExc0w6nRtkFuz+2azopmtrhvU/6uqxZW/to/WqBFaL/5VVIlQFpboLwVNPJPDVibOiE05eLHr1+kTieThz/v01/2twn/YwUr5yr9zzzRm56z2Sz5Wgda1CH3EsgbFjtgWOH/nL4OABvxd9+9Z+HpBPu+cfC2dsme4sW3ylublsoNJ7YL0+esTzWmnZk1Qmtgkhsl8W1Mfj/EPhDjif/kCHEOKQ/0fyRWH/4XBf9IGP5P5/arj/Bk2wyc5dYFHmAAAAAElFTkSuQmCC";function Mo(e){this.message=e}Mo.prototype=new Error,Mo.prototype.name="InvalidCharacterError";var Lo="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Mo("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,o=0,a="";r=t.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?a+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function Zo(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(Lo(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return Lo(t)}}function Io(e){this.message=e}Io.prototype=new Error,Io.prototype.name="InvalidTokenError";var Do=function(e,t){if("string"!=typeof e)throw new Io("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(Zo(e.split(".")[n]))}catch(e){throw new Io("Invalid token specified: "+e.message)}},jo=function(e){var t=e.option,n=e.setOption,r=Do(localStorage.getItem("user"));return(0,tn.jsx)("div",{className:"headerDiv",style:{padding:"5px"},children:(0,tn.jsxs)("div",{className:"titleHeader",children:[(0,tn.jsxs)("span",{className:"logoHeader",children:["NETW",(0,tn.jsx)("img",{src:To,width:"45px"}),"RK",(0,tn.jsx)(Oo,{height:18,width:18,style:{color:"rgb(222 83 48)",margin:"0 8px"}})," ","TOOL"]}),(0,tn.jsxs)("div",{className:"optionHeader",children:[(0,tn.jsx)(Bn,{id:"btnOption",variant:"Op1"===t?"contained":"outlined",size:"small",onClick:function(){return n("Op1")},children:"test device"}),(0,tn.jsx)(Bn,{id:"btnOption",variant:"Op4"===t?"contained":"outlined",style:{display:0===r.role?"block":"none"},size:"small",onClick:function(){return n("Op4")},children:"Network setting"}),(0,tn.jsx)(Bn,{id:"btnOption",variant:"Op3"===t?"contained":"outlined",size:"small",style:{display:0===r.role?"block":"none"},onClick:function(){return n("Op3")},children:"Manage command"}),(0,tn.jsx)(Bn,{id:"btnOption",variant:"Op2"===t?"contained":"outlined",style:{display:0===r.role?"block":"none"},size:"small",onClick:function(){return n("Op2")},children:"Manage error"}),(0,tn.jsx)(Bn,{id:"btnOption",variant:"Op5"===t?"contained":"outlined",style:{display:0===r.role?"block":"none"},size:"small",onClick:function(){return n("Op5")},children:"Manage value"}),(0,tn.jsx)(Bn,{id:"btnOption",variant:"Op6"===t?"contained":"outlined",style:{display:0===r.role?"block":"none"},size:"small",onClick:function(){return n("Op6")},children:"Manage Items"})]}),(0,tn.jsxs)("div",{style:{position:"absolute",right:15},children:[(0,tn.jsxs)("span",{style:{fontSize:"0.8rem",fontWeight:700,fontStyle:"italic",color:"rgb(0 124 196)"},children:["Hello ",r.username.toUpperCase()]}),(0,tn.jsx)(vo,{title:"Logout",children:(0,tn.jsx)(Bn,{style:{textTransform:"none",fontStyle:"italic",color:"orange"},onClick:function(){localStorage.clear(),window.location.reload()},children:(0,tn.jsx)(Po.Z,{fontSize:"small"})})})]})]})})},Ao="undefined"!==typeof document?t.useLayoutEffect:t.useEffect,No=function(){return"mantine-".concat(Math.random().toString(36).slice(2,11))},Fo=t["useId".toString()]||function(){};function zo(e){return"string"===typeof e?e:function(){var e=Fo();return e?"mantine-".concat(e.replace(/:/g,"")):""}()||function(){var e=(0,t.useState)(""),n=(0,u.Z)(e,2),r=n[0],i=n[1];return Ao((function(){i(No())}),[]),r}()}var Bo=/input|select|textarea|button|object/,Ho="a, input, select, textarea, button, object, [tabindex]";function Wo(e){return"none"===e.style.display}function Uo(e){var t=e.getAttribute("tabindex");return null===t&&(t=void 0),parseInt(t,10)}function Vo(e){var t=e.nodeName.toLowerCase(),n=!Number.isNaN(Uo(e));return(Bo.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&function(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||"hidden"===e.getAttribute("type"))return!1;for(var t=e;t&&t!==document.body&&11!==t.nodeType;){if(Wo(t))return!1;t=t.parentNode}return!0}(e)}function qo(e){var t=Uo(e);return(Number.isNaN(t)||t>=0)&&Vo(e)}function Ko(e,t){var n,r=(n=e,Array.from(n.querySelectorAll(Ho)).filter(qo));if(r.length){var i=r[t.shiftKey?0:r.length-1],o=e.getRootNode();if(i===o.activeElement||e===o.activeElement){t.preventDefault();var a=r[t.shiftKey?r.length-1:0];a&&a.focus()}}else t.preventDefault()}function Yo(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=(0,t.useRef)(),r=(0,t.useRef)(null),i=(0,t.useCallback)((function(t){if(e)if(null!==t){if(r.current=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body > :not(script)",n=Array.from(document.querySelectorAll(t)).map((function(t){var n;if(!(null==(n=null==t?void 0:t.shadowRoot)?void 0:n.contains(e))&&!t.contains(e)){var r=t.getAttribute("aria-hidden");return null!==r&&"false"!==r||t.setAttribute("aria-hidden","true"),{node:t,ariaHidden:r}}}));return function(){n.forEach((function(e){e&&(null===e.ariaHidden?e.node.removeAttribute("aria-hidden"):e.node.setAttribute("aria-hidden",e.ariaHidden))}))}}(t),n.current!==t)if(t){setTimeout((function(){t.getRootNode()&&function(){var e=t.querySelector("[data-autofocus]");if(!e){var n=Array.from(t.querySelectorAll(Ho));!(e=n.find(qo)||n.find(Vo)||null)&&Vo(t)&&(e=t)}e&&e.focus({preventScroll:!0})}()})),n.current=t}else n.current=null}else r.current&&(r.current(),r.current=null)}),[e]);return(0,t.useEffect)((function(){if(e){var t=function(e){"Tab"===e.key&&n.current&&Ko(n.current,e)};return document.addEventListener("keydown",t),function(){document.removeEventListener("keydown",t),r.current&&r.current()}}}),[e]),i}function Go(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){return function(e,t){"function"===typeof e?e(t):"object"===typeof e&&null!==e&&"current"in e&&(e.current=t)}(t,e)}))}}function Xo(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0,t.useCallback)(Go.apply(void 0,n),n)}var $o=function(e){var t=e.disableBodyPadding?null:"undefined"===typeof window||"undefined"===typeof document?0:parseInt(window.getComputedStyle(document.body).paddingRight,10)+(window.innerWidth-document.documentElement.clientWidth);return"body {\n --removed-scroll-width: ".concat(t,"px;\n touch-action: none;\n overflow: hidden !important;\n position: relative !important;\n ").concat(t?"padding-right: var(--removed-scroll-width) !important;":"","\n ")};function Jo(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{disableBodyPadding:!1},r=(0,t.useState)(e||!1),i=(0,u.Z)(r,2),o=i[0],a=i[1],l=(0,t.useRef)(0),s=n.disableBodyPadding,c=(0,t.useRef)(null),d=function(){l.current=window.scrollY;var e,t=$o({disableBodyPadding:s}),n=function(){var e=document.createElement("style");return e.type="text/css",e.setAttribute("mantine-scroll-lock",""),e}();!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(n,t),e=n,(document.head||document.getElementsByTagName("head")[0]).appendChild(e),c.current=n},f=function(){(null==c?void 0:c.current)&&(c.current.parentNode.removeChild(c.current),c.current=null)};return(0,t.useEffect)((function(){return o?d():f(),f}),[o]),(0,t.useEffect)((function(){void 0!==e&&a(e)}),[e]),(0,t.useEffect)((function(){void 0===e&&"undefined"!==typeof window&&"hidden"===window.document.body.style.overflow&&a(!0)}),[a]),[o,a]}function Qo(e,n){var r=(0,t.useRef)(!1);(0,t.useEffect)((function(){return function(){r.current=!1}}),[]),(0,t.useEffect)((function(){if(r.current)return e();r.current=!0}),n)}function ea(e){var n=e.opened,r=e.shouldReturnFocus,i=void 0===r||r,o=(0,t.useRef)(),a=function(){var e;o.current&&"focus"in o.current&&"function"===typeof o.current.focus&&(null==(e=o.current)||e.focus({preventScroll:!0}))};return Qo((function(){var e=-1,t=function(t){"Tab"===t.key&&window.clearTimeout(e)};return document.addEventListener("keydown",t),n?o.current=document.activeElement:i&&(e=window.setTimeout(a,10)),function(){window.clearTimeout(e),document.removeEventListener("keydown",t)}}),[n,i]),a}function ta(e,n,r){(0,t.useEffect)((function(){return window.addEventListener(e,n,r),function(){return window.removeEventListener(e,n,r)}}),[e,n])}var na={app:100,modal:200,popover:300,overlay:400,max:9999};function ra(e){return na[e]}var ia={dark:["#C1C2C5","#A6A7AB","#909296","#5c5f66","#373A40","#2C2E33","#25262b","#1A1B1E","#141517","#101113"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]};var oa=Object.defineProperty,aa=Object.getOwnPropertySymbols,la=Object.prototype.hasOwnProperty,sa=Object.prototype.propertyIsEnumerable,ca=function(e,t,n){return t in e?oa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},ua=function(e,t){for(var n in t||(t={}))la.call(t,n)&&ca(e,n,t[n]);if(aa){var r,i=ot(aa(t));try{for(i.s();!(r=i.n()).done;){n=r.value;sa.call(t,n)&&ca(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e};function da(e){return function(t){return"number"===typeof e.primaryShade?e.primaryShade:e.primaryShade[t||e.colorScheme]}}function fa(e){var t=da(e);return function(n,r){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if("string"===typeof n&&n.includes(".")){var a=n.split("."),l=(0,u.Z)(a,2),s=l[0],c=l[1],d=parseInt(c,10);if(s in e.colors&&d>=0&&d<10)return e.colors[s]["number"!==typeof r||o?d:r]}var f="number"===typeof r?r:t();return n in e.colors?e.colors[n][f]:i?e.colors[e.primaryColor][f]:n}}function ha(e){for(var t="",n=1;n<e.length-1;n+=1)t+="".concat(e[n]," ").concat(n/(e.length-1)*100,"%, ");return"".concat(e[0]," 0%, ").concat(t).concat(e[e.length-1]," 100%")}function pa(e){var t=fa(e),n=da(e);return function(r){var i={from:(null==r?void 0:r.from)||e.defaultGradient.from,to:(null==r?void 0:r.to)||e.defaultGradient.to,deg:(null==r?void 0:r.deg)||e.defaultGradient.deg};return"linear-gradient(".concat(i.deg,"deg, ").concat(t(i.from,n(),!1)," 0%, ").concat(t(i.to,n(),!1)," 100%)")}}function va(e){if("number"===typeof e.size)return e.size;var t=e.sizes[e.size];return void 0!==t?t:e.size||e.sizes.md}function ma(e){return/^#?([0-9A-F]{3}){1,2}$/i.test(e)?function(e){var t=e.replace("#","");if(3===t.length){var n=t.split("");t=[n[0],n[0],n[1],n[1],n[2],n[2]].join("")}var r=parseInt(t,16);return{r:r>>16&255,g:r>>8&255,b:255&r,a:1}}(e):e.startsWith("rgb")?function(e){var t=e.replace(/[^0-9,.]/g,"").split(",").map(Number),n=(0,u.Z)(t,4);return{r:n[0],g:n[1],b:n[2],a:n[3]||1}}(e):{r:0,g:0,b:0,a:1}}function ga(e,t){if("string"!==typeof e||t>1||t<0)return"rgba(0, 0, 0, 1)";var n=ma(e),r=n.r,i=n.g,o=n.b;return"rgba(".concat(r,", ").concat(i,", ").concat(o,", ").concat(t,")")}var ya={fontStyles:function(e){return function(){return{fontFamily:e.fontFamily||"sans-serif"}}},themeColor:fa,focusStyles:function(e){return function(t){var n;return n={WebkitTapHighlightColor:"transparent"},(0,o.Z)(n,t||"&:focus",ua({},"always"===e.focusRing||"auto"===e.focusRing?e.focusRingStyles.styles(e):e.focusRingStyles.resetStyles(e))),(0,o.Z)(n,t?t.replace(":focus",":focus:not(:focus-visible)"):"&:focus:not(:focus-visible)",ua({},"auto"===e.focusRing||"never"===e.focusRing?e.focusRingStyles.resetStyles(e):null)),n}},linearGradient:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"linear-gradient(".concat(e,"deg, ").concat(ha(n),")")},radialGradient:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"radial-gradient(circle, ".concat(ha(t),")")},smallerThan:function(e){return function(t){return"@media (max-width: ".concat(va({size:t,sizes:e.breakpoints})-1,"px)")}},largerThan:function(e){return function(t){return"@media (min-width: ".concat(va({size:t,sizes:e.breakpoints}),"px)")}},rgba:ga,size:va,cover:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return{position:"absolute",top:e,right:e,left:e,bottom:e}},darken:function(e,t){var n=ma(e),r=n.r,i=n.g,o=n.b,a=n.a,l=1-t,s=function(e){return Math.round(e*l)};return"rgba(".concat(s(r),", ").concat(s(i),", ").concat(s(o),", ").concat(a,")")},lighten:function(e,t){var n=ma(e),r=n.r,i=n.g,o=n.b,a=n.a,l=function(e){return Math.round(e+(255-e)*t)};return"rgba(".concat(l(r),", ").concat(l(i),", ").concat(l(o),", ").concat(a,")")},radius:function(e){return function(t){if("number"===typeof t)return t;var n="number"===typeof e.defaultRadius?e.defaultRadius:e.radius[e.defaultRadius]||e.defaultRadius;return e.radius[t]||t||n}},variant:function(e){var t=fa(e),n=da(e),r=pa(e);return function(i){var o=i.variant,a=i.color,l=i.gradient,s=i.primaryFallback,c=function(e,t){if("string"===typeof e&&e.includes(".")){var n=e.split("."),r=(0,u.Z)(n,2),i=r[0],o=r[1],a=parseInt(o,10);if(i in t.colors&&a>=0&&a<10)return{isSplittedColor:!0,key:i,shade:a}}return{isSplittedColor:!1}}(a,e);switch(o){case"light":return{border:"transparent",background:ga(t(a,"dark"===e.colorScheme?8:0,s,!1),"dark"===e.colorScheme?.2:1),color:"dark"===a?"dark"===e.colorScheme?e.colors.dark[0]:e.colors.dark[9]:t(a,"dark"===e.colorScheme?2:n("light")),hover:ga(t(a,"dark"===e.colorScheme?7:1,s,!1),"dark"===e.colorScheme?.25:.65)};case"subtle":return{border:"transparent",background:"transparent",color:"dark"===a?"dark"===e.colorScheme?e.colors.dark[0]:e.colors.dark[9]:t(a,"dark"===e.colorScheme?2:n("light")),hover:ga(t(a,"dark"===e.colorScheme?8:0,s,!1),"dark"===e.colorScheme?.2:1)};case"outline":return{border:t(a,"dark"===e.colorScheme?5:n("light")),background:"transparent",color:t(a,"dark"===e.colorScheme?5:n("light")),hover:"dark"===e.colorScheme?ga(t(a,5,s,!1),.05):ga(t(a,0,s,!1),.35)};case"default":return{border:"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[4],background:"dark"===e.colorScheme?e.colors.dark[6]:e.white,color:"dark"===e.colorScheme?e.white:e.black,hover:"dark"===e.colorScheme?e.colors.dark[5]:e.colors.gray[0]};case"white":return{border:"transparent",background:e.white,color:t(a,n()),hover:null};case"transparent":return{border:"transparent",color:"dark"===a?"dark"===e.colorScheme?e.colors.dark[0]:e.colors.dark[9]:t(a,"dark"===e.colorScheme?2:n("light")),background:"transparent",hover:null};case"gradient":return{background:r(l),color:e.white,border:"transparent",hover:null};default:var d=n(),f=c.isSplittedColor?c.shade:d,h=c.isSplittedColor?c.key:a;return{border:"transparent",background:t(h,f,s),color:e.white,hover:t(h,9===f?8:f+1)}}}},primaryShade:da,hover:function(e){return{"@media (hover: hover)":{"&:hover":e},"@media (hover: none)":{"&:active":e}}},gradient:pa,primaryColor:function(e){return function(t){var n=da(e)(t);return e.colors[e.primaryColor][n]}},placeholderStyles:function(e){return function(){return{userSelect:"none",color:"dark"===e.colorScheme?e.colors.dark[3]:e.colors.gray[5]}}}},ba=Object.defineProperty,_a=Object.defineProperties,wa=Object.getOwnPropertyDescriptors,Sa=Object.getOwnPropertySymbols,xa=Object.prototype.hasOwnProperty,Ca=Object.prototype.propertyIsEnumerable,ka=function(e,t,n){return t in e?ba(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Ea=function(e,t){for(var n in t||(t={}))xa.call(t,n)&&ka(e,n,t[n]);if(Sa){var r,i=ot(Sa(t));try{for(i.s();!(r=i.n()).done;){n=r.value;Ca.call(t,n)&&ka(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},Ra=function(e,t){return _a(e,wa(t))};function Oa(e){return Ra(Ea({},e),{fn:{fontStyles:ya.fontStyles(e),themeColor:ya.themeColor(e),focusStyles:ya.focusStyles(e),largerThan:ya.largerThan(e),smallerThan:ya.smallerThan(e),radialGradient:ya.radialGradient,linearGradient:ya.linearGradient,gradient:ya.gradient(e),rgba:ya.rgba,size:ya.size,cover:ya.cover,lighten:ya.lighten,darken:ya.darken,primaryShade:ya.primaryShade(e),radius:ya.radius(e),variant:ya.variant(e),hover:ya.hover,primaryColor:ya.primaryColor(e),placeholderStyles:ya.placeholderStyles(e)}})}Object.keys(ia);var Pa=Oa({dir:"ltr",primaryShade:{light:6,dark:8},focusRing:"auto",loader:"oval",dateFormat:"MMMM D, YYYY",colorScheme:"light",white:"#fff",black:"#000",defaultRadius:"sm",transitionTimingFunction:"ease",colors:ia,lineHeight:1.55,fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",primaryColor:"blue",respectReducedMotion:!0,cursorType:"default",defaultGradient:{from:"indigo",to:"cyan",deg:45},shadows:{xs:"0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1)",sm:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 10px 15px -5px, rgba(0, 0, 0, 0.04) 0px 7px 7px -5px",md:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px",lg:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 28px 23px -7px, rgba(0, 0, 0, 0.04) 0px 12px 12px -7px",xl:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 36px 28px -7px, rgba(0, 0, 0, 0.04) 0px 17px 17px -7px"},fontSizes:{xs:12,sm:14,md:16,lg:18,xl:20},radius:{xs:2,sm:4,md:8,lg:16,xl:32},spacing:{xs:10,sm:12,md:16,lg:20,xl:24},breakpoints:{xs:576,sm:768,md:992,lg:1200,xl:1400},headings:{fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontWeight:700,sizes:{h1:{fontSize:34,lineHeight:1.3,fontWeight:void 0},h2:{fontSize:26,lineHeight:1.35,fontWeight:void 0},h3:{fontSize:22,lineHeight:1.4,fontWeight:void 0},h4:{fontSize:18,lineHeight:1.45,fontWeight:void 0},h5:{fontSize:16,lineHeight:1.5,fontWeight:void 0},h6:{fontSize:14,lineHeight:1.5,fontWeight:void 0}}},other:{},components:{},activeStyles:{transform:"translateY(1px)"},datesLocale:"en",globalStyles:void 0,focusRingStyles:{styles:function(e){return{outlineOffset:2,outline:"2px solid ".concat(e.colors[e.primaryColor]["dark"===e.colorScheme?7:5])}},resetStyles:function(){return{outline:"none"}},inputStyles:function(e){return{outline:"none",borderColor:e.colors[e.primaryColor]["object"===typeof e.primaryShade?e.primaryShade[e.colorScheme]:e.primaryShade]}}}});Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function Ta(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}var Ma=Object.defineProperty,La=Object.getOwnPropertySymbols,Za=Object.prototype.hasOwnProperty,Ia=Object.prototype.propertyIsEnumerable,Da=function(e,t,n){return t in e?Ma(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},ja=function(e,t){for(var n in t||(t={}))Za.call(t,n)&&Da(e,n,t[n]);if(La){var r,i=ot(La(t));try{for(i.s();!(r=i.n()).done;){n=r.value;Ia.call(t,n)&&Da(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},Aa=(0,t.createContext)({theme:Pa});function Na(){var e;return(null==(e=(0,t.useContext)(Aa))?void 0:e.theme)||Pa}function Fa(){var e;return null==(e=(0,t.useContext)(Aa))?void 0:e.emotionCache}function za(e,t,n){var r,i=Na(),o=null==(r=i.components[e])?void 0:r.defaultProps,a="function"===typeof o?o(i):o;return ja(ja(ja({},t),a),Ta(n))}function Ba(e){var t,n,r="";if("string"===typeof e||"number"===typeof e)r+=e;else if("object"===typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Ba(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ha(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ba(e))&&(r&&(r+=" "),r+=t);return r}var Wa=(0,Kt.Z)({key:"mantine",prepend:!0});var Ua=Object.defineProperty,Va=Object.getOwnPropertySymbols,qa=Object.prototype.hasOwnProperty,Ka=Object.prototype.propertyIsEnumerable,Ya=function(e,t,n){return t in e?Ua(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Ga=function(e,t){for(var n in t||(t={}))qa.call(t,n)&&Ya(e,n,t[n]);if(Va){var r,i=ot(Va(t));try{for(i.s();!(r=i.n()).done;){n=r.value;Ka.call(t,n)&&Ya(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},Xa="ref";var $a={cssFactory:function(e){var t=e.cache,n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=function(e){var t;if(1!==e.length)return{args:e,ref:t};var n=(0,u.Z)(e,1)[0];if(!(n instanceof Object))return{args:e,ref:t};if(!(Xa in n))return{args:e,ref:t};t=n[Xa];var r=Ga({},n);return delete r[Xa],{args:[r],ref:t}}(n),o=i.ref,a=i.args,l=(0,Xt.O)(a,t.registered);return(0,Gt.My)(t,l,!1),"".concat(t.key,"-").concat(l.name).concat(void 0===o?"":" ".concat(o))};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return function(e,t,n){var r=[],i=(0,Gt.fp)(e,r,n);return r.length<2?n:i+t(r)}(t.registered,n,Ha(r))}}}},Ja=$a.cssFactory;function Qa(){var e=Fa()||Wa;return function(e,n){var r=(0,t.useRef)();return(!r.current||n.length!==r.current.prevDeps.length||r.current.prevDeps.map((function(e,t){return e===n[t]})).indexOf(!1)>=0)&&(r.current={v:e(),prevDeps:(0,v.Z)(n)}),r.current.v}((function(){return Ja({cache:e})}),[e])}function el(e){var t=e.cx,n=e.classes,r=e.context,i=e.classNames,o=e.name,a=e.cache,l=r.reduce((function(e,t){return Object.keys(t.classNames).forEach((function(n){"string"!==typeof e[n]?e[n]="".concat(t.classNames[n]):e[n]="".concat(e[n]," ").concat(t.classNames[n])})),e}),{});return Object.keys(n).reduce((function(e,r){return e[r]=t(n[r],l[r],null!=i&&i[r],Array.isArray(o)?o.filter(Boolean).map((function(e){return"".concat((null==a?void 0:a.key)||"mantine","-").concat(e,"-").concat(r)})).join(" "):o?"".concat((null==a?void 0:a.key)||"mantine","-").concat(o,"-").concat(r):null),e}),{})}var tl=Object.defineProperty,nl=Object.getOwnPropertySymbols,rl=Object.prototype.hasOwnProperty,il=Object.prototype.propertyIsEnumerable,ol=function(e,t,n){return t in e?tl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},al=function(e,t){for(var n in t||(t={}))rl.call(t,n)&&ol(e,n,t[n]);if(nl){var r,i=ot(nl(t));try{for(i.s();!(r=i.n()).done;){n=r.value;il.call(t,n)&&ol(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e};function ll(e){return"__mantine-ref-".concat(e||"")}function sl(e,t,n){var r=function(e){return"function"===typeof e?e(t,n||{}):e||{}};return Array.isArray(e)?e.map((function(e){return r(e.styles)})).reduce((function(e,t){return Object.keys(t).forEach((function(n){e[n]?e[n]=al(al({},e[n]),t[n]):e[n]=al({},t[n])})),e}),{}):r(e)}function cl(e){var t="function"===typeof e?e:function(){return e};return function(e,n){var r=Na(),i=function(e){var t=Na(),n=function(e){var n,r;return{styles:(null==(n=t.components[e])?void 0:n.styles)||{},classNames:(null==(r=t.components[e])?void 0:r.classNames)||{}}};return Array.isArray(e)?e.map(n):[n(e)]}(null==n?void 0:n.name),a=Fa(),l=Qa(),s=l.css,c=l.cx,u=t(r,e,ll),d=sl(null==n?void 0:n.styles,r,e),f=sl(i,r,e),h=Object.fromEntries(Object.keys(u).map((function(e){return[e,c((0,o.Z)({},s(u[e]),!(null==n?void 0:n.unstyled)),s(f[e]),s(d[e]))]})));return{classes:el({cx:c,classes:h,context:i,classNames:null==n?void 0:n.classNames,name:null==n?void 0:n.name,cache:a}),cx:c,theme:r}}}var ul=Object.defineProperty,dl=Object.getOwnPropertySymbols,fl=Object.prototype.hasOwnProperty,hl=Object.prototype.propertyIsEnumerable,pl=function(e,t,n){return t in e?ul(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},vl=function(e,t){for(var n in t||(t={}))fl.call(t,n)&&pl(e,n,t[n]);if(dl){var r,i=ot(dl(t));try{for(i.s();!(r=i.n()).done;){n=r.value;hl.call(t,n)&&pl(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},ml={xs:320,sm:380,md:440,lg:620,xl:780};function gl(e){return e?{position:"absolute",top:0,left:0,right:0,bottom:0,maxHeight:"100vh",overflowY:"auto"}:{}}var yl=cl((function(e,t){var n=t.overflow,r=t.size,i=t.centered,o=t.zIndex,a=t.fullScreen;return{close:{},overlay:{display:a?"none":void 0},root:{position:"fixed",zIndex:o,top:0,left:0,right:0,bottom:0},inner:{position:"absolute",top:0,left:0,right:0,bottom:0,overflowY:"auto",padding:a?0:"".concat(2*e.spacing.xl,"px ").concat(e.spacing.md,"px"),display:"flex",justifyContent:"center",alignItems:i?"center":"flex-start"},title:{marginRight:e.spacing.md,textOverflow:"ellipsis",display:"block",wordBreak:"break-word"},modal:vl({position:"relative",width:a?"100vw":e.fn.size({sizes:ml,size:r}),borderRadius:a?0:void 0,outline:0,backgroundColor:"dark"===e.colorScheme?e.colors.dark[7]:e.white,marginTop:i?"auto":void 0,marginBottom:i?"auto":void 0,zIndex:1},gl(a)),header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:e.spacing.md,marginRight:-9},body:{maxHeight:"inside"===n?"calc(100vh - 185px)":null,overflowY:"inside"===n?"auto":null,wordBreak:"break-word"}}})),bl=yl;function _l(e){var n=za("Portal",{},e),r=n.children,i=n.target,o=n.className,a=Na(),l=(0,t.useState)(!1),s=(0,u.Z)(l,2),c=s[0],d=s[1],f=(0,t.useRef)();return Ao((function(){return d(!0),f.current=i?"string"===typeof i?document.querySelector(i):i:document.createElement("div"),i||document.body.appendChild(f.current),function(){!i&&document.body.removeChild(f.current)}}),[i]),c?(0,Kn.createPortal)(t.createElement("div",{className:o,dir:a.dir},r),f.current):null}_l.displayName="@mantine/core/Portal";var wl=Object.defineProperty,Sl=Object.getOwnPropertySymbols,xl=Object.prototype.hasOwnProperty,Cl=Object.prototype.propertyIsEnumerable,kl=function(e,t,n){return t in e?wl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},El=function(e,t){for(var n in t||(t={}))xl.call(t,n)&&kl(e,n,t[n]);if(Sl){var r,i=ot(Sl(t));try{for(i.s();!(r=i.n()).done;){n=r.value;Cl.call(t,n)&&kl(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},Rl=function(e,t){var n={};for(var r in e)xl.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Sl){var i,o=ot(Sl(e));try{for(o.s();!(i=o.n()).done;){r=i.value;t.indexOf(r)<0&&Cl.call(e,r)&&(n[r]=e[r])}}catch(pW){o.e(pW)}finally{o.f()}}return n};function Ol(e){var n=e,r=n.withinPortal,i=void 0===r||r,o=n.children,a=Rl(n,["withinPortal","children"]);return i?t.createElement(_l,El({},a),o):t.createElement(t.Fragment,null,o)}Ol.displayName="@mantine/core/OptionalPortal";var Pl=Object.defineProperty,Tl=Object.defineProperties,Ml=Object.getOwnPropertyDescriptors,Ll=Object.getOwnPropertySymbols,Zl=Object.prototype.hasOwnProperty,Il=Object.prototype.propertyIsEnumerable,Dl=function(e,t,n){return t in e?Pl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},jl=function(e,t){for(var n in t||(t={}))Zl.call(t,n)&&Dl(e,n,t[n]);if(Ll){var r,i=ot(Ll(t));try{for(i.s();!(r=i.n()).done;){n=r.value;Il.call(t,n)&&Dl(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},Al=function(e,t){return Tl(e,Ml(t))},Nl={in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(.9) translateY(10px)"},transitionProperty:"transform, opacity"},Fl={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:Al(jl({},Nl),{common:{transformOrigin:"center center"}}),"pop-bottom-left":Al(jl({},Nl),{common:{transformOrigin:"bottom left"}}),"pop-bottom-right":Al(jl({},Nl),{common:{transformOrigin:"bottom right"}}),"pop-top-left":Al(jl({},Nl),{common:{transformOrigin:"top left"}}),"pop-top-right":Al(jl({},Nl),{common:{transformOrigin:"top right"}})},zl=Object.defineProperty,Bl=Object.getOwnPropertySymbols,Hl=Object.prototype.hasOwnProperty,Wl=Object.prototype.propertyIsEnumerable,Ul=function(e,t,n){return t in e?zl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Vl=function(e,t){for(var n in t||(t={}))Hl.call(t,n)&&Ul(e,n,t[n]);if(Bl){var r,i=ot(Bl(t));try{for(i.s();!(r=i.n()).done;){n=r.value;Wl.call(t,n)&&Ul(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},ql={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function Kl(e){var t=e.transition,n=e.state,r=e.duration,i=e.timingFunction,o={transitionDuration:"".concat(r,"ms"),transitionTimingFunction:i};return"string"===typeof t?t in Fl?Vl(Vl(Vl({transitionProperty:Fl[t].transitionProperty},o),Fl[t].common),Fl[t][ql[n]]):null:Vl(Vl(Vl({transitionProperty:t.transitionProperty},o),t.common),t[ql[n]])}function Yl(e,n){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{getInitialValueInEffect:!0}).getInitialValueInEffect,i=(0,t.useState)(r?n:function(e,t){return"boolean"===typeof t?t:"undefined"!==typeof window&&"matchMedia"in window&&window.matchMedia(e).matches}(e,n)),o=(0,u.Z)(i,2),a=o[0],l=o[1],s=(0,t.useRef)();return(0,t.useEffect)((function(){if("matchMedia"in window)return s.current=window.matchMedia(e),l(s.current.matches),function(e,t){try{return e.addEventListener("change",t),function(){return e.removeEventListener("change",t)}}catch(Mo){return e.addListener(t),function(){return e.removeListener(t)}}}(s.current,(function(e){return l(e.matches)}))}),[e]),a}function Gl(e,t){return Yl("(prefers-reduced-motion: reduce)",e,t)}function Xl(e){var n=e.duration,r=e.exitDuration,i=e.timingFunction,o=e.mounted,a=e.onEnter,l=e.onExit,s=e.onEntered,c=e.onExited,d=Na(),f=Gl(),h=!!d.respectReducedMotion&&f,p=(0,t.useState)(o?"entered":"exited"),v=(0,u.Z)(p,2),m=v[0],g=v[1],y=h?0:n,b=(0,t.useRef)(-1);return Qo((function(){!function(e){var t=e?a:l,i=e?s:c;if(g(e?"pre-entering":"pre-exiting"),window.clearTimeout(b.current),0===(y=h?0:e?n:r))"function"===typeof t&&t(),"function"===typeof i&&i(),g(e?"entered":"exited");else{var o=window.setTimeout((function(){"function"===typeof t&&t(),g(e?"entering":"exiting")}),10);b.current=window.setTimeout((function(){window.clearTimeout(o),"function"===typeof i&&i(),g(e?"entered":"exited")}),y)}}(o)}),[o]),(0,t.useEffect)((function(){return function(){return window.clearTimeout(b.current)}}),[]),{transitionDuration:y,transitionStatus:m,transitionTimingFunction:i||d.transitionTimingFunction}}function $l(e){var n=e.transitions,r=e.duration,i=void 0===r?250:r,o=e.exitDuration,a=void 0===o?i:o,l=e.mounted,s=e.children,c=Xl({mounted:l,duration:i,exitDuration:a,timingFunction:e.timingFunction,onExit:e.onExit,onEntered:e.onEntered,onEnter:e.onEnter,onExited:e.onExited}),u=c.transitionDuration,d=c.transitionStatus,f=c.transitionTimingFunction;if(0===u)return l?t.createElement(t.Fragment,null,s({})):null;if("exited"===d)return null;var h=Object.keys(n).reduce((function(e,t){return e[t]=Kl({duration:n[t].duration,transition:n[t].transition,timingFunction:n[t].timingFunction||f,state:d}),e}),{});return t.createElement(t.Fragment,null,s(h))}$l.displayName="@mantine/core/GroupedTransition";var Jl=Object.getOwnPropertySymbols,Ql=Object.prototype.hasOwnProperty,es=Object.prototype.propertyIsEnumerable,ts=function(e,t){var n={};for(var r in e)Ql.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Jl){var i,o=ot(Jl(e));try{for(o.s();!(i=o.n()).done;){r=i.value;t.indexOf(r)<0&&es.call(e,r)&&(n[r]=e[r])}}catch(pW){o.e(pW)}finally{o.f()}}return n};function ns(e){var t=e,n=t.m,r=t.mx,i=t.my,o=t.mt,a=t.mb,l=t.ml,s=t.mr,c=t.p,u=t.px,d=t.py,f=t.pt,h=t.pb,p=t.pl,v=t.pr,m=t.bg,g=t.c,y=t.opacity,b=t.ff,_=t.fz,w=t.fw,S=t.lts,x=t.ta,C=t.lh,k=t.fs,E=t.tt,R=t.td,O=t.w,P=t.miw,T=t.maw,M=t.h,L=t.mih,Z=t.mah,I=t.bgsz,D=t.bgp,j=t.bgr,A=t.bga,N=t.pos,F=t.top,z=t.left,B=t.bottom,H=t.right,W=t.inset,U=t.display,V=ts(t,["m","mx","my","mt","mb","ml","mr","p","px","py","pt","pb","pl","pr","bg","c","opacity","ff","fz","fw","lts","ta","lh","fs","tt","td","w","miw","maw","h","mih","mah","bgsz","bgp","bgr","bga","pos","top","left","bottom","right","inset","display"]);return{systemStyles:Ta({m:n,mx:r,my:i,mt:o,mb:a,ml:l,mr:s,p:c,px:u,py:d,pt:f,pb:h,pl:p,pr:v,bg:m,c:g,opacity:y,ff:b,fz:_,fw:w,lts:S,ta:x,lh:C,fs:k,tt:E,td:R,w:O,miw:P,maw:T,h:M,mih:L,mah:Z,bgsz:I,bgp:D,bgr:j,bga:A,pos:N,top:F,left:z,bottom:B,right:H,inset:W,display:U}),rest:V}}function rs(e){var t=e.value,n=e.theme,r=e.getValue,i=e.property;if(null!=t){if("object"===typeof t){var a=function(e,t){var n=Object.keys(e).filter((function(e){return"base"!==e})).sort((function(e,n){return t.fn.size({size:e,sizes:t.breakpoints})-t.fn.size({size:n,sizes:t.breakpoints})}));return"base"in e?["base"].concat((0,v.Z)(n)):n}(t,n).reduce((function(e,a){if("base"===a&&void 0!==t.base){var l=r(t.base,n);return Array.isArray(i)?(i.forEach((function(t){e[t]=l})),e):(e[i]=l,e)}var s=r(t[a],n);return Array.isArray(i)?(e[n.fn.largerThan(a)]={},i.forEach((function(t){e[n.fn.largerThan(a)][t]=s})),e):(e[n.fn.largerThan(a)]=(0,o.Z)({},i,s),e)}),{});return a}var l=r(t,n);return Array.isArray(i)?i.reduce((function(e,t){return e[t]=l,e}),{}):(0,o.Z)({},i,l)}}var is=["-xs","-sm","-md","-lg","-xl"];var os={color:function(e,t){return"dimmed"===e?"dark"===t.colorScheme?t.colors.dark[2]:t.colors.gray[6]:t.fn.variant({variant:"filled",color:e,primaryFallback:!1}).background},default:function(e){return e},fontSize:function(e,t){return t.fn.size({size:e,sizes:t.fontSizes})},spacing:function(e,t){return is.includes(e)?-1*t.fn.size({size:e.replace("-",""),sizes:t.spacing}):t.fn.size({size:e,sizes:t.spacing})}},as={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},mx:{type:"spacing",property:["marginRight","marginLeft"]},my:{type:"spacing",property:["marginTop","marginBottom"]},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},px:{type:"spacing",property:["paddingRight","paddingLeft"]},py:{type:"spacing",property:["paddingTop","paddingBottom"]},bg:{type:"color",property:"background"},c:{type:"color",property:"color"},opacity:{type:"default",property:"opacity"},ff:{type:"default",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"default",property:"fontWeight"},lts:{type:"default",property:"letterSpacing"},ta:{type:"default",property:"textAlign"},lh:{type:"default",property:"lineHeight"},fs:{type:"default",property:"fontStyle"},tt:{type:"default",property:"textTransform"},td:{type:"default",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"default",property:"background-size"},bgp:{type:"default",property:"background-position"},bgr:{type:"default",property:"background-repeat"},bga:{type:"default",property:"background-attachment"},pos:{type:"default",property:"position"},top:{type:"default",property:"top"},left:{type:"default",property:"left"},bottom:{type:"default",property:"bottom"},right:{type:"default",property:"right"},inset:{type:"default",property:"inset"},display:{type:"default",property:"display"}},ls=Object.defineProperty,ss=Object.getOwnPropertySymbols,cs=Object.prototype.hasOwnProperty,us=Object.prototype.propertyIsEnumerable,ds=function(e,t,n){return t in e?ls(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},fs=function(e,t){for(var n in t||(t={}))cs.call(t,n)&&ds(e,n,t[n]);if(ss){var r,i=ot(ss(t));try{for(i.s();!(r=i.n()).done;){n=r.value;us.call(t,n)&&ds(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e};function hs(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:as;return Object.keys(n).reduce((function(r,i){return i in e&&void 0!==e[i]&&r.push(rs({value:e[i],getValue:os[n[i].type],property:n[i].property,theme:t})),r}),[]).reduce((function(e,t){return Object.keys(t).forEach((function(n){"object"===typeof t[n]&&null!==t[n]?e[n]=n in e?fs(fs({},e[n]),t[n]):t[n]:e[n]=t[n]})),e}),{})}function ps(e,t){return"function"===typeof e?e(t):e}function vs(e,t,n){var r=Na(),i=Qa(),o=i.css,a=i.cx;return Array.isArray(e)?a(n,o(hs(t,r)),e.map((function(e){return o(ps(e,r))}))):a(n,o(ps(e,r)),o(hs(t,r)))}var ms=Object.defineProperty,gs=Object.getOwnPropertySymbols,ys=Object.prototype.hasOwnProperty,bs=Object.prototype.propertyIsEnumerable,_s=function(e,t,n){return t in e?ms(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},ws=(0,t.forwardRef)((function(e,n){var r=e,i=r.className,o=r.component,a=r.style,l=r.sx,s=ns(function(e,t){var n={};for(var r in e)ys.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&gs){var i,o=ot(gs(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&bs.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(r,["className","component","style","sx"])),c=s.systemStyles,u=s.rest,d=o||"div";return t.createElement(d,function(e,t){for(var n in t||(t={}))ys.call(t,n)&&_s(e,n,t[n]);if(gs){var r,i=ot(gs(t));try{for(i.s();!(r=i.n()).done;)n=r.value,bs.call(t,n)&&_s(e,n,t[n])}catch(pW){i.e(pW)}finally{i.f()}}return e}({ref:n,className:vs(l,c,i),style:a},u))}));ws.displayName="@mantine/core/Box";var Ss=ws;function xs(e){return Array.isArray(e)?e:[e]}var Cs=cl((function(e,t){return{root:{position:"absolute",top:0,bottom:0,left:0,right:0,zIndex:t.zIndex}}})),ks=Cs,Es=Object.defineProperty,Rs=Object.defineProperties,Os=Object.getOwnPropertyDescriptors,Ps=Object.getOwnPropertySymbols,Ts=Object.prototype.hasOwnProperty,Ms=Object.prototype.propertyIsEnumerable,Ls=function(e,t,n){return t in e?Es(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Zs=function(e,t){for(var n in t||(t={}))Ts.call(t,n)&&Ls(e,n,t[n]);if(Ps){var r,i=ot(Ps(t));try{for(i.s();!(r=i.n()).done;){n=r.value;Ms.call(t,n)&&Ls(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},Is={opacity:.6,color:"#fff",zIndex:ra("modal"),radius:0,blur:0},Ds=(0,t.forwardRef)((function(e,n){var r=za("Overlay",Is,e),i=r.opacity,o=r.blur,a=r.color,l=r.gradient,s=r.zIndex,c=r.radius,u=r.sx,d=r.unstyled,f=r.className,h=function(e,t){var n={};for(var r in e)Ts.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Ps){var i,o=ot(Ps(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&Ms.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(r,["opacity","blur","color","gradient","zIndex","radius","sx","unstyled","className"]),p=ks({zIndex:s},{name:"Overlay",unstyled:d}),m=p.classes,g=p.cx,y=l?{backgroundImage:l}:{backgroundColor:a},b=function(e){return t.createElement(Ss,Zs({ref:n,className:g(m.root,f),sx:[function(e){return function(e,t){return Rs(e,Os(t))}(Zs({},y),{opacity:i,borderRadius:e.fn.size({size:c,sizes:e.radius})})}].concat((0,v.Z)(xs(u)))},e))};return o?t.createElement(Ss,Zs({className:g(m.root,f),sx:[{backdropFilter:"blur(".concat(o,"px)")}].concat((0,v.Z)(xs(u)))},h),b()):b(h)}));Ds.displayName="@mantine/core/Overlay";var js=Ds,As=cl((function(e,t){var n=t.radius,r=t.shadow,i=t.withBorder;return{root:{outline:0,WebkitTapHighlightColor:"transparent",display:"block",textDecoration:"none",color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,backgroundColor:"dark"===e.colorScheme?e.colors.dark[7]:e.white,boxSizing:"border-box",borderRadius:e.fn.radius(n),boxShadow:e.shadows[r]||r||"none",border:i?"1px solid ".concat("dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[3]):void 0}}})),Ns=As,Fs=Object.defineProperty,zs=Object.getOwnPropertySymbols,Bs=Object.prototype.hasOwnProperty,Hs=Object.prototype.propertyIsEnumerable,Ws=function(e,t,n){return t in e?Fs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Us={},Vs=(0,t.forwardRef)((function(e,n){var r=za("Paper",Us,e),i=r.className,o=r.children,a=r.radius,l=r.withBorder,s=r.shadow,c=r.unstyled,u=function(e,t){var n={};for(var r in e)Bs.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&zs){var i,o=ot(zs(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&Hs.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(r,["className","children","radius","withBorder","shadow","unstyled"]),d=Ns({radius:a,shadow:s,withBorder:l},{name:"Paper",unstyled:c}),f=d.classes,h=d.cx;return t.createElement(Ss,function(e,t){for(var n in t||(t={}))Bs.call(t,n)&&Ws(e,n,t[n]);if(zs){var r,i=ot(zs(t));try{for(i.s();!(r=i.n()).done;)n=r.value,Hs.call(t,n)&&Ws(e,n,t[n])}catch(pW){i.e(pW)}finally{i.f()}}return e}({className:h(f.root,i),ref:n},u),o)}));Vs.displayName="@mantine/core/Paper";var qs=Vs,Ks=Object.defineProperty,Ys=Object.defineProperties,Gs=Object.getOwnPropertyDescriptors,Xs=Object.getOwnPropertySymbols,$s=Object.prototype.hasOwnProperty,Js=Object.prototype.propertyIsEnumerable,Qs=function(e,t,n){return t in e?Ks(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},ec=function(e,t){for(var n in t||(t={}))$s.call(t,n)&&Qs(e,n,t[n]);if(Xs){var r,i=ot(Xs(t));try{for(i.s();!(r=i.n()).done;){n=r.value;Js.call(t,n)&&Qs(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},tc=function(e,t){return Ys(e,Gs(t))};function nc(e){var t=e.underline,n=e.strikethrough,r=[];return t&&r.push("underline"),n&&r.push("line-through"),r.length>0?r.join(" "):"none"}function rc(e){var t=e.theme,n=e.color,r=e.variant;return"dimmed"===n?"dark"===t.colorScheme?t.colors.dark[2]:t.colors.gray[6]:"string"===typeof n&&(n in t.colors||n.split(".")[0]in t.colors)?t.fn.variant({variant:"filled",color:n}).background:"link"===r?t.colors[t.primaryColor]["dark"===t.colorScheme?4:7]:n||"inherit"}function ic(e){return"number"===typeof e?{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}:null}function oc(e){var t=e.theme,n=e.truncate;return"start"===n?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",direction:"ltr"===t.dir?"rtl":"ltr",textAlign:"ltr"===t.dir?"right":"left"}:n?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:null}var ac=cl((function(e,t){var n=t.color,r=t.variant,i=t.size,o=t.lineClamp,a=t.truncate,l=t.inline,s=t.inherit,c=t.underline,u=t.gradient,d=t.weight,f=t.transform,h=t.align,p=t.strikethrough,v=t.italic,m=e.fn.variant({variant:"gradient",gradient:u});return{root:ec(tc(ec(ec(ec(ec({},e.fn.fontStyles()),e.fn.focusStyles()),ic(o)),oc({theme:e,truncate:a})),{color:rc({color:n,theme:e,variant:r}),fontFamily:s?"inherit":e.fontFamily,fontSize:s||void 0===i?"inherit":e.fn.size({size:i,sizes:e.fontSizes}),lineHeight:s?"inherit":l?1:e.lineHeight,textDecoration:nc({underline:c,strikethrough:p}),WebkitTapHighlightColor:"transparent",fontWeight:s?"inherit":d,textTransform:f,textAlign:h,fontStyle:v?"italic":void 0}),e.fn.hover("link"===r&&void 0===c?{textDecoration:"underline"}:void 0)),gradient:{backgroundImage:m.background,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}})),lc=ac,sc=Object.defineProperty,cc=Object.getOwnPropertySymbols,uc=Object.prototype.hasOwnProperty,dc=Object.prototype.propertyIsEnumerable,fc=function(e,t,n){return t in e?sc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},hc={variant:"text"},pc=(0,t.forwardRef)((function(e,n){var r=za("Text",hc,e),i=r.className,a=r.size,l=r.weight,s=r.transform,c=r.color,u=r.align,d=r.variant,f=r.lineClamp,h=r.truncate,p=r.gradient,v=r.inline,m=r.inherit,g=r.underline,y=r.strikethrough,b=r.italic,_=(r.classNames,r.styles,r.unstyled),w=r.span,S=function(e,t){var n={};for(var r in e)uc.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&cc){var i,o=ot(cc(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&dc.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(r,["className","size","weight","transform","color","align","variant","lineClamp","truncate","gradient","inline","inherit","underline","strikethrough","italic","classNames","styles","unstyled","span"]),x=lc({variant:d,color:c,size:a,lineClamp:f,truncate:h,inline:v,inherit:m,underline:g,strikethrough:y,italic:b,weight:l,transform:s,align:u,gradient:p},{unstyled:_,name:"Text"}),C=x.classes,k=x.cx;return t.createElement(Ss,function(e,t){for(var n in t||(t={}))uc.call(t,n)&&fc(e,n,t[n]);if(cc){var r,i=ot(cc(t));try{for(i.s();!(r=i.n()).done;)n=r.value,dc.call(t,n)&&fc(e,n,t[n])}catch(pW){i.e(pW)}finally{i.f()}}return e}({ref:n,className:k(C.root,(0,o.Z)({},C.gradient,"gradient"===d),i),component:w?"span":"div"},S))}));pc.displayName="@mantine/core/Text";var vc=pc,mc=Object.defineProperty,gc=Object.defineProperties,yc=Object.getOwnPropertyDescriptors,bc=Object.getOwnPropertySymbols,_c=Object.prototype.hasOwnProperty,wc=Object.prototype.propertyIsEnumerable,Sc=function(e,t,n){return t in e?mc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},xc=function(e,t){for(var n in t||(t={}))_c.call(t,n)&&Sc(e,n,t[n]);if(bc){var r,i=ot(bc(t));try{for(i.s();!(r=i.n()).done;){n=r.value;wc.call(t,n)&&Sc(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},Cc=function(e,t){return gc(e,yc(t))},kc={xs:18,sm:22,md:28,lg:34,xl:44};function Ec(e){var t=e.variant,n=e.theme,r=e.color,i=e.gradient,o=n.fn.variant({color:r,variant:t,gradient:i});return"gradient"===t?{border:0,backgroundImage:o.background,color:o.color,"&:hover":n.fn.hover({backgroundSize:"200%"})}:xc({border:"1px solid ".concat(o.border),backgroundColor:o.background,color:o.color},n.fn.hover({backgroundColor:o.hover}))}var Rc=cl((function(e,t){var n=t.color,r=t.size,i=t.radius,o=t.variant,a=t.gradient;return{root:Cc(xc({},Ec({variant:o,theme:e,color:n,gradient:a})),{position:"relative",height:e.fn.size({size:r,sizes:kc}),minHeight:e.fn.size({size:r,sizes:kc}),width:e.fn.size({size:r,sizes:kc}),minWidth:e.fn.size({size:r,sizes:kc}),borderRadius:e.fn.radius(i),padding:0,lineHeight:1,display:"flex",alignItems:"center",justifyContent:"center","&:active":e.activeStyles,"&:disabled, &[data-disabled]":{color:e.colors.gray["dark"===e.colorScheme?6:4],cursor:"not-allowed",backgroundColor:"transparent"===o?void 0:e.fn.themeColor("gray","dark"===e.colorScheme?8:1),borderColor:"transparent"===o?void 0:e.fn.themeColor("gray","dark"===e.colorScheme?8:1),backgroundImage:"none",pointerEvents:"none","&:active":{transform:"none"}},"&[data-loading]":{pointerEvents:"none","&::before":{content:'""',position:"absolute",top:-1,left:-1,right:-1,bottom:-1,backgroundColor:"dark"===e.colorScheme?e.fn.rgba(e.colors.dark[7],.5):"rgba(255, 255, 255, .5)",borderRadius:e.fn.radius(i),cursor:"not-allowed"}}})}})),Oc=Rc,Pc=Object.defineProperty,Tc=Object.getOwnPropertySymbols,Mc=Object.prototype.hasOwnProperty,Lc=Object.prototype.propertyIsEnumerable,Zc=function(e,t,n){return t in e?Pc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Ic=function(e,t){for(var n in t||(t={}))Mc.call(t,n)&&Zc(e,n,t[n]);if(Tc){var r,i=ot(Tc(t));try{for(i.s();!(r=i.n()).done;){n=r.value;Lc.call(t,n)&&Zc(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},Dc=function(e,t){var n={};for(var r in e)Mc.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Tc){var i,o=ot(Tc(e));try{for(o.s();!(i=o.n()).done;){r=i.value;t.indexOf(r)<0&&Lc.call(e,r)&&(n[r]=e[r])}}catch(pW){o.e(pW)}finally{o.f()}}return n};var jc=Object.defineProperty,Ac=Object.getOwnPropertySymbols,Nc=Object.prototype.hasOwnProperty,Fc=Object.prototype.propertyIsEnumerable,zc=function(e,t,n){return t in e?jc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Bc=function(e,t){for(var n in t||(t={}))Nc.call(t,n)&&zc(e,n,t[n]);if(Ac){var r,i=ot(Ac(t));try{for(i.s();!(r=i.n()).done;){n=r.value;Fc.call(t,n)&&zc(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},Hc=function(e,t){var n={};for(var r in e)Nc.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Ac){var i,o=ot(Ac(e));try{for(o.s();!(i=o.n()).done;){r=i.value;t.indexOf(r)<0&&Fc.call(e,r)&&(n[r]=e[r])}}catch(pW){o.e(pW)}finally{o.f()}}return n};var Wc=Object.defineProperty,Uc=Object.getOwnPropertySymbols,Vc=Object.prototype.hasOwnProperty,qc=Object.prototype.propertyIsEnumerable,Kc=function(e,t,n){return t in e?Wc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Yc=function(e,t){for(var n in t||(t={}))Vc.call(t,n)&&Kc(e,n,t[n]);if(Uc){var r,i=ot(Uc(t));try{for(i.s();!(r=i.n()).done;){n=r.value;qc.call(t,n)&&Kc(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},Gc=function(e,t){var n={};for(var r in e)Vc.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Uc){var i,o=ot(Uc(e));try{for(o.s();!(i=o.n()).done;){r=i.value;t.indexOf(r)<0&&qc.call(e,r)&&(n[r]=e[r])}}catch(pW){o.e(pW)}finally{o.f()}}return n};var Xc=Object.defineProperty,$c=Object.getOwnPropertySymbols,Jc=Object.prototype.hasOwnProperty,Qc=Object.prototype.propertyIsEnumerable,eu=function(e,t,n){return t in e?Xc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},tu=function(e,t){for(var n in t||(t={}))Jc.call(t,n)&&eu(e,n,t[n]);if($c){var r,i=ot($c(t));try{for(i.s();!(r=i.n()).done;){n=r.value;Qc.call(t,n)&&eu(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},nu=function(e,t){var n={};for(var r in e)Jc.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&$c){var i,o=ot($c(e));try{for(o.s();!(i=o.n()).done;){r=i.value;t.indexOf(r)<0&&Qc.call(e,r)&&(n[r]=e[r])}}catch(pW){o.e(pW)}finally{o.f()}}return n},ru={bars:function(e){var n=e,r=n.size,i=n.color,o=Dc(n,["size","color"]);return t.createElement("svg",Ic({viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",fill:i,width:"".concat(r,"px")},o),t.createElement("rect",{y:"10",width:"15",height:"120",rx:"6"},t.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),t.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),t.createElement("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},t.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),t.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),t.createElement("rect",{x:"60",width:"15",height:"140",rx:"6"},t.createElement("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),t.createElement("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),t.createElement("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},t.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),t.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),t.createElement("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},t.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),t.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})))},oval:function(e){var n=e,r=n.size,i=n.color,o=Hc(n,["size","color"]);return t.createElement("svg",Bc({width:"".concat(r,"px"),height:"".concat(r,"px"),viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:i},o),t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("g",{transform:"translate(2.5 2.5)",strokeWidth:"5"},t.createElement("circle",{strokeOpacity:".5",cx:"16",cy:"16",r:"16"}),t.createElement("path",{d:"M32 16c0-9.94-8.06-16-16-16"},t.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 16 16",to:"360 16 16",dur:"1s",repeatCount:"indefinite"})))))},dots:function(e){var n=e,r=n.size,i=n.color,o=Gc(n,["size","color"]);return t.createElement("svg",Yc({width:"".concat(r,"px"),height:"".concat(r/4,"px"),viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:i},o),t.createElement("circle",{cx:"15",cy:"15",r:"15"},t.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),t.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),t.createElement("circle",{cx:"60",cy:"15",r:"9",fillOpacity:"0.3"},t.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),t.createElement("animate",{attributeName:"fill-opacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),t.createElement("circle",{cx:"105",cy:"15",r:"15"},t.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),t.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})))}},iu={xs:18,sm:22,md:36,lg:44,xl:58},ou={size:"md"};function au(e){var n=za("Loader",ou,e),r=n.size,i=n.color,o=n.variant,a=nu(n,["size","color","variant"]),l=Na(),s=o in ru?o:l.loader;return t.createElement(Ss,tu({role:"presentation",component:ru[s]||ru.bars,size:l.fn.size({size:r,sizes:iu}),color:l.fn.variant({variant:"filled",primaryFallback:!1,color:i||l.primaryColor}).background},a))}au.displayName="@mantine/core/Loader";var lu=Object.defineProperty,su=Object.defineProperties,cu=Object.getOwnPropertyDescriptors,uu=Object.getOwnPropertySymbols,du=Object.prototype.hasOwnProperty,fu=Object.prototype.propertyIsEnumerable,hu=function(e,t,n){return t in e?lu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},pu=function(e,t){for(var n in t||(t={}))du.call(t,n)&&hu(e,n,t[n]);if(uu){var r,i=ot(uu(t));try{for(i.s();!(r=i.n()).done;){n=r.value;fu.call(t,n)&&hu(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},vu=function(e,t){return su(e,cu(t))},mu=cl((function(e){return{root:vu(pu(pu({},e.fn.focusStyles()),e.fn.fontStyles()),{cursor:"pointer",border:0,padding:0,appearance:"none",fontSize:e.fontSizes.md,backgroundColor:"transparent",textAlign:"left",color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,textDecoration:"none",boxSizing:"border-box"})}})),gu=Object.defineProperty,yu=Object.getOwnPropertySymbols,bu=Object.prototype.hasOwnProperty,_u=Object.prototype.propertyIsEnumerable,wu=function(e,t,n){return t in e?gu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Su=(0,t.forwardRef)((function(e,n){var r=za("UnstyledButton",{},e),i=r.className,o=r.component,a=void 0===o?"button":o,l=r.unstyled,s=function(e,t){var n={};for(var r in e)bu.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&yu){var i,o=ot(yu(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&_u.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(r,["className","component","unstyled"]),c=mu(null,{name:"UnstyledButton",unstyled:l}),u=c.classes,d=c.cx;return t.createElement(Ss,function(e,t){for(var n in t||(t={}))bu.call(t,n)&&wu(e,n,t[n]);if(yu){var r,i=ot(yu(t));try{for(i.s();!(r=i.n()).done;)n=r.value,_u.call(t,n)&&wu(e,n,t[n])}catch(pW){i.e(pW)}finally{i.f()}}return e}({component:a,ref:n,className:d(u.root,i),type:"button"===a?"button":void 0},s))}));Su.displayName="@mantine/core/UnstyledButton";var xu=Su,Cu=Object.defineProperty,ku=Object.getOwnPropertySymbols,Eu=Object.prototype.hasOwnProperty,Ru=Object.prototype.propertyIsEnumerable,Ou=function(e,t,n){return t in e?Cu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Pu=function(e,t){for(var n in t||(t={}))Eu.call(t,n)&&Ou(e,n,t[n]);if(ku){var r,i=ot(ku(t));try{for(i.s();!(r=i.n()).done;){n=r.value;Ru.call(t,n)&&Ou(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},Tu={color:"gray",size:"md",variant:"subtle",loading:!1},Mu=(0,t.forwardRef)((function(e,n){var r=za("ActionIcon",Tu,e),i=r.className,o=r.color,a=r.children,l=r.radius,s=r.size,c=r.variant,u=r.gradient,d=r.disabled,f=r.loaderProps,h=r.loading,p=r.unstyled,v=function(e,t){var n={};for(var r in e)Eu.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ku){var i,o=ot(ku(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&Ru.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(r,["className","color","children","radius","size","variant","gradient","disabled","loaderProps","loading","unstyled"]),m=Oc({size:s,radius:l,color:o,variant:c,gradient:u},{name:"ActionIcon",unstyled:p}),g=m.classes,y=m.cx,b=m.theme,_=b.fn.variant({color:o,variant:c}),w=t.createElement(au,Pu({color:_.color,size:b.fn.size({size:s,sizes:kc})-12},f));return t.createElement(xu,Pu({className:y(g.root,i),ref:n,disabled:d,"data-disabled":d||void 0,"data-loading":h||void 0,unstyled:p},v),h?w:a)}));Mu.displayName="@mantine/core/ActionIcon";var Lu=Mu,Zu=Object.defineProperty,Iu=Object.getOwnPropertySymbols,Du=Object.prototype.hasOwnProperty,ju=Object.prototype.propertyIsEnumerable,Au=function(e,t,n){return t in e?Zu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Nu=function(e,t){for(var n in t||(t={}))Du.call(t,n)&&Au(e,n,t[n]);if(Iu){var r,i=ot(Iu(t));try{for(i.s();!(r=i.n()).done;){n=r.value;ju.call(t,n)&&Au(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e};function Fu(e){return t.createElement("svg",Nu({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}Fu.displayName="@mantine/core/CloseIcon";var zu=Object.defineProperty,Bu=Object.getOwnPropertySymbols,Hu=Object.prototype.hasOwnProperty,Wu=Object.prototype.propertyIsEnumerable,Uu=function(e,t,n){return t in e?zu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Vu={xs:12,sm:14,md:16,lg:20,xl:24},qu={size:"md"},Ku=(0,t.forwardRef)((function(e,n){var r=za("CloseButton",qu,e),i=r.iconSize,o=r.size,a=void 0===o?"md":o,l=function(e,t){var n={};for(var r in e)Hu.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Bu){var i,o=ot(Bu(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&Wu.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(r,["iconSize","size"]),s=Na(),c=i||s.fn.size({size:a,sizes:Vu});return t.createElement(Lu,function(e,t){for(var n in t||(t={}))Hu.call(t,n)&&Uu(e,n,t[n]);if(Bu){var r,i=ot(Bu(t));try{for(i.s();!(r=i.n()).done;)n=r.value,Wu.call(t,n)&&Uu(e,n,t[n])}catch(pW){i.e(pW)}finally{i.f()}}return e}({size:a,ref:n},l),t.createElement(Fu,{width:c,height:c}))}));Ku.displayName="@mantine/core/CloseButton";var Yu=Ku,Gu=Object.defineProperty,Xu=Object.getOwnPropertySymbols,$u=Object.prototype.hasOwnProperty,Ju=Object.prototype.propertyIsEnumerable,Qu=function(e,t,n){return t in e?Gu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},ed=function(e,t){for(var n in t||(t={}))$u.call(t,n)&&Qu(e,n,t[n]);if(Xu){var r,i=ot(Xu(t));try{for(i.s();!(r=i.n()).done;){n=r.value;Ju.call(t,n)&&Qu(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},td=function(e,t){var n={};for(var r in e)$u.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Xu){var i,o=ot(Xu(e));try{for(o.s();!(i=o.n()).done;){r=i.value;t.indexOf(r)<0&&Ju.call(e,r)&&(n[r]=e[r])}}catch(pW){o.e(pW)}finally{o.f()}}return n},nd={size:"md",transitionDuration:250,overflow:"outside",padding:"lg",shadow:"lg",closeOnClickOutside:!0,closeOnEscape:!0,trapFocus:!0,withCloseButton:!0,withinPortal:!0,lockScroll:!0,withFocusReturn:!0,overlayBlur:0,zIndex:ra("modal"),exitTransitionDuration:0};function rd(e){var n=za("Modal",nd,e),r=n.className,i=n.opened,o=n.title,a=n.onClose,l=n.children,s=n.withCloseButton,c=n.overlayOpacity,u=n.size,d=n.transitionDuration,f=n.exitTransitionDuration,h=n.closeButtonLabel,p=n.overlayColor,v=n.overflow,m=n.transition,g=n.padding,y=n.shadow,b=n.radius,_=n.id,w=n.classNames,S=n.styles,x=n.closeOnClickOutside,C=n.trapFocus,k=n.closeOnEscape,E=n.centered,R=n.target,O=n.withinPortal,P=n.zIndex,T=n.overlayBlur,M=n.transitionTimingFunction,L=n.fullScreen,Z=n.unstyled,I=n.lockScroll,D=n.withFocusReturn,j=td(n,["className","opened","title","onClose","children","withCloseButton","overlayOpacity","size","transitionDuration","exitTransitionDuration","closeButtonLabel","overlayColor","overflow","transition","padding","shadow","radius","id","classNames","styles","closeOnClickOutside","trapFocus","closeOnEscape","centered","target","withinPortal","zIndex","overlayBlur","transitionTimingFunction","fullScreen","unstyled","lockScroll","withFocusReturn"]),A=zo(_),N="".concat(A,"-title"),F="".concat(A,"-body"),z=bl({size:u,overflow:v,centered:E,zIndex:P,fullScreen:L},{unstyled:Z,classNames:w,styles:S,name:"Modal"}),B=z.classes,H=z.cx,W=z.theme,U=Yo(C&&i),V=(0,t.useRef)(null),q=Xo(U,V),K="number"===typeof c?c:"dark"===W.colorScheme?.85:.75;Jo(I&&i);var Y=function(e){!C&&"Escape"===e.key&&k&&a()};(0,t.useEffect)((function(){if(!C)return window.addEventListener("keydown",Y),function(){return window.removeEventListener("keydown",Y)}}),[C]),ea({opened:i,shouldReturnFocus:C&&D});var G=(0,t.useRef)(null);ta("mousedown",(function(e){G.current=e.target}));var X=function(){G.current===V.current&&x&&a()};return t.createElement(Ol,{withinPortal:O,target:R},t.createElement($l,{mounted:i,duration:d,exitDuration:f,timingFunction:M,transitions:{modal:{duration:d,transition:m||(L?"fade":"pop")},overlay:{duration:d/2,transition:"fade",timingFunction:"ease"}}},(function(e){return t.createElement(t.Fragment,null,t.createElement(Ss,ed({id:A,className:H(B.root,r)},j),t.createElement("div",{style:e.overlay},t.createElement(js,{className:B.overlay,sx:{position:"fixed"},zIndex:0,blur:T,color:p||("dark"===W.colorScheme?W.colors.dark[9]:W.black),opacity:K,unstyled:Z})),t.createElement("div",{role:"presentation",className:B.inner,onClick:X,onKeyDown:function(e){var t;"true"!==(null==(t=e.target)?void 0:t.getAttribute("data-mantine-stop-propagation"))&&"Escape"===e.key&&k&&a()},ref:q},t.createElement(qs,{className:B.modal,shadow:y,p:g,radius:b,role:"dialog","aria-labelledby":N,"aria-describedby":F,"aria-modal":!0,tabIndex:-1,style:e.modal,unstyled:Z,onClick:function(e){return e.stopPropagation()}},(o||s)&&t.createElement("div",{className:B.header},t.createElement(vc,{id:N,className:B.title},o),s&&t.createElement(Yu,{iconSize:16,onClick:a,"aria-label":h,className:B.close})),t.createElement("div",{id:F,className:B.body},l)))))})))}rd.displayName="@mantine/core/Modal";var id=Object.defineProperty,od=Object.getOwnPropertySymbols,ad=Object.prototype.hasOwnProperty,ld=Object.prototype.propertyIsEnumerable,sd=function(e,t,n){return t in e?id(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},cd=function(e,t){for(var n in t||(t={}))ad.call(t,n)&&sd(e,n,t[n]);if(od){var r,i=ot(od(t));try{for(i.s();!(r=i.n()).done;){n=r.value;ld.call(t,n)&&sd(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e};var ud=(0,t.createContext)(null),dd=ud.Provider;function fd(e){var n=e.value,r=e.defaultValue,i=e.finalValue,o=e.onChange,a=void 0===o?function(){}:o,l=(0,t.useState)(void 0!==r?r:i),s=(0,u.Z)(l,2),c=s[0],d=s[1];return void 0!==n?[n,a,!0]:[c,function(e){d(e),null==a||a(e)},!1]}var hd={left:"flex-start",center:"center",right:"flex-end",apart:"space-between"},pd=cl((function(e,t){var n=t.spacing,r=t.position,i=t.noWrap,o=t.grow,a=t.align,l=t.count;return{root:{boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:a||"center",flexWrap:i?"nowrap":"wrap",justifyContent:hd[r],gap:e.fn.size({size:n,sizes:e.spacing}),"& > *":{boxSizing:"border-box",maxWidth:o?"calc(".concat(100/l,"% - ").concat(e.fn.size({size:n,sizes:e.spacing})-e.fn.size({size:n,sizes:e.spacing})/l,"px)"):void 0,flexGrow:o?1:0}}}})),vd=pd,md=Object.defineProperty,gd=Object.getOwnPropertySymbols,yd=Object.prototype.hasOwnProperty,bd=Object.prototype.propertyIsEnumerable,_d=function(e,t,n){return t in e?md(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},wd={position:"left",spacing:"md"},Sd=(0,t.forwardRef)((function(e,n){var r=za("Group",wd,e),i=r.className,o=r.position,a=r.align,l=r.children,s=r.noWrap,c=r.grow,u=r.spacing,d=r.unstyled,f=function(e,t){var n={};for(var r in e)yd.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&gd){var i,o=ot(gd(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&bd.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(r,["className","position","align","children","noWrap","grow","spacing","unstyled"]),h=function(e){return t.Children.toArray(e).filter(Boolean)}(l),p=vd({align:a,grow:c,noWrap:s,spacing:u,position:o,count:h.length},{unstyled:d,name:"Group"}),v=p.classes,m=p.cx;return t.createElement(Ss,function(e,t){for(var n in t||(t={}))yd.call(t,n)&&_d(e,n,t[n]);if(gd){var r,i=ot(gd(t));try{for(i.s();!(r=i.n()).done;)n=r.value,bd.call(t,n)&&_d(e,n,t[n])}catch(pW){i.e(pW)}finally{i.f()}}return e}({className:m(v.root,i),ref:n},f),h)}));Sd.displayName="@mantine/core/Group";var xd=cl((function(e,t){var n=t.spacing;return{root:{display:"flex",flexDirection:"column",alignItems:t.align,justifyContent:t.justify,gap:e.fn.size({size:n,sizes:e.spacing})}}})),Cd=xd,kd=Object.defineProperty,Ed=Object.getOwnPropertySymbols,Rd=Object.prototype.hasOwnProperty,Od=Object.prototype.propertyIsEnumerable,Pd=function(e,t,n){return t in e?kd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Td={spacing:"md",align:"stretch",justify:"flex-start"},Md=(0,t.forwardRef)((function(e,n){var r=za("Stack",Td,e),i=r.spacing,o=r.className,a=r.align,l=r.justify,s=r.unstyled,c=function(e,t){var n={};for(var r in e)Rd.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Ed){var i,o=ot(Ed(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&Od.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(r,["spacing","className","align","justify","unstyled"]),u=Cd({spacing:i,align:a,justify:l},{name:"Stack",unstyled:s}),d=u.classes,f=u.cx;return t.createElement(Ss,function(e,t){for(var n in t||(t={}))Rd.call(t,n)&&Pd(e,n,t[n]);if(Ed){var r,i=ot(Ed(t));try{for(i.s();!(r=i.n()).done;)n=r.value,Od.call(t,n)&&Pd(e,n,t[n])}catch(pW){i.e(pW)}finally{i.f()}}return e}({className:f(d.root,o),ref:n},c))}));function Ld(e){var n=e.spacing,r=e.offset,i=e.orientation,o=e.children,a=e.role,l=e.unstyled;return"horizontal"===i?t.createElement(Sd,{pt:r,spacing:n,role:a,unstyled:l},o):t.createElement(Md,{pt:r,spacing:n,role:a,unstyled:l},o)}Md.displayName="@mantine/core/Stack";var Zd=cl((function(e,t){var n=t.size;return{label:{display:"inline-block",fontSize:e.fn.size({size:n,sizes:e.fontSizes}),fontWeight:500,color:"dark"===e.colorScheme?e.colors.dark[0]:e.colors.gray[9],wordBreak:"break-word",cursor:"default",WebkitTapHighlightColor:"transparent"},required:{color:e.fn.variant({variant:"filled",color:"red"}).background}}})),Id=Zd,Dd=Object.defineProperty,jd=Object.getOwnPropertySymbols,Ad=Object.prototype.hasOwnProperty,Nd=Object.prototype.propertyIsEnumerable,Fd=function(e,t,n){return t in e?Dd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},zd={labelElement:"label",size:"sm"},Bd=(0,t.forwardRef)((function(e,n){var r=za("InputLabel",zd,e),i=r.labelElement,o=r.children,a=r.required,l=r.size,s=r.classNames,c=r.styles,u=r.unstyled,d=r.className,f=r.htmlFor,h=r.__staticSelector,p=function(e,t){var n={};for(var r in e)Ad.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&jd){var i,o=ot(jd(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&Nd.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(r,["labelElement","children","required","size","classNames","styles","unstyled","className","htmlFor","__staticSelector"]),v=Id({size:l},{name:["InputWrapper",h],classNames:s,styles:c,unstyled:u}),m=v.classes,g=v.cx;return t.createElement(Ss,function(e,t){for(var n in t||(t={}))Ad.call(t,n)&&Fd(e,n,t[n]);if(jd){var r,i=ot(jd(t));try{for(i.s();!(r=i.n()).done;)n=r.value,Nd.call(t,n)&&Fd(e,n,t[n])}catch(pW){i.e(pW)}finally{i.f()}}return e}({component:i,ref:n,className:g(m.label,d),htmlFor:"label"===i?f:void 0},p),o,a&&t.createElement("span",{className:m.required,"aria-hidden":!0}," *"))}));Bd.displayName="@mantine/core/InputLabel";var Hd=cl((function(e,t){var n=t.size;return{error:{wordBreak:"break-word",color:e.fn.variant({variant:"filled",color:"red"}).background,fontSize:e.fn.size({size:n,sizes:e.fontSizes})-2,lineHeight:1.2,display:"block"}}})),Wd=Hd,Ud=Object.defineProperty,Vd=Object.getOwnPropertySymbols,qd=Object.prototype.hasOwnProperty,Kd=Object.prototype.propertyIsEnumerable,Yd=function(e,t,n){return t in e?Ud(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Gd={size:"sm"},Xd=(0,t.forwardRef)((function(e,n){var r=za("InputError",Gd,e),i=r.children,o=r.className,a=r.classNames,l=r.styles,s=r.unstyled,c=r.size,u=r.__staticSelector,d=function(e,t){var n={};for(var r in e)qd.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Vd){var i,o=ot(Vd(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&Kd.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(r,["children","className","classNames","styles","unstyled","size","__staticSelector"]),f=Wd({size:c},{name:["InputWrapper",u],classNames:a,styles:l,unstyled:s}),h=f.classes,p=f.cx;return t.createElement(vc,function(e,t){for(var n in t||(t={}))qd.call(t,n)&&Yd(e,n,t[n]);if(Vd){var r,i=ot(Vd(t));try{for(i.s();!(r=i.n()).done;)n=r.value,Kd.call(t,n)&&Yd(e,n,t[n])}catch(pW){i.e(pW)}finally{i.f()}}return e}({className:p(h.error,o),ref:n},d),i)}));Xd.displayName="@mantine/core/InputError";var $d=cl((function(e,t){var n=t.size;return{description:{wordBreak:"break-word",color:"dark"===e.colorScheme?e.colors.dark[2]:e.colors.gray[6],fontSize:e.fn.size({size:n,sizes:e.fontSizes})-2,lineHeight:1.2,display:"block"}}})),Jd=$d,Qd=Object.defineProperty,ef=Object.getOwnPropertySymbols,tf=Object.prototype.hasOwnProperty,nf=Object.prototype.propertyIsEnumerable,rf=function(e,t,n){return t in e?Qd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},of={size:"sm"},af=(0,t.forwardRef)((function(e,n){var r=za("InputDescription",of,e),i=r.children,o=r.className,a=r.classNames,l=r.styles,s=r.unstyled,c=r.size,u=r.__staticSelector,d=function(e,t){var n={};for(var r in e)tf.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ef){var i,o=ot(ef(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&nf.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(r,["children","className","classNames","styles","unstyled","size","__staticSelector"]),f=Jd({size:c},{name:["InputWrapper",u],classNames:a,styles:l,unstyled:s}),h=f.classes,p=f.cx;return t.createElement(vc,function(e,t){for(var n in t||(t={}))tf.call(t,n)&&rf(e,n,t[n]);if(ef){var r,i=ot(ef(t));try{for(i.s();!(r=i.n()).done;)n=r.value,nf.call(t,n)&&rf(e,n,t[n])}catch(pW){i.e(pW)}finally{i.f()}}return e}({color:"dimmed",className:p(h.description,o),ref:n,unstyled:s},d),i)}));af.displayName="@mantine/core/InputDescription";var lf=(0,t.createContext)({offsetBottom:!1,offsetTop:!1,describedBy:void 0}),sf=lf.Provider;function cf(e,t){var n=t.hasDescription,r=t.hasError,i=e.findIndex((function(e){return"input"===e})),o=e[i-1],a=e[i+1];return{offsetBottom:n&&"description"===a||r&&"error"===a,offsetTop:n&&"description"===o||r&&"error"===o}}var uf=Object.defineProperty,df=Object.defineProperties,ff=Object.getOwnPropertyDescriptors,hf=Object.getOwnPropertySymbols,pf=Object.prototype.hasOwnProperty,vf=Object.prototype.propertyIsEnumerable,mf=function(e,t,n){return t in e?uf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},gf=function(e,t){for(var n in t||(t={}))pf.call(t,n)&&mf(e,n,t[n]);if(hf){var r,i=ot(hf(t));try{for(i.s();!(r=i.n()).done;){n=r.value;vf.call(t,n)&&mf(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},yf=function(e,t){return df(e,ff(t))},bf=cl((function(e){return{root:yf(gf({},e.fn.fontStyles()),{lineHeight:e.lineHeight})}})),_f=Object.defineProperty,wf=Object.defineProperties,Sf=Object.getOwnPropertyDescriptors,xf=Object.getOwnPropertySymbols,Cf=Object.prototype.hasOwnProperty,kf=Object.prototype.propertyIsEnumerable,Ef=function(e,t,n){return t in e?_f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Rf=function(e,t){for(var n in t||(t={}))Cf.call(t,n)&&Ef(e,n,t[n]);if(xf){var r,i=ot(xf(t));try{for(i.s();!(r=i.n()).done;){n=r.value;kf.call(t,n)&&Ef(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},Of=function(e,t){return wf(e,Sf(t))},Pf={labelElement:"label",size:"sm",inputContainer:function(e){return e},inputWrapperOrder:["label","description","input","error"]},Tf=(0,t.forwardRef)((function(e,n){var r=za("InputWrapper",Pf,e),i=r.className,o=r.label,a=r.children,l=r.required,s=r.id,c=r.error,u=r.description,d=r.labelElement,f=r.labelProps,h=r.descriptionProps,p=r.errorProps,v=r.classNames,m=r.styles,g=r.size,y=r.inputContainer,b=r.__staticSelector,_=r.unstyled,w=r.inputWrapperOrder,S=r.withAsterisk,x=function(e,t){var n={};for(var r in e)Cf.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&xf){var i,o=ot(xf(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&kf.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(r,["className","label","children","required","id","error","description","labelElement","labelProps","descriptionProps","errorProps","classNames","styles","size","inputContainer","__staticSelector","unstyled","inputWrapperOrder","withAsterisk"]),C=bf(null,{classNames:v,styles:m,name:["InputWrapper",b],unstyled:_}),k=C.classes,E=C.cx,R={classNames:v,styles:m,unstyled:_,size:g,__staticSelector:b},O="boolean"===typeof S?S:l,P=s?"".concat(s,"-error"):null==p?void 0:p.id,T=s?"".concat(s,"-description"):null==h?void 0:h.id,M="".concat(!!c&&"boolean"!==typeof c?P:""," ").concat(u?T:""),L=M.trim().length>0?M.trim():void 0,Z=o&&t.createElement(Bd,Rf(Rf({key:"label",labelElement:d,id:s?"".concat(s,"-label"):void 0,htmlFor:s,required:O},R),f),o),I=u&&t.createElement(af,Of(Rf(Rf({key:"description"},h),R),{size:(null==h?void 0:h.size)||R.size,id:(null==h?void 0:h.id)||T}),u),D=t.createElement(t.Fragment,{key:"input"},y(a)),j="boolean"!==typeof c&&c&&t.createElement(Xd,Of(Rf(Rf({},p),R),{size:(null==p?void 0:p.size)||R.size,key:"error",id:(null==p?void 0:p.id)||P}),c),A=w.map((function(e){switch(e){case"label":return Z;case"input":return D;case"description":return I;case"error":return j;default:return null}}));return t.createElement(sf,{value:Rf({describedBy:L},cf(w,{hasDescription:!!I,hasError:!!j}))},t.createElement(Ss,Rf({className:E(k.root,i),ref:n},x),A))}));Tf.displayName="@mantine/core/InputWrapper";var Mf=Object.defineProperty,Lf=Object.getOwnPropertySymbols,Zf=Object.prototype.hasOwnProperty,If=Object.prototype.propertyIsEnumerable,Df=function(e,t,n){return t in e?Mf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},jf={},Af=(0,t.forwardRef)((function(e,n){var r=za("InputPlaceholder",jf,e),i=r.sx,o=function(e,t){var n={};for(var r in e)Zf.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Lf){var i,o=ot(Lf(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&If.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(r,["sx"]);return t.createElement(Ss,function(e,t){for(var n in t||(t={}))Zf.call(t,n)&&Df(e,n,t[n]);if(Lf){var r,i=ot(Lf(t));try{for(i.s();!(r=i.n()).done;)n=r.value,If.call(t,n)&&Df(e,n,t[n])}catch(pW){i.e(pW)}finally{i.f()}}return e}({component:"span",sx:[function(e){return e.fn.placeholderStyles()}].concat((0,v.Z)(xs(i))),ref:n},o))}));Af.displayName="@mantine/core/InputPlaceholder";var Nf=Object.defineProperty,Ff=Object.defineProperties,zf=Object.getOwnPropertyDescriptors,Bf=Object.getOwnPropertySymbols,Hf=Object.prototype.hasOwnProperty,Wf=Object.prototype.propertyIsEnumerable,Uf=function(e,t,n){return t in e?Nf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Vf=function(e,t){for(var n in t||(t={}))Hf.call(t,n)&&Uf(e,n,t[n]);if(Bf){var r,i=ot(Bf(t));try{for(i.s();!(r=i.n()).done;){n=r.value;Wf.call(t,n)&&Uf(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},qf=function(e,t){return Ff(e,zf(t))},Kf={xs:30,sm:36,md:42,lg:50,xl:60};function Yf(e){var t=e.theme,n=e.variant;return"default"===n?{border:"1px solid ".concat("dark"===t.colorScheme?t.colors.dark[4]:t.colors.gray[4]),backgroundColor:"dark"===t.colorScheme?t.colors.dark[6]:t.white,transition:"border-color 100ms ease","&:focus, &:focus-within":t.focusRingStyles.inputStyles(t)}:"filled"===n?{border:"1px solid transparent",backgroundColor:"dark"===t.colorScheme?t.colors.dark[5]:t.colors.gray[1],"&:focus, &:focus-within":t.focusRingStyles.inputStyles(t)}:{borderWidth:0,color:"dark"===t.colorScheme?t.colors.dark[0]:t.black,backgroundColor:"transparent",minHeight:28,outline:0,"&:focus, &:focus-within":{outline:"none",borderColor:"transparent"},"&:disabled":{backgroundColor:"transparent","&:focus, &:focus-within":{outline:"none",borderColor:"transparent"}}}}var Gf=cl((function(e,t){var n=t.size,r=t.multiline,i=t.radius,o=t.variant,a=t.invalid,l=t.rightSectionWidth,s=t.withRightSection,c=t.iconWidth,u=t.offsetBottom,d=t.offsetTop,f=t.pointer,h=e.fn.variant({variant:"filled",color:"red"}).background,p="default"===o||"filled"===o?{minHeight:e.fn.size({size:n,sizes:Kf}),paddingLeft:e.fn.size({size:n,sizes:Kf})/3,paddingRight:s?l:e.fn.size({size:n,sizes:Kf})/3,borderRadius:e.fn.radius(i)}:null;return{wrapper:{position:"relative",marginTop:d?"calc(".concat(e.spacing.xs,"px / 2)"):void 0,marginBottom:u?"calc(".concat(e.spacing.xs,"px / 2)"):void 0},input:Vf(qf(Vf(qf(Vf({},e.fn.fontStyles()),{height:r?"unstyled"===o?void 0:"auto":e.fn.size({size:n,sizes:Kf}),WebkitTapHighlightColor:"transparent",lineHeight:r?e.lineHeight:"".concat(e.fn.size({size:n,sizes:Kf})-2,"px"),appearance:"none",resize:"none",boxSizing:"border-box",fontSize:e.fn.size({size:n,sizes:e.fontSizes}),width:"100%",color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,display:"block",textAlign:"left",cursor:f?"pointer":void 0}),p),{"&:disabled":{backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.colors.gray[1],color:e.colors.dark[2],opacity:.6,cursor:"not-allowed","&::placeholder":{color:e.colors.dark[2]}},"&::placeholder":qf(Vf({},e.fn.placeholderStyles()),{opacity:1}),"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button, &::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration":{appearance:"none"},"&[type=number]":{MozAppearance:"textfield"}}),Yf({theme:e,variant:o})),withIcon:{paddingLeft:"number"===typeof c?c:e.fn.size({size:n,sizes:Kf})},invalid:{color:h,borderColor:h,"&::placeholder":{opacity:1,color:h}},disabled:{backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.colors.gray[1],color:e.colors.dark[2],opacity:.6,cursor:"not-allowed","&::placeholder":{color:e.colors.dark[2]}},icon:{pointerEvents:"none",position:"absolute",zIndex:1,left:0,top:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",width:"number"===typeof c?c:e.fn.size({size:n,sizes:Kf}),color:a?e.colors.red["dark"===e.colorScheme?6:7]:"dark"===e.colorScheme?e.colors.dark[2]:e.colors.gray[5]},rightSection:{position:"absolute",top:0,bottom:0,right:0,display:"flex",alignItems:"center",justifyContent:"center",width:l}}})),Xf=Gf,$f=Object.defineProperty,Jf=Object.defineProperties,Qf=Object.getOwnPropertyDescriptors,eh=Object.getOwnPropertySymbols,th=Object.prototype.hasOwnProperty,nh=Object.prototype.propertyIsEnumerable,rh=function(e,t,n){return t in e?$f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},ih=function(e,t){for(var n in t||(t={}))th.call(t,n)&&rh(e,n,t[n]);if(eh){var r,i=ot(eh(t));try{for(i.s();!(r=i.n()).done;){n=r.value;nh.call(t,n)&&rh(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},oh=function(e,t){return Jf(e,Qf(t))},ah={rightSectionWidth:36,size:"sm",variant:"default"},lh=(0,t.forwardRef)((function(e,n){var r,i=za("Input",ah,e),a=i.className,l=i.invalid,s=i.required,c=i.disabled,u=i.variant,d=i.icon,f=i.style,h=i.rightSectionWidth,p=i.iconWidth,v=i.rightSection,m=i.rightSectionProps,g=i.radius,y=i.size,b=i.wrapperProps,_=i.classNames,w=i.styles,S=i.__staticSelector,x=i.multiline,C=i.sx,k=i.unstyled,E=i.pointer,R=function(e,t){var n={};for(var r in e)th.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&eh){var i,o=ot(eh(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&nh.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(i,["className","invalid","required","disabled","variant","icon","style","rightSectionWidth","iconWidth","rightSection","rightSectionProps","radius","size","wrapperProps","classNames","styles","__staticSelector","multiline","sx","unstyled","pointer"]),O=(0,t.useContext)(lf),P=O.offsetBottom,T=O.offsetTop,M=O.describedBy,L=Xf({radius:g,size:y,multiline:x,variant:u,invalid:l,rightSectionWidth:h,iconWidth:p,withRightSection:!!v,offsetBottom:P,offsetTop:T,pointer:E},{classNames:_,styles:w,name:["Input",S],unstyled:k}),Z=L.classes,I=L.cx,D=ns(R),j=D.systemStyles,A=D.rest;return t.createElement(Ss,ih(ih({className:I(Z.wrapper,a),sx:C,style:f},j),b),d&&t.createElement("div",{className:Z.icon},d),t.createElement(Ss,oh(ih({component:"input"},A),{ref:n,required:s,"aria-invalid":l,"aria-describedby":M,disabled:c,className:I(Z["".concat(u,"Variant")],Z.input,(r={},(0,o.Z)(r,Z.withIcon,d),(0,o.Z)(r,Z.invalid,l),(0,o.Z)(r,Z.disabled,c),r))})),v&&t.createElement("div",oh(ih({},m),{className:Z.rightSection}),v))}));lh.displayName="@mantine/core/Input",lh.Wrapper=Tf,lh.Label=Bd,lh.Description=af,lh.Error=Xd,lh.Placeholder=Af;var sh=lh,ch=Object.defineProperty,uh=Object.getOwnPropertySymbols,dh=Object.prototype.hasOwnProperty,fh=Object.prototype.propertyIsEnumerable,hh=function(e,t,n){return t in e?ch(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},ph=function(e,t){for(var n in t||(t={}))dh.call(t,n)&&hh(e,n,t[n]);if(uh){var r,i=ot(uh(t));try{for(i.s();!(r=i.n()).done;){n=r.value;fh.call(t,n)&&hh(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},vh={orientation:"horizontal",spacing:"lg",offset:"xs",size:"sm"},mh=(0,t.forwardRef)((function(e,n){var r=za("RadioGroup",vh,e),i=r.children,o=r.value,a=r.defaultValue,l=r.onChange,s=r.orientation,c=r.spacing,d=r.size,f=r.wrapperProps,h=r.unstyled,p=r.offset,v=r.name,m=function(e,t){var n={};for(var r in e)dh.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&uh){var i,o=ot(uh(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&fh.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(r,["children","value","defaultValue","onChange","orientation","spacing","size","wrapperProps","unstyled","offset","name"]),g=zo(v),y=fd({value:o,defaultValue:a,finalValue:"",onChange:l}),b=(0,u.Z)(y,2),_=b[0],w=b[1];return t.createElement(dd,{value:{value:_,onChange:function(e){return w(e.currentTarget.value)},size:d,name:g}},t.createElement(sh.Wrapper,ph(ph({labelElement:"div",size:d,__staticSelector:"RadioGroup",ref:n,unstyled:h},f),m),t.createElement(Ld,{spacing:c,orientation:s,unstyled:h,role:"radiogroup",offset:p},i)))}));mh.displayName="@mantine/core/RadioGroup";var gh=Object.defineProperty,yh=Object.defineProperties,bh=Object.getOwnPropertyDescriptors,_h=Object.getOwnPropertySymbols,wh=Object.prototype.hasOwnProperty,Sh=Object.prototype.propertyIsEnumerable,xh=function(e,t,n){return t in e?gh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Ch=function(e,t){for(var n in t||(t={}))wh.call(t,n)&&xh(e,n,t[n]);if(_h){var r,i=ot(_h(t));try{for(i.s();!(r=i.n()).done;){n=r.value;Sh.call(t,n)&&xh(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},kh=function(e,t){return yh(e,bh(t))},Eh={xs:16,sm:20,md:24,lg:30,xl:36},Rh={xs:6,sm:8,md:10,lg:14,xl:16},Oh=cl((function(e,t,n){var r=t.size,i=t.color,a=t.transitionDuration,l=t.labelPosition,s=t.error,c=e.fn.variant({variant:"filled",color:i}),u=e.fn.variant({variant:"filled",color:"red"}).background;return{inner:{order:"left"===l?2:1,position:"relative",alignSelf:"flex-start"},icon:{ref:n("icon"),color:e.white,opacity:0,transform:"scale(0.75) translateY(2px)",transition:"opacity ".concat(a,"ms ").concat(e.transitionTimingFunction),pointerEvents:"none",width:e.fn.size({sizes:Rh,size:r}),height:e.fn.size({sizes:Rh,size:r}),position:"absolute",top:"calc(50% - ".concat(e.fn.size({sizes:Rh,size:r})/2,"px)"),left:"calc(50% - ".concat(e.fn.size({sizes:Rh,size:r})/2,"px)")},radio:kh(Ch({},e.fn.focusStyles()),{backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.white,border:"1px solid ".concat(s?u:"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[4]),position:"relative",appearance:"none",width:e.fn.size({sizes:Eh,size:r}),height:e.fn.size({sizes:Eh,size:r}),borderRadius:e.fn.size({sizes:Eh,size:r}),margin:0,display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"background-color, border-color",transitionTimingFunction:e.transitionTimingFunction,transitionDuration:"".concat(a,"ms"),cursor:e.cursorType,"&:checked":(0,o.Z)({background:c.background,borderColor:c.background},"& + .".concat(n("icon")),{opacity:1,transform:"scale(1)"}),"&:disabled":(0,o.Z)({borderColor:"dark"===e.colorScheme?e.colors.dark[5]:e.colors.gray[4],backgroundColor:"dark"===e.colorScheme?e.colors.dark[5]:e.colors.gray[1]},"& + .".concat(n("icon")),{color:"dark"===e.colorScheme?e.colors.dark[6]:e.colors.gray[4]})})}})),Ph=Oh,Th=Object.defineProperty,Mh=Object.defineProperties,Lh=Object.getOwnPropertyDescriptors,Zh=Object.getOwnPropertySymbols,Ih=Object.prototype.hasOwnProperty,Dh=Object.prototype.propertyIsEnumerable,jh=function(e,t,n){return t in e?Th(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Ah=function(e,t){for(var n in t||(t={}))Ih.call(t,n)&&jh(e,n,t[n]);if(Zh){var r,i=ot(Zh(t));try{for(i.s();!(r=i.n()).done;){n=r.value;Dh.call(t,n)&&jh(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},Nh=function(e,t){return Mh(e,Lh(t))},Fh={xs:16,sm:20,md:24,lg:30,xl:36},zh=cl((function(e,t){var n,r=t.labelPosition,i=t.size;return{root:{},body:{display:"flex"},labelWrapper:Nh(Ah({},e.fn.fontStyles()),{display:"inline-flex",flexDirection:"column",WebkitTapHighlightColor:"transparent",fontSize:e.fn.size({size:i,sizes:e.fontSizes}),lineHeight:"".concat(e.fn.size({size:i,sizes:Fh}),"px"),color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,cursor:e.cursorType,order:"left"===r?1:2}),description:(0,o.Z)({marginTop:"calc(".concat(e.spacing.xs,"px / 2)")},"left"===r?"paddingRight":"paddingLeft",e.spacing.sm),error:(0,o.Z)({marginTop:"calc(".concat(e.spacing.xs,"px / 2)")},"left"===r?"paddingRight":"paddingLeft",e.spacing.sm),label:(n={cursor:e.cursorType},(0,o.Z)(n,"left"===r?"paddingRight":"paddingLeft",e.spacing.sm),(0,o.Z)(n,"&[data-disabled]",{color:"dark"===e.colorScheme?e.colors.dark[3]:e.colors.gray[5]}),n)}})),Bh=zh,Hh=Object.defineProperty,Wh=Object.getOwnPropertySymbols,Uh=Object.prototype.hasOwnProperty,Vh=Object.prototype.propertyIsEnumerable,qh=function(e,t,n){return t in e?Hh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Kh=function(e,t){for(var n in t||(t={}))Uh.call(t,n)&&qh(e,n,t[n]);if(Wh){var r,i=ot(Wh(t));try{for(i.s();!(r=i.n()).done;){n=r.value;Vh.call(t,n)&&qh(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},Yh=function(e,t){var n={};for(var r in e)Uh.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Wh){var i,o=ot(Wh(e));try{for(o.s();!(i=o.n()).done;){r=i.value;t.indexOf(r)<0&&Vh.call(e,r)&&(n[r]=e[r])}}catch(pW){o.e(pW)}finally{o.f()}}return n};function Gh(e){var n=e,r=n.__staticSelector,i=n.className,o=n.classNames,a=n.styles,l=n.unstyled,s=n.children,c=n.label,u=n.description,d=n.id,f=n.disabled,h=n.error,p=n.size,v=n.labelPosition,m=Yh(n,["__staticSelector","className","classNames","styles","unstyled","children","label","description","id","disabled","error","size","labelPosition"]),g=Bh({size:p,labelPosition:v},{name:r,styles:a,classNames:o,unstyled:l}),y=g.classes,b=g.cx;return t.createElement(Ss,Kh({className:b(y.root,i)},m),t.createElement("div",{className:b(y.body)},s,t.createElement("div",{className:y.labelWrapper},c&&t.createElement("label",{className:y.label,"data-disabled":f||void 0,htmlFor:d},c),u&&t.createElement(sh.Description,{className:y.description},u),h&&"boolean"!==h&&t.createElement(sh.Error,{className:y.error},h))))}Gh.displayName="@mantine/core/InlineInput";var Xh=Object.defineProperty,$h=Object.getOwnPropertySymbols,Jh=Object.prototype.hasOwnProperty,Qh=Object.prototype.propertyIsEnumerable,ep=function(e,t,n){return t in e?Xh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},tp=function(e,t){for(var n in t||(t={}))Jh.call(t,n)&&ep(e,n,t[n]);if($h){var r,i=ot($h(t));try{for(i.s();!(r=i.n()).done;){n=r.value;Qh.call(t,n)&&ep(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},np={icon:function(e){return t.createElement("svg",cd({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 5 5"},e),t.createElement("path",{fill:"currentColor",d:"M0 2.5a2.5 2.5 0 115 0 2.5 2.5 0 01-5 0z"}))},transitionDuration:100,size:"sm",labelPosition:"right"},rp=(0,t.forwardRef)((function(e,n){var r,i,o=za("Radio",np,e),a=o.className,l=o.style,s=o.id,c=o.label,u=o.size,d=(o.title,o.disabled),f=o.color,h=o.classNames,p=o.styles,v=o.sx,m=o.icon,g=o.transitionDuration,y=o.wrapperProps,b=o.unstyled,_=o.labelPosition,w=o.description,S=o.error,x=function(e,t){var n={};for(var r in e)Jh.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&$h){var i,o=ot($h(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&Qh.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(o,["className","style","id","label","size","title","disabled","color","classNames","styles","sx","icon","transitionDuration","wrapperProps","unstyled","labelPosition","description","error"]),C=(0,t.useContext)(ud),k=null!=(r=null==C?void 0:C.size)?r:u,E=e.size?u:k,R=Ph({color:f,size:E,transitionDuration:g,labelPosition:_,error:!!S},{classNames:h,styles:p,unstyled:b,name:"Radio"}).classes,O=ns(x),P=O.systemStyles,T=O.rest,M=zo(s),L=C?{checked:C.value===T.value,name:null!=(i=T.name)?i:C.name,onChange:C.onChange}:{};return t.createElement(Gh,tp(tp({className:a,sx:v,style:l,id:M,size:E,labelPosition:_,label:c,description:w,error:S,disabled:d,__staticSelector:"Radio",classNames:h,styles:p,unstyled:b,"data-checked":L.checked||void 0},P),y),t.createElement("div",{className:R.inner},t.createElement("input",tp(tp({ref:n,className:R.radio,type:"radio",id:M,disabled:d},T),L)),t.createElement(m,{className:R.icon,"aria-hidden":!0})))}));rp.displayName="@mantine/core/Radio",rp.Group=mh;var ip=function(e){return e<.5?2*e*e:(4-2*e)*e-1},op=function(e){var t=e.axis,n=e.target,r=e.parent,i=e.alignment,o=e.offset,a=e.isList;if(!n||!r&&"undefined"===typeof document)return 0;var l=!!r,s=(r||document.body).getBoundingClientRect(),c=n.getBoundingClientRect(),u=function(e){return c[e]-s[e]};if("y"===t){var d=u("top");if(0===d)return 0;if("start"===i){var f=d-o;return f<=c.height*(a?0:1)||!a?f:0}var h=l?s.height:window.innerHeight;if("end"===i){var p=d+o-h+c.height;return p>=-c.height*(a?0:1)||!a?p:0}return"center"===i?d-h/2+c.height/2:0}if("x"===t){var v=u("left");if(0===v)return 0;if("start"===i){var m=v-o;return m<=c.width||!a?m:0}var g=l?s.width:window.innerWidth;if("end"===i){var y=v+o-g+c.width;return y>=-c.width||!a?y:0}return"center"===i?v-g/2+c.width/2:0}return 0},ap=function(e){var t=e.axis,n=e.parent;if(!n&&"undefined"===typeof document)return 0;var r="y"===t?"scrollTop":"scrollLeft";if(n)return n[r];var i=document,o=i.body,a=i.documentElement;return o[r]+a[r]},lp=function(e){var t=e.axis,n=e.parent,r=e.distance;if(n||"undefined"!==typeof document){var i="y"===t?"scrollTop":"scrollLeft";if(n)n[i]=r;else{var o=document,a=o.body,l=o.documentElement;a[i]=r,l[i]=r}}};function sp(e){var t=e.data,n=[],r=[],i=t.reduce((function(e,t,n){return t.group?e[t.group]?e[t.group].push(n):e[t.group]=[n]:r.push(n),e}),{});return Object.keys(i).forEach((function(e){n.push.apply(n,(0,v.Z)(i[e].map((function(e){return t[e]}))))})),n.push.apply(n,(0,v.Z)(r.map((function(e){return t[e]})))),n}function cp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.forEach((function(t){return function(e,t){"function"===typeof e?e(t):null!==e&&void 0!==e&&(e.current=t)}(t,e)}))}}function up(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0,t.useCallback)(cp.apply(void 0,n),n)}var dp=["children"],fp=["children"],hp=(0,t.forwardRef)((function(e,n){var r=e.children,i=p(e,dp),o=t.Children.toArray(r),a=o.find(mp);if(a){var l=a.props.children,s=o.map((function(e){return e===a?t.Children.count(l)>1?t.Children.only(null):(0,t.isValidElement)(l)?l.props.children:null:e}));return(0,t.createElement)(pp,(0,Pt.Z)({},i,{ref:n}),(0,t.isValidElement)(l)?(0,t.cloneElement)(l,void 0,s):null)}return(0,t.createElement)(pp,(0,Pt.Z)({},i,{ref:n}),r)}));hp.displayName="Slot";var pp=(0,t.forwardRef)((function(e,n){var r=e.children,i=p(e,fp);return(0,t.isValidElement)(r)?(0,t.cloneElement)(r,f(f({},function(e,t){var n=f({},t),r=function(){var r=e[i],o=t[i];/^on[A-Z]/.test(i)?r&&o?n[i]=function(){o.apply(void 0,arguments),r.apply(void 0,arguments)}:r&&(n[i]=r):"style"===i?n[i]=f(f({},r),o):"className"===i&&(n[i]=[r,o].filter(Boolean).join(" "))};for(var i in t)r();return f(f({},e),n)}(i,r.props)),{},{ref:cp(n,r.ref)})):t.Children.count(r)>1?t.Children.only(null):null}));pp.displayName="SlotClone";var vp=function(e){var n=e.children;return(0,t.createElement)(t.Fragment,null,n)};function mp(e){return(0,t.isValidElement)(e)&&e.type===vp}var gp=["asChild"],yp=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((function(e,n){var r=(0,t.forwardRef)((function(e,r){var i=e.asChild,o=p(e,gp),a=i?hp:n;return(0,t.useEffect)((function(){window[Symbol.for("radix-ui")]=!0}),[]),(0,t.createElement)(a,(0,Pt.Z)({},o,{ref:r}))}));return r.displayName="Primitive.".concat(n),f(f({},e),{},(0,o.Z)({},n,r))}),{});var bp=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?t.useLayoutEffect:function(){};var _p=function(e){var n=e.present,r=e.children,i=function(e){var n=(0,t.useState)(),r=(0,u.Z)(n,2),i=r[0],o=r[1],a=(0,t.useRef)({}),l=(0,t.useRef)(e),s=(0,t.useRef)("none"),c=e?"mounted":"unmounted",d=function(e,n){return(0,t.useReducer)((function(e,t){var r=n[e][t];return null!==r&&void 0!==r?r:e}),e)}(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),f=(0,u.Z)(d,2),h=f[0],p=f[1];return(0,t.useEffect)((function(){var e=wp(a.current);s.current="mounted"===h?e:"none"}),[h]),bp((function(){var t=a.current,n=l.current;if(n!==e){var r=s.current,i=wp(t);if(e)p("MOUNT");else if("none"===i||"none"===(null===t||void 0===t?void 0:t.display))p("UNMOUNT");else{p(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}l.current=e}}),[e,p]),bp((function(){if(i){var e=function(e){var t=wp(a.current).includes(e.animationName);e.target===i&&t&&(0,Kn.flushSync)((function(){return p("ANIMATION_END")}))},t=function(e){e.target===i&&(s.current=wp(a.current))};return i.addEventListener("animationstart",t),i.addEventListener("animationcancel",e),i.addEventListener("animationend",e),function(){i.removeEventListener("animationstart",t),i.removeEventListener("animationcancel",e),i.removeEventListener("animationend",e)}}p("ANIMATION_END")}),[i,p]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:(0,t.useCallback)((function(e){e&&(a.current=getComputedStyle(e)),o(e)}),[])}}(n),o="function"===typeof r?r({present:i.isPresent}):t.Children.only(r),a=up(i.ref,o.ref);return"function"===typeof r||i.isPresent?(0,t.cloneElement)(o,{ref:a}):null};function wp(e){return(null===e||void 0===e?void 0:e.animationName)||"none"}_p.displayName="Presence";var Sp=["scope","children"];function xp(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n[0];if(1===n.length)return i;var a=function(){var e=n.map((function(e){return{useScope:e(),scopeName:e.scopeName}}));return function(n){var r=e.reduce((function(e,t){var r=t.useScope,i=t.scopeName,o=r(n)["__scope".concat(i)];return f(f({},e),o)}),{});return(0,t.useMemo)((function(){return(0,o.Z)({},"__scope".concat(i.scopeName),r)}),[r])}};return a.scopeName=i.scopeName,a}function Cp(e){var n=(0,t.useRef)(e);return(0,t.useEffect)((function(){n.current=e})),(0,t.useMemo)((function(){return function(){for(var e,t,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return null===(t=n.current)||void 0===t?void 0:(e=t).call.apply(e,[n].concat(i))}}),[])}var kp=(0,t.createContext)(void 0);function Ep(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).checkForDefaultPrevented,r=void 0===n||n;return function(n){if(null===e||void 0===e||e(n),!1===r||!n.defaultPrevented)return null===t||void 0===t?void 0:t(n)}}var Rp=["__scopeScrollArea","type","dir","scrollHideDelay"],Op=["__scopeScrollArea","children"],Pp=["forceMount"],Tp=["forceMount"],Mp=["forceMount"],Lp=["forceMount"],Zp=["orientation"],Ip=["sizes","onSizesChange"],Dp=["sizes","onSizesChange"],jp=["__scopeScrollArea","sizes","hasThumb","onThumbChange","onThumbPointerUp","onThumbPointerDown","onThumbPositionChange","onDragScroll","onWheelScroll","onResize"],Ap=["forceMount"],Np=["__scopeScrollArea","style"],Fp=["__scopeScrollArea"];var zp="ScrollArea",Bp=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[],i=function(){var n=r.map((function(e){return(0,t.createContext)(e)}));return function(r){var i=(null===r||void 0===r?void 0:r[e])||n;return(0,t.useMemo)((function(){return(0,o.Z)({},"__scope".concat(e),f(f({},r),{},(0,o.Z)({},e,i)))}),[r,i])}};return i.scopeName=e,[function(n,i){var o=(0,t.createContext)(i),a=r.length;function l(n){var r=n.scope,i=n.children,l=p(n,Sp),s=(null===r||void 0===r?void 0:r[e][a])||o,c=(0,t.useMemo)((function(){return l}),Object.values(l));return(0,t.createElement)(s.Provider,{value:c},i)}return r=[].concat((0,v.Z)(r),[i]),l.displayName=n+"Provider",[l,function(r,l){var s=(null===l||void 0===l?void 0:l[e][a])||o,c=(0,t.useContext)(s);if(c)return c;if(void 0!==i)return i;throw new Error("`".concat(r,"` must be used within `").concat(n,"`"))}]},xp.apply(void 0,[i].concat((0,v.Z)(n)))]}(zp),Hp=(0,u.Z)(Bp,2),Wp=Hp[0],Up=(Hp[1],Wp(zp)),Vp=(0,u.Z)(Up,2),qp=Vp[0],Kp=Vp[1],Yp=(0,t.forwardRef)((function(e,n){var r,i=e.__scopeScrollArea,a=e.type,l=void 0===a?"hover":a,s=e.dir,c=e.scrollHideDelay,d=void 0===c?600:c,h=p(e,Rp),v=(0,t.useState)(null),m=(0,u.Z)(v,2),g=m[0],y=m[1],b=(0,t.useState)(null),_=(0,u.Z)(b,2),w=_[0],S=_[1],x=(0,t.useState)(null),C=(0,u.Z)(x,2),k=C[0],E=C[1],R=(0,t.useState)(null),O=(0,u.Z)(R,2),P=O[0],T=O[1],M=(0,t.useState)(null),L=(0,u.Z)(M,2),Z=L[0],I=L[1],D=(0,t.useState)(0),j=(0,u.Z)(D,2),A=j[0],N=j[1],F=(0,t.useState)(0),z=(0,u.Z)(F,2),B=z[0],H=z[1],W=(0,t.useState)(!1),U=(0,u.Z)(W,2),V=U[0],q=U[1],K=(0,t.useState)(!1),Y=(0,u.Z)(K,2),G=Y[0],X=Y[1],$=up(n,(function(e){return y(e)})),J=function(e){var n=(0,t.useContext)(kp);return e||n||"ltr"}(s);return(0,t.createElement)(qp,{scope:i,type:l,dir:J,scrollHideDelay:d,scrollArea:g,viewport:w,onViewportChange:S,content:k,onContentChange:E,scrollbarX:P,onScrollbarXChange:T,scrollbarXEnabled:V,onScrollbarXEnabledChange:q,scrollbarY:Z,onScrollbarYChange:I,scrollbarYEnabled:G,onScrollbarYEnabledChange:X,onCornerWidthChange:N,onCornerHeightChange:H},(0,t.createElement)(yp.div,(0,Pt.Z)({dir:J},h,{ref:$,style:f((r={position:"relative"},(0,o.Z)(r,"--radix-scroll-area-corner-width",A+"px"),(0,o.Z)(r,"--radix-scroll-area-corner-height",B+"px"),r),e.style)})))})),Gp="ScrollAreaViewport",Xp=(0,t.forwardRef)((function(e,n){var r=e.__scopeScrollArea,i=e.children,o=p(e,Op),a=Kp(Gp,r),l=up(n,(0,t.useRef)(null),a.onViewportChange);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),(0,t.createElement)(yp.div,(0,Pt.Z)({"data-radix-scroll-area-viewport":""},o,{ref:l,style:f({overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden"},e.style)}),(0,t.createElement)("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"}},i)))})),$p="ScrollAreaScrollbar",Jp=(0,t.forwardRef)((function(e,n){var r=e.forceMount,i=p(e,Pp),o=Kp($p,e.__scopeScrollArea),a=o.onScrollbarXEnabledChange,l=o.onScrollbarYEnabledChange,s="horizontal"===e.orientation;return(0,t.useEffect)((function(){return s?a(!0):l(!0),function(){s?a(!1):l(!1)}}),[s,a,l]),"hover"===o.type?(0,t.createElement)(Qp,(0,Pt.Z)({},i,{ref:n,forceMount:r})):"scroll"===o.type?(0,t.createElement)(ev,(0,Pt.Z)({},i,{ref:n,forceMount:r})):"auto"===o.type?(0,t.createElement)(tv,(0,Pt.Z)({},i,{ref:n,forceMount:r})):"always"===o.type?(0,t.createElement)(nv,(0,Pt.Z)({},i,{ref:n})):null})),Qp=(0,t.forwardRef)((function(e,n){var r=e.forceMount,i=p(e,Tp),o=Kp($p,e.__scopeScrollArea),a=(0,t.useState)(!1),l=(0,u.Z)(a,2),s=l[0],c=l[1];return(0,t.useEffect)((function(){var e=o.scrollArea,t=0;if(e){var n=function(){window.clearTimeout(t),c(!0)},r=function(){t=window.setTimeout((function(){return c(!1)}),o.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),function(){window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}}),[o.scrollArea,o.scrollHideDelay]),(0,t.createElement)(_p,{present:r||s},(0,t.createElement)(tv,(0,Pt.Z)({"data-state":s?"visible":"hidden"},i,{ref:n})))})),ev=(0,t.forwardRef)((function(e,n){var r,i,o=e.forceMount,a=p(e,Mp),l=Kp($p,e.__scopeScrollArea),s="horizontal"===e.orientation,c=xv((function(){return v("SCROLL_END")}),100),d=(r="hidden",i={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},(0,t.useReducer)((function(e,t){var n=i[e][t];return null!==n&&void 0!==n?n:e}),r)),f=(0,u.Z)(d,2),h=f[0],v=f[1];return(0,t.useEffect)((function(){if("idle"===h){var e=window.setTimeout((function(){return v("HIDE")}),l.scrollHideDelay);return function(){return window.clearTimeout(e)}}}),[h,l.scrollHideDelay,v]),(0,t.useEffect)((function(){var e=l.viewport,t=s?"scrollLeft":"scrollTop";if(e){var n=e[t],r=function(){var r=e[t];n!==r&&(v("SCROLL"),c()),n=r};return e.addEventListener("scroll",r),function(){return e.removeEventListener("scroll",r)}}}),[l.viewport,s,v,c]),(0,t.createElement)(_p,{present:o||"hidden"!==h},(0,t.createElement)(nv,(0,Pt.Z)({"data-state":"hidden"===h?"hidden":"visible"},a,{ref:n,onPointerEnter:Ep(e.onPointerEnter,(function(){return v("POINTER_ENTER")})),onPointerLeave:Ep(e.onPointerLeave,(function(){return v("POINTER_LEAVE")}))})))})),tv=(0,t.forwardRef)((function(e,n){var r=Kp($p,e.__scopeScrollArea),i=e.forceMount,o=p(e,Lp),a=(0,t.useState)(!1),l=(0,u.Z)(a,2),s=l[0],c=l[1],d="horizontal"===e.orientation,f=xv((function(){if(r.viewport){var e=r.viewport.offsetWidth<r.viewport.scrollWidth,t=r.viewport.offsetHeight<r.viewport.scrollHeight;c(d?e:t)}}),10);return Cv(r.viewport,f),Cv(r.content,f),(0,t.createElement)(_p,{present:i||s},(0,t.createElement)(nv,(0,Pt.Z)({"data-state":s?"visible":"hidden"},o,{ref:n})))})),nv=(0,t.forwardRef)((function(e,n){var r=e.orientation,i=void 0===r?"vertical":r,o=p(e,Zp),a=Kp($p,e.__scopeScrollArea),l=(0,t.useRef)(null),s=(0,t.useRef)(0),c=(0,t.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=(0,u.Z)(c,2),h=d[0],v=d[1],m=gv(h.viewport,h.content),g=f(f({},o),{},{sizes:h,onSizesChange:v,hasThumb:Boolean(m>0&&m<1),onThumbChange:function(e){return l.current=e},onThumbPointerUp:function(){return s.current=0},onThumbPointerDown:function(e){return s.current=e}});function y(e,t){return function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ltr",i=yv(n),o=i/2,a=t||o,l=i-a,s=n.scrollbar.paddingStart+a,c=n.scrollbar.size-n.scrollbar.paddingEnd-l,u=n.content-n.viewport,d="ltr"===r?[0,u]:[-1*u,0];return _v([s,c],d)(e)}(e,s.current,h,t)}return"horizontal"===i?(0,t.createElement)(rv,(0,Pt.Z)({},g,{ref:n,onThumbPositionChange:function(){if(a.viewport&&l.current){var e=bv(a.viewport.scrollLeft,h,a.dir);l.current.style.transform="translate3d(".concat(e,"px, 0, 0)")}},onWheelScroll:function(e){a.viewport&&(a.viewport.scrollLeft=e)},onDragScroll:function(e){a.viewport&&(a.viewport.scrollLeft=y(e,a.dir))}})):"vertical"===i?(0,t.createElement)(iv,(0,Pt.Z)({},g,{ref:n,onThumbPositionChange:function(){if(a.viewport&&l.current){var e=bv(a.viewport.scrollTop,h);l.current.style.transform="translate3d(0, ".concat(e,"px, 0)")}},onWheelScroll:function(e){a.viewport&&(a.viewport.scrollTop=e)},onDragScroll:function(e){a.viewport&&(a.viewport.scrollTop=y(e))}})):null})),rv=(0,t.forwardRef)((function(e,n){var r=e.sizes,i=e.onSizesChange,a=p(e,Ip),l=Kp($p,e.__scopeScrollArea),s=(0,t.useState)(),c=(0,u.Z)(s,2),d=c[0],h=c[1],v=(0,t.useRef)(null),m=up(n,v,l.onScrollbarXChange);return(0,t.useEffect)((function(){v.current&&h(getComputedStyle(v.current))}),[v]),(0,t.createElement)(cv,(0,Pt.Z)({"data-orientation":"horizontal"},a,{ref:m,sizes:r,style:f((0,o.Z)({bottom:0,left:"rtl"===l.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===l.dir?"var(--radix-scroll-area-corner-width)":0},"--radix-scroll-area-thumb-width",yv(r)+"px"),e.style),onThumbPointerDown:function(t){return e.onThumbPointerDown(t.x)},onDragScroll:function(t){return e.onDragScroll(t.x)},onWheelScroll:function(t,n){if(l.viewport){var r=l.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),wv(r,n)&&t.preventDefault()}},onResize:function(){v.current&&l.viewport&&d&&i({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:v.current.clientWidth,paddingStart:mv(d.paddingLeft),paddingEnd:mv(d.paddingRight)}})}}))})),iv=(0,t.forwardRef)((function(e,n){var r=e.sizes,i=e.onSizesChange,a=p(e,Dp),l=Kp($p,e.__scopeScrollArea),s=(0,t.useState)(),c=(0,u.Z)(s,2),d=c[0],h=c[1],v=(0,t.useRef)(null),m=up(n,v,l.onScrollbarYChange);return(0,t.useEffect)((function(){v.current&&h(getComputedStyle(v.current))}),[v]),(0,t.createElement)(cv,(0,Pt.Z)({"data-orientation":"vertical"},a,{ref:m,sizes:r,style:f((0,o.Z)({top:0,right:"ltr"===l.dir?0:void 0,left:"rtl"===l.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)"},"--radix-scroll-area-thumb-height",yv(r)+"px"),e.style),onThumbPointerDown:function(t){return e.onThumbPointerDown(t.y)},onDragScroll:function(t){return e.onDragScroll(t.y)},onWheelScroll:function(t,n){if(l.viewport){var r=l.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),wv(r,n)&&t.preventDefault()}},onResize:function(){v.current&&l.viewport&&d&&i({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:v.current.clientHeight,paddingStart:mv(d.paddingTop),paddingEnd:mv(d.paddingBottom)}})}}))})),ov=Wp($p),av=(0,u.Z)(ov,2),lv=av[0],sv=av[1],cv=(0,t.forwardRef)((function(e,n){var r=e.__scopeScrollArea,i=e.sizes,o=e.hasThumb,a=e.onThumbChange,l=e.onThumbPointerUp,s=e.onThumbPointerDown,c=e.onThumbPositionChange,d=e.onDragScroll,h=e.onWheelScroll,v=e.onResize,m=p(e,jp),g=Kp($p,r),y=(0,t.useState)(null),b=(0,u.Z)(y,2),_=b[0],w=b[1],S=up(n,(function(e){return w(e)})),x=(0,t.useRef)(null),C=(0,t.useRef)(""),k=g.viewport,E=i.content-i.viewport,R=Cp(h),O=Cp(c),P=xv(v,10);function T(e){if(x.current){var t=e.clientX-x.current.left,n=e.clientY-x.current.top;d({x:t,y:n})}}return(0,t.useEffect)((function(){var e=function(e){var t=e.target;(null===_||void 0===_?void 0:_.contains(t))&&R(e,E)};return document.addEventListener("wheel",e,{passive:!1}),function(){return document.removeEventListener("wheel",e,{passive:!1})}}),[k,_,E,R]),(0,t.useEffect)(O,[i,O]),Cv(_,P),Cv(g.content,P),(0,t.createElement)(lv,{scope:r,scrollbar:_,hasThumb:o,onThumbChange:Cp(a),onThumbPointerUp:Cp(l),onThumbPositionChange:O,onThumbPointerDown:Cp(s)},(0,t.createElement)(yp.div,(0,Pt.Z)({},m,{ref:S,style:f({position:"absolute"},m.style),onPointerDown:Ep(e.onPointerDown,(function(e){0===e.button&&(e.target.setPointerCapture(e.pointerId),x.current=_.getBoundingClientRect(),C.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",T(e))})),onPointerMove:Ep(e.onPointerMove,T),onPointerUp:Ep(e.onPointerUp,(function(e){var t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=C.current,x.current=null}))})))})),uv="ScrollAreaThumb",dv=(0,t.forwardRef)((function(e,n){var r=e.forceMount,i=p(e,Ap),o=sv(uv,e.__scopeScrollArea);return(0,t.createElement)(_p,{present:r||o.hasThumb},(0,t.createElement)(fv,(0,Pt.Z)({ref:n},i)))})),fv=(0,t.forwardRef)((function(e,n){var r=e.__scopeScrollArea,i=e.style,o=p(e,Np),a=Kp(uv,r),l=sv(uv,r),s=l.onThumbPositionChange,c=up(n,(function(e){return l.onThumbChange(e)})),u=(0,t.useRef)(),d=xv((function(){u.current&&(u.current(),u.current=void 0)}),100);return(0,t.useEffect)((function(){var e=a.viewport;if(e){var t=function(){if(d(),!u.current){var t=Sv(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),function(){return e.removeEventListener("scroll",t)}}}),[a.viewport,d,s]),(0,t.createElement)(yp.div,(0,Pt.Z)({"data-state":l.hasThumb?"visible":"hidden"},o,{ref:c,style:f({width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)"},i),onPointerDownCapture:Ep(e.onPointerDownCapture,(function(e){var t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;l.onThumbPointerDown({x:n,y:r})})),onPointerUp:Ep(e.onPointerUp,l.onThumbPointerUp)}))})),hv="ScrollAreaCorner",pv=(0,t.forwardRef)((function(e,n){var r=Kp(hv,e.__scopeScrollArea),i=Boolean(r.scrollbarX&&r.scrollbarY);return"scroll"!==r.type&&i?(0,t.createElement)(vv,(0,Pt.Z)({},e,{ref:n})):null})),vv=(0,t.forwardRef)((function(e,n){var r=e.__scopeScrollArea,i=p(e,Fp),o=Kp(hv,r),a=(0,t.useState)(0),l=(0,u.Z)(a,2),s=l[0],c=l[1],d=(0,t.useState)(0),h=(0,u.Z)(d,2),v=h[0],m=h[1],g=Boolean(s&&v);return Cv(o.scrollbarX,(function(){var e,t=(null===(e=o.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;o.onCornerHeightChange(t),m(t)})),Cv(o.scrollbarY,(function(){var e,t=(null===(e=o.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;o.onCornerWidthChange(t),c(t)})),g?(0,t.createElement)(yp.div,(0,Pt.Z)({},i,{ref:n,style:f({width:s,height:v,position:"absolute",right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:0},e.style)})):null}));function mv(e){return e?parseInt(e,10):0}function gv(e,t){var n=e/t;return isNaN(n)?0:n}function yv(e){var t=gv(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function bv(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",r=yv(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,l=o-r,s=function(e,t){var n=(0,u.Z)(t,2),r=n[0],i=n[1];return Math.min(i,Math.max(r,e))}(e,"ltr"===n?[0,a]:[-1*a,0]);return _v([0,a],[0,l])(s)}function _v(e,t){return function(n){if(e[0]===e[1]||t[0]===t[1])return t[0];var r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function wv(e,t){return e>0&&e<t}var Sv=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n={left:e.scrollLeft,top:e.scrollTop},r=0;return function i(){var o={left:e.scrollLeft,top:e.scrollTop},a=n.left!==o.left,l=n.top!==o.top;(a||l)&&t(),n=o,r=window.requestAnimationFrame(i)}(),function(){return window.cancelAnimationFrame(r)}};function xv(e,n){var r=Cp(e),i=(0,t.useRef)(0);return(0,t.useEffect)((function(){return function(){return window.clearTimeout(i.current)}}),[]),(0,t.useCallback)((function(){window.clearTimeout(i.current),i.current=window.setTimeout(r,n)}),[r,n])}function Cv(e,t){var n=Cp(t);bp((function(){var t=0;if(e){var r=new ResizeObserver((function(){cancelAnimationFrame(t),t=window.requestAnimationFrame(n)}));return r.observe(e),function(){window.cancelAnimationFrame(t),r.unobserve(e)}}}),[e,n])}var kv=Yp,Ev=Xp,Rv=Jp,Ov=dv,Pv=pv,Tv=cl((function(e,t,n){var r=t.scrollbarSize,i=t.offsetScrollbars,a=t.scrollbarHovered,l=t.hidden;return{root:{overflow:"hidden"},viewport:{width:"100%",height:"100%",paddingRight:i?r:void 0,paddingBottom:i?r:void 0},scrollbar:{display:l?"none":"flex",userSelect:"none",touchAction:"none",boxSizing:"border-box",padding:r/5,transition:"background-color 150ms ease, opacity 150ms ease","&:hover":(0,o.Z)({backgroundColor:"dark"===e.colorScheme?e.colors.dark[8]:e.colors.gray[0]},"& .".concat(n("thumb")),{backgroundColor:"dark"===e.colorScheme?e.fn.rgba(e.white,.5):e.fn.rgba(e.black,.5)}),'&[data-orientation="vertical"]':{width:r},'&[data-orientation="horizontal"]':{flexDirection:"column",height:r},'&[data-state="hidden"]':{display:"none",opacity:0}},thumb:{ref:n("thumb"),flex:1,backgroundColor:"dark"===e.colorScheme?e.fn.rgba(e.white,.4):e.fn.rgba(e.black,.4),borderRadius:r,position:"relative",transition:"background-color 150ms ease",display:l?"none":void 0,overflow:"hidden","&::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"100%",height:"100%",minWidth:44,minHeight:44}},corner:{backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.colors.gray[0],transition:"opacity 150ms ease",opacity:a?1:0,display:l?"none":void 0}}})),Mv=Tv,Lv=Object.defineProperty,Zv=Object.defineProperties,Iv=Object.getOwnPropertyDescriptors,Dv=Object.getOwnPropertySymbols,jv=Object.prototype.hasOwnProperty,Av=Object.prototype.propertyIsEnumerable,Nv=function(e,t,n){return t in e?Lv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Fv=function(e,t){for(var n in t||(t={}))jv.call(t,n)&&Nv(e,n,t[n]);if(Dv){var r,i=ot(Dv(t));try{for(i.s();!(r=i.n()).done;){n=r.value;Av.call(t,n)&&Nv(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},zv=function(e,t){return Zv(e,Iv(t))},Bv=function(e,t){var n={};for(var r in e)jv.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Dv){var i,o=ot(Dv(e));try{for(o.s();!(i=o.n()).done;){r=i.value;t.indexOf(r)<0&&Av.call(e,r)&&(n[r]=e[r])}}catch(pW){o.e(pW)}finally{o.f()}}return n},Hv={scrollbarSize:12,scrollHideDelay:1e3,type:"hover",offsetScrollbars:!1},Wv=(0,t.forwardRef)((function(e,n){var r=za("ScrollArea",Hv,e),i=r.children,o=r.className,a=r.classNames,l=r.styles,s=r.scrollbarSize,c=r.scrollHideDelay,d=r.type,f=r.dir,h=r.offsetScrollbars,p=r.viewportRef,v=r.onScrollPositionChange,m=r.unstyled,g=r.viewportProps,y=Bv(r,["children","className","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled","viewportProps"]),b=(0,t.useState)(!1),_=(0,u.Z)(b,2),w=_[0],S=_[1],x=Na(),C=Mv({scrollbarSize:s,offsetScrollbars:h,scrollbarHovered:w,hidden:"never"===d},{name:"ScrollArea",classNames:a,styles:l,unstyled:m}),k=C.classes,E=C.cx;return t.createElement(kv,{type:"never"===d?"always":d,scrollHideDelay:c,dir:f||x.dir,ref:n,asChild:!0},t.createElement(Ss,Fv({className:E(k.root,o)},y),t.createElement(Ev,zv(Fv({},g),{className:k.viewport,ref:p,onScroll:"function"===typeof v?function(e){var t=e.currentTarget;return v({x:t.scrollLeft,y:t.scrollTop})}:void 0}),i),t.createElement(Rv,{orientation:"horizontal",className:k.scrollbar,forceMount:!0,onMouseEnter:function(){return S(!0)},onMouseLeave:function(){return S(!1)}},t.createElement(Ov,{className:k.thumb})),t.createElement(Rv,{orientation:"vertical",className:k.scrollbar,forceMount:!0,onMouseEnter:function(){return S(!0)},onMouseLeave:function(){return S(!1)}},t.createElement(Ov,{className:k.thumb})),t.createElement(Pv,{className:k.corner})))})),Uv=(0,t.forwardRef)((function(e,n){var r=za("ScrollAreaAutosize",Hv,e),i=r.maxHeight,o=r.children,a=r.classNames,l=r.styles,s=r.scrollbarSize,c=r.scrollHideDelay,u=r.type,d=r.dir,f=r.offsetScrollbars,h=r.viewportRef,p=r.onScrollPositionChange,m=r.unstyled,g=r.sx,y=Bv(r,["maxHeight","children","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled","sx"]);return t.createElement(Ss,zv(Fv({},y),{ref:n,sx:[{display:"flex",maxHeight:i}].concat((0,v.Z)(xs(g)))}),t.createElement(Ss,{sx:{display:"flex",flexDirection:"column",flex:1}},t.createElement(Wv,{classNames:a,styles:l,scrollHideDelay:c,scrollbarSize:s,type:u,dir:d,offsetScrollbars:f,viewportRef:h,onScrollPositionChange:p,unstyled:m},o)))}));Uv.displayName="@mantine/core/ScrollAreaAutosize",Wv.displayName="@mantine/core/ScrollArea",Wv.Autosize=Uv;var Vv=Wv,qv=Object.defineProperty,Kv=Object.defineProperties,Yv=Object.getOwnPropertyDescriptors,Gv=Object.getOwnPropertySymbols,Xv=Object.prototype.hasOwnProperty,$v=Object.prototype.propertyIsEnumerable,Jv=function(e,t,n){return t in e?qv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Qv=function(e,t){for(var n in t||(t={}))Xv.call(t,n)&&Jv(e,n,t[n]);if(Gv){var r,i=ot(Gv(t));try{for(i.s();!(r=i.n()).done;){n=r.value;$v.call(t,n)&&Jv(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},em=(0,t.forwardRef)((function(e,n){var r=e,i=r.style,o=function(e,t){var n={};for(var r in e)Xv.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Gv){var i,o=ot(Gv(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&$v.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(r,["style"]);return t.createElement(Vv,function(e,t){return Kv(e,Yv(t))}(Qv({},o),{style:Qv({width:"100%"},i),viewportRef:n}),o.children)}));em.displayName="@mantine/core/SelectScrollArea";var tm=Object.defineProperty,nm=Object.getOwnPropertySymbols,rm=Object.prototype.hasOwnProperty,im=Object.prototype.propertyIsEnumerable,om=function(e,t,n){return t in e?tm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},am=(0,t.forwardRef)((function(e,n){var r=e,i=r.label,o=r.value,a=function(e,t){var n={};for(var r in e)rm.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&nm){var i,o=ot(nm(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&im.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(r,["label","value"]);return t.createElement("div",function(e,t){for(var n in t||(t={}))rm.call(t,n)&&om(e,n,t[n]);if(nm){var r,i=ot(nm(t));try{for(i.s();!(r=i.n()).done;)n=r.value,im.call(t,n)&&om(e,n,t[n])}catch(pW){i.e(pW)}finally{i.f()}}return e}({ref:n},a),i||o)}));am.displayName="@mantine/core/DefaultItem";var lm=Object.defineProperty,sm=Object.getOwnPropertySymbols,cm=Object.prototype.hasOwnProperty,um=Object.prototype.propertyIsEnumerable,dm=function(e,t,n){return t in e?lm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},fm=function(e,t){for(var n in t||(t={}))cm.call(t,n)&&dm(e,n,t[n]);if(sm){var r,i=ot(sm(t));try{for(i.s();!(r=i.n()).done;){n=r.value;um.call(t,n)&&dm(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},hm=function(e,t){var n={};for(var r in e)cm.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&sm){var i,o=ot(sm(e));try{for(o.s();!(i=o.n()).done;){r=i.value;t.indexOf(r)<0&&um.call(e,r)&&(n[r]=e[r])}}catch(pW){o.e(pW)}finally{o.f()}}return n},pm={xs:14,sm:18,md:20,lg:24,xl:28};function vm(e){var n=e,r=n.size,i=n.error,o=n.style,a=hm(n,["size","error","style"]),l=Na(),s=l.fn.size({size:r,sizes:pm});return t.createElement("svg",fm({width:s,height:s,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:fm({color:i?l.colors.red[6]:l.colors.gray[6]},o),"data-chevron":!0},a),t.createElement("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function mm(e){var n=e.shouldClear,r=e.clearButtonLabel,i=e.onClear,o=e.size,a=e.error,l=e.clearButtonTabIndex;return n?t.createElement(Yu,{variant:"transparent","aria-label":r,onClick:i,size:o,tabIndex:l,onMouseDown:function(e){return e.preventDefault()}}):t.createElement(vm,{error:a,size:o})}mm.displayName="@mantine/core/SelectRightSection";var gm=Object.defineProperty,ym=Object.defineProperties,bm=Object.getOwnPropertyDescriptors,_m=Object.getOwnPropertySymbols,wm=Object.prototype.hasOwnProperty,Sm=Object.prototype.propertyIsEnumerable,xm=function(e,t,n){return t in e?gm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Cm=function(e,t){for(var n in t||(t={}))wm.call(t,n)&&xm(e,n,t[n]);if(_m){var r,i=ot(_m(t));try{for(i.s();!(r=i.n()).done;){n=r.value;Sm.call(t,n)&&xm(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},km=function(e,t){return ym(e,bm(t))},Em=function(e,t){var n={};for(var r in e)wm.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&_m){var i,o=ot(_m(e));try{for(o.s();!(i=o.n()).done;){r=i.value;t.indexOf(r)<0&&Sm.call(e,r)&&(n[r]=e[r])}}catch(pW){o.e(pW)}finally{o.f()}}return n},Rm={xs:24,sm:30,md:34,lg:44,xl:54};var Om={xs:1,sm:2,md:3,lg:4,xl:5};function Pm(e,t){var n=e.fn.variant({variant:"outline",color:t}).border;return"string"===typeof t&&(t in e.colors||t.split(".")[0]in e.colors)?n:void 0===t?"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[4]:t}var Tm=cl((function(e,t){var n=t.size,r=t.variant,i=t.color;return{root:{},withLabel:{borderTop:"0 !important"},left:{"&::before":{display:"none"}},right:{"&::after":{display:"none"}},label:{display:"flex",alignItems:"center","&::before":{content:'""',flex:1,height:1,borderTop:"".concat(e.fn.size({size:n,sizes:Om}),"px ").concat(r," ").concat(Pm(e,i)),marginRight:e.spacing.xs},"&::after":{content:'""',flex:1,borderTop:"".concat(e.fn.size({size:n,sizes:Om}),"px ").concat(r," ").concat(Pm(e,i)),marginLeft:e.spacing.xs}},labelDefaultStyles:{color:"dark"===i?e.colors.dark[1]:e.fn.themeColor(i,"dark"===e.colorScheme?5:e.fn.primaryShade(),!1)},horizontal:{border:0,borderTopWidth:e.fn.size({size:n,sizes:Om}),borderTopColor:Pm(e,i),borderTopStyle:r,margin:0},vertical:{border:0,alignSelf:"stretch",height:"auto",borderLeftWidth:e.fn.size({size:n,sizes:Om}),borderLeftColor:Pm(e,i),borderLeftStyle:r}}})),Mm=Tm,Lm=Object.defineProperty,Zm=Object.defineProperties,Im=Object.getOwnPropertyDescriptors,Dm=Object.getOwnPropertySymbols,jm=Object.prototype.hasOwnProperty,Am=Object.prototype.propertyIsEnumerable,Nm=function(e,t,n){return t in e?Lm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Fm=function(e,t){for(var n in t||(t={}))jm.call(t,n)&&Nm(e,n,t[n]);if(Dm){var r,i=ot(Dm(t));try{for(i.s();!(r=i.n()).done;){n=r.value;Am.call(t,n)&&Nm(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},zm={orientation:"horizontal",size:"xs",labelPosition:"left",variant:"solid"},Bm=(0,t.forwardRef)((function(e,n){var r,i=za("Divider",zm,e),a=i.className,l=i.color,s=i.orientation,c=i.size,u=i.label,d=i.labelPosition,f=i.labelProps,h=i.variant,p=i.styles,v=i.classNames,m=i.unstyled,g=function(e,t){var n={};for(var r in e)jm.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Dm){var i,o=ot(Dm(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&Am.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(i,["className","color","orientation","size","label","labelPosition","labelProps","variant","styles","classNames","unstyled"]),y=Mm({color:l,size:c,variant:h},{classNames:v,styles:p,unstyled:m,name:"Divider"}),b=y.classes,_=y.cx,w="vertical"===s,S="horizontal"===s,x=!!u&&S,C=!(null==f?void 0:f.color);return t.createElement(Ss,Fm({ref:n,className:_(b.root,(r={},(0,o.Z)(r,b.vertical,w),(0,o.Z)(r,b.horizontal,S),(0,o.Z)(r,b.withLabel,x),r),a),role:"separator"},g),x&&t.createElement(vc,function(e,t){return Zm(e,Im(t))}(Fm({},f),{size:(null==f?void 0:f.size)||"xs",sx:{marginTop:2},className:_(b.label,b[d],(0,o.Z)({},b.labelDefaultStyles,C))}),u))}));Bm.displayName="@mantine/core/Divider";var Hm=Object.defineProperty,Wm=Object.defineProperties,Um=Object.getOwnPropertyDescriptors,Vm=Object.getOwnPropertySymbols,qm=Object.prototype.hasOwnProperty,Km=Object.prototype.propertyIsEnumerable,Ym=function(e,t,n){return t in e?Hm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Gm=function(e,t){for(var n in t||(t={}))qm.call(t,n)&&Ym(e,n,t[n]);if(Vm){var r,i=ot(Vm(t));try{for(i.s();!(r=i.n()).done;){n=r.value;Km.call(t,n)&&Ym(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},Xm=function(e,t){return Wm(e,Um(t))},$m=cl((function(e,t){var n=t.size;return{item:Xm(Gm({},e.fn.fontStyles()),{boxSizing:"border-box",textAlign:"left",width:"100%",padding:"".concat(e.fn.size({size:n,sizes:e.spacing})/1.5,"px ").concat(e.fn.size({size:n,sizes:e.spacing}),"px"),cursor:"pointer",fontSize:e.fn.size({size:n,sizes:e.fontSizes}),color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,borderRadius:e.fn.radius(),"&[data-hovered]":{backgroundColor:"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[1]},"&[data-selected]":Gm({backgroundColor:e.fn.variant({variant:"filled"}).background,color:e.fn.variant({variant:"filled"}).color},e.fn.hover({backgroundColor:e.fn.variant({variant:"filled"}).hover})),"&[data-disabled]":{cursor:"default",color:e.colors.dark[2]}}),nothingFound:{boxSizing:"border-box",color:e.colors.gray[6],paddingTop:e.fn.size({size:n,sizes:e.spacing})/2,paddingBottom:e.fn.size({size:n,sizes:e.spacing})/2,textAlign:"center"},separator:{boxSizing:"border-box",textAlign:"left",width:"100%",padding:"".concat(e.fn.size({size:n,sizes:e.spacing})/1.5,"px ").concat(e.fn.size({size:n,sizes:e.spacing}),"px")},separatorLabel:{color:"dark"===e.colorScheme?e.colors.dark[3]:e.colors.gray[5]}}})),Jm=$m,Qm=Object.defineProperty,eg=Object.getOwnPropertySymbols,tg=Object.prototype.hasOwnProperty,ng=Object.prototype.propertyIsEnumerable,rg=function(e,t,n){return t in e?Qm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},ig=function(e,t){for(var n in t||(t={}))tg.call(t,n)&&rg(e,n,t[n]);if(eg){var r,i=ot(eg(t));try{for(i.s();!(r=i.n()).done;){n=r.value;ng.call(t,n)&&rg(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e};function og(e){var n=e.data,r=e.hovered,i=e.classNames,o=e.styles,a=e.isItemSelected,l=e.uuid,s=e.__staticSelector,c=e.onItemHover,u=e.onItemSelect,d=e.itemsRefs,f=e.itemComponent,h=e.size,p=e.nothingFound,v=e.creatable,m=e.createLabel,g=e.unstyled,y=Jm({size:h},{classNames:i,styles:o,unstyled:g,name:s}).classes,b=[],_=[],w=null,S=function(e,n){var i="function"===typeof a&&a(e.value);return t.createElement(f,ig({key:e.value,className:y.item,"data-disabled":e.disabled||void 0,"data-hovered":!e.disabled&&r===n||void 0,"data-selected":!e.disabled&&i||void 0,selected:i,onMouseEnter:function(){return c(n)},id:"".concat(l,"-").concat(n),role:"option",tabIndex:-1,"aria-selected":r===n,ref:function(t){d&&d.current&&(d.current[e.value]=t)},onMouseDown:e.disabled?null:function(t){t.preventDefault(),u(e)},disabled:e.disabled},e))},x=null;if(n.forEach((function(e,n){e.creatable?w=n:e.group?(x!==e.group&&(x=e.group,_.push(t.createElement("div",{className:y.separator,key:"__mantine-divider-".concat(n)},t.createElement(Bm,{classNames:{label:y.separatorLabel},label:e.group})))),_.push(S(e,n))):b.push(S(e,n))})),v){var C=n[w];b.push(t.createElement("div",{key:"mantine-".concat(Math.random().toString(36).slice(2,11)),className:y.item,"data-hovered":r===w||void 0,onMouseEnter:function(){return c(w)},onMouseDown:function(e){e.preventDefault(),u(C)},tabIndex:-1,ref:function(e){d&&d.current&&(d.current[C.value]=e)}},m))}return _.length>0&&b.length>0&&b.unshift(t.createElement("div",{className:y.separator,key:"empty-group-separator"},t.createElement(Bm,null))),_.length>0||b.length>0?t.createElement(t.Fragment,null,_,b):t.createElement(vc,{size:h,unstyled:g,className:y.nothingFound},p)}og.displayName="@mantine/core/SelectItems";var ag=cl((function(){return{dropdown:{},itemsWrapper:{padding:4,display:"flex",width:"100%",boxSizing:"border-box"}}})),lg=["mousedown","touchstart"];var sg=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],cg=["mainAxis","crossAxis","limiter"],ug=["apply"];function dg(e){return e.split("-")[1]}function fg(e){return"y"===e?"height":"width"}function hg(e){return e.split("-")[0]}function pg(e){return["top","bottom"].includes(hg(e))?"x":"y"}function vg(e,t,n){var r,i=e.reference,o=e.floating,a=i.x+i.width/2-o.width/2,l=i.y+i.height/2-o.height/2,s=pg(t),c=fg(s),u=i[c]/2-o[c]/2,d="x"===s;switch(hg(t)){case"top":r={x:a,y:i.y-o.height};break;case"bottom":r={x:a,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:l};break;case"left":r={x:i.x-o.width,y:l};break;default:r={x:i.x,y:i.y}}switch(dg(t)){case"start":r[s]-=u*(n&&d?-1:1);break;case"end":r[s]+=u*(n&&d?-1:1)}return r}var mg=function(){var e=c(l().mark((function e(t,n,r){var i,a,s,c,u,d,h,p,v,m,g,y,b,_,w,S,x,C,k,E,R,O,P,T,M,L;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.placement,a=void 0===i?"bottom":i,s=r.strategy,c=void 0===s?"absolute":s,u=r.middleware,d=void 0===u?[]:u,h=r.platform,p=d.filter(Boolean),e.next=10,null==h.isRTL?void 0:h.isRTL(n);case 10:return v=e.sent,e.next=13,h.getElementRects({reference:t,floating:n,strategy:c});case 13:m=e.sent,g=vg(m,a,v),y=g.x,b=g.y,_=a,w={},S=0,x=0;case 21:if(!(x<p.length)){e.next=56;break}return k=p[x],E=k.name,R=k.fn,e.next=27,R({x:y,y:b,initialPlacement:a,placement:_,strategy:c,middlewareData:w,rects:m,platform:h,elements:{reference:t,floating:n}});case 27:if(O=e.sent,P=O.x,T=O.y,M=O.data,L=O.reset,y=null!=P?P:y,b=null!=T?T:b,w=f(f({},w),{},(0,o.Z)({},E,f(f({},w[E]),M))),e.t0=L&&S<=50,!e.t0){e.next=53;break}if(S++,e.t1="object"==typeof L,!e.t1){e.next=52;break}if(L.placement&&(_=L.placement),e.t2=L.rects,!e.t2){e.next=51;break}if(!0!==L.rects){e.next=49;break}return e.next=46,h.getElementRects({reference:t,floating:n,strategy:c});case 46:e.t3=e.sent,e.next=50;break;case 49:e.t3=L.rects;case 50:m=e.t3;case 51:C=vg(m,_,v),y=C.x,b=C.y;case 52:x=-1;case 53:x++,e.next=21;break;case 56:return e.abrupt("return",{x:y,y:b,placement:_,strategy:c,middlewareData:w});case 57:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}();function gg(e){return"number"!=typeof e?function(e){return f({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}function yg(e){return f(f({},e),{},{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}function bg(e,t){return _g.apply(this,arguments)}function _g(){return _g=c(l().mark((function e(t,n){var r,i,o,a,s,c,u,d,h,p,v,m,g,y,b,_,w,S,x,C,k,E,R,O;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===n&&(n={}),i=t.x,o=t.y,a=t.platform,s=t.rects,c=t.elements,u=t.strategy,h=(d=n).boundary,p=void 0===h?"clippingAncestors":h,v=d.rootBoundary,m=void 0===v?"viewport":v,g=d.elementContext,y=void 0===g?"floating":g,b=d.altBoundary,_=void 0!==b&&b,w=d.padding,S=gg(void 0===w?0:w),x=c[_?"floating"===y?"reference":"floating":y],e.t0=yg,e.t1=a,e.next=24,null==a.isElement?void 0:a.isElement(x);case 24:if(e.t3=r=e.sent,e.t2=null==e.t3,e.t2){e.next=28;break}e.t2=r;case 28:if(!e.t2){e.next=32;break}e.t4=x,e.next=38;break;case 32:if(e.t5=x.contextElement,e.t5){e.next=37;break}return e.next=36,null==a.getDocumentElement?void 0:a.getDocumentElement(c.floating);case 36:e.t5=e.sent;case 37:e.t4=e.t5;case 38:return e.t6=e.t4,e.t7=p,e.t8=m,e.t9=u,e.t10={element:e.t6,boundary:e.t7,rootBoundary:e.t8,strategy:e.t9},e.next=45,e.t1.getClippingRect.call(e.t1,e.t10);case 45:return e.t11=e.sent,C=(0,e.t0)(e.t11),k="floating"===y?f(f({},s.floating),{},{x:i,y:o}):s.reference,e.next=50,null==a.getOffsetParent?void 0:a.getOffsetParent(c.floating);case 50:return E=e.sent,e.next=53,null==a.isElement?void 0:a.isElement(E);case 53:if(e.t13=e.sent,!e.t13){e.next=58;break}return e.next=57,null==a.getScale?void 0:a.getScale(E);case 57:e.t13=e.sent;case 58:if(e.t12=e.t13,e.t12){e.next=61;break}e.t12={x:1,y:1};case 61:if(R=e.t12,e.t14=yg,!a.convertOffsetParentRelativeRectToViewportRelativeRect){e.next=69;break}return e.next=66,a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:k,offsetParent:E,strategy:u});case 66:e.t15=e.sent,e.next=70;break;case 69:e.t15=k;case 70:return e.t16=e.t15,O=(0,e.t14)(e.t16),e.abrupt("return",{top:(C.top-O.top+S.top)/R.y,bottom:(O.bottom-C.bottom+S.bottom)/R.y,left:(C.left-O.left+S.left)/R.x,right:(O.right-C.right+S.right)/R.x});case 73:case"end":return e.stop()}}),e)}))),_g.apply(this,arguments)}var wg=Math.min,Sg=Math.max;function xg(e,t,n){return Sg(e,wg(t,n))}var Cg=function(e){return{name:"arrow",options:e,fn:function(t){return c(l().mark((function n(){var r,i,a,s,c,u,d,f,h,p,v,m,g,y,b,_,w,S,x,C,k,E,R,O,P,T,M,L;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(s=(a=e||{}).element,c=a.padding,u=void 0===c?0:c,d=t.x,f=t.y,h=t.placement,p=t.rects,v=t.platform,null!=s){n.next=3;break}return n.abrupt("return",{});case 3:return m=gg(u),g={x:d,y:f},y=pg(h),b=fg(y),n.next=9,v.getDimensions(s);case 9:return _=n.sent,w="y"===y?"top":"left",S="y"===y?"bottom":"right",x=p.reference[b]+p.reference[y]-g[y]-p.floating[b],C=g[y]-p.reference[y],n.next=16,null==v.getOffsetParent?void 0:v.getOffsetParent(s);case 16:return k=n.sent,0===(E=k?"y"===y?k.clientHeight||0:k.clientWidth||0:0)&&(E=p.floating[b]),R=x/2-C/2,O=m[w],P=E-_[b]-m[S],T=E/2-_[b]/2+R,M=xg(O,T,P),L=null!=dg(h)&&T!=M&&p.reference[b]/2-(T<O?m[w]:m[S])-_[b]/2<0,n.abrupt("return",(i={},(0,o.Z)(i,y,g[y]-(L?T<O?O-T:P-T:0)),(0,o.Z)(i,"data",(r={},(0,o.Z)(r,y,M),(0,o.Z)(r,"centerOffset",T-M),r)),i));case 21:case"end":return n.stop()}}),n)})))()}}},kg=["top","right","bottom","left"],Eg=(kg.reduce((function(e,t){return e.concat(t,t+"-start",t+"-end")}),[]),{left:"right",right:"left",bottom:"top",top:"bottom"});function Rg(e){return e.replace(/left|right|bottom|top/g,(function(e){return Eg[e]}))}function Og(e,t,n){void 0===n&&(n=!1);var r=dg(e),i=pg(e),o=fg(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Rg(a)),{main:a,cross:Rg(a)}}var Pg={start:"end",end:"start"};function Tg(e){return e.replace(/start|end/g,(function(e){return Pg[e]}))}var Mg=function(e){return void 0===e&&(e={}),{name:"flip",options:e,fn:function(t){return c(l().mark((function n(){var r,i,o,a,s,c,u,d,f,h,m,g,y,b,_,w,S,x,C,k,E,R,O,P,T,M,L,Z,I,D,j,A,N,F,z,B,H,W;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=t.placement,o=t.middlewareData,a=t.rects,s=t.initialPlacement,c=t.platform,u=t.elements,f=(d=e).mainAxis,h=void 0===f||f,m=d.crossAxis,g=void 0===m||m,y=d.fallbackPlacements,b=d.fallbackStrategy,_=void 0===b?"bestFit":b,w=d.fallbackAxisSideDirection,S=void 0===w?"none":w,x=d.flipAlignment,C=void 0===x||x,k=p(d,sg),E=hg(i),R=hg(s)===s,n.next=23,null==c.isRTL?void 0:c.isRTL(u.floating);case 23:return O=n.sent,P=y||(R||!C?[Rg(s)]:function(e){var t=Rg(e);return[Tg(e),t,Tg(t)]}(s)),y||"none"===S||P.push.apply(P,(0,v.Z)(function(e,t,n,r){var i=dg(e),o=function(e,t,n){var r=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(hg(e),"start"===n,r);return i&&(o=o.map((function(e){return e+"-"+i})),t&&(o=o.concat(o.map(Tg)))),o}(s,C,S,O))),T=[s].concat((0,v.Z)(P)),n.next=29,bg(t,k);case 29:if(M=n.sent,L=[],Z=(null==(r=o.flip)?void 0:r.overflows)||[],h&&L.push(M[E]),g&&(I=Og(i,a,O),D=I.main,j=I.cross,L.push(M[D],M[j])),Z=[].concat((0,v.Z)(Z),[{placement:i,overflows:L}]),L.every((function(e){return e<=0}))){n.next=48;break}if(F=((null==(A=o.flip)?void 0:A.index)||0)+1,!(z=T[F])){n.next=37;break}return n.abrupt("return",{data:{index:F,overflows:Z},reset:{placement:z}});case 37:if(B=null==(N=Z.filter((function(e){return e.overflows[0]<=0})).sort((function(e,t){return e.overflows[1]-t.overflows[1]}))[0])?void 0:N.placement,B){n.next=46;break}n.t0=_,n.next="bestFit"===n.t0?42:"initialPlacement"===n.t0?45:46;break;case 42:return W=null==(H=Z.map((function(e){return[e.placement,e.overflows.filter((function(e){return e>0})).reduce((function(e,t){return e+t}),0)]})).sort((function(e,t){return e[1]-t[1]}))[0])?void 0:H[0],W&&(B=W),n.abrupt("break",46);case 45:B=s;case 46:if(i===B){n.next=48;break}return n.abrupt("return",{reset:{placement:B}});case 48:return n.abrupt("return",{});case 49:case"end":return n.stop()}}),n)})))()}}};var Lg=function(e){return void 0===e&&(e={}),{name:"inline",options:e,fn:function(t){return c(l().mark((function n(){var r,i,o,a,s,c,u,d,f,h,p,m,g,y;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=t.placement,i=t.elements,o=t.rects,a=t.platform,s=t.strategy,u=(c=e).padding,d=void 0===u?2:u,f=c.x,h=c.y,n.t0=yg,!a.convertOffsetParentRelativeRectToViewportRelativeRect){n.next=24;break}return n.t2=a,n.t3=o.reference,n.next=16,null==a.getOffsetParent?void 0:a.getOffsetParent(i.floating);case 16:return n.t4=n.sent,n.t5=s,n.t6={rect:n.t3,offsetParent:n.t4,strategy:n.t5},n.next=21,n.t2.convertOffsetParentRelativeRectToViewportRelativeRect.call(n.t2,n.t6);case 21:n.t1=n.sent,n.next=25;break;case 24:n.t1=o.reference;case 25:return n.t7=n.t1,p=(0,n.t0)(n.t7),n.next=29,null==a.getClientRects?void 0:a.getClientRects(i.reference);case 29:if(n.t8=n.sent,n.t8){n.next=32;break}n.t8=[];case 32:return m=n.t8,g=gg(d),n.next=36,a.getElementRects({reference:{getBoundingClientRect:function(){if(2===m.length&&m[0].left>m[1].right&&null!=f&&null!=h)return m.find((function(e){return f>e.left-g.left&&f<e.right+g.right&&h>e.top-g.top&&h<e.bottom+g.bottom}))||p;if(m.length>=2){if("x"===pg(r)){var e=m[0],t=m[m.length-1],n="top"===hg(r),i=e.top,o=t.bottom,a=n?e.left:t.left,l=n?e.right:t.right;return{top:i,bottom:o,left:a,right:l,width:l-a,height:o-i,x:a,y:i}}var s="left"===hg(r),c=Sg.apply(void 0,(0,v.Z)(m.map((function(e){return e.right})))),u=wg.apply(void 0,(0,v.Z)(m.map((function(e){return e.left})))),d=m.filter((function(e){return s?e.left===u:e.right===c})),y=d[0].top,b=d[d.length-1].bottom;return{top:y,bottom:b,left:u,right:c,width:c-u,height:b-y,x:u,y:y}}return p}},floating:i.floating,strategy:s});case 36:return y=n.sent,n.abrupt("return",o.reference.x!==y.reference.x||o.reference.y!==y.reference.y||o.reference.width!==y.reference.width||o.reference.height!==y.reference.height?{reset:{rects:y}}:{});case 38:case"end":return n.stop()}}),n)})))()}}},Zg=function(e){return void 0===e&&(e=0),{name:"offset",options:e,fn:function(t){return c(l().mark((function n(){var r,i,o;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.x,i=t.y,n.next=4,function(){var e=c(l().mark((function e(t,n){var r,i,o,a,s,c,u,d,h,p,v,m,g,y;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.placement,i=t.platform,o=t.elements,e.next=5,null==i.isRTL?void 0:i.isRTL(o.floating);case 5:return a=e.sent,s=hg(r),c=dg(r),u="x"===pg(r),d=["left","top"].includes(s)?-1:1,h=a&&u?-1:1,p="function"==typeof n?n(t):n,v="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:f({mainAxis:0,crossAxis:0,alignmentAxis:null},p),m=v.mainAxis,g=v.crossAxis,y=v.alignmentAxis,e.abrupt("return",(c&&"number"==typeof y&&(g="end"===c?-1*y:y),u?{x:g*h,y:m*d}:{x:m*d,y:g*h}));case 14:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()(t,e);case 4:return o=n.sent,n.abrupt("return",{x:r+o.x,y:i+o.y,data:o});case 6:case"end":return n.stop()}}),n)})))()}}};function Ig(e){return"x"===e?"y":"x"}var Dg=function(e){return void 0===e&&(e={}),{name:"shift",options:e,fn:function(t){return c(l().mark((function n(){var r,i,a,s,c,u,d,h,v,m,g,y,b,_,w,S,x,C,k,E,R;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=t.x,a=t.y,s=t.placement,u=(c=e).mainAxis,d=void 0===u||u,h=c.crossAxis,v=void 0!==h&&h,m=c.limiter,g=void 0===m?{fn:function(e){return{x:e.x,y:e.y}}}:m,y=p(c,cg),b={x:i,y:a},n.next=14,bg(t,y);case 14:return _=n.sent,w=pg(hg(s)),S=Ig(w),x=b[w],C=b[S],d&&(k="y"===w?"bottom":"right",x=xg(x+_["y"===w?"top":"left"],x,x-_[k])),v&&(E="y"===S?"bottom":"right",C=xg(C+_["y"===S?"top":"left"],C,C-_[E])),R=g.fn(f(f({},t),{},(r={},(0,o.Z)(r,w,x),(0,o.Z)(r,S,C),r))),n.abrupt("return",f(f({},R),{},{data:{x:R.x-i,y:R.y-a}}));case 22:case"end":return n.stop()}}),n)})))()}}},jg=function(e){return void 0===e&&(e={}),{options:e,fn:function(t){var n,r=t.x,i=t.y,a=t.placement,l=t.rects,s=t.middlewareData,c=e,u=c.offset,d=void 0===u?0:u,h=c.mainAxis,p=void 0===h||h,v=c.crossAxis,m=void 0===v||v,g={x:r,y:i},y=pg(a),b=Ig(y),_=g[y],w=g[b],S="function"==typeof d?d(t):d,x="number"==typeof S?{mainAxis:S,crossAxis:0}:f({mainAxis:0,crossAxis:0},S);if(p){var C="y"===y?"height":"width",k=l.reference[y]-l.floating[C]+x.mainAxis,E=l.reference[y]+l.reference[C]-x.mainAxis;_<k?_=k:_>E&&(_=E)}if(m){var R,O,P="y"===y?"width":"height",T=["top","left"].includes(hg(a)),M=l.reference[b]-l.floating[P]+(T&&(null==(R=s.offset)?void 0:R[b])||0)+(T?0:x.crossAxis),L=l.reference[b]+l.reference[P]+(T?0:(null==(O=s.offset)?void 0:O[b])||0)-(T?x.crossAxis:0);w<M?w=M:w>L&&(w=L)}return n={},(0,o.Z)(n,y,_),(0,o.Z)(n,b,w),n}}},Ag=function(e){return void 0===e&&(e={}),{name:"size",options:e,fn:function(t){return c(l().mark((function n(){var r,i,o,a,s,c,u,d,h,v,m,g,y,b,_,w,S,x,C,k,E,R,O,P,T,M;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.placement,i=t.rects,o=t.platform,a=t.elements,c=(s=e).apply,u=void 0===c?function(){}:c,d=p(s,ug),n.next=10,bg(t,d);case 10:if(h=n.sent,v=hg(r),m=dg(r),g="x"===pg(r),y=i.floating,b=y.width,_=y.height,"top"!==v&&"bottom"!==v){n.next=36;break}return w=v,n.t0=m,n.next=22,null==o.isRTL?void 0:o.isRTL(a.floating);case 22:if(!n.sent){n.next=26;break}n.t1="start",n.next=27;break;case 26:n.t1="end";case 27:if(n.t2=n.t1,n.t0!==n.t2){n.next=32;break}n.t3="left",n.next=33;break;case 32:n.t3="right";case 33:S=n.t3,n.next=37;break;case 36:S=v,w="end"===m?"top":"bottom";case 37:return x=_-h[w],C=b-h[S],k=x,E=C,g?E=wg(b-h.right-h.left,C):k=wg(_-h.bottom-h.top,x),t.middlewareData.shift||m||(R=Sg(h.left,0),O=Sg(h.right,0),P=Sg(h.top,0),T=Sg(h.bottom,0),g?E=b-2*(0!==R||0!==O?R+O:Sg(h.left,h.right)):k=_-2*(0!==P||0!==T?P+T:Sg(h.top,h.bottom))),n.next=42,u(f(f({},t),{},{availableWidth:E,availableHeight:k}));case 42:return n.next=44,o.getDimensions(a.floating);case 44:return M=n.sent,n.abrupt("return",b!==M.width||_!==M.height?{reset:{rects:!0}}:{});case 46:case"end":return n.stop()}}),n)})))()}}};function Ng(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Fg(e){return Ng(e).getComputedStyle(e)}var zg,Bg=Math.min,Hg=Math.max,Wg=Math.round;function Ug(e){var t=Fg(e),n=parseFloat(t.width),r=parseFloat(t.height),i=e.offsetWidth,o=e.offsetHeight,a=Wg(n)!==i||Wg(r)!==o;return a&&(n=i,r=o),{width:n,height:r,fallback:a}}function Vg(e){return Gg(e)?(e.nodeName||"").toLowerCase():""}function qg(){if(zg)return zg;var e=navigator.userAgentData;return e&&Array.isArray(e.brands)?zg=e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Kg(e){return e instanceof Ng(e).HTMLElement}function Yg(e){return e instanceof Ng(e).Element}function Gg(e){return e instanceof Ng(e).Node}function Xg(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ng(e).ShadowRoot||e instanceof ShadowRoot)}function $g(e){var t=Fg(e),n=t.overflow,r=t.overflowX,i=t.overflowY,o=t.display;return/auto|scroll|overlay|hidden|clip/.test(n+i+r)&&!["inline","contents"].includes(o)}function Jg(e){return["table","td","th"].includes(Vg(e))}function Qg(e){var t=/firefox/i.test(qg()),n=Fg(e),r=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!r&&"none"!==r||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some((function(e){return n.willChange.includes(e)}))||["paint","layout","strict","content"].some((function(e){var t=n.contain;return null!=t&&t.includes(e)}))}function ey(){return/^((?!chrome|android).)*safari/i.test(qg())}function ty(e){return["html","body","#document"].includes(Vg(e))}function ny(e){return Yg(e)?e:e.contextElement}var ry={x:1,y:1};function iy(e){var t=ny(e);if(!Kg(t))return ry;var n=t.getBoundingClientRect(),r=Ug(t),i=r.width,o=r.height,a=r.fallback,l=(a?Wg(n.width):n.width)/i,s=(a?Wg(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}function oy(e,t,n,r){var i,o;void 0===t&&(t=!1),void 0===n&&(n=!1);var a=e.getBoundingClientRect(),l=ny(e),s=ry;t&&(r?Yg(r)&&(s=iy(r)):s=iy(e));var c=l?Ng(l):window,u=ey()&&n,d=(a.left+(u&&(null==(i=c.visualViewport)?void 0:i.offsetLeft)||0))/s.x,f=(a.top+(u&&(null==(o=c.visualViewport)?void 0:o.offsetTop)||0))/s.y,h=a.width/s.x,p=a.height/s.y;if(l)for(var v=Ng(l),m=r&&Yg(r)?Ng(r):r,g=v.frameElement;g&&r&&m!==v;){var y=iy(g),b=g.getBoundingClientRect(),_=getComputedStyle(g);b.x+=(g.clientLeft+parseFloat(_.paddingLeft))*y.x,b.y+=(g.clientTop+parseFloat(_.paddingTop))*y.y,d*=y.x,f*=y.y,h*=y.x,p*=y.y,d+=b.x,f+=b.y,g=Ng(g).frameElement}return{width:h,height:p,top:f,right:d+h,bottom:f+p,left:d,x:d,y:f}}function ay(e){return((Gg(e)?e.ownerDocument:e.document)||window.document).documentElement}function ly(e){return Yg(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function sy(e){return oy(ay(e)).left+ly(e).scrollLeft}function cy(e){if("html"===Vg(e))return e;var t=e.assignedSlot||e.parentNode||Xg(e)&&e.host||ay(e);return Xg(t)?t.host:t}function uy(e){var t=cy(e);return ty(t)?t.ownerDocument.body:Kg(t)&&$g(t)?t:uy(t)}function dy(e,t){var n;void 0===t&&(t=[]);var r=uy(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=Ng(r);return i?t.concat(o,o.visualViewport||[],$g(r)?r:[]):t.concat(r,dy(r))}function fy(e,t,n){var r;if("viewport"===t)r=function(e,t){var n=Ng(e),r=ay(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,l=0,s=0;if(i){o=i.width,a=i.height;var c=ey();(!c||c&&"fixed"===t)&&(l=i.offsetLeft,s=i.offsetTop)}return{width:o,height:a,x:l,y:s}}(e,n);else if("document"===t)r=function(e){var t=ay(e),n=ly(e),r=e.ownerDocument.body,i=Hg(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Hg(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+sy(e),l=-n.scrollTop;return"rtl"===Fg(r).direction&&(a+=Hg(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:l}}(ay(e));else if(Yg(t))r=function(e,t){var n=oy(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Kg(e)?iy(e):{x:1,y:1};return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{var i=f({},t);if(ey()){var o,a,l=Ng(e);i.x-=(null==(o=l.visualViewport)?void 0:o.offsetLeft)||0,i.y-=(null==(a=l.visualViewport)?void 0:a.offsetTop)||0}r=i}return yg(r)}function hy(e,t){return Kg(e)&&"fixed"!==Fg(e).position?t?t(e):e.offsetParent:null}function py(e,t){for(var n=Ng(e),r=hy(e,t);r&&Jg(r)&&"static"===Fg(r).position;)r=hy(r,t);return r&&("html"===Vg(r)||"body"===Vg(r)&&"static"===Fg(r).position&&!Qg(r))?n:r||function(e){for(var t=cy(e);Kg(t)&&!ty(t);){if(Qg(t))return t;t=cy(t)}return null}(e)||n}function vy(e,t,n){var r=Kg(t),i=ay(t),o=oy(e,!0,"fixed"===n,t),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==Vg(t)||$g(i))&&(a=ly(t)),Kg(t)){var s=oy(t,!0);l.x=s.x+t.clientLeft,l.y=s.y+t.clientTop}else i&&(l.x=sy(i));return{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}var my={getClippingRect:function(e){var t=e.element,n=e.boundary,r=e.rootBoundary,i=e.strategy,o="clippingAncestors"===n?function(e,t){var n=t.get(e);if(n)return n;for(var r=dy(e).filter((function(e){return Yg(e)&&"body"!==Vg(e)})),i=null,o="fixed"===Fg(e).position,a=o?cy(e):e;Yg(a)&&!ty(a);){var l=Fg(a),s=Qg(a);"fixed"===l.position?i=null:(o?s||i:s||"static"!==l.position||!i||!["absolute","fixed"].includes(i.position))?i=l:r=r.filter((function(e){return e!==a})),a=cy(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[].concat((0,v.Z)(o),[r]),l=a[0],s=a.reduce((function(e,n){var r=fy(t,n,i);return e.top=Hg(r.top,e.top),e.right=Bg(r.right,e.right),e.bottom=Bg(r.bottom,e.bottom),e.left=Hg(r.left,e.left),e}),fy(t,l,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){var t=e.rect,n=e.offsetParent,r=e.strategy,i=Kg(n),o=ay(n);if(n===o)return t;var a={scrollLeft:0,scrollTop:0},l={x:1,y:1},s={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==Vg(n)||$g(o))&&(a=ly(n)),Kg(n))){var c=oy(n);l=iy(n),s.x=c.x+n.clientLeft,s.y=c.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-a.scrollLeft*l.x+s.x,y:t.y*l.y-a.scrollTop*l.y+s.y}},isElement:Yg,getDimensions:function(e){return Kg(e)?Ug(e):e.getBoundingClientRect()},getOffsetParent:py,getDocumentElement:ay,getScale:iy,getElementRects:function(e){var t=this;return c(l().mark((function n(){var r,i,o,a,s;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.reference,i=e.floating,o=e.strategy,a=t.getOffsetParent||py,s=t.getDimensions,n.t0=vy,n.t1=r,n.next=6,a(i);case 6:return n.t2=n.sent,n.t3=o,n.t4=(0,n.t0)(n.t1,n.t2,n.t3),n.t5=f,n.t6={x:0,y:0},n.next=13,s(i);case 13:return n.t7=n.sent,n.t8=(0,n.t5)(n.t6,n.t7),n.abrupt("return",{reference:n.t4,floating:n.t8});case 16:case"end":return n.stop()}}),n)})))()},getClientRects:function(e){return Array.from(e.getClientRects())},isRTL:function(e){return"rtl"===Fg(e).direction}};var gy=function(e,t,n){var r=new Map,i=f({platform:my},n),o=f(f({},i.platform),{},{_c:r});return mg(e,t,f(f({},i),{},{platform:o}))},yy=function(e){var t=e.element,n=e.padding;return{name:"arrow",options:e,fn:function(e){return function(e){return Object.prototype.hasOwnProperty.call(e,"current")}(t)?null!=t.current?Cg({element:t.current,padding:n}).fn(e):{}:t?Cg({element:t,padding:n}).fn(e):{}}}},by="undefined"!==typeof document?t.useLayoutEffect:t.useEffect;function _y(e,t){if(e===t)return!0;if(typeof e!==typeof t)return!1;if("function"===typeof e&&e.toString()===t.toString())return!0;var n,r,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!==r--;)if(!_y(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!==r--;){var o=i[r];if(("_owner"!==o||!e.$$typeof)&&!_y(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function wy(e){var n=t.useRef(e);return by((function(){n.current=e})),n}var Sy="undefined"!==typeof document?t.useLayoutEffect:t.useEffect,xy=!1,Cy=0,ky=function(){return"floating-ui-"+Cy++};r["useId".toString()];function Ey(){var e=new Map;return{emit:function(t,n){var r;null==(r=e.get(t))||r.forEach((function(e){return e(n)}))},on:function(t,n){e.set(t,[].concat((0,v.Z)(e.get(t)||[]),[n]))},off:function(t,n){e.set(t,(e.get(t)||[]).filter((function(e){return e!==n})))}}}var Ry=t.createContext(null),Oy=function(){return t.useContext(Ry)};function Py(e){return(null==e?void 0:e.ownerDocument)||document}function Ty(e){return Py(e).defaultView||window}function My(e){return!!e&&e instanceof Ty(e).Element}var Ly=r["useInsertionEffect".toString()]||function(e){return e()};function Zy(e){var n=t.useRef((function(){0}));return Ly((function(){n.current=e})),t.useCallback((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current.apply(n,t)}),[])}function Iy(e){void 0===e&&(e={});var n=e,r=n.open,i=void 0!==r&&r,o=n.onOpenChange,a=n.nodeId,l=function(e){void 0===e&&(e={});var n=e,r=n.placement,i=void 0===r?"bottom":r,o=n.strategy,a=void 0===o?"absolute":o,l=n.middleware,s=void 0===l?[]:l,c=n.platform,d=n.whileElementsMounted,h=n.open,p=t.useState({x:null,y:null,strategy:a,placement:i,middlewareData:{},isPositioned:!1}),v=(0,u.Z)(p,2),m=v[0],g=v[1],y=t.useState(s),b=(0,u.Z)(y,2),_=b[0],w=b[1];_y(_,s)||w(s);var S=t.useRef(null),x=t.useRef(null),C=t.useRef(m),k=wy(d),E=wy(c),R=t.useState(null),O=(0,u.Z)(R,2),P=O[0],T=O[1],M=t.useState(null),L=(0,u.Z)(M,2),Z=L[0],I=L[1],D=t.useCallback((function(e){S.current!==e&&(S.current=e,T(e))}),[]),j=t.useCallback((function(e){x.current!==e&&(x.current=e,I(e))}),[]),A=t.useCallback((function(){if(S.current&&x.current){var e={placement:i,strategy:a,middleware:_};E.current&&(e.platform=E.current),gy(S.current,x.current,e).then((function(e){var t=f(f({},e),{},{isPositioned:!0});N.current&&!_y(C.current,t)&&(C.current=t,Kn.flushSync((function(){g(t)})))}))}}),[_,i,a,E]);by((function(){!1===h&&C.current.isPositioned&&(C.current.isPositioned=!1,g((function(e){return f(f({},e),{},{isPositioned:!1})})))}),[h]);var N=t.useRef(!1);by((function(){return N.current=!0,function(){N.current=!1}}),[]),by((function(){if(P&&Z){if(k.current)return k.current(P,Z,A);A()}}),[P,Z,A,k]);var F=t.useMemo((function(){return{reference:S,floating:x,setReference:D,setFloating:j}}),[D,j]),z=t.useMemo((function(){return{reference:P,floating:Z}}),[P,Z]);return t.useMemo((function(){return f(f({},m),{},{update:A,refs:F,elements:z,reference:D,floating:j})}),[m,A,F,z,D,j])}(e),s=Oy(),c=t.useRef(null),d=t.useRef({}),h=t.useState((function(){return Ey()}))[0],p=t.useState(null),v=(0,u.Z)(p,2),m=v[0],g=v[1],y=t.useCallback((function(e){var t=My(e)?{getBoundingClientRect:function(){return e.getBoundingClientRect()},contextElement:e}:e;l.refs.setReference(t)}),[l.refs]),b=t.useCallback((function(e){(My(e)||null===e)&&(c.current=e,g(e)),(My(l.refs.reference.current)||null===l.refs.reference.current||null!==e&&!My(e))&&l.refs.setReference(e)}),[l.refs]),_=t.useMemo((function(){return f(f({},l.refs),{},{setReference:b,setPositionReference:y,domReference:c})}),[l.refs,b,y]),w=t.useMemo((function(){return f(f({},l.elements),{},{domReference:m})}),[l.elements,m]),S=Zy(o),x=t.useMemo((function(){return f(f({},l),{},{refs:_,elements:w,dataRef:d,nodeId:a,events:h,open:i,onOpenChange:S})}),[l,a,h,i,S,_,w]);return Sy((function(){var e=null==s?void 0:s.nodesRef.current.find((function(e){return e.id===a}));e&&(e.context=x)})),t.useMemo((function(){return f(f({},l),{},{context:x,refs:_,reference:b,positionReference:y})}),[l,_,x,b,y])}function Dy(e){var n=e.opened,r=e.floating,i=e.positionDependencies,o=(0,t.useState)(0),a=(0,u.Z)(o,2),l=a[0],s=a[1];(0,t.useEffect)((function(){if(r.refs.reference.current&&r.refs.floating.current)return function(e,t,n,r){void 0===r&&(r={});var i=r,o=i.ancestorScroll,a=void 0===o||o,l=i.ancestorResize,s=void 0===l||l,c=i.elementResize,u=void 0===c||c,d=i.animationFrame,f=void 0!==d&&d,h=a&&!f,p=h||s?[].concat((0,v.Z)(Yg(e)?dy(e):e.contextElement?dy(e.contextElement):[]),(0,v.Z)(dy(t))):[];p.forEach((function(e){h&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)}));var m,g=null;if(u){var y=!0;g=new ResizeObserver((function(){y||n(),y=!1})),Yg(e)&&!f&&g.observe(e),Yg(e)||!e.contextElement||f||g.observe(e.contextElement),g.observe(t)}var b=f?oy(e):null;return f&&function t(){var r=oy(e);!b||r.x===b.x&&r.y===b.y&&r.width===b.width&&r.height===b.height||n(),b=r,m=requestAnimationFrame(t)}(),n(),function(){var e;p.forEach((function(e){h&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)})),null==(e=g)||e.disconnect(),g=null,f&&cancelAnimationFrame(m)}}(r.refs.reference.current,r.refs.floating.current,r.update)}),[r.refs.reference,r.refs.floating,n,l]),Qo((function(){r.update()}),i),Qo((function(){s((function(e){return e+1}))}),[n])}function jy(e){var t=[Zg(e.offset)];return e.middlewares.shift&&t.push(Dg({limiter:jg()})),e.middlewares.flip&&t.push(Mg()),e.middlewares.inline&&t.push(Lg()),t.push(yy({element:e.arrowRef,padding:e.arrowOffset})),t}function Ay(e){var n=(0,t.createContext)(null);return[function(e){var r=e.children,i=e.value;return t.createElement(n.Provider,{value:i},r)},function(){var r=(0,t.useContext)(n);if(null===r)throw new Error(e);return r}]}var Ny="Popover.Target component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported",Fy=Ay("Popover component was not found in the tree"),zy=(0,u.Z)(Fy,2),By=zy[0],Hy=zy[1];function Wy(e){return!Array.isArray(e)&&null!==e&&("object"===typeof e&&e.type!==t.Fragment)}var Uy=Object.defineProperty,Vy=Object.defineProperties,qy=Object.getOwnPropertyDescriptors,Ky=Object.getOwnPropertySymbols,Yy=Object.prototype.hasOwnProperty,Gy=Object.prototype.propertyIsEnumerable,Xy=function(e,t,n){return t in e?Uy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},$y=function(e,t){for(var n in t||(t={}))Yy.call(t,n)&&Xy(e,n,t[n]);if(Ky){var r,i=ot(Ky(t));try{for(i.s();!(r=i.n()).done;){n=r.value;Gy.call(t,n)&&Xy(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},Jy={refProp:"ref",popupType:"dialog"},Qy=(0,t.forwardRef)((function(e,n){var r=za("PopoverTarget",Jy,e),i=r.children,a=r.refProp,l=r.popupType,s=function(e,t){var n={};for(var r in e)Yy.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Ky){var i,o=ot(Ky(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&Gy.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(r,["children","refProp","popupType"]);if(!Wy(i))throw new Error(Ny);var c=s,u=Hy(),d=Xo(u.reference,i.ref,n),f=u.withRoles?{"aria-haspopup":l,"aria-expanded":u.opened,"aria-controls":u.getDropdownId(),id:u.getTargetId()}:{};return(0,t.cloneElement)(i,$y(function(e,t){return Vy(e,qy(t))}($y($y($y({},c),f),u.targetProps),(0,o.Z)({className:Ha(u.targetProps.className,c.className,i.props.className)},a,d)),u.controlled?null:{onClick:u.onToggle}))}));Qy.displayName="@mantine/core/PopoverTarget";var eb=function(){};function tb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{active:!0};return"function"===typeof e&&t.active?function(n){var r;"Escape"===n.key&&(e(n),null==(r=t.onTrigger)||r.call(t))}:t.onKeyDown||eb}var nb=cl((function(e,t){var n=t.radius,r=t.shadow;return{dropdown:{position:"absolute",backgroundColor:e.white,background:"dark"===e.colorScheme?e.colors.dark[6]:e.white,border:"1px solid ".concat("dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[2]),padding:"".concat(e.spacing.sm,"px ").concat(e.spacing.md,"px"),boxShadow:e.shadows[r]||r||"none",borderRadius:e.fn.radius(n),"&:focus":{outline:0}},arrow:{backgroundColor:"inherit",border:"1px solid ".concat("dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[2]),zIndex:1}}})),rb=nb;function ib(e){var n=e.transition,r=e.duration,i=void 0===r?250:r,o=e.exitDuration,a=void 0===o?i:o,l=e.mounted,s=e.children,c=Xl({mounted:l,exitDuration:a,duration:i,timingFunction:e.timingFunction,onExit:e.onExit,onEntered:e.onEntered,onEnter:e.onEnter,onExited:e.onExited}),u=c.transitionDuration,d=c.transitionStatus,f=c.transitionTimingFunction;return 0===u?l?t.createElement(t.Fragment,null,s({})):null:"exited"===d?null:t.createElement(t.Fragment,null,s(Kl({transition:n,duration:u,state:d,timingFunction:f})))}function ob(e){var n=e.children,r=e.active,i=void 0===r||r,a=e.refProp,l=void 0===a?"ref":a,s=Xo(Yo(i),null==n?void 0:n.ref);return Wy(n)?(0,t.cloneElement)(n,(0,o.Z)({},l,s)):n}ib.displayName="@mantine/core/Transition",ob.displayName="@mantine/core/FocusTrap";var ab=Object.defineProperty,lb=Object.defineProperties,sb=Object.getOwnPropertyDescriptors,cb=Object.getOwnPropertySymbols,ub=Object.prototype.hasOwnProperty,db=Object.prototype.propertyIsEnumerable,fb=function(e,t,n){return t in e?ab(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},hb=function(e,t){for(var n in t||(t={}))ub.call(t,n)&&fb(e,n,t[n]);if(cb){var r,i=ot(cb(t));try{for(i.s();!(r=i.n()).done;){n=r.value;db.call(t,n)&&fb(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},pb=function(e,t){return lb(e,sb(t))};function vb(e,t,n,r){return"center"===e||"center"===r?{top:t}:"end"===e?{bottom:n}:"start"===e?{top:n}:{}}function mb(e,t,n,r,i){return"center"===e||"center"===r?{left:t}:"end"===e?(0,o.Z)({},"ltr"===i?"right":"left",n):"start"===e?(0,o.Z)({},"ltr"===i?"left":"right",n):{}}var gb={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function yb(e){var t=e.position,n=e.withBorder,r=e.arrowSize,i=e.arrowOffset,a=e.arrowRadius,l=e.arrowPosition,s=e.arrowX,c=e.arrowY,d=e.dir,f=t.split("-"),h=(0,u.Z)(f,2),p=h[0],v=h[1],m=void 0===v?"center":v,g=(0,o.Z)({width:r,height:r,transform:"rotate(45deg)",position:"absolute"},gb[p],a),y=n?-r/2-1:-r/2;return"left"===p?pb(hb(hb({},g),vb(m,c,i,l)),{right:y,borderLeft:0,borderBottom:0}):"right"===p?pb(hb(hb({},g),vb(m,c,i,l)),{left:y,borderRight:0,borderTop:0}):"top"===p?pb(hb(hb({},g),mb(m,s,i,l,d)),{bottom:y,borderTop:0,borderLeft:0}):"bottom"===p?pb(hb(hb({},g),mb(m,s,i,l,d)),{top:y,borderBottom:0,borderRight:0}):{}}var bb=Object.defineProperty,_b=Object.defineProperties,wb=Object.getOwnPropertyDescriptors,Sb=Object.getOwnPropertySymbols,xb=Object.prototype.hasOwnProperty,Cb=Object.prototype.propertyIsEnumerable,kb=function(e,t,n){return t in e?bb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Eb=(0,t.forwardRef)((function(e,n){var r=e,i=r.withBorder,o=r.position,a=r.arrowSize,l=r.arrowOffset,s=r.arrowRadius,c=r.arrowPosition,u=r.visible,d=r.arrowX,f=r.arrowY,h=function(e,t){var n={};for(var r in e)xb.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Sb){var i,o=ot(Sb(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&Cb.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(r,["withBorder","position","arrowSize","arrowOffset","arrowRadius","arrowPosition","visible","arrowX","arrowY"]),p=Na();return u?t.createElement("div",function(e,t){return _b(e,wb(t))}(function(e,t){for(var n in t||(t={}))xb.call(t,n)&&kb(e,n,t[n]);if(Sb){var r,i=ot(Sb(t));try{for(i.s();!(r=i.n()).done;)n=r.value,Cb.call(t,n)&&kb(e,n,t[n])}catch(pW){i.e(pW)}finally{i.f()}}return e}({},h),{ref:n,style:yb({withBorder:i,position:o,arrowSize:a,arrowOffset:l,arrowRadius:s,arrowPosition:c,dir:p.dir,arrowX:d,arrowY:f})})):null}));Eb.displayName="@mantine/core/FloatingArrow";var Rb=Object.defineProperty,Ob=Object.defineProperties,Pb=Object.getOwnPropertyDescriptors,Tb=Object.getOwnPropertySymbols,Mb=Object.prototype.hasOwnProperty,Lb=Object.prototype.propertyIsEnumerable,Zb=function(e,t,n){return t in e?Rb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Ib=function(e,t){for(var n in t||(t={}))Mb.call(t,n)&&Zb(e,n,t[n]);if(Tb){var r,i=ot(Tb(t));try{for(i.s();!(r=i.n()).done;){n=r.value;Lb.call(t,n)&&Zb(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},Db=function(e,t){return Ob(e,Pb(t))},jb=function(e,t){var n={};for(var r in e)Mb.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Tb){var i,o=ot(Tb(e));try{for(o.s();!(i=o.n()).done;){r=i.value;t.indexOf(r)<0&&Lb.call(e,r)&&(n[r]=e[r])}}catch(pW){o.e(pW)}finally{o.f()}}return n},Ab={};function Nb(e){var n=za("PopoverDropdown",Ab,e),r=n.style,i=n.className,o=n.children,a=n.onKeyDownCapture,l=jb(n,["style","className","children","onKeyDownCapture"]),s=Hy(),c=rb({radius:s.radius,shadow:s.shadow},{name:s.__staticSelector,classNames:s.classNames,styles:s.styles,unstyled:s.unstyled}),u=c.classes,d=c.cx,f=ea({opened:s.opened,shouldReturnFocus:s.returnFocus}),h=s.withRoles?{"aria-labelledby":s.getTargetId(),id:s.getDropdownId(),role:"dialog"}:{};return s.disabled?null:t.createElement(Ol,{withinPortal:s.withinPortal},t.createElement(ib,{mounted:s.opened,transition:s.transition,duration:s.transitionDuration,exitDuration:"number"===typeof s.exitTransitionDuration?s.exitTransitionDuration:s.transitionDuration},(function(e){var n,c;return t.createElement(ob,{active:s.trapFocus},t.createElement(Ss,Ib(Db(Ib({},h),{tabIndex:-1,key:s.placement,ref:s.floating,style:Db(Ib(Ib({},r),e),{zIndex:s.zIndex,top:null!=(n=s.y)?n:0,left:null!=(c=s.x)?c:0,width:"target"===s.width?void 0:s.width}),className:d(u.dropdown,i),onKeyDownCapture:tb(s.onClose,{active:s.closeOnEscape,onTrigger:f,onKeyDown:a}),"data-position":s.placement}),l),o,t.createElement(Eb,{ref:s.arrowRef,arrowX:s.arrowX,arrowY:s.arrowY,visible:s.withArrow,withBorder:!0,position:s.placement,arrowSize:s.arrowSize,arrowRadius:s.arrowRadius,arrowOffset:s.arrowOffset,arrowPosition:s.arrowPosition,className:u.arrow})))})))}function Fb(e,t){if("rtl"===e&&(t.includes("right")||t.includes("left"))){var n=t.split("-"),r=(0,u.Z)(n,2),i=r[0],o=r[1],a="right"===i?"left":"right";return void 0===o?a:"".concat(a,"-").concat(o)}return t}Nb.displayName="@mantine/core/PopoverDropdown";var zb=Object.getOwnPropertySymbols,Bb=Object.prototype.hasOwnProperty,Hb=Object.prototype.propertyIsEnumerable,Wb=function(e,t){var n={};for(var r in e)Bb.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&zb){var i,o=ot(zb(e));try{for(o.s();!(i=o.n()).done;){r=i.value;t.indexOf(r)<0&&Hb.call(e,r)&&(n[r]=e[r])}}catch(pW){o.e(pW)}finally{o.f()}}return n},Ub={position:"bottom",offset:8,positionDependencies:[],transition:"fade",transitionDuration:150,middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!1,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:ra("popover"),__staticSelector:"Popover",width:"max-content"};function Vb(e){var n,r,i,o,a,l,s=(0,t.useRef)(null),c=za("Popover",Ub,e),d=c.children,f=c.position,h=c.offset,p=c.onPositionChange,m=c.positionDependencies,g=c.opened,y=c.transition,b=c.transitionDuration,_=c.width,w=c.middlewares,S=c.withArrow,x=c.arrowSize,C=c.arrowOffset,k=c.arrowRadius,E=c.arrowPosition,R=c.unstyled,O=c.classNames,P=c.styles,T=c.closeOnClickOutside,M=c.withinPortal,L=c.closeOnEscape,Z=c.clickOutsideEvents,I=c.trapFocus,D=c.onClose,j=c.onOpen,A=c.onChange,N=c.zIndex,F=c.radius,z=c.shadow,B=c.id,H=c.defaultOpened,W=c.exitTransitionDuration,U=c.__staticSelector,V=c.withRoles,q=c.disabled,K=c.returnFocus,Y=Wb(c,["children","position","offset","onPositionChange","positionDependencies","opened","transition","transitionDuration","width","middlewares","withArrow","arrowSize","arrowOffset","arrowRadius","arrowPosition","unstyled","classNames","styles","closeOnClickOutside","withinPortal","closeOnEscape","clickOutsideEvents","trapFocus","onClose","onOpen","onChange","zIndex","radius","shadow","id","defaultOpened","exitTransitionDuration","__staticSelector","withRoles","disabled","returnFocus"]),G=(0,t.useState)(null),X=(0,u.Z)(G,2),$=X[0],J=X[1],Q=(0,t.useState)(null),ee=(0,u.Z)(Q,2),te=ee[0],ne=ee[1],re=zo(B),ie=function(e){var t=fd({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),n=(0,u.Z)(t,2),r=n[0],i=n[1],o=Iy({placement:e.position,middleware:[].concat((0,v.Z)(jy(e)),(0,v.Z)("target"===e.width?[Ag({apply:function(e){var t,n,r=e.rects;Object.assign(null!=(n=null==(t=o.refs.floating.current)?void 0:t.style)?n:{},{width:"".concat(r.reference.width,"px")})}})]:[]))});return Dy({opened:e.opened,positionDependencies:e.positionDependencies,floating:o}),Qo((function(){var t;null==(t=e.onPositionChange)||t.call(e,o.placement)}),[o.placement]),{floating:o,controlled:"boolean"===typeof e.opened,opened:r,onClose:function(){var t;null==(t=e.onClose)||t.call(e),i(!1)},onToggle:function(){var t,n;r?(null==(t=e.onClose)||t.call(e),i(!1)):(null==(n=e.onOpen)||n.call(e),i(!0))}}}({middlewares:w,width:_,position:Fb(Na().dir,f),offset:h+(S?x/2:0),arrowRef:s,arrowOffset:C,onPositionChange:p,positionDependencies:m,opened:g,defaultOpened:H,onChange:A,onOpen:j,onClose:D});!function(e,n,r){var i=(0,t.useRef)();(0,t.useEffect)((function(){var t=function(t){var n=(null!=t?t:{}).target;if(Array.isArray(r)){var o=(null==n?void 0:n.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(n)&&"HTML"!==n.tagName;r.every((function(e){return!!e&&!t.composedPath().includes(e)}))&&!o&&e()}else i.current&&!i.current.contains(n)&&e()};return(n||lg).forEach((function(e){return document.addEventListener(e,t)})),function(){(n||lg).forEach((function(e){return document.removeEventListener(e,t)}))}}),[i,e,r])}((function(){return T&&ie.onClose()}),Z,[$,te]);var oe=(0,t.useCallback)((function(e){J(e),ie.floating.reference(e)}),[ie.floating.reference]),ae=(0,t.useCallback)((function(e){ne(e),ie.floating.floating(e)}),[ie.floating.floating]);return t.createElement(By,{value:{returnFocus:K,disabled:q,controlled:ie.controlled,reference:oe,floating:ae,x:ie.floating.x,y:ie.floating.y,arrowX:null==(i=null==(r=null==(n=ie.floating)?void 0:n.middlewareData)?void 0:r.arrow)?void 0:i.x,arrowY:null==(l=null==(a=null==(o=ie.floating)?void 0:o.middlewareData)?void 0:a.arrow)?void 0:l.y,opened:ie.opened,arrowRef:s,transition:y,transitionDuration:b,exitTransitionDuration:W,width:_,withArrow:S,arrowSize:x,arrowOffset:C,arrowRadius:k,arrowPosition:E,placement:ie.floating.placement,trapFocus:I,withinPortal:M,zIndex:N,radius:F,shadow:z,closeOnEscape:L,onClose:ie.onClose,onToggle:ie.onToggle,getTargetId:function(){return"".concat(re,"-target")},getDropdownId:function(){return"".concat(re,"-dropdown")},withRoles:V,targetProps:Y,__staticSelector:U,classNames:O,styles:P,unstyled:R}},d)}Vb.Target=Qy,Vb.Dropdown=Nb,Vb.displayName="@mantine/core/Popover";var qb=Object.defineProperty,Kb=Object.getOwnPropertySymbols,Yb=Object.prototype.hasOwnProperty,Gb=Object.prototype.propertyIsEnumerable,Xb=function(e,t,n){return t in e?qb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},$b=function(e,t){for(var n in t||(t={}))Yb.call(t,n)&&Xb(e,n,t[n]);if(Kb){var r,i=ot(Kb(t));try{for(i.s();!(r=i.n()).done;){n=r.value;Gb.call(t,n)&&Xb(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},Jb=function(e,t){var n={};for(var r in e)Yb.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Kb){var i,o=ot(Kb(e));try{for(o.s();!(i=o.n()).done;){r=i.value;t.indexOf(r)<0&&Gb.call(e,r)&&(n[r]=e[r])}}catch(pW){o.e(pW)}finally{o.f()}}return n};function Qb(e){var n=e.opened,r=e.transition,i=void 0===r?"fade":r,o=e.transitionDuration,a=void 0===o?0:o,l=e.shadow,s=e.withinPortal,c=e.children,u=e.__staticSelector,d=e.onDirectionChange,f=e.switchDirectionOnFlip,h=e.zIndex,p=e.dropdownPosition,v=e.positionDependencies,m=void 0===v?[]:v,g=e.classNames,y=e.styles,b=e.unstyled,_=e.readOnly;return t.createElement(Vb,{unstyled:b,classNames:g,styles:y,width:"target",withRoles:!1,opened:n,middlewares:{flip:"flip"===p,shift:!1},position:"flip"===p?"bottom":p,positionDependencies:m,zIndex:h,__staticSelector:u,withinPortal:s,transition:i,transitionDuration:a,shadow:l,disabled:_,onPositionChange:function(e){return f&&(null==d?void 0:d("top"===e?"column-reverse":"column"))}},c)}Qb.Target=Vb.Target,Qb.Dropdown=function(e){var n=e,r=n.children,i=n.component,o=void 0===i?"div":i,a=n.maxHeight,l=void 0===a?220:a,s=n.direction,c=void 0===s?"column":s,u=n.id,d=n.innerRef,f=n.__staticSelector,h=n.styles,p=n.classNames,v=n.unstyled,m=Jb(n,["children","component","maxHeight","direction","id","innerRef","__staticSelector","styles","classNames","unstyled"]),g=ag(null,{name:f,styles:h,classNames:p,unstyled:v}).classes;return t.createElement(Vb.Dropdown,$b({p:0,onMouseDown:function(e){return e.preventDefault()}},m),t.createElement("div",{style:{maxHeight:l,display:"flex"}},t.createElement(Ss,{component:o||"div",id:"".concat(u,"-items"),"aria-labelledby":"".concat(u,"-label"),role:"listbox",onMouseDown:function(e){return e.preventDefault()},style:{flex:1,overflowY:o!==em?"auto":void 0},"data-combobox-popover":!0,ref:d},t.createElement("div",{className:g.itemsWrapper,style:{flexDirection:c}},r))))};var e_=cl((function(){return{input:{"&:not(:disabled)":{cursor:"pointer","&::selection":{backgroundColor:"transparent"}}}}})),t_=Object.defineProperty,n_=Object.defineProperties,r_=Object.getOwnPropertyDescriptors,i_=Object.getOwnPropertySymbols,o_=Object.prototype.hasOwnProperty,a_=Object.prototype.propertyIsEnumerable,l_=function(e,t,n){return t in e?t_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},s_=function(e,t){for(var n in t||(t={}))o_.call(t,n)&&l_(e,n,t[n]);if(i_){var r,i=ot(i_(t));try{for(i.s();!(r=i.n()).done;){n=r.value;a_.call(t,n)&&l_(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},c_=function(e,t){return n_(e,r_(t))},u_=function(e,t){var n={};for(var r in e)o_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&i_){var i,o=ot(i_(e));try{for(o.s();!(i=o.n()).done;){r=i.value;t.indexOf(r)<0&&a_.call(e,r)&&(n[r]=e[r])}}catch(pW){o.e(pW)}finally{o.f()}}return n};var d_=Object.defineProperty,f_=Object.defineProperties,h_=Object.getOwnPropertyDescriptors,p_=Object.getOwnPropertySymbols,v_=Object.prototype.hasOwnProperty,m_=Object.prototype.propertyIsEnumerable,g_=function(e,t,n){return t in e?d_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},y_=function(e,t){for(var n in t||(t={}))v_.call(t,n)&&g_(e,n,t[n]);if(p_){var r,i=ot(p_(t));try{for(i.s();!(r=i.n()).done;){n=r.value;m_.call(t,n)&&g_(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},b_=function(e,t){return f_(e,h_(t))};var __={required:!1,size:"sm",shadow:"sm",itemComponent:am,transition:"fade",transitionDuration:0,initiallyOpened:!1,filter:function(e,t){return t.label.toLowerCase().trim().includes(e.toLowerCase().trim())},maxDropdownHeight:220,searchable:!1,clearable:!1,limit:1/0,disabled:!1,creatable:!1,shouldCreate:function(e,t){return!!e&&!t.some((function(t){return t.label.toLowerCase()===e.toLowerCase()}))},selectOnBlur:!1,switchDirectionOnFlip:!1,filterDataOnExactSearchMatch:!1,zIndex:ra("popover"),clearButtonTabIndex:0,positionDependencies:[],dropdownPosition:"flip"},w_=(0,t.forwardRef)((function(e,n){var r=function(e,t,n){var r=za(e,t,n),i=r.label,o=r.description,a=r.error,l=r.required,s=r.classNames,c=r.styles,u=r.className,d=r.unstyled,f=r.__staticSelector,h=r.sx,p=r.errorProps,v=r.labelProps,m=r.descriptionProps,g=r.wrapperProps,y=r.id,b=r.size,_=r.style,w=r.inputContainer,S=r.inputWrapperOrder,x=r.withAsterisk,C=u_(r,["label","description","error","required","classNames","styles","className","unstyled","__staticSelector","sx","errorProps","labelProps","descriptionProps","wrapperProps","id","size","style","inputContainer","inputWrapperOrder","withAsterisk"]),k=zo(y),E=ns(C),R=E.systemStyles,O=E.rest,P=s_({label:i,description:o,error:a,required:l,classNames:s,className:u,__staticSelector:f,sx:h,errorProps:p,labelProps:v,descriptionProps:m,unstyled:d,styles:c,id:k,size:b,style:_,inputContainer:w,inputWrapperOrder:S,withAsterisk:x},g);return c_(s_({},O),{classNames:s,styles:c,unstyled:d,wrapperProps:s_(s_({},P),R),inputProps:{required:l,classNames:s,styles:c,unstyled:d,id:k,size:b,__staticSelector:f,invalid:!!a}})}("Select",__,e),i=r.inputProps,a=r.wrapperProps,l=(r.shadow,r.data),s=r.value,c=r.defaultValue,d=r.onChange,f=r.itemComponent,h=r.onKeyDown,p=r.onBlur,m=r.onFocus,g=r.transition,y=r.transitionDuration,b=r.initiallyOpened,_=(r.transitionTimingFunction,r.unstyled),w=r.classNames,S=r.styles,x=r.filter,C=r.maxDropdownHeight,k=r.searchable,E=r.clearable,R=r.nothingFound,O=r.clearButtonLabel,P=r.limit,T=r.disabled,M=r.onSearchChange,L=r.searchValue,Z=r.rightSection,I=r.rightSectionWidth,D=r.creatable,j=r.getCreateLabel,A=r.shouldCreate,N=r.selectOnBlur,F=r.onCreate,z=r.dropdownComponent,B=r.onDropdownClose,H=r.onDropdownOpen,W=r.withinPortal,U=r.switchDirectionOnFlip,V=r.zIndex,q=r.name,K=r.dropdownPosition,Y=r.allowDeselect,G=r.placeholder,X=r.filterDataOnExactSearchMatch,$=r.clearButtonTabIndex,J=r.form,Q=r.positionDependencies,ee=r.readOnly,te=r.hoverOnSearchChange,ne=function(e,t){var n={};for(var r in e)v_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&p_){var i,o=ot(p_(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&m_.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(r,["inputProps","wrapperProps","shadow","data","value","defaultValue","onChange","itemComponent","onKeyDown","onBlur","onFocus","transition","transitionDuration","initiallyOpened","transitionTimingFunction","unstyled","classNames","styles","filter","maxDropdownHeight","searchable","clearable","nothingFound","clearButtonLabel","limit","disabled","onSearchChange","searchValue","rightSection","rightSectionWidth","creatable","getCreateLabel","shouldCreate","selectOnBlur","onCreate","dropdownComponent","onDropdownClose","onDropdownOpen","withinPortal","switchDirectionOnFlip","zIndex","name","dropdownPosition","allowDeselect","placeholder","filterDataOnExactSearchMatch","clearButtonTabIndex","form","positionDependencies","readOnly","hoverOnSearchChange"]),re=e_(),ie=re.classes,oe=re.cx,ae=re.theme,le=(0,t.useState)(b),se=(0,u.Z)(le,2),ce=se[0],ue=se[1],de=(0,t.useState)(-1),fe=(0,u.Z)(de,2),he=fe[0],pe=fe[1],ve=(0,t.useRef)(),me=(0,t.useRef)({}),ge=(0,t.useState)("column"),ye=(0,u.Z)(ge,2),be=ye[0],_e=ye[1],we="column"===be,Se=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.duration,r=void 0===n?1250:n,i=e.axis,o=void 0===i?"y":i,a=e.onScrollFinish,l=e.easing,s=void 0===l?ip:l,c=e.offset,u=void 0===c?0:c,d=e.cancelable,f=void 0===d||d,h=e.isList,p=void 0!==h&&h,v=(0,t.useRef)(0),m=(0,t.useRef)(0),g=(0,t.useRef)(!1),y=(0,t.useRef)(null),b=(0,t.useRef)(null),_=Gl(),w=function(){v.current&&cancelAnimationFrame(v.current)},S=(0,t.useCallback)((function(){var e,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).alignment,n=void 0===t?"start":t;g.current=!1,v.current&&w();var i=null!=(e=ap({parent:y.current,axis:o}))?e:0,l=op({parent:y.current,target:b.current,axis:o,alignment:n,offset:u,isList:p})-(y.current?0:i);!function e(){0===m.current&&(m.current=performance.now());var t=performance.now()-m.current,n=_||0===r?1:t/r,c=i+l*s(n);lp({parent:y.current,axis:o,distance:c}),!g.current&&n<1?v.current=requestAnimationFrame(e):("function"===typeof a&&a(),m.current=0,v.current=0,w())}()}),[o,r,s,p,u,a,_]),x=function(){f&&(g.current=!0)};return ta("wheel",x,{passive:!0}),ta("touchmove",x,{passive:!0}),(0,t.useEffect)((function(){return w}),[]),{scrollableRef:y,targetRef:b,scrollIntoView:S,cancel:w}}({duration:0,offset:5,cancelable:!1,isList:!0}),xe=Se.scrollIntoView,Ce=Se.targetRef,ke=Se.scrollableRef,Ee=void 0===Y?E:Y,Re=function(e){if(ce!==e){ue(e);var t=e?H:B;"function"===typeof t&&t()}},Oe=D&&"function"===typeof j,Pe=null,Te=sp({data:l.map((function(e){return"string"===typeof e?{label:e,value:e}:e}))}),Me=fd({value:s,defaultValue:c,finalValue:null,onChange:d}),Le=(0,u.Z)(Me,3),Ze=Le[0],Ie=Le[1],De=Le[2],je=Te.find((function(e){return e.value===Ze})),Ae=fd({value:L,defaultValue:(null==je?void 0:je.label)||"",finalValue:void 0,onChange:M}),Ne=(0,u.Z)(Ae,2),Fe=Ne[0],ze=Ne[1],Be=function(e){ze(e),k&&"function"===typeof M&&M(e)};(0,t.useEffect)((function(){var e=Te.find((function(e){return e.value===Ze}));e?Be(e.label):Oe&&Ze||Be("")}),[Ze]),(0,t.useEffect)((function(){!je||k&&ce||Be(je.label)}),[null==je?void 0:je.label]);var He=function(e){if(!ee)if(Ee&&(null==je?void 0:je.value)===e.value)Ie(null),Re(!1);else{if(e.creatable&&"function"===typeof F){var t=F(e.value);"undefined"!==typeof t&&null!==t&&Ie("string"===typeof t?t:t.value)}else Ie(e.value);De||Be(e.label),pe(-1),Re(!1),ve.current.focus()}},We=function(e){var t=e.data,n=e.searchable,r=e.limit,i=e.searchValue,o=e.filter,a=e.value,l=e.filterDataOnExactSearchMatch;if(!n)return t;var s=null!=a&&t.find((function(e){return e.value===a}))||null;if(s&&!l&&(null==s?void 0:s.label)===i){if(r){if(r>=t.length)return t;var c=t.indexOf(s),u=c+r,d=u-t.length;return d>0?t.slice(c-d):t.slice(c,u)}return t}for(var f=[],h=0;h<t.length&&(o(i,t[h])&&f.push(t[h]),!(f.length>=r));h+=1);return f}({data:Te,searchable:k,limit:P,searchValue:Fe,filter:x,filterDataOnExactSearchMatch:X,value:Ze});Oe&&A(Fe,We)&&(Pe=j(Fe),We.push({label:Fe,value:Fe,creatable:!0}));var Ue=function(e,t,n){for(var r=e;n(r);)if(r=t(r),!We[r].disabled)return r;return e};Qo((function(){pe(te&&Fe?0:-1)}),[Fe,te]);var Ve=Ze?We.findIndex((function(e){return e.value===Ze})):0,qe=!ee&&(We.length>0?ce:ce&&!!R),Ke=function(){pe((function(e){var t,n=Ue(e,(function(e){return e-1}),(function(e){return e>0}));return Ce.current=me.current[null==(t=We[n])?void 0:t.value],qe&&xe({alignment:we?"start":"end"}),n}))},Ye=function(){pe((function(e){var t,n=Ue(e,(function(e){return e+1}),(function(e){return e<We.length-1}));return Ce.current=me.current[null==(t=We[n])?void 0:t.value],qe&&xe({alignment:we?"end":"start"}),n}))},Ge=function(){return window.setTimeout((function(){var e;Ce.current=me.current[null==(e=We[Ve])?void 0:e.value],xe({alignment:we?"end":"start"})}),0)};Qo((function(){qe&&Ge()}),[qe]);return t.createElement(sh.Wrapper,b_(y_({},a),{__staticSelector:"Select"}),t.createElement(Qb,{opened:qe,transition:g,transitionDuration:y,shadow:"sm",withinPortal:W,__staticSelector:"Select",onDirectionChange:_e,switchDirectionOnFlip:U,zIndex:V,dropdownPosition:K,positionDependencies:[].concat((0,v.Z)(Q),[Fe]),classNames:w,styles:S,unstyled:_},t.createElement(Qb.Target,null,t.createElement("div",{role:"combobox","aria-haspopup":"listbox","aria-owns":qe?"".concat(i.id,"-items"):null,"aria-controls":i.id,"aria-expanded":qe,onMouseLeave:function(){return pe(-1)},tabIndex:-1},t.createElement("input",{type:"hidden",name:q,value:Ze||"",form:J,disabled:T}),t.createElement(sh,y_(b_(y_(y_({autoComplete:"off",type:"search"},i),ne),{ref:Xo(n,ve),onKeyDown:function(e){switch("function"===typeof h&&h(e),e.key){case"ArrowUp":e.preventDefault(),ce?we?Ke():Ye():(pe(Ve),Re(!0),Ge());break;case"ArrowDown":e.preventDefault(),ce?we?Ye():Ke():(pe(Ve),Re(!0),Ge());break;case"Home":if(!k){e.preventDefault(),ce||Re(!0);var t=We.findIndex((function(e){return!e.disabled}));pe(t),qe&&xe({alignment:we?"end":"start"})}break;case"End":if(!k){e.preventDefault(),ce||Re(!0);var n=We.map((function(e){return!!e.disabled})).lastIndexOf(!1);pe(n),qe&&xe({alignment:we?"end":"start"})}break;case"Escape":e.preventDefault(),Re(!1),pe(-1);break;case" ":k||(e.preventDefault(),We[he]&&ce?He(We[he]):(Re(!0),pe(Ve),Ge()));break;case"Enter":k||e.preventDefault(),We[he]&&ce&&(e.preventDefault(),He(We[he]))}},__staticSelector:"Select",value:Fe,placeholder:G,onChange:function(e){ee||(Be(e.currentTarget.value),E&&""===e.currentTarget.value&&Ie(null),pe(-1),Re(!0))},"aria-autocomplete":"list","aria-controls":qe?"".concat(i.id,"-items"):null,"aria-activedescendant":he>=0?"".concat(i.id,"-").concat(he):null,onMouseDown:function(){ee||(Re(!ce),Ze&&!ce&&pe(Ve))},onBlur:function(e){"function"===typeof p&&p(e);var t=Te.find((function(e){return e.value===Ze}));N&&We[he]&&ce&&He(We[he]),Be((null==t?void 0:t.label)||""),Re(!1)},onFocus:function(e){"function"===typeof m&&m(e),k&&Re(!0)},readOnly:!k||ee,disabled:T,"data-mantine-stop-propagation":qe,name:null,classNames:b_(y_({},w),{input:oe((0,o.Z)({},ie.input,!k),null==w?void 0:w.input)})}),function(e){var n=e,r=n.styles,i=n.rightSection,o=n.rightSectionWidth,a=n.theme,l=Em(n,["styles","rightSection","rightSectionWidth","theme"]);if(i)return{rightSection:i,rightSectionWidth:o,styles:r};var s="function"===typeof r?r(a):r;return{rightSectionWidth:a.fn.size({size:l.size,sizes:Rm}),rightSection:!l.readOnly&&!(l.disabled&&l.shouldClear)&&t.createElement(mm,Cm({},l)),styles:km(Cm({},s),{rightSection:km(Cm({},null==s?void 0:s.rightSection),{pointerEvents:l.shouldClear?void 0:"none"})})}}({theme:ae,rightSection:Z,rightSectionWidth:I,styles:S,size:i.size,shouldClear:E&&!!je,clearButtonLabel:O,onClear:function(){var e;ee||(Ie(null),De||Be(""),null==(e=ve.current)||e.focus())},error:a.error,clearButtonTabIndex:$,disabled:T,readOnly:ee}))))),t.createElement(Qb.Dropdown,{component:z||em,maxHeight:C,direction:be,id:i.id,innerRef:ke,__staticSelector:"Select",classNames:w,styles:S},t.createElement(og,{data:We,hovered:he,classNames:w,styles:S,isItemSelected:function(e){return e===Ze},uuid:i.id,__staticSelector:"Select",onItemHover:pe,onItemSelect:He,itemsRefs:me,itemComponent:f,size:i.size,nothingFound:R,creatable:Oe&&!!Pe,createLabel:Pe,"aria-label":a.label,unstyled:_}))))}));function S_(e){return(0,xn.Z)("MuiIconButton",e)}w_.displayName="@mantine/core/Select";var x_=(0,rn.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),C_=["edge","children","className","color","disabled","disableFocusRipple","size"],k_=(0,Zt.ZP)(Tn,{name:"MuiIconButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"default"!==n.color&&t["color".concat((0,Mn.Z)(n.color))],n.edge&&t["edge".concat((0,Mn.Z)(n.edge))],t["size".concat((0,Mn.Z)(n.size))]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,Pt.Z)({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})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Lt.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===n.edge&&{marginLeft:"small"===n.size?-3:-12},"end"===n.edge&&{marginRight:"small"===n.size?-3:-12})}),(function(e){var t,n=e.theme,r=e.ownerState,i=null==(t=(n.vars||n).palette)?void 0:t[r.color];return(0,Pt.Z)({},"inherit"===r.color&&{color:"inherit"},"inherit"!==r.color&&"default"!==r.color&&(0,Pt.Z)({color:null==i?void 0:i.main},!r.disableRipple&&{"&:hover":(0,Pt.Z)({},i&&{backgroundColor:n.vars?"rgba(".concat(i.mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,Lt.Fq)(i.main,n.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===r.size&&{padding:5,fontSize:n.typography.pxToRem(18)},"large"===r.size&&{padding:12,fontSize:n.typography.pxToRem(28)},(0,o.Z)({},"&.".concat(x_.disabled),{backgroundColor:"transparent",color:(n.vars||n).palette.action.disabled}))})),E_=t.forwardRef((function(e,t){var n=(0,It.Z)({props:e,name:"MuiIconButton"}),r=n.edge,i=void 0!==r&&r,o=n.children,a=n.className,l=n.color,s=void 0===l?"default":l,c=n.disabled,u=void 0!==c&&c,d=n.disableFocusRipple,f=void 0!==d&&d,p=n.size,v=void 0===p?"medium":p,g=(0,h.Z)(n,C_),y=(0,Pt.Z)({},n,{edge:i,color:s,disabled:u,disableFocusRipple:f,size:v}),b=function(e){var t=e.classes,n=e.disabled,r=e.color,i=e.edge,o=e.size,a={root:["root",n&&"disabled","default"!==r&&"color".concat((0,Mn.Z)(r)),i&&"edge".concat((0,Mn.Z)(i)),"size".concat((0,Mn.Z)(o))]};return(0,Mt.Z)(a,S_,t)}(y);return(0,tn.jsx)(k_,(0,Pt.Z)({className:(0,m.Z)(b.root,a),centerRipple:!0,focusRipple:!f,disabled:u,ref:t,ownerState:y},g,{children:o}))})),R_=E_,O_=n(8252),P_=n(2466),T_=n(6189),M_=n(5202),L_=n(2254),Z_=["onChange","maxRows","minRows","style","value"];function I_(e,t){return parseInt(e[t],10)||0}var D_={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function j_(e){return void 0===e||null===e||0===Object.keys(e).length}var A_=t.forwardRef((function(e,n){var r=e.onChange,i=e.maxRows,o=e.minRows,a=void 0===o?1:o,l=e.style,s=e.value,c=(0,h.Z)(e,Z_),d=t.useRef(null!=s).current,f=t.useRef(null),p=(0,dr.Z)(n,f),v=t.useRef(null),m=t.useRef(0),g=t.useState({}),y=(0,u.Z)(g,2),b=y[0],_=y[1],w=t.useCallback((function(){var t=f.current,n=(0,M_.Z)(t).getComputedStyle(t);if("0px"===n.width)return{};var r=v.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var o=n["box-sizing"],l=I_(n,"padding-bottom")+I_(n,"padding-top"),s=I_(n,"border-bottom-width")+I_(n,"border-top-width"),c=r.scrollHeight;r.value="x";var u=r.scrollHeight,d=c;return a&&(d=Math.max(Number(a)*u,d)),i&&(d=Math.min(Number(i)*u,d)),{outerHeightStyle:(d=Math.max(d,u))+("border-box"===o?l+s:0),overflow:Math.abs(d-c)<=1}}),[i,a,e.placeholder]),S=function(e,t){var n=t.outerHeightStyle,r=t.overflow;return m.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(m.current+=1,{overflow:r,outerHeightStyle:n}):e},x=t.useCallback((function(){var e=w();j_(e)||_((function(t){return S(t,e)}))}),[w]);t.useEffect((function(){var e,t=(0,L_.Z)((function(){m.current=0,f.current&&function(){var e=w();j_(e)||(0,Kn.flushSync)((function(){_((function(t){return S(t,e)}))}))}()})),n=(0,M_.Z)(f.current);return n.addEventListener("resize",t),"undefined"!==typeof ResizeObserver&&(e=new ResizeObserver(t)).observe(f.current),function(){t.clear(),n.removeEventListener("resize",t),e&&e.disconnect()}})),(0,fr.Z)((function(){x()})),t.useEffect((function(){m.current=0}),[s]);return(0,tn.jsxs)(t.Fragment,{children:[(0,tn.jsx)("textarea",(0,Pt.Z)({value:s,onChange:function(e){m.current=0,d||x(),r&&r(e)},ref:p,rows:a,style:(0,Pt.Z)({height:b.outerHeightStyle,overflow:b.overflow?"hidden":null},l)},c)),(0,tn.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:v,tabIndex:-1,style:(0,Pt.Z)({},D_,l,{padding:0})})]})})),N_=A_;function F_(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e}),{})}var z_=t.createContext(void 0);function B_(){return t.useContext(z_)}var H_=n(162);function W_(e){var t=e.styles,n=e.defaultTheme,r=void 0===n?{}:n,i="function"===typeof t?function(e){return t(void 0===(n=e)||null===n||0===Object.keys(n).length?r:e);var n}:t;return(0,tn.jsx)(Jt,{styles:i})}var U_=function(e){return(0,tn.jsx)(W_,(0,Pt.Z)({},e,{defaultTheme:Vn.Z}))};function V_(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function q_(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(V_(e.value)&&""!==e.value||t&&V_(e.defaultValue)&&""!==e.defaultValue)}function K_(e){return(0,xn.Z)("MuiInputBase",e)}var Y_=(0,rn.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),G_=["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"],X_=function(e,t){var n=e.ownerState;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t["color".concat((0,Mn.Z)(n.color))],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},$_=function(e,t){var n=e.ownerState;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},J_=(0,Zt.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:X_})((function(e){var t=e.theme,n=e.ownerState;return(0,Pt.Z)({},t.typography.body1,(0,o.Z)({color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center"},"&.".concat(Y_.disabled),{color:(t.vars||t).palette.text.disabled,cursor:"default"}),n.multiline&&(0,Pt.Z)({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"})})),Q_=(0,Zt.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:$_})((function(e){var t,n=e.theme,r=e.ownerState,i="light"===n.palette.mode,a=(0,Pt.Z)({color:"currentColor"},n.vars?{opacity:n.vars.opacity.inputPlaceholder}:{opacity:i?.42:.5},{transition:n.transitions.create("opacity",{duration:n.transitions.duration.shorter})}),l={opacity:"0 !important"},s=n.vars?{opacity:n.vars.opacity.inputPlaceholder}:{opacity:i?.42:.5};return(0,Pt.Z)((t={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":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"}},(0,o.Z)(t,"label[data-shrink=false] + .".concat(Y_.formControl," &"),{"&::-webkit-input-placeholder":l,"&::-moz-placeholder":l,"&:-ms-input-placeholder":l,"&::-ms-input-placeholder":l,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s}),(0,o.Z)(t,"&.".concat(Y_.disabled),{opacity:1,WebkitTextFillColor:(n.vars||n).palette.text.disabled}),(0,o.Z)(t,"&:-webkit-autofill",{animationDuration:"5000s",animationName:"mui-auto-fill"}),t),"small"===r.size&&{paddingTop:1},r.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===r.type&&{MozAppearance:"textfield"})})),ew=(0,tn.jsx)(U_,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),tw=t.forwardRef((function(e,n){var r,i=(0,It.Z)({props:e,name:"MuiInputBase"}),o=i["aria-describedby"],a=i.autoComplete,l=i.autoFocus,s=i.className,c=i.components,d=void 0===c?{}:c,f=i.componentsProps,p=void 0===f?{}:f,v=i.defaultValue,g=i.disabled,y=i.disableInjectingGlobalStyles,b=i.endAdornment,_=i.fullWidth,w=void 0!==_&&_,S=i.id,x=i.inputComponent,C=void 0===x?"input":x,k=i.inputProps,E=void 0===k?{}:k,R=i.inputRef,O=i.maxRows,P=i.minRows,T=i.multiline,M=void 0!==T&&T,L=i.name,Z=i.onBlur,I=i.onChange,D=i.onClick,j=i.onFocus,A=i.onKeyDown,N=i.onKeyUp,F=i.placeholder,z=i.readOnly,B=i.renderSuffix,H=i.rows,W=i.slotProps,U=void 0===W?{}:W,V=i.slots,q=void 0===V?{}:V,K=i.startAdornment,Y=i.type,G=void 0===Y?"text":Y,X=i.value,$=(0,h.Z)(i,G_),J=null!=E.value?E.value:X,Q=t.useRef(null!=J).current,ee=t.useRef(),te=t.useCallback((function(e){0}),[]),ne=(0,Dt.Z)(ee,R,E.ref,te),re=t.useState(!1),ie=(0,u.Z)(re,2),oe=ie[0],ae=ie[1],le=B_();var se=F_({props:i,muiFormControl:le,states:["color","disabled","error","hiddenLabel","size","required","filled"]});se.focused=le?le.focused:oe,t.useEffect((function(){!le&&g&&oe&&(ae(!1),Z&&Z())}),[le,g,oe,Z]);var ce=le&&le.onFilled,ue=le&&le.onEmpty,de=t.useCallback((function(e){q_(e)?ce&&ce():ue&&ue()}),[ce,ue]);(0,H_.Z)((function(){Q&&de({value:J})}),[J,de,Q]);t.useEffect((function(){de(ee.current)}),[]);var fe=C,he=E;M&&"input"===fe&&(he=H?(0,Pt.Z)({type:void 0,minRows:H,maxRows:H},he):(0,Pt.Z)({type:void 0,maxRows:O,minRows:P},he),fe=N_);t.useEffect((function(){le&&le.setAdornedStart(Boolean(K))}),[le,K]);var pe=(0,Pt.Z)({},i,{color:se.color||"primary",disabled:se.disabled,endAdornment:b,error:se.error,focused:se.focused,formControl:le,fullWidth:w,hiddenLabel:se.hiddenLabel,multiline:M,size:se.size,startAdornment:K,type:G}),ve=function(e){var t=e.classes,n=e.color,r=e.disabled,i=e.error,o=e.endAdornment,a=e.focused,l=e.formControl,s=e.fullWidth,c=e.hiddenLabel,u=e.multiline,d=e.readOnly,f=e.size,h=e.startAdornment,p=e.type,v={root:["root","color".concat((0,Mn.Z)(n)),r&&"disabled",i&&"error",s&&"fullWidth",a&&"focused",l&&"formControl","small"===f&&"sizeSmall",u&&"multiline",h&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===p&&"inputTypeSearch",u&&"inputMultiline","small"===f&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return(0,Mt.Z)(v,K_,t)}(pe),me=q.root||d.Root||J_,ge=U.root||p.root||{},ye=q.input||d.Input||Q_;return he=(0,Pt.Z)({},he,null!=(r=U.input)?r:p.input),(0,tn.jsxs)(t.Fragment,{children:[!y&&ew,(0,tn.jsxs)(me,(0,Pt.Z)({},ge,!Hn(me)&&{ownerState:(0,Pt.Z)({},pe,ge.ownerState)},{ref:n,onClick:function(e){ee.current&&e.currentTarget===e.target&&ee.current.focus(),D&&D(e)}},$,{className:(0,m.Z)(ve.root,ge.className,s),children:[K,(0,tn.jsx)(z_.Provider,{value:null,children:(0,tn.jsx)(ye,(0,Pt.Z)({ownerState:pe,"aria-invalid":se.error,"aria-describedby":o,autoComplete:a,autoFocus:l,defaultValue:v,disabled:se.disabled,id:S,onAnimationStart:function(e){de("mui-auto-fill-cancel"===e.animationName?ee.current:{value:"x"})},name:L,placeholder:F,readOnly:z,required:se.required,rows:H,value:J,onKeyDown:A,onKeyUp:N,type:G},he,!Hn(ye)&&{as:fe,ownerState:(0,Pt.Z)({},pe,he.ownerState)},{ref:ne,className:(0,m.Z)(ve.input,he.className),onBlur:function(e){Z&&Z(e),E.onBlur&&E.onBlur(e),le&&le.onBlur?le.onBlur(e):ae(!1)},onChange:function(e){if(!Q){var t=e.target||ee.current;if(null==t)throw new Error((0,T_.Z)(1));de({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];E.onChange&&E.onChange.apply(E,[e].concat(r)),I&&I.apply(void 0,[e].concat(r))},onFocus:function(e){se.disabled?e.stopPropagation():(j&&j(e),E.onFocus&&E.onFocus(e),le&&le.onFocus?le.onFocus(e):ae(!0))}}))}),b,B?B((0,Pt.Z)({},se,{startAdornment:K})):null]}))]})})),nw=tw;function rw(e){return(0,xn.Z)("MuiInput",e)}var iw=(0,Pt.Z)({},Y_,(0,rn.Z)("MuiInput",["root","underline","input"])),ow=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],aw=(0,Zt.ZP)(J_,{shouldForwardProp:function(e){return(0,Zt.FO)(e)||"classes"===e},name:"MuiInput",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[].concat((0,v.Z)(X_(e,t)),[!n.disableUnderline&&t.underline])}})((function(e){var t,n=e.theme,r=e.ownerState,i="light"===n.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return n.vars&&(i="rgba(".concat(n.vars.palette.common.onBackgroundChannel," / ").concat(n.vars.opacity.inputUnderline,")")),(0,Pt.Z)({position:"relative"},r.formControl&&{"label + &":{marginTop:16}},!r.disableUnderline&&(t={"&:after":{borderBottom:"2px solid ".concat((n.vars||n).palette[r.color].main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:n.transitions.create("transform",{duration:n.transitions.duration.shorter,easing:n.transitions.easing.easeOut}),pointerEvents:"none"}},(0,o.Z)(t,"&.".concat(iw.focused,":after"),{transform:"scaleX(1) translateX(0)"}),(0,o.Z)(t,"&.".concat(iw.error),{"&:before, &:after":{borderBottomColor:(n.vars||n).palette.error.main}}),(0,o.Z)(t,"&:before",{borderBottom:"1px solid ".concat(i),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:n.transitions.create("border-bottom-color",{duration:n.transitions.duration.shorter}),pointerEvents:"none"}),(0,o.Z)(t,"&:hover:not(.".concat(iw.disabled,", .").concat(iw.error,"):before"),{borderBottom:"2px solid ".concat((n.vars||n).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(i)}}),(0,o.Z)(t,"&.".concat(iw.disabled,":before"),{borderBottomStyle:"dotted"}),t))})),lw=(0,Zt.ZP)(Q_,{name:"MuiInput",slot:"Input",overridesResolver:$_})({}),sw=t.forwardRef((function(e,t){var n,r,i,o,a=(0,It.Z)({props:e,name:"MuiInput"}),l=a.disableUnderline,s=a.components,c=void 0===s?{}:s,u=a.componentsProps,d=a.fullWidth,f=void 0!==d&&d,p=a.inputComponent,v=void 0===p?"input":p,m=a.multiline,g=void 0!==m&&m,y=a.slotProps,b=a.slots,_=void 0===b?{}:b,w=a.type,S=void 0===w?"text":w,x=(0,h.Z)(a,ow),C=function(e){var t=e.classes,n={root:["root",!e.disableUnderline&&"underline"],input:["input"]},r=(0,Mt.Z)(n,rw,t);return(0,Pt.Z)({},t,r)}(a),k={root:{ownerState:{disableUnderline:l}}},E=(null!=y?y:u)?(0,P_.Z)(null!=y?y:u,k):k,R=null!=(n=null!=(r=_.root)?r:c.Root)?n:aw,O=null!=(i=null!=(o=_.input)?o:c.Input)?i:lw;return(0,tn.jsx)(nw,(0,Pt.Z)({slots:{root:R,input:O},slotProps:E,fullWidth:f,inputComponent:v,multiline:g,ref:t,type:S},x,{classes:C}))}));sw.muiName="Input";var cw=sw;function uw(e){return(0,xn.Z)("MuiFilledInput",e)}var dw=(0,Pt.Z)({},Y_,(0,rn.Z)("MuiFilledInput",["root","underline","input"])),fw=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],hw=(0,Zt.ZP)(J_,{shouldForwardProp:function(e){return(0,Zt.FO)(e)||"classes"===e},name:"MuiFilledInput",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[].concat((0,v.Z)(X_(e,t)),[!n.disableUnderline&&t.underline])}})((function(e){var t,n,r,i=e.theme,a=e.ownerState,l="light"===i.palette.mode,s=l?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",c=l?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",u=l?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",d=l?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,Pt.Z)((t={position:"relative",backgroundColor:i.vars?i.vars.palette.FilledInput.bg:c,borderTopLeftRadius:(i.vars||i).shape.borderRadius,borderTopRightRadius:(i.vars||i).shape.borderRadius,transition:i.transitions.create("background-color",{duration:i.transitions.duration.shorter,easing:i.transitions.easing.easeOut}),"&:hover":{backgroundColor:i.vars?i.vars.palette.FilledInput.hoverBg:u,"@media (hover: none)":{backgroundColor:i.vars?i.vars.palette.FilledInput.bg:c}}},(0,o.Z)(t,"&.".concat(dw.focused),{backgroundColor:i.vars?i.vars.palette.FilledInput.bg:c}),(0,o.Z)(t,"&.".concat(dw.disabled),{backgroundColor:i.vars?i.vars.palette.FilledInput.disabledBg:d}),t),!a.disableUnderline&&(n={"&:after":{borderBottom:"2px solid ".concat(null==(r=(i.vars||i).palette[a.color||"primary"])?void 0:r.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:i.transitions.create("transform",{duration:i.transitions.duration.shorter,easing:i.transitions.easing.easeOut}),pointerEvents:"none"}},(0,o.Z)(n,"&.".concat(dw.focused,":after"),{transform:"scaleX(1) translateX(0)"}),(0,o.Z)(n,"&.".concat(dw.error),{"&:before, &:after":{borderBottomColor:(i.vars||i).palette.error.main}}),(0,o.Z)(n,"&:before",{borderBottom:"1px solid ".concat(i.vars?"rgba(".concat(i.vars.palette.common.onBackgroundChannel," / ").concat(i.vars.opacity.inputUnderline,")"):s),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:i.transitions.create("border-bottom-color",{duration:i.transitions.duration.shorter}),pointerEvents:"none"}),(0,o.Z)(n,"&:hover:not(.".concat(dw.disabled,", .").concat(dw.error,"):before"),{borderBottom:"1px solid ".concat((i.vars||i).palette.text.primary)}),(0,o.Z)(n,"&.".concat(dw.disabled,":before"),{borderBottomStyle:"dotted"}),n),a.startAdornment&&{paddingLeft:12},a.endAdornment&&{paddingRight:12},a.multiline&&(0,Pt.Z)({padding:"25px 12px 8px"},"small"===a.size&&{paddingTop:21,paddingBottom:4},a.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),pw=(0,Zt.ZP)(Q_,{name:"MuiFilledInput",slot:"Input",overridesResolver:$_})((function(e){var t=e.theme,n=e.ownerState;return(0,Pt.Z)({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&&(0,o.Z)({"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.getColorSchemeSelector("dark"),{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}),"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9})})),vw=t.forwardRef((function(e,t){var n,r,i,o,a=(0,It.Z)({props:e,name:"MuiFilledInput"}),l=a.components,s=void 0===l?{}:l,c=a.componentsProps,u=a.fullWidth,d=void 0!==u&&u,f=a.inputComponent,p=void 0===f?"input":f,v=a.multiline,m=void 0!==v&&v,g=a.slotProps,y=a.slots,b=void 0===y?{}:y,_=a.type,w=void 0===_?"text":_,S=(0,h.Z)(a,fw),x=(0,Pt.Z)({},a,{fullWidth:d,inputComponent:p,multiline:m,type:w}),C=function(e){var t=e.classes,n={root:["root",!e.disableUnderline&&"underline"],input:["input"]},r=(0,Mt.Z)(n,uw,t);return(0,Pt.Z)({},t,r)}(a),k={root:{ownerState:x},input:{ownerState:x}},E=(null!=g?g:c)?(0,P_.Z)(null!=g?g:c,k):k,R=null!=(n=null!=(r=b.root)?r:s.Root)?n:hw,O=null!=(i=null!=(o=b.input)?o:s.Input)?i:pw;return(0,tn.jsx)(nw,(0,Pt.Z)({slots:{root:R,input:O},componentsProps:E,fullWidth:d,inputComponent:p,multiline:m,ref:t,type:w},S,{classes:C}))}));vw.muiName="Input";var mw,gw=vw,yw=["children","classes","className","label","notched"],bw=(0,Zt.ZP)("fieldset")({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%"}),_w=(0,Zt.ZP)("legend")((function(e){var t=e.ownerState,n=e.theme;return(0,Pt.Z)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:n.transitions.create("width",{duration:150,easing:n.transitions.easing.easeOut})},t.withLabel&&(0,Pt.Z)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:n.transitions.create("max-width",{duration:50,easing:n.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:n.transitions.create("max-width",{duration:100,easing:n.transitions.easing.easeOut,delay:50})}))}));function ww(e){return(0,xn.Z)("MuiOutlinedInput",e)}var Sw=(0,Pt.Z)({},Y_,(0,rn.Z)("MuiOutlinedInput",["root","notchedOutline","input"])),xw=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Cw=(0,Zt.ZP)(J_,{shouldForwardProp:function(e){return(0,Zt.FO)(e)||"classes"===e},name:"MuiOutlinedInput",slot:"Root",overridesResolver:X_})((function(e){var t,n=e.theme,r=e.ownerState,i="light"===n.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,Pt.Z)((t={position:"relative",borderRadius:(n.vars||n).shape.borderRadius},(0,o.Z)(t,"&:hover .".concat(Sw.notchedOutline),{borderColor:(n.vars||n).palette.text.primary}),(0,o.Z)(t,"@media (hover: none)",(0,o.Z)({},"&:hover .".concat(Sw.notchedOutline),{borderColor:n.vars?"rgba(".concat(n.vars.palette.common.onBackgroundChannel," / 0.23)"):i})),(0,o.Z)(t,"&.".concat(Sw.focused," .").concat(Sw.notchedOutline),{borderColor:(n.vars||n).palette[r.color].main,borderWidth:2}),(0,o.Z)(t,"&.".concat(Sw.error," .").concat(Sw.notchedOutline),{borderColor:(n.vars||n).palette.error.main}),(0,o.Z)(t,"&.".concat(Sw.disabled," .").concat(Sw.notchedOutline),{borderColor:(n.vars||n).palette.action.disabled}),t),r.startAdornment&&{paddingLeft:14},r.endAdornment&&{paddingRight:14},r.multiline&&(0,Pt.Z)({padding:"16.5px 14px"},"small"===r.size&&{padding:"8.5px 14px"}))})),kw=(0,Zt.ZP)((function(e){var t=e.className,n=e.label,r=e.notched,i=(0,h.Z)(e,yw),o=null!=n&&""!==n,a=(0,Pt.Z)({},e,{notched:r,withLabel:o});return(0,tn.jsx)(bw,(0,Pt.Z)({"aria-hidden":!0,className:t,ownerState:a},i,{children:(0,tn.jsx)(_w,{ownerState:a,children:o?(0,tn.jsx)("span",{children:n}):mw||(mw=(0,tn.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:function(e,t){return t.notchedOutline}})((function(e){var t=e.theme,n="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)"):n}})),Ew=(0,Zt.ZP)(Q_,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:$_})((function(e){var t=e.theme,n=e.ownerState;return(0,Pt.Z)({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&&(0,o.Z)({"&:-webkit-autofill":{borderRadius:"inherit"}},t.getColorSchemeSelector("dark"),{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}),"small"===n.size&&{padding:"8.5px 14px"},n.multiline&&{padding:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0})})),Rw=t.forwardRef((function(e,n){var r,i,o,a,l,s=(0,It.Z)({props:e,name:"MuiOutlinedInput"}),c=s.components,u=void 0===c?{}:c,d=s.fullWidth,f=void 0!==d&&d,p=s.inputComponent,v=void 0===p?"input":p,m=s.label,g=s.multiline,y=void 0!==g&&g,b=s.notched,_=s.slots,w=void 0===_?{}:_,S=s.type,x=void 0===S?"text":S,C=(0,h.Z)(s,xw),k=function(e){var t=e.classes,n=(0,Mt.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},ww,t);return(0,Pt.Z)({},t,n)}(s),E=B_(),R=F_({props:s,muiFormControl:E,states:["required"]}),O=(0,Pt.Z)({},s,{color:R.color||"primary",disabled:R.disabled,error:R.error,focused:R.focused,formControl:E,fullWidth:f,hiddenLabel:R.hiddenLabel,multiline:y,size:R.size,type:x}),P=null!=(r=null!=(i=w.root)?i:u.Root)?r:Cw,T=null!=(o=null!=(a=w.input)?a:u.Input)?o:Ew;return(0,tn.jsx)(nw,(0,Pt.Z)({slots:{root:P,input:T},renderSuffix:function(e){return(0,tn.jsx)(kw,{ownerState:O,className:k.notchedOutline,label:null!=m&&""!==m&&R.required?l||(l=(0,tn.jsxs)(t.Fragment,{children:[m,"\xa0","*"]})):m,notched:"undefined"!==typeof b?b:Boolean(e.startAdornment||e.filled||e.focused)})},fullWidth:f,inputComponent:v,multiline:y,ref:n,type:x},C,{classes:(0,Pt.Z)({},k,{notchedOutline:null})}))}));Rw.muiName="Input";var Ow=Rw;function Pw(e){return(0,xn.Z)("MuiFormLabel",e)}var Tw=(0,rn.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Mw=["children","className","color","component","disabled","error","filled","focused","required"],Lw=(0,Zt.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return(0,Pt.Z)({},t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled)}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,Pt.Z)({color:(n.vars||n).palette.text.secondary},n.typography.body1,(t={lineHeight:"1.4375em",padding:0,position:"relative"},(0,o.Z)(t,"&.".concat(Tw.focused),{color:(n.vars||n).palette[r.color].main}),(0,o.Z)(t,"&.".concat(Tw.disabled),{color:(n.vars||n).palette.text.disabled}),(0,o.Z)(t,"&.".concat(Tw.error),{color:(n.vars||n).palette.error.main}),t))})),Zw=(0,Zt.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:function(e,t){return t.asterisk}})((function(e){var t=e.theme;return(0,o.Z)({},"&.".concat(Tw.error),{color:(t.vars||t).palette.error.main})})),Iw=t.forwardRef((function(e,t){var n=(0,It.Z)({props:e,name:"MuiFormLabel"}),r=n.children,i=n.className,o=n.component,a=void 0===o?"label":o,l=(0,h.Z)(n,Mw),s=F_({props:n,muiFormControl:B_(),states:["color","required","focused","disabled","error","filled"]}),c=(0,Pt.Z)({},n,{color:s.color||"primary",component:a,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),u=function(e){var t=e.classes,n=e.color,r=e.focused,i=e.disabled,o=e.error,a=e.filled,l=e.required,s={root:["root","color".concat((0,Mn.Z)(n)),i&&"disabled",o&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",o&&"error"]};return(0,Mt.Z)(s,Pw,t)}(c);return(0,tn.jsxs)(Lw,(0,Pt.Z)({as:a,ownerState:c,className:(0,m.Z)(u.root,i),ref:t},l,{children:[r,s.required&&(0,tn.jsxs)(Zw,{ownerState:c,"aria-hidden":!0,className:u.asterisk,children:["\u2009","*"]})]}))}));function Dw(e){return(0,xn.Z)("MuiInputLabel",e)}(0,rn.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var jw=["disableAnimation","margin","shrink","variant","className"],Aw=(0,Zt.ZP)(Iw,{shouldForwardProp:function(e){return(0,Zt.FO)(e)||"classes"===e},name:"MuiInputLabel",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[(0,o.Z)({},"& .".concat(Tw.asterisk),t.asterisk),t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,Pt.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},n.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===n.size&&{transform:"translate(0, 17px) scale(1)"},n.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!n.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===n.variant&&(0,Pt.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(12px, 13px) scale(1)"},n.shrink&&(0,Pt.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===n.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===n.variant&&(0,Pt.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(14px, 9px) scale(1)"},n.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"}))})),Nw=t.forwardRef((function(e,t){var n=(0,It.Z)({name:"MuiInputLabel",props:e}),r=n.disableAnimation,i=void 0!==r&&r,o=n.shrink,a=n.className,l=(0,h.Z)(n,jw),s=B_(),c=o;"undefined"===typeof c&&s&&(c=s.filled||s.focused||s.adornedStart);var u=F_({props:n,muiFormControl:s,states:["size","variant","required"]}),d=(0,Pt.Z)({},n,{disableAnimation:i,formControl:s,shrink:c,size:u.size,variant:u.variant,required:u.required}),f=function(e){var t=e.classes,n=e.formControl,r=e.size,i=e.shrink,o={root:["root",n&&"formControl",!e.disableAnimation&&"animated",i&&"shrink","small"===r&&"sizeSmall",e.variant],asterisk:[e.required&&"asterisk"]},a=(0,Mt.Z)(o,Dw,t);return(0,Pt.Z)({},t,a)}(d);return(0,tn.jsx)(Aw,(0,Pt.Z)({"data-shrink":c,ownerState:d,ref:t,className:(0,m.Z)(f.root,a)},l,{classes:f}))})),Fw=Nw,zw=n(9103);function Bw(e){return(0,xn.Z)("MuiFormControl",e)}(0,rn.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var Hw=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Ww=(0,Zt.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return(0,Pt.Z)({},t.root,t["margin".concat((0,Mn.Z)(n.margin))],n.fullWidth&&t.fullWidth)}})((function(e){var t=e.ownerState;return(0,Pt.Z)({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%"})})),Uw=t.forwardRef((function(e,n){var r=(0,It.Z)({props:e,name:"MuiFormControl"}),i=r.children,o=r.className,a=r.color,l=void 0===a?"primary":a,s=r.component,c=void 0===s?"div":s,d=r.disabled,f=void 0!==d&&d,p=r.error,v=void 0!==p&&p,g=r.focused,y=r.fullWidth,b=void 0!==y&&y,_=r.hiddenLabel,w=void 0!==_&&_,S=r.margin,x=void 0===S?"none":S,C=r.required,k=void 0!==C&&C,E=r.size,R=void 0===E?"medium":E,O=r.variant,P=void 0===O?"outlined":O,T=(0,h.Z)(r,Hw),M=(0,Pt.Z)({},r,{color:l,component:c,disabled:f,error:v,fullWidth:b,hiddenLabel:w,margin:x,required:k,size:R,variant:P}),L=function(e){var t=e.classes,n=e.margin,r=e.fullWidth,i={root:["root","none"!==n&&"margin".concat((0,Mn.Z)(n)),r&&"fullWidth"]};return(0,Mt.Z)(i,Bw,t)}(M),Z=t.useState((function(){var e=!1;return i&&t.Children.forEach(i,(function(t){if((0,zw.Z)(t,["Input","Select"])){var n=(0,zw.Z)(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}})),e})),I=(0,u.Z)(Z,2),D=I[0],j=I[1],A=t.useState((function(){var e=!1;return i&&t.Children.forEach(i,(function(t){(0,zw.Z)(t,["Input","Select"])&&q_(t.props,!0)&&(e=!0)})),e})),N=(0,u.Z)(A,2),F=N[0],z=N[1],B=t.useState(!1),H=(0,u.Z)(B,2),W=H[0],U=H[1];f&&W&&U(!1);var V,q=void 0===g||f?W:g,K=t.useMemo((function(){return{adornedStart:D,setAdornedStart:j,color:l,disabled:f,error:v,filled:F,focused:q,fullWidth:b,hiddenLabel:w,size:R,onBlur:function(){U(!1)},onEmpty:function(){z(!1)},onFilled:function(){z(!0)},onFocus:function(){U(!0)},registerEffect:V,required:k,variant:P}}),[D,l,f,v,F,q,b,w,V,k,R,P]);return(0,tn.jsx)(z_.Provider,{value:K,children:(0,tn.jsx)(Ww,(0,Pt.Z)({as:c,ownerState:M,className:(0,m.Z)(L.root,o),ref:n},T,{children:i}))})})),Vw=Uw;function qw(e){return(0,xn.Z)("MuiFormHelperText",e)}var Kw,Yw=(0,rn.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),Gw=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Xw=(0,Zt.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.size&&t["size".concat((0,Mn.Z)(n.size))],n.contained&&t.contained,n.filled&&t.filled]}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,Pt.Z)({color:(n.vars||n).palette.text.secondary},n.typography.caption,(t={textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0},(0,o.Z)(t,"&.".concat(Yw.disabled),{color:(n.vars||n).palette.text.disabled}),(0,o.Z)(t,"&.".concat(Yw.error),{color:(n.vars||n).palette.error.main}),t),"small"===r.size&&{marginTop:4},r.contained&&{marginLeft:14,marginRight:14})})),$w=t.forwardRef((function(e,t){var n=(0,It.Z)({props:e,name:"MuiFormHelperText"}),r=n.children,i=n.className,o=n.component,a=void 0===o?"p":o,l=(0,h.Z)(n,Gw),s=F_({props:n,muiFormControl:B_(),states:["variant","size","disabled","error","filled","focused","required"]}),c=(0,Pt.Z)({},n,{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}),u=function(e){var t=e.classes,n=e.contained,r=e.size,i=e.disabled,o=e.error,a=e.filled,l=e.focused,s=e.required,c={root:["root",i&&"disabled",o&&"error",r&&"size".concat((0,Mn.Z)(r)),n&&"contained",l&&"focused",a&&"filled",s&&"required"]};return(0,Mt.Z)(c,qw,t)}(c);return(0,tn.jsx)(Xw,(0,Pt.Z)({as:a,ownerState:c,className:(0,m.Z)(u.root,i),ref:t},l,{children:" "===r?Kw||(Kw=(0,tn.jsx)("span",{className:"notranslate",children:"\u200b"})):r}))})),Jw=$w,Qw=(n(8457),n(8301));var eS=t.createContext({});function tS(e){return(0,xn.Z)("MuiList",e)}(0,rn.Z)("MuiList",["root","padding","dense","subheader"]);var nS=["children","className","component","dense","disablePadding","subheader"],rS=(0,Zt.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((function(e){var t=e.ownerState;return(0,Pt.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),iS=t.forwardRef((function(e,n){var r=(0,It.Z)({props:e,name:"MuiList"}),i=r.children,o=r.className,a=r.component,l=void 0===a?"ul":a,s=r.dense,c=void 0!==s&&s,u=r.disablePadding,d=void 0!==u&&u,f=r.subheader,p=(0,h.Z)(r,nS),v=t.useMemo((function(){return{dense:c}}),[c]),g=(0,Pt.Z)({},r,{component:l,dense:c,disablePadding:d}),y=function(e){var t=e.classes,n={root:["root",!e.disablePadding&&"padding",e.dense&&"dense",e.subheader&&"subheader"]};return(0,Mt.Z)(n,tS,t)}(g);return(0,tn.jsx)(eS.Provider,{value:v,children:(0,tn.jsxs)(rS,(0,Pt.Z)({as:l,className:(0,m.Z)(y.root,o),ref:n,ownerState:g},p,{children:[f,i]}))})}));function oS(e){var t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var aS=oS,lS=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function sS(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function cS(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function uS(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function dS(e,t,n,r,i,o){for(var a=!1,l=i(e,t,!!t&&n);l;){if(l===e.firstChild){if(a)return!1;a=!0}var s=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&uS(l,o)&&!s)return l.focus(),!0;l=i(e,l,n)}return!1}var fS=t.forwardRef((function(e,n){var r=e.actions,i=e.autoFocus,o=void 0!==i&&i,a=e.autoFocusItem,l=void 0!==a&&a,s=e.children,c=e.className,u=e.disabledItemsFocusable,d=void 0!==u&&u,f=e.disableListWrap,p=void 0!==f&&f,v=e.onKeyDown,m=e.variant,g=void 0===m?"selectedMenu":m,y=(0,h.Z)(e,lS),b=t.useRef(null),_=t.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,H_.Z)((function(){o&&b.current.focus()}),[o]),t.useImperativeHandle(r,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!b.current.style.width;if(e.clientHeight<b.current.clientHeight&&n){var r="".concat(aS((0,Qw.Z)(e)),"px");b.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,b.current.style.width="calc(100% + ".concat(r,")")}return b.current}}}),[]);var w=(0,Dt.Z)(b,n),S=-1;t.Children.forEach(s,(function(e,n){t.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===S)&&(S=n))}));var x=t.Children.map(s,(function(e,n){if(n===S){var r={};return l&&(r.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===g&&(r.tabIndex=0),t.cloneElement(e,r)}return e}));return(0,tn.jsx)(iS,(0,Pt.Z)({role:"menu",ref:w,className:c,onKeyDown:function(e){var t=b.current,n=e.key,r=(0,Qw.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),dS(t,r,p,d,sS);else if("ArrowUp"===n)e.preventDefault(),dS(t,r,p,d,cS);else if("Home"===n)e.preventDefault(),dS(t,null,p,d,sS);else if("End"===n)e.preventDefault(),dS(t,null,p,d,cS);else if(1===n.length){var i=_.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);var l=r&&!i.repeating&&uS(r,i);i.previousKeyMatched&&(l||dS(t,r,!1,d,sS,i))?e.preventDefault():i.previousKeyMatched=!1}v&&v(e)},tabIndex:o?0:-1},y,{children:x}))})),hS=fS,pS=function(e){return((e<1?5.11916*Math.pow(e,2):4.5*Math.log(e+1)+2)/100).toFixed(2)};function vS(e){return(0,xn.Z)("MuiPaper",e)}(0,rn.Z)("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"]);var mS=["className","component","elevation","square","variant"],gS=(0,Zt.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t["elevation".concat(n.elevation)]]}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,Pt.Z)({backgroundColor:(n.vars||n).palette.background.paper,color:(n.vars||n).palette.text.primary,transition:n.transitions.create("box-shadow")},!r.square&&{borderRadius:n.shape.borderRadius},"outlined"===r.variant&&{border:"1px solid ".concat((n.vars||n).palette.divider)},"elevation"===r.variant&&(0,Pt.Z)({boxShadow:(n.vars||n).shadows[r.elevation]},!n.vars&&"dark"===n.palette.mode&&{backgroundImage:"linear-gradient(".concat((0,Lt.Fq)("#fff",pS(r.elevation)),", ").concat((0,Lt.Fq)("#fff",pS(r.elevation)),")")},n.vars&&{backgroundImage:null==(t=n.vars.overlays)?void 0:t[r.elevation]}))})),yS=t.forwardRef((function(e,t){var n=(0,It.Z)({props:e,name:"MuiPaper"}),r=n.className,i=n.component,o=void 0===i?"div":i,a=n.elevation,l=void 0===a?1:a,s=n.square,c=void 0!==s&&s,u=n.variant,d=void 0===u?"elevation":u,f=(0,h.Z)(n,mS),p=(0,Pt.Z)({},n,{component:o,elevation:l,square:c,variant:d}),v=function(e){var t=e.square,n=e.elevation,r=e.variant,i=e.classes,o={root:["root",r,!t&&"rounded","elevation"===r&&"elevation".concat(n)]};return(0,Mt.Z)(o,vS,i)}(p);return(0,tn.jsx)(gS,(0,Pt.Z)({as:o,ownerState:p,className:(0,m.Z)(v.root,r),ref:t},f))})),bS=yS,_S=n(3199),wS=n(7602),SS=n(7054),xS=n(8949);function CS(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function kS(e){return parseInt((0,M_.Z)(e).getComputedStyle(e).paddingRight,10)||0}function ES(e,t,n,r,i){var o=[t,n].concat((0,v.Z)(r));[].forEach.call(e.children,(function(e){var t=-1===o.indexOf(e),n=!function(e){var t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&CS(e,i)}))}function RS(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function OS(e,t){var n=[],r=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,hr.Z)(e);return t.body===e?(0,M_.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){var i=oS((0,hr.Z)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight="".concat(kS(r)+i,"px");var o=(0,hr.Z)(r).querySelectorAll(".mui-fixed");[].forEach.call(o,(function(e){n.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight="".concat(kS(e)+i,"px")}))}var a;if(r.parentNode instanceof DocumentFragment)a=(0,hr.Z)(r).body;else{var l=r.parentElement,s=(0,M_.Z)(r);a="HTML"===(null==l?void 0:l.nodeName)&&"scroll"===s.getComputedStyle(l).overflowY?l:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return function(){n.forEach((function(e){var t=e.value,n=e.el,r=e.property;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var PS=function(){function e(){G(this,e),this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}return J(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&CS(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);ES(t,e.mount,e.modalRef,r,!0);var i=RS(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}},{key:"mount",value:function(e,t){var n=RS(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=OS(r,t))}},{key:"remove",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.modals.indexOf(e);if(-1===n)return n;var r=RS(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&CS(e.modalRef,t),ES(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{var o=i.modals[i.modals.length-1];o.modalRef&&CS(o.modalRef,!1)}return n}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}(),TS=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function MS(e){var t=[],n=[];return Array.from(e.querySelectorAll(TS)).forEach((function(e,r){var i=function(e){var 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!==i&&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;var t=function(t){return e.ownerDocument.querySelector('input[type="radio"]'.concat(t))},n=t('[name="'.concat(e.name,'"]:checked'));return n||(n=t('[name="'.concat(e.name,'"]'))),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort((function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex})).map((function(e){return e.node})).concat(t)}function LS(){return!0}var ZS=function(e){var n=e.children,r=e.disableAutoFocus,i=void 0!==r&&r,o=e.disableEnforceFocus,a=void 0!==o&&o,l=e.disableRestoreFocus,s=void 0!==l&&l,c=e.getTabbable,u=void 0===c?MS:c,d=e.isEnabled,f=void 0===d?LS:d,h=e.open,p=t.useRef(!1),v=t.useRef(null),m=t.useRef(null),g=t.useRef(null),y=t.useRef(null),b=t.useRef(!1),_=t.useRef(null),w=(0,dr.Z)(n.ref,_),S=t.useRef(null);t.useEffect((function(){h&&_.current&&(b.current=!i)}),[i,h]),t.useEffect((function(){if(h&&_.current){var e=(0,hr.Z)(_.current);return _.current.contains(e.activeElement)||(_.current.hasAttribute("tabIndex")||_.current.setAttribute("tabIndex","-1"),b.current&&_.current.focus()),function(){s||(g.current&&g.current.focus&&(p.current=!0,g.current.focus()),g.current=null)}}}),[h]),t.useEffect((function(){if(h&&_.current){var e=(0,hr.Z)(_.current),t=function(t){var n=_.current;if(null!==n)if(e.hasFocus()&&!a&&f()&&!p.current){if(!n.contains(e.activeElement)){if(t&&y.current!==t.target||e.activeElement!==y.current)y.current=null;else if(null!==y.current)return;if(!b.current)return;var r=[];if(e.activeElement!==v.current&&e.activeElement!==m.current||(r=u(_.current)),r.length>0){var i,o,l=Boolean((null==(i=S.current)?void 0:i.shiftKey)&&"Tab"===(null==(o=S.current)?void 0:o.key)),s=r[0],c=r[r.length-1];"string"!==typeof s&&"string"!==typeof c&&(l?c.focus():s.focus())}else n.focus()}}else p.current=!1},n=function(t){S.current=t,!a&&f()&&"Tab"===t.key&&e.activeElement===_.current&&t.shiftKey&&(p.current=!0,m.current&&m.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);var r=setInterval((function(){e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return function(){clearInterval(r),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}}),[i,a,s,f,h,u]);var x=function(e){null===g.current&&(g.current=e.relatedTarget),b.current=!0};return(0,tn.jsxs)(t.Fragment,{children:[(0,tn.jsx)("div",{tabIndex:h?0:-1,onFocus:x,ref:v,"data-testid":"sentinelStart"}),t.cloneElement(n,{ref:w,onFocus:function(e){null===g.current&&(g.current=e.relatedTarget),b.current=!0,y.current=e.target;var t=n.props.onFocus;t&&t(e)}}),(0,tn.jsx)("div",{tabIndex:h?0:-1,onFocus:x,ref:m,"data-testid":"sentinelEnd"})]})};function IS(e){return(0,xn.Z)("MuiModal",e)}(0,rn.Z)("MuiModal",["root","hidden"]);var DS=["children","classes","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"];var jS=new PS,AS=t.forwardRef((function(e,n){var r,i,o=e.children,a=e.classes,l=e.closeAfterTransition,s=void 0!==l&&l,c=e.component,d=e.container,f=e.disableAutoFocus,p=void 0!==f&&f,v=e.disableEnforceFocus,m=void 0!==v&&v,g=e.disableEscapeKeyDown,y=void 0!==g&&g,b=e.disablePortal,_=void 0!==b&&b,w=e.disableRestoreFocus,S=void 0!==w&&w,x=e.disableScrollLock,C=void 0!==x&&x,k=e.hideBackdrop,E=void 0!==k&&k,R=e.keepMounted,O=void 0!==R&&R,P=e.manager,T=void 0===P?jS:P,M=e.onBackdropClick,L=e.onClose,Z=e.onKeyDown,I=e.open,D=e.onTransitionEnter,j=e.onTransitionExited,A=e.slotProps,N=void 0===A?{}:A,F=e.slots,z=void 0===F?{}:F,B=(0,h.Z)(e,DS),H=t.useState(!I),W=(0,u.Z)(H,2),U=W[0],V=W[1],q=t.useRef({}),K=t.useRef(null),Y=t.useRef(null),G=(0,dr.Z)(Y,n),X=function(e){return!!e&&e.props.hasOwnProperty("in")}(o),$=null==(r=e["aria-hidden"])||r,J=function(){return q.current.modalRef=Y.current,q.current.mountNode=K.current,q.current},Q=function(){T.mount(J(),{disableScrollLock:C}),Y.current&&(Y.current.scrollTop=0)},ee=(0,SS.Z)((function(){var e=function(e){return"function"===typeof e?e():e}(d)||(0,hr.Z)(K.current).body;T.add(J(),e),Y.current&&Q()})),te=t.useCallback((function(){return T.isTopModal(J())}),[T]),ne=(0,SS.Z)((function(e){K.current=e,e&&Y.current&&(I&&te()?Q():CS(Y.current,$))})),re=t.useCallback((function(){T.remove(J(),$)}),[T,$]);t.useEffect((function(){return function(){re()}}),[re]),t.useEffect((function(){I?ee():X&&s||re()}),[I,re,X,s,ee]);var ie=(0,Pt.Z)({},e,{classes:a,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:y,disablePortal:_,disableRestoreFocus:S,disableScrollLock:C,exited:U,hideBackdrop:E,keepMounted:O}),oe=function(e){var t=e.open,n=e.exited,r=e.classes,i={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,Mt.Z)(i,IS,r)}(ie),ae={};void 0===o.props.tabIndex&&(ae.tabIndex="-1"),X&&(ae.onEnter=(0,xS.Z)((function(){V(!1),D&&D()}),o.props.onEnter),ae.onExited=(0,xS.Z)((function(){V(!0),j&&j(),s&&re()}),o.props.onExited));var le=null!=(i=null!=c?c:z.root)?i:"div",se=Hi({elementType:le,externalSlotProps:N.root,externalForwardedProps:B,additionalProps:{ref:G,role:"presentation",onKeyDown:function(e){Z&&Z(e),"Escape"===e.key&&te()&&(y||(e.stopPropagation(),L&&L(e,"escapeKeyDown")))}},className:oe.root,ownerState:ie}),ce=z.backdrop,ue=Hi({elementType:ce,externalSlotProps:N.backdrop,additionalProps:{"aria-hidden":!0,onClick:function(e){e.target===e.currentTarget&&(M&&M(e),L&&L(e,"backdropClick"))},open:I},className:oe.backdrop,ownerState:ie});return O||I||X&&!U?(0,tn.jsx)(ji,{ref:ne,container:d,disablePortal:_,children:(0,tn.jsxs)(le,(0,Pt.Z)({},se,{children:[!E&&ce?(0,tn.jsx)(ce,(0,Pt.Z)({},ue)):null,(0,tn.jsx)(ZS,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:S,isEnabled:te,open:I,children:t.cloneElement(o,ae)})]}))}):null})),NS=AS,FS=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],zS={entering:{opacity:1},entered:{opacity:1}},BS=t.forwardRef((function(e,n){var r=qn(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},o=e.addEndListener,a=e.appear,l=void 0===a||a,s=e.children,c=e.easing,u=e.in,d=e.onEnter,f=e.onEntered,p=e.onEntering,v=e.onExit,m=e.onExited,g=e.onExiting,y=e.style,b=e.timeout,_=void 0===b?i:b,w=e.TransitionComponent,S=void 0===w?nr:w,x=(0,h.Z)(e,FS),C=t.useRef(null),k=(0,Dt.Z)(C,s.ref,n),E=function(e){return function(t){if(e){var n=C.current;void 0===t?e(n):e(n,t)}}},R=E(p),O=E((function(e,t){rr(e);var n=ir({style:y,timeout:_,easing:c},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),d&&d(e,t)})),P=E(f),T=E(g),M=E((function(e){var t=ir({style:y,timeout:_,easing:c},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),v&&v(e)})),L=E(m);return(0,tn.jsx)(S,(0,Pt.Z)({appear:l,in:u,nodeRef:C,onEnter:O,onEntered:P,onEntering:R,onExit:M,onExited:L,onExiting:T,addEndListener:function(e){o&&o(C.current,e)},timeout:_},x,{children:function(e,n){return t.cloneElement(s,(0,Pt.Z)({style:(0,Pt.Z)({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},zS[e],y,s.props.style),ref:k},n))}}))}));function HS(e){return(0,xn.Z)("MuiBackdrop",e)}(0,rn.Z)("MuiBackdrop",["root","invisible"]);var WS=["children","component","components","componentsProps","className","invisible","open","slotProps","slots","transitionDuration","TransitionComponent"],US=(0,Zt.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.invisible&&t.invisible]}})((function(e){var t=e.ownerState;return(0,Pt.Z)({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"})})),VS=t.forwardRef((function(e,t){var n,r,i,o=(0,It.Z)({props:e,name:"MuiBackdrop"}),a=o.children,l=o.component,s=void 0===l?"div":l,c=o.components,u=void 0===c?{}:c,d=o.componentsProps,f=void 0===d?{}:d,p=o.className,v=o.invisible,g=void 0!==v&&v,y=o.open,b=o.slotProps,_=void 0===b?{}:b,w=o.slots,S=void 0===w?{}:w,x=o.transitionDuration,C=o.TransitionComponent,k=void 0===C?BS:C,E=(0,h.Z)(o,WS),R=(0,Pt.Z)({},o,{component:s,invisible:g}),O=function(e){var t=e.classes,n={root:["root",e.invisible&&"invisible"]};return(0,Mt.Z)(n,HS,t)}(R),P=null!=(n=_.root)?n:f.root;return(0,tn.jsx)(k,(0,Pt.Z)({in:y,timeout:x},E,{children:(0,tn.jsx)(US,(0,Pt.Z)({"aria-hidden":!0},P,{as:null!=(r=null!=(i=S.root)?i:u.Root)?r:s,className:(0,m.Z)(O.root,p,null==P?void 0:P.className),ownerState:(0,Pt.Z)({},R,null==P?void 0:P.ownerState),classes:O,ref:t,children:a}))}))})),qS=VS,KS=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],YS=(0,Zt.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.open&&n.exited&&t.hidden]}})((function(e){var t=e.theme,n=e.ownerState;return(0,Pt.Z)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"})})),GS=(0,Zt.ZP)(qS,{name:"MuiModal",slot:"Backdrop",overridesResolver:function(e,t){return t.backdrop}})({zIndex:-1}),XS=t.forwardRef((function(e,n){var r,i,o,a,l,s,c=(0,It.Z)({name:"MuiModal",props:e}),d=c.BackdropComponent,f=void 0===d?GS:d,p=c.BackdropProps,v=c.closeAfterTransition,m=void 0!==v&&v,g=c.children,y=c.component,b=c.components,_=void 0===b?{}:b,w=c.componentsProps,S=void 0===w?{}:w,x=c.disableAutoFocus,C=void 0!==x&&x,k=c.disableEnforceFocus,E=void 0!==k&&k,R=c.disableEscapeKeyDown,O=void 0!==R&&R,P=c.disablePortal,T=void 0!==P&&P,M=c.disableRestoreFocus,L=void 0!==M&&M,Z=c.disableScrollLock,I=void 0!==Z&&Z,D=c.hideBackdrop,j=void 0!==D&&D,A=c.keepMounted,N=void 0!==A&&A,F=c.slotProps,z=c.slots,B=c.theme,H=(0,h.Z)(c,KS),W=t.useState(!0),U=(0,u.Z)(W,2),V=U[0],q=U[1],K={closeAfterTransition:m,disableAutoFocus:C,disableEnforceFocus:E,disableEscapeKeyDown:O,disablePortal:T,disableRestoreFocus:L,disableScrollLock:I,hideBackdrop:j,keepMounted:N},Y=(0,Pt.Z)({},c,K,{exited:V}),G=function(e){return e.classes}(Y),X=null!=(r=null!=(i=null==z?void 0:z.root)?i:_.Root)?r:YS,$=null!=(o=null!=(a=null==z?void 0:z.backdrop)?a:_.Backdrop)?o:f,J=null!=(l=null==F?void 0:F.root)?l:S.root,Q=null!=(s=null==F?void 0:F.backdrop)?s:S.backdrop;return(0,tn.jsx)(NS,(0,Pt.Z)({slots:{root:X,backdrop:$},slotProps:{root:function(){return(0,Pt.Z)({},zi(J,Y),!Hn(X)&&{as:y,theme:B})},backdrop:function(){return(0,Pt.Z)({},p,zi(Q,Y))}},onTransitionEnter:function(){return q(!1)},onTransitionExited:function(){return q(!0)},ref:n},H,{classes:G},K,{children:g}))})),$S=XS;function JS(e){return(0,xn.Z)("MuiPopover",e)}(0,rn.Z)("MuiPopover",["root","paper"]);var QS=["onEntering"],ex=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function tx(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function nx(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function rx(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function ix(e){return"function"===typeof e?e():e}var ox=(0,Zt.ZP)($S,{name:"MuiPopover",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),ax=(0,Zt.ZP)(bS,{name:"MuiPopover",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),lx=t.forwardRef((function(e,n){var r=(0,It.Z)({props:e,name:"MuiPopover"}),i=r.action,o=r.anchorEl,a=r.anchorOrigin,l=void 0===a?{vertical:"top",horizontal:"left"}:a,s=r.anchorPosition,c=r.anchorReference,d=void 0===c?"anchorEl":c,f=r.children,p=r.className,v=r.container,g=r.elevation,y=void 0===g?8:g,b=r.marginThreshold,_=void 0===b?16:b,w=r.open,S=r.PaperProps,x=void 0===S?{}:S,C=r.transformOrigin,k=void 0===C?{vertical:"top",horizontal:"left"}:C,E=r.TransitionComponent,R=void 0===E?ur:E,O=r.transitionDuration,P=void 0===O?"auto":O,T=r.TransitionProps,M=(void 0===T?{}:T).onEntering,L=(0,h.Z)(r.TransitionProps,QS),Z=(0,h.Z)(r,ex),I=t.useRef(),D=(0,Dt.Z)(I,x.ref),j=(0,Pt.Z)({},r,{anchorOrigin:l,anchorReference:d,elevation:y,marginThreshold:_,PaperProps:x,transformOrigin:k,TransitionComponent:R,transitionDuration:P,TransitionProps:L}),A=function(e){var t=e.classes;return(0,Mt.Z)({root:["root"],paper:["paper"]},JS,t)}(j),N=t.useCallback((function(){if("anchorPosition"===d)return s;var e=ix(o),t=(e&&1===e.nodeType?e:(0,Qw.Z)(I.current).body).getBoundingClientRect();return{top:t.top+tx(t,l.vertical),left:t.left+nx(t,l.horizontal)}}),[o,l.horizontal,l.vertical,s,d]),F=t.useCallback((function(e){return{vertical:tx(e,k.vertical),horizontal:nx(e,k.horizontal)}}),[k.horizontal,k.vertical]),z=t.useCallback((function(e){var t={width:e.offsetWidth,height:e.offsetHeight},n=F(t);if("none"===d)return{top:null,left:null,transformOrigin:rx(n)};var r=N(),i=r.top-n.vertical,a=r.left-n.horizontal,l=i+t.height,s=a+t.width,c=(0,wS.Z)(ix(o)),u=c.innerHeight-_,f=c.innerWidth-_;if(i<_){var h=i-_;i-=h,n.vertical+=h}else if(l>u){var p=l-u;i-=p,n.vertical+=p}if(a<_){var v=a-_;a-=v,n.horizontal+=v}else if(s>f){var m=s-f;a-=m,n.horizontal+=m}return{top:"".concat(Math.round(i),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:rx(n)}}),[o,d,N,F,_]),B=t.useState(w),H=(0,u.Z)(B,2),W=H[0],U=H[1],V=t.useCallback((function(){var e=I.current;if(e){var t=z(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,U(!0)}}),[z]);t.useEffect((function(){w&&V()})),t.useImperativeHandle(i,(function(){return w?{updatePosition:function(){V()}}:null}),[w,V]),t.useEffect((function(){if(w){var e=(0,_S.Z)((function(){V()})),t=(0,wS.Z)(o);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[o,w,V]);var q=P;"auto"!==P||R.muiSupportAuto||(q=void 0);var K=v||(o?(0,Qw.Z)(ix(o)).body:void 0);return(0,tn.jsx)(ox,(0,Pt.Z)({BackdropProps:{invisible:!0},className:(0,m.Z)(A.root,p),container:K,open:w,ref:n,ownerState:j},Z,{children:(0,tn.jsx)(R,(0,Pt.Z)({appear:!0,in:w,onEntering:function(e,t){M&&M(e,t),V()},onExited:function(){U(!1)},timeout:q},L,{children:(0,tn.jsx)(ax,(0,Pt.Z)({elevation:y},x,{ref:D,className:(0,m.Z)(A.paper,x.className)},W?void 0:{style:(0,Pt.Z)({},x.style,{opacity:0})},{ownerState:j,children:f}))}))}))})),sx=lx;function cx(e){return(0,xn.Z)("MuiMenu",e)}(0,rn.Z)("MuiMenu",["root","paper","list"]);var ux=["onEntering"],dx=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],fx={vertical:"top",horizontal:"right"},hx={vertical:"top",horizontal:"left"},px=(0,Zt.ZP)(sx,{shouldForwardProp:function(e){return(0,Zt.FO)(e)||"classes"===e},name:"MuiMenu",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),vx=(0,Zt.ZP)(bS,{name:"MuiMenu",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),mx=(0,Zt.ZP)(hS,{name:"MuiMenu",slot:"List",overridesResolver:function(e,t){return t.list}})({outline:0}),gx=t.forwardRef((function(e,n){var r=(0,It.Z)({props:e,name:"MuiMenu"}),i=r.autoFocus,o=void 0===i||i,a=r.children,l=r.disableAutoFocusItem,s=void 0!==l&&l,c=r.MenuListProps,u=void 0===c?{}:c,d=r.onClose,f=r.open,p=r.PaperProps,v=void 0===p?{}:p,g=r.PopoverClasses,y=r.transitionDuration,b=void 0===y?"auto":y,_=r.TransitionProps,w=(void 0===_?{}:_).onEntering,S=r.variant,x=void 0===S?"selectedMenu":S,C=(0,h.Z)(r.TransitionProps,ux),k=(0,h.Z)(r,dx),E=qn(),R="rtl"===E.direction,O=(0,Pt.Z)({},r,{autoFocus:o,disableAutoFocusItem:s,MenuListProps:u,onEntering:w,PaperProps:v,transitionDuration:b,TransitionProps:C,variant:x}),P=function(e){var t=e.classes;return(0,Mt.Z)({root:["root"],paper:["paper"],list:["list"]},cx,t)}(O),T=o&&!s&&f,M=t.useRef(null),L=-1;return t.Children.map(a,(function(e,n){t.isValidElement(e)&&(e.props.disabled||("selectedMenu"===x&&e.props.selected||-1===L)&&(L=n))})),(0,tn.jsx)(px,(0,Pt.Z)({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:R?"right":"left"},transformOrigin:R?fx:hx,PaperProps:(0,Pt.Z)({component:vx},v,{classes:(0,Pt.Z)({},v.classes,{root:P.paper})}),className:P.root,open:f,ref:n,transitionDuration:b,TransitionProps:(0,Pt.Z)({onEntering:function(e,t){M.current&&M.current.adjustStyleForScrollbar(e,E),w&&w(e,t)}},C),ownerState:O},k,{classes:g,children:(0,tn.jsx)(mx,(0,Pt.Z)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:M,autoFocus:o&&(-1===L||s),autoFocusItem:T,variant:x},u,{className:(0,m.Z)(P.list,u.className),children:a}))}))})),yx=gx;function bx(e){return(0,xn.Z)("MuiNativeSelect",e)}var _x=(0,rn.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),wx=["className","disabled","IconComponent","inputRef","variant"],Sx=function(e){var t,n=e.ownerState,r=e.theme;return(0,Pt.Z)((t={MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,Pt.Z)({},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"}},(0,o.Z)(t,"&.".concat(_x.disabled),{cursor:"default"}),(0,o.Z)(t,"&[multiple]",{height:"auto"}),(0,o.Z)(t,"&:not([multiple]) option, &:not([multiple]) optgroup",{backgroundColor:(r.vars||r).palette.background.paper}),(0,o.Z)(t,"&&&",{paddingRight:24,minWidth:16}),t),"filled"===n.variant&&{"&&&":{paddingRight:32}},"outlined"===n.variant&&{borderRadius:(r.vars||r).shape.borderRadius,"&:focus":{borderRadius:(r.vars||r).shape.borderRadius},"&&&":{paddingRight:32}})},xx=(0,Zt.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Zt.FO,overridesResolver:function(e,t){var n=e.ownerState;return[t.select,t[n.variant],(0,o.Z)({},"&.".concat(_x.multiple),t.multiple)]}})(Sx),Cx=function(e){var t=e.ownerState,n=e.theme;return(0,Pt.Z)((0,o.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(n.vars||n).palette.action.active},"&.".concat(_x.disabled),{color:(n.vars||n).palette.action.disabled}),t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},kx=(0,Zt.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:function(e,t){var n=e.ownerState;return[t.icon,n.variant&&t["icon".concat((0,Mn.Z)(n.variant))],n.open&&t.iconOpen]}})(Cx),Ex=t.forwardRef((function(e,n){var r=e.className,i=e.disabled,o=e.IconComponent,a=e.inputRef,l=e.variant,s=void 0===l?"standard":l,c=(0,h.Z)(e,wx),u=(0,Pt.Z)({},e,{disabled:i,variant:s}),d=function(e){var t=e.classes,n=e.variant,r=e.disabled,i=e.multiple,o=e.open,a={select:["select",n,r&&"disabled",i&&"multiple"],icon:["icon","icon".concat((0,Mn.Z)(n)),o&&"iconOpen",r&&"disabled"]};return(0,Mt.Z)(a,bx,t)}(u);return(0,tn.jsxs)(t.Fragment,{children:[(0,tn.jsx)(xx,(0,Pt.Z)({ownerState:u,className:(0,m.Z)(d.select,r),disabled:i,ref:a||n},c)),e.multiple?null:(0,tn.jsx)(kx,{as:o,ownerState:u,className:d.icon})]})})),Rx=Ex;function Ox(e){return(0,xn.Z)("MuiSelect",e)}var Px,Tx=(0,rn.Z)("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),Mx=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Lx=(0,Zt.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:function(e,t){var n=e.ownerState;return[(0,o.Z)({},"&.".concat(Tx.select),t.select),(0,o.Z)({},"&.".concat(Tx.select),t[n.variant]),(0,o.Z)({},"&.".concat(Tx.multiple),t.multiple)]}})(Sx,(0,o.Z)({},"&.".concat(Tx.select),{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"})),Zx=(0,Zt.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:function(e,t){var n=e.ownerState;return[t.icon,n.variant&&t["icon".concat((0,Mn.Z)(n.variant))],n.open&&t.iconOpen]}})(Cx),Ix=(0,Zt.ZP)("input",{shouldForwardProp:function(e){return(0,Zt.Dz)(e)&&"classes"!==e},name:"MuiSelect",slot:"NativeInput",overridesResolver:function(e,t){return t.nativeInput}})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Dx(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function jx(e){return null==e||"string"===typeof e&&!e.trim()}var Ax,Nx,Fx=t.forwardRef((function(e,n){var r=e["aria-describedby"],i=e["aria-label"],o=e.autoFocus,a=e.autoWidth,l=e.children,s=e.className,c=e.defaultOpen,d=e.defaultValue,f=e.disabled,p=e.displayEmpty,v=e.IconComponent,g=e.inputRef,y=e.labelId,b=e.MenuProps,_=void 0===b?{}:b,w=e.multiple,S=e.name,x=e.onBlur,C=e.onChange,k=e.onClose,E=e.onFocus,R=e.onOpen,O=e.open,P=e.readOnly,T=e.renderValue,M=e.SelectDisplayProps,L=void 0===M?{}:M,Z=e.tabIndex,I=e.value,D=e.variant,j=void 0===D?"standard":D,A=(0,h.Z)(e,Mx),N=(0,to.Z)({controlled:I,default:d,name:"Select"}),F=(0,u.Z)(N,2),z=F[0],B=F[1],H=(0,to.Z)({controlled:O,default:c,name:"Select"}),W=(0,u.Z)(H,2),U=W[0],V=W[1],q=t.useRef(null),K=t.useRef(null),Y=t.useState(null),G=(0,u.Z)(Y,2),X=G[0],$=G[1],J=t.useRef(null!=O).current,Q=t.useState(),ee=(0,u.Z)(Q,2),te=ee[0],ne=ee[1],re=(0,Dt.Z)(n,g),ie=t.useCallback((function(e){K.current=e,e&&$(e)}),[]),oe=null==X?void 0:X.parentNode;t.useImperativeHandle(re,(function(){return{focus:function(){K.current.focus()},node:q.current,value:z}}),[z]),t.useEffect((function(){c&&U&&X&&!J&&(ne(a?null:oe.clientWidth),K.current.focus())}),[X,a]),t.useEffect((function(){o&&K.current.focus()}),[o]),t.useEffect((function(){if(y){var e=(0,Qw.Z)(K.current).getElementById(y);if(e){var t=function(){getSelection().isCollapsed&&K.current.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[y]);var ae,le,se=function(e,t){e?R&&R(t):k&&k(t),J||(ne(a?null:oe.clientWidth),V(e))},ce=t.Children.toArray(l),ue=function(e){return function(t){var n;if(t.currentTarget.hasAttribute("tabindex")){if(w){n=Array.isArray(z)?z.slice():[];var r=z.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),z!==n&&(B(n),C)){var i=t.nativeEvent||t,o=new i.constructor(i.type,i);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:S}}),C(o,e)}w||se(!1,t)}}},de=null!==X&&U;delete A["aria-invalid"];var fe=[],he=!1;(q_({value:z})||p)&&(T?ae=T(z):he=!0);var pe=ce.map((function(e,n,r){var i,o,a,l,s;if(!t.isValidElement(e))return null;if(w){if(!Array.isArray(z))throw new Error((0,T_.Z)(2));s=z.some((function(t){return Dx(t,e.props.value)})),s&&he&&fe.push(e.props.children)}else(s=Dx(z,e.props.value))&&he&&(le=e.props.children);if(s&&!0,void 0===e.props.value)return t.cloneElement(e,{"aria-readonly":!0,role:"option"});return t.cloneElement(e,{"aria-selected":s?"true":"false",onClick:ue(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:void 0===(null==(i=r[0])||null==(o=i.props)?void 0:o.value)||!0===(null==(a=r[0])||null==(l=a.props)?void 0:l.disabled)?function(){if(z)return s;var t=r.find((function(e){var t;return void 0!==(null==e||null==(t=e.props)?void 0:t.value)&&!0!==e.props.disabled}));return e===t||s}():s,value:void 0,"data-value":e.props.value})}));he&&(ae=w?0===fe.length?null:fe.reduce((function(e,t,n){return e.push(t),n<fe.length-1&&e.push(", "),e}),[]):le);var ve,me=te;!a&&J&&X&&(me=oe.clientWidth),ve="undefined"!==typeof Z?Z:f?null:0;var ge=L.id||(S?"mui-component-select-".concat(S):void 0),ye=(0,Pt.Z)({},e,{variant:j,value:z,open:de}),be=function(e){var t=e.classes,n=e.variant,r=e.disabled,i=e.multiple,o=e.open,a={select:["select",n,r&&"disabled",i&&"multiple"],icon:["icon","icon".concat((0,Mn.Z)(n)),o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return(0,Mt.Z)(a,Ox,t)}(ye);return(0,tn.jsxs)(t.Fragment,{children:[(0,tn.jsx)(Lx,(0,Pt.Z)({ref:ie,tabIndex:ve,role:"button","aria-disabled":f?"true":void 0,"aria-expanded":de?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[y,ge].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:function(e){if(!P){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),se(!0,e))}},onMouseDown:f||P?null:function(e){0===e.button&&(e.preventDefault(),K.current.focus(),se(!0,e))},onBlur:function(e){!de&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:z,name:S}}),x(e))},onFocus:E},L,{ownerState:ye,className:(0,m.Z)(L.className,be.select,s),id:ge,children:jx(ae)?Px||(Px=(0,tn.jsx)("span",{className:"notranslate",children:"\u200b"})):ae})),(0,tn.jsx)(Ix,(0,Pt.Z)({value:Array.isArray(z)?z.join(","):z,name:S,ref:q,"aria-hidden":!0,onChange:function(e){var t=ce.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=ce[t];B(n.props.value),C&&C(e,n)}},tabIndex:-1,disabled:f,className:be.nativeInput,autoFocus:o,ownerState:ye},A)),(0,tn.jsx)(Zx,{as:v,className:be.icon,ownerState:ye}),(0,tn.jsx)(yx,(0,Pt.Z)({id:"menu-".concat(S||""),anchorEl:oe,open:de,onClose:function(e){se(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},_,{MenuListProps:(0,Pt.Z)({"aria-labelledby":y,role:"listbox",disableListWrap:!0},_.MenuListProps),PaperProps:(0,Pt.Z)({},_.PaperProps,{style:(0,Pt.Z)({minWidth:me},null!=_.PaperProps?_.PaperProps.style:null)}),children:pe}))]})})),zx=Fx,Bx=n(9201),Hx=(0,Bx.Z)((0,tn.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Wx=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Ux={name:"MuiSelect",overridesResolver:function(e,t){return t.root},shouldForwardProp:function(e){return(0,Zt.FO)(e)&&"variant"!==e},slot:"Root"},Vx=(0,Zt.ZP)(cw,Ux)(""),qx=(0,Zt.ZP)(Ow,Ux)(""),Kx=(0,Zt.ZP)(gw,Ux)(""),Yx=t.forwardRef((function(e,n){var r=(0,It.Z)({name:"MuiSelect",props:e}),i=r.autoWidth,o=void 0!==i&&i,a=r.children,l=r.classes,s=void 0===l?{}:l,c=r.className,u=r.defaultOpen,d=void 0!==u&&u,f=r.displayEmpty,p=void 0!==f&&f,v=r.IconComponent,g=void 0===v?Hx:v,y=r.id,b=r.input,_=r.inputProps,w=r.label,S=r.labelId,x=r.MenuProps,C=r.multiple,k=void 0!==C&&C,E=r.native,R=void 0!==E&&E,O=r.onClose,P=r.onOpen,T=r.open,M=r.renderValue,L=r.SelectDisplayProps,Z=r.variant,I=void 0===Z?"outlined":Z,D=(0,h.Z)(r,Wx),j=R?Rx:zx,A=F_({props:r,muiFormControl:B_(),states:["variant"]}).variant||I,N=b||{standard:Ax||(Ax=(0,tn.jsx)(Vx,{})),outlined:(0,tn.jsx)(qx,{label:w}),filled:Nx||(Nx=(0,tn.jsx)(Kx,{}))}[A],F=function(e){return e.classes}((0,Pt.Z)({},r,{variant:A,classes:s})),z=(0,Dt.Z)(n,N.ref);return(0,tn.jsx)(t.Fragment,{children:t.cloneElement(N,(0,Pt.Z)({inputComponent:j,inputProps:(0,Pt.Z)({children:a,IconComponent:g,variant:A,type:void 0,multiple:k},R?{id:y}:{autoWidth:o,defaultOpen:d,displayEmpty:p,labelId:S,MenuProps:x,onClose:O,onOpen:P,open:T,renderValue:M,SelectDisplayProps:(0,Pt.Z)({id:y},L)},_,{classes:_?(0,P_.Z)(F,_.classes):F},b?b.props.inputProps:{})},k&&R&&"outlined"===A?{notched:!0}:{},{ref:z,className:(0,m.Z)(N.props.className,c)},!b&&{variant:A},D))})}));Yx.muiName="Select";var Gx=Yx;function Xx(e){return(0,xn.Z)("MuiTextField",e)}(0,rn.Z)("MuiTextField",["root"]);var $x=["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"],Jx={standard:cw,filled:gw,outlined:Ow},Qx=(0,Zt.ZP)(Vw,{name:"MuiTextField",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),eC=t.forwardRef((function(e,t){var n=(0,It.Z)({props:e,name:"MuiTextField"}),r=n.autoComplete,i=n.autoFocus,o=void 0!==i&&i,a=n.children,l=n.className,s=n.color,c=void 0===s?"primary":s,u=n.defaultValue,d=n.disabled,f=void 0!==d&&d,p=n.error,v=void 0!==p&&p,g=n.FormHelperTextProps,y=n.fullWidth,b=void 0!==y&&y,_=n.helperText,w=n.id,S=n.InputLabelProps,x=n.inputProps,C=n.InputProps,k=n.inputRef,E=n.label,R=n.maxRows,O=n.minRows,P=n.multiline,T=void 0!==P&&P,M=n.name,L=n.onBlur,Z=n.onChange,I=n.onFocus,D=n.placeholder,j=n.required,A=void 0!==j&&j,N=n.rows,F=n.select,z=void 0!==F&&F,B=n.SelectProps,H=n.type,W=n.value,U=n.variant,V=void 0===U?"outlined":U,q=(0,h.Z)(n,$x),K=(0,Pt.Z)({},n,{autoFocus:o,color:c,disabled:f,error:v,fullWidth:b,multiline:T,required:A,select:z,variant:V}),Y=function(e){var t=e.classes;return(0,Mt.Z)({root:["root"]},Xx,t)}(K);var G={};"outlined"===V&&(S&&"undefined"!==typeof S.shrink&&(G.notched=S.shrink),G.label=E),z&&(B&&B.native||(G.id=void 0),G["aria-describedby"]=void 0);var X=(0,O_.Z)(w),$=_&&X?"".concat(X,"-helper-text"):void 0,J=E&&X?"".concat(X,"-label"):void 0,Q=Jx[V],ee=(0,tn.jsx)(Q,(0,Pt.Z)({"aria-describedby":$,autoComplete:r,autoFocus:o,defaultValue:u,fullWidth:b,multiline:T,name:M,rows:N,maxRows:R,minRows:O,type:H,value:W,id:X,inputRef:k,onBlur:L,onChange:Z,onFocus:I,placeholder:D,inputProps:x},G,C));return(0,tn.jsxs)(Qx,(0,Pt.Z)({className:(0,m.Z)(Y.root,l),disabled:f,error:v,fullWidth:b,ref:t,required:A,color:c,variant:V,ownerState:K},q,{children:[null!=E&&""!==E&&(0,tn.jsx)(Fw,(0,Pt.Z)({htmlFor:X,id:J},S,{children:E})),z?(0,tn.jsx)(Gx,(0,Pt.Z)({"aria-describedby":$,id:X,labelId:J,value:W,input:ee},B,{children:a})):ee,_&&(0,tn.jsx)(Jw,(0,Pt.Z)({id:$},g,{children:_}))]}))})),tC=eC,nC=Ro("check","IconCheck",[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]]),rC=Ro("x","IconX",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]]),iC=Ro("trash-x","IconTrashX",[["path",{d:"M4 7h16",key:"svg-0"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-1"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-2"}],["path",{d:"M10 12l4 4m0 -4l-4 4",key:"svg-3"}]]);function oC(e,t){return function(){return e.apply(t,arguments)}}var aC=Object.prototype.toString,lC=Object.getPrototypeOf,sC=function(e){return function(t){var n=aC.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null)),cC=function(e){return e=e.toLowerCase(),function(t){return sC(t)===e}},uC=function(e){return function(t){return typeof t===e}},dC=Array.isArray,fC=uC("undefined");var hC=cC("ArrayBuffer");var pC=uC("string"),vC=uC("function"),mC=uC("number"),gC=function(e){return null!==e&&"object"===typeof e},yC=function(e){if("object"!==sC(e))return!1;var t=lC(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},bC=cC("Date"),_C=cC("File"),wC=cC("Blob"),SC=cC("FileList"),xC=cC("URLSearchParams");function CC(e,t){var n,r,i=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,o=void 0!==i&&i;if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),dC(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{var a,l=o?Object.getOwnPropertyNames(e):Object.keys(e),s=l.length;for(n=0;n<s;n++)a=l[n],t.call(null,e[a],a,e)}}function kC(e,t){t=t.toLowerCase();for(var n,r=Object.keys(e),i=r.length;i-- >0;)if(t===(n=r[i]).toLowerCase())return n;return null}var EC="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,RC=function(e){return!fC(e)&&e!==EC};var OC,PC=(OC="undefined"!==typeof Uint8Array&&lC(Uint8Array),function(e){return OC&&e instanceof OC}),TC=cC("HTMLFormElement"),MC=function(e){var t=Object.prototype.hasOwnProperty;return function(e,n){return t.call(e,n)}}(),LC=cC("RegExp"),ZC=function(e,t){var n=Object.getOwnPropertyDescriptors(e),r={};CC(n,(function(n,i){!1!==t(n,i,e)&&(r[i]=n)})),Object.defineProperties(e,r)},IC="abcdefghijklmnopqrstuvwxyz",DC="0123456789",jC={DIGIT:DC,ALPHA:IC,ALPHA_DIGIT:IC+IC.toUpperCase()+DC};var AC={isArray:dC,isArrayBuffer:hC,isBuffer:function(e){return null!==e&&!fC(e)&&null!==e.constructor&&!fC(e.constructor)&&vC(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"===typeof FormData&&e instanceof FormData||aC.call(e)===t||vC(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&hC(e.buffer)},isString:pC,isNumber:mC,isBoolean:function(e){return!0===e||!1===e},isObject:gC,isPlainObject:yC,isUndefined:fC,isDate:bC,isFile:_C,isBlob:wC,isRegExp:LC,isFunction:vC,isStream:function(e){return gC(e)&&vC(e.pipe)},isURLSearchParams:xC,isTypedArray:PC,isFileList:SC,forEach:CC,merge:function e(){for(var t=(RC(this)&&this||{}).caseless,n={},r=function(r,i){var o=t&&kC(n,i)||i;yC(n[o])&&yC(r)?n[o]=e(n[o],r):yC(r)?n[o]=e({},r):dC(r)?n[o]=r.slice():n[o]=r},i=0,o=arguments.length;i<o;i++)arguments[i]&&CC(arguments[i],r);return n},extend:function(e,t,n){return CC(t,(function(t,r){n&&vC(t)?e[r]=oC(t,n):e[r]=t}),{allOwnKeys:(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).allOwnKeys}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n,r){var i,o,a,l={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)a=i[o],r&&!r(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==n&&lC(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:sC,kindOfTest:cC,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;if(dC(e))return e;var t=e.length;if(!mC(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},forEachEntry:function(e,t){for(var n,r=(e&&e[Symbol.iterator]).call(e);(n=r.next())&&!n.done;){var i=n.value;t.call(e,i[0],i[1])}},matchAll:function(e,t){for(var n,r=[];null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:TC,hasOwnProperty:MC,hasOwnProp:MC,reduceDescriptors:ZC,freezeMethods:function(e){ZC(e,(function(t,n){if(vC(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;var r=e[n];vC(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:function(e,t){var n={},r=function(e){e.forEach((function(e){n[e]=!0}))};return dC(e)?r(e):r(String(e).split(t)),n},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))},noop:function(){},toFiniteNumber:function(e,t){return e=+e,Number.isFinite(e)?e:t},findKey:kC,global:EC,isContextDefined:RC,ALPHABET:jC,generateString:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jC.ALPHA_DIGIT,n="",r=t.length;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&vC(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:function(e){var t=new Array(10);return function e(n,r){if(gC(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[r]=n;var i=dC(n)?[]:{};return CC(n,(function(t,n){var o=e(t,r+1);!fC(o)&&(i[n]=o)})),t[r]=void 0,i}}return n}(e,0)}};function NC(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}AC.inherits(NC,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:AC.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var FC=NC.prototype,zC={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){zC[e]={value:e}})),Object.defineProperties(NC,zC),Object.defineProperty(FC,"isAxiosError",{value:!0}),NC.from=function(e,t,n,r,i,o){var a=Object.create(FC);return AC.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(function(e){return"isAxiosError"!==e})),NC.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var BC=NC,HC=null;function WC(e){return AC.isPlainObject(e)||AC.isArray(e)}function UC(e){return AC.endsWith(e,"[]")?e.slice(0,-2):e}function VC(e,t,n){return e?e.concat(t).map((function(e,t){return e=UC(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}var qC=AC.toFlatObject(AC,{},null,(function(e){return/^is[A-Z]/.test(e)}));var KC=function(e,t,n){if(!AC.isObject(e))throw new TypeError("target must be an object");t=t||new(HC||FormData);var r=(n=AC.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!AC.isUndefined(t[e])}))).metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,l=(n.Blob||"undefined"!==typeof Blob&&Blob)&&AC.isSpecCompliantForm(t);if(!AC.isFunction(i))throw new TypeError("visitor must be a function");function s(e){if(null===e)return"";if(AC.isDate(e))return e.toISOString();if(!l&&AC.isBlob(e))throw new BC("Blob is not supported. Use a Buffer instead.");return AC.isArrayBuffer(e)||AC.isTypedArray(e)?l&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,i){var l=e;if(e&&!i&&"object"===typeof e)if(AC.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(AC.isArray(e)&&function(e){return AC.isArray(e)&&!e.some(WC)}(e)||(AC.isFileList(e)||AC.endsWith(n,"[]"))&&(l=AC.toArray(e)))return n=UC(n),l.forEach((function(e,r){!AC.isUndefined(e)&&null!==e&&t.append(!0===a?VC([n],r,o):null===a?n:n+"[]",s(e))})),!1;return!!WC(e)||(t.append(VC(i,n,o),s(e)),!1)}var u=[],d=Object.assign(qC,{defaultVisitor:c,convertValue:s,isVisitable:WC});if(!AC.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!AC.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),AC.forEach(n,(function(n,o){!0===(!(AC.isUndefined(n)||null===n)&&i.call(t,n,AC.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])})),u.pop()}}(e),t};function YC(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function GC(e,t){this._pairs=[],e&&KC(e,this,t)}var XC=GC.prototype;XC.append=function(e,t){this._pairs.push([e,t])},XC.toString=function(e){var t=e?function(t){return e.call(this,t,YC)}:YC;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var $C=GC;function JC(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function QC(e,t,n){if(!t)return e;var r,i=n&&n.encode||JC,o=n&&n.serialize;if(r=o?o(t,n):AC.isURLSearchParams(t)?t.toString():new $C(t,n).toString(i)){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}var ek=function(){function e(){G(this,e),this.handlers=[]}return J(e,[{key:"use",value:function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){AC.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}]),e}(),tk=ek,nk={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},rk="undefined"!==typeof URLSearchParams?URLSearchParams:$C,ik="undefined"!==typeof FormData?FormData:null,ok=function(){var e;return("undefined"===typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&("undefined"!==typeof window&&"undefined"!==typeof document)}(),ak="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,lk={isBrowser:!0,classes:{URLSearchParams:rk,FormData:ik,Blob:Blob},isStandardBrowserEnv:ok,isStandardBrowserWebWorkerEnv:ak,protocols:["http","https","file","blob","url","data"]};var sk=function(e){function t(e,n,r,i){var o=e[i++],a=Number.isFinite(+o),l=i>=e.length;return o=!o&&AC.isArray(r)?r.length:o,l?(AC.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a):(r[o]&&AC.isObject(r[o])||(r[o]=[]),t(e,n,r[o],i)&&AC.isArray(r[o])&&(r[o]=function(e){var t,n,r={},i=Object.keys(e),o=i.length;for(t=0;t<o;t++)r[n=i[t]]=e[n];return r}(r[o])),!a)}if(AC.isFormData(e)&&AC.isFunction(e.entries)){var n={};return AC.forEachEntry(e,(function(e,r){t(function(e){return AC.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return"[]"===e[0]?"":e[1]||e[0]}))}(e),r,n,0)})),n}return null},ck={"Content-Type":void 0};var uk={transitional:nk,adapter:["xhr","http"],transformRequest:[function(e,t){var n,r=t.getContentType()||"",i=r.indexOf("application/json")>-1,o=AC.isObject(e);if(o&&AC.isHTMLForm(e)&&(e=new FormData(e)),AC.isFormData(e))return i&&i?JSON.stringify(sk(e)):e;if(AC.isArrayBuffer(e)||AC.isBuffer(e)||AC.isStream(e)||AC.isFile(e)||AC.isBlob(e))return e;if(AC.isArrayBufferView(e))return e.buffer;if(AC.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return KC(e,new lk.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return lk.isNode&&AC.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((n=AC.isFileList(e))||r.indexOf("multipart/form-data")>-1){var a=this.env&&this.env.FormData;return KC(n?{"files[]":e}:e,a&&new a,this.formSerializer)}}return o||i?(t.setContentType("application/json",!1),function(e,t,n){if(AC.isString(e))try{return(t||JSON.parse)(e),AC.trim(e)}catch(Mo){if("SyntaxError"!==Mo.name)throw Mo}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||uk.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&AC.isString(e)&&(n&&!this.responseType||r)){var i=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(Mo){if(i){if("SyntaxError"===Mo.name)throw BC.from(Mo,BC.ERR_BAD_RESPONSE,this,null,this.response);throw Mo}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lk.classes.FormData,Blob:lk.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};AC.forEach(["delete","get","head"],(function(e){uk.headers[e]={}})),AC.forEach(["post","put","patch"],(function(e){uk.headers[e]=AC.merge(ck)}));var dk=uk,fk=AC.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),hk=Symbol("internals");function pk(e){return e&&String(e).trim().toLowerCase()}function vk(e){return!1===e||null==e?e:AC.isArray(e)?e.map(vk):String(e)}function mk(e,t,n,r,i){return AC.isFunction(r)?r.call(this,t,n):(i&&(t=n),AC.isString(t)?AC.isString(r)?-1!==t.indexOf(r):AC.isRegExp(r)?r.test(t):void 0:void 0)}var gk=function(e,t){function n(e){G(this,n),e&&this.set(e)}return J(n,[{key:"set",value:function(e,t,n){var r=this;function i(e,t,n){var i=pk(t);if(!i)throw new Error("header name must be a non-empty string");var o=AC.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=vk(e))}var o=function(e,t){return AC.forEach(e,(function(e,n){return i(e,n,t)}))};return AC.isPlainObject(e)||e instanceof this.constructor?o(e,t):AC.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z]+$/.test(e.trim())?o(function(e){var t,n,r,i={};return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||i[t]&&fk[t]||("set-cookie"===t?i[t]?i[t].push(n):i[t]=[n]:i[t]=i[t]?i[t]+", "+n:n)})),i}(e),t):null!=e&&i(t,e,n),this}},{key:"get",value:function(e,t){if(e=pk(e)){var n=AC.findKey(this,e);if(n){var r=this[n];if(!t)return r;if(!0===t)return function(e){for(var t,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=r.exec(e);)n[t[1]]=t[2];return n}(r);if(AC.isFunction(t))return t.call(this,r,n);if(AC.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=pk(e)){var n=AC.findKey(this,e);return!(!n||void 0===this[n]||t&&!mk(0,this[n],n,t))}return!1}},{key:"delete",value:function(e,t){var n=this,r=!1;function i(e){if(e=pk(e)){var i=AC.findKey(n,e);!i||t&&!mk(0,n[i],i,t)||(delete n[i],r=!0)}}return AC.isArray(e)?e.forEach(i):i(e),r}},{key:"clear",value:function(e){for(var t=Object.keys(this),n=t.length,r=!1;n--;){var i=t[n];e&&!mk(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}},{key:"normalize",value:function(e){var t=this,n={};return AC.forEach(this,(function(r,i){var o=AC.findKey(n,i);if(o)return t[o]=vk(r),void delete t[i];var a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))}(i):String(i).trim();a!==i&&delete t[i],t[a]=vk(r),n[a]=!0})),this}},{key:"concat",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=this.constructor).concat.apply(e,[this].concat(n))}},{key:"toJSON",value:function(e){var t=Object.create(null);return AC.forEach(this,(function(n,r){null!=n&&!1!==n&&(t[r]=e&&AC.isArray(n)?n.join(", "):n)})),t}},{key:Symbol.iterator,value:function(){return Object.entries(this.toJSON())[Symbol.iterator]()}},{key:"toString",value:function(){return Object.entries(this.toJSON()).map((function(e){var t=(0,u.Z)(e,2);return t[0]+": "+t[1]})).join("\n")}},{key:Symbol.toStringTag,get:function(){return"AxiosHeaders"}}],[{key:"from",value:function(e){return e instanceof this?e:new this(e)}},{key:"concat",value:function(e){for(var t=new this(e),n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.forEach((function(e){return t.set(e)})),t}},{key:"accessor",value:function(e){var t=(this[hk]=this[hk]={accessors:{}}).accessors,n=this.prototype;function r(e){var r=pk(e);t[r]||(!function(e,t){var n=AC.toCamelCase(" "+t);["get","set","has"].forEach((function(r){Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return AC.isArray(e)?e.forEach(r):r(e),this}}]),n}();gk.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),AC.freezeMethods(gk.prototype),AC.freezeMethods(gk);var yk=gk;function bk(e,t){var n=this||dk,r=t||n,i=yk.from(r.headers),o=r.data;return AC.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function _k(e){return!(!e||!e.__CANCEL__)}function wk(e,t,n){BC.call(this,null==e?"canceled":e,BC.ERR_CANCELED,t,n),this.name="CanceledError"}AC.inherits(wk,BC,{__CANCEL__:!0});var Sk=wk;var xk=lk.isStandardBrowserEnv?{write:function(e,t,n,r,i,o){var a=[];a.push(e+"="+encodeURIComponent(t)),AC.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),AC.isString(r)&&a.push("path="+r),AC.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Ck(e,t){return e&&!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var kk=lk.isStandardBrowserEnv?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=AC.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0};var Ek=function(e,t){e=e||10;var n,r=new Array(e),i=new Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(l){var s=Date.now(),c=i[a];n||(n=s),r[o]=l,i[o]=s;for(var u=a,d=0;u!==o;)d+=r[u++],u%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),!(s-n<t)){var f=c&&s-c;return f?Math.round(1e3*d/f):void 0}}};function Rk(e,t){var n=0,r=Ek(50,250);return function(i){var o=i.loaded,a=i.lengthComputable?i.total:void 0,l=o-n,s=r(l);n=o;var c={loaded:o,total:a,progress:a?o/a:void 0,bytes:l,rate:s||void 0,estimated:s&&a&&o<=a?(a-o)/s:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}var Ok="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){var r,i=e.data,o=yk.from(e.headers).normalize(),a=e.responseType;function l(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}AC.isFormData(i)&&(lk.isStandardBrowserEnv||lk.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);var s=new XMLHttpRequest;if(e.auth){var c=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(c+":"+u))}var d=Ck(e.baseURL,e.url);function f(){if(s){var r=yk.from("getAllResponseHeaders"in s&&s.getAllResponseHeaders());!function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new BC("Request failed with status code "+n.status,[BC.ERR_BAD_REQUEST,BC.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),l()}),(function(e){n(e),l()}),{data:a&&"text"!==a&&"json"!==a?s.response:s.responseText,status:s.status,statusText:s.statusText,headers:r,config:e,request:s}),s=null}}if(s.open(e.method.toUpperCase(),QC(d,e.params,e.paramsSerializer),!0),s.timeout=e.timeout,"onloadend"in s?s.onloadend=f:s.onreadystatechange=function(){s&&4===s.readyState&&(0!==s.status||s.responseURL&&0===s.responseURL.indexOf("file:"))&&setTimeout(f)},s.onabort=function(){s&&(n(new BC("Request aborted",BC.ECONNABORTED,e,s)),s=null)},s.onerror=function(){n(new BC("Network Error",BC.ERR_NETWORK,e,s)),s=null},s.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||nk;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new BC(t,r.clarifyTimeoutError?BC.ETIMEDOUT:BC.ECONNABORTED,e,s)),s=null},lk.isStandardBrowserEnv){var h=(e.withCredentials||kk(d))&&e.xsrfCookieName&&xk.read(e.xsrfCookieName);h&&o.set(e.xsrfHeaderName,h)}void 0===i&&o.setContentType(null),"setRequestHeader"in s&&AC.forEach(o.toJSON(),(function(e,t){s.setRequestHeader(t,e)})),AC.isUndefined(e.withCredentials)||(s.withCredentials=!!e.withCredentials),a&&"json"!==a&&(s.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&s.addEventListener("progress",Rk(e.onDownloadProgress,!0)),"function"===typeof e.onUploadProgress&&s.upload&&s.upload.addEventListener("progress",Rk(e.onUploadProgress)),(e.cancelToken||e.signal)&&(r=function(t){s&&(n(!t||t.type?new Sk(null,e,s):t),s.abort(),s=null)},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r)));var p=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);p&&-1===lk.protocols.indexOf(p)?n(new BC("Unsupported protocol "+p+":",BC.ERR_BAD_REQUEST,e)):s.send(i||null)}))},Pk={http:HC,xhr:Ok};AC.forEach(Pk,(function(e,t){if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Mo){}Object.defineProperty(e,"adapterName",{value:t})}}));var Tk={getAdapter:function(e){for(var t,n,r=(e=AC.isArray(e)?e:[e]).length,i=0;i<r&&(t=e[i],!(n=AC.isString(t)?Pk[t.toLowerCase()]:t));i++);if(!n){if(!1===n)throw new BC("Adapter ".concat(t," is not supported by the environment"),"ERR_NOT_SUPPORT");throw new Error(AC.hasOwnProp(Pk,t)?"Adapter '".concat(t,"' is not available in the build"):"Unknown adapter '".concat(t,"'"))}if(!AC.isFunction(n))throw new TypeError("adapter is not a function");return n},adapters:Pk};function Mk(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Sk(null,e)}function Lk(e){return Mk(e),e.headers=yk.from(e.headers),e.data=bk.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Tk.getAdapter(e.adapter||dk.adapter)(e).then((function(t){return Mk(e),t.data=bk.call(e,e.transformResponse,t),t.headers=yk.from(t.headers),t}),(function(t){return _k(t)||(Mk(e),t&&t.response&&(t.response.data=bk.call(e,e.transformResponse,t.response),t.response.headers=yk.from(t.response.headers))),Promise.reject(t)}))}var Zk=function(e){return e instanceof yk?e.toJSON():e};function Ik(e,t){t=t||{};var n={};function r(e,t,n){return AC.isPlainObject(e)&&AC.isPlainObject(t)?AC.merge.call({caseless:n},e,t):AC.isPlainObject(t)?AC.merge({},t):AC.isArray(t)?t.slice():t}function i(e,t,n){return AC.isUndefined(t)?AC.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!AC.isUndefined(t))return r(void 0,t)}function a(e,t){return AC.isUndefined(t)?AC.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function l(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}var s={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:function(e,t){return i(Zk(e),Zk(t),!0)}};return AC.forEach(Object.keys(e).concat(Object.keys(t)),(function(r){var o=s[r]||i,a=o(e[r],t[r],r);AC.isUndefined(a)&&o!==l||(n[r]=a)})),n}var Dk="1.3.3",jk={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){jk[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var Ak={};jk.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Dk+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,o){if(!1===e)throw new BC(r(i," has been removed"+(t?" in "+t:"")),BC.ERR_DEPRECATED);return t&&!Ak[i]&&(Ak[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}};var Nk={assertOptions:function(e,t,n){if("object"!==typeof e)throw new BC("options must be an object",BC.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],a=t[o];if(a){var l=e[o],s=void 0===l||a(l,o,e);if(!0!==s)throw new BC("option "+o+" must be "+s,BC.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new BC("Unknown option "+o,BC.ERR_BAD_OPTION)}},validators:jk},Fk=Nk.validators,zk=function(){function e(t){G(this,e),this.defaults=t,this.interceptors={request:new tk,response:new tk}}return J(e,[{key:"request",value:function(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{};var n,r=t=Ik(this.defaults,t),i=r.transitional,o=r.paramsSerializer,a=r.headers;void 0!==i&&Nk.assertOptions(i,{silentJSONParsing:Fk.transitional(Fk.boolean),forcedJSONParsing:Fk.transitional(Fk.boolean),clarifyTimeoutError:Fk.transitional(Fk.boolean)},!1),void 0!==o&&Nk.assertOptions(o,{encode:Fk.function,serialize:Fk.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase(),(n=a&&AC.merge(a.common,a[t.method]))&&AC.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete a[e]})),t.headers=yk.concat(n,a);var l=[],s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,l.unshift(e.fulfilled,e.rejected))}));var c,u=[];this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));var d,f=0;if(!s){var h=[Lk.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,u),d=h.length,c=Promise.resolve(t);f<d;)c=c.then(h[f++],h[f++]);return c}d=l.length;var p=t;for(f=0;f<d;){var v=l[f++],m=l[f++];try{p=v(p)}catch(g){m.call(this,g);break}}try{c=Lk.call(this,p)}catch(g){return Promise.reject(g)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}},{key:"getUri",value:function(e){return QC(Ck((e=Ik(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}]),e}();AC.forEach(["delete","get","head","options"],(function(e){zk.prototype[e]=function(t,n){return this.request(Ik(n||{},{method:e,url:t,data:(n||{}).data}))}})),AC.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(Ik(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}zk.prototype[e]=t(),zk.prototype[e+"Form"]=t(!0)}));var Bk=zk,Hk=function(){function e(t){if(G(this,e),"function"!==typeof t)throw new TypeError("executor must be a function.");var n;this.promise=new Promise((function(e){n=e}));var r=this;this.promise.then((function(e){if(r._listeners){for(var t=r._listeners.length;t-- >0;)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},t((function(e,t,i){r.reason||(r.reason=new Sk(e,t,i),n(r.reason))}))}return J(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}}],[{key:"source",value:function(){var t,n=new e((function(e){t=e}));return{token:n,cancel:t}}}]),e}(),Wk=Hk;var Uk={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Uk).forEach((function(e){var t=(0,u.Z)(e,2),n=t[0],r=t[1];Uk[r]=n}));var Vk=Uk;var qk=function e(t){var n=new Bk(t),r=oC(Bk.prototype.request,n);return AC.extend(r,Bk.prototype,n,{allOwnKeys:!0}),AC.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ik(t,n))},r}(dk);qk.Axios=Bk,qk.CanceledError=Sk,qk.CancelToken=Wk,qk.isCancel=_k,qk.VERSION=Dk,qk.toFormData=KC,qk.AxiosError=BC,qk.Cancel=qk.CanceledError,qk.all=function(e){return Promise.all(e)},qk.spread=function(e){return function(t){return e.apply(null,t)}},qk.isAxiosError=function(e){return AC.isObject(e)&&!0===e.isAxiosError},qk.mergeConfig=Ik,qk.AxiosHeaders=yk,qk.formToJSON=function(e){return sk(AC.isHTMLForm(e)?new FormData(e):e)},qk.HttpStatusCode=Vk,qk.default=qk;var Kk=qk,Yk="https://auto.danielvu.com/api",Gk=Yk+"/device/getAllError",Xk=Yk+"/device/addError",$k=Yk+"/device/deleteError",Jk=Yk+"/device/getAllValue",Qk=Yk+"/device/addValue",eE=Yk+"/device/deleteValue",tE=Yk+"/item/getAllItem",nE=Yk+"/station/getAllStation",rE=Yk+"/station/getAllLineOfStation",iE=Yk+"/station/addLineForStation",oE=Yk+"/station/editLine",aE=Yk+"/station/enableLine",lE=Yk+"/station/editStation",sE=Yk+"/group/getAllGroup",cE=Yk+"/group/getAllModel",uE=Yk+"/group/addGroup",dE=Yk+"/group/addModel",fE=Yk+"/group/getAllModelOfGroup",hE=Yk+"/group/getAllGroupOfModel",pE=Yk+"/group/getAllCmdOfGroup",vE=Yk+"/group/getAllCmdOfModel",mE=Yk+"/group/editGroup",gE=Yk+"/group/editModel",yE=Yk+"/group/deleteModel",bE=Yk+"/group/deleteGroup",_E=Yk+"/group/checkActionModel",wE=Yk+"/log/getListLastLog",SE=Yk+"/log/getAllLogOfStation",xE=Yk+"/log/changeCommand",CE=Yk+"/autoTest",kE=Yk+"/powerControl",EE=Yk+"/cancelProcess",RE=Yk+"/account/checkLogin",OE=Yk+"/readLog",PE=Yk+"/getListCisco",TE=function(){var e=(0,t.useReducer)((function(e){return e+1}),0),n=(0,u.Z)(e,2),r=n[0],i=n[1],o=(0,t.useState)([]),a=(0,u.Z)(o,2),s=a[0],d=a[1],h=(0,t.useState)([]),p=(0,u.Z)(h,2),m=p[0],g=p[1],y=(0,t.useState)([]),b=(0,u.Z)(y,2),_=b[0],w=b[1],S=(0,t.useState)([]),x=(0,u.Z)(S,2),C=x[0],k=x[1],E=(0,t.useState)(""),R=(0,u.Z)(E,2),O=R[0],P=R[1],T=(0,t.useState)(""),M=(0,u.Z)(T,2),L=M[0],Z=M[1],I=(0,t.useState)(""),D=(0,u.Z)(I,2),j=D[0],A=D[1],N=(0,t.useState)([]),F=(0,u.Z)(N,2),z=F[0],B=F[1],H=(0,t.useState)([]),W=(0,u.Z)(H,2),U=W[0],V=W[1],q=(0,t.useState)([]),K=(0,u.Z)(q,2),G=K[0],X=K[1],$=(0,t.useState)(!1),J=(0,u.Z)($,2),Q=J[0],ee=J[1],te=(0,t.useState)(!1),ne=(0,u.Z)(te,2),re=ne[0],ie=ne[1],oe=(0,t.useState)(!1),ae=(0,u.Z)(oe,2),le=ae[0],se=ae[1],ce=(0,t.useState)(!1),ue=(0,u.Z)(ce,2),de=ue[0],fe=ue[1],he=(0,t.useState)([]),pe=(0,u.Z)(he,2),ve=(pe[0],pe[1]),me=(0,t.useState)([]),ge=(0,u.Z)(me,2),ye=ge[0],be=ge[1],_e=(0,t.useState)([]),we=(0,u.Z)(_e,2),Se=(we[0],we[1]),xe=(0,t.useState)([]),Ce=(0,u.Z)(xe,2),ke=Ce[0],Ee=Ce[1],Re=(0,t.useState)([]),Oe=(0,u.Z)(Re,2),Pe=Oe[0],Te=Oe[1],Me=(0,t.useState)([]),Le=(0,u.Z)(Me,2),Ze=Le[0],Ie=Le[1],De=(0,t.useState)(""),je=(0,u.Z)(De,2),Ae=je[0],Ne=je[1],Fe=(0,t.useState)(""),ze=(0,u.Z)(Fe,2),Be=ze[0],He=ze[1],We=(0,t.useState)([]),Ue=(0,u.Z)(We,2),Ve=Ue[0],qe=Ue[1],Ke=(0,t.useState)({id_group:"",group_name:"",group_action:""}),Ye=(0,u.Z)(Ke,2),Ge=Ye[0],Xe=Ye[1],$e=function(){var e=c(l().mark((function e(){var t,n,r,i,o,a;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[],n=[],e.prev=2,e.next=5,Kk.post(sE);case 5:return r=e.sent,e.next=8,Kk.post(cE);case 8:for(i=e.sent,o=0;o<i.data.pData.length;o++)"Group"===i.data.pData[o].model_type&&t.push(i.data.pData[o].id_model);for(a=0;a<r.data.pData.length;a++)n.push(r.data.pData[a].group_name);w(t),k(n),d(r.data.pData.sort((function(e,t){return e.group_action>t.group_action?-1:e.group_action<t.group_action?1:0}))),g(i.data.pData.sort((function(e,t){return e.id_model<t.id_model?-1:e.id_model>t.id_model?1:0}))),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(2),console.log(e.t0);case 20:case"end":return e.stop()}}),e,null,[[2,17]])})));return function(){return e.apply(this,arguments)}}(),Je=function(){var e=c(l().mark((function e(){var t,n,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=[],e.prev=1,n=0;case 3:if(!(n<z.length)){e.next=11;break}return e.next=6,Kk.post(_E,{id_model:z[n],action:j});case 6:1===(r=e.sent).data.pCode?Y.error("Model "+z[n]+" is already in the group "+r.data.group):t.push(z[n]);case 8:n++,e.next=3;break;case 11:if(z.length!==t.length){e.next=16;break}return e.next=14,Kk.post(uE,{group_name:O,action:j,created_by:"Admin",model:z,command:U});case 14:1===e.sent.data.pCode?(Y.success("Add group success!"),V([]),B([]),ee(!1),A(""),P(""),i()):Y.error("Add group fail");case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(1),console.log(e.t0);case 21:case"end":return e.stop()}}),e,null,[[1,18]])})));return function(){return e.apply(this,arguments)}}(),Qe=function(){var e=c(l().mark((function e(){var t,n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=s.filter((function(e){return e.group_name===O})),console.log(t),e.prev=2,""!==L&&""!==O){e.next=7;break}Y.error("Information cannot be left blank"),e.next=11;break;case 7:return e.next=9,Kk.post(dE,{id_model:L,model_type:j,id_group:t.length>0?t[0].id_group:null,command:U});case 9:1===(n=e.sent).data.pCode?(Y.success("Add model success!"),V([]),Z(""),ie(!1),P(""),i()):Y.error(n.data.pMess);case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(2),console.log(e.t0);case 16:case"end":return e.stop()}}),e,null,[[2,13]])})));return function(){return e.apply(this,arguments)}}(),et=function(){var e=c(l().mark((function e(){var t,n,r,o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=[],e.prev=1,!(z.length>0)){e.next=12;break}n=ye.length;case 4:if(!(n<z.length)){e.next=12;break}return e.next=7,Kk.post(_E,{id_model:z[n],action:Ge.group_action});case 7:1===(r=e.sent).data.pCode?Y.error("Model "+z[n]+" is already in the group "+r.data.group):t.push(z[n]);case 9:n++,e.next=4;break;case 12:if(!(z.length-ye.length<=t.length)){e.next=17;break}return e.next=15,Kk.post(mE,{id_group:Ge.id_group,group_name:Ge.group_name,model_change:ke,cmd_change:Ve});case 15:1===(o=e.sent).data.pCode?(Y.success("Edit group success!"),V([]),se(!1),B([]),Ee([]),qe([]),i()):Y.error(o.data.pMess);case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(1),console.log(e.t0);case 22:case"end":return e.stop()}}),e,null,[[1,19]])})));return function(){return e.apply(this,arguments)}}(),tt=function(){var e=c(l().mark((function e(){var t,n,r,o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[],n=0,e.prev=2,e.next=5,Kk.post(hE,{id_model:Ge.id_model});case 5:if(r=e.sent,!(Pe.length>0)){e.next=14;break}if(r.data.pData.map((function(e){t.push(e.group_action)})),Pe.filter((function(e){return"add"===e.status})).map((function(e){console.log(Pe.filter((function(t){return t.id===e.id&&"add"===t.status})).length),Pe.filter((function(t){return t.id===e.id&&"add"===t.status})).length!==Pe.filter((function(t){return t.id===e.id&&"delete"===t.status})).length&&t.includes(s.filter((function(t){return t.id_group===e.id}))[0].group_action)&&(Y.error("Model "+Ge.id_model+" already exists in a group with action "+s.filter((function(t){return t.id_group===e.id}))[0].group_action),n=1)})),0!==n){e.next=14;break}return e.next=12,Kk.post(gE,{id_model:Ge.id_model,type:Ge.model_type,type_init:Ae,group_change:Pe,cmd_change:Ve,groupOfModel:G});case 12:1===(o=e.sent).data.pCode?(Y.success("Edit model success!"),V([]),fe(!1),B([]),Te([]),qe([]),X([]),Ie([]),i()):Y.error(o.data.pMess);case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(2),console.log(e.t0);case 19:case"end":return e.stop()}}),e,null,[[2,16]])})));return function(){return e.apply(this,arguments)}}(),nt=function(){var e=c(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Kk.post(bE,{id:t});case 3:1===(n=e.sent).data.pCode?(Y.success("Delete group success!"),i()):Y.error(n.data.pMess),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}(),rt=function(){var e=c(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Kk.post(yE,{id:t});case 3:1===(n=e.sent).data.pCode?(Y.success("Delete model success!"),i()):Y.error(n.data.pMess),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}();return(0,t.useEffect)((function(){$e()}),[r]),(0,tn.jsxs)("div",{className:"viewHome",children:[(0,tn.jsxs)("div",{className:"ManageCmd",children:[(0,tn.jsxs)("div",{className:"div1",children:[(0,tn.jsx)("div",{className:"title",children:"Group"}),(0,tn.jsx)("div",{className:"option1",children:(0,tn.jsx)(Bn,{size:"small",variant:"contained",onClick:function(){return ee(!0)},children:"+ group"})}),(0,tn.jsx)("div",{className:"listGroup",children:s.map((function(e){return(0,tn.jsxs)("div",{style:{display:"flex",fontSize:"0.8rem"},children:[(0,tn.jsxs)("div",{className:"infoGroup",onClick:c(l().mark((function t(){var n,r,i,o,a,s;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=[],r=[],t.next=4,Kk.post(fE,{id_group:e.id_group});case 4:return i=t.sent,t.next=7,Kk.post(pE,{id_group:e.id_group});case 7:for(o=t.sent,a=0;a<i.data.pData.length;a++)n.push(i.data.pData[a].id_model);for(s=0;s<o.data.pData.length;s++)r.push(o.data.pData[s].cmd_message);V(r),B(n),be(n),ve(i.data.pData),Xe(e),se(!0);case 16:case"end":return t.stop()}}),t)}))),children:[(0,tn.jsx)("div",{style:{position:"absolute",left:0,width:"30%"},children:e.group_name}),(0,tn.jsx)("div",{style:{textTransform:"uppercase",position:"absolute",left:"60%",width:"30%"},children:e.group_action}),(0,tn.jsx)("div",{style:{position:"absolute",left:"80%",width:"30%"},children:e.created_by})]}),(0,tn.jsx)("div",{style:{width:"10%"},children:(0,tn.jsx)(R_,{onClick:function(){se(!1),Y.info((0,tn.jsxs)("div",{style:{width:"100%",textAlign:"center"},children:[(0,tn.jsx)("p",{children:"Want to delete this group?"}),(0,tn.jsxs)("div",{children:[(0,tn.jsx)(R_,{onClick:function(){return nt(e.id_group)},children:(0,tn.jsx)(nC,{color:"green"})}),(0,tn.jsx)(R_,{children:(0,tn.jsx)(rC,{color:"red"})})]})]}))},disabled:"default"===e.group_name.split("_")[0].toLocaleLowerCase(),children:(0,tn.jsx)(iC,{style:{},color:"default"===e.group_name.split("_")[0].toLocaleLowerCase()?"gray":"red",width:"20",height:18})})})]})}))})]}),(0,tn.jsxs)("div",{className:"div2",children:[(0,tn.jsx)("div",{className:"title",children:"Model"}),(0,tn.jsx)("div",{className:"option2",children:(0,tn.jsx)(Bn,{size:"small",variant:"contained",onClick:function(){return ie(!0)},children:"+ model"})}),(0,tn.jsx)("div",{className:"listModel",children:m.map((function(e){return(0,tn.jsxs)("div",{style:{display:"flex",fontSize:"0.8rem"},children:[(0,tn.jsx)("div",{className:"infoGroup",onClick:c(l().mark((function t(){var n,r,i,o,a,s,c,u;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=[],r=[],i=Ze,t.next=5,Kk.post(hE,{id_model:e.id_model});case 5:o=t.sent,a=0;case 7:if(!(a<o.data.pData.length)){t.next=16;break}return n.push(o.data.pData[a].group_name),t.next=11,Kk.post(pE,{id_group:o.data.pData[a].id_group});case 11:s=t.sent,i.push(s.data.pData);case 13:a++,t.next=7;break;case 16:return t.next=18,Kk.post(vE,{id_model:e.id_model});case 18:for(c=t.sent,u=0;u<c.data.pData.length;u++)r.push(c.data.pData[u].cmd_message);Ne(e.model_type),V(r),X(o.data.pData),Se(o.data.pData),Ie(i),Xe(e),fe(!0);case 27:case"end":return t.stop()}}),t)}))),children:(0,tn.jsx)("div",{children:e.id_model})}),(0,tn.jsx)("div",{style:{width:"10%"},children:(0,tn.jsx)(R_,{onClick:function(){se(!1),Y.info((0,tn.jsxs)("div",{style:{width:"100%",textAlign:"center"},children:[(0,tn.jsx)("p",{children:"Want to delete this model?"}),(0,tn.jsxs)("div",{children:[(0,tn.jsx)(R_,{onClick:function(){return rt(e.id_model)},children:(0,tn.jsx)(nC,{color:"green"})}),(0,tn.jsx)(R_,{children:(0,tn.jsx)(rC,{color:"red"})})]})]}))},children:(0,tn.jsx)(iC,{color:"red",width:"20",height:18})})})]})}))})]})]}),(0,tn.jsxs)(rd,{opened:Q,onClose:function(){V([]),B([]),ee(!1),A(""),P(""),He("")},title:(0,tn.jsx)("div",{style:{fontSize:"1.3rem",fontWeight:"700"},children:"Create new group"}),children:[(0,tn.jsx)("span",{style:{fontSize:"0.9rem",fontWeight:"600"},children:"Group name:"}),(0,tn.jsx)("br",{}),(0,tn.jsx)(tC,{size:"small",fullWidth:!0,value:O,onChange:function(e){P(e.target.value)}}),(0,tn.jsx)("span",{style:{fontSize:"0.9rem",fontWeight:"600"},children:"Action:"}),(0,tn.jsx)("br",{}),(0,tn.jsxs)(rp.Group,{value:j,onChange:function(e){return A(e)},children:[(0,tn.jsx)(rp,{value:"test",label:"Auto-test"}),(0,tn.jsx)(rp,{value:"UpdateIOS",label:"Update IOS"}),(0,tn.jsx)(rp,{value:"Config",label:"Configure"}),(0,tn.jsx)(rp,{value:"break",label:"Break password"})]}),(0,tn.jsxs)("span",{style:{fontSize:"0.9rem",fontWeight:"600"},children:["Add model:"," "]}),(0,tn.jsx)("br",{}),(0,tn.jsx)("div",{style:{display:"flex",width:"100%",flexWrap:"wrap"},children:z.map((function(e,t){return(0,tn.jsx)("div",{style:{margin:"1vh 3%"},children:(0,tn.jsx)(vo,{title:"Remove",placement:"left",children:(0,tn.jsx)("p",{className:"modelAdd",onClick:function(){B(z.filter((function(t){return t!==e})))},children:e})})},t)}))}),(0,tn.jsx)(w_,{data:_,searchable:!0,value:z,onChange:function(e){!1===z.includes(e)&&B((function(t){return[].concat((0,v.Z)(t),[e])}))}}),(0,tn.jsx)("span",{style:{fontSize:"0.9rem",fontWeight:"600"},children:"Add command:"}),(0,tn.jsx)("br",{}),(0,tn.jsx)("div",{style:{display:"flex",width:"100%",flexWrap:"wrap",flexFlow:"column"},children:U.map((function(e,t){return(0,tn.jsx)("div",{style:{margin:"0.5vh 3%"},children:(0,tn.jsx)(vo,{title:"Remove",placement:"left",children:(0,tn.jsx)("p",{className:"modelAdd",onClick:function(){V(U.filter((function(t){return t!==e})))},children:e})})},t)}))}),(0,tn.jsx)("textarea",{size:"small",style:{width:"100%",minHeight:Be.length+100},placeholder:"Enter the commands to add",value:Be,onChange:function(e){He(e.target.value)}}),(0,tn.jsx)(Bn,{size:"small",variant:"outlined",style:{width:"10%",marginLeft:"80%"},onClick:function(){if(Be.split("\n").length>1){for(var e=function(e){V((function(t){return[].concat((0,v.Z)(t),[Be.split("\n")[e]])}))},t=0;t<Be.split("\n").length;t++)e(t);setTimeout((function(){He("")}),200)}else""!==Be&&(V((function(e){return[].concat((0,v.Z)(e),[Be])})),setTimeout((function(){He("")}),200))},children:"add"}),(0,tn.jsx)("div",{style:{width:"100%",textAlign:"center",margin:"2vh 0 0 0"},children:(0,tn.jsx)(Bn,{variant:"contained",sx:{textTransform:"none",margin:"0 5% 0 0"},onClick:function(){return Je()},children:"Create"})})]}),(0,tn.jsxs)(rd,{opened:re,onClose:function(){V([]),Z(""),ie(!1),P("")},title:(0,tn.jsx)("div",{style:{fontSize:"1.3rem",fontWeight:"700"},children:"Create new model"}),children:[(0,tn.jsx)("span",{style:{fontSize:"0.9rem",fontWeight:"600"},children:"Model name (PID):"}),(0,tn.jsx)("br",{}),(0,tn.jsx)(tC,{size:"small",fullWidth:!0,value:L,onChange:function(e){Z(e.target.value)}}),(0,tn.jsx)("span",{style:{fontSize:"0.9rem",fontWeight:"600"},children:"Type:"}),(0,tn.jsx)("br",{}),(0,tn.jsxs)(rp.Group,{value:j,onChange:function(e){return A(e)},children:[(0,tn.jsx)(rp,{value:"Group",label:"Group"}),(0,tn.jsx)(rp,{value:"Single",label:"Single",disabled:!0})]}),(0,tn.jsxs)("div",{style:{display:"Group"===j?"block":"none"},children:[(0,tn.jsx)("span",{style:{fontSize:"0.9rem",fontWeight:"600"},children:"Group:"}),(0,tn.jsx)("br",{}),(0,tn.jsx)(w_,{data:C,searchable:!0,onChange:function(e){P(e)}})]}),(0,tn.jsxs)("div",{style:{display:"Single"===j?"block":"none"},children:[(0,tn.jsx)("span",{style:{fontSize:"0.9rem",fontWeight:"600"},children:"Add command:"}),(0,tn.jsx)("br",{}),(0,tn.jsx)("div",{style:{display:"flex",width:"100%",flexWrap:"wrap",flexFlow:"column"},children:U.map((function(e,t){return(0,tn.jsx)("div",{style:{margin:"0.5vh 3%"},children:(0,tn.jsx)(vo,{title:"Remove",placement:"left",children:(0,tn.jsx)("p",{className:"modelAdd",onClick:function(){V(U.filter((function(t){return t!==e})))},children:e})})},t)}))}),(0,tn.jsx)(tC,{size:"small",fullWidth:!0,placeholder:"Enter to add the command",onKeyDown:function(e){"Enter"===e.key&&""!==e.target.value&&(V((function(t){return[].concat((0,v.Z)(t),[e.target.value])})),e.target.value="")}})]}),(0,tn.jsx)("div",{style:{width:"100%",textAlign:"center",margin:"2vh 0 0 0"},children:(0,tn.jsx)(Bn,{variant:"contained",sx:{textTransform:"none",margin:"0 5% 0 0"},onClick:function(){return Qe()},children:"Create"})})]}),Ge&&(0,tn.jsxs)(rd,{opened:le,onClose:function(){V([]),se(!1),B([]),Ee([]),qe([]),X([]),He("")},title:(0,tn.jsx)("div",{style:{fontSize:"1.3rem",fontWeight:"700"},children:"Setting Group"}),children:[(0,tn.jsx)("span",{style:{fontSize:"0.9rem",fontWeight:"600"},children:"Group name:"}),(0,tn.jsx)("br",{}),(0,tn.jsx)(tC,{size:"small",fullWidth:!0,value:Ge.group_name,onChange:function(e){Xe(f(f({},Ge),{},{group_name:e.target.value}))}}),(0,tn.jsx)("span",{style:{fontSize:"0.9rem",fontWeight:"600"},children:"Action:"}),(0,tn.jsxs)("span",{children:[" ",Ge.group_action]}),(0,tn.jsx)("br",{}),(0,tn.jsx)("span",{style:{fontSize:"0.9rem",fontWeight:"600"},children:"Model of group:"}),(0,tn.jsx)("br",{}),(0,tn.jsx)("div",{className:"listModelInGroup",style:{display:"flex",width:"100%",flexWrap:"wrap",maxHeight:"45vh",overflow:"auto"},children:z.map((function(e,t){return(0,tn.jsx)("div",{style:{margin:"1vh 3%"},children:(0,tn.jsx)(vo,{title:"Remove",placement:"left",children:(0,tn.jsx)("p",{className:"modelAdd",onClick:function(){B(z.filter((function(t){return t!==e}))),Ee((function(t){return[].concat((0,v.Z)(t),[{id:e,status:"delete"}])}))},children:e})})},t)}))}),(0,tn.jsx)("span",{style:{fontSize:"0.9rem",fontWeight:"600",display:Ge.group_name&&"default"===Ge.group_name.split("_")[0].toLocaleLowerCase()?"none":"block"},children:"Add model:"}),(0,tn.jsx)("br",{}),(0,tn.jsx)(w_,{data:_,searchable:!0,value:z,onChange:function(e){!1===z.includes(e)&&(B((function(t){return[].concat((0,v.Z)(t),[e])})),Ee((function(t){return[].concat((0,v.Z)(t),[{id:e,status:"add"}])})))},style:{display:Ge.group_name&&"default"===Ge.group_name.split("_")[0].toLocaleLowerCase()?"none":"block"}}),(0,tn.jsx)("span",{style:{fontSize:"0.9rem",fontWeight:"600"},children:"Edit command:"}),(0,tn.jsx)("br",{}),(0,tn.jsx)("div",{style:{display:"flex",width:"100%",flexWrap:"wrap",flexFlow:"column"},children:U.map((function(e,t){return(0,tn.jsx)("div",{style:{margin:"0.5vh 3%"},children:(0,tn.jsx)(vo,{title:"Remove",placement:"left",children:(0,tn.jsx)("p",{className:"modelAdd",onClick:function(){V(U.filter((function(t){return t!==e}))),qe((function(t){return[].concat((0,v.Z)(t),[{mess:e,status:"delete"}])}))},children:e})})},t)}))}),(0,tn.jsx)("textarea",{size:"small",style:{width:"100%",minHeight:Be.length+100},placeholder:"Enter the commands to add",value:Be,onChange:function(e){He(e.target.value)}}),(0,tn.jsx)(Bn,{size:"small",variant:"outlined",style:{width:"10%",marginLeft:"80%"},onClick:function(){if(Be.split("\n").length>1){for(var e=function(e){V((function(t){return[].concat((0,v.Z)(t),[Be.split("\n")[e]])})),qe((function(t){return[].concat((0,v.Z)(t),[{mess:Be.split("\n")[e],status:"add"}])}))},t=0;t<Be.split("\n").length;t++)e(t);setTimeout((function(){He("")}),200)}else""!==Be&&(V((function(e){return[].concat((0,v.Z)(e),[Be])})),qe((function(e){return[].concat((0,v.Z)(e),[{mess:Be,status:"add"}])})),setTimeout((function(){He("")}),200))},children:"add"}),(0,tn.jsx)("div",{style:{width:"100%",textAlign:"center",margin:"2vh 0 0 0"},children:(0,tn.jsx)(Bn,{variant:"contained",sx:{textTransform:"none",margin:"0 5% 0 0"},onClick:function(){return et()},children:"Save"})})]}),Ge&&(0,tn.jsxs)(rd,{opened:de,onClose:function(){V([]),fe(!1),B([]),Te([]),qe([]),X([]),Ie([])},title:(0,tn.jsx)("div",{style:{fontSize:"1.3rem",fontWeight:"700"},children:"Setting Model"}),children:[(0,tn.jsx)("span",{style:{fontSize:"0.9rem",fontWeight:"600"},children:"Model name (PID):"}),(0,tn.jsx)("br",{}),(0,tn.jsx)(tC,{size:"small",fullWidth:!0,value:Ge.id_model,onChange:function(e){Xe(f(f({},Ge),{},{group_name:e.target.value}))}}),(0,tn.jsx)("span",{style:{fontSize:"0.9rem",fontWeight:"600"},children:"Type:"}),(0,tn.jsx)("br",{}),(0,tn.jsxs)(rp.Group,{value:Ge.model_type,onChange:function(e){Xe(f(f({},Ge),{},{model_type:e}))},children:[(0,tn.jsx)(rp,{value:"Group",label:"Group"}),(0,tn.jsx)(rp,{value:"Single",label:"Single"})]}),(0,tn.jsxs)("div",{style:{display:"Group"===Ge.model_type?"block":"none"},children:[(0,tn.jsx)("span",{style:{fontSize:"0.9rem",fontWeight:"600"},children:"Group of model:"}),(0,tn.jsx)("br",{}),(0,tn.jsx)("div",{style:{display:"flex",flexFlow:"column",width:"100%",flexWrap:"wrap"},children:G.map((function(e,t){return(0,tn.jsxs)(tn.Fragment,{children:[(0,tn.jsx)("div",{style:{margin:"1vh 3%"},children:(0,tn.jsxs)("p",{className:"modelAdd",onClick:function(){X(G.filter((function(t){return t.group_name!==e.group_name}))),Te((function(t){return[].concat((0,v.Z)(t),[{id:G.filter((function(t){return t.group_name===e.group_name}))[0].id_group,status:"delete"}])}))},children:[e.group_name,"(",e.group_action,")"]})},t),(0,tn.jsx)("div",{children:Ze[t]&&Ze[t].map((function(e){return(0,tn.jsx)("p",{style:{marginLeft:"5%"},children:(0,tn.jsx)("i",{children:e.cmd_message})})}))})]})}))}),(0,tn.jsx)("span",{style:{fontSize:"0.9rem",fontWeight:"600"},children:"Add group for model:"}),(0,tn.jsx)("br",{}),(0,tn.jsx)(w_,{data:C,searchable:!0,value:G,onChange:function(e){0==G.filter((function(t){return t.group_name===e})).length&&(X((function(t){return[].concat((0,v.Z)(t),[s.filter((function(t){return t.group_name===e}))[0]])})),Te((function(t){return[].concat((0,v.Z)(t),[{id:s.filter((function(t){return t.group_name===e}))[0].id_group,status:"add"}])})))}})]}),(0,tn.jsxs)("div",{style:{display:"Single"===Ge.model_type?"block":"none"},children:[(0,tn.jsx)("span",{style:{fontSize:"0.9rem",fontWeight:"600"},children:"Change command:"}),(0,tn.jsx)("br",{}),(0,tn.jsx)("div",{style:{display:"flex",width:"100%",flexWrap:"wrap",flexFlow:"column"},children:U.map((function(e,t){return(0,tn.jsx)("div",{style:{margin:"0.5vh 3%"},children:(0,tn.jsx)(vo,{title:"Remove",placement:"left",children:(0,tn.jsx)("p",{className:"modelAdd",onClick:function(){V(U.filter((function(t){return t!==e}))),qe((function(t){return[].concat((0,v.Z)(t),[{mess:e,status:"delete"}])}))},children:e})})},t)}))}),(0,tn.jsx)(tC,{size:"small",fullWidth:!0,placeholder:"Enter to add the command",onKeyDown:function(e){"Enter"===e.key&&""!==e.target.value&&(V((function(t){return[].concat((0,v.Z)(t),[e.target.value])})),console.log(e.target.value),qe((function(t){return[].concat((0,v.Z)(t),[{mess:e.target.value,status:"add"}])})),setTimeout((function(){e.target.value=""}),200))}})]}),(0,tn.jsx)("div",{style:{width:"100%",textAlign:"center",margin:"2vh 0 0 0"},children:(0,tn.jsx)(Bn,{variant:"contained",sx:{textTransform:"none",margin:"0 5% 0 0"},onClick:function(){tt()},children:"Save"})})]})]})},ME=Ro("circle-minus","IconCircleMinus",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M9 12l6 0",key:"svg-1"}]]),LE=Ro("circle-plus","IconCirclePlus",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M9 12l6 0",key:"svg-1"}],["path",{d:"M12 9l0 6",key:"svg-2"}]]),ZE=function(){var e=(0,t.useState)({model:"",message:""}),n=(0,u.Z)(e,2),r=n[0],i=n[1],o=(0,t.useState)([]),a=(0,u.Z)(o,2),s=a[0],d=a[1],h=(0,t.useState)([]),p=(0,u.Z)(h,2),v=p[0],m=p[1],g=(0,t.useState)(""),y=(0,u.Z)(g,2),b=(y[0],y[1]),_=(0,t.useReducer)((function(e){return e+1}),0),w=(0,u.Z)(_,2),S=w[0],x=w[1],C=function(){var e=c(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Kk.post(Gk);case 3:t=e.sent,d(t.data.pData),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),k=function(){var e=c(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Kk.post(Xk,r);case 3:1===e.sent.data.pCode?(Y.success("Add success"),x()):Y.error("Add Fail"),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),E=function(){var e=c(l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Kk.post($k,{id:t});case 3:1===e.sent.data.pCode?(Y.success("Delete success"),x()):Y.error("Delete Fail"),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}(),R=function(){var e=c(l().mark((function e(){var t,n,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[],e.prev=1,e.next=4,Kk.post(cE);case 4:for(n=e.sent,r=0;r<n.data.pData.length;r++)t.push(n.data.pData[r].id_model);t.unshift("All"),m(t),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(1),console.log(e.t0);case 13:case"end":return e.stop()}}),e,null,[[1,10]])})));return function(){return e.apply(this,arguments)}}();return(0,t.useEffect)((function(){C(),R()}),[S]),(0,tn.jsx)("div",{className:"viewHome",children:(0,tn.jsxs)("div",{children:[(0,tn.jsxs)("div",{style:{width:"70%",margin:"0 0 0 15%"},children:[(0,tn.jsxs)("div",{className:"divTitle",children:[(0,tn.jsx)("span",{style:{margin:"0 0 0 10%"},children:"Models"}),(0,tn.jsx)("span",{style:{margin:"0 0 0 20%"},children:"Error messages"})]}),(0,tn.jsx)("div",{style:{overflow:"auto",maxHeight:"60vh"},children:s.length>0&&s.map((function(e,t){return(0,tn.jsxs)("div",{className:"divList",children:[(0,tn.jsx)(R_,{className:"iconDelete",onClick:function(){return E(e.id_error)},children:(0,tn.jsx)(ME,{color:"red"})}),(0,tn.jsx)("div",{className:"inputModel",children:(0,tn.jsx)(tC,{size:"small",variant:"standard",value:e.err_model})}),(0,tn.jsx)("div",{children:(0,tn.jsx)(tC,{id:"inputError",size:"small",variant:"standard",value:e.err_message.replace(/\~\"\~/g,"'")})})]},t)}))})]}),(0,tn.jsxs)("div",{className:"divInput",children:[(0,tn.jsxs)("div",{className:"inputModel",children:[(0,tn.jsx)(R_,{className:"iconAdd",onClick:function(){return k()},children:(0,tn.jsx)(LE,{color:"green"})}),(0,tn.jsx)(w_,{placeholder:"Pick one",data:v,onChange:function(e){b(e),i(f(f({},r),{},{model:e}))},searchable:!0})]}),(0,tn.jsx)("div",{className:"inputError",children:(0,tn.jsx)(tC,{id:"inputError",size:"small",variant:"standard",label:"Error",value:r.message,onChange:function(e){return i(f(f({},r),{},{message:e.target.value}))}})})]})]})})};var IE=(0,rn.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var DE=(0,rn.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);var jE=(0,rn.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function AE(e){return(0,xn.Z)("MuiMenuItem",e)}var NE=(0,rn.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),FE=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],zE=(0,Zt.ZP)(Tn,{shouldForwardProp:function(e){return(0,Zt.FO)(e)||"classes"===e},name:"MuiMenuItem",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,Pt.Z)({},n.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((n.vars||n).palette.divider),backgroundClip:"padding-box"},(t={"&:hover":{textDecoration:"none",backgroundColor:(n.vars||n).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},(0,o.Z)(t,"&.".concat(NE.selected),(0,o.Z)({backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.selectedOpacity,")"):(0,Lt.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity)},"&.".concat(NE.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.focusOpacity,"))"):(0,Lt.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)})),(0,o.Z)(t,"&.".concat(NE.selected,":hover"),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.hoverOpacity,"))"):(0,Lt.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.selectedOpacity,")"):(0,Lt.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity)}}),(0,o.Z)(t,"&.".concat(NE.focusVisible),{backgroundColor:(n.vars||n).palette.action.focus}),(0,o.Z)(t,"&.".concat(NE.disabled),{opacity:(n.vars||n).palette.action.disabledOpacity}),(0,o.Z)(t,"& + .".concat(IE.root),{marginTop:n.spacing(1),marginBottom:n.spacing(1)}),(0,o.Z)(t,"& + .".concat(IE.inset),{marginLeft:52}),(0,o.Z)(t,"& .".concat(jE.root),{marginTop:0,marginBottom:0}),(0,o.Z)(t,"& .".concat(jE.inset),{paddingLeft:36}),(0,o.Z)(t,"& .".concat(DE.root),{minWidth:36}),t),!r.dense&&(0,o.Z)({},n.breakpoints.up("sm"),{minHeight:"auto"}),r.dense&&(0,Pt.Z)({minHeight:32,paddingTop:4,paddingBottom:4},n.typography.body2,(0,o.Z)({},"& .".concat(DE.root," svg"),{fontSize:"1.25rem"})))})),BE=t.forwardRef((function(e,n){var r=(0,It.Z)({props:e,name:"MuiMenuItem"}),i=r.autoFocus,o=void 0!==i&&i,a=r.component,l=void 0===a?"li":a,s=r.dense,c=void 0!==s&&s,u=r.divider,d=void 0!==u&&u,f=r.disableGutters,p=void 0!==f&&f,v=r.focusVisibleClassName,g=r.role,y=void 0===g?"menuitem":g,b=r.tabIndex,_=r.className,w=(0,h.Z)(r,FE),S=t.useContext(eS),x=t.useMemo((function(){return{dense:c||S.dense||!1,disableGutters:p}}),[S.dense,c,p]),C=t.useRef(null);(0,H_.Z)((function(){o&&C.current&&C.current.focus()}),[o]);var k,E=(0,Pt.Z)({},r,{dense:x.dense,divider:d,disableGutters:p}),R=function(e){var t=e.disabled,n=e.dense,r=e.divider,i=e.disableGutters,o=e.selected,a=e.classes,l={root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},s=(0,Mt.Z)(l,AE,a);return(0,Pt.Z)({},a,s)}(r),O=(0,Dt.Z)(C,n);return r.disabled||(k=void 0!==b?b:-1),(0,tn.jsx)(eS.Provider,{value:x,children:(0,tn.jsx)(zE,(0,Pt.Z)({ref:O,role:y,tabIndex:k,component:l,focusVisibleClassName:(0,m.Z)(R.focusVisible,v),className:(0,m.Z)(R.root,_)},w,{ownerState:E,classes:R}))})}));function HE(e){return(0,xn.Z)("PrivateSwitchBase",e)}(0,rn.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var WE=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],UE=(0,Zt.ZP)(Tn)((function(e){var t=e.ownerState;return(0,Pt.Z)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),VE=(0,Zt.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),qE=t.forwardRef((function(e,t){var n=e.autoFocus,r=e.checked,i=e.checkedIcon,o=e.className,a=e.defaultChecked,l=e.disabled,s=e.disableFocusRipple,c=void 0!==s&&s,d=e.edge,f=void 0!==d&&d,p=e.icon,v=e.id,g=e.inputProps,y=e.inputRef,b=e.name,_=e.onBlur,w=e.onChange,S=e.onFocus,x=e.readOnly,C=e.required,k=void 0!==C&&C,E=e.tabIndex,R=e.type,O=e.value,P=(0,h.Z)(e,WE),T=(0,to.Z)({controlled:r,default:Boolean(a),name:"SwitchBase",state:"checked"}),M=(0,u.Z)(T,2),L=M[0],Z=M[1],I=B_(),D=l;I&&"undefined"===typeof D&&(D=I.disabled);var j="checkbox"===R||"radio"===R,A=(0,Pt.Z)({},e,{checked:L,disabled:D,disableFocusRipple:c,edge:f}),N=function(e){var t=e.classes,n=e.checked,r=e.disabled,i=e.edge,o={root:["root",n&&"checked",r&&"disabled",i&&"edge".concat((0,Mn.Z)(i))],input:["input"]};return(0,Mt.Z)(o,HE,t)}(A);return(0,tn.jsxs)(UE,(0,Pt.Z)({component:"span",className:(0,m.Z)(N.root,o),centerRipple:!0,focusRipple:!c,disabled:D,tabIndex:null,role:void 0,onFocus:function(e){S&&S(e),I&&I.onFocus&&I.onFocus(e)},onBlur:function(e){_&&_(e),I&&I.onBlur&&I.onBlur(e)},ownerState:A,ref:t},P,{children:[(0,tn.jsx)(VE,(0,Pt.Z)({autoFocus:n,checked:r,defaultChecked:a,className:N.input,disabled:D,id:j&&v,name:b,onChange:function(e){if(!e.nativeEvent.defaultPrevented){var t=e.target.checked;Z(t),w&&w(e,t)}},readOnly:x,ref:y,required:k,ownerState:A,tabIndex:E,type:R},"checkbox"===R&&void 0===O?{}:{value:O},g)),L?i:p]}))})),KE=qE;function YE(e){return(0,xn.Z)("MuiSwitch",e)}var GE=(0,rn.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),XE=["className","color","edge","size","sx"],$E=(0,Zt.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.edge&&t["edge".concat((0,Mn.Z)(n.edge))],t["size".concat((0,Mn.Z)(n.size))]]}})((function(e){var t,n=e.ownerState;return(0,Pt.Z)({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"===n.edge&&{marginLeft:-8},"end"===n.edge&&{marginRight:-8},"small"===n.size&&(t={width:40,height:24,padding:7},(0,o.Z)(t,"& .".concat(GE.thumb),{width:16,height:16}),(0,o.Z)(t,"& .".concat(GE.switchBase),(0,o.Z)({padding:4},"&.".concat(GE.checked),{transform:"translateX(16px)"})),t))})),JE=(0,Zt.ZP)(KE,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:function(e,t){var n=e.ownerState;return[t.switchBase,(0,o.Z)({},"& .".concat(GE.input),t.input),"default"!==n.color&&t["color".concat((0,Mn.Z)(n.color))]]}})((function(e){var t,n=e.theme;return t={position:"absolute",top:0,left:0,zIndex:1,color:n.vars?n.vars.palette.Switch.defaultColor:"".concat("light"===n.palette.mode?n.palette.common.white:n.palette.grey[300]),transition:n.transitions.create(["left","transform"],{duration:n.transitions.duration.shortest})},(0,o.Z)(t,"&.".concat(GE.checked),{transform:"translateX(20px)"}),(0,o.Z)(t,"&.".concat(GE.disabled),{color:n.vars?n.vars.palette.Switch.defaultDisabledColor:"".concat("light"===n.palette.mode?n.palette.grey[100]:n.palette.grey[600])}),(0,o.Z)(t,"&.".concat(GE.checked," + .").concat(GE.track),{opacity:.5}),(0,o.Z)(t,"&.".concat(GE.disabled," + .").concat(GE.track),{opacity:n.vars?n.vars.opacity.switchTrackDisabled:"".concat("light"===n.palette.mode?.12:.2)}),(0,o.Z)(t,"& .".concat(GE.input),{left:"-100%",width:"300%"}),t}),(function(e){var t,n=e.theme,r=e.ownerState;return(0,Pt.Z)({"&:hover":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.activeChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,Lt.Fq)(n.palette.action.active,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&(t={},(0,o.Z)(t,"&.".concat(GE.checked),(0,o.Z)({color:(n.vars||n).palette[r.color].main,"&:hover":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette[r.color].mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,Lt.Fq)(n.palette[r.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(GE.disabled),{color:n.vars?n.vars.palette.Switch["".concat(r.color,"DisabledColor")]:"".concat("light"===n.palette.mode?(0,Lt.$n)(n.palette[r.color].main,.62):(0,Lt._j)(n.palette[r.color].main,.55))})),(0,o.Z)(t,"&.".concat(GE.checked," + .").concat(GE.track),{backgroundColor:(n.vars||n).palette[r.color].main}),t))})),QE=(0,Zt.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:function(e,t){return t.track}})((function(e){var t=e.theme;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)}})),eR=(0,Zt.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:function(e,t){return t.thumb}})((function(e){var t=e.theme;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}})),tR=t.forwardRef((function(e,t){var n=(0,It.Z)({props:e,name:"MuiSwitch"}),r=n.className,i=n.color,o=void 0===i?"primary":i,a=n.edge,l=void 0!==a&&a,s=n.size,c=void 0===s?"medium":s,u=n.sx,d=(0,h.Z)(n,XE),f=(0,Pt.Z)({},n,{color:o,edge:l,size:c}),p=function(e){var t=e.classes,n=e.edge,r=e.size,i=e.color,o=e.checked,a=e.disabled,l={root:["root",n&&"edge".concat((0,Mn.Z)(n)),"size".concat((0,Mn.Z)(r))],switchBase:["switchBase","color".concat((0,Mn.Z)(i)),o&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},s=(0,Mt.Z)(l,YE,t);return(0,Pt.Z)({},t,s)}(f),v=(0,tn.jsx)(eR,{className:p.thumb,ownerState:f});return(0,tn.jsxs)($E,{className:(0,m.Z)(p.root,r),sx:u,ownerState:f,children:[(0,tn.jsx)(JE,(0,Pt.Z)({type:"checkbox",icon:v,checkedIcon:v,ref:t,ownerState:f},d,{classes:(0,Pt.Z)({},p,{root:p.switchBase})})),(0,tn.jsx)(QE,{className:p.track,ownerState:f})]})})),nR=tR,rR=function(){var e=(0,t.useReducer)((function(e){return e+1}),0),n=(0,u.Z)(e,2),r=n[0],i=n[1],o=(0,t.useState)(!1),a=(0,u.Z)(o,2),s=a[0],d=a[1],h=(0,t.useState)(!0),p=(0,u.Z)(h,2),v=p[0],m=p[1],g=(0,t.useState)([]),y=(0,u.Z)(g,2),b=y[0],_=y[1],w=(0,t.useState)([]),S=(0,u.Z)(w,2),x=S[0],C=S[1],k=(0,t.useState)(0),E=(0,u.Z)(k,2),R=E[0],O=E[1],P=(0,t.useState)({}),T=(0,u.Z)(P,2),M=T[0],L=T[1],Z=(0,t.useState)({}),I=(0,u.Z)(Z,2),D=I[0],j=I[1],A=(0,t.useState)(2),N=(0,u.Z)(A,2),F=N[0],z=N[1],B=(0,t.useState)({line:"",port:"",clear:"",ip:""}),H=(0,u.Z)(B,2),W=H[0],U=H[1],V=function(){var e=c(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Kk.post(nE);case 3:t=e.sent,_(t.data.pData.sort((function(e,t){return e.sta_name<t.sta_name?-1:e.sta_name>t.sta_name?1:0}))),L(t.data.pData[R]),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.log(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),q=function(){var e=c(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Kk.post(rE,{id:t});case 3:n=e.sent,C(n.data.pData),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}(),K=function(){var e=c(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Kk.post(iE,{number:W.line,port:W.port,clear:W.clear,ip:W.ip,station:F});case 3:n=e.sent,C(n.data),i(),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.log(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),G=function(){var e=c(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Kk.post(oE,{id_line:D.id_line,line_number:D.line_number,line_port:D.line_port,line_clear:D.line_clear,line_ip:D.line_ip});case 3:e.sent,d(!1),i(),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.log(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),X=function(){var e=c(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Kk.post(lE,{id:M.id_station,ip:M.sta_ip,tftp:M.sta_tftp,network:M.sta_network,netmask:M.sta_netmask,gateway:M.sta_gateway,gateway_line:M.gateway_line,netmask_line:M.netmask_line,APC1:M.sta_APC1,APC2:M.sta_APC2,portTelnet:M.sta_port_telnet,APC1_port:M.APC1_port,APC2_port:M.APC2_port});case 3:1===e.sent.data.pCode?(m(!0),Y.success("Edit station success!"),i()):Y.error("Edit station fail"),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}();return(0,t.useEffect)((function(){V(),void 0!==F&&q(F)}),[r]),(0,tn.jsxs)("div",{className:"viewHome",children:[(0,tn.jsxs)("div",{className:"divStation",children:[(0,tn.jsxs)(Vw,{sx:{minWidth:170},children:[(0,tn.jsx)(Fw,{id:"demo-simple-select-autowidth-label",children:"Station"}),(0,tn.jsx)(Gx,{labelId:"demo-simple-select-autowidth-label",id:"demo-simple-select-autowidth",style:{fontSize:"0.8rem"},value:R,onChange:function(e){O(e.target.value),L(b[e.target.value])},size:"small",autoWidth:!0,label:"Station",children:b.length>0&&b.map((function(e,t){return(0,tn.jsx)(BE,{sx:{m:1,minWidth:200},value:t,onClick:function(){q(e.id_station),z(e.id_station)},children:e.sta_name},t)}))})]}),(0,tn.jsx)(Bn,{style:{marginLeft:"2%"},variant:v?"outlined":"contained",onClick:function(){m(!v),!1===v&&X()},size:"small",children:v?"Setting station":"Save"})]}),(0,tn.jsxs)("div",{className:"info",children:[(0,tn.jsxs)("div",{className:"divInfoStation",children:[void 0!==M&&b.length>0?(0,tn.jsxs)(tn.Fragment,{children:[" ",(0,tn.jsxs)("div",{className:"divInfo",children:[" ",(0,tn.jsx)("div",{className:"spanInfo",children:(0,tn.jsx)("span",{children:"Host IP Address: "})}),(0,tn.jsx)(cw,{id:"inputStation",value:M.sta_ip,onChange:function(e){L(f(f({},M),{},{sta_ip:e.target.value}))},disabled:v,size:"small"})]}),(0,tn.jsxs)("div",{className:"divInfo",children:[" ",(0,tn.jsx)("div",{className:"spanInfo",children:(0,tn.jsx)("span",{children:"Port telnet: "})}),(0,tn.jsx)(cw,{id:"inputStation",value:M.sta_port_telnet,onChange:function(e){L(f(f({},M),{},{sta_port_telnet:e.target.value}))},disabled:v,size:"small"})]}),(0,tn.jsxs)("div",{className:"divInfo",children:[" ",(0,tn.jsx)("span",{className:"spanInfo",children:"TFTP Server: "}),(0,tn.jsx)(cw,{id:"inputStation",value:M.sta_tftp,onChange:function(e){L(f(f({},M),{},{sta_tftp:e.target.value}))},disabled:v,size:"small"})]}),(0,tn.jsxs)("div",{className:"divInfo",children:[" ",(0,tn.jsx)("span",{className:"spanInfo",children:"Netmask: "}),(0,tn.jsx)(cw,{id:"inputStation",value:M.sta_netmask,onChange:function(e){L(f(f({},M),{},{sta_netmask:e.target.value}))},disabled:v,size:"small"})]}),(0,tn.jsxs)("div",{className:"divInfo",children:[" ",(0,tn.jsx)("span",{className:"spanInfo",children:"Default-gateway: "}),(0,tn.jsx)(cw,{id:"inputStation",value:M.sta_gateway,disabled:v,onChange:function(e){L(f(f({},M),{},{sta_gateway:e.target.value}))},size:"small"})]}),(0,tn.jsxs)("div",{className:"divInfo",children:[" ",(0,tn.jsx)("span",{className:"spanInfo",children:"APC1: "}),(0,tn.jsx)(cw,{id:"inputStation",value:M.sta_APC1,disabled:v,onChange:function(e){L(f(f({},M),{},{sta_APC1:e.target.value}))},size:"small"})]}),(0,tn.jsxs)("div",{className:"divInfo",children:[" ",(0,tn.jsx)("span",{className:"spanInfo",children:"APC1 Port: "}),(0,tn.jsx)(cw,{id:"inputStation",value:M.APC1_port,disabled:v,onChange:function(e){L(f(f({},M),{},{APC1_port:e.target.value}))},size:"small"})]}),(0,tn.jsxs)("div",{className:"divInfo",children:[" ",(0,tn.jsx)("span",{className:"spanInfo",children:"APC2: "}),(0,tn.jsx)(cw,{id:"inputStation",value:M.sta_APC2,disabled:v,onChange:function(e){L(f(f({},M),{},{sta_APC2:e.target.value}))},size:"small"})]}),(0,tn.jsxs)("div",{className:"divInfo",children:[" ",(0,tn.jsx)("span",{className:"spanInfo",children:"APC2 Port: "}),(0,tn.jsx)(cw,{id:"inputStation",value:M.APC2_port,disabled:v,onChange:function(e){L(f(f({},M),{},{APC2_port:e.target.value}))},size:"small"})]}),(0,tn.jsxs)("div",{className:"divInfo",children:[" ",(0,tn.jsx)("span",{className:"spanInfo",children:"Netmask line: "}),(0,tn.jsx)(cw,{id:"inputStation",value:M.netmask_line,disabled:v,onChange:function(e){L(f(f({},M),{},{netmask_line:e.target.value}))},size:"small"})]}),(0,tn.jsxs)("div",{className:"divInfo",children:[" ",(0,tn.jsx)("span",{className:"spanInfo",children:"Default-gateway line: "}),(0,tn.jsx)(cw,{id:"inputStation",value:M.gateway_line,disabled:v,onChange:function(e){L(f(f({},M),{},{gateway_line:e.target.value}))},size:"small"})]})]}):"",(0,tn.jsx)("div",{className:"divAddLine",children:void 0!==R&&x.length<16?(0,tn.jsxs)(tn.Fragment,{children:[(0,tn.jsx)(R_,{className:"",onClick:K,children:(0,tn.jsx)(LE,{color:"green"})}),(0,tn.jsx)("div",{className:"",children:(0,tn.jsx)(tC,{size:"small",variant:"standard",label:"Line",value:W.line,onChange:function(e){U(f(f({},W),{},{line:e.target.value}))},sx:{width:"40px",marginRight:"20px"}})}),(0,tn.jsx)("div",{className:"",children:(0,tn.jsx)(tC,{id:"",size:"small",variant:"standard",label:"Port",value:W.port,onChange:function(e){U(f(f({},W),{},{port:e.target.value}))},sx:{width:"70px",marginRight:"20px"}})}),(0,tn.jsx)("div",{className:"",children:(0,tn.jsx)(tC,{size:"small",variant:"standard",label:"Clear",value:W.clear,onChange:function(e){U(f(f({},W),{},{clear:e.target.value}))},sx:{width:"40px",marginRight:"20px"}})}),(0,tn.jsx)("div",{className:"",children:(0,tn.jsx)(tC,{size:"small",variant:"standard",label:"IP Address",value:W.ip,onChange:function(e){U(f(f({},W),{},{ip:e.target.value}))},sx:{width:"150px",marginRight:"20px"}})})]}):""})]}),(0,tn.jsxs)("div",{className:"divInfoLine",children:[(0,tn.jsxs)("div",{className:"infoLineTitle",children:[(0,tn.jsx)("div",{style:{position:"absolute",left:-5},children:"Port "}),(0,tn.jsxs)("div",{style:{position:"absolute",left:"20%"},children:["Telnet Port"," "]}),(0,tn.jsx)("div",{style:{position:"absolute",left:"40%"},children:"Clear Line"}),(0,tn.jsx)("div",{style:{position:"absolute",left:"60%"},children:"IP Address"}),(0,tn.jsx)("div",{style:{position:"absolute",left:"80%"},children:"Enable"}),(0,tn.jsx)("div",{})]}),x.length>0?x.map((function(e,t){return(0,tn.jsx)(vo,{title:"Edit line "+e.line_number,placement:"right-end",children:(0,tn.jsxs)("div",{style:{display:"flex"},children:[(0,tn.jsxs)("div",{className:"infoLine",onClick:function(){j(e),d(!0)},children:[(0,tn.jsxs)("div",{className:"lineName",children:["Line ",e.line_number,": "]}),(0,tn.jsxs)("div",{children:[" ",e.line_port," "]}),(0,tn.jsxs)("div",{children:[e.line_clear," "]}),(0,tn.jsxs)("div",{children:[e.line_ip," "]})]}),(0,tn.jsxs)("div",{style:{width:"25%",textAlign:"center"},children:[(0,tn.jsx)(nR,{size:"small",checked:1===e.enable,onChange:function(){var t=c(l().mark((function t(n){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Kk.post(aE,{id:e.id_line,status:-1*e.enable});case 2:i();case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})," "]})]},t)})})):""]})]}),(0,tn.jsxs)(rd,{opened:s,onClose:function(){d(!1)},title:(0,tn.jsx)("div",{style:{fontSize:"1.3rem",fontWeight:"700"},children:"Edit line"}),children:[(0,tn.jsx)("span",{style:{fontSize:"0.9rem",fontWeight:"600"},children:"Line:"}),(0,tn.jsxs)(tn.Fragment,{children:[(0,tn.jsx)(cw,{value:D.line_number,onChange:function(e){j(f(f({},D),{},{line_number:e.target.value}))}}),(0,tn.jsx)("br",{})]}),(0,tn.jsx)("span",{style:{fontSize:"0.9rem",fontWeight:"600"},children:"Telnet Port"}),(0,tn.jsxs)(tn.Fragment,{children:[(0,tn.jsx)(cw,{value:D.line_port,onChange:function(e){j(f(f({},D),{},{line_port:e.target.value}))}}),(0,tn.jsx)("br",{})]}),(0,tn.jsx)("span",{style:{fontSize:"0.9rem",fontWeight:"600"},children:"Clear Line"}),(0,tn.jsxs)(tn.Fragment,{children:[(0,tn.jsx)(cw,{value:D.line_clear,onChange:function(e){j(f(f({},D),{},{line_clear:e.target.value}))}}),(0,tn.jsx)("br",{})]}),(0,tn.jsx)("span",{style:{fontSize:"0.9rem",fontWeight:"600"},children:"IP Address"}),(0,tn.jsxs)(tn.Fragment,{children:[(0,tn.jsx)(cw,{value:D.line_ip,onChange:function(e){j(f(f({},D),{},{line_ip:e.target.value}))}}),(0,tn.jsx)("br",{})]}),(0,tn.jsx)("div",{style:{width:"100%",textAlign:"center",margin:"2vh 0 0 0"},children:(0,tn.jsx)(Bn,{variant:"contained",sx:{textTransform:"none",margin:"0 5% 0 0"},onClick:function(){return G()},children:"Save"})})]})]})},iR=n(2426),oR=n.n(iR),aR=function(){var e,n=(0,t.useState)({key:"",value:""}),r=(0,u.Z)(n,2),i=r[0],a=r[1],s=(0,t.useState)([]),d=(0,u.Z)(s,2),h=d[0],p=d[1],v=(0,t.useState)([]),m=(0,u.Z)(v,2),g=m[0],y=m[1],b=(0,t.useReducer)((function(e){return e+1}),0),_=(0,u.Z)(b,2),w=_[0],S=_[1],x=(0,t.useState)(""),C=(0,u.Z)(x,2),k=C[0],E=C[1],R=function(){var e=c(l().mark((function e(){var t,n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=["All"],e.prev=1,e.next=4,Kk.post(Jk,{});case 4:(n=e.sent).data.pData.map((function(e){!1===t.includes(e.key)&&t.push(e.key)})),y(t),p(n.data.pData.sort((function(e,t){return e.key<t.key?-1:e.key>t.key?1:0}))),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(1),console.log(e.t0);case 13:case"end":return e.stop()}}),e,null,[[1,10]])})));return function(){return e.apply(this,arguments)}}(),O=function(){var e=c(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Kk.post(Qk,{key:i.key,value:i.value});case 3:1===e.sent.data.pCode?(Y.success("Add value success!"),S()):Y.error("Add value fail!"),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),P=function(){var e=c(l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Kk.post(eE,{id:t});case 3:1===e.sent.data.pCode?(Y.success("Delete value success!"),S()):Y.error("Delete value fail!"),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}();return(0,t.useEffect)((function(){R()}),[w]),(0,tn.jsxs)("div",{className:"viewHome",style:{position:"relative"},children:[(0,tn.jsx)("div",{style:{width:"15%",position:"absolute",top:"20%",left:"1%"},children:(0,tn.jsx)(w_,{label:"Key filter",placeholder:"Pick one",data:g,onChange:function(e){E("All"===e?"":e)},searchable:!0})}),(0,tn.jsxs)("div",{children:[(0,tn.jsx)("div",{style:{width:"70%",margin:"0 0 2vh 25%"},children:(0,tn.jsxs)("div",{style:{width:"100%",display:"flex",fontSize:"1.5rem",fontWeight:"600",color:"rgb(0 124 196)"},children:[(0,tn.jsx)("span",{style:{width:"40%",textAlign:"center"},children:"Key"}),(0,tn.jsx)("span",{style:{width:"60%",textAlign:"center"},children:"Value"})]})}),(0,tn.jsx)("div",{id:"listValue",style:(e={maxHeight:"63vh",overflow:"auto",margin:"2vh 0",border:"solid 1px gray",width:"70%"},(0,o.Z)(e,"margin","0 0 2vh 25%"),(0,o.Z)(e,"overflowX","hidden"),e),children:""===k?h.map((function(e,t){return(0,tn.jsxs)("div",{style:{display:"flex",width:"100%",border:"solid 1px gray",backgroundColor:t%2===0?"#c0c0c091":"white"},children:[(0,tn.jsxs)("div",{style:{width:"40%",textAlign:"center",display:"flex",justifyItems:"center",borderRight:"solid 1px"},children:[(0,tn.jsx)("div",{children:(0,tn.jsx)(R_,{className:"iconAdd",onClick:function(){P(e.id_key_value)},children:(0,tn.jsx)(ME,{color:"red"})})}),(0,tn.jsx)("div",{style:{width:"100%",textAlign:"left",display:"flex",fontSize:"1.1rem",margin:"1vh"},children:(0,tn.jsx)("span",{children:e.key})})]}),(0,tn.jsx)("div",{className:"inputError",style:{width:"60%",justifyContent:"center",display:"flex",fontSize:"1.1rem",margin:"1vh"},children:e.value})]},e.id_key_value)})):h.filter((function(e){return e.key===k})).map((function(e,t){return(0,tn.jsxs)("div",{style:{display:"flex",width:"100%",border:"solid 1px gray",backgroundColor:t%2===0?"#c0c0c091":"white"},children:[(0,tn.jsxs)("div",{style:{width:"40%",textAlign:"center",display:"flex",justifyItems:"center",borderRight:"solid 1px"},children:[(0,tn.jsx)("div",{children:(0,tn.jsx)(R_,{className:"iconAdd",onClick:function(){P(e.id_key_value)},children:(0,tn.jsx)(ME,{color:"red"})})}),(0,tn.jsx)("div",{style:{width:"100%",textAlign:"left",display:"flex",fontSize:"1.1rem",margin:"1vh"},children:(0,tn.jsx)("span",{children:e.key})})]}),(0,tn.jsx)("div",{className:"inputError",style:{width:"60%",justifyContent:"center",display:"flex",fontSize:"1.1rem",margin:"1vh"},children:e.value})]},e.id_key_value)}))}),(0,tn.jsxs)("div",{style:{display:"flex",width:"70%",margin:"0 0 0 25%"},children:[(0,tn.jsxs)("div",{style:{width:"40%",textAlign:"center",display:"flex",justifyItems:"center"},children:[(0,tn.jsx)("div",{style:{border:"none 1px"},children:(0,tn.jsx)(R_,{className:"iconAdd",onClick:function(){O()},children:(0,tn.jsx)(LE,{color:"green"})})}),(0,tn.jsx)(tC,{size:"small",variant:"outlined",label:"Key",onChange:function(e){a(f(f({},i),{},{key:e.target.value}))},value:i.key,style:{margin:"0 10px 0 0",width:"100%"}})]}),(0,tn.jsx)("div",{className:"inputError",style:{width:"57%"},children:(0,tn.jsx)(tC,{id:"inputError",size:"small",variant:"outlined",label:"Value",onChange:function(e){a(f(f({},i),{},{value:e.target.value}))},value:i.value,style:{margin:"0",width:"100%"}})})]})]})]})};function lR(e){return(0,xn.Z)("MuiPagination",e)}(0,rn.Z)("MuiPagination",["root","ul","outlined","text"]);var sR=n(8637),cR=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function uR(e){return(0,xn.Z)("MuiPaginationItem",e)}var dR=(0,rn.Z)("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon"]),fR=(0,Bx.Z)((0,tn.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),hR=(0,Bx.Z)((0,tn.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),pR=(0,Bx.Z)((0,tn.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),vR=(0,Bx.Z)((0,tn.jsx)("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),mR=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],gR=function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["size".concat((0,Mn.Z)(n.size))],"text"===n.variant&&t["text".concat((0,Mn.Z)(n.color))],"outlined"===n.variant&&t["outlined".concat((0,Mn.Z)(n.color))],"rounded"===n.shape&&t.rounded,"page"===n.type&&t.page,("start-ellipsis"===n.type||"end-ellipsis"===n.type)&&t.ellipsis,("previous"===n.type||"next"===n.type)&&t.previousNext,("first"===n.type||"last"===n.type)&&t.firstLast]},yR=(0,Zt.ZP)("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:gR})((function(e){var t=e.theme,n=e.ownerState;return(0,Pt.Z)({},t.typography.body2,(0,o.Z)({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(dR.disabled),{opacity:(t.vars||t).palette.action.disabledOpacity}),"small"===n.size&&{minWidth:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===n.size&&{minWidth:40,borderRadius:20,padding:"0 10px",fontSize:t.typography.pxToRem(15)})})),bR=(0,Zt.ZP)(Tn,{name:"MuiPaginationItem",slot:"Root",overridesResolver:gR})((function(e){var t,n,r=e.theme,i=e.ownerState;return(0,Pt.Z)({},r.typography.body2,(n={borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(r.vars||r).palette.text.primary},(0,o.Z)(n,"&.".concat(dR.focusVisible),{backgroundColor:(r.vars||r).palette.action.focus}),(0,o.Z)(n,"&.".concat(dR.disabled),{opacity:(r.vars||r).palette.action.disabledOpacity}),(0,o.Z)(n,"transition",r.transitions.create(["color","background-color"],{duration:r.transitions.duration.short})),(0,o.Z)(n,"&:hover",{backgroundColor:(r.vars||r).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}),(0,o.Z)(n,"&.".concat(dR.selected),(t={backgroundColor:(r.vars||r).palette.action.selected,"&:hover":{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.action.selected," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.hoverOpacity,"))"):(0,Lt.Fq)(r.palette.action.selected,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(r.vars||r).palette.action.selected}}},(0,o.Z)(t,"&.".concat(dR.focusVisible),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.action.selected," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.focusOpacity,"))"):(0,Lt.Fq)(r.palette.action.selected,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)}),(0,o.Z)(t,"&.".concat(dR.disabled),{opacity:1,color:(r.vars||r).palette.action.disabled,backgroundColor:(r.vars||r).palette.action.selected}),t)),n),"small"===i.size&&{minWidth:26,height:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===i.size&&{minWidth:40,height:40,borderRadius:20,padding:"0 10px",fontSize:r.typography.pxToRem(15)},"rounded"===i.shape&&{borderRadius:(r.vars||r).shape.borderRadius})}),(function(e){var t=e.theme,n=e.ownerState;return(0,Pt.Z)({},"text"===n.variant&&(0,o.Z)({},"&.".concat(dR.selected),(0,Pt.Z)({},"standard"!==n.color&&(0,o.Z)({color:(t.vars||t).palette[n.color].contrastText,backgroundColor:(t.vars||t).palette[n.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[n.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[n.color].main}}},"&.".concat(dR.focusVisible),{backgroundColor:(t.vars||t).palette[n.color].dark}),(0,o.Z)({},"&.".concat(dR.disabled),{color:(t.vars||t).palette.action.disabled}))),"outlined"===n.variant&&(0,o.Z)({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(dR.selected),(0,Pt.Z)({},"standard"!==n.color&&(0,o.Z)({color:(t.vars||t).palette[n.color].main,border:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / 0.5)"):(0,Lt.Fq)(t.palette[n.color].main,.5)),backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.activatedOpacity,")"):(0,Lt.Fq)(t.palette[n.color].main,t.palette.action.activatedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / calc(").concat(t.vars.palette.action.activatedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,Lt.Fq)(t.palette[n.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(dR.focusVisible),{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / calc(").concat(t.vars.palette.action.activatedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,Lt.Fq)(t.palette[n.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity)}),(0,o.Z)({},"&.".concat(dR.disabled),{borderColor:(t.vars||t).palette.action.disabledBackground,color:(t.vars||t).palette.action.disabled}))))})),_R=(0,Zt.ZP)("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:function(e,t){return t.icon}})((function(e){var t=e.theme,n=e.ownerState;return(0,Pt.Z)({fontSize:t.typography.pxToRem(20),margin:"0 -8px"},"small"===n.size&&{fontSize:t.typography.pxToRem(18)},"large"===n.size&&{fontSize:t.typography.pxToRem(22)})})),wR=t.forwardRef((function(e,t){var n=(0,It.Z)({props:e,name:"MuiPaginationItem"}),r=n.className,i=n.color,o=void 0===i?"standard":i,a=n.component,l=n.components,s=void 0===l?{}:l,c=n.disabled,u=void 0!==c&&c,d=n.page,f=n.selected,p=void 0!==f&&f,v=n.shape,g=void 0===v?"circular":v,y=n.size,b=void 0===y?"medium":y,_=n.slots,w=void 0===_?{}:_,S=n.type,x=void 0===S?"page":S,C=n.variant,k=void 0===C?"text":C,E=(0,h.Z)(n,mR),R=(0,Pt.Z)({},n,{color:o,disabled:u,selected:p,shape:g,size:b,type:x,variant:k}),O=qn(),P=function(e){var t=e.classes,n=e.color,r=e.disabled,i=e.selected,o=e.size,a=e.shape,l=e.type,s=e.variant,c={root:["root","size".concat((0,Mn.Z)(o)),s,a,"standard"!==n&&"".concat(s).concat((0,Mn.Z)(n)),r&&"disabled",i&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[l]],icon:["icon"]};return(0,Mt.Z)(c,uR,t)}(R),T=("rtl"===O.direction?{previous:w.next||s.next||vR,next:w.previous||s.previous||pR,last:w.first||s.first||fR,first:w.last||s.last||hR}:{previous:w.previous||s.previous||pR,next:w.next||s.next||vR,first:w.first||s.first||fR,last:w.last||s.last||hR})[x];return"start-ellipsis"===x||"end-ellipsis"===x?(0,tn.jsx)(yR,{ref:t,ownerState:R,className:(0,m.Z)(P.root,r),children:"\u2026"}):(0,tn.jsxs)(bR,(0,Pt.Z)({ref:t,ownerState:R,component:a,disabled:u,className:(0,m.Z)(P.root,r)},E,{children:["page"===x&&d,T?(0,tn.jsx)(_R,{as:T,ownerState:R,className:P.icon}):null]}))})),SR=wR,xR=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],CR=(0,Zt.ZP)("nav",{name:"MuiPagination",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant]]}})({}),kR=(0,Zt.ZP)("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:function(e,t){return t.ul}})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function ER(e,t,n){return"page"===e?"".concat(n?"":"Go to ","page ").concat(t):"Go to ".concat(e," page")}var RR=t.forwardRef((function(e,t){var n=(0,It.Z)({props:e,name:"MuiPagination"}),r=n.boundaryCount,i=void 0===r?1:r,o=n.className,a=n.color,l=void 0===a?"standard":a,s=n.count,c=void 0===s?1:s,d=n.defaultPage,f=void 0===d?1:d,p=n.disabled,g=void 0!==p&&p,y=n.getItemAriaLabel,b=void 0===y?ER:y,_=n.hideNextButton,w=void 0!==_&&_,S=n.hidePrevButton,x=void 0!==S&&S,C=n.renderItem,k=void 0===C?function(e){return(0,tn.jsx)(SR,(0,Pt.Z)({},e))}:C,E=n.shape,R=void 0===E?"circular":E,O=n.showFirstButton,P=void 0!==O&&O,T=n.showLastButton,M=void 0!==T&&T,L=n.siblingCount,Z=void 0===L?1:L,I=n.size,D=void 0===I?"medium":I,j=n.variant,A=void 0===j?"text":j,N=(0,h.Z)(n,xR),F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.boundaryCount,n=void 0===t?1:t,r=e.componentName,i=void 0===r?"usePagination":r,o=e.count,a=void 0===o?1:o,l=e.defaultPage,s=void 0===l?1:l,c=e.disabled,d=void 0!==c&&c,f=e.hideNextButton,p=void 0!==f&&f,m=e.hidePrevButton,g=void 0!==m&&m,y=e.onChange,b=e.page,_=e.showFirstButton,w=void 0!==_&&_,S=e.showLastButton,x=void 0!==S&&S,C=e.siblingCount,k=void 0===C?1:C,E=(0,h.Z)(e,cR),R=(0,sR.Z)({controlled:b,default:s,name:i,state:"page"}),O=(0,u.Z)(R,2),P=O[0],T=O[1],M=function(e,t){b||T(t),y&&y(e,t)},L=function(e,t){var n=t-e+1;return Array.from({length:n},(function(t,n){return e+n}))},Z=L(1,Math.min(n,a)),I=L(Math.max(a-n+1,n+1),a),D=Math.max(Math.min(P-k,a-n-2*k-1),n+2),j=Math.min(Math.max(P+k,n+2*k+2),I.length>0?I[0]-2:a-1),A=[].concat((0,v.Z)(w?["first"]:[]),(0,v.Z)(g?[]:["previous"]),(0,v.Z)(Z),(0,v.Z)(D>n+2?["start-ellipsis"]:n+1<a-n?[n+1]:[]),(0,v.Z)(L(D,j)),(0,v.Z)(j<a-n-1?["end-ellipsis"]:a-n>n?[a-n]:[]),(0,v.Z)(I),(0,v.Z)(p?[]:["next"]),(0,v.Z)(x?["last"]:[])),N=function(e){switch(e){case"first":return 1;case"previous":return P-1;case"next":return P+1;case"last":return a;default:return null}},F=A.map((function(e){return"number"===typeof e?{onClick:function(t){M(t,e)},type:"page",page:e,selected:e===P,disabled:d,"aria-current":e===P?"true":void 0}:{onClick:function(t){M(t,N(e))},type:e,page:N(e),selected:!1,disabled:d||-1===e.indexOf("ellipsis")&&("next"===e||"last"===e?P>=a:P<=1)}}));return(0,Pt.Z)({items:F},E)}((0,Pt.Z)({},n,{componentName:"Pagination"})),z=F.items,B=(0,Pt.Z)({},n,{boundaryCount:i,color:l,count:c,defaultPage:f,disabled:g,getItemAriaLabel:b,hideNextButton:w,hidePrevButton:x,renderItem:k,shape:R,showFirstButton:P,showLastButton:M,siblingCount:Z,size:D,variant:A}),H=function(e){var t=e.classes,n={root:["root",e.variant],ul:["ul"]};return(0,Mt.Z)(n,lR,t)}(B);return(0,tn.jsx)(CR,(0,Pt.Z)({"aria-label":"pagination navigation",className:(0,m.Z)(H.root,o),ownerState:B,ref:t},N,{children:(0,tn.jsx)(kR,{className:H.ul,ownerState:B,children:z.map((function(e,t){return(0,tn.jsx)("li",{children:k((0,Pt.Z)({},e,{color:l,"aria-label":b(e.type,e.page,e.selected),shape:R,size:D,variant:A}))},t)}))})}))})),OR=RR;function PR(e){return(0,xn.Z)("MuiDataGrid",e)}var TR=(0,rn.Z)("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","autoHeight","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell","cellContent","cellCheckbox","cellSkeleton","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLinkOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","root","root--densityStandard","root--densityComfortable","root--densityCompact","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),MR=(0,Zt.ZP)("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:function(e,t){return[(0,o.Z)({},"&.".concat(TR.autoHeight),t.autoHeight),(0,o.Z)({},"&.".concat(TR.aggregationColumnHeader),t.aggregationColumnHeader),(0,o.Z)({},"&.".concat(TR["aggregationColumnHeader--alignLeft"]),t["aggregationColumnHeader--alignLeft"]),(0,o.Z)({},"&.".concat(TR["aggregationColumnHeader--alignCenter"]),t["aggregationColumnHeader--alignCenter"]),(0,o.Z)({},"&.".concat(TR["aggregationColumnHeader--alignRight"]),t["aggregationColumnHeader--alignRight"]),(0,o.Z)({},"&.".concat(TR.aggregationColumnHeaderLabel),t.aggregationColumnHeaderLabel),(0,o.Z)({},"& .".concat(TR.editBooleanCell),t.editBooleanCell),(0,o.Z)({},"& .".concat(TR["cell--editing"]),t["cell--editing"]),(0,o.Z)({},"& .".concat(TR["cell--textCenter"]),t["cell--textCenter"]),(0,o.Z)({},"& .".concat(TR["cell--textLeft"]),t["cell--textLeft"]),(0,o.Z)({},"& .".concat(TR["cell--textRight"]),t["cell--textRight"]),(0,o.Z)({},"& .".concat(TR["cell--withRenderer"]),t["cell--withRenderer"]),(0,o.Z)({},"& .".concat(TR.cell),t.cell),(0,o.Z)({},"& .".concat(TR.cellContent),t.cellContent),(0,o.Z)({},"& .".concat(TR.cellCheckbox),t.cellCheckbox),(0,o.Z)({},"& .".concat(TR.cellSkeleton),t.cellSkeleton),(0,o.Z)({},"& .".concat(TR.checkboxInput),t.checkboxInput),(0,o.Z)({},"& .".concat(TR["columnHeader--alignCenter"]),t["columnHeader--alignCenter"]),(0,o.Z)({},"& .".concat(TR["columnHeader--alignLeft"]),t["columnHeader--alignLeft"]),(0,o.Z)({},"& .".concat(TR["columnHeader--alignRight"]),t["columnHeader--alignRight"]),(0,o.Z)({},"& .".concat(TR["columnHeader--dragging"]),t["columnHeader--dragging"]),(0,o.Z)({},"& .".concat(TR["columnHeader--moving"]),t["columnHeader--moving"]),(0,o.Z)({},"& .".concat(TR["columnHeader--numeric"]),t["columnHeader--numeric"]),(0,o.Z)({},"& .".concat(TR["columnHeader--sortable"]),t["columnHeader--sortable"]),(0,o.Z)({},"& .".concat(TR["columnHeader--sorted"]),t["columnHeader--sorted"]),(0,o.Z)({},"& .".concat(TR.columnHeader),t.columnHeader),(0,o.Z)({},"& .".concat(TR.columnHeaderCheckbox),t.columnHeaderCheckbox),(0,o.Z)({},"& .".concat(TR.columnHeaderDraggableContainer),t.columnHeaderDraggableContainer),(0,o.Z)({},"& .".concat(TR.columnHeaderTitleContainer),t.columnHeaderTitleContainer),(0,o.Z)({},"& .".concat(TR["columnSeparator--resizable"]),t["columnSeparator--resizable"]),(0,o.Z)({},"& .".concat(TR["columnSeparator--resizing"]),t["columnSeparator--resizing"]),(0,o.Z)({},"& .".concat(TR.columnSeparator),t.columnSeparator),(0,o.Z)({},"& .".concat(TR.filterIcon),t.filterIcon),(0,o.Z)({},"& .".concat(TR.iconSeparator),t.iconSeparator),(0,o.Z)({},"& .".concat(TR.menuIcon),t.menuIcon),(0,o.Z)({},"& .".concat(TR.menuIconButton),t.menuIconButton),(0,o.Z)({},"& .".concat(TR.menuOpen),t.menuOpen),(0,o.Z)({},"& .".concat(TR.menuList),t.menuList),(0,o.Z)({},"& .".concat(TR["row--editable"]),t["row--editable"]),(0,o.Z)({},"& .".concat(TR["row--editing"]),t["row--editing"]),(0,o.Z)({},"& .".concat(TR["row--dragging"]),t["row--dragging"]),(0,o.Z)({},"& .".concat(TR.row),t.row),(0,o.Z)({},"& .".concat(TR.rowReorderCellPlaceholder),t.rowReorderCellPlaceholder),(0,o.Z)({},"& .".concat(TR.rowReorderCell),t.rowReorderCell),(0,o.Z)({},"& .".concat(TR["rowReorderCell--draggable"]),t["rowReorderCell--draggable"]),(0,o.Z)({},"& .".concat(TR.sortIcon),t.sortIcon),(0,o.Z)({},"& .".concat(TR.withBorder),t.withBorder),(0,o.Z)({},"& .".concat(TR.treeDataGroupingCell),t.treeDataGroupingCell),(0,o.Z)({},"& .".concat(TR.treeDataGroupingCellToggle),t.treeDataGroupingCellToggle),(0,o.Z)({},"& .".concat(TR.detailPanelToggleCell),t.detailPanelToggleCell),(0,o.Z)({},"& .".concat(TR["detailPanelToggleCell--expanded"]),t["detailPanelToggleCell--expanded"]),t.root]}})((function(e){var t,n,r,i=e.theme,a="light"===i.palette.mode?(0,Lt.$n)((0,Lt.Fq)(i.palette.divider,1),.88):(0,Lt._j)((0,Lt.Fq)(i.palette.divider,1),.68);return(0,Pt.Z)({flex:1,boxSizing:"border-box",position:"relative",border:"1px solid ".concat(a),borderRadius:i.shape.borderRadius,color:i.palette.text.primary},i.typography.body2,(r={outline:"none",height:"100%",display:"flex",flexDirection:"column"},(0,o.Z)(r,"&.".concat(TR.autoHeight),(0,o.Z)({height:"auto"},"& .".concat(TR["row--lastVisible"]," .").concat(TR.cell),{borderBottomColor:"transparent"})),(0,o.Z)(r,"& .".concat(TR["virtualScrollerContent--overflowed"]," .").concat(TR["row--lastVisible"]," .").concat(TR.cell),{borderBottomColor:"transparent"}),(0,o.Z)(r,"& .".concat(TR.columnHeader,", & .").concat(TR.cell),{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"}),(0,o.Z)(r,"& .".concat(TR.columnHeader,":focus-within, & .").concat(TR.cell,":focus-within"),{outline:"solid ".concat((0,Lt.Fq)(i.palette.primary.main,.5)," 1px"),outlineWidth:1,outlineOffset:-1}),(0,o.Z)(r,"& .".concat(TR.columnHeader,":focus, & .").concat(TR.cell,":focus"),{outline:"solid ".concat(i.palette.primary.main," 1px")}),(0,o.Z)(r,"& .".concat(TR.columnHeaderCheckbox,", & .").concat(TR.cellCheckbox),{padding:0,justifyContent:"center",alignItems:"center"}),(0,o.Z)(r,"& .".concat(TR.columnHeader),{position:"relative",display:"flex",alignItems:"center"}),(0,o.Z)(r,"& .".concat(TR["columnHeader--sorted"]," .").concat(TR.iconButtonContainer,", & .").concat(TR["columnHeader--filtered"]," .").concat(TR.iconButtonContainer),{visibility:"visible",width:"auto"}),(0,o.Z)(r,"& .".concat(TR.columnHeader,":not(.").concat(TR["columnHeader--sorted"],") .").concat(TR.sortIcon),{opacity:0,transition:i.transitions.create(["opacity"],{duration:i.transitions.duration.shorter})}),(0,o.Z)(r,"& .".concat(TR.columnHeader,":not(.").concat(TR["columnHeader--sorted"],"):hover .").concat(TR.sortIcon),{opacity:.5}),(0,o.Z)(r,"& .".concat(TR.columnHeaderTitleContainer),{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"}),(0,o.Z)(r,"& .".concat(TR.columnHeaderTitleContainerContent),{overflow:"hidden",display:"flex",alignItems:"center"}),(0,o.Z)(r,"& .".concat(TR["columnHeader--filledGroup"]," .").concat(TR.columnHeaderTitleContainer),{borderBottom:"solid ".concat(a," 1px"),boxSizing:"border-box"}),(0,o.Z)(r,"& .".concat(TR["columnHeader--filledGroup"],".").concat(TR["columnHeader--showColumnBorder"]," .").concat(TR.columnHeaderTitleContainer),{borderBottom:"none"}),(0,o.Z)(r,"& .".concat(TR["columnHeader--filledGroup"],".").concat(TR["columnHeader--showColumnBorder"]),{borderBottom:"solid ".concat(a," 1px"),boxSizing:"border-box"}),(0,o.Z)(r,"& .".concat(TR.sortIcon,", & .").concat(TR.filterIcon),{fontSize:"inherit"}),(0,o.Z)(r,"& .".concat(TR["columnHeader--sortable"]),{cursor:"pointer"}),(0,o.Z)(r,"& .".concat(TR["columnHeader--alignCenter"]," .").concat(TR.columnHeaderTitleContainer),{justifyContent:"center"}),(0,o.Z)(r,"& .".concat(TR["columnHeader--alignRight"]," .").concat(TR.columnHeaderDraggableContainer,", & .").concat(TR["columnHeader--alignRight"]," .").concat(TR.columnHeaderTitleContainer),{flexDirection:"row-reverse"}),(0,o.Z)(r,"& .".concat(TR["columnHeader--alignCenter"]," .").concat(TR.menuIcon,", & .").concat(TR["columnHeader--alignRight"]," .").concat(TR.menuIcon),{marginRight:"auto",marginLeft:-6}),(0,o.Z)(r,"& .".concat(TR["columnHeader--alignRight"]," .").concat(TR.menuIcon,", & .").concat(TR["columnHeader--alignRight"]," .").concat(TR.menuIcon),{marginRight:"auto",marginLeft:-10}),(0,o.Z)(r,"& .".concat(TR["columnHeader--moving"]),{backgroundColor:i.palette.action.hover}),(0,o.Z)(r,"& .".concat(TR.columnSeparator),{position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:a}),(0,o.Z)(r,"& .".concat(TR["columnSeparator--sideLeft"]),{left:-12}),(0,o.Z)(r,"& .".concat(TR["columnSeparator--sideRight"]),{right:-12}),(0,o.Z)(r,"& .".concat(TR["columnSeparator--resizable"]),(t={cursor:"col-resize",touchAction:"none","&:hover":{color:i.palette.text.primary,"@media (hover: none)":{color:a}}},(0,o.Z)(t,"&.".concat(TR["columnSeparator--resizing"]),{color:i.palette.text.primary}),(0,o.Z)(t,"& svg",{pointerEvents:"none"}),t)),(0,o.Z)(r,"& .".concat(TR.iconSeparator),{color:"inherit"}),(0,o.Z)(r,"& .".concat(TR.menuIcon),{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"}),(0,o.Z)(r,"& .".concat(TR.columnHeader,":hover"),(n={},(0,o.Z)(n,"& .".concat(TR.iconButtonContainer),{visibility:"visible",width:"auto"}),(0,o.Z)(n,"& .".concat(TR.menuIcon),{width:"auto",visibility:"visible"}),n)),(0,o.Z)(r,".".concat(TR.menuOpen),{visibility:"visible",width:"auto"}),(0,o.Z)(r,"& .".concat(TR.row),{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:i.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:(0,Lt.Fq)(i.palette.primary.main,i.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:(0,Lt.Fq)(i.palette.primary.main,i.palette.action.selectedOpacity+i.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,Lt.Fq)(i.palette.primary.main,i.palette.action.selectedOpacity)}}}}),(0,o.Z)(r,"& .".concat(TR.cell),{display:"flex",alignItems:"center",borderBottom:"1px solid ".concat(a)}),(0,o.Z)(r,"& .".concat(TR.row,":not(.").concat(TR["row--dynamicHeight"],") > .").concat(TR.cell),{overflow:"hidden",whiteSpace:"nowrap"}),(0,o.Z)(r,"& .".concat(TR.cellContent),{overflow:"hidden",textOverflow:"ellipsis"}),(0,o.Z)(r,"& .".concat(TR.cell,".").concat(TR["cell--editing"]),{padding:1,display:"flex",boxShadow:i.shadows[2],backgroundColor:i.palette.background.paper,"&:focus-within":{outline:"solid ".concat(i.palette.primary.main," 1px"),outlineOffset:"-1px"}}),(0,o.Z)(r,"& .".concat(TR["row--editing"]),{boxShadow:i.shadows[2]}),(0,o.Z)(r,"& .".concat(TR["row--editing"]," .").concat(TR.cell),{boxShadow:i.shadows[0],backgroundColor:i.palette.background.paper}),(0,o.Z)(r,"& .".concat(TR.editBooleanCell),{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"}),(0,o.Z)(r,"& .".concat(TR.booleanCell,'[data-value="true"]'),{color:i.palette.text.secondary}),(0,o.Z)(r,"& .".concat(TR.booleanCell,'[data-value="false"]'),{color:i.palette.text.disabled}),(0,o.Z)(r,"& .".concat(TR.actionsCell),{display:"inline-flex",alignItems:"center",gridGap:i.spacing(1)}),(0,o.Z)(r,"& .".concat(TR.rowReorderCell),{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:i.palette.action.disabledOpacity}),(0,o.Z)(r,"& .".concat(TR["rowReorderCell--draggable"]),{cursor:"move",opacity:1}),(0,o.Z)(r,"& .".concat(TR.rowReorderCellContainer),{padding:0,alignItems:"stretch"}),(0,o.Z)(r,"& .".concat(TR.withBorder),{borderRight:"1px solid ".concat(a)}),(0,o.Z)(r,"& .".concat(TR["cell--textLeft"]),{justifyContent:"flex-start"}),(0,o.Z)(r,"& .".concat(TR["cell--textRight"]),{justifyContent:"flex-end"}),(0,o.Z)(r,"& .".concat(TR["cell--textCenter"]),{justifyContent:"center"}),(0,o.Z)(r,"& .".concat(TR.columnHeaderDraggableContainer),{display:"flex",width:"100%",height:"100%"}),(0,o.Z)(r,"& .".concat(TR.rowReorderCellPlaceholder),{display:"none"}),(0,o.Z)(r,"& .".concat(TR["columnHeader--dragging"],", & .").concat(TR["row--dragging"]),{background:i.palette.background.paper,padding:"0 12px",borderRadius:i.shape.borderRadius,opacity:i.palette.action.disabledOpacity}),(0,o.Z)(r,"& .".concat(TR["row--dragging"]),(0,o.Z)({background:i.palette.background.paper,padding:"0 12px",borderRadius:i.shape.borderRadius,opacity:i.palette.action.disabledOpacity},"& .".concat(TR.rowReorderCellPlaceholder),{display:"flex"})),(0,o.Z)(r,"& .".concat(TR.treeDataGroupingCell),{display:"flex",alignItems:"center",width:"100%"}),(0,o.Z)(r,"& .".concat(TR.treeDataGroupingCellToggle),{flex:"0 0 28px",alignSelf:"stretch",marginRight:i.spacing(2)}),(0,o.Z)(r,"& .".concat(TR.groupingCriteriaCell),{display:"flex",alignItems:"center",width:"100%"}),(0,o.Z)(r,"& .".concat(TR.groupingCriteriaCellToggle),{flex:"0 0 28px",alignSelf:"stretch",marginRight:i.spacing(2)}),r))})),LR="NOT_FOUND";var ZR=function(e,t){return e===t};function IR(e,t){var n="object"===typeof t?t:{equalityCheck:t},r=n.equalityCheck,i=void 0===r?ZR:r,o=n.maxSize,a=void 0===o?1:o,l=n.resultEqualityCheck,s=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}}(i),c=1===a?function(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:LR},put:function(e,n){t={key:e,value:n}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}(s):function(e,t){var n=[];function r(e){var r=n.findIndex((function(n){return t(e,n.key)}));if(r>-1){var i=n[r];return r>0&&(n.splice(r,1),n.unshift(i)),i.value}return LR}return{get:r,put:function(t,i){r(t)===LR&&(n.unshift({key:t,value:i}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(a,s);function u(){var t=c.get(arguments);if(t===LR){if(t=e.apply(null,arguments),l){var n=c.getEntries().find((function(e){return l(e.value,t)}));n&&(t=n.value)}c.put(arguments,t)}return t}return u.clearCache=function(){return c.clear()},u}function DR(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var o,a=0,l={memoizeOptions:void 0},s=r.pop();if("object"===typeof s&&(l=s,s=r.pop()),"function"!==typeof s)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof s+"]");var c=l.memoizeOptions,u=void 0===c?n:c,d=Array.isArray(u)?u:[u],f=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"===typeof e}))){var n=t.map((function(e){return"function"===typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}(r),h=e.apply(void 0,[function(){return a++,s.apply(null,arguments)}].concat(d)),p=e((function(){for(var e=[],t=f.length,n=0;n<t;n++)e.push(f[n].apply(null,arguments));return o=h.apply(null,e)}));return Object.assign(p,{resultFunc:s,memoizedResultFunc:h,dependencies:f,lastResult:function(){return o},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),p}}var jR=DR(IR),AR=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"warning",n=!1,r=Array.isArray(e)?e.join("\n"):e;return function(){n||(n=!0,"error"===t?console.error(r):console.warn(r))}},NR=function(e,t){return e},FR={cache:null},zR=(AR(["MUI: A selector was called without passing the instance ID, which may impact the performance of the grid.","To fix, call it with `apiRef`, e.g. `mySelector(apiRef)`, or pass the instance ID explicitly, e.g `mySelector(state, apiRef.current.instanceId)`."]),function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null===FR.cache&&(FR.cache={});var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n[0],o=n[1],a=!!i.current,l=a?i.current.instanceId:null!=o?o:"default",s=a?i.current.state:i;null===FR.cache&&(FR.cache={});var c=FR.cache;if(c[l]&&c[l].get(t))return c[l].get(t)(s,l);var u=jR.apply(void 0,t);return c[l]||(c[l]=new Map),c[l].set(t,u),u(s,l)};return r.acceptsApiRef=!0,r}),BR=function(e){"undefined"!==typeof e?FR.cache&&FR.cache[e]&&delete FR.cache[e]:FR.cache=null},HR=function(e){return e.columns},WR=zR(HR,(function(e){return e.all})),UR=zR(HR,(function(e){return e.lookup})),VR=zR(WR,UR,(function(e,t){return e.map((function(e){return t[e]}))})),qR=zR(HR,(function(e){return e.columnVisibilityModel})),KR=zR(VR,qR,(function(e,t){return e.filter((function(e){return!1!==t[e.field]}))})),YR=(zR(KR,(function(e){return e.map((function(e){return e.field}))})),zR(KR,(function(e){for(var t=[],n=0,r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}))),GR=zR(KR,YR,(function(e,t){var n=e.length;return 0===n?0:t[n-1]+e[n-1].computedWidth})),XR=zR(VR,(function(e){return e.filter((function(e){return e.filterable}))})),$R=zR(VR,(function(e){return e.reduce((function(e,t){return t.filterable&&(e[t.field]=t),e}),{})})),JR=(NR(WR),NR(VR),NR(KR),NR(XR),NR(zR(XR,(function(e){return e.map((function(e){return e.field}))}))),NR(zR(KR,(function(e){return e.length}))),NR(zR(YR,GR,(function(e,t){return{totalWidth:t,positions:e}}))));AR(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);var QR=function(e,t){return function(e){return e.acceptsApiRef}(t)?t(e):t(e.current.state)},eO=t.createContext(void 0);function tO(){var e=t.useContext(eO);if(void 0===e)throw new Error(["MUI: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join("\n"));return e}var nO=t.createContext(void 0);var rO=function(){var e=t.useContext(nO);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},iO=function(e){return e.density},oO=zR(iO,(function(e){return e.value})),aO=zR(iO,(function(e){return e.rowHeight})),lO=zR(iO,(function(e){return e.headerHeight})),sO=zR(iO,(function(e){return e.headerGroupingMaxDepth})),cO=zR(iO,(function(e){return e.factor})),uO=zR(iO,(function(e){return e.headerHeight*(1+e.headerGroupingMaxDepth)})),dO=function(e){return e.rows},fO=zR(dO,(function(e){return e.totalRowCount})),hO=zR(dO,(function(e){return e.loading})),pO=zR(dO,(function(e){return e.totalTopLevelRowCount})),vO=zR(dO,(function(e){return e.idRowsLookup})),mO=zR(dO,(function(e){return e.idToIdLookup})),gO=zR(dO,(function(e){return e.tree})),yO=zR(dO,(function(e){return e.groupingName})),bO=zR(dO,(function(e){return e.treeDepth})),_O=zR(dO,(function(e){return e.ids})),wO=zR(dO,(function(e){return null==e?void 0:e.additionalRowGroups})),SO=zR(wO,(function(e){return null==e?void 0:e.pinnedRows})),xO=zR(SO,(function(e){var t,n;return((null==e||null==(t=e.top)?void 0:t.length)||0)+((null==e||null==(n=e.bottom)?void 0:n.length)||0)})),CO=["children","className"],kO=t.forwardRef((function(e,n){var r=rO(),i=e.children,o=e.className,a=(0,h.Z)(e,CO),l=tO(),s=QR(l,KR),c=QR(l,fO),d=QR(l,oO),f=QR(l,sO),p=t.useRef(null),v=(0,Dt.Z)(p,n),g=QR(l,xO),y=(0,Pt.Z)({},r,{density:d}),b=function(e){var t=e.autoHeight,n=e.density,r=e.classes,i={root:["root",t&&"autoHeight","root--density".concat((0,Mn.Z)(n))]};return(0,Mt.Z)(i,PR,r)}(y);l.current.rootElementRef=p;var _=t.useState(!1),w=(0,u.Z)(_,2),S=w[0],x=w[1];return(0,H_.Z)((function(){x(!0)}),[]),(0,H_.Z)((function(){S&&l.current.unstable_updateGridDimensionsRef()}),[l,S]),S?(0,tn.jsx)(MR,(0,Pt.Z)({ref:v,className:(0,m.Z)(o,b.root),ownerState:y,role:"grid","aria-colcount":s.length,"aria-rowcount":f+1+g+c,"aria-multiselectable":!r.disableMultipleSelection,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"]},a,{children:i})):null}));function EO(e,n){var r=t.useRef(null);if(r.current)return r.current;var i=e.current.getLogger(n);return r.current=i,i}var RO=function(e){var t=e.classes;return(0,Mt.Z)({root:["main"]},PR,t)},OO=(0,Zt.ZP)("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:function(e,t){return t.main}})((function(){return{position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"}}));function PO(e){var t=rO(),n=RO(t);return(0,tn.jsx)(OO,{className:n.root,ownerState:t,children:e.children})}var TO=function(e){te(n,e);var t=ie(n);function n(){return G(this,n),t.apply(this,arguments)}return J(n,[{key:"componentDidCatch",value:function(e,t){this.props.api.current&&(this.logError(e),this.props.api.current.showError({error:e,errorInfo:t}))}},{key:"logError",value:function(e,t){this.props.logger.error("An unexpected error occurred. Error: ".concat(e&&e.message,". "),e,t)}},{key:"render",value:function(){var e;return this.props.hasError||null!=(e=this.state)&&e.hasError?this.props.render(this.state):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}]),n}(t.Component);function MO(e){var t=e.children,n=tO(),r=EO(n,"GridErrorHandler"),i=rO(),o=n.current.state.error;return(0,tn.jsx)(TO,{hasError:null!=o,api:n,logger:r,render:function(e){var t;return(0,tn.jsx)(PO,{children:(0,tn.jsx)(i.components.ErrorOverlay,(0,Pt.Z)({},e,o,null==(t=i.componentsProps)?void 0:t.errorOverlay))})},children:t})}function LO(){var e,n=tO(),r=rO(),i=t.useRef(null);return n.current.headerRef=i,(0,tn.jsx)("div",{ref:i,children:(0,tn.jsx)(r.components.Header,(0,Pt.Z)({},null==(e=r.componentsProps)?void 0:e.header))})}function ZO(e,t){var n=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},r=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var r=this;n(this),this.__resizeRAF__&&t.cancelAnimationFrame(this.__resizeRAF__),this.__resizeRAF__=t.requestAnimationFrame((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(r)&&(r.__resizeLast__.width=r.offsetWidth,r.__resizeLast__.height=r.offsetHeight,r.__resizeListeners__.forEach((function(t){t.call(r,e)})))}))}},i=!1,o="",a="animationstart",l="Webkit Moz O ms".split(" "),s="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),c=document.createElement("fakeelement");if(void 0!==c.style.animationName&&(i=!0),!1===i)for(var u=0;u<l.length;u++)if(void 0!==c.style[l[u]+"AnimationName"]){o="-"+l[u].toLowerCase()+"-",a=s[u],i=!0;break}var d="resizeanim",f="@"+o+"keyframes "+d+" { from { opacity: 0; } to { opacity: 0; } } ",h=o+"animation: 1ms "+d+"; ";return{addResizeListener:function(i,o){if(!i.__resizeTriggers__){var l=i.ownerDocument,s=t.getComputedStyle(i);s&&"static"==s.position&&(i.style.position="relative"),function(t,n){if(!n.getElementById("muiDetectElementResize")){var r=(f||"")+".Mui-resizeTriggers { "+(h||"")+'visibility: hidden; opacity: 0; } .Mui-resizeTriggers, .Mui-resizeTriggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .Mui-resizeTriggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i="ShadowRoot"===n.constructor.name?n:t.head||t.getElementsByTagName("head")[0],o=t.createElement("style");o.id="muiDetectElementResize",o.type="text/css",null!=e&&o.setAttribute("nonce",e),o.styleSheet?o.styleSheet.cssText=r:o.appendChild(t.createTextNode(r)),i.appendChild(o)}}(l,i.getRootNode()),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=l.createElement("div")).className="Mui-resizeTriggers",i.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',i.appendChild(i.__resizeTriggers__),n(i),i.addEventListener("scroll",r,!0),a&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName==d&&n(i)},i.__resizeTriggers__.addEventListener(a,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(o)},removeResizeListener:function(e,t){if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",r,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(a,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(Mo){}}}}}var IO=["children","defaultHeight","defaultWidth","disableHeight","disableWidth","nonce","onResize","style"],DO=t.forwardRef((function(e,n){var r=e.children,i=e.defaultHeight,o=void 0===i?null:i,a=e.defaultWidth,l=void 0===a?null:a,s=e.disableHeight,c=void 0!==s&&s,d=e.disableWidth,f=void 0!==d&&d,p=e.nonce,v=e.onResize,m=e.style,g=(0,h.Z)(e,IO),y=t.useState({height:o,width:l}),b=(0,u.Z)(y,2),_=b[0],w=b[1],S=t.useRef(null),x=t.useRef(null),C=(0,jt.Z)((function(){if(x.current){var e=x.current.offsetHeight||0,t=x.current.offsetWidth||0,n=(0,wS.Z)(x.current).getComputedStyle(x.current),r=parseInt(n.paddingLeft,10)||0,i=parseInt(n.paddingRight,10)||0,o=e-(parseInt(n.paddingTop,10)||0)-(parseInt(n.paddingBottom,10)||0),a=t-r-i;(!c&&_.height!==o||!f&&_.width!==a)&&(w({height:o,width:a}),v&&v({height:o,width:a}))}}));(0,H_.Z)((function(){var e;if(x.current=S.current.parentElement,x){var t=(0,wS.Z)(null!=(e=x.current)?e:void 0),n=ZO(p,t);return n.addResizeListener(x.current,C),C(),function(){n.removeResizeListener(x.current,C)}}}),[p,C]);var k={overflow:"visible"},E={};c||(k.height=0,E.height=_.height),f||(k.width=0,E.width=_.width);var R=(0,Dt.Z)(S,n);return(0,tn.jsx)("div",(0,Pt.Z)({ref:R,style:(0,Pt.Z)({},k,m)},g,{children:null===_.height&&null===_.width?null:r(E)}))})),jO=function(e){return e.sorting},AO=zR(jO,(function(e){return e.sortedRows})),NO=zR(AO,vO,(function(e,t){return e.map((function(e){return{id:e,model:t[e]}}))})),FO=zR(jO,(function(e){return e.sortModel})),zO=zR(FO,(function(e){var t=e.reduce((function(t,n,r){return t[n.field]={sortDirection:n.sort,sortIndex:e.length>1?r+1:void 0},t}),{});return t})),BO=function(e){return e.filter},HO=zR(BO,(function(e){return e.filterModel})),WO=(zR(HO,(function(e){return e.quickFilterValues})),zR(BO,(function(e){return e.visibleRowsLookup}))),UO=zR(BO,(function(e){return e.filteredRowsLookup})),VO=(zR(BO,(function(e){return e.filteredDescendantCountLookup})),zR(WO,NO,(function(e,t){return t.filter((function(t){return!1!==e[t.id]}))}))),qO=zR(VO,(function(e){return e.map((function(e){return e.id}))})),KO=zR(UO,NO,(function(e,t){return t.filter((function(t){return!1!==e[t.id]}))})),YO=zR(KO,(function(e){return e.map((function(e){return e.id}))})),GO=zR(VO,gO,bO,(function(e,t,n){return n<2?e:e.filter((function(e){var n;return 0===(null==(n=t[e.id])?void 0:n.depth)}))})),XO=zR(VO,(function(e){return e.length})),$O=zR(GO,(function(e){return e.length})),JO=zR(HO,UR,(function(e,t){var n;return null==(n=e.items)?void 0:n.filter((function(e){var n,r;if(!e.columnField)return!1;var i=t[e.columnField];if(null==i||!i.filterOperators||0===(null==i||null==(n=i.filterOperators)?void 0:n.length))return!1;var o=i.filterOperators.find((function(t){return t.value===e.operatorValue}));return!!o&&(!o.InputComponent||null!=e.value&&""!==(null==(r=e.value)?void 0:r.toString()))}))})),QO=zR(JO,(function(e){return e.reduce((function(e,t){return e[t.columnField]?e[t.columnField].push(t):e[t.columnField]=[t],e}),{})}));function eP(e){var n,r,i=tO(),o=rO(),a=QR(i,uO),l=t.useState((function(){var e,t;return null!=(e=null==(t=i.current.getRootDimensions())?void 0:t.viewportInnerSize)?e:null})),s=(0,u.Z)(l,2),c=s[0],d=s[1],f=t.useCallback((function(){var e,t;d(null!=(e=null==(t=i.current.getRootDimensions())?void 0:t.viewportInnerSize)?e:null)}),[i]);(0,H_.Z)((function(){return i.current.subscribeEvent("viewportInnerSizeChange",f)}),[i,f]);var h=null!=(n=null==c?void 0:c.height)?n:0;return o.autoHeight&&0===h&&(h="auto"),c?(0,tn.jsx)("div",(0,Pt.Z)({style:{height:h,width:null!=(r=null==c?void 0:c.width)?r:0,position:"absolute",top:a,bottom:"auto"===h?0:void 0}},e)):null}function tP(){var e,t,n,r=tO(),i=rO(),o=QR(r,fO),a=QR(r,XO),l=QR(r,hO),s=!l&&o>0&&0===a,c=null;l||0!==o||(c=(0,tn.jsx)(i.components.NoRowsOverlay,(0,Pt.Z)({},null==(e=i.componentsProps)?void 0:e.noRowsOverlay)));s&&(c=(0,tn.jsx)(i.components.NoResultsOverlay,(0,Pt.Z)({},null==(t=i.componentsProps)?void 0:t.noResultsOverlay)));l&&(c=(0,tn.jsx)(i.components.LoadingOverlay,(0,Pt.Z)({},null==(n=i.componentsProps)?void 0:n.loadingOverlay)));return null===c?null:(0,tn.jsx)(eP,{children:c})}function nP(e){var n=e.children,r=e.VirtualScrollerComponent,i=e.ColumnHeadersComponent,o=tO(),a=rO(),l=QR(o,uO),s=t.useState(a.disableVirtualization),c=(0,u.Z)(s,2),d=c[0],f=c[1],h=t.useCallback((function(){f(!0)}),[]),p=t.useCallback((function(){f(!1)}),[]);t.useEffect((function(){f(a.disableVirtualization)}),[a.disableVirtualization]),o.current.unstable_disableVirtualization=h,o.current.unstable_enableVirtualization=p;var v=t.useRef(null),m=t.useRef(null),g=t.useRef(null),y=t.useRef(null);o.current.columnHeadersContainerElementRef=m,o.current.columnHeadersElementRef=v,o.current.windowRef=g,o.current.renderingZoneRef=y;var b=t.useCallback((function(e){o.current.publishEvent("resize",e)}),[o]);return(0,tn.jsxs)(PO,{children:[(0,tn.jsx)(tP,{}),(0,tn.jsx)(i,{ref:m,innerRef:v}),(0,tn.jsx)(DO,{nonce:a.nonce,disableHeight:a.autoHeight,onResize:b,children:function(e){var t={width:e.width,height:e.height?e.height-l:"auto",marginTop:l};return(0,tn.jsx)(r,{ref:g,style:t,disableVirtualization:d})}}),n]})}function rP(){var e,n=tO(),r=rO(),i=t.useRef(null);return n.current.footerRef=i,r.hideFooter?null:(0,tn.jsx)("div",{ref:i,children:(0,tn.jsx)(r.components.Footer,(0,Pt.Z)({},null==(e=r.componentsProps)?void 0:e.footer))})}var iP=function(e){var t=e.apiRef,n=e.props,r=e.children;return(0,tn.jsx)(nO.Provider,{value:n,children:(0,tn.jsx)(eO.Provider,{value:t,children:r})})};function oP(e){return"function"===typeof e}function aP(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}var lP=function(e,t,n){return Math.max(t,Math.min(n,e))};function sP(e,t){if(e===t)return!0;if(e&&t&&"object"===typeof e&&"object"===typeof t){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r+=1)if(!sP(e[r],t[r]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(var i=Array.from(e.entries()),o=0;o<i.length;o+=1)if(!t.has(i[o][0]))return!1;for(var a=0;a<i.length;a+=1){var l=i[a];if(!sP(l[1],t.get(l[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(var s=Array.from(e.entries()),c=0;c<s.length;c+=1)if(!t.has(s[c][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){var u=e.length;if(u!==t.length)return!1;for(var d=0;d<u;d+=1)if(e[d]!==t[d])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var f=Object.keys(e),h=f.length;if(h!==Object.keys(t).length)return!1;for(var p=0;p<h;p+=1)if(!Object.prototype.hasOwnProperty.call(t,f[p]))return!1;for(var v=0;v<h;v+=1){var m=f[v];if(!sP(e[m],t[m]))return!1}return!0}return e!==e&&t!==t}function cP(e,t,n){var r=function(e){return function(){var t=e+=1831565813;return t=Math.imul(t^t>>>15,1|t),(((t^=t+Math.imul(t^t>>>7,61|t))^t>>>14)>>>0)/4294967296}}(e);return function(){return t+(n-t)*r()}}function uP(e){return"function"===typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}var dP=function(){try{var e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(pW){return!1}}()&&null!=window.localStorage.getItem("DEBUG"),fP=function(){},hP={debug:fP,info:fP,warn:fP,error:fP},pP=["debug","info","warn","error"];function vP(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:console,r=pP.indexOf(t);if(-1===r)throw new Error("MUI: Log level ".concat(t," not recognized."));var i=pP.reduce((function(t,i,o){return t[i]=o>=r?function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var a=r[0],l=r.slice(1);n[i].apply(n,["MUI: ".concat(e," - ").concat(a)].concat((0,v.Z)(l)))}:fP,t}),{});return i}function mP(e,n,r){var i=t.useRef(n),o=t.useState(Object.keys(n)),a=(0,u.Z)(o,1)[0],l=t.useCallback((function(){e.current&&a.forEach((function(t){e.current.hasOwnProperty(t)||(e.current[t]=function(){var e;return(e=i.current)[t].apply(e,arguments)})}))}),[a,e]);t.useEffect((function(){i.current=n}),[n]),t.useEffect((function(){l()}),[l]),l()}var gP,yP=1e3,bP=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yP;G(this,e),this.timeouts=new Map,this.cleanupTimeout=yP,this.cleanupTimeout=t}return J(e,[{key:"register",value:function(e,t,n){var r=this;this.timeouts||(this.timeouts=new Map);var i=setTimeout((function(){"function"===typeof t&&t(),r.timeouts.delete(n.cleanupToken)}),this.cleanupTimeout);this.timeouts.set(n.cleanupToken,i)}},{key:"unregister",value:function(e){var t=this.timeouts.get(e.cleanupToken);t&&(this.timeouts.delete(e.cleanupToken),clearTimeout(t))}},{key:"reset",value:function(){var e=this;this.timeouts&&(this.timeouts.forEach((function(t,n){e.unregister({cleanupToken:n})})),this.timeouts=void 0)}}]),e}(),_P=function(){function e(){G(this,e),this.registry=new FinalizationRegistry((function(e){"function"===typeof e&&e()}))}return J(e,[{key:"register",value:function(e,t,n){this.registry.register(e,t,n)}},{key:"unregister",value:function(e){this.registry.unregister(e)}},{key:"reset",value:function(){}}]),e}();!function(e){e.DataGrid="DataGrid",e.DataGridPro="DataGridPro"}(gP||(gP={}));var wP=J((function e(){G(this,e)}));var SP={registry:null},xP=function(e){var n=0;return function(r,i,o,a){null===e.registry&&(e.registry="undefined"!==typeof FinalizationRegistry?new _P:new bP);var l=t.useState(new wP),s=(0,u.Z)(l,1)[0],c=t.useRef(null),d=t.useRef();d.current=o;var f=t.useRef(null);if(!c.current&&d.current){c.current=r.current.subscribeEvent(i,(function(e,t,n){var r;t.defaultMuiPrevented||(null==(r=d.current)||r.call(d,e,t,n))}),a),n+=1,f.current={cleanupToken:n},e.registry.register(s,(function(){var e;null==(e=c.current)||e.call(c),c.current=null,f.current=null}),f.current)}else!d.current&&c.current&&(c.current(),c.current=null,f.current&&(e.registry.unregister(f.current),f.current=null));t.useEffect((function(){if(!c.current&&d.current){c.current=r.current.subscribeEvent(i,(function(e,t,n){var r;t.defaultMuiPrevented||(null==(r=d.current)||r.call(d,e,t,n))}),a)}return f.current&&e.registry&&(e.registry.unregister(f.current),f.current=null),function(){var e;null==(e=c.current)||e.call(c),c.current=null}}),[r,i,a])}}(SP),CP={isFirst:!0};function kP(e,t,n){xP(e,t,n,CP)}var EP=function(){function e(){G(this,e),this.maxListeners=10,this.warnOnce=!1,this.events={}}return J(e,[{key:"on",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.events[e];r||(r={highPriority:new Map,regular:new Map},this.events[e]=r),n.isFirst?r.highPriority.set(t,!0):r.regular.set(t,!0)}},{key:"removeListener",value:function(e,t){this.events[e]&&(this.events[e].regular.delete(t),this.events[e].highPriority.delete(t))}},{key:"removeAllListeners",value:function(){this.events={}}},{key:"emit",value:function(e){var t=this.events[e];if(t){for(var n=Array.from(t.highPriority.keys()),r=Array.from(t.regular.keys()),i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];for(var l=n.length-1;l>=0;l-=1){var s=n[l];t.highPriority.has(s)&&s.apply(this,o)}for(var c=0;c<r.length;c+=1){var u=r[c];t.regular.has(u)&&u.apply(this,o)}}}},{key:"once",value:function(e,t){var n=this;this.on(e,(function r(){n.removeListener(e,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];t.apply(n,o)}))}}]),e}(),RP=function(e){return void 0!==e.isPropagationStopped},OP=0;var PP="none",TP={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree"},MP=["stateId"],LP=function(e,n){var r=function(e,n){var r=t.useRef();r.current||(r.current={unstable_eventManager:new EP,unstable_caches:{},state:{},instanceId:OP},OP+=1),t.useImperativeHandle(e,(function(){return r.current}),[r]);var i=t.useCallback((function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var o=t[0],a=t[1],l=t[2],s=void 0===l?{}:l;if(s.defaultMuiPrevented=!1,!RP(s)||!s.isPropagationStopped()){var c=n.signature===gP.DataGridPro?{api:r.current}:{};r.current.unstable_eventManager.emit(o,a,s,c)}}),[r,n.signature]),o=t.useCallback((function(e,t,n){r.current.unstable_eventManager.on(e,t,n);var i=r.current;return function(){i.unstable_eventManager.removeListener(e,t)}}),[r]),a=t.useCallback((function(e){r.current.publishEvent("componentError",e)}),[r]);return mP(r,{subscribeEvent:o,publishEvent:i,showError:a}),t.useEffect((function(){var e=r.current;return function(){BR(e.instanceId),e.publishEvent("unmount")}}),[r]),r}(e,n);return function(e,n){e.current.getLogger=t.useCallback((function(e){return dP?vP(e,"debug",n.logger):n.logLevel?vP(e,n.logLevel.toString(),n.logger):hP}),[n.logLevel,n.logger])}(r,n),function(e,n){var r=t.useCallback((function(t){e.current.setState((function(e){return(0,Pt.Z)({},e,{error:t})}))}),[e]);t.useEffect((function(){n.error?r({error:n.error}):r(null)}),[r,n.error]),xP(e,"componentError",r)}(r,n),function(e,n){var r=t.useRef({}),i=t.useState(),a=(0,u.Z)(i,2)[1],l=t.useCallback((function(e){var t=e.stateId,n=(0,h.Z)(e,MP);r.current[t]=(0,Pt.Z)({},n,{stateId:t})}),[]),s=t.useCallback((function(t,i){var o;if(o=oP(t)?t(e.current.state):t,e.current.state===o)return!1;var a=!1,l=[];if(Object.keys(r.current).forEach((function(t){var n=r.current[t],i=n.stateSelector(e.current.state,e.current.instanceId),s=n.stateSelector(o,e.current.instanceId);s!==i&&(l.push({stateId:n.stateId,hasPropChanged:s!==n.propModel}),void 0!==n.propModel&&s!==n.propModel&&(a=!0))})),l.length>1)throw new Error("You're not allowed to update several sub-state in one transaction. You already updated ".concat(l[0].stateId,", therefore, you're not allowed to update ").concat(l.map((function(e){return e.stateId})).join(", ")," in the same transaction."));if(a||(e.current.state=o,e.current.publishEvent&&e.current.publishEvent("stateChange",o)),1===l.length){var s=l[0],c=s.stateId,u=s.hasPropChanged,d=r.current[c],f=d.stateSelector(o,e.current.instanceId);if(d.propOnChange&&u){var h=n.signature===gP.DataGridPro?{api:e.current,reason:i}:{reason:i};d.propOnChange(f,h)}a||e.current.publishEvent(d.changeEvent,f,{reason:i})}return!a}),[e,n.signature]),c=t.useCallback((function(t,n,r){return e.current.setState((function(e){return(0,Pt.Z)({},e,(0,o.Z)({},t,n(e[t])))}),r)}),[e]),d=t.useCallback((function(){return a((function(){return e.current.state}))}),[e]);mP(e,{setState:s,forceUpdate:d,unstable_updateControlState:c,unstable_registerControlState:l})}(r,n),function(e){var n=t.useRef({}),r=t.useCallback((function(e){e&&Object.values(e.appliers).forEach((function(e){e()}))}),[]),i=t.useCallback((function(e,t,i){n.current[e]||(n.current[e]={processors:new Map,appliers:{}});var o=n.current[e];return o.processors.get(t)!==i&&(o.processors.set(t,i),r(o)),function(){n.current[e].processors.set(t,null)}}),[r]),o=t.useCallback((function(e,t,r){return n.current[e]||(n.current[e]={processors:new Map,appliers:{}}),n.current[e].appliers[t]=r,function(){var r=n.current[e].appliers,i=(0,h.Z)(r,[t].map(X.Z));n.current[e].appliers=i}}),[]),a=t.useCallback((function(e){var t=n.current[e];r(t)}),[r]),l=t.useCallback((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=t[0],o=t[1],a=t[2];return n.current[i]?Array.from(n.current[i].processors.values()).reduce((function(e,t){return t?t(e,a):e}),o):o}),[]);mP(e,{unstable_registerPipeProcessor:i,unstable_registerPipeApplier:o,unstable_requestPipeProcessorsApplication:a,unstable_applyPipeProcessors:l})}(r),function(e){var n=t.useRef(new Map),r=t.useRef({}),i=t.useCallback((function(t,n,i){var o=function(){var e=r.current[n],i=(0,h.Z)(e,[t].map(X.Z));r.current[n]=i};r.current[n]||(r.current[n]={});var a=r.current[n],l=a[t];return a[t]=i,l&&l!==i?(t===e.current.unstable_getActiveStrategy(TP[n])&&e.current.publishEvent("activeStrategyProcessorChange",n),o):o}),[e]),o=t.useCallback((function(t,n){var i=e.current.unstable_getActiveStrategy(TP[t]);if(null==i)throw new Error("Can't apply a strategy processor before defining an active strategy");var o=r.current[t];if(!o||!o[i])throw new Error('No processor found for processor "'.concat(t,'" on strategy "').concat(i,'"'));return(0,o[i])(n)}),[e]),a=t.useCallback((function(e){var t,r=Array.from(n.current.entries()).find((function(t){var n=(0,u.Z)(t,2)[1];return n.group===e&&n.isAvailable()}));return null!=(t=null==r?void 0:r[0])?t:PP}),[]),l=t.useCallback((function(t,r,i){n.current.set(r,{group:t,isAvailable:i}),e.current.publishEvent("strategyAvailabilityChange")}),[e]);mP(e,{unstable_registerStrategyProcessor:i,unstable_applyStrategyProcessor:o,unstable_getActiveStrategy:a,unstable_setStrategyAvailability:l})}(r),function(e,n){mP(e,{getLocaleText:t.useCallback((function(e){if(null==n.localeText[e])throw new Error("Missing translation for key ".concat(e,"."));return n.localeText[e]}),[n.localeText])})}(r,n),r},ZP=function(e,n,r){var i=t.useRef(!1);i.current||(n.current.state=e(n.current.state,r,n),i.current=!0)};function IP(e){var t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);var n=document.createRange();n.selectNode(t);var r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}var DP=function(e){var n=t.useCallback((function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(0!==e.current.getSelectedRows().size){var n=e.current.getDataAsCsv({includeHeaders:t,delimiter:"\t"});navigator.clipboard?navigator.clipboard.writeText(n).catch((function(){IP(n)})):IP(n)}}),[e]),r=t.useCallback((function(t){var n=t.ctrlKey||t.metaKey||t.altKey;"C"===String.fromCharCode(t.keyCode)&&n&&(function(e){var t;return""!==(null==(t=window.getSelection())?void 0:t.toString())||!!e&&(e.selectionEnd||0)-(e.selectionStart||0)>0}(t.target)||e.current.unstable_copySelectedRowsToClipboard(t.altKey))}),[e]);!function(e,n,r,i,o){var a=EO(e,"useNativeEventListener"),l=t.useState(!1),s=(0,u.Z)(l,2),c=s[0],d=s[1],f=t.useRef(i),h=t.useCallback((function(e){return f.current&&f.current(e)}),[]);t.useEffect((function(){f.current=i}),[i]),t.useEffect((function(){var t;if((t=oP(n)?n():n&&n.current?n.current:null)&&r&&!c){a.debug("Binding native ".concat(r," event")),t.addEventListener(r,h,o);var i=t;d(!0),e.current.subscribeEvent("unmount",(function(){a.debug("Clearing native ".concat(r," event")),i.removeEventListener(r,h,o)}))}}),[n,h,r,c,a,o,e])}(e,e.current.rootElementRef,"keydown",r),mP(e,{unstable_copySelectedRowsToClipboard:n})},jP=function(e){return e.columnMenu},AP=function(e){return(0,Pt.Z)({},e,{columnMenu:{open:!1}})},NP=function(e){var n=t.useRef(!0);n.current&&(n.current=!1,e())},FP=function(e,n,r){var i=t.useRef(),o=t.useRef("mui-".concat(Math.round(1e9*Math.random()))),a=t.useCallback((function(){i.current=e.current.unstable_registerPipeProcessor(n,o.current,r)}),[e,r,n]);NP((function(){a()}));var l=t.useRef(!0);t.useEffect((function(){return l.current?l.current=!1:a(),function(){i.current&&(i.current(),i.current=null)}}),[a])},zP=function(e,n,r){var i=t.useRef(),o=t.useRef("mui-".concat(Math.round(1e9*Math.random()))),a=t.useCallback((function(){i.current=e.current.unstable_registerPipeApplier(n,o.current,r)}),[e,r,n]);NP((function(){a()}));var l=t.useRef(!0);t.useEffect((function(){return l.current?l.current=!1:a(),function(){i.current&&(i.current(),i.current=null)}}),[a])},BP=(0,Bx.Z)((0,tn.jsx)("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),HP=(0,Bx.Z)((0,tn.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),WP=(0,Bx.Z)((0,tn.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),UP=(0,Bx.Z)((0,tn.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),VP=(0,Bx.Z)((0,tn.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),qP=(0,Bx.Z)((0,tn.jsx)("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),KP=(0,Bx.Z)((0,tn.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 19l-4.99-5zm-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 14z"}),"Search"),YP=((0,Bx.Z)((0,tn.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu"),(0,Bx.Z)((0,tn.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle"),(0,Bx.Z)((0,tn.jsx)("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon")),GP=(0,Bx.Z)((0,tn.jsx)("path",{d:"M11 19V5h2v14z"}),"Separator"),XP=(0,Bx.Z)((0,tn.jsx)("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),$P=(0,Bx.Z)((0,tn.jsx)("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),JP=(0,Bx.Z)((0,tn.jsx)("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),QP=(0,Bx.Z)((0,tn.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),eT=(0,Bx.Z)((0,tn.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),tT=(0,Bx.Z)((0,tn.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),nT=(0,Bx.Z)((0,tn.jsx)("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),rT=(0,Bx.Z)((0,tn.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),iT=(0,Bx.Z)((0,tn.jsx)("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),oT=(0,Bx.Z)((0,tn.jsx)("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),aT=(0,Bx.Z)((0,tn.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),lT=(0,Bx.Z)((0,tn.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");function sT(e){return"object"===typeof e&&null!==e?e.value:e}function cT(e,t){if(void 0!==t){var n=t.find((function(t){var n=sT(t);return String(n)===String(e)}));return sT(n)}}var uT=["item","applyValue","type","apiRef","focusElementRef"];var dT=function(e,t,n){var r=e.valueOptions,i=e.valueFormatter,o=e.field;return[""].concat("function"===typeof r?(0,v.Z)(r({field:o})):(0,v.Z)(r||[])).map((function(e){var r="object"===typeof e,a=r?e.value:e,l=r?e.value:e,s=i&&""!==e?i({value:e,field:o,api:t}):e,c=r?e.label:s;return(0,tn.jsx)(n,{value:l,children:c},a)}))},fT=500;function hT(e){var n,r,i,o,a,l=e.item,s=e.applyValue,c=e.type,d=e.apiRef,f=e.focusElementRef,p=(0,h.Z)(e,uT);var v=t.useRef(),m=t.useState(null!=(n=l.value)?n:""),g=(0,u.Z)(m,2),y=g[0],b=g[1],_=t.useState(!1),w=(0,u.Z)(_,2),S=w[0],x=w[1],C=(0,eo.Z)(),k=rO(),E=null==(i=((null==(r=k.componentsProps)?void 0:r.baseSelect)||{}).native)||i,R="singleSelect"===c?{select:!0,SelectProps:(0,Pt.Z)({native:E},null==(o=k.componentsProps)?void 0:o.baseSelect),children:dT(d.current.getColumn(l.columnField),d.current,E?"option":BE)}:{},O=t.useCallback((function(e){var t=e.target.value;if("singleSelect"===c){var n=d.current.getColumn(l.columnField),r="function"===typeof n.valueOptions?n.valueOptions({field:n.field}):n.valueOptions;t=cT(t,r)}clearTimeout(v.current),b(String(t)),x(!0),v.current=setTimeout((function(){s((0,Pt.Z)({},l,{value:t})),x(!1)}),fT)}),[d,s,l,c]);t.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),t.useEffect((function(){var e,t=null!=(e=l.value)?e:"";b(String(t))}),[l.value]);var P=S?{endAdornment:(0,tn.jsx)(rT,{})}:p.InputProps;return(0,tn.jsx)(k.components.BaseTextField,(0,Pt.Z)({id:C,label:d.current.getLocaleText("filterPanelInputLabel"),placeholder:d.current.getLocaleText("filterPanelInputPlaceholder"),value:y,onChange:O,variant:"standard",type:c||"text",InputProps:P,InputLabelProps:{shrink:!0},inputRef:f},R,p,null==(a=k.componentsProps)?void 0:a.baseTextField))}var pT=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue","isValidating","debounceMs","isProcessingProps","onValueChange"],vT=(0,Zt.ZP)(nw,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:function(e,t){return t.editInputCell}})((function(e){var t=e.theme;return(0,Pt.Z)({},t.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})})),mT=t.forwardRef((function(e,n){var r,i,o=rO(),a=e.id,s=e.value,d=e.field,f=e.colDef,p=e.hasFocus,v=e.debounceMs,m=void 0===v?null!=(r=o.experimentalFeatures)&&r.newEditingApi?200:fT:v,g=e.isProcessingProps,y=e.onValueChange,b=(0,h.Z)(e,pT),_=tO(),w=t.useRef(),S=t.useState(s),x=(0,u.Z)(S,2),C=x[0],k=x[1],E=function(e){var t=e.classes;return(0,Mt.Z)({root:["editInputCell"]},PR,t)}(o),R=t.useCallback(function(){var e=c(l().mark((function e(t){var n,r,i,s;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.target.value,!y){e.next=4;break}return e.next=4,y(t,r);case 4:i=_.current.getColumn(d),s=r,i.valueParser&&null!=(n=o.experimentalFeatures)&&n.newEditingApi&&(s=i.valueParser(r,_.current.getCellParams(a,d))),k(s),_.current.setEditCellValue({id:a,field:d,value:s,debounceMs:m,unstable_skipValueParser:!0},t);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[_,m,d,a,y,null==(i=o.experimentalFeatures)?void 0:i.newEditingApi]),O=_.current.unstable_getEditCellMeta?_.current.unstable_getEditCellMeta(a,d):{};return t.useEffect((function(){"debouncedSetEditCellValue"!==O.changeReason&&k(s)}),[O.changeReason,s]),(0,H_.Z)((function(){p&&w.current.focus()}),[p]),(0,tn.jsx)(vT,(0,Pt.Z)({ref:n,inputRef:w,className:E.root,ownerState:o,fullWidth:!0,type:"number"===f.type?f.type:"text",value:null!=C?C:"",onChange:R,endAdornment:g?(0,tn.jsx)(rT,{}):void 0},b))})),gT=AR(["MUI: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),yT=function(e,t){return t&&e.length>1?(gT(),[e[0]]):e},bT=function(e,t){return function(n){return(0,Pt.Z)({},n,{sorting:(0,Pt.Z)({},n.sorting,{sortModel:yT(e,t)})})}},_T=function(e,t){var n=e.indexOf(t);return t&&-1!==n&&n+1!==e.length?e[n+1]:e[0]},wT=function(e,t){return null==e&&null!=t?-1:null==t&&null!=e?1:null==e&&null==t?0:null},ST=new Intl.Collator,xT=function(e,t){var n=wT(e,t);return null!==n?n:Number(e)-Number(t)},CT=function(e,t){var n=wT(e,t);return null!==n?n:e>t?1:e<t?-1:0},kT=function(e){var n=t.useRef({});return t.useEffect((function(){n.current=e})),n.current};function ET(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function RT(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,n=void 0===t||t,r=e.ignoreCase,i=void 0===r||r,o=e.limit,a=e.matchFrom,l=void 0===a?"any":a,s=e.stringify,c=e.trim,u=void 0!==c&&c;return function(e,t){var r=t.inputValue,a=t.getOptionLabel,c=u?r.trim():r;i&&(c=c.toLowerCase()),n&&(c=ET(c));var d=c?e.filter((function(e){var t=(s||a)(e);return i&&(t=t.toLowerCase()),n&&(t=ET(t)),"start"===l?0===t.indexOf(c):t.indexOf(c)>-1})):e;return"number"===typeof o?d.slice(0,o):d}}function OT(e,t){for(var n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}var PT=RT(),TT=5,MT=function(e){var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function LT(e){var n,r=e.unstable_isActiveElementInListbox,i=void 0===r?MT:r,o=e.unstable_classNamePrefix,a=void 0===o?"Mui":o,l=e.autoComplete,s=void 0!==l&&l,c=e.autoHighlight,d=void 0!==c&&c,f=e.autoSelect,h=void 0!==f&&f,p=e.blurOnSelect,v=void 0!==p&&p,m=e.clearOnBlur,g=void 0===m?!e.freeSolo:m,y=e.clearOnEscape,b=void 0!==y&&y,_=e.componentName,w=void 0===_?"useAutocomplete":_,S=e.defaultValue,x=void 0===S?e.multiple?[]:null:S,C=e.disableClearable,k=void 0!==C&&C,E=e.disableCloseOnSelect,R=void 0!==E&&E,O=e.disabled,P=e.disabledItemsFocusable,T=void 0!==P&&P,M=e.disableListWrap,L=void 0!==M&&M,Z=e.filterOptions,I=void 0===Z?PT:Z,D=e.filterSelectedOptions,j=void 0!==D&&D,A=e.freeSolo,N=void 0!==A&&A,F=e.getOptionDisabled,z=e.getOptionLabel,B=void 0===z?function(e){var t;return null!=(t=e.label)?t:e}:z,H=e.groupBy,W=e.handleHomeEndKeys,U=void 0===W?!e.freeSolo:W,V=e.id,q=e.includeInputInList,K=void 0!==q&&q,Y=e.inputValue,G=e.isOptionEqualToValue,X=void 0===G?function(e,t){return e===t}:G,$=e.multiple,J=void 0!==$&&$,Q=e.onChange,ee=e.onClose,te=e.onHighlightChange,ne=e.onInputChange,re=e.onOpen,ie=e.open,oe=e.openOnFocus,ae=void 0!==oe&&oe,le=e.options,se=e.readOnly,ce=void 0!==se&&se,ue=e.selectOnFocus,de=void 0===ue?!e.freeSolo:ue,fe=e.value,he=(0,O_.Z)(V);n=function(e){var t=B(e);return"string"!==typeof t?String(t):t};var pe=t.useRef(!1),ve=t.useRef(!0),me=t.useRef(null),ge=t.useRef(null),ye=t.useState(null),be=(0,u.Z)(ye,2),_e=be[0],we=be[1],Se=t.useState(-1),xe=(0,u.Z)(Se,2),Ce=xe[0],ke=xe[1],Ee=d?0:-1,Re=t.useRef(Ee),Oe=(0,sR.Z)({controlled:fe,default:x,name:w}),Pe=(0,u.Z)(Oe,2),Te=Pe[0],Me=Pe[1],Le=(0,sR.Z)({controlled:Y,default:"",name:w,state:"inputValue"}),Ze=(0,u.Z)(Le,2),Ie=Ze[0],De=Ze[1],je=t.useState(!1),Ae=(0,u.Z)(je,2),Ne=Ae[0],Fe=Ae[1],ze=t.useCallback((function(e,t){if((J?Te.length<t.length:null!==t)||g){var r;if(J)r="";else if(null==t)r="";else{var i=n(t);r="string"===typeof i?i:""}Ie!==r&&(De(r),ne&&ne(e,r,"reset"))}}),[n,Ie,J,ne,De,g,Te]),Be=(0,sR.Z)({controlled:ie,default:!1,name:w,state:"open"}),He=(0,u.Z)(Be,2),We=He[0],Ue=He[1],Ve=t.useState(!0),qe=(0,u.Z)(Ve,2),Ke=qe[0],Ye=qe[1],Ge=!J&&null!=Te&&Ie===n(Te),Xe=We&&!ce,$e=Xe?I(le.filter((function(e){return!j||!(J?Te:[Te]).some((function(t){return null!==t&&X(e,t)}))})),{inputValue:Ge&&Ke?"":Ie,getOptionLabel:n}):[],Je=kT({filteredOptions:$e,value:Te});t.useEffect((function(){var e=Te!==Je.value;Ne&&!e||N&&!e||ze(null,Te)}),[Te,ze,Ne,Je.value,N]);var Qe=We&&$e.length>0&&!ce,et=(0,SS.Z)((function(e){-1===e?me.current.focus():_e.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));t.useEffect((function(){J&&Ce>Te.length-1&&(ke(-1),et(-1))}),[Te,J,Ce,et]);var tt=(0,SS.Z)((function(e){var t=e.event,n=e.index,r=e.reason,i=void 0===r?"auto":r;if(Re.current=n,-1===n?me.current.removeAttribute("aria-activedescendant"):me.current.setAttribute("aria-activedescendant","".concat(he,"-option-").concat(n)),te&&te(t,-1===n?null:$e[n],i),ge.current){var o=ge.current.querySelector('[role="option"].'.concat(a,"-focused"));o&&(o.classList.remove("".concat(a,"-focused")),o.classList.remove("".concat(a,"-focusVisible")));var l=ge.current.parentElement.querySelector('[role="listbox"]');if(l)if(-1!==n){var s=ge.current.querySelector('[data-option-index="'.concat(n,'"]'));if(s&&(s.classList.add("".concat(a,"-focused")),"keyboard"===i&&s.classList.add("".concat(a,"-focusVisible")),l.scrollHeight>l.clientHeight&&"mouse"!==i)){var c=s,u=l.clientHeight+l.scrollTop,d=c.offsetTop+c.offsetHeight;d>u?l.scrollTop=d-l.clientHeight:c.offsetTop-c.offsetHeight*(H?1.3:0)<l.scrollTop&&(l.scrollTop=c.offsetTop-c.offsetHeight*(H?1.3:0))}}else l.scrollTop=0}})),nt=(0,SS.Z)((function(e){var t=e.event,r=e.diff,i=e.direction,o=void 0===i?"next":i,a=e.reason,l=void 0===a?"auto":a;if(Xe){var c=function(e,t){if(!ge.current||-1===e)return-1;for(var n=e;;){if("next"===t&&n===$e.length||"previous"===t&&-1===n)return-1;var r=ge.current.querySelector('[data-option-index="'.concat(n,'"]')),i=!T&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(!(r&&!r.hasAttribute("tabindex")||i))return n;n+="next"===t?1:-1}}(function(){var e=$e.length-1;if("reset"===r)return Ee;if("start"===r)return 0;if("end"===r)return e;var t=Re.current+r;return t<0?-1===t&&K?-1:L&&-1!==Re.current||Math.abs(r)>1?0:e:t>e?t===e+1&&K?-1:L||Math.abs(r)>1?e:0:t}(),o);if(tt({index:c,reason:l,event:t}),s&&"reset"!==r)if(-1===c)me.current.value=Ie;else{var u=n($e[c]);me.current.value=u,0===u.toLowerCase().indexOf(Ie.toLowerCase())&&Ie.length>0&&me.current.setSelectionRange(Ie.length,u.length)}}})),rt=t.useCallback((function(){if(Xe&&!function(){var e;if(-1!==Re.current&&Je.filteredOptions&&Je.filteredOptions.length!==$e.length&&(J?Je.value.every((function(e,t){return n(Te[t])===n(e)})):n(null!=(e=Je.value)?e:"")===n(null!=Te?Te:""))){var t=Je.filteredOptions[Re.current];if(t&&$e.some((function(e){return n(e)===n(t)})))return!0}return!1}()){var e=J?Te[0]:Te;if(0!==$e.length&&null!=e){if(ge.current)if(null==e)Re.current>=$e.length-1?tt({index:$e.length-1}):tt({index:Re.current});else{var t=$e[Re.current];if(J&&t&&-1!==OT(Te,(function(e){return X(t,e)})))return;var r=OT($e,(function(t){return X(t,e)}));-1===r?nt({diff:"reset"}):tt({index:r})}}else nt({diff:"reset"})}}),[$e.length,!J&&Te,j,nt,tt,Xe,Ie,J]),it=(0,SS.Z)((function(e){(0,Di.Z)(ge,e),e&&rt()}));t.useEffect((function(){rt()}),[rt]);var ot=function(e){We||(Ue(!0),Ye(!0),re&&re(e))},at=function(e,t){We&&(Ue(!1),ee&&ee(e,t))},lt=function(e,t,n,r){if(J){if(Te.length===t.length&&Te.every((function(e,n){return e===t[n]})))return}else if(Te===t)return;Q&&Q(e,t,n,r),Me(t)},st=t.useRef(!1),ct=function(e,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"selectOption",i=t;if(J){var o=OT(i=Array.isArray(Te)?Te.slice():[],(function(e){return X(t,e)}));-1===o?i.push(t):"freeSolo"!==n&&(i.splice(o,1),r="removeOption")}ze(e,i),lt(e,i,r,{option:t}),R||e&&(e.ctrlKey||e.metaKey)||at(e,r),(!0===v||"touch"===v&&st.current||"mouse"===v&&!st.current)&&me.current.blur()};var ut=function(e,t){if(J){""===Ie&&at(e,"toggleInput");var n=Ce;-1===Ce?""===Ie&&"previous"===t&&(n=Te.length-1):((n+="next"===t?1:-1)<0&&(n=0),n===Te.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;for(var n=e;;){if("next"===t&&n===Te.length||"previous"===t&&-1===n)return-1;var r=_e.querySelector('[data-tag-index="'.concat(n,'"]'));if(r&&r.hasAttribute("tabindex")&&!r.disabled&&"true"!==r.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),ke(n),et(n)}},dt=function(e){pe.current=!0,De(""),ne&&ne(e,"","clear"),lt(e,J?[]:null,"clear")},ft=function(e){return function(t){if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==Ce&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(ke(-1),et(-1)),229!==t.which))switch(t.key){case"Home":Xe&&U&&(t.preventDefault(),nt({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":Xe&&U&&(t.preventDefault(),nt({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),nt({diff:-TT,direction:"previous",reason:"keyboard",event:t}),ot(t);break;case"PageDown":t.preventDefault(),nt({diff:TT,direction:"next",reason:"keyboard",event:t}),ot(t);break;case"ArrowDown":t.preventDefault(),nt({diff:1,direction:"next",reason:"keyboard",event:t}),ot(t);break;case"ArrowUp":t.preventDefault(),nt({diff:-1,direction:"previous",reason:"keyboard",event:t}),ot(t);break;case"ArrowLeft":ut(t,"previous");break;case"ArrowRight":ut(t,"next");break;case"Enter":if(-1!==Re.current&&Xe){var n=$e[Re.current],r=!!F&&F(n);if(t.preventDefault(),r)return;ct(t,n,"selectOption"),s&&me.current.setSelectionRange(me.current.value.length,me.current.value.length)}else N&&""!==Ie&&!1===Ge&&(J&&t.preventDefault(),ct(t,Ie,"createOption","freeSolo"));break;case"Escape":Xe?(t.preventDefault(),t.stopPropagation(),at(t,"escape")):b&&(""!==Ie||J&&Te.length>0)&&(t.preventDefault(),t.stopPropagation(),dt(t));break;case"Backspace":if(J&&!ce&&""===Ie&&Te.length>0){var i=-1===Ce?Te.length-1:Ce,o=Te.slice();o.splice(i,1),lt(t,o,"removeOption",{option:Te[i]})}break;case"Delete":if(J&&!ce&&""===Ie&&Te.length>0&&-1!==Ce){var a=Ce,l=Te.slice();l.splice(a,1),lt(t,l,"removeOption",{option:Te[a]})}}}},ht=function(e){Fe(!0),ae&&!pe.current&&ot(e)},pt=function(e){i(ge)?me.current.focus():(Fe(!1),ve.current=!0,pe.current=!1,h&&-1!==Re.current&&Xe?ct(e,$e[Re.current],"blur"):h&&N&&""!==Ie?ct(e,Ie,"blur","freeSolo"):g&&ze(e,Te),at(e,"blur"))},vt=function(e){var t=e.target.value;Ie!==t&&(De(t),Ye(!1),ne&&ne(e,t,"input")),""===t?k||J||lt(e,null,"clear"):ot(e)},mt=function(e){tt({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},gt=function(){st.current=!0},yt=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));ct(e,$e[t],"selectOption"),st.current=!1},bt=function(e){return function(t){var n=Te.slice();n.splice(e,1),lt(t,n,"removeOption",{option:Te[e]})}},_t=function(e){We?at(e,"toggleInput"):ot(e)},wt=function(e){e.target.getAttribute("id")!==he&&e.preventDefault()},St=function(){me.current.focus(),de&&ve.current&&me.current.selectionEnd-me.current.selectionStart===0&&me.current.select(),ve.current=!1},xt=function(e){""!==Ie&&We||_t(e)},Ct=N&&Ie.length>0;Ct=Ct||(J?Te.length>0:null!==Te);var kt=$e;if(H){new Map;kt=$e.reduce((function(e,t,n){var r=H(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])}return O&&Ne&&pt(),{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,Pt.Z)({"aria-owns":Qe?"".concat(he,"-listbox"):null},e,{onKeyDown:ft(e),onMouseDown:wt,onClick:St})},getInputLabelProps:function(){return{id:"".concat(he,"-label"),htmlFor:he}},getInputProps:function(){return{id:he,value:Ie,onBlur:pt,onFocus:ht,onChange:vt,onMouseDown:xt,"aria-activedescendant":Xe?"":null,"aria-autocomplete":s?"both":"list","aria-controls":Qe?"".concat(he,"-listbox"):void 0,"aria-expanded":Qe,autoComplete:"off",ref:me,autoCapitalize:"none",spellCheck:"false",role:"combobox"}},getClearProps:function(){return{tabIndex:-1,onClick:dt}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:_t}},getTagProps:function(e){var t=e.index;return(0,Pt.Z)({key:t,"data-tag-index":t,tabIndex:-1},!ce&&{onDelete:bt(t)})},getListboxProps:function(){return{role:"listbox",id:"".concat(he,"-listbox"),"aria-labelledby":"".concat(he,"-label"),ref:it,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var t=e.index,r=e.option,i=(J?Te:[Te]).some((function(e){return null!=e&&X(r,e)})),o=!!F&&F(r);return{key:n(r),tabIndex:-1,role:"option",id:"".concat(he,"-option-").concat(t),onMouseOver:mt,onClick:yt,onTouchStart:gt,"data-option-index":t,"aria-disabled":o,"aria-selected":i}},id:he,inputValue:Ie,value:Te,dirty:Ct,popupOpen:Xe,focused:Ne||-1!==Ce,anchorEl:_e,setAnchorEl:we,focusedTag:Ce,groupedOptions:kt}}function ZT(e){return(0,xn.Z)("MuiListSubheader",e)}(0,rn.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var IT=["className","color","component","disableGutters","disableSticky","inset"],DT=(0,Zt.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"default"!==n.color&&t["color".concat((0,Mn.Z)(n.color))],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((function(e){var t=e.theme,n=e.ownerState;return(0,Pt.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===n.color&&{color:(t.vars||t).palette.primary.main},"inherit"===n.color&&{color:"inherit"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.inset&&{paddingLeft:72},!n.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})})),jT=t.forwardRef((function(e,t){var n=(0,It.Z)({props:e,name:"MuiListSubheader"}),r=n.className,i=n.color,o=void 0===i?"default":i,a=n.component,l=void 0===a?"li":a,s=n.disableGutters,c=void 0!==s&&s,u=n.disableSticky,d=void 0!==u&&u,f=n.inset,p=void 0!==f&&f,v=(0,h.Z)(n,IT),g=(0,Pt.Z)({},n,{color:o,component:l,disableGutters:c,disableSticky:d,inset:p}),y=function(e){var t=e.classes,n=e.color,r=e.disableGutters,i=e.inset,o=e.disableSticky,a={root:["root","default"!==n&&"color".concat((0,Mn.Z)(n)),!r&&"gutters",i&&"inset",!o&&"sticky"]};return(0,Mt.Z)(a,ZT,t)}(g);return(0,tn.jsx)(DT,(0,Pt.Z)({as:l,className:(0,m.Z)(y.root,r),ref:t,ownerState:g},v))})),AT=(0,Bx.Z)((0,tn.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function NT(e){return(0,xn.Z)("MuiChip",e)}var FT=(0,rn.Z)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),zT=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],BT=(0,Zt.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState,r=n.color,i=n.iconColor,a=n.clickable,l=n.onDelete,s=n.size,c=n.variant;return[(0,o.Z)({},"& .".concat(FT.avatar),t.avatar),(0,o.Z)({},"& .".concat(FT.avatar),t["avatar".concat((0,Mn.Z)(s))]),(0,o.Z)({},"& .".concat(FT.avatar),t["avatarColor".concat((0,Mn.Z)(r))]),(0,o.Z)({},"& .".concat(FT.icon),t.icon),(0,o.Z)({},"& .".concat(FT.icon),t["icon".concat((0,Mn.Z)(s))]),(0,o.Z)({},"& .".concat(FT.icon),t["iconColor".concat((0,Mn.Z)(i))]),(0,o.Z)({},"& .".concat(FT.deleteIcon),t.deleteIcon),(0,o.Z)({},"& .".concat(FT.deleteIcon),t["deleteIcon".concat((0,Mn.Z)(s))]),(0,o.Z)({},"& .".concat(FT.deleteIcon),t["deleteIconColor".concat((0,Mn.Z)(r))]),(0,o.Z)({},"& .".concat(FT.deleteIcon),t["deleteIcon".concat((0,Mn.Z)(c),"Color").concat((0,Mn.Z)(r))]),t.root,t["size".concat((0,Mn.Z)(s))],t["color".concat((0,Mn.Z)(r))],a&&t.clickable,a&&"default"!==r&&t["clickableColor".concat((0,Mn.Z)(r),")")],l&&t.deletable,l&&"default"!==r&&t["deletableColor".concat((0,Mn.Z)(r))],t[c],t["".concat(c).concat((0,Mn.Z)(r))]]}})((function(e){var t,n=e.theme,r=e.ownerState,i=(0,Lt.Fq)(n.palette.text.primary,.26),a="light"===n.palette.mode?n.palette.grey[700]:n.palette.grey[300];return(0,Pt.Z)((t={maxWidth:"100%",fontFamily:n.typography.fontFamily,fontSize:n.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(n.vars||n).palette.text.primary,backgroundColor:(n.vars||n).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:n.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box"},(0,o.Z)(t,"&.".concat(FT.disabled),{opacity:(n.vars||n).palette.action.disabledOpacity,pointerEvents:"none"}),(0,o.Z)(t,"& .".concat(FT.avatar),{marginLeft:5,marginRight:-6,width:24,height:24,color:n.vars?n.vars.palette.Chip.defaultAvatarColor:a,fontSize:n.typography.pxToRem(12)}),(0,o.Z)(t,"& .".concat(FT.avatarColorPrimary),{color:(n.vars||n).palette.primary.contrastText,backgroundColor:(n.vars||n).palette.primary.dark}),(0,o.Z)(t,"& .".concat(FT.avatarColorSecondary),{color:(n.vars||n).palette.secondary.contrastText,backgroundColor:(n.vars||n).palette.secondary.dark}),(0,o.Z)(t,"& .".concat(FT.avatarSmall),{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:n.typography.pxToRem(10)}),(0,o.Z)(t,"& .".concat(FT.icon),(0,Pt.Z)({marginLeft:5,marginRight:-6},"small"===r.size&&{fontSize:18,marginLeft:4,marginRight:-4},r.iconColor===r.color&&(0,Pt.Z)({color:n.vars?n.vars.palette.Chip.defaultIconColor:a},"default"!==r.color&&{color:"inherit"}))),(0,o.Z)(t,"& .".concat(FT.deleteIcon),(0,Pt.Z)({WebkitTapHighlightColor:"transparent",color:n.vars?"rgba(".concat(n.vars.palette.text.primaryChannel," / 0.26)"):i,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:n.vars?"rgba(".concat(n.vars.palette.text.primaryChannel," / 0.4)"):(0,Lt.Fq)(i,.4)}},"small"===r.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==r.color&&{color:n.vars?"rgba(".concat(n.vars.palette[r.color].contrastTextChannel," / 0.7)"):(0,Lt.Fq)(n.palette[r.color].contrastText,.7),"&:hover, &:active":{color:(n.vars||n).palette[r.color].contrastText}})),t),"small"===r.size&&{height:24},"default"!==r.color&&{backgroundColor:(n.vars||n).palette[r.color].main,color:(n.vars||n).palette[r.color].contrastText},r.onDelete&&(0,o.Z)({},"&.".concat(FT.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.selectedChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.focusOpacity,"))"):(0,Lt.Fq)(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}),r.onDelete&&"default"!==r.color&&(0,o.Z)({},"&.".concat(FT.focusVisible),{backgroundColor:(n.vars||n).palette[r.color].dark}))}),(function(e){var t,n=e.theme,r=e.ownerState;return(0,Pt.Z)({},r.clickable&&(t={userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.selectedChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.hoverOpacity,"))"):(0,Lt.Fq)(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity)}},(0,o.Z)(t,"&.".concat(FT.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.selectedChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.focusOpacity,"))"):(0,Lt.Fq)(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}),(0,o.Z)(t,"&:active",{boxShadow:(n.vars||n).shadows[1]}),t),r.clickable&&"default"!==r.color&&(0,o.Z)({},"&:hover, &.".concat(FT.focusVisible),{backgroundColor:(n.vars||n).palette[r.color].dark}))}),(function(e){var t,n,r=e.theme,i=e.ownerState;return(0,Pt.Z)({},"outlined"===i.variant&&(t={backgroundColor:"transparent",border:r.vars?"1px solid ".concat(r.vars.palette.Chip.defaultBorder):"1px solid ".concat("light"===r.palette.mode?r.palette.grey[400]:r.palette.grey[700])},(0,o.Z)(t,"&.".concat(FT.clickable,":hover"),{backgroundColor:(r.vars||r).palette.action.hover}),(0,o.Z)(t,"&.".concat(FT.focusVisible),{backgroundColor:(r.vars||r).palette.action.focus}),(0,o.Z)(t,"& .".concat(FT.avatar),{marginLeft:4}),(0,o.Z)(t,"& .".concat(FT.avatarSmall),{marginLeft:2}),(0,o.Z)(t,"& .".concat(FT.icon),{marginLeft:4}),(0,o.Z)(t,"& .".concat(FT.iconSmall),{marginLeft:2}),(0,o.Z)(t,"& .".concat(FT.deleteIcon),{marginRight:5}),(0,o.Z)(t,"& .".concat(FT.deleteIconSmall),{marginRight:3}),t),"outlined"===i.variant&&"default"!==i.color&&(n={color:(r.vars||r).palette[i.color].main,border:"1px solid ".concat(r.vars?"rgba(".concat(r.vars.palette[i.color].mainChannel," / 0.7)"):(0,Lt.Fq)(r.palette[i.color].main,.7))},(0,o.Z)(n,"&.".concat(FT.clickable,":hover"),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette[i.color].mainChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,Lt.Fq)(r.palette[i.color].main,r.palette.action.hoverOpacity)}),(0,o.Z)(n,"&.".concat(FT.focusVisible),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette[i.color].mainChannel," / ").concat(r.vars.palette.action.focusOpacity,")"):(0,Lt.Fq)(r.palette[i.color].main,r.palette.action.focusOpacity)}),(0,o.Z)(n,"& .".concat(FT.deleteIcon),{color:r.vars?"rgba(".concat(r.vars.palette[i.color].mainChannel," / 0.7)"):(0,Lt.Fq)(r.palette[i.color].main,.7),"&:hover, &:active":{color:(r.vars||r).palette[i.color].main}}),n))})),HT=(0,Zt.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:function(e,t){var n=e.ownerState.size;return[t.label,t["label".concat((0,Mn.Z)(n))]]}})((function(e){var t=e.ownerState;return(0,Pt.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===t.size&&{paddingLeft:8,paddingRight:8})}));function WT(e){return"Backspace"===e.key||"Delete"===e.key}var UT=t.forwardRef((function(e,n){var r=(0,It.Z)({props:e,name:"MuiChip"}),i=r.avatar,o=r.className,a=r.clickable,l=r.color,s=void 0===l?"default":l,c=r.component,u=r.deleteIcon,d=r.disabled,f=void 0!==d&&d,p=r.icon,v=r.label,g=r.onClick,y=r.onDelete,b=r.onKeyDown,_=r.onKeyUp,w=r.size,S=void 0===w?"medium":w,x=r.variant,C=void 0===x?"filled":x,k=r.tabIndex,E=r.skipFocusWhenDisabled,R=void 0!==E&&E,O=(0,h.Z)(r,zT),P=t.useRef(null),T=(0,Dt.Z)(P,n),M=function(e){e.stopPropagation(),y&&y(e)},L=!(!1===a||!g)||a,Z=L||y?Tn:c||"div",I=(0,Pt.Z)({},r,{component:Z,disabled:f,size:S,color:s,iconColor:t.isValidElement(p)&&p.props.color||s,onDelete:!!y,clickable:L,variant:C}),D=function(e){var t=e.classes,n=e.disabled,r=e.size,i=e.color,o=e.iconColor,a=e.onDelete,l=e.clickable,s=e.variant,c={root:["root",s,n&&"disabled","size".concat((0,Mn.Z)(r)),"color".concat((0,Mn.Z)(i)),l&&"clickable",l&&"clickableColor".concat((0,Mn.Z)(i)),a&&"deletable",a&&"deletableColor".concat((0,Mn.Z)(i)),"".concat(s).concat((0,Mn.Z)(i))],label:["label","label".concat((0,Mn.Z)(r))],avatar:["avatar","avatar".concat((0,Mn.Z)(r)),"avatarColor".concat((0,Mn.Z)(i))],icon:["icon","icon".concat((0,Mn.Z)(r)),"iconColor".concat((0,Mn.Z)(o))],deleteIcon:["deleteIcon","deleteIcon".concat((0,Mn.Z)(r)),"deleteIconColor".concat((0,Mn.Z)(i)),"deleteIcon".concat((0,Mn.Z)(s),"Color").concat((0,Mn.Z)(i))]};return(0,Mt.Z)(c,NT,t)}(I),j=Z===Tn?(0,Pt.Z)({component:c||"div",focusVisibleClassName:D.focusVisible},y&&{disableRipple:!0}):{},A=null;y&&(A=u&&t.isValidElement(u)?t.cloneElement(u,{className:(0,m.Z)(u.props.className,D.deleteIcon),onClick:M}):(0,tn.jsx)(AT,{className:(0,m.Z)(D.deleteIcon),onClick:M}));var N=null;i&&t.isValidElement(i)&&(N=t.cloneElement(i,{className:(0,m.Z)(D.avatar,i.props.className)}));var F=null;return p&&t.isValidElement(p)&&(F=t.cloneElement(p,{className:(0,m.Z)(D.icon,p.props.className)})),(0,tn.jsxs)(BT,(0,Pt.Z)({as:Z,className:(0,m.Z)(D.root,o),disabled:!(!L||!f)||void 0,onClick:g,onKeyDown:function(e){e.currentTarget===e.target&&WT(e)&&e.preventDefault(),b&&b(e)},onKeyUp:function(e){e.currentTarget===e.target&&(y&&WT(e)?y(e):"Escape"===e.key&&P.current&&P.current.blur()),_&&_(e)},ref:T,tabIndex:R&&f?-1:k,ownerState:I},j,O,{children:[N||F,(0,tn.jsx)(HT,{className:(0,m.Z)(D.label),ownerState:I,children:v}),A]}))})),VT=UT,qT=(0,Bx.Z)((0,tn.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function KT(e){return(0,xn.Z)("MuiAutocomplete",e)}var YT,GT,XT=(0,rn.Z)("MuiAutocomplete",["root","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),$T=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],JT=(0,Zt.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState,r=n.fullWidth,i=n.hasClearIcon,a=n.hasPopupIcon,l=n.inputFocused,s=n.size;return[(0,o.Z)({},"& .".concat(XT.tag),t.tag),(0,o.Z)({},"& .".concat(XT.tag),t["tagSize".concat((0,Mn.Z)(s))]),(0,o.Z)({},"& .".concat(XT.inputRoot),t.inputRoot),(0,o.Z)({},"& .".concat(XT.input),t.input),(0,o.Z)({},"& .".concat(XT.input),l&&t.inputFocused),t.root,r&&t.fullWidth,a&&t.hasPopupIcon,i&&t.hasClearIcon]}})((function(e){var t,n,r,i,a,l=e.ownerState;return(0,Pt.Z)((t={},(0,o.Z)(t,"&.".concat(XT.focused," .").concat(XT.clearIndicator),{visibility:"visible"}),(0,o.Z)(t,"@media (pointer: fine)",(0,o.Z)({},"&:hover .".concat(XT.clearIndicator),{visibility:"visible"})),t),l.fullWidth&&{width:"100%"},(a={},(0,o.Z)(a,"& .".concat(XT.tag),(0,Pt.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===l.size&&{margin:2,maxWidth:"calc(100% - 4px)"})),(0,o.Z)(a,"& .".concat(XT.inputRoot),(n={flexWrap:"wrap"},(0,o.Z)(n,".".concat(XT.hasPopupIcon,"&, .").concat(XT.hasClearIcon,"&"),{paddingRight:30}),(0,o.Z)(n,".".concat(XT.hasPopupIcon,".").concat(XT.hasClearIcon,"&"),{paddingRight:56}),(0,o.Z)(n,"& .".concat(XT.input),{width:0,minWidth:30}),n)),(0,o.Z)(a,"& .".concat(iw.root),{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}}),(0,o.Z)(a,"& .".concat(iw.root,".").concat(Y_.sizeSmall),(0,o.Z)({},"& .".concat(iw.input),{padding:"2px 4px 3px 0"})),(0,o.Z)(a,"& .".concat(Sw.root),(r={padding:9},(0,o.Z)(r,".".concat(XT.hasPopupIcon,"&, .").concat(XT.hasClearIcon,"&"),{paddingRight:39}),(0,o.Z)(r,".".concat(XT.hasPopupIcon,".").concat(XT.hasClearIcon,"&"),{paddingRight:65}),(0,o.Z)(r,"& .".concat(XT.input),{padding:"7.5px 4px 7.5px 6px"}),(0,o.Z)(r,"& .".concat(XT.endAdornment),{right:9}),r)),(0,o.Z)(a,"& .".concat(Sw.root,".").concat(Y_.sizeSmall),(0,o.Z)({paddingTop:6,paddingBottom:6,paddingLeft:6},"& .".concat(XT.input),{padding:"2.5px 4px 2.5px 6px"})),(0,o.Z)(a,"& .".concat(dw.root),(i={paddingTop:19,paddingLeft:8},(0,o.Z)(i,".".concat(XT.hasPopupIcon,"&, .").concat(XT.hasClearIcon,"&"),{paddingRight:39}),(0,o.Z)(i,".".concat(XT.hasPopupIcon,".").concat(XT.hasClearIcon,"&"),{paddingRight:65}),(0,o.Z)(i,"& .".concat(dw.input),{padding:"7px 4px"}),(0,o.Z)(i,"& .".concat(XT.endAdornment),{right:9}),i)),(0,o.Z)(a,"& .".concat(dw.root,".").concat(Y_.sizeSmall),(0,o.Z)({paddingBottom:1},"& .".concat(dw.input),{padding:"2.5px 4px"})),(0,o.Z)(a,"& .".concat(Y_.hiddenLabel),{paddingTop:8}),(0,o.Z)(a,"& .".concat(XT.input),(0,Pt.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},l.inputFocused&&{opacity:1})),a))})),QT=(0,Zt.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:function(e,t){return t.endAdornment}})({position:"absolute",right:0,top:"calc(50% - 14px)"}),eM=(0,Zt.ZP)(R_,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:function(e,t){return t.clearIndicator}})({marginRight:-2,padding:4,visibility:"hidden"}),tM=(0,Zt.ZP)(R_,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:function(e,t){var n=e.ownerState;return(0,Pt.Z)({},t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen)}})((function(e){var t=e.ownerState;return(0,Pt.Z)({padding:2,marginRight:-2},t.popupOpen&&{transform:"rotate(180deg)"})})),nM=(0,Zt.ZP)(Qi,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:function(e,t){var n=e.ownerState;return[(0,o.Z)({},"& .".concat(XT.option),t.option),t.popper,n.disablePortal&&t.popperDisablePortal]}})((function(e){var t=e.theme,n=e.ownerState;return(0,Pt.Z)({zIndex:(t.vars||t).zIndex.modal},n.disablePortal&&{position:"absolute"})})),rM=(0,Zt.ZP)(bS,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:function(e,t){return t.paper}})((function(e){var t=e.theme;return(0,Pt.Z)({},t.typography.body1,{overflow:"auto"})})),iM=(0,Zt.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:function(e,t){return t.loading}})((function(e){var t=e.theme;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),oM=(0,Zt.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:function(e,t){return t.noOptions}})((function(e){var t=e.theme;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),aM=(0,Zt.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:function(e,t){return t.listbox}})((function(e){var t,n,r=e.theme;return(0,o.Z)({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative"},"& .".concat(XT.option),(n={minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},(0,o.Z)(n,r.breakpoints.up("sm"),{minHeight:"auto"}),(0,o.Z)(n,"&.".concat(XT.focused),{backgroundColor:(r.vars||r).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}),(0,o.Z)(n,'&[aria-disabled="true"]',{opacity:(r.vars||r).palette.action.disabledOpacity,pointerEvents:"none"}),(0,o.Z)(n,"&.".concat(XT.focusVisible),{backgroundColor:(r.vars||r).palette.action.focus}),(0,o.Z)(n,'&[aria-selected="true"]',(t={backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,Lt.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity)},(0,o.Z)(t,"&.".concat(XT.focused),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.hoverOpacity,"))"):(0,Lt.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(r.vars||r).palette.action.selected}}),(0,o.Z)(t,"&.".concat(XT.focusVisible),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.focusOpacity,"))"):(0,Lt.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)}),t)),n))})),lM=(0,Zt.ZP)(jT,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:function(e,t){return t.groupLabel}})((function(e){var t=e.theme;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}})),sM=(0,Zt.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:function(e,t){return t.groupUl}})((0,o.Z)({padding:0},"& .".concat(XT.option),{paddingLeft:24})),cM=t.forwardRef((function(e,n){var r,i,o,a,l,s=(0,It.Z)({props:e,name:"MuiAutocomplete"}),c=(s.autoComplete,s.autoHighlight,s.autoSelect,s.blurOnSelect,s.ChipProps),u=s.className,d=s.clearIcon,f=void 0===d?YT||(YT=(0,tn.jsx)(qT,{fontSize:"small"})):d,p=s.clearOnBlur,v=(void 0===p&&s.freeSolo,s.clearOnEscape,s.clearText),g=void 0===v?"Clear":v,y=s.closeText,b=void 0===y?"Close":y,_=s.componentsProps,w=void 0===_?{}:_,S=s.defaultValue,x=(void 0===S&&s.multiple,s.disableClearable),C=void 0!==x&&x,k=(s.disableCloseOnSelect,s.disabled),E=void 0!==k&&k,R=(s.disabledItemsFocusable,s.disableListWrap,s.disablePortal),O=void 0!==R&&R,P=(s.filterSelectedOptions,s.forcePopupIcon),T=void 0===P?"auto":P,M=s.freeSolo,L=void 0!==M&&M,Z=s.fullWidth,I=void 0!==Z&&Z,D=s.getLimitTagsText,j=void 0===D?function(e){return"+".concat(e)}:D,A=s.getOptionLabel,N=void 0===A?function(e){var t;return null!=(t=e.label)?t:e}:A,F=s.groupBy,z=s.handleHomeEndKeys,B=(void 0===z&&s.freeSolo,s.includeInputInList,s.limitTags),H=void 0===B?-1:B,W=s.ListboxComponent,U=void 0===W?"ul":W,V=s.ListboxProps,q=s.loading,K=void 0!==q&&q,Y=s.loadingText,G=void 0===Y?"Loading\u2026":Y,X=s.multiple,$=void 0!==X&&X,J=s.noOptionsText,Q=void 0===J?"No options":J,ee=(s.openOnFocus,s.openText),te=void 0===ee?"Open":ee,ne=s.PaperComponent,re=void 0===ne?bS:ne,ie=s.PopperComponent,oe=void 0===ie?Qi:ie,ae=s.popupIcon,le=void 0===ae?GT||(GT=(0,tn.jsx)(Hx,{})):ae,se=s.readOnly,ce=void 0!==se&&se,ue=s.renderGroup,de=s.renderInput,fe=s.renderOption,he=s.renderTags,pe=s.selectOnFocus,ve=(void 0===pe&&s.freeSolo,s.size),me=void 0===ve?"medium":ve,ge=s.slotProps,ye=void 0===ge?{}:ge,be=(0,h.Z)(s,$T),_e=LT((0,Pt.Z)({},s,{componentName:"Autocomplete"})),we=_e.getRootProps,Se=_e.getInputProps,xe=_e.getInputLabelProps,Ce=_e.getPopupIndicatorProps,ke=_e.getClearProps,Ee=_e.getTagProps,Re=_e.getListboxProps,Oe=_e.getOptionProps,Pe=_e.value,Te=_e.dirty,Me=_e.id,Le=_e.popupOpen,Ze=_e.focused,Ie=_e.focusedTag,De=_e.anchorEl,je=_e.setAnchorEl,Ae=_e.inputValue,Ne=_e.groupedOptions,Fe=!C&&!E&&Te&&!ce,ze=(!L||!0===T)&&!1!==T,Be=(0,Pt.Z)({},s,{disablePortal:O,focused:Ze,fullWidth:I,hasClearIcon:Fe,hasPopupIcon:ze,inputFocused:-1===Ie,popupOpen:Le,size:me}),He=function(e){var t=e.classes,n=e.disablePortal,r=e.focused,i=e.fullWidth,o=e.hasClearIcon,a=e.hasPopupIcon,l=e.inputFocused,s=e.popupOpen,c=e.size,u={root:["root",r&&"focused",i&&"fullWidth",o&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag","tagSize".concat((0,Mn.Z)(c))],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",s&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,Mt.Z)(u,KT,t)}(Be);if($&&Pe.length>0){var We=function(e){return(0,Pt.Z)({className:He.tag,disabled:E},Ee(e))};l=he?he(Pe,We,Be):Pe.map((function(e,t){return(0,tn.jsx)(VT,(0,Pt.Z)({label:N(e),size:me},We({index:t}),c))}))}if(H>-1&&Array.isArray(l)){var Ue=l.length-H;!Ze&&Ue>0&&(l=l.splice(0,H)).push((0,tn.jsx)("span",{className:He.tag,children:j(Ue)},l.length))}var Ve=ue||function(e){return(0,tn.jsxs)("li",{children:[(0,tn.jsx)(lM,{className:He.groupLabel,ownerState:Be,component:"div",children:e.group}),(0,tn.jsx)(sM,{className:He.groupUl,ownerState:Be,children:e.children})]},e.key)},qe=fe||function(e,t){return(0,tn.jsx)("li",(0,Pt.Z)({},e,{children:N(t)}))},Ke=function(e,t){var n=Oe({option:e,index:t});return qe((0,Pt.Z)({},n,{className:He.option}),e,{selected:n["aria-selected"],index:t,inputValue:Ae})},Ye=null!=(r=ye.clearIndicator)?r:w.clearIndicator,Ge=null!=(i=ye.paper)?i:w.paper,Xe=null!=(o=ye.popper)?o:w.popper,$e=null!=(a=ye.popupIndicator)?a:w.popupIndicator;return(0,tn.jsxs)(t.Fragment,{children:[(0,tn.jsx)(JT,(0,Pt.Z)({ref:n,className:(0,m.Z)(He.root,u),ownerState:Be},we(be),{children:de({id:Me,disabled:E,fullWidth:!0,size:"small"===me?"small":void 0,InputLabelProps:xe(),InputProps:(0,Pt.Z)({ref:je,className:He.inputRoot,startAdornment:l},(Fe||ze)&&{endAdornment:(0,tn.jsxs)(QT,{className:He.endAdornment,ownerState:Be,children:[Fe?(0,tn.jsx)(eM,(0,Pt.Z)({},ke(),{"aria-label":g,title:g,ownerState:Be},Ye,{className:(0,m.Z)(He.clearIndicator,null==Ye?void 0:Ye.className),children:f})):null,ze?(0,tn.jsx)(tM,(0,Pt.Z)({},Ce(),{disabled:E,"aria-label":Le?b:te,title:Le?b:te,ownerState:Be},$e,{className:(0,m.Z)(He.popupIndicator,null==$e?void 0:$e.className),children:le})):null]})}),inputProps:(0,Pt.Z)({className:He.input,disabled:E,readOnly:ce},Se())})})),De?(0,tn.jsx)(nM,(0,Pt.Z)({as:oe,disablePortal:O,style:{width:De?De.clientWidth:null},ownerState:Be,role:"presentation",anchorEl:De,open:Le},Xe,{className:(0,m.Z)(He.popper,null==Xe?void 0:Xe.className),children:(0,tn.jsxs)(rM,(0,Pt.Z)({ownerState:Be,as:re},Ge,{className:(0,m.Z)(He.paper,null==Ge?void 0:Ge.className),children:[K&&0===Ne.length?(0,tn.jsx)(iM,{className:He.loading,ownerState:Be,children:G}):null,0!==Ne.length||L||K?null:(0,tn.jsx)(oM,{className:He.noOptions,ownerState:Be,role:"presentation",onMouseDown:function(e){e.preventDefault()},children:Q}),Ne.length>0?(0,tn.jsx)(aM,(0,Pt.Z)({as:U,className:He.listbox,ownerState:Be},Re(),V,{children:Ne.map((function(e,t){return F?Ve({key:e.key,group:e.group,children:e.options.map((function(t,n){return Ke(t,e.index+n)}))}):Ke(e,t)}))})):null]}))})):null]})})),uM=cM,dM=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function fM(e){var n=e.item,r=e.applyValue,i=e.type,o=e.apiRef,a=e.focusElementRef,l=e.color,s=e.error,c=e.helperText,d=e.size,f=e.variant,p=(0,h.Z)(e,dM),m={color:l,error:s,helperText:c,size:d,variant:f},g=t.useState(n.value||[]),y=(0,u.Z)(g,2),b=y[0],_=y[1],w=(0,eo.Z)(),S=rO();t.useEffect((function(){var e,t=null!=(e=n.value)?e:[];_(t.map(String))}),[n.value]);var x=t.useCallback((function(e,t){_(t.map(String)),r((0,Pt.Z)({},n,{value:(0,v.Z)(t)}))}),[r,n]);return(0,tn.jsx)(uM,(0,Pt.Z)({multiple:!0,freeSolo:!0,options:[],filterOptions:function(e,t){var n=t.inputValue;return null==n||""===n?[]:[n]},id:w,value:b,onChange:x,renderTags:function(e,t){return e.map((function(e,n){return(0,tn.jsx)(VT,(0,Pt.Z)({variant:"outlined",size:"small",label:e},t({index:n})))}))},renderInput:function(e){var t;return(0,tn.jsx)(S.components.BaseTextField,(0,Pt.Z)({},e,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:(0,Pt.Z)({},e.InputLabelProps,{shrink:!0}),inputRef:a,type:i||"text"},m,null==(t=S.componentsProps)?void 0:t.baseTextField))}},p))}var hM={width:100,minWidth:50,maxWidth:1/0,hide:!1,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:function(e,t){var n=wT(e,t);return null!==n?n:"string"===typeof e?ST.compare(e.toString(),t.toString()):e-t},type:"string",align:"left",filterOperators:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return[{value:"contains",getApplyFilterFn:function(t){if(!t.value)return null;var n=e?t.value:t.value.trim(),r=new RegExp(aP(n),"i");return function(e){var t=e.value;return null!=t&&r.test(t.toString())}},InputComponent:hT},{value:"equals",getApplyFilterFn:function(t){if(!t.value)return null;var n=e?t.value:t.value.trim(),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return function(e){var t=e.value;return null!=t&&0===r.compare(n,t.toString())}},InputComponent:hT},{value:"startsWith",getApplyFilterFn:function(t){if(!t.value)return null;var n=e?t.value:t.value.trim(),r=new RegExp("^".concat(aP(n),".*$"),"i");return function(e){var t=e.value;return null!=t&&r.test(t.toString())}},InputComponent:hT},{value:"endsWith",getApplyFilterFn:function(t){if(!t.value)return null;var n=e?t.value:t.value.trim(),r=new RegExp(".*".concat(aP(n),"$"),"i");return function(e){var t=e.value;return null!=t&&r.test(t.toString())}},InputComponent:hT},{value:"isEmpty",getApplyFilterFn:function(){return function(e){var t=e.value;return""===t||null==t}},requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:function(){return function(e){var t=e.value;return""!==t&&null!=t}},requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:function(t){if(!Array.isArray(t.value)||0===t.value.length)return null;var n=e?t.value:t.value.map((function(e){return e.trim()})),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return function(e){var t=e.value;return null!=t&&n.some((function(e){return 0===r.compare(e,t.toString()||"")}))}},InputComponent:fM}]}(),renderEditCell:function(e){return(0,tn.jsx)(mT,(0,Pt.Z)({},e))},getApplyQuickFilterFn:function(e){if(!e)return null;var t=new RegExp(aP(e),"i");return function(e){var n=e.value;return null!=n&&t.test(n.toString())}}},pM=function(e){return null==e?null:Number(e)},vM=function(){return[{label:"=",value:"=",getApplyFilterFn:function(e){return null==e.value||Number.isNaN(e.value)?null:function(t){var n=t.value;return pM(n)===e.value}},InputComponent:hT,InputComponentProps:{type:"number"}},{label:"!=",value:"!=",getApplyFilterFn:function(e){return null==e.value||Number.isNaN(e.value)?null:function(t){var n=t.value;return pM(n)!==e.value}},InputComponent:hT,InputComponentProps:{type:"number"}},{label:">",value:">",getApplyFilterFn:function(e){return null==e.value||Number.isNaN(e.value)?null:function(t){var n=t.value;return null!=n&&pM(n)>e.value}},InputComponent:hT,InputComponentProps:{type:"number"}},{label:">=",value:">=",getApplyFilterFn:function(e){return null==e.value||Number.isNaN(e.value)?null:function(t){var n=t.value;return null!=n&&pM(n)>=e.value}},InputComponent:hT,InputComponentProps:{type:"number"}},{label:"<",value:"<",getApplyFilterFn:function(e){return null==e.value||Number.isNaN(e.value)?null:function(t){var n=t.value;return null!=n&&pM(n)<e.value}},InputComponent:hT,InputComponentProps:{type:"number"}},{label:"<=",value:"<=",getApplyFilterFn:function(e){return null==e.value||Number.isNaN(e.value)?null:function(t){var n=t.value;return null!=n&&pM(n)<=e.value}},InputComponent:hT,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:function(){return function(e){return null==e.value}},requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:function(){return function(e){return null!=e.value}},requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:function(e){return Array.isArray(e.value)&&0!==e.value.length?function(t){var n=t.value;return null!=n&&e.value.includes(Number(n))}:null},InputComponent:fM,InputComponentProps:{type:"number"}}]},mM=(NR(vM),(0,Pt.Z)({},hM,{type:"number",align:"right",headerAlign:"right",sortComparator:xT,valueParser:function(e){return""===e?null:Number(e)},valueFormatter:function(e){var t=e.value;return function(e){return"number"===typeof e}(t)?t.toLocaleString():t||""},filterOperators:vM(),getApplyQuickFilterFn:function(e){return null==e||Number.isNaN(e)||""===e?null:function(t){var n=t.value;return pM(n)===pM(e)}}})),gM=["item","applyValue","type","apiRef","focusElementRef","InputProps"],yM=500;function bM(e){var n,r,i=e.item,o=e.applyValue,a=e.type,l=e.apiRef,s=e.focusElementRef,c=e.InputProps,d=(0,h.Z)(e,gM),f=t.useRef(),p=t.useState(null!=(n=i.value)?n:""),v=(0,u.Z)(p,2),m=v[0],g=v[1],y=t.useState(!1),b=(0,u.Z)(y,2),_=b[0],w=b[1],S=(0,eo.Z)(),x=rO(),C=t.useCallback((function(e){var t=e.target.value;clearTimeout(f.current),g(String(t)),w(!0),f.current=setTimeout((function(){o((0,Pt.Z)({},i,{value:t})),w(!1)}),yM)}),[o,i]);return t.useEffect((function(){return function(){clearTimeout(f.current)}}),[]),t.useEffect((function(){var e,t=null!=(e=i.value)?e:"";g(String(t))}),[i.value]),(0,tn.jsx)(x.components.BaseTextField,(0,Pt.Z)({id:S,label:l.current.getLocaleText("filterPanelInputLabel"),placeholder:l.current.getLocaleText("filterPanelInputPlaceholder"),value:m,onChange:C,variant:"standard",type:a||"text",InputLabelProps:{shrink:!0},inputRef:s,InputProps:(0,Pt.Z)({},_?{endAdornment:(0,tn.jsx)(rT,{})}:{},c,{inputProps:(0,Pt.Z)({max:"datetime-local"===a?"9999-12-31T23:59":"9999-12-31"},null==c?void 0:c.inputProps)})},d,null==(r=x.componentsProps)?void 0:r.baseTextField))}var _M=/(\d+)-(\d+)-(\d+)/,wM=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function SM(e,t,n,r){if(!e.value)return null;var i=e.value.match(n?wM:_M).slice(1).map(Number),o=(0,u.Z)(i,5),a=o[0],l=o[1],s=o[2],c=o[3],d=o[4],f=new Date(a,l-1,s,c||0,d||0).getTime();return function(e){var i=e.value;if(!i)return!1;var o=i instanceof Date?i:new Date(i.toString());if(r)return t(o.getTime(),f);var a=(i instanceof Date?new Date(o):o).setHours(n?o.getHours():0,n?o.getMinutes():0,0,0);return t(a,f)}}var xM=function(e){return[{value:"is",getApplyFilterFn:function(t){return SM(t,(function(e,t){return e===t}),e)},InputComponent:bM,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:function(t){return SM(t,(function(e,t){return e!==t}),e)},InputComponent:bM,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:function(t){return SM(t,(function(e,t){return e>t}),e)},InputComponent:bM,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:function(t){return SM(t,(function(e,t){return e>=t}),e)},InputComponent:bM,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:function(t){return SM(t,(function(e,t){return e<t}),e,!e)},InputComponent:bM,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:function(t){return SM(t,(function(e,t){return e<=t}),e)},InputComponent:bM,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:function(){return function(e){return null==e.value}},requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:function(){return function(e){return null!=e.value}},requiresFilterValue:!1}]},CM=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue","inputProps","isValidating","isProcessingProps","onValueChange"],kM=(0,Zt.ZP)(nw)({fontSize:"inherit"}),EM=function(e){var t=e.classes;return(0,Mt.Z)({root:["editInputCell"]},PR,t)};function RM(e){var n=e.id,r=e.value,i=e.field,o=e.colDef,a=e.hasFocus,s=e.inputProps,d=e.onValueChange,f=(0,h.Z)(e,CM),p="dateTime"===o.type,v=tO(),m=t.useRef(),g=t.useMemo((function(){var e,t;null==(e=null==r?null:r instanceof Date?r:new Date((null!=r?r:"").toString()))||Number.isNaN(e.getTime())?t="":t=new Date(e.getTime()-60*e.getTimezoneOffset()*1e3).toISOString().substr(0,p?16:10);return{parsed:e,formatted:t}}),[r,p]),y=t.useState(g),b=(0,u.Z)(y,2),_=b[0],w=b[1],S={classes:rO().classes},x=EM(S),C=t.useCallback(function(){var e=c(l().mark((function e(t){var r,o,a,s,c,f,h,p,m,g,y,b,_,S,x;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""===(r=t.target.value)?o=null:(a=r.split("T"),s=(0,u.Z)(a,2),c=s[0],f=s[1],h=c.split("-"),p=(0,u.Z)(h,3),m=p[0],g=p[1],y=p[2],(o=new Date).setFullYear(Number(m),Number(g)-1,Number(y)),o.setHours(0,0,0,0),f&&(b=f.split(":"),_=(0,u.Z)(b,2),S=_[0],x=_[1],o.setHours(Number(S),Number(x),0,0))),!d){e.next=5;break}return e.next=5,d(t,o);case 5:w({parsed:o,formatted:r}),v.current.setEditCellValue({id:n,field:i,value:o},t);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[v,i,n,d]);return t.useEffect((function(){w((function(e){var t,n;return g.parsed!==e.parsed&&(null==(t=g.parsed)?void 0:t.getTime())!==(null==(n=e.parsed)?void 0:n.getTime())?g:e}))}),[g]),(0,H_.Z)((function(){a&&m.current.focus()}),[a]),(0,tn.jsx)(kM,(0,Pt.Z)({inputRef:m,fullWidth:!0,className:x.root,type:p?"datetime-local":"date",inputProps:(0,Pt.Z)({max:p?"9999-12-31T23:59":"9999-12-31"},s),value:_.formatted,onChange:C},f))}var OM=function(e){return(0,tn.jsx)(RM,(0,Pt.Z)({},e))};var PM=(0,Pt.Z)({},hM,{type:"date",sortComparator:CT,valueFormatter:function(e){var t=e.value;return t instanceof Date?t.toLocaleDateString():null!=t?t:""},filterOperators:xM(),renderEditCell:OM,getApplyQuickFilterFn:void 0}),TM=(0,Pt.Z)({},hM,{type:"dateTime",sortComparator:CT,valueFormatter:function(e){var t=e.value;return t instanceof Date?t.toLocaleString():null!=t?t:""},filterOperators:xM(!0),renderEditCell:OM,getApplyQuickFilterFn:void 0}),MM=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","getValue"],LM=function(e){var n=e.value,r=(0,h.Z)(e,MM),i=tO(),o=rO(),a=function(e){var t=e.classes;return(0,Mt.Z)({root:["booleanCell"]},PR,t)}({classes:o.classes}),l=t.useMemo((function(){return n?o.components.BooleanCellTrueIcon:o.components.BooleanCellFalseIcon}),[o.components.BooleanCellFalseIcon,o.components.BooleanCellTrueIcon,n]);return(0,tn.jsx)(l,(0,Pt.Z)({fontSize:"small",className:a.root,titleAccess:i.current.getLocaleText(n?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":Boolean(n)},r))},ZM=t.memo(LM),IM=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus","isValidating","isProcessingProps","error","onValueChange"],DM=function(e){var t=e.classes;return(0,Mt.Z)({root:["editBooleanCell"]},PR,t)};function jM(e){var n,r=e.id,i=e.value,o=e.field,a=e.className,s=e.hasFocus,d=e.onValueChange,f=(0,h.Z)(e,IM),p=tO(),v=t.useRef(null),g=(0,eo.Z)(),y=t.useState(i),b=(0,u.Z)(y,2),_=b[0],w=b[1],S=rO(),x={classes:S.classes},C=DM(x),k=t.useCallback(function(){var e=c(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.target.checked,!d){e.next=4;break}return e.next=4,d(t,n);case 4:return w(n),e.next=7,p.current.setEditCellValue({id:r,field:o,value:n},t);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[p,o,r,d]);return t.useEffect((function(){w(i)}),[i]),(0,H_.Z)((function(){s&&v.current.focus()}),[s]),(0,tn.jsx)("label",(0,Pt.Z)({htmlFor:g,className:(0,m.Z)(C.root,a)},f,{children:(0,tn.jsx)(S.components.BaseCheckbox,(0,Pt.Z)({id:g,inputRef:v,checked:Boolean(_),onChange:k,size:"small"},null==(n=S.componentsProps)?void 0:n.baseCheckbox))}))}var AM=["item","applyValue","apiRef","focusElementRef"];function NM(e){var n,r,i,o,a=e.item,l=e.applyValue,s=e.apiRef,c=e.focusElementRef,d=(0,h.Z)(e,AM),f=t.useState(a.value||""),p=(0,u.Z)(f,2),v=p[0],m=p[1],g=rO(),y=null==(r=((null==(n=g.componentsProps)?void 0:n.baseSelect)||{}).native)||r,b=y?"option":BE,_=t.useCallback((function(e){var t=e.target.value;m(t),l((0,Pt.Z)({},a,{value:t}))}),[l,a]);return t.useEffect((function(){m(a.value||"")}),[a.value]),(0,tn.jsxs)(g.components.BaseTextField,(0,Pt.Z)({label:s.current.getLocaleText("filterPanelInputLabel"),value:v,onChange:_,select:!0,variant:"standard",SelectProps:(0,Pt.Z)({native:y,displayEmpty:!0},null==(i=g.componentsProps)?void 0:i.baseSelect),InputLabelProps:{shrink:!0},inputRef:c},d,null==(o=g.componentsProps)?void 0:o.baseTextField,{children:[(0,tn.jsx)(b,{value:"",children:s.current.getLocaleText("filterValueAny")}),(0,tn.jsx)(b,{value:"true",children:s.current.getLocaleText("filterValueTrue")}),(0,tn.jsx)(b,{value:"false",children:s.current.getLocaleText("filterValueFalse")})]}))}var FM=(0,Pt.Z)({},hM,{type:"boolean",align:"center",headerAlign:"center",renderCell:function(e){return e.rowNode.isAutoGenerated?"":(0,tn.jsx)(ZM,(0,Pt.Z)({},e))},renderEditCell:function(e){return(0,tn.jsx)(jM,(0,Pt.Z)({},e))},sortComparator:xT,valueFormatter:function(e){var t=e.value,n=e.api;return t?n.getLocaleText("booleanCellTrueLabel"):n.getLocaleText("booleanCellFalseLabel")},filterOperators:[{value:"is",getApplyFilterFn:function(e){if(!e.value)return null;var t="true"===e.value;return function(e){var n=e.value;return Boolean(n)===t}},InputComponent:NM}],getApplyQuickFilterFn:void 0,aggregable:!1}),zM=function(e){return"Escape"===e},BM=function(e){return"Enter"===e},HM=function(e){return"Tab"===e},WM=function(e){return" "===e},UM=function(e){return"Delete"===e||"Backspace"===e};function VM(e){return 1===e.key.length&&!1===e.ctrlKey&&!1===e.metaKey}var qM,KM,YM,GM=["Enter","Escape","Tab"],XM=["Enter","Tab"],$M=function(e){return BM(e.key)||UM(e.key)||VM(e)},JM=function(e){return XM.indexOf(e)>-1},QM=function(e){return function(e){return"Home"===e||"End"===e}(e)||function(e){return 0===e.indexOf("Arrow")}(e)||function(e){return 0===e.indexOf("Page")}(e)||WM(e)},eL=function(e){return!!e.key},tL=function(e){return HM(e)||zM(e)};!function(e){e.Cell="cell",e.Row="row"}(qM||(qM={})),function(e){e.Edit="edit",e.View="view"}(KM||(KM={})),function(e){e.Edit="edit",e.View="view"}(YM||(YM={}));var nL=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen"],rL=function(e,t){var n="object"===typeof e,r=n?e.value:e,i=n?e.value:e,o=n?e.label:e;return(0,tn.jsx)(t,{value:i,children:o},r)};function iL(e){var n,r,i,o,a=rO(),s=e.id,d=e.value,f=e.api,p=e.field,v=e.row,m=e.colDef,g=e.hasFocus,y=e.error,b=e.onValueChange,_=e.initialOpen,w=void 0===_?a.editMode===qM.Cell:_,S=(0,h.Z)(e,nL),x=tO(),C=t.useRef(),k=t.useRef(),E=t.useState(w),R=(0,u.Z)(E,2),O=R[0],P=R[1],T=null!=(r=((null==(n=a.componentsProps)?void 0:n.baseSelect)||{}).native)&&r;o="function"===typeof m.valueOptions?m.valueOptions({id:s,row:v,field:p}):m.valueOptions,m.valueFormatter&&(o=o.map((function(e){if("object"===typeof e)return e;var t={field:p,api:f,value:e};return{value:e,label:String(m.valueFormatter(t))}})));var M=function(){var e=c(l().mark((function e(t){var n,r,i,c,u;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(P(!1),r=t.target,i=cT(r.value,o),!b){e.next=6;break}return e.next=6,b(t,i);case 6:return e.next=8,x.current.setEditCellValue({id:s,field:p,value:i},t);case 8:if(c=e.sent,null==(n=a.experimentalFeatures)||!n.newEditingApi){e.next=11;break}return e.abrupt("return");case 11:if(a.editMode!==qM.Row&&!1!==c){e.next=13;break}return e.abrupt("return");case 13:return e.next=15,Promise.resolve(x.current.commitCellChange({id:s,field:p},t));case 15:e.sent&&(x.current.setCellMode(s,p,"view"),t.key&&(u=x.current.getCellParams(s,p),x.current.publishEvent("cellNavigationKeyDown",u,t)));case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,H_.Z)((function(){g&&k.current.focus()}),[g]),(0,tn.jsx)(a.components.BaseSelect,(0,Pt.Z)({ref:C,inputRef:k,value:d,onChange:M,open:O,onOpen:function(e){(function(e){return!!e.key})(e)&&"Enter"===e.key||P(!0)},MenuProps:{onClose:function(e,t){var n;a.editMode!==qM.Row?("backdropClick"===t||zM(e.key))&&(null!=(n=a.experimentalFeatures)&&n.newEditingApi?x.current.stopCellEditMode({id:s,field:p,ignoreModifications:!0}):x.current.setCellMode(s,p,"view")):P(!1)}},error:y,native:T,fullWidth:!0},S,null==(i=a.componentsProps)?void 0:i.baseSelect,{children:o.map((function(e){return rL(e,T?"option":BE)}))}))}var oL=["item","applyValue","type","apiRef","focusElementRef"],aL=function(e,t,n){var r=e.valueOptions,i=e.valueFormatter,o=e.field;return[""].concat("function"===typeof r?(0,v.Z)(r({field:o})):(0,v.Z)(r||[])).map((function(e){var r="object"===typeof e,a=r?e.value:e,l=r?e.value:e,s=i&&""!==e?i({value:e,field:o,api:t}):e,c=r?e.label:s;return(0,tn.jsx)(n,{value:l,children:c},a)}))};function lL(e){var n,r,i,o,a,l=e.item,s=e.applyValue,c=e.type,d=e.apiRef,f=e.focusElementRef,p=(0,h.Z)(e,oL),v=t.useState(null!=(n=l.value)?n:""),m=(0,u.Z)(v,2),g=m[0],y=m[1],b=(0,eo.Z)(),_=rO(),w=null==(i=((null==(r=_.componentsProps)?void 0:r.baseSelect)||{}).native)||i,S=l.columnField?d.current.getColumn(l.columnField):null,x=t.useMemo((function(){if(null!==S)return"function"===typeof S.valueOptions?S.valueOptions({field:S.field}):S.valueOptions}),[S]),C=t.useCallback((function(e){var t=e.target.value;t=cT(t,x),y(String(t)),s((0,Pt.Z)({},l,{value:t}))}),[s,l,x]);return t.useEffect((function(){var e,t;if(void 0!==x){if((t=cT(l.value,x))!==l.value)return void s((0,Pt.Z)({},l,{value:t}))}else t=l.value;t=null!=(e=t)?e:"",y(String(t))}),[l,x,s]),(0,tn.jsx)(_.components.BaseTextField,(0,Pt.Z)({id:b,label:d.current.getLocaleText("filterPanelInputLabel"),placeholder:d.current.getLocaleText("filterPanelInputPlaceholder"),value:g,onChange:C,variant:"standard",type:c||"text",InputLabelProps:{shrink:!0},inputRef:f,select:!0,SelectProps:(0,Pt.Z)({native:w},null==(o=_.componentsProps)?void 0:o.baseSelect)},p,null==(a=_.componentsProps)?void 0:a.baseTextField,{children:aL(d.current.getColumn(l.columnField),d.current,w?"option":BE)}))}var sL=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],cL=function(e,t){return sT(e)===sT(t)},uL=RT();function dL(e){var n=e.item,r=e.applyValue,i=e.apiRef,o=e.focusElementRef,a=e.color,l=e.error,s=e.helperText,c=e.size,u=e.variant,d=void 0===u?"standard":u,f=(0,h.Z)(e,sL),p={color:a,error:l,helperText:s,size:c,variant:d},m=(0,eo.Z)(),g=rO(),y=n.columnField?i.current.getColumn(n.columnField):null,b=t.useMemo((function(){return null!=y&&y.valueOptions?"function"===typeof y.valueOptions?y.valueOptions({field:y.field}):y.valueOptions:[]}),[y]),_=t.useMemo((function(){return null==b?void 0:b.map(sT)}),[b]),w=i.current.getColumn(n.columnField),S=w.valueFormatter,x=w.field,C=function(e){return"object"===typeof e?e.label:S&&""!==e?S({value:e,field:x,api:i.current}):e},k=t.useMemo((function(){return Array.isArray(n.value)?void 0!==b?n.value.map((function(e){var t=sT(e);return(null==_?void 0:_.findIndex((function(e){return e===t})))||0})).filter((function(e){return e>=0})).map((function(e){return b[e]})):n.value:[]}),[n.value,b,_]);t.useEffect((function(){Array.isArray(n.value)&&k.length===n.value.length||r((0,Pt.Z)({},n,{value:k.map(sT)}))}),[n,k,r]);var E=t.useCallback((function(e,t){r((0,Pt.Z)({},n,{value:(0,v.Z)(t.map(sT))}))}),[r,n]);return(0,tn.jsx)(uM,(0,Pt.Z)({multiple:!0,options:b,isOptionEqualToValue:cL,filterOptions:uL,id:m,value:k,onChange:E,renderTags:function(e,t){return e.map((function(e,n){return(0,tn.jsx)(VT,(0,Pt.Z)({variant:"outlined",size:"small",label:C(e)},t({index:n})))}))},renderInput:function(e){var t;return(0,tn.jsx)(g.components.BaseTextField,(0,Pt.Z)({},e,{label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:(0,Pt.Z)({},e.InputLabelProps,{shrink:!0}),inputRef:o,type:"singleSelect"},p,null==(t=g.componentsProps)?void 0:t.baseTextField))}},f))}var fL=function(e){return null==e||"object"!==typeof e?e:e.value},hL=(0,Pt.Z)({},hM,{type:"singleSelect",renderEditCell:function(e){return(0,tn.jsx)(iL,(0,Pt.Z)({},e))},filterOperators:[{value:"is",getApplyFilterFn:function(e){return null==e.value||""===e.value?null:function(t){var n=t.value;return fL(n)===fL(e.value)}},InputComponent:lL},{value:"not",getApplyFilterFn:function(e){return null==e.value||""===e.value?null:function(t){var n=t.value;return fL(n)!==fL(e.value)}},InputComponent:lL},{value:"isAnyOf",getApplyFilterFn:function(e){if(!Array.isArray(e.value)||0===e.value.length)return null;var t=e.value.map(fL);return function(e){var n=e.value;return t.includes(fL(n))}},InputComponent:dL}],getApplyQuickFilterFn:function(e,t,n){if(!e)return null;var r=t.valueOptions,i=t.valueFormatter,o=t.field,a=[fL(e).toString()],l="function"===typeof r?r({field:o}):r||[];return l&&l.forEach((function(t){var r,l;"object"===typeof t?(r=t.value,l=t.label):(r=t,l=i?i({value:t,field:o,api:n.current}):t),l.slice(0,e.length).toLowerCase()===e.toLowerCase()&&(a.includes(r)||a.push(r.toString()))})),function(e){var t=e.value;return null!=t&&a.includes(fL(t).toString())}}});function pL(e){return e.substring(2).toLowerCase()}var vL=function(e){var n=e.children,r=e.disableReactTree,i=void 0!==r&&r,o=e.mouseEvent,a=void 0===o?"onClick":o,l=e.onClickAway,s=e.touchEvent,c=void 0===s?"onTouchEnd":s,u=t.useRef(!1),d=t.useRef(null),f=t.useRef(!1),h=t.useRef(!1);t.useEffect((function(){return setTimeout((function(){f.current=!0}),0),function(){f.current=!1}}),[]);var p=(0,dr.Z)(n.ref,d),v=(0,SS.Z)((function(e){var t=h.current;h.current=!1;var n=(0,hr.Z)(d.current);!f.current||!d.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,n)||(u.current?u.current=!1:(e.composedPath?e.composedPath().indexOf(d.current)>-1:!n.documentElement.contains(e.target)||d.current.contains(e.target))||!i&&t||l(e))})),m=function(e){return function(t){h.current=!0;var r=n.props[e];r&&r(t)}},g={ref:p};return!1!==c&&(g[c]=m(c)),t.useEffect((function(){if(!1!==c){var e=pL(c),t=(0,hr.Z)(d.current),n=function(){u.current=!0};return t.addEventListener(e,v),t.addEventListener("touchmove",n),function(){t.removeEventListener(e,v),t.removeEventListener("touchmove",n)}}}),[v,c]),!1!==a&&(g[a]=m(a)),t.useEffect((function(){if(!1!==a){var e=pL(a),t=(0,hr.Z)(d.current);return t.addEventListener(e,v),function(){t.removeEventListener(e,v)}}}),[v,a]),(0,tn.jsx)(t.Fragment,{children:t.cloneElement(n,g)})},mL=["open","target","onClickAway","children","position","className","onExited"],gL=(0,Zt.ZP)(Qi,{name:"MuiDataGrid",slot:"Menu",overridesResolver:function(e,t){return t.menu}})((function(e){var t=e.theme;return(0,o.Z)({zIndex:t.zIndex.modal},"& .".concat(TR.menuList),{outline:0})})),yL={"bottom-start":"top left","bottom-end":"top right"},bL=function(e){var n,r=e.open,i=e.target,o=e.onClickAway,a=e.children,l=e.position,s=e.className,c=e.onExited,u=(0,h.Z)(e,mL),d=tO(),f=t.useRef(i),p=t.useRef(r),v=rO(),g=function(e){var t=e.classes;return(0,Mt.Z)({root:["menu"]},PR,t)}(v);t.useEffect((function(){p.current&&f.current&&f.current.focus();var e=r?"menuOpen":"menuClose";d.current.publishEvent(e,{target:i}),p.current=r,f.current=i}),[d,r,i]);return(0,tn.jsx)(gL,(0,Pt.Z)({as:v.components.BasePopper,className:(0,m.Z)(s,g.root),ownerState:v,open:r,anchorEl:i,transition:!0,placement:l},u,null==(n=v.componentsProps)?void 0:n.basePopper,{children:function(e){var t,n=e.TransitionProps,r=e.placement;return(0,tn.jsx)(vL,{onClickAway:o,mouseEvent:"onMouseDown",children:(0,tn.jsx)(ur,(0,Pt.Z)({},n,{style:{transformOrigin:yL[r]},onExited:(t=null==n?void 0:n.onExited,function(e){t&&t(),c&&c(e)}),children:(0,tn.jsx)(bS,{children:a})}))})}}))},_L=["colDef","id","api","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","getValue","tabIndex","position","focusElementRef"],wL=function(e){var n=e.colDef,r=e.id,i=e.hasFocus,o=e.tabIndex,a=e.position,l=void 0===a?"bottom-end":a,s=e.focusElementRef,c=(0,h.Z)(e,_L),d=t.useState(-1),f=(0,u.Z)(d,2),p=f[0],v=f[1],m=t.useState(!1),g=(0,u.Z)(m,2),y=g[0],b=g[1],_=tO(),w=t.useRef(null),S=t.useRef(null),x=t.useRef(!1),C=t.useRef({}),k=(0,eo.Z)(),E=(0,eo.Z)(),R=rO();if(t.useLayoutEffect((function(){i||Object.entries(C.current).forEach((function(e){var t=(0,u.Z)(e,2),n=t[0],r=t[1];null==r||r.stop({},(function(){delete C.current[n]}))}))}),[i]),t.useEffect((function(){p<0||!w.current||(p>=w.current.children.length||w.current.children[p].focus({preventScroll:!0}))}),[p]),t.useEffect((function(){i||(v(-1),x.current=!1)}),[i]),t.useImperativeHandle(s,(function(){return{focus:function(){x.current||v(0)}}}),[]),!function(e){return"function"===typeof e.getActions}(n))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");var O=n.getActions(_.current.getRowParams(r)),P=O.filter((function(e){return!e.props.showInMenu})),T=O.filter((function(e){return e.props.showInMenu})),M=P.length+(T.length?1:0);t.useEffect((function(){p>=M&&v(M-1)}),[p,M]);var L=function(){b(!1)},Z=function(e){return function(t){C.current[e]=t}},I=function(e,t){return function(n){v(e),x.current=!0,t&&t(n)}};return(0,tn.jsxs)("div",(0,Pt.Z)({role:"menu",ref:w,tabIndex:-1,className:TR.actionsCell,onKeyDown:function(e){if(!(M<=1)){var t=p;"ArrowRight"===e.key?t+=1:"ArrowLeft"===e.key&&(t-=1),t<0||t>=M||t!==p&&(e.preventDefault(),e.stopPropagation(),v(t))}}},c,{children:[P.map((function(e,n){return t.cloneElement(e,{key:n,touchRippleRef:Z(n),onClick:I(n,e.props.onClick),tabIndex:p===n?o:-1})})),T.length>0&&E&&(0,tn.jsx)(R_,{ref:S,id:E,"aria-label":_.current.getLocaleText("actionsCellMore"),"aria-controls":k,"aria-expanded":y?"true":void 0,"aria-haspopup":"true",role:"menuitem",size:"small",onClick:function(){b(!0),v(M-1),x.current=!0},touchRippleRef:Z(E),tabIndex:p===P.length?o:-1,children:(0,tn.jsx)(R.components.MoreActionsIcon,{fontSize:"small"})}),T.length>0&&(0,tn.jsx)(bL,{onClickAway:L,onClick:L,open:y,target:S.current,position:l,children:(0,tn.jsx)(hS,{id:k,className:TR.menuList,onKeyDown:function(e){"Tab"===e.key&&e.preventDefault(),["Tab","Enter","Escape"].includes(e.key)&&L()},"aria-labelledby":E,variant:"menu",autoFocusItem:!0,children:T.map((function(e,n){return t.cloneElement(e,{key:n})}))})})]}))},SL="actions",xL=(0,Pt.Z)({},hM,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:function(e){return(0,tn.jsx)(wL,(0,Pt.Z)({},e))},getApplyQuickFilterFn:void 0}),CL="__default__",kL=function(){var e;return e={string:hM,number:mM,date:PM,dateTime:TM,boolean:FM,singleSelect:hL},(0,o.Z)(e,SL,xL),(0,o.Z)(e,CL,hM),e},EL=["maxWidth","minWidth","width","flex"],RL=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,Pt.Z)({},kL());return Object.entries(e).forEach((function(e){var n=(0,u.Z)(e,2),r=n[0],i=n[1];t[r]?t[r]=(0,Pt.Z)({},t[r],i):t[r]=(0,Pt.Z)({},t[i.extendType||CL],i)})),t};var OL,PL=function(e,t){var n={},r=0,i=0,o=[];e.all.forEach((function(t){var a,l=(0,Pt.Z)({},e.lookup[t]);!1===e.columnVisibilityModel[t]?l.computedWidth=0:(l.flex&&l.flex>0?(r+=l.flex,a=0,o.push(l)):a=lP(l.width,l.minWidth,l.maxWidth),i+=a,l.computedWidth=a);n[t]=l}));var a=Math.max(t-i,0);if(r>0&&t>0){var l=function(e){var t=e.initialFreeSpace,n=e.totalFlexUnits,r=e.flexColumns,i={all:{},frozenFields:[],freeze:function(e){var t=i.all[e];t&&!0!==t.frozen&&(i.all[e].frozen=!0,i.frozenFields.push(e))}};return function e(){if(i.frozenFields.length!==r.length){var o={min:{},max:{}},a=t,l=n,s=0;i.frozenFields.forEach((function(e){a-=i.all[e].computedWidth,l-=i.all[e].flex}));for(var c=0;c<r.length;c+=1){var u=r[c];if(!i.all[u.field]||!0!==i.all[u.field].frozen){var d=a/l*u.flex;d<u.minWidth?(s+=u.minWidth-d,d=u.minWidth,o.min[u.field]=!0):d>u.maxWidth&&(s+=u.maxWidth-d,d=u.maxWidth,o.max[u.field]=!0),i.all[u.field]={frozen:!1,computedWidth:d,flex:u.flex}}}s<0?Object.keys(o.max).forEach((function(e){i.freeze(e)})):s>0?Object.keys(o.min).forEach((function(e){i.freeze(e)})):r.forEach((function(e){var t=e.field;i.freeze(t)})),e()}}(),i.all}({initialFreeSpace:a,totalFlexUnits:r,flexColumns:o});Object.keys(l).forEach((function(e){n[e].computedWidth=l[e].computedWidth}))}return(0,Pt.Z)({},e,{lookup:n})},TL=function(e){var t,n,r,i,a,l=e.apiRef,s=e.columnsToUpsert,c=e.initialState,d=e.columnTypes,f=e.currentColumnVisibilityModel,h=void 0===f?qR(l):f,p=e.shouldRegenColumnVisibilityModelFromColumns,m=e.keepOnlyColumnsToUpsert,g=void 0!==m&&m,y=!l.current.state.columns;if(y)a={all:[],lookup:{}};else{var b=HR(l.current.state);a={all:g?[]:(0,v.Z)(b.all),lookup:(0,Pt.Z)({},b.lookup)}}var _={};g&&!y&&(_=Object.keys(a.lookup).reduce((function(e,t){return(0,Pt.Z)({},e,(0,o.Z)({},t,!1))}),{}));var w={};s.forEach((function(e){var t=e.field;w[t]=!0,_[t]=!0;var n=a.lookup[t];null==n?(n=(0,Pt.Z)({},function(e,t){return t&&e[t]?e[t]:e[CL]}(d,e.type),{field:t,hasBeenResized:!1}),a.all.push(t)):g&&a.all.push(t);var r=n.hasBeenResized;EL.forEach((function(t){void 0!==e[t]&&(r=!0,-1===e[t]&&(e[t]=1/0))})),a.lookup[t]=(0,Pt.Z)({},n,{hide:null!=e.hide&&e.hide},e,{hasBeenResized:r})})),g&&!y&&Object.keys(a.lookup).forEach((function(e){_[e]||delete a.lookup[e]}));var S=(0,Pt.Z)({},a.lookup),x=l.current.unstable_applyPipeProcessors("hydrateColumns",a),C={};if(p){var k=!1,E=(0,Pt.Z)({},h);y?x.all.forEach((function(e){E[e]=!a.lookup[e].hide})):g&&Object.keys(E).forEach((function(e){x.lookup[e]||(delete E[e],k=!0)})),x.all.forEach((function(e){if(w[e]||S[e]!==x.lookup[e]){var t=h[e];if(void 0===t)if(y)t=!0;else t=!!HR(l.current.state).lookup[e];var n=!x.lookup[e].hide;n!==t&&(k=!0,E[e]=n)}})),C=k||y?E:h}else C=h;var R=function(e,t){if(!t)return e;var n=t.orderedFields,r=void 0===n?[]:n,i=t.dimensions,o=void 0===i?{}:i,a=Object.keys(o);if(0===a.length&&0===r.length)return e;for(var l={},s=[],c=0;c<r.length;c+=1){var d=r[c];e.lookup[d]&&(l[d]=!0,s.push(d))}for(var f=0===s.length?e.all:[].concat(s,(0,v.Z)(e.all.filter((function(e){return!l[e]})))),h=(0,Pt.Z)({},e.lookup),p=function(){var e=a[m],t=(0,Pt.Z)({},h[e],{hasBeenResized:!0});Object.entries(o[e]).forEach((function(e){var n=(0,u.Z)(e,2),r=n[0],i=n[1];t[r]=-1===i?1/0:i})),h[e]=t},m=0;m<a.length;m+=1)p();return{all:f,lookup:h}}(x,c),O=(0,Pt.Z)({},R,{columnVisibilityModel:C});return PL(O,null!=(t=null==(n=(r=l.current).getRootDimensions)||null==(i=n.call(r))?void 0:i.viewportInnerSize.width)?t:0)},ML=function(e){return function(t){return(0,Pt.Z)({},t,{columns:e})}};function LL(e){for(var t=e.firstColumnToRender,n=e.apiRef,r=e.firstRowToRender,i=e.lastRowToRender,o=e.visibleRows,a=t,l=r;l<i;l+=1){if(o[l]){var s=o[l].id,c=n.current.unstable_getCellColSpanInfo(s,t);c&&c.spannedByColSpan&&(a=c.leftVisibleCellIndex)}}return a}function ZL(e){var t=e.firstColumnIndex,n=e.minColumnIndex,r=e.columnBuffer,i=e.firstRowToRender,o=e.lastRowToRender,a=e.apiRef,l=e.visibleRows;return LL({firstColumnToRender:Math.max(t-r,n),apiRef:a,firstRowToRender:i,lastRowToRender:o,visibleRows:l})}!function(e){e.filters="filters",e.columns="columns"}(OL||(OL={}));var IL,DL=function(e,t,n){var r,i,o,a,l,s,c,u=!!t.columnVisibilityModel||!(null==(r=t.initialState)||null==(i=r.columns)||!i.columnVisibilityModel);n.current.unstable_caches.columns={isUsingColumnVisibilityModel:u};var d=RL(t.columnTypes),f=TL({apiRef:n,columnTypes:d,columnsToUpsert:t.columns,initialState:null==(o=t.initialState)?void 0:o.columns,shouldRegenColumnVisibilityModelFromColumns:!u,currentColumnVisibilityModel:null!=(a=null!=(l=t.columnVisibilityModel)?l:null==(s=t.initialState)||null==(c=s.columns)?void 0:c.columnVisibilityModel)?a:{},keepOnlyColumnsToUpsert:!0});return(0,Pt.Z)({},e,{columns:f})};function jL(e){return void 0!==e.field}!function(e){e.Compact="compact",e.Standard="standard",e.Comfortable="comfortable"}(IL||(IL={}));var AL=zR((function(e){return e.columnGrouping}),(function(e){return e.lookup})),NL=["groupId","children"];var FL=function e(t,n,r){if(jL(t)){if(void 0!==r[t.field])throw new Error(["MUI: columnGroupingModel contains duplicated field","column field ".concat(t.field," occurrs two times in the grouping model:"),"- ".concat(r[t.field].join(" > ")),"- ".concat(n.join(" > "))].join("\n"));r[t.field]=n}else{var i=t.groupId;t.children.forEach((function(t){e(t,[].concat((0,v.Z)(n),[i]),r)}))}},zL=function(e){if(!e)return{};var t={};return e.forEach((function(e){FL(e,[],t)})),t},BL=function e(t){var n={};return t.forEach((function(t){if(!jL(t)){var r=t.groupId,i=t.children,a=(0,h.Z)(t,NL);if(!r)throw new Error("MUI: An element of the columnGroupingModel does not have either `field` or `groupId`.");i||console.warn("MUI: group groupId=".concat(r," has no children."));var l=(0,Pt.Z)({},a,{groupId:r}),s=e(i);if(void 0!==s[r]||void 0!==n[r])throw new Error("MUI: The groupId ".concat(r," is used multiple times in the columnGroupingModel."));n=(0,Pt.Z)({},n,s,(0,o.Z)({},r,l))}})),(0,Pt.Z)({},n)},HL=function(e,t){var n,r=BL(null!=(n=t.columnGroupingModel)?n:[]);return(0,Pt.Z)({},e,{columnGrouping:{lookup:r,groupCollapsedModel:{}}})},WL=function(e,t,n,r){switch(e){case IL.Compact:return{value:e,headerHeight:Math.floor(.7*t),rowHeight:Math.floor(.7*n),headerGroupingMaxDepth:r,factor:.7};case IL.Comfortable:return{value:e,headerHeight:Math.floor(1.3*t),rowHeight:Math.floor(1.3*n),headerGroupingMaxDepth:r,factor:1.3};default:return{value:e,headerHeight:t,rowHeight:n,headerGroupingMaxDepth:r,factor:1}}},UL=function(e,t){var n;if(null==t.columnGroupingModel||0===Object.keys(t.columnGroupingModel).length)n=0;else{var r=zL(t.columnGroupingModel),i=e.columns,o=i.all.filter((function(e){return!1!==i.columnVisibilityModel[e]}));n=0===o.length?0:Math.max.apply(Math,(0,v.Z)(o.map((function(e){var t,n;return null!=(t=null==(n=r[e])?void 0:n.length)?t:0}))))}return(0,Pt.Z)({},e,{density:WL(t.density,t.headerHeight,t.rowHeight,n)})};var VL=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","getValue","api"],qL=t.forwardRef((function(e,n){var r,i=e.field,o=e.id,a=e.value,l=e.rowNode,s=e.hasFocus,c=e.tabIndex,u=(0,h.Z)(e,VL),d=tO(),f=rO(),p=function(e){var t=e.classes;return(0,Mt.Z)({root:["checkboxInput"]},PR,t)}({classes:f.classes}),v=t.useRef(null),m=t.useRef(),g=(0,Dt.Z)(v,n),y=d.current.getCellElement(o,i);t.useLayoutEffect((function(){0===c&&y&&(y.tabIndex=-1)}),[y,c]),t.useEffect((function(){if(s){var e,t=null==(e=v.current)?void 0:e.querySelector("input");null==t||t.focus({preventScroll:!0})}else m.current&&m.current.stop({})}),[s]);var b=t.useCallback((function(t){WM(t.key)&&t.stopPropagation(),QM(t.key)&&!t.shiftKey&&d.current.publishEvent("cellNavigationKeyDown",e,t)}),[d,e]);if("footer"===l.position)return null;var _=d.current.isRowSelectable(o),w=d.current.getLocaleText(a?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return l.isPinned?null:(0,tn.jsx)(f.components.BaseCheckbox,(0,Pt.Z)({ref:g,tabIndex:c,checked:a,onChange:function(e){var t={value:e.target.checked,id:o};d.current.publishEvent("rowSelectionCheckboxChange",t,e)},className:p.root,inputProps:{"aria-label":w},onKeyDown:b,disabled:!_,touchRippleRef:m},null==(r=f.componentsProps)?void 0:r.baseCheckbox,u))})),KL=function(e){return e.focus},YL=zR(KL,(function(e){return e.cell})),GL=zR(KL,(function(e){return e.columnHeader})),XL=function(e){return e.tabIndex},$L=zR(XL,(function(e){return e.cell})),JL=zR(XL,(function(e){return e.columnHeader})),QL=function(e){return e.selection},eZ=zR(QL,(function(e){return e.length})),tZ=zR(QL,vO,(function(e,t){return new Map(e.map((function(e){return[e,t[e]]})))})),nZ=zR(QL,(function(e){return e.reduce((function(e,t){return e[t]=t,e}),{})})),rZ=function(e){return e.pagination},iZ=zR(rZ,(function(e){return e.page})),oZ=zR(rZ,(function(e){return e.pageSize})),aZ=zR(rZ,(function(e){return e.pageCount})),lZ=zR(rZ,gO,bO,VO,GO,(function(e,t,n,r,i){var o=i.length,a=Math.min(e.pageSize*e.page,o-1),l=Math.min(a+e.pageSize-1,o-1);if(-1===a||-1===l)return null;if(n<2)return{firstRowIndex:a,lastRowIndex:l};for(var s=i[a],c=l-a+1,u=r.findIndex((function(e){return e.id===s.id})),d=u,f=0;d<r.length&&f<=c;){var h=t[r[d].id].depth;(f<c||h>0)&&(d+=1),0===h&&(f+=1)}return{firstRowIndex:u,lastRowIndex:d-1}})),sZ=zR(VO,lZ,(function(e,t){return t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]})),cZ=zR(qO,lZ,(function(e,t){return t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]})),uZ=["field","colDef"],dZ=t.forwardRef((function(e,n){var r,i=(0,h.Z)(e,uZ),o=t.useState(!1),a=(0,u.Z)(o,2)[1],l=tO(),s=rO(),c=function(e){var t=e.classes;return(0,Mt.Z)({root:["checkboxInput"]},PR,t)}({classes:s.classes}),d=QR(l,JL),f=QR(l,QL),p=QR(l,qO),v=QR(l,cZ),m=t.useMemo((function(){return"function"!==typeof s.isRowSelectable?f:f.filter((function(e){return!!l.current.getRow(e)&&s.isRowSelectable(l.current.getRowParams(e))}))}),[l,s.isRowSelectable,f]),g=t.useMemo((function(){return(s.pagination&&s.checkboxSelectionVisibleOnly?v:p).reduce((function(e,t){return e[t]=!0,e}),{})}),[s.pagination,s.checkboxSelectionVisibleOnly,v,p]),y=t.useMemo((function(){return m.filter((function(e){return g[e]})).length}),[m,g]),b=y>0&&y<Object.keys(g).length,_=y>0,w=null!==d&&d.field===e.field?0:-1;t.useLayoutEffect((function(){var t=l.current.getColumnHeaderElement(e.field);0===w&&t&&(t.tabIndex=-1)}),[w,l,e.field]);var S=t.useCallback((function(t){" "===t.key&&l.current.publishEvent("headerSelectionCheckboxChange",{value:!_}),QM(t.key)&&!t.shiftKey&&l.current.publishEvent("columnHeaderNavigationKeyDown",e,t)}),[l,e,_]),x=t.useCallback((function(){a((function(e){return!e}))}),[]);t.useEffect((function(){return l.current.subscribeEvent("selectionChange",x)}),[l,x]);var C=l.current.getLocaleText(_?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return(0,tn.jsx)(s.components.BaseCheckbox,(0,Pt.Z)({ref:n,indeterminate:b,checked:_,onChange:function(e){var t={value:e.target.checked};l.current.publishEvent("headerSelectionCheckboxChange",t)},className:c.root,inputProps:{"aria-label":C},tabIndex:w,onKeyDown:S},null==(r=s.componentsProps)?void 0:r.baseCheckbox,i))})),fZ="__check__",hZ=(0,Pt.Z)({},FM,{field:fZ,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,valueGetter:function(e){return void 0!==nZ(e.api.state,e.api.instanceId)[e.id]},renderHeader:function(e){return(0,tn.jsx)(dZ,(0,Pt.Z)({},e))},renderCell:function(e){return(0,tn.jsx)(qL,(0,Pt.Z)({},e))}}),pZ=function(e,t){if("string"===typeof e){var n=e.replace(/"/g,'""');return[t,"\n","\r"].some((function(e){return n.includes(e)}))?'"'.concat(n,'"'):n}return e},vZ=(AR(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]),function(e,t,n,r){return t.map((function(t){var i=n(e,t.field);return pZ(i.formattedValue,r)}))});var mZ=function(e){var t=e.apiRef,n=e.options,r=VR(t);return n.fields?n.fields.map((function(e){return r.find((function(t){return t.field===e}))})).filter((function(e){return!!e})):(n.allColumns?r:KR(t)).filter((function(e){return!e.disableExport}))},gZ=function(e){var t,n,r=e.apiRef,i=YO(r),o=gO(r),a=r.current.getSelectedRows(),l=i.filter((function(e){var t;return"body"===(null!=(t=o[e].position)?t:"body")})),s=SO(r),c=(null==s||null==(t=s.top)?void 0:t.map((function(e){return e.id})))||[],u=(null==s||null==(n=s.bottom)?void 0:n.map((function(e){return e.id})))||[];return l.unshift.apply(l,(0,v.Z)(c)),l.push.apply(l,(0,v.Z)(u)),a.size>0?l.filter((function(e){return a.has(e)})):l},yZ=["children","onClick"],bZ=t.forwardRef((function(e,n){var r,i=e.children,o=e.onClick,a=(0,h.Z)(e,yZ),l=tO(),s=rO(),c=(0,eo.Z)(),d=(0,eo.Z)(),f=t.useState(!1),p=(0,u.Z)(f,2),v=p[0],m=p[1],g=t.useRef(null),y=(0,Dt.Z)(n,g),b=function(){return m(!1)};return null==i?null:(0,tn.jsxs)(t.Fragment,{children:[(0,tn.jsx)(s.components.BaseButton,(0,Pt.Z)({ref:y,size:"small",startIcon:(0,tn.jsx)(s.components.ExportIcon,{}),"aria-expanded":v?"true":void 0,"aria-label":l.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-labelledby":d,id:c},a,{onClick:function(e){m((function(e){return!e})),null==o||o(e)}},null==(r=s.componentsProps)?void 0:r.baseButton,{children:l.current.getLocaleText("toolbarExport")})),(0,tn.jsx)(bL,{open:v,target:g.current,onClickAway:function(e){var t;g.current===e.target||null!=(t=g.current)&&t.contains(e.target)||m(!1)},position:"bottom-start",children:(0,tn.jsx)(hS,{id:d,className:TR.menuList,"aria-labelledby":c,onKeyDown:function(e){HM(e.key)&&e.preventDefault(),tL(e.key)&&b()},autoFocusItem:v,children:t.Children.map(i,(function(e){return t.isValidElement(e)?t.cloneElement(e,{hideMenu:b}):e}))})})]})})),_Z=["hideMenu","options"],wZ=["hideMenu","options"],SZ=["csvOptions","printOptions","excelOptions"],xZ=function(e){var t=tO(),n=e.hideMenu,r=e.options,i=(0,h.Z)(e,_Z);return(0,tn.jsx)(BE,(0,Pt.Z)({onClick:function(){t.current.exportDataAsCsv(r),null==n||n()}},i,{children:t.current.getLocaleText("toolbarExportCSV")}))},CZ=function(e){var t=tO(),n=e.hideMenu,r=e.options,i=(0,h.Z)(e,wZ);return(0,tn.jsx)(BE,(0,Pt.Z)({onClick:function(){t.current.exportDataAsPrint(r),null==n||n()}},i,{children:t.current.getLocaleText("toolbarExportPrint")}))},kZ=t.forwardRef((function(e,n){var r=e.csvOptions,i=void 0===r?{}:r,o=e.printOptions,a=void 0===o?{}:o,l=e.excelOptions,s=(0,h.Z)(e,SZ),c=tO().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:l,csvOptions:i,printOptions:a}).sort((function(e,t){return e.componentName>t.componentName?1:-1}));return 0===c.length?null:(0,tn.jsx)(bZ,(0,Pt.Z)({},s,{ref:n,children:c.map((function(e,n){return t.cloneElement(e.component,{key:n})}))}))})),EZ=function(e){var n=EO(e,"useGridCsvExport"),r=t.useCallback((function(){var t,r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n.debug("Get data as CSV"),function(e){var t=e.columns,n=e.rowIds,r=e.getCellParams,i=e.delimiterCharacter,o=e.includeHeaders,a=n.reduce((function(e,n){return"".concat(e).concat(vZ(n,t,r,i).join(i),"\r\n")}),"").trim();if(!o)return a;var l="".concat(t.filter((function(e){return e.field!==hZ.field})).map((function(e){return pZ(e.headerName||e.field,i)})).join(i),"\r\n");return"".concat(l).concat(a).trim()}({columns:mZ({apiRef:e,options:i}),rowIds:(null!=(t=i.getRowsToExport)?t:gZ)({apiRef:e}),getCellParams:e.current.getCellParams,delimiterCharacter:i.delimiter||",",includeHeaders:null==(r=i.includeHeaders)||r})}),[n,e]),i=t.useCallback((function(e){n.debug("Export data as CSV");var t=r(e);!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"csv",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.title||"untitled",r="".concat(n,".").concat(t);if("download"in HTMLAnchorElement.prototype){var i=URL.createObjectURL(e),o=document.createElement("a");return o.href=i,o.download=r,o.click(),void setTimeout((function(){URL.revokeObjectURL(i)}))}throw new Error("MUI: exportAs not supported")}(new Blob([null!=e&&e.utf8WithBom?new Uint8Array([239,187,191]):"",t],{type:"text/csv"}),"csv",null==e?void 0:e.fileName)}),[n,r]);mP(e,{getDataAsCsv:r,exportDataAsCsv:i});var o=t.useCallback((function(e,t){var n;return null!=(n=t.csvOptions)&&n.disableToolbarButton?e:[].concat((0,v.Z)(e),[{component:(0,tn.jsx)(xZ,{options:t.csvOptions}),componentName:"csvExport"}])}),[]);FP(e,"exportMenu",o)},RZ=function(e){return e.rowsMeta};var OZ,PZ=function(e,n){var r=EO(e,"useGridPrintExport"),i=t.useRef(null),o=t.useRef(null),a=t.useRef({});t.useEffect((function(){i.current=(0,Qw.Z)(e.current.rootElementRef.current)}),[e]);var s=t.useCallback((function(t,n){return new Promise((function(r){if(t||n){var i=mZ({apiRef:e,options:{fields:t,allColumns:n}}).map((function(e){return e.field})),o=VR(e),a={};o.forEach((function(e){a[e.field]=i.includes(e.field)})),e.current.setColumnVisibilityModel(a),r()}else r()}))}),[e]),u=t.useCallback((function(e){var t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}),[]),d=t.useCallback((function(t,n){var r,o,a=(0,Pt.Z)({copyStyles:!0,hideToolbar:!1,hideFooter:!1},n),l=t.contentDocument;if(l){var s=uO(e),c=RZ(e.current.state),u=e.current.rootElementRef.current,d=u.cloneNode(!0),f=d.querySelector(".".concat(TR.virtualScroller));f.style.height="auto",f.style.width="auto",f.parentElement.style.width="auto",f.parentElement.style.height="auto",d.querySelector(".".concat(TR.main)).style.overflow="visible";var h=function(){var e=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);return e?parseInt(e[2],10):null}();h&&h>=108&&(d.style.contain="size"),d.querySelector(".".concat(TR.columnHeaders)).querySelector(".".concat(TR.columnHeadersInner)).style.width="100%";var p,m,g=(null==(r=u.querySelector(".".concat(TR.toolbarContainer)))?void 0:r.clientHeight)||0,y=(null==(o=u.querySelector(".".concat(TR.footerContainer)))?void 0:o.clientHeight)||0;if(a.hideToolbar)null==(p=d.querySelector(".".concat(TR.toolbarContainer)))||p.remove(),g=0;if(a.hideFooter)null==(m=d.querySelector(".".concat(TR.footerContainer)))||m.remove(),y=0;d.style.height="".concat(c.currentPageTotalHeight+s+g+y,"px");var b=document.createElement("div");b.appendChild(d),l.body.innerHTML=b.innerHTML;var _,w="function"===typeof a.pageStyle?a.pageStyle():a.pageStyle;if("string"===typeof w){var S=l.createElement("style");S.appendChild(l.createTextNode(w)),l.head.appendChild(S)}if(a.bodyClassName)(_=l.body.classList).add.apply(_,(0,v.Z)(a.bodyClassName.split(" ")));if(a.copyStyles)for(var x=i.current.querySelectorAll("style, link[rel='stylesheet']"),C=0;C<x.length;C+=1){var k=x[C];if("STYLE"===k.tagName){var E=l.createElement(k.tagName),R=k.sheet;if(R){for(var O="",P=0;P<R.cssRules.length;P+=1)"string"===typeof R.cssRules[P].cssText&&(O+="".concat(R.cssRules[P].cssText,"\r\n"));E.appendChild(l.createTextNode(O)),l.head.appendChild(E)}}else if(k.getAttribute("href")){for(var T=l.createElement(k.tagName),M=0;M<k.attributes.length;M+=1){var L=k.attributes[M];L&&T.setAttribute(L.nodeName,L.nodeValue||"")}l.head.appendChild(T)}}t.contentWindow.print()}}),[e,i]),f=t.useCallback((function(t){var n,r;i.current.body.removeChild(t),e.current.restoreState(o.current||{}),null!=(n=o.current)&&null!=(r=n.columns)&&r.columnVisibilityModel||e.current.setColumnVisibilityModel(a.current),e.current.unstable_enableVirtualization(),o.current=null,a.current={}}),[e]),h=t.useCallback(function(){var t=c(l().mark((function t(c){var h,p;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r.debug("Export data as Print"),e.current.rootElementRef.current){t.next=3;break}throw new Error("MUI: No grid root element available.");case 3:return o.current=e.current.exportState(),a.current=qR(e),n.pagination&&(h=XO(e),e.current.setPageSize(h)),t.next=8,s(null==c?void 0:c.fields,null==c?void 0:c.allColumns);case 8:return e.current.unstable_disableVirtualization(),t.next=11,new Promise((function(e){requestAnimationFrame((function(){e()}))}));case 11:(p=u(null==c?void 0:c.fileName)).onload=function(){d(p,c),p.contentWindow.matchMedia("print").addEventListener("change",(function(e){!1===e.matches&&f(p)}))},i.current.body.appendChild(p);case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[n,r,e,u,d,f,s]);mP(e,{exportDataAsPrint:h});var p=t.useCallback((function(e,t){var n;return null!=(n=t.printOptions)&&n.disableToolbarButton?e:[].concat((0,v.Z)(e),[{component:(0,tn.jsx)(CZ,{options:t.printOptions}),componentName:"printExport"}])}),[]);FP(e,"exportMenu",p)},TZ="client",MZ="server";!function(e){e.And="and",e.Or="or"}(OZ||(OZ={}));var LZ=function(){return{items:[],linkOperator:OZ.And,quickFilterValues:[],quickFilterLogicOperator:OZ.And}},ZZ=function(e,n,r,i){var o=t.useCallback((function(){e.current.unstable_registerStrategyProcessor(n,r,i)}),[e,i,r,n]);NP((function(){o()}));var a=t.useRef(!0);t.useEffect((function(){a.current?a.current=!1:o()}),[o])},IZ=function(e,t){var n=(0,Pt.Z)({},e);if(null==n.id&&(n.id=Math.round(1e5*Math.random())),null==n.operatorValue){var r=UR(t)[n.columnField];n.operatorValue=r&&r.filterOperators[0].value}return n},DZ=AR(["MUI: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),jZ=AR("MUI: The 'id' field is required on `filterModel.items` when you use multiple filters.","error"),AZ=AR(["MUI: One of your filtering item have no `operatorValue` provided.","This property will become required on `@mui/x-data-grid@6.X`."]),NZ=function(e,t,n){var r,i=e.items.length>1;i&&t?(DZ(),r=[e.items[0]]):r=e.items;var o=i&&r.some((function(e){return null==e.id})),a=r.some((function(e){return null==e.operatorValue}));return o&&jZ(),a&&AZ(),a||o?(0,Pt.Z)({},e,{items:r.map((function(e){return IZ(e,n)}))}):e.items!==r?(0,Pt.Z)({},e,{items:r}):e},FZ=function(e,t,n){return function(r){return(0,Pt.Z)({},r,{filterModel:NZ(e,t,n)})}},zZ=function(e,t){if(!e.columnField||!e.operatorValue)return null;var n,r=t.current.getColumn(e.columnField);if(!r)return null;if(r.valueParser){var i,o=r.valueParser;n=Array.isArray(e.value)?null==(i=e.value)?void 0:i.map((function(e){return o(e)})):o(e.value)}else n=e.value;var a=(0,Pt.Z)({},e,{value:n}),l=r.filterOperators;if(null==l||!l.length)throw new Error("MUI: No filter operators found for column '".concat(r.field,"'."));var s=l.find((function(e){return e.value===a.operatorValue}));if(!s)throw new Error("MUI: No filter operator found for column '".concat(r.field,"' and operator value '").concat(a.operatorValue,"'."));var c=s.getApplyFilterFn(a,r);if("function"!==typeof c)return null;return{fn:function(e){var n=t.current.getCellParams(e,a.columnField);return c(n)},item:a}},BZ=function(e,t){var n=function(e,t){var n=e.items.map((function(e){return zZ(e,t)})).filter((function(e){return!!e}));return 0===n.length?null:function(e,t){var r={};return(t?n.filter((function(e){return t(e.item.columnField)})):n).forEach((function(t){r[t.item.id]=t.fn(e)})),r}}(e,t),r=function(e,t){var n=e.quickFilterValues,r=void 0===n?[]:n;if(0===r.length)return null;var i=WR(t),o={};i.forEach((function(e){var n=t.current.getColumn(e),i=null==n?void 0:n.getApplyQuickFilterFn;i&&(o[e]=r.map((function(e){return i(e,n,t)})))}));var a=r.filter((function(e,t){return Object.keys(o).some((function(e){return null!=o[e][t]}))}));return 0===a.length?null:function(e,n){var r={},i=[];Object.keys(o).forEach((function(o){n&&!n(o)||(r[o]=t.current.getCellParams(e,o),i.push(o))}));var l={};return a.forEach((function(e,t){var n=i.some((function(e){var n,i;return null!=o[e][t]&&(null==(n=(i=o[e])[t])?void 0:n.call(i,r[e]))}));l[e]=n})),l}}(e,t);return function(e,t){return{passingFilterItems:n&&n(e,t),passingQuickFilterValues:r&&r(e,t)}}},HZ=function(e,t,n,r){var i,o,a=n.items.filter((function(e){return null!==zZ(e,r)})),l=e.filter((function(e){return null!=e})),s=t.filter((function(e){return null!=e})),c=null!=(i=n.quickFilterLogicOperator)?i:LZ().quickFilterLogicOperator,u=null!=(o=n.linkOperator)?o:LZ().linkOperator;if(l.length>0){var d=function(e){return l.some((function(t){return t[e.id]}))};if(u===OZ.And){if(!a.every(d))return!1}else if(!a.some(d))return!1}if(s.length>0&&null!=n.quickFilterValues){var f=function(e){return s.some((function(t){return t[e]}))};if(c===OZ.And){if(!n.quickFilterValues.every(f))return!1}else if(!n.quickFilterValues.some(f))return!1}return!0},WZ=function(e,t,n){var r,i,o,a,l=null!=(r=null!=(i=t.filterModel)?i:null==(o=t.initialState)||null==(a=o.filter)?void 0:a.filterModel)?r:LZ();return(0,Pt.Z)({},e,{filter:{filterModel:NZ(l,t.disableMultipleColumnsFiltering,n),visibleRowsLookup:{},filteredDescendantCountLookup:{}}})},UZ=function(e,t){var n,r;return t.pagination&&"client"===t.paginationMode?(r=lZ(e),n=sZ(e)):r=0===(n=VO(e)).length?null:{firstRowIndex:0,lastRowIndex:n.length-1},{rows:n,range:r}},VZ=function(e,n){var r=UZ(e,n);return t.useMemo((function(){return{rows:r.rows,range:r.range}}),[r.rows,r.range])},qZ=function(e){return(0,Pt.Z)({},e,{focus:{cell:null,columnHeader:null},tabIndex:{cell:null,columnHeader:null}})},KZ="__detail_panel_toggle__";var YZ=function(e,n){var r=EO(e,"useGridKeyboardNavigation"),i=VZ(e,n).rows,o=t.useMemo((function(){return function(e,t){var n=SO(e)||{};return[].concat((0,v.Z)(n.top||[]),(0,v.Z)(t),(0,v.Z)(n.bottom||[]))}(e,i)}),[e,i]),a=t.useCallback((function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left",o=VO(e),a=e.current.unstable_getCellColSpanInfo(n,t);a&&a.spannedByColSpan&&("left"===i?t=a.leftVisibleCellIndex:"right"===i&&(t=a.rightVisibleCellIndex));var l=o.findIndex((function(e){return e.id===n}));r.debug("Navigating to cell row ".concat(l,", col ").concat(t)),e.current.scrollToIndexes({colIndex:t,rowIndex:l});var s=e.current.getVisibleColumns()[t].field;e.current.setCellFocus(n,s)}),[e,r]),l=t.useCallback((function(t,n){r.debug("Navigating to header col ".concat(t)),e.current.scrollToIndexes({colIndex:t});var i=e.current.getVisibleColumns()[t].field;e.current.setColumnHeaderFocus(i,n)}),[e,r]),s=t.useCallback((function(e){return o[e].id}),[o]),c=t.useCallback((function(t,n){var r=e.current.getRootDimensions();if(0!==o.length&&r){var i=e.current.unstable_getViewportPageSize(),c=t.field?e.current.getColumnIndex(t.field):0,u=o.findIndex((function(e){return e.id===t.id})),d=o.length-1,f=KR(e).length-1,h=!0;switch(n.key){case"ArrowDown":case"Enter":u<d&&a(c,s(u+1));break;case"ArrowUp":u>0?a(c,s(u-1)):l(c,n);break;case"ArrowRight":c<f&&a(c+1,s(u),"right");break;case"ArrowLeft":c>0&&a(c-1,s(u));break;case"Tab":n.shiftKey&&c>0?a(c-1,s(u),"left"):!n.shiftKey&&c<f&&a(c+1,s(u),"right");break;case" ":if(t.field===KZ)break;var p=t.colDef;if(p&&"treeDataGroup"===p.type)break;!n.shiftKey&&u<d&&a(c,s(Math.min(u+i,d)));break;case"PageDown":u<d&&a(c,s(Math.min(u+i,d)));break;case"PageUp":var v=Math.max(u-i,0);v!==u&&v>=0?a(c,s(v)):l(c,n);break;case"Home":n.ctrlKey||n.metaKey||n.shiftKey?a(0,s(0)):a(0,s(u));break;case"End":n.ctrlKey||n.metaKey||n.shiftKey?a(f,s(d)):a(f,s(u));break;default:h=!1}h&&n.preventDefault()}}),[e,o,a,l,s]),u=t.useCallback((function(t,n){var r=n.currentTarget.querySelector(".".concat(TR.columnHeaderTitleContainerContent));if((!(!!r&&r.contains(n.target))||t.field===hZ.field)&&e.current.getRootDimensions()){var i=e.current.unstable_getViewportPageSize(),c=t.field?e.current.getColumnIndex(t.field):0,u=o.length-1,d=KR(e).length-1,f=!0;switch(n.key){case"ArrowDown":a(c,s(0));break;case"ArrowRight":c<d&&l(c+1,n);break;case"ArrowLeft":c>0&&l(c-1,n);break;case"PageDown":null!==u&&a(c,s(Math.min(0+i,u)));break;case"Home":l(0,n);break;case"End":l(d,n);break;case"Enter":(n.ctrlKey||n.metaKey)&&e.current.toggleColumnMenu(t.field);break;case" ":break;default:f=!1}f&&n.preventDefault()}}),[e,o,a,l,s]),d=t.useCallback((function(t,n){if(n.currentTarget.contains(n.target)){var r=e.current.getCellParams(t.id,t.field);r.cellMode!==KM.Edit&&QM(n.key)&&e.current.publishEvent("cellNavigationKeyDown",r,n)}}),[e]);xP(e,"cellNavigationKeyDown",c),xP(e,"columnHeaderKeyDown",u),xP(e,"cellKeyDown",d)},GZ=["rowsBeforePartialUpdates"];var XZ=function(e,t,n){var r=t?t(e):e.id;return function(e,t){if(null==e)throw new Error(["MUI: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",arguments.length>2&&void 0!==arguments[2]?arguments[2]:"A row was provided without id in the rows prop:",JSON.stringify(t)].join("\n"))}(r,e,n),r},$Z=function(e){for(var t=e.rows,n=e.getRowId,r={rowsBeforePartialUpdates:t,loadingPropBeforePartialUpdates:e.loading,rowCountPropBeforePartialUpdates:e.rowCount,idRowsLookup:{},idToIdLookup:{},ids:[]},i=0;i<t.length;i+=1){var o=t[i],a=XZ(o,n);r.idRowsLookup[a]=o,r.idToIdLookup[a]=a,r.ids.push(a)}return r},JZ=function(e){var t=e.apiRef,n=e.previousTree,r=e.rowCountProp,i=e.loadingProp,o=t.current.unstable_caches.rows,a=(0,h.Z)(o,GZ),l=null!=r?r:0,s=t.current.unstable_applyStrategyProcessor("rowTreeCreation",(0,Pt.Z)({},a,{previousTree:n})),c=t.current.unstable_applyPipeProcessors("hydrateRows",s),u=1===c.treeDepth?c.ids.length:Object.values(c.tree).filter((function(e){return null==e.parent&&!e.isPinned})).length;return(0,Pt.Z)({},c,{groupingResponseBeforeRowHydration:s,loading:i,totalRowCount:Math.max(l,c.ids.length),totalTopLevelRowCount:Math.max(l,u)})},QZ=function e(t,n,r){var i,o=null==(i=t[n])?void 0:i.children;if(null==o)return[];for(var a=[],l=0;l<o.length;l+=1){var s=o[l],c=t[s];r&&c.isAutoGenerated||a.push(s),a.push.apply(a,(0,v.Z)(e(t,c.id,r)))}return a};function eI(e){var t,n,r=SO(e),i=(null==r||null==(t=r.top)?void 0:t.reduce((function(t,n){return t+=e.current.unstable_getRowHeight(n.id)}),0))||0,o=(null==r||null==(n=r.bottom)?void 0:n.reduce((function(t,n){return t+=e.current.unstable_getRowHeight(n.id)}),0))||0;return{top:i,bottom:o}}var tI=function(e){return e?0:100},nI=function(e){return function(t){return(0,Pt.Z)({},t,{pagination:(0,Pt.Z)({},t.pagination,{pageSize:e})})}},rI=function(e,t){return t>0&&e>0?Math.ceil(e/t):0},iI=function(e){return e.pageCount?(0,Pt.Z)({},e,{page:Math.max(Math.min(e.page,e.pageCount-1),0)}):e},oI=function(e){return function(t){return(0,Pt.Z)({},t,{pagination:iI((0,Pt.Z)({},t.pagination,{page:e}))})}},aI=(AR(["MUI: the 'rowCount' prop is undefined while using paginationMode='server'","For more detail, see http://mui.com/components/data-grid/pagination/#basic-implementation"],"error"),function(e,t){var n,r,i,o,a,l,s,c,u;return u=null!=t.pageSize?t.pageSize:null!=(null==(n=t.initialState)||null==(r=n.pagination)?void 0:r.pageSize)?t.initialState.pagination.pageSize:tI(t.autoPageSize),(0,Pt.Z)({},e,{pagination:{pageSize:u,page:null!=(i=null!=(o=t.page)?o:null==(a=t.initialState)||null==(l=a.pagination)?void 0:l.page)?i:0,pageCount:rI(null!=(s=t.rowCount)?s:0,u),rowCount:null!=(c=t.rowCount)?c:0}})}),lI=function(e,n){!function(e,n){var r,i,o=EO(e,"useGridPageSize"),a=QR(e,aO);e.current.unstable_registerControlState({stateId:"pageSize",propModel:n.pageSize,propOnChange:n.onPageSizeChange,stateSelector:oZ,changeEvent:"pageSizeChange"});var l=t.useCallback((function(t){t!==oZ(e)&&(o.debug("Setting page size to ".concat(t)),e.current.setState(nI(t)),e.current.forceUpdate())}),[e,o]);mP(e,{setPageSize:l});var s=t.useCallback((function(t,r){var i,o,a=oZ(e);return r.exportOnlyDirtyModels&&null==n.pageSize&&null==(null==(i=n.initialState)||null==(o=i.pagination)?void 0:o.pageSize)&&a===tI(n.autoPageSize)?t:(0,Pt.Z)({},t,{pagination:(0,Pt.Z)({},t.pagination,{pageSize:a})})}),[e,n.pageSize,null==(r=n.initialState)||null==(i=r.pagination)?void 0:i.pageSize,n.autoPageSize]),c=t.useCallback((function(t,n){var r,i=null==(r=n.stateToRestore.pagination)?void 0:r.pageSize;return null!=i&&e.current.setState(nI(i)),t}),[e]);FP(e,"exportState",s),FP(e,"restoreState",c);var u=t.useCallback((function(){var t=e.current.getRootDimensions();if(n.autoPageSize&&t){var r=eI(e),i=Math.floor((t.viewportInnerSize.height-r.top-r.bottom)/a);e.current.setPageSize(i)}}),[e,n.autoPageSize,a]);xP(e,"viewportInnerSizeChange",u),t.useEffect((function(){null==n.pageSize||n.autoPageSize||e.current.setPageSize(n.pageSize)}),[e,n.autoPageSize,n.pageSize]),t.useEffect((function(){u()}),[u])}(e,n),function(e,n){var r,i,o=EO(e,"useGridPage"),a=QR(e,$O);e.current.unstable_registerControlState({stateId:"page",propModel:n.page,propOnChange:n.onPageChange,stateSelector:iZ,changeEvent:"pageChange"});var l=t.useCallback((function(t){o.debug("Setting page to ".concat(t)),e.current.setState(oI(t)),e.current.forceUpdate()}),[e,o]);mP(e,{setPage:l});var s=t.useCallback((function(t,r){var i,o,a=iZ(e);return r.exportOnlyDirtyModels&&null==n.page&&null==(null==(i=n.initialState)||null==(o=i.pagination)?void 0:o.page)&&0===a?t:(0,Pt.Z)({},t,{pagination:(0,Pt.Z)({},t.pagination,{page:a})})}),[e,n.page,null==(r=n.initialState)||null==(i=r.pagination)?void 0:i.page]),c=t.useCallback((function(t,n){var r,i,o=null!=(r=null==(i=n.stateToRestore.pagination)?void 0:i.page)?r:iZ(e);return e.current.setState(oI(o)),t}),[e]);FP(e,"exportState",s),FP(e,"restoreState",c),xP(e,"pageSizeChange",(function(t){e.current.setState((function(e){var n=rI(e.pagination.rowCount,t);return(0,Pt.Z)({},e,{pagination:iI((0,Pt.Z)({},e.pagination,{pageCount:n,page:e.pagination.page}))})})),e.current.forceUpdate()})),xP(e,"pageChange",(function(){return e.current.scrollToIndexes({rowIndex:iZ(e)*oZ(e)})})),t.useEffect((function(){}),[n.rowCount,n.paginationMode]),t.useEffect((function(){e.current.setState((function(e){var t=void 0!==n.rowCount?n.rowCount:a,r=rI(t,e.pagination.pageSize),i=null==n.page?e.pagination.page:n.page;return(0,Pt.Z)({},e,{pagination:iI((0,Pt.Z)({},e.pagination,{page:i,rowCount:t,pageCount:r}))})})),e.current.forceUpdate()}),[a,n.rowCount,n.page,n.paginationMode,e])}(e,n)},sI=function(e){return e.preferencePanel},cI=function(e,t){var n,r;return(0,Pt.Z)({},e,{preferencePanel:null!=(n=null==(r=t.initialState)?void 0:r.preferencePanel)?n:{open:!1}})},uI=function(e){return e.editRows};function dI(e){return"function"===typeof e.then}var fI,hI,pI=function(e,n){var r,i=EO(e,"useGridEditRows"),a=function(e){return function(){n.editMode===qM.Cell&&e.apply(void 0,arguments)}},s=t.useCallback((function(t,n,r){e.current.getCellMode(t,n)!==r&&(i.debug("Switching cell id: ".concat(t," field: ").concat(n," to mode: ").concat(r)),e.current.setState((function(i){var o=(0,Pt.Z)({},i.editRows);return o[t]=(0,Pt.Z)({},o[t]),r===KM.Edit?o[t][n]={value:e.current.getCellValue(t,n)}:(delete o[t][n],Object.keys(o[t]).length||delete o[t]),(0,Pt.Z)({},i,{editRows:o})})),e.current.forceUpdate(),e.current.publishEvent("cellModeChange",e.current.getCellParams(t,n)))}),[e,i]),u=t.useCallback((function(t,n){var r=uI(e.current.state);return r[t]&&r[t][n]?KM.Edit:KM.View}),[e]),d=t.useCallback((function(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.id,a=t.field;e.current.unstable_runPendingEditCellValueMutation(o,a);var l=e.current.getEditRowsModel();if(!l[o]||!l[o][a])throw new Error("MUI: Cell at id: ".concat(o," and field: ").concat(a," is not in edit mode."));var s=l[o][a],c=e.current.getColumn(a),u=e.current.getRow(o);if(null!=(r=n.experimentalFeatures)&&r.preventCommitWhileValidating){var d=l[o][a];if(d.isValidating||d.error)return!1}var f=(0,Pt.Z)({},t,{value:s.value}),h=!!s.error;if(!h&&"function"===typeof c.preProcessEditCellProps){var p=c.preProcessEditCellProps({id:o,row:u,props:s});if(dI(p))return p.then((function(t){return e.current.unstable_setEditCellProps({id:o,field:a,props:t}),!t.error&&(e.current.publishEvent("cellEditCommit",f,i),!0)}));e.current.unstable_setEditCellProps({id:o,field:a,props:p}),h=!!p.error}return!h&&(e.current.publishEvent("cellEditCommit",f,i),!0)}),[e,null==(r=n.experimentalFeatures)?void 0:r.preventCommitWhileValidating]),f=t.useCallback((function(t){var n=e.current.getColumn(t.field),r=e.current.getRow(t.id);return new Promise((function(i){var o={value:t.value},a=e.current.getEditRowsModel()[t.id][t.field];if("function"!==typeof n.preProcessEditCellProps)return e.current.unstable_setEditCellProps((0,Pt.Z)({},t,{props:o})),void i(!0);o=e.current.unstable_setEditCellProps((0,Pt.Z)({},t,{props:(0,Pt.Z)({},a,{isValidating:!0})})),Promise.resolve(n.preProcessEditCellProps({id:t.id,row:r,props:(0,Pt.Z)({},o,{value:e.current.unstable_parseValue(t.id,t.field,t.value)})})).then((function(n){e.current.unstable_setEditCellProps((0,Pt.Z)({},t,{props:(0,Pt.Z)({},n,{isValidating:!1})})),i(!n.error)}))}))}),[e]);mP(e,{setCellMode:s,getCellMode:u,commitCellChange:d,unstable_setCellEditingEditCellValue:f});var h=t.useCallback(function(){var t=c(l().mark((function t(n,r){var i,o,a,s,c,u;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(229!==r.which){t.next=2;break}return t.abrupt("return");case 2:if(i=n.id,o=n.field,a=n.cellMode,n.isEditable){t.next=5;break}return t.abrupt("return");case 5:if(s=a===KM.Edit,c=r.ctrlKey||r.metaKey||r.altKey,s||!$M(r)||c||" "===r.key&&r.shiftKey||e.current.publishEvent("cellEditStart",n,r),!s&&UM(r.key)&&(e.current.setEditCellValue({id:i,field:o,value:""}),e.current.commitCellChange({id:i,field:o},r),e.current.publishEvent("cellEditStop",n,r)),!s||!JM(r.key)){t.next=16;break}return u={id:i,field:o},t.next=13,e.current.commitCellChange(u,r);case 13:if(t.sent){t.next=16;break}return t.abrupt("return");case 16:s&&(l=r.key,GM.indexOf(l)>-1)&&e.current.publishEvent("cellEditStop",n,r);case 17:case"end":return t.stop()}var l}),t)})));return function(e,n){return t.apply(this,arguments)}}(),[e]),p=t.useCallback((function(t,n){t.isEditable&&e.current.publishEvent("cellEditStart",t,n)}),[e]),v=function(){var t=c(l().mark((function t(n,r){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.cellMode!==KM.View){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e.current.commitCellChange(n,r);case 4:e.current.publishEvent("cellEditStop",n,r);case 5:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),m=(0,jt.Z)((function(e,t){v(e,t)})),g=(0,jt.Z)((function(){var t=YL(e);if(t){var n=e.current.getCellParams(t.id,t.field);v(n,{})}})),y=t.useCallback((function(t,n){t.isEditable&&(e.current.setCellMode(t.id,t.field,KM.Edit),eL(n)&&VM(n)&&e.current.unstable_setEditCellProps({id:t.id,field:t.field,props:{value:""}}))}),[e]),b=t.useCallback((function(t,n){e.current.setCellMode(t.id,t.field,KM.View),eL(n)&&(JM(n.key)?e.current.publishEvent("cellNavigationKeyDown",t,n):("Escape"===n.key||UM(n.key))&&e.current.setCellFocus(t.id,t.field))}),[e]),_=t.useCallback((function(t){var n=t.id,r=t.field,a=e.current.getEditRowsModel()[n][r].value;i.debug("Setting cell id: ".concat(n," field: ").concat(r," to value: ").concat(null==a?void 0:a.toString()));var l=e.current.getRow(n);if(l){var s=e.current.getColumn(t.field),c=(0,Pt.Z)({},l,(0,o.Z)({},r,a));s.valueSetter&&(c=s.valueSetter({row:l,value:a})),e.current.updateRows([c])}}),[e,i]),w=t.useCallback((function(t){var n=e.current.getRow(t.id),r=e.current.getColumn(t.field),i=r.preProcessEditCellProps?r.preProcessEditCellProps({id:t.id,row:n,props:t.props}):t.props;dI(i)?i.then((function(n){e.current.unstable_setEditCellProps((0,Pt.Z)({},t,{props:n}))})):e.current.unstable_setEditCellProps((0,Pt.Z)({},t,{props:i}))}),[e]);xP(e,"cellKeyDown",a(h)),xP(e,"cellDoubleClick",a(p)),xP(e,"cellFocusOut",a(m)),xP(e,"columnHeaderDragStart",a(g)),xP(e,"cellEditStart",a(y)),xP(e,"cellEditStop",a(b)),xP(e,"cellEditCommit",a(_)),xP(e,"editCellPropsChange",a(w)),kP(e,"cellEditCommit",n.onCellEditCommit),kP(e,"cellEditStart",n.onCellEditStart),kP(e,"cellEditStop",n.onCellEditStop)},vI=function(e,n){var r,i,o=t.useRef(null),a=t.useRef(null),s=QR(e,VR),u=function(e){return function(){n.editMode===qM.Row&&e.apply(void 0,arguments)}},d=t.useCallback((function(t,n){n!==e.current.getRowMode(t)&&(e.current.setState((function(r){var i=(0,Pt.Z)({},r.editRows);return n===YM.Edit?(i[t]={},s.forEach((function(n){var r=e.current.getCellParams(t,n.field);r.isEditable&&(i[t][n.field]={value:r.value})}))):delete i[t],(0,Pt.Z)({},r,{editRows:i})})),e.current.forceUpdate())}),[e,s]),f=t.useCallback((function(t){return n.editMode===qM.Cell?YM.View:uI(e.current.state)[t]?YM.Edit:YM.View}),[e,n.editMode]),h=t.useCallback((function(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n.editMode===qM.Cell)throw new Error("MUI: You can't commit changes when the edit mode is 'cell'.");e.current.unstable_runPendingEditCellValueMutation(t);var o=e.current.getEditRowsModel()[t];if(!o)throw new Error("MUI: Row at id: ".concat(t," is not being edited."));if(null!=(r=n.experimentalFeatures)&&r.preventCommitWhileValidating&&!Object.keys(o).reduce((function(e,t){return e&&!o[t].isValidating&&!o[t].error}),!0))return!1;var a=Object.values(o).some((function(e){return!!e.error}));if(a)return!1;var s=Object.keys(o).filter((function(t){return"function"===typeof e.current.getColumn(t).preProcessEditCellProps}));if(s.length>0){var u=e.current.getRow(t),d=s.map(function(){var n=c(l().mark((function n(r){var i,a;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=e.current.getColumn(r),n.next=3,Promise.resolve(i.preProcessEditCellProps({id:t,row:u,props:o[r]}));case 3:return a=n.sent,e.current.unstable_setEditCellProps({id:t,field:r,props:a}),n.abrupt("return",a.error);case 6:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());return Promise.all(d).then((function(n){return!n.some((function(e){return!!e}))&&(e.current.publishEvent("rowEditCommit",t,i),!0)}))}return e.current.publishEvent("rowEditCommit",t,i),!0}),[e,n.editMode,null==(r=n.experimentalFeatures)?void 0:r.preventCommitWhileValidating]),p=t.useCallback((function(t){var n=e.current.getEditRowsModel()[t.id],r=e.current.getRow(t.id),i=!0;return new Promise((function(o){Object.keys(n).forEach(function(){var o=c(l().mark((function o(a){var s,c;return l().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(s=e.current.getColumn(a),c=a===t.field?{value:t.value}:n[a],c=e.current.unstable_setEditCellProps({id:t.id,field:a,props:(0,Pt.Z)({},c,{isValidating:!0})}),!s.preProcessEditCellProps){o.next=7;break}return o.next=6,Promise.resolve(s.preProcessEditCellProps({id:t.id,row:r,props:(0,Pt.Z)({},c,{value:a===t.field?e.current.unstable_parseValue(t.id,a,t.value):c.value})}));case 6:c=o.sent;case 7:c.error&&(i=!1),e.current.unstable_setEditCellProps({id:t.id,field:a,props:(0,Pt.Z)({},c,{isValidating:!1})});case 9:case"end":return o.stop()}}),o)})));return function(e){return o.apply(this,arguments)}}()),o(i)}))}),[e]);mP(e,{setRowMode:d,getRowMode:f,commitRowChange:h,unstable_setRowEditingEditCellValue:p});var v=t.useCallback(function(){var t=c(l().mark((function t(r,i){var o,a,s,c;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(229!==i.which){t.next=2;break}return t.abrupt("return");case 2:if(o=r.cellMode,r.isEditable){t.next=5;break}return t.abrupt("return");case 5:if(a=o===KM.Edit,s=e.current.getRowParams(r.id),!a){t.next=20;break}if("Enter"!==i.key){t.next=17;break}return t.next=11,e.current.commitRowChange(r.id);case 11:if(t.sent||null==(c=n.experimentalFeatures)||!c.preventCommitWhileValidating){t.next=14;break}return t.abrupt("return");case 14:e.current.publishEvent("rowEditStop",s,i),t.next=18;break;case 17:"Escape"===i.key&&e.current.publishEvent("rowEditStop",s,i);case 18:t.next=21;break;case 20:"Enter"===i.key&&e.current.publishEvent("rowEditStart",s,i);case 21:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),[e,null==(i=n.experimentalFeatures)?void 0:i.preventCommitWhileValidating]),m=t.useCallback((function(t,n){if(t.isEditable){var r=e.current.getRowParams(t.id);e.current.publishEvent("rowEditStart",r,n)}}),[e]),g=t.useCallback((function(t){var n=e.current.getRow(t.id),r=e.current.getEditRowsModel()[t.id];Object.keys(r).forEach(function(){var i=c(l().mark((function i(o){var a,s,c;return l().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!(a=e.current.getColumn(o)).preProcessEditCellProps){i.next=9;break}return s=o===t.field?t.props:r[o],i.next=5,Promise.resolve(a.preProcessEditCellProps({id:t.id,row:n,props:s}));case 5:c=i.sent,e.current.unstable_setEditCellProps({id:t.id,field:o,props:c}),i.next=10;break;case 9:o===t.field&&e.current.unstable_setEditCellProps(t);case 10:case"end":return i.stop()}}),i)})));return function(e){return i.apply(this,arguments)}}())}),[e]),y=t.useCallback((function(t){e.current.setRowMode(t.id,YM.Edit)}),[e]),b=t.useCallback((function(t,n){e.current.setRowMode(t.id,YM.View),"Enter"===n.key&&e.current.publishEvent("cellNavigationKeyDown",t,n)}),[e]),_=t.useCallback((function(t){var n=e.current.getEditRowsModel()[t];if(!n)throw new Error("MUI: Row at id: ".concat(t," is not being edited."));var r=e.current.getRow(t);if(r){var i=(0,Pt.Z)({},r);Object.keys(n).forEach((function(t){var r=e.current.getColumn(t),o=n[t].value;r.valueSetter?i=r.valueSetter({row:i,value:o}):i[t]=o})),e.current.updateRows([i])}}),[e]),w=t.useCallback((function(e){a.current=e}),[]),S=function(){var t=c(l().mark((function t(n,r){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.cellMode!==KM.View){t.next=2;break}return t.abrupt("return");case 2:a.current=null,o.current=setTimeout(c(l().mark((function t(){var i,o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((null==(i=a.current)?void 0:i.id)===n.id){t.next=5;break}return t.next=3,e.current.commitRowChange(n.id,r);case 3:o=e.current.getRowParams(n.id),e.current.publishEvent("rowEditStop",o,r);case 5:case"end":return t.stop()}}),t)}))));case 4:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),x=(0,jt.Z)((function(e,t){S(e,t)})),C=(0,jt.Z)((function(){var t=YL(e);if(t){var n=e.current.getCellParams(t.id,t.field);S(n,{})}}));xP(e,"cellKeyDown",u(v)),xP(e,"cellDoubleClick",u(m)),xP(e,"editCellPropsChange",u(g)),xP(e,"rowEditStart",u(y)),xP(e,"rowEditStop",u(b)),xP(e,"rowEditCommit",u(_)),xP(e,"cellFocusIn",u(w)),xP(e,"cellFocusOut",u(x)),xP(e,"columnHeaderDragStart",u(C)),kP(e,"rowEditCommit",n.onRowEditCommit),kP(e,"rowEditStart",n.onRowEditStart),kP(e,"rowEditStop",n.onRowEditStop)},mI=function(e){return(0,Pt.Z)({},e,{editRows:{}})};function gI(e,n){var r,i=EO(e,"useGridEditRows");pI(e,n),vI(e,n);var o=t.useRef({});e.current.unstable_registerControlState({stateId:"editRows",propModel:n.editRowsModel,propOnChange:n.onEditRowsModelChange,stateSelector:uI,changeEvent:"editRowsModelChange"});var a=t.useCallback((function(e){return!e.rowNode.isAutoGenerated&&!e.rowNode.isPinned&&!!e.colDef.editable&&!!e.colDef.renderEditCell&&(!n.isCellEditable||n.isCellEditable(e))}),[n.isCellEditable]),l=function(e,t,n,r){if(n){if(o.current[e]||(o.current[e]={}),o.current[e][t]){var i=(0,u.Z)(o.current[e][t],1)[0];clearTimeout(i)}var a=setTimeout((function(){r(),delete o.current[e][t]}),n);o.current[e][t]=[a,function(){r();var n=(0,u.Z)(o.current[e][t],1)[0];clearTimeout(n),delete o.current[e][t]}]}else r()},s=t.useCallback((function(e,t){if(o.current[e])if(t){if(o.current[e][t]){(0,(0,u.Z)(o.current[e][t],2)[1])()}}else Object.keys(o.current[e]).forEach((function(t){(0,(0,u.Z)(o.current[e][t],2)[1])()}))}),[]),c=t.useCallback((function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l(t.id,t.field,t.debounceMs,(function(){var i;if(null!=(i=n.experimentalFeatures)&&i.preventCommitWhileValidating)return"row"===n.editMode?e.current.unstable_setRowEditingEditCellValue(t):e.current.unstable_setCellEditingEditCellValue(t);var o={id:t.id,field:t.field,props:{value:t.value}};return e.current.publishEvent("editCellPropsChange",o,r)}))}),[e,n.editMode,null==(r=n.experimentalFeatures)?void 0:r.preventCommitWhileValidating]),d=t.useCallback((function(t,n,r){var i=e.current.getColumn(n);return i.valueParser?i.valueParser(r,e.current.getCellParams(t,n)):r}),[e]),f=t.useCallback((function(t){var n=t.id,r=t.field,o=t.props;return i.debug("Setting cell props on id: ".concat(n," field: ").concat(r)),e.current.setState((function(e){var t=(0,Pt.Z)({},e.editRows);return t[n]=(0,Pt.Z)({},e.editRows[n]),t[n][r]=(0,Pt.Z)({},o,{value:d(n,r,o.value)}),(0,Pt.Z)({},e,{editRows:t})})),e.current.forceUpdate(),uI(e.current.state)[n][r]}),[e,i,d]),h=t.useCallback((function(t){uI(e.current.state)!==t&&(i.debug("Setting editRows model"),e.current.setState((function(e){return(0,Pt.Z)({},e,{editRows:t})})),e.current.forceUpdate())}),[e,i]),p=t.useCallback((function(){return uI(e.current.state)}),[e]),v=t.useCallback((function(e,t){var n=t.detail>1;e.isEditable&&e.cellMode===KM.View&&n&&t.preventDefault()}),[]);xP(e,"cellMouseDown",v),kP(e,"editCellPropsChange",n.onEditCellPropsChange),mP(e,{isCellEditable:a,setEditRowsModel:h,getEditRowsModel:p,setEditCellValue:c,unstable_setEditCellProps:f,unstable_parseValue:d,unstable_runPendingEditCellValueMutation:s}),t.useEffect((function(){void 0!==n.editRowsModel&&e.current.setEditRowsModel(n.editRowsModel)}),[e,n.editRowsModel])}!function(e){e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown"}(fI||(fI={})),function(e){e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown"}(hI||(hI={}));var yI,bI,_I=["id","field"],wI=["id","field"],SI=AR(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#persistence."],"error");!function(e){e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown"}(yI||(yI={})),function(e){e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown"}(bI||(bI={}));var xI=["id"],CI=["id"],kI=AR(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#persistence."],"error"),EI=function(e){return(0,Pt.Z)({},e,{editRows:{}})},RI=function(e,n){!function(e,n){var r=t.useState({}),i=(0,u.Z)(r,2),a=i[0],s=i[1],d=t.useRef(a),f=t.useRef({}),p=n.processRowUpdate,v=n.onProcessRowUpdateError,m=n.cellModesModel,g=n.onCellModesModelChange,y=n.signature,b=function(e){return function(){n.editMode===qM.Cell&&e.apply(void 0,arguments)}},_=t.useCallback((function(t,n){var r=e.current.getCellParams(t,n);if(!e.current.isCellEditable(r))throw new Error("MUI: The cell with id=".concat(t," and field=").concat(n," is not editable."))}),[e]),w=t.useCallback((function(t,n,r){if(e.current.getCellMode(t,n)!==r)throw new Error("MUI: The cell with id=".concat(t," and field=").concat(n," is not in ").concat(r," mode."))}),[e]),S=t.useCallback((function(t,n){if(t.isEditable&&t.cellMode!==KM.Edit){var r=(0,Pt.Z)({},t,{reason:fI.cellDoubleClick});e.current.publishEvent("cellEditStart",r,n)}}),[e]),x=t.useCallback((function(t,n){if(t.cellMode!==KM.View&&e.current.getCellMode(t.id,t.field)!==KM.View){var r=(0,Pt.Z)({},t,{reason:hI.cellFocusOut});e.current.publishEvent("cellEditStop",r,n)}}),[e]),C=t.useCallback((function(t,n){if(t.cellMode===KM.Edit){if(229===n.which)return;var r;if("Escape"===n.key?r=hI.escapeKeyDown:"Enter"===n.key?r=hI.enterKeyDown:"Tab"===n.key&&(r=n.shiftKey?hI.shiftTabKeyDown:hI.tabKeyDown,n.preventDefault()),r){var i=(0,Pt.Z)({},t,{reason:r});e.current.publishEvent("cellEditStop",i,n)}}else if(t.isEditable){var o;if(" "===n.key&&n.shiftKey)return;if(VM(n)||(n.ctrlKey||n.metaKey)&&"v"===n.key?o=fI.printableKeyDown:"Enter"===n.key?o=fI.enterKeyDown:"Delete"!==n.key&&"Backspace"!==n.key||(o=fI.deleteKeyDown),o){var a=(0,Pt.Z)({},t,{reason:o,key:n.key});e.current.publishEvent("cellEditStart",a,n)}}}),[e]),k=t.useCallback((function(n){var r=n.id,i=n.field,o=n.reason,a=n.key,l={id:r,field:i};o===fI.printableKeyDown?t.version.startsWith("18")?l.initialValue=a:l.deleteValue=!0:o===fI.deleteKeyDown&&(l.deleteValue=!0),e.current.startCellEditMode(l)}),[e]),E=t.useCallback((function(t){var r,i=t.id,o=t.field,a=t.reason;e.current.unstable_runPendingEditCellValueMutation(i,o),a===hI.enterKeyDown?r="below":a===hI.tabKeyDown?r="right":a===hI.shiftTabKeyDown&&(r="left");var l="escapeKeyDown"===a;uI(e.current.state)[i][o].isProcessingProps&&!n.disableIgnoreModificationsIfProcessingProps&&(l=!0),e.current.stopCellEditMode({id:i,field:o,ignoreModifications:l,cellToFocusAfter:r})}),[e,n.disableIgnoreModificationsIfProcessingProps]);xP(e,"cellDoubleClick",b(S)),xP(e,"cellFocusOut",b(x)),xP(e,"cellKeyDown",b(C)),xP(e,"cellEditStart",b(k)),xP(e,"cellEditStop",b(E)),kP(e,"cellEditStart",n.onCellEditStart),kP(e,"cellEditStop",n.onCellEditStop);var R=t.useCallback((function(t,n){var r=uI(e.current.state);return r[t]&&r[t][n]?KM.Edit:KM.View}),[e]),O=(0,SS.Z)((function(t){var r=t!==n.cellModesModel;if(g&&r){var i=y===gP.DataGridPro?{api:e.current}:{};g(t,i)}n.cellModesModel&&r||(s(t),d.current=t,e.current.publishEvent("cellModesModelChange",t))})),P=t.useCallback((function(e,t,n){var r=(0,Pt.Z)({},d.current);if(null!==n)r[e]=(0,Pt.Z)({},r[e],(0,o.Z)({},t,(0,Pt.Z)({},n)));else{var i=r[e],a=(0,h.Z)(i,[t].map(X.Z));r[e]=a,0===Object.keys(r[e]).length&&delete r[e]}O(r)}),[O]),T=t.useCallback((function(t,n,r){e.current.setState((function(e){var i=(0,Pt.Z)({},e.editRows);return null!==r?i[t]=(0,Pt.Z)({},i[t],(0,o.Z)({},n,(0,Pt.Z)({},r))):(delete i[t][n],0===Object.keys(i[t]).length&&delete i[t]),(0,Pt.Z)({},e,{editRows:i})})),e.current.forceUpdate()}),[e]),M=t.useCallback((function(e){var t=e.id,n=e.field,r=(0,h.Z)(e,_I);_(t,n),w(t,n,KM.View),P(t,n,(0,Pt.Z)({mode:KM.Edit},r))}),[_,w,P]),L=(0,SS.Z)((function(t){var n=t.id,r=t.field,i=t.deleteValue,o=t.initialValue,a=e.current.getCellValue(n,r);(i||o)&&(a=i?"":o),T(n,r,{value:a,error:!1,isProcessingProps:!1}),e.current.setCellFocus(n,r)})),Z=t.useCallback((function(e){var t=e.id,n=e.field,r=(0,h.Z)(e,wI);w(t,n,KM.Edit),P(t,n,(0,Pt.Z)({mode:KM.View},r))}),[w,P]),I=(0,SS.Z)(function(){var t=c(l().mark((function t(n){var r,i,o,a,s,c,u,d,h,m,g,y,b;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n.id,i=n.field,o=n.ignoreModifications,a=n.cellToFocusAfter,s=void 0===a?"none":a,w(r,i,KM.Edit),e.current.unstable_runPendingEditCellValueMutation(r,i),c=function(){T(r,i,null),P(r,i,null),"none"!==s&&e.current.unstable_moveFocusToRelativeCell(r,i,s)},!o){t.next=7;break}return c(),t.abrupt("return");case 7:if(u=uI(e.current.state),d=u[r][i],h=d.error,m=d.isProcessingProps,!h&&!m){t.next=13;break}return f.current[r][i].mode=KM.Edit,P(r,i,{mode:KM.Edit}),t.abrupt("return");case 13:if(g=e.current.unstable_getRowWithUpdatedValuesFromCellEditing(r,i),p){y=function(e){f.current[r][i].mode=KM.Edit,P(r,i,{mode:KM.Edit}),v?v(e):SI()};try{b=e.current.getRow(r),Promise.resolve(p(g,b)).then((function(t){e.current.updateRows([t]),c()})).catch(y)}catch(l){y(l)}}else e.current.updateRows([g]),c();case 15:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),D=t.useCallback(function(){var t=c(l().mark((function t(n){var r,i,o,a,s,c,u,d,f,h,p,v,m;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=n.id,a=n.field,s=n.value,c=n.debounceMs,u=n.unstable_skipValueParser,_(o,a),w(o,a,KM.Edit),d=e.current.getColumn(a),f=e.current.getRow(o),h=s,d.valueParser&&!u&&(h=d.valueParser(s,e.current.getCellParams(o,a))),p=uI(e.current.state),v=(0,Pt.Z)({},p[o][a],{value:h,changeReason:c?"debouncedSetEditCellValue":"setEditCellValue"}),!d.preProcessEditCellProps){t.next=16;break}return m=s!==p[o][a].value,v=(0,Pt.Z)({},v,{isProcessingProps:!0}),T(o,a,v),t.next=15,Promise.resolve(d.preProcessEditCellProps({id:o,row:f,props:v,hasChanged:m}));case 15:v=t.sent;case 16:if(e.current.getCellMode(o,a)!==KM.View){t.next=18;break}return t.abrupt("return",!1);case 18:return p=uI(e.current.state),(v=(0,Pt.Z)({},v,{isProcessingProps:!1})).value=d.preProcessEditCellProps?p[o][a].value:h,T(o,a,v),p=uI(e.current.state),t.abrupt("return",!(null!=(r=p[o])&&null!=(i=r[a])&&i.error));case 24:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[e,_,w,T]),j=t.useCallback((function(t,n){var r=e.current.getColumn(n),i=uI(e.current.state)[t][n].value,a=e.current.getRow(t);return r.valueSetter?r.valueSetter({value:i,row:a}):(0,Pt.Z)({},a,(0,o.Z)({},n,i))}),[e]);mP(e,{getCellMode:R,startCellEditMode:M,stopCellEditMode:Z,unstable_setCellEditingEditCellValue:D,unstable_getRowWithUpdatedValuesFromCellEditing:j}),t.useEffect((function(){m&&O(m)}),[m,O]),t.useEffect((function(){var t=mO(e),n=f.current;f.current=uP(a),Object.entries(a).forEach((function(e){var r=(0,u.Z)(e,2),i=r[0],o=r[1];Object.entries(o).forEach((function(e){var r,o,a,l=(0,u.Z)(e,2),s=l[0],c=l[1],d=(null==(r=n[i])||null==(o=r[s])?void 0:o.mode)||KM.View,f=null!=(a=t[i])?a:i;c.mode===KM.Edit&&d===KM.View?L((0,Pt.Z)({id:f,field:s},c)):c.mode===KM.View&&d===KM.Edit&&I((0,Pt.Z)({id:f,field:s},c))}))}))}),[e,a,L,I])}(e,n),function(e,n){var r=t.useState({}),i=(0,u.Z)(r,2),a=i[0],l=i[1],s=t.useRef(a),c=t.useRef({}),d=t.useRef(null),f=t.useRef(null),p=n.processRowUpdate,v=n.onProcessRowUpdateError,m=n.rowModesModel,g=n.onRowModesModelChange,y=n.signature,b=function(e){return function(){n.editMode===qM.Row&&e.apply(void 0,arguments)}},_=t.useCallback((function(t,n){var r=e.current.getCellParams(t,n);if(!e.current.isCellEditable(r))throw new Error("MUI: The cell with id=".concat(t," and field=").concat(n," is not editable."))}),[e]),w=t.useCallback((function(t,n){if(e.current.getRowMode(t)!==n)throw new Error("MUI: The row with id=".concat(t," is not in ").concat(n," mode."))}),[e]),S=t.useCallback((function(t,n){if(t.isEditable&&e.current.getRowMode(t.id)!==YM.Edit){var r=e.current.getRowParams(t.id),i=(0,Pt.Z)({},r,{field:t.field,reason:yI.cellDoubleClick});e.current.publishEvent("rowEditStart",i,n)}}),[e]),x=t.useCallback((function(e){f.current=e}),[]),C=t.useCallback((function(t,n){t.isEditable&&e.current.getRowMode(t.id)!==YM.View&&(f.current=null,d.current=setTimeout((function(){var r;if(d.current=null,(null==(r=f.current)?void 0:r.id)!==t.id){if(!e.current.getRow(t.id))return;if(e.current.getRowMode(t.id)===YM.View)return;var i=e.current.getRowParams(t.id),o=(0,Pt.Z)({},i,{field:t.field,reason:bI.rowFocusOut});e.current.publishEvent("rowEditStop",o,n)}})))}),[e]);t.useEffect((function(){return function(){clearTimeout(d.current)}}),[]);var k=t.useCallback((function(t,n){if(t.cellMode===YM.Edit){if(229===n.which)return;var r;if("Escape"===n.key)r=bI.escapeKeyDown;else if("Enter"===n.key)r=bI.enterKeyDown;else if("Tab"===n.key){var i=WR(e).filter((function(n){return e.current.isCellEditable(e.current.getCellParams(t.id,n))}));n.shiftKey?t.field===i[0]&&(r=bI.shiftTabKeyDown):t.field===i[i.length-1]&&(r=bI.tabKeyDown),r&&n.preventDefault()}if(r){var o=e.current.getRowParams(t.id),a=(0,Pt.Z)({},o,{reason:r,field:t.field});e.current.publishEvent("rowEditStop",a,n)}}else if(t.isEditable){var l;if(" "===n.key&&n.shiftKey)return;if(VM(n)||(n.ctrlKey||n.metaKey)&&"v"===n.key?l=yI.printableKeyDown:"Enter"===n.key?l=yI.enterKeyDown:"Delete"!==n.key&&"Backspace"!==n.key||(l=yI.deleteKeyDown),l){var s=e.current.getRowParams(t.id),c=(0,Pt.Z)({},s,{field:t.field,key:n.key,reason:l});e.current.publishEvent("rowEditStart",c,n)}}}),[e]),E=t.useCallback((function(n){var r=n.id,i=n.field,o=n.reason,a=n.key,l={id:r,fieldToFocus:i};o===yI.printableKeyDown?t.version.startsWith("18")?l.initialValue=a:l.deleteValue=!!i:o===yI.deleteKeyDown&&(l.deleteValue=!!i),e.current.startRowEditMode(l)}),[e]),R=t.useCallback((function(t){var r,i=t.id,o=t.reason,a=t.field;e.current.unstable_runPendingEditCellValueMutation(i),o===bI.enterKeyDown?r="below":o===bI.tabKeyDown?r="right":o===bI.shiftTabKeyDown&&(r="left");var l="escapeKeyDown"===o,s=uI(e.current.state);l||n.disableIgnoreModificationsIfProcessingProps||(l=Object.values(s[i]).some((function(e){return e.isProcessingProps}))),e.current.stopRowEditMode({id:i,ignoreModifications:l,field:a,cellToFocusAfter:r})}),[e,n.disableIgnoreModificationsIfProcessingProps]);xP(e,"cellDoubleClick",b(S)),xP(e,"cellFocusIn",b(x)),xP(e,"cellFocusOut",b(C)),xP(e,"cellKeyDown",b(k)),xP(e,"rowEditStart",b(E)),xP(e,"rowEditStop",b(R)),kP(e,"rowEditStart",n.onRowEditStart),kP(e,"rowEditStop",n.onRowEditStop);var O=t.useCallback((function(t){if(n.editMode===qM.Cell)return YM.View;var r=uI(e.current.state);return r[t]&&Object.keys(r[t]).length>0?YM.Edit:YM.View}),[e,n.editMode]),P=(0,SS.Z)((function(t){var r=t!==n.rowModesModel;if(g&&r){var i=y===gP.DataGridPro?{api:e.current}:{};g(t,i)}n.rowModesModel&&r||(l(t),s.current=t,e.current.publishEvent("rowModesModelChange",t))})),T=t.useCallback((function(e,t){var n=(0,Pt.Z)({},s.current);null!==t?n[e]=(0,Pt.Z)({},t):delete n[e],P(n)}),[P]),M=t.useCallback((function(t,n){e.current.setState((function(e){var r=(0,Pt.Z)({},e.editRows);return null!==n?r[t]=n:delete r[t],(0,Pt.Z)({},e,{editRows:r})})),e.current.forceUpdate()}),[e]),L=t.useCallback((function(t,n,r){e.current.setState((function(e){var i=(0,Pt.Z)({},e.editRows);return null!==r?i[t]=(0,Pt.Z)({},i[t],(0,o.Z)({},n,(0,Pt.Z)({},r))):(delete i[t][n],0===Object.keys(i[t]).length&&delete i[t]),(0,Pt.Z)({},e,{editRows:i})})),e.current.forceUpdate()}),[e]),Z=t.useCallback((function(e){var t=e.id,n=(0,h.Z)(e,xI);w(t,YM.View),T(t,(0,Pt.Z)({mode:YM.Edit},n))}),[w,T]),I=(0,SS.Z)((function(t){var n=t.id,r=t.fieldToFocus,i=t.deleteValue,o=t.initialValue,a=WR(e).reduce((function(t,a){if(!e.current.getCellParams(n,a).isEditable)return t;var l=e.current.getCellValue(n,a);return r===a&&(i||o)&&(l=i?"":o),t[a]={value:l,error:!1,isProcessingProps:!1},t}),{});M(n,a),r&&e.current.setCellFocus(n,r)})),D=t.useCallback((function(e){var t=e.id,n=(0,h.Z)(e,CI);w(t,YM.Edit),T(t,(0,Pt.Z)({mode:YM.View},n))}),[w,T]),j=(0,SS.Z)((function(t){var n=t.id,r=t.ignoreModifications,i=t.field,o=t.cellToFocusAfter,a=void 0===o?"none":o;e.current.unstable_runPendingEditCellValueMutation(n);var l=function(){"none"!==a&&i&&e.current.unstable_moveFocusToRelativeCell(n,i,a),M(n,null),T(n,null)};if(r)l();else{var s=uI(e.current.state),u=e.current.getRow(n);if(Object.values(s[n]).some((function(e){return e.isProcessingProps})))c.current[n].mode=YM.Edit;else{if(Object.values(s[n]).some((function(e){return e.error})))return c.current[n].mode=YM.Edit,void T(n,{mode:YM.Edit});var d=e.current.unstable_getRowWithUpdatedValuesFromRowEditing(n);if(p){var f=function(e){c.current[n].mode=YM.Edit,T(n,{mode:YM.Edit}),v?v(e):kI()};try{Promise.resolve(p(d,u)).then((function(t){e.current.updateRows([t]),l()})).catch(f)}catch(h){f(h)}}else e.current.updateRows([d]),l()}}})),A=t.useCallback((function(t){var n=t.id,r=t.field,i=t.value,o=t.debounceMs,a=t.unstable_skipValueParser;_(n,r);var l=e.current.getColumn(r),s=e.current.getRow(n),c=i;l.valueParser&&!a&&(c=l.valueParser(i,e.current.getCellParams(n,r)));var d=uI(e.current.state),f=(0,Pt.Z)({},d[n][r],{value:c,changeReason:o?"debouncedSetEditCellValue":"setEditCellValue"});return l.preProcessEditCellProps||L(n,r,f),new Promise((function(t){var i=[];if(l.preProcessEditCellProps){var o=f.value!==d[n][r].value;f=(0,Pt.Z)({},f,{isProcessingProps:!0}),L(n,r,f);var a=d[n],p=(0,h.Z)(a,[r].map(X.Z)),v=Promise.resolve(l.preProcessEditCellProps({id:n,row:s,props:f,hasChanged:o,otherFieldsProps:p})).then((function(i){e.current.getRowMode(n)!==YM.View?(d=uI(e.current.state),(i=(0,Pt.Z)({},i,{isProcessingProps:!1})).value=l.preProcessEditCellProps?d[n][r].value:c,L(n,r,i)):t(!1)}));i.push(v)}Object.entries(d[n]).forEach((function(o){var a=(0,u.Z)(o,2),l=a[0],c=a[1];if(l!==r){var f=e.current.getColumn(l);if(f.preProcessEditCellProps){c=(0,Pt.Z)({},c,{isProcessingProps:!0}),L(n,l,c);var p=(d=uI(e.current.state))[n],v=(0,h.Z)(p,[l].map(X.Z)),m=Promise.resolve(f.preProcessEditCellProps({id:n,row:s,props:c,hasChanged:!1,otherFieldsProps:v})).then((function(r){e.current.getRowMode(n)!==YM.View?(r=(0,Pt.Z)({},r,{isProcessingProps:!1}),L(n,l,r)):t(!1)}));i.push(m)}}})),Promise.all(i).then((function(){e.current.getRowMode(n)===YM.Edit?(d=uI(e.current.state),t(!d[n][r].error)):t(!1)}))}))}),[e,_,L]),N=t.useCallback((function(t){var n=uI(e.current.state),r=e.current.getRow(t),i=(0,Pt.Z)({},r);return Object.entries(n[t]).forEach((function(t){var n=(0,u.Z)(t,2),r=n[0],o=n[1],a=e.current.getColumn(r);a.valueSetter?i=a.valueSetter({value:o.value,row:i}):i[r]=o.value})),i}),[e]);mP(e,{getRowMode:O,startRowEditMode:Z,stopRowEditMode:D,unstable_setRowEditingEditCellValue:A,unstable_getRowWithUpdatedValuesFromRowEditing:N}),t.useEffect((function(){m&&P(m)}),[m,P]),t.useEffect((function(){var t=mO(e),n=c.current;c.current=uP(a),Object.entries(a).forEach((function(e){var r,i,o=(0,u.Z)(e,2),a=o[0],l=o[1],s=(null==(r=n[a])?void 0:r.mode)||YM.View,c=null!=(i=t[a])?i:a;l.mode===YM.Edit&&s===YM.View?I((0,Pt.Z)({id:c},l)):l.mode===YM.View&&s===YM.Edit&&j((0,Pt.Z)({id:c},l))}))}),[e,a,I,j])}(e,n);var r=t.useRef({}),i=n.isCellEditable,a=t.useCallback((function(e){return!e.rowNode.isAutoGenerated&&(!!e.colDef.editable&&(!!e.colDef.renderEditCell&&(i?i(e):!e.rowNode.isPinned)))}),[i]);t.useEffect((function(){var e=r.current;return function(){Object.entries(e).forEach((function(t){var n=(0,u.Z)(t,2),r=n[0],i=n[1];Object.keys(i).forEach((function(t){var n=(0,u.Z)(e[r][t],1)[0];clearTimeout(n),delete e[r][t]}))}))}}),[]);var s=t.useCallback((function(e,t){if(r.current[e])if(t){if(r.current[e][t]){(0,(0,u.Z)(r.current[e][t],2)[1])()}}else Object.keys(r.current[e]).forEach((function(t){(0,(0,u.Z)(r.current[e][t],2)[1])()}))}),[]),d=t.useCallback((function(t){var i=t.id,o=t.field,a=t.debounceMs;return new Promise((function(s){!function(e,t,n,i){if(n){if(r.current[e]||(r.current[e]={}),r.current[e][t]){var o=(0,u.Z)(r.current[e][t],1)[0];clearTimeout(o)}var a=setTimeout((function(){i(),delete r.current[e][t]}),n);r.current[e][t]=[a,function(){var n=(0,u.Z)(r.current[e][t],1)[0];clearTimeout(n),i(),delete r.current[e][t]}]}else i()}(i,o,a,c(l().mark((function r(){var a,c;return l().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=n.editMode===qM.Row?e.current.unstable_setRowEditingEditCellValue:e.current.unstable_setCellEditingEditCellValue,e.current.getCellMode(i,o)!==KM.Edit){r.next=6;break}return r.next=4,a(t);case 4:c=r.sent,s(c);case 6:case"end":return r.stop()}}),r)}))))}))}),[e,n.editMode]),f=t.useCallback((function(t,r){return n.editMode===qM.Cell?e.current.unstable_getRowWithUpdatedValuesFromCellEditing(t,r):e.current.unstable_getRowWithUpdatedValuesFromRowEditing(t)}),[e,n.editMode]),p=t.useCallback((function(t,n){return{changeReason:uI(e.current.state)[t][n].changeReason}}),[e]);mP(e,{isCellEditable:a,setEditCellValue:d,unstable_runPendingEditCellValueMutation:s,unstable_getRowWithUpdatedValues:f,unstable_getEditCellMeta:p})},OI=function(e,t,n){return n.current.unstable_caches.rows=$Z({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),(0,Pt.Z)({},e,{rows:JZ({apiRef:n,previousTree:null,rowCountProp:t.rowCount,loadingProp:t.loading})})},PI=function(e,n){var r=EO(e,"useGridRows"),i=VZ(e,n),a=t.useRef(Date.now()),l=t.useRef(null),s=t.useCallback((function(t){var n;return null!=(n=vO(e)[t])?n:null}),[e]),c=t.useMemo((function(){return i.rows.reduce((function(e,t,n){return e[t.id]=n,e}),{})}),[i.rows]),d=t.useCallback((function(t,r){var i=function(){l.current=null,a.current=Date.now(),e.current.setState((function(t){return(0,Pt.Z)({},t,{rows:JZ({apiRef:e,previousTree:gO(e),rowCountProp:n.rowCount,loadingProp:n.loading})})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(l.current&&(clearTimeout(l.current),l.current=null),e.current.unstable_caches.rows=t,r){var o=n.throttleRowsMs-(Date.now()-a.current);o>0?l.current=setTimeout(i,o):i()}else i()}),[n.throttleRowsMs,n.rowCount,n.loading,e]),f=t.useCallback((function(t){r.debug("Updating all rows, new length ".concat(t.length));var i=$Z({rows:t,getRowId:n.getRowId,loading:n.loading,rowCount:n.rowCount}),o=e.current.unstable_caches.rows;i.rowsBeforePartialUpdates=o.rowsBeforePartialUpdates,d(i,!0)}),[r,n.getRowId,n.loading,n.rowCount,d,e]),h=t.useCallback((function(t){if(n.signature===gP.DataGrid&&t.length>1)throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n"));var r=new Map;t.forEach((function(e){var t=XZ(e,n.getRowId,"A row was provided without id when calling updateRows():");r.has(t)?r.set(t,(0,Pt.Z)({},r.get(t),e)):r.set(t,e)}));var i=[],o=e.current.unstable_caches.rows,a={rowsBeforePartialUpdates:o.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:o.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:o.rowCountPropBeforePartialUpdates,idRowsLookup:(0,Pt.Z)({},o.idRowsLookup),idToIdLookup:(0,Pt.Z)({},o.idToIdLookup),ids:(0,v.Z)(o.ids)};r.forEach((function(t,n){return"delete"===t._action?(delete a.idRowsLookup[n],delete a.idToIdLookup[n],void i.push(n)):e.current.getRow(n)?void(a.idRowsLookup[n]=(0,Pt.Z)({},e.current.getRow(n),t)):(a.idRowsLookup[n]=t,a.idToIdLookup[n]=n,void a.ids.push(n))})),i.length>0&&(a.ids=a.ids.filter((function(e){return!i.includes(e)}))),d(a,!0)}),[n.signature,n.getRowId,d,e]),p=t.useCallback((function(){var t=_O(e),n=vO(e);return new Map(t.map((function(e){return[e,n[e]]})))}),[e]),m=t.useCallback((function(){return fO(e)}),[e]),g=t.useCallback((function(){return _O(e)}),[e]),y=t.useCallback((function(e){return c[e]}),[c]),b=t.useCallback((function(t,n){var r=e.current.getRowNode(t);if(!r)throw new Error("MUI: No row with id #".concat(t," found"));var i=(0,Pt.Z)({},r,{childrenExpanded:n});e.current.setState((function(e){return(0,Pt.Z)({},e,{rows:(0,Pt.Z)({},e.rows,{tree:(0,Pt.Z)({},e.rows.tree,(0,o.Z)({},t,i))})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",i)}),[e]),_=t.useCallback((function(t){var n;return null!=(n=gO(e)[t])?n:null}),[e]),w=t.useCallback((function(t){var n,r=t.skipAutoGeneratedRows,i=void 0===r||r,o=t.groupId,a=t.applySorting,l=t.applyFiltering,s=gO(e);if(a){var c=s[o];if(!c)return[];var u=AO(e);n=[];for(var d=u.findIndex((function(e){return e===o}))+1,f=d;f<u.length&&s[u[f]].depth>c.depth;f+=1){var h=u[f],p=s[h];i&&p.isAutoGenerated||n.push(h)}}else n=QZ(s,o,i);if(l){var v=UO(e);n=n.filter((function(e){return!1!==v[e]}))}return n}),[e]),S=t.useCallback((function(t,n){var i=_O(e),o=i.findIndex((function(e){return e===t}));if(-1!==o&&o!==n){r.debug("Moving row ".concat(t," to index ").concat(n));var a=(0,v.Z)(i);a.splice(n,0,a.splice(o,1)[0]),e.current.setState((function(e){return(0,Pt.Z)({},e,{rows:(0,Pt.Z)({},e.rows,{ids:a})})})),e.current.unstable_caches.rows.ids=a,e.current.publishEvent("rowsSet")}}),[e,r]),x=t.useCallback((function(t,r){if(n.signature===gP.DataGrid&&r.length>1)throw new Error(["MUI: You can't replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n"));if(0!==r.length){var i=_O(e),o=(0,v.Z)(i),a=vO(e),l=mO(e),s=gO(e),c=(0,Pt.Z)({},a),d=(0,Pt.Z)({},l),f=(0,Pt.Z)({},s),h=r.map((function(e){return{id:XZ(e,n.getRowId,"A row was provided without id when calling replaceRows()."),model:e}}));h.forEach((function(e,n){var r=o.splice(t+n,1,e.id),i=(0,u.Z)(r,1)[0];delete c[i],delete d[i],delete f[i]})),h.forEach((function(e){var t={id:e.id,parent:null,depth:0,groupingKey:null,groupingField:null};c[e.id]=e.model,d[e.id]=e.id,f[e.id]=t})),e.current.unstable_caches.rows.idRowsLookup=c,e.current.unstable_caches.rows.idToIdLookup=d,e.current.unstable_caches.rows.ids=o,e.current.setState((function(e){var t={idRowsLookup:c,idToIdLookup:d,tree:f,ids:o};return(0,Pt.Z)({},e,{rows:(0,Pt.Z)({},e.rows,t,{groupingResponseBeforeRowHydration:(0,Pt.Z)({},e.rows.groupingResponseBeforeRowHydration,t)})})})),e.current.publishEvent("rowsSet")}}),[e,n.signature,n.getRowId]),C={getRow:s,getRowModels:p,getRowsCount:m,getAllRowIds:g,setRows:f,setRowIndex:S,updateRows:h,setRowChildrenExpansion:b,getRowNode:_,getRowIndexRelativeToVisibleRows:y,getRowGroupChildren:w,unstable_replaceRows:x},k=t.useCallback((function(){var t;r.info("Row grouping pre-processing have changed, regenerating the row tree"),t=e.current.unstable_caches.rows.rowsBeforePartialUpdates===n.rows?e.current.unstable_caches.rows:$Z({rows:n.rows,getRowId:n.getRowId,loading:n.loading,rowCount:n.rowCount}),d(t,!1)}),[r,e,n.rows,n.getRowId,n.loading,n.rowCount,d]),E=t.useCallback((function(e){"rowTreeCreation"===e&&k()}),[k]),R=t.useCallback((function(){e.current.unstable_getActiveStrategy("rowTree")!==yO(e)&&k()}),[e,k]);xP(e,"activeStrategyProcessorChange",E),xP(e,"strategyAvailabilityChange",R);var O=t.useCallback((function(){e.current.setState((function(t){return(0,Pt.Z)({},t,{rows:(0,Pt.Z)({},t.rows,e.current.unstable_applyPipeProcessors("hydrateRows",t.rows.groupingResponseBeforeRowHydration))})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()}),[e]);zP(e,"hydrateRows",O),mP(e,C),t.useEffect((function(){return function(){null!==l.current&&clearTimeout(l.current)}}),[]);var P=t.useRef(!0);t.useEffect((function(){if(P.current)P.current=!1;else{var t=e.current.unstable_caches.rows.rowsBeforePartialUpdates===n.rows,i=e.current.unstable_caches.rows.loadingPropBeforePartialUpdates===n.loading,o=e.current.unstable_caches.rows.rowCountPropBeforePartialUpdates===n.rowCount;if(t)return i||(e.current.setState((function(e){return(0,Pt.Z)({},e,{rows:(0,Pt.Z)({},e.rows,{loading:n.loading})})})),e.current.unstable_caches.rows.loadingPropBeforePartialUpdates=n.loading,e.current.forceUpdate()),void(o||(e.current.setState((function(e){return(0,Pt.Z)({},e,{rows:(0,Pt.Z)({},e.rows,{totalRowCount:Math.max(n.rowCount||0,e.rows.totalRowCount),totalTopLevelRowCount:Math.max(n.rowCount||0,e.rows.totalTopLevelRowCount)})})})),e.current.unstable_caches.rows.rowCountPropBeforePartialUpdates=n.rowCount,e.current.forceUpdate()));r.debug("Updating all rows, new length ".concat(n.rows.length)),d($Z({rows:n.rows,getRowId:n.getRowId,loading:n.loading,rowCount:n.rowCount}),!1)}}),[n.rows,n.rowCount,n.getRowId,n.loading,r,d,e])},TI=function(e){for(var t=e.ids,n=e.idRowsLookup,r=e.idToIdLookup,i=e.previousTree,o={},a=0;a<t.length;a+=1){var l=t[a];i&&i[l]&&0===i[l].depth&&null==i[l].parent&&!i[l].isPinned?o[l]=i[l]:o[l]={id:l,depth:0,parent:null,groupingKey:"",groupingField:null}}return{groupingName:PP,tree:o,treeDepth:1,idRowsLookup:n,idToIdLookup:r,ids:t}};function MI(e,t){return e.closest(".".concat(t))}function LI(e){return e.replace(/["\\]/g,"\\$&")}function ZI(e){return".".concat(TR.row,'[data-id="').concat(LI(String(e)),'"]')}AR(["MUI: You are calling getValue. This method is deprecated and will be removed in the next major version.","Instead, you can access the data from `params.row`."]);function II(e){var n=t.useCallback((function(t){return{field:t,colDef:e.current.getColumn(t)}}),[e]),r=t.useCallback((function(){var t;return(t=e.current).getCellValue.apply(t,arguments)}),[e]),i=t.useCallback((function(t){var n=e.current.getRow(t);if(!n)throw new Error("No row with id #".concat(t," found"));return{id:t,columns:e.current.getAllColumns(),row:n,getValue:r}}),[e,r]),o=t.useCallback((function(t,n){var i=e.current.getRow(t),o=e.current.getRowNode(t);if(!i||!o)throw new Error("No row with id #".concat(t," found"));var a=YL(e),l=$L(e);return{id:t,field:n,row:i,rowNode:o,value:i[n],colDef:e.current.getColumn(n),cellMode:e.current.getCellMode(t,n),getValue:r,api:e.current,hasFocus:null!==a&&a.field===n&&a.id===t,tabIndex:l&&l.field===n&&l.id===t?0:-1}}),[e,r]),a=t.useCallback((function(t,n){var i=e.current.getColumn(n),o=e.current.getCellValue(t,n),a=e.current.getRow(t),l=e.current.getRowNode(t);if(!a||!l)throw new Error("No row with id #".concat(t," found"));var s=YL(e),c=$L(e),u={id:t,field:n,row:a,rowNode:l,colDef:i,cellMode:e.current.getCellMode(t,n),getValue:r,hasFocus:null!==s&&s.field===n&&s.id===t,tabIndex:c&&c.field===n&&c.id===t?0:-1,value:o,formattedValue:o};return i&&i.valueFormatter&&(u.formattedValue=i.valueFormatter({id:t,field:u.field,value:u.value,api:e.current})),u.isEditable=i&&e.current.isCellEditable(u),u}),[e,r]),l=t.useCallback((function(t,n){var r=e.current.getColumn(n);if(!r||!r.valueGetter){var i=e.current.getRow(t);if(!i)throw new Error("No row with id #".concat(t," found"));return i[n]}return r.valueGetter(o(t,n))}),[e,o]),s=t.useCallback((function(t){return e.current.rootElementRef.current?function(e,t){return e.querySelector('[role="columnheader"][data-field="'.concat(LI(t),'"]'))}(e.current.rootElementRef.current,t):null}),[e]),c=t.useCallback((function(t){return e.current.rootElementRef.current?function(e,t){return e.querySelector(ZI(t))}(e.current.rootElementRef.current,t):null}),[e]),u=t.useCallback((function(t,n){return e.current.rootElementRef.current?function(e,t){var n=t.id,r=t.field,i=ZI(n),o=".".concat(TR.cell,'[data-field="').concat(LI(r),'"]'),a="".concat(i," ").concat(o);return e.querySelector(a)}(e.current.rootElementRef.current,{id:t,field:n}):null}),[e]);mP(e,{getCellValue:l,getCellParams:a,getCellElement:u,getRowParams:i,getRowElement:c,getColumnHeaderParams:n,getColumnHeaderElement:s})}var DI=function(e,t){return null==e||Array.isArray(e)?e:t&&t[0]===e?t:[e]},jI=function(e,t){var n;return(0,Pt.Z)({},e,{selection:null!=(n=DI(t.selectionModel))?n:[]})},AI=function(e,n){var r=function(e){var n=e.classes;return t.useMemo((function(){return(0,Mt.Z)({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},PR,n)}),[n])}({classes:n.classes}),i=t.useCallback((function(t){var i=(0,Pt.Z)({},hZ,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),o=n.checkboxSelection,a=null!=t.lookup[fZ];return o&&!a?(t.lookup[fZ]=i,t.all=[fZ].concat((0,v.Z)(t.all))):!o&&a?(delete t.lookup[fZ],t.all=t.all.filter((function(e){return e!==fZ}))):o&&a&&(t.lookup[fZ]=(0,Pt.Z)({},i,t.lookup[fZ])),t}),[e,r,n.checkboxSelection]);FP(e,"hydrateColumns",i)},NI=function(e,t){var n,r,i,o,a=null!=(n=null!=(r=t.sortModel)?r:null==(i=t.initialState)||null==(o=i.sorting)?void 0:o.sortModel)?n:[];return(0,Pt.Z)({},e,{sorting:{sortModel:yT(a,t.disableMultipleColumnsSorting),sortedRows:[]}})};function FI(e){var t=e.clientHeight,n=e.scrollTop,r=e.offsetHeight,i=e.offsetTop,o=i+r;return r>t?i:o-t>n?o-t:i<n?i:void 0}var zI=!1,BI=function(e){var t=e.content,n=e.container,r=e.scrollBarSize,i=t.width>n.width,o=t.height>n.height,a=!1,l=!1;return(i||o)&&(a=i,(l=t.height+(a?r:0)>n.height)&&(a=t.width+r>n.width)),{hasScrollX:a,hasScrollY:l}};var HI=function(e){return(0,Pt.Z)({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}})},WI=function(e){var n,r,i=LP(void 0,e);return function(e,n){var r,i=t.useCallback((function(e){var t;if(null==(t=n.experimentalFeatures)||!t.columnGrouping)return e;var r=zL(n.columnGroupingModel);return e.all.forEach((function(t){var n,i,o=null!=(n=r[t])?n:[],a=e.lookup[t];(function(e){return void 0!==e.groupPath})(a)&&sP(o,null==a?void 0:a.groupPath)||(e.lookup[t]=(0,Pt.Z)({},e.lookup[t],{groupPath:null!=(i=r[t])?i:[]}))})),e}),[n.columnGroupingModel,null==(r=n.experimentalFeatures)?void 0:r.columnGrouping]);FP(e,"hydrateColumns",i)}(i,e),AI(i,e),function(e){ZZ(e,PP,"rowTreeCreation",TI)}(i),ZP(jI,i,e),ZP(DL,i,e),ZP(HL,i,e),ZP(OI,i,e),ZP(null!=(n=e.experimentalFeatures)&&n.newEditingApi?EI:mI,i,e),ZP(qZ,i,e),ZP(NI,i,e),ZP(cI,i,e),ZP(WZ,i,e),ZP(UL,i,e),ZP(aI,i,e),ZP(HI,i,e),ZP(AP,i,e),YZ(i,e),function(e,n){var r=EO(e,"useGridSelection"),i=t.useMemo((function(){return DI(n.selectionModel,QL(e.current.state))}),[e,n.selectionModel]),o=t.useRef(null);e.current.unstable_registerControlState({stateId:"selection",propModel:i,propOnChange:n.onSelectionModelChange,stateSelector:QL,changeEvent:"selectionChange"});var a=n.checkboxSelection,l=n.disableMultipleSelection,s=n.disableSelectionOnClick,c=n.pagination,d=n.paginationMode,f=n.isRowSelectable,h=!l||a,p=VZ(e,n),v=t.useCallback((function(t){var n,r=t,i=null!=(n=o.current)?n:t,a=e.current.isRowSelected(t);if(a){var l=qO(e),s=l.findIndex((function(e){return e===i})),c=l.findIndex((function(e){return e===r}));if(s===c)return;r=s>c?l[c+1]:l[c-1]}o.current=t,e.current.selectRowRange({startId:i,endId:r},!a)}),[e]),m=t.useCallback((function(t){QL(e.current.state)!==t&&(r.debug("Setting selection model"),e.current.setState((function(e){return(0,Pt.Z)({},e,{selection:t})})),e.current.forceUpdate())}),[e,r]),g=t.useCallback((function(t){return QL(e.current.state).includes(t)}),[e]),y=t.useCallback((function(t){if(f&&!f(e.current.getRowParams(t)))return!1;var n=e.current.getRowNode(t);return!("footer"===(null==n?void 0:n.position)||null!=n&&n.isPinned)}),[e,f]),b=t.useCallback((function(){return tZ(e)}),[e]),_=t.useCallback((function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e.current.isRowSelectable(t))if(o.current=t,i)r.debug("Setting selection for row ".concat(t)),e.current.setSelectionModel(n?[t]:[]);else{r.debug("Toggling selection for row ".concat(t));var a=QL(e.current.state).filter((function(e){return e!==t}));n&&a.push(t),(a.length<2||h)&&e.current.setSelectionModel(a)}}),[e,r,h]),w=t.useCallback((function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r.debug("Setting selection for several rows");var o,a=t.filter((function(t){return e.current.isRowSelectable(t)}));if(i)o=n?a:[];else{var l=(0,Pt.Z)({},nZ(e));a.forEach((function(e){n?l[e]=e:delete l[e]})),o=Object.values(l)}(o.length<2||h)&&e.current.setSelectionModel(o)}),[e,r,h]),S=t.useCallback((function(t){var n=t.startId,i=t.endId,o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2?arguments[2]:void 0;if(e.current.getRow(n)&&e.current.getRow(i)){r.debug("Expanding selection from row ".concat(n," to row ").concat(i));var l=qO(e),s=l.indexOf(n),c=l.indexOf(i),d=s>c?[c,s]:[s,c],f=(0,u.Z)(d,2),h=f[0],p=f[1],v=l.slice(h,p+1);e.current.selectRows(v,o,a)}}),[e,r]);mP(e,{selectRow:_,selectRows:w,selectRowRange:S,setSelectionModel:m,getSelectedRows:b,isRowSelected:g,isRowSelectable:y});var x=t.useCallback((function(){if(!n.keepNonExistentRowsSelected){var t=QL(e.current.state),r=vO(e),i=(0,Pt.Z)({},nZ(e)),o=!1;t.forEach((function(e){r[e]||(delete i[e],o=!0)})),o&&e.current.setSelectionModel(Object.values(i))}}),[e,n.keepNonExistentRowsSelected]),C=t.useCallback((function(t,n){var r=n.metaKey||n.ctrlKey,i=!a&&!r&&!eL(n),o=!h||i,l=e.current.isRowSelected(t);o?e.current.selectRow(t,!!i||!l,!0):e.current.selectRow(t,!l,!1)}),[e,h,a]),k=t.useCallback((function(t,n){var r;if(!s){var i=null==(r=n.target.closest(".".concat(TR.cell)))?void 0:r.getAttribute("data-field");if(i!==hZ.field&&i!==KZ){if(i&&e.current.getColumn(i).type===SL)return;e.current.getRowNode(t.id).isPinned||(n.shiftKey&&(h||a)?v(t.id):C(t.id,n))}}}),[s,h,a,e,v,C]),E=t.useCallback((function(e,t){var n;h&&t.shiftKey&&(null==(n=window.getSelection())||n.removeAllRanges())}),[h]),R=t.useCallback((function(t,n){n.nativeEvent.shiftKey?v(t.id):e.current.selectRow(t.id,t.value)}),[e,v]),O=t.useCallback((function(t){var r=n.checkboxSelectionVisibleOnly&&n.pagination?cZ(e):qO(e);e.current.selectRows(r,t.value)}),[e,n.checkboxSelectionVisibleOnly,n.pagination]),P=t.useCallback((function(t,n){if(e.current.getCellMode(t.id,t.field)!==KM.Edit&&n.currentTarget.contains(n.target)){if(QM(n.key)&&n.shiftKey){var r=YL(e);if(r&&r.id!==t.id){n.preventDefault();var i=e.current.isRowSelected(r.id);if(!h)return void e.current.selectRow(r.id,!i,!0);var o,a,l=e.current.getRowIndexRelativeToVisibleRows(r.id),s=e.current.getRowIndexRelativeToVisibleRows(t.id);l>s?i?(o=s,a=l-1):(o=s,a=l):i?(o=l+1,a=s):(o=l,a=s);var c=p.rows.slice(o,a+1).map((function(e){return e.id}));return void e.current.selectRows(c,!i)}}if(" "===n.key&&n.shiftKey)return n.preventDefault(),void C(t.id,n);"a"===n.key.toLowerCase()&&(n.ctrlKey||n.metaKey)&&(n.preventDefault(),w(e.current.getAllRowIds(),!0))}}),[e,C,w,p.rows,h]);xP(e,"sortedRowsSet",x),xP(e,"rowClick",k),xP(e,"rowSelectionCheckboxChange",R),xP(e,"headerSelectionCheckboxChange",O),xP(e,"cellMouseDown",E),xP(e,"cellKeyDown",P),t.useEffect((function(){void 0!==i&&e.current.setSelectionModel(i)}),[e,i]);var T=null!=i;t.useEffect((function(){if(!T){var t=QL(e.current.state);if(y){var n=t.filter((function(e){return y(e)}));n.length<t.length&&e.current.setSelectionModel(n)}}}),[e,y,T]),t.useEffect((function(){var t=QL(e.current.state);if(!h&&t.length>1){var n=UZ(e,{pagination:c,paginationMode:d}).rows.reduce((function(e,t){return e[t.id]=!0,e}),{}),r=t.find((function(e){var t=!0;return y&&(t=y(e)),t&&n[e]}));e.current.setSelectionModel(void 0!==r?[r]:[])}}),[e,h,a,l,y,c,d])}(i,e),function(e,n){var r,i,a=EO(e,"useGridColumns"),l=t.useMemo((function(){return RL(n.columnTypes)}),[n.columnTypes]),s=t.useRef(n.columns),c=t.useRef(l);e.current.unstable_registerControlState({stateId:"visibleColumns",propModel:n.columnVisibilityModel,propOnChange:n.onColumnVisibilityModelChange,stateSelector:qR,changeEvent:"columnVisibilityModelChange"});var u=t.useCallback((function(t){a.debug("Updating columns state."),e.current.setState(ML(t)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",t.all)}),[a,e]),d=t.useCallback((function(t){return UR(e)[t]}),[e]),f=t.useCallback((function(){return VR(e)}),[e]),h=t.useCallback((function(){return KR(e)}),[e]),p=t.useCallback((function(){return JR(e)}),[e]),m=t.useCallback((function(t){return(arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?VR(e):KR(e)).findIndex((function(e){return e.field===t}))}),[e]),g=t.useCallback((function(t){var n=m(t);return YR(e)[n]}),[e,m]),y=t.useCallback((function(t){qR(e)!==t&&(e.current.setState((function(n){return(0,Pt.Z)({},n,{columns:TL({apiRef:e,columnTypes:l,columnsToUpsert:[],initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!1,currentColumnVisibilityModel:t,keepOnlyColumnsToUpsert:!1})})})),e.current.forceUpdate())}),[e,l]),b=t.useCallback((function(t){var n=TL({apiRef:e,columnTypes:l,columnsToUpsert:t,initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!0,keepOnlyColumnsToUpsert:!1});u(n)}),[e,u,l]),_=t.useCallback((function(t){return e.current.updateColumns([t])}),[e]),w=t.useCallback((function(t,n){if(e.current.unstable_caches.columns.isUsingColumnVisibilityModel){var r,i=qR(e);if(n!==(null==(r=i[t])||r)){var a=(0,Pt.Z)({},i,(0,o.Z)({},t,n));e.current.setColumnVisibilityModel(a)}}else{var l=e.current.getColumn(t),s=(0,Pt.Z)({},l,{hide:!n});e.current.updateColumns([s]);var c={field:t,colDef:s,isVisible:n};e.current.publishEvent("columnVisibilityChange",c)}}),[e]),S=t.useCallback((function(t,n){var r=WR(e),i=r.findIndex((function(e){return e===t}));if(i!==n){a.debug("Moving column ".concat(t," to index ").concat(n));var o=(0,v.Z)(r),l=o.splice(i,1)[0];o.splice(n,0,l),u((0,Pt.Z)({},HR(e.current.state),{all:o}));var s={field:t,element:e.current.getColumnHeaderElement(t),colDef:e.current.getColumn(t),targetIndex:n,oldIndex:i};e.current.publishEvent("columnOrderChange",s)}}),[e,a,u]),x=t.useCallback((function(t,n){a.debug("Updating column ".concat(t," width to ").concat(n));var r=e.current.getColumn(t),i=(0,Pt.Z)({},r,{width:n});e.current.updateColumns([i]),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(t),colDef:i,width:n})}),[e,a]);mP(e,{getColumn:d,getAllColumns:f,getColumnIndex:m,getColumnPosition:g,getVisibleColumns:h,getColumnsMeta:p,updateColumn:_,updateColumns:b,setColumnVisibilityModel:y,setColumnVisibility:w,setColumnIndex:S,setColumnWidth:x});var C=t.useCallback((function(t,r){var i={};if(e.current.unstable_caches.columns.isUsingColumnVisibilityModel){var o,a,l,s=qR(e);(!r.exportOnlyDirtyModels||null!=n.columnVisibilityModel||Object.keys(null!=(o=null==(a=n.initialState)||null==(l=a.columns)?void 0:l.columnVisibilityModel)?o:{}).length>0||Object.keys(s).length>0)&&(i.columnVisibilityModel=s)}i.orderedFields=WR(e);var c=VR(e),u={};return c.forEach((function(e){if(e.hasBeenResized){var t={};EL.forEach((function(n){var r=e[n];r===1/0&&(r=-1),t[n]=r})),u[e.field]=t}})),Object.keys(u).length>0&&(i.dimensions=u),(0,Pt.Z)({},t,{columns:i})}),[e,n.columnVisibilityModel,null==(r=n.initialState)?void 0:r.columns]),k=t.useCallback((function(t,n){var r,i=e.current.unstable_caches.columns.isUsingColumnVisibilityModel?null==(r=n.stateToRestore.columns)?void 0:r.columnVisibilityModel:void 0,o=n.stateToRestore.columns;if(null==i&&null==o)return t;var a=TL({apiRef:e,columnTypes:l,columnsToUpsert:[],initialState:o,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,currentColumnVisibilityModel:i,keepOnlyColumnsToUpsert:!1});return e.current.setState(ML(a)),null!=o&&e.current.publishEvent("columnsChange",a.all),t}),[e,l]),E=t.useCallback((function(e,t){if(t===OL.columns){var r,i=n.components.ColumnsPanel;return(0,tn.jsx)(i,(0,Pt.Z)({},null==(r=n.componentsProps)?void 0:r.columnsPanel))}return e}),[n.components.ColumnsPanel,null==(i=n.componentsProps)?void 0:i.columnsPanel]);FP(e,"exportState",C),FP(e,"restoreState",k),FP(e,"preferencePanel",E);var R=t.useRef(null);xP(e,"viewportInnerSizeChange",(function(t){R.current!==t.width&&(R.current=t.width,u(PL(HR(e.current.state),t.width)))})),kP(e,"columnVisibilityChange",n.onColumnVisibilityChange);var O=t.useCallback((function(){a.info("Columns pipe processing have changed, regenerating the columns");var t=TL({apiRef:e,columnTypes:l,columnsToUpsert:[],initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,keepOnlyColumnsToUpsert:!1});u(t)}),[e,a,u,l]);zP(e,"hydrateColumns",O);var P=t.useRef(!0);t.useEffect((function(){if(P.current)P.current=!1;else if(a.info("GridColumns have changed, new length ".concat(n.columns.length)),s.current!==n.columns||c.current!==l){var t=TL({apiRef:e,columnTypes:l,initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,columnsToUpsert:n.columns,keepOnlyColumnsToUpsert:!0});s.current=n.columns,c.current=l,u(t)}}),[a,e,u,n.columns,l]),t.useEffect((function(){void 0!==n.columnVisibilityModel&&e.current.setColumnVisibilityModel(n.columnVisibilityModel)}),[e,a,n.columnVisibilityModel])}(i,e),PI(i,e),II(i),function(e){var n=t.useRef({}),r=t.useCallback((function(e,t,r){var i=n.current;i[e]||(i[e]={}),i[e][t]=r}),[]),i=t.useCallback((function(e,t){var r;return null==(r=n.current[e])?void 0:r[t]}),[]),o=t.useCallback((function(t){var n=t.columnIndex,i=t.rowId,o=t.minFirstColumnIndex,a=t.maxLastColumnIndex,l=t.columns,s=l.length,c=l[n],u="function"===typeof c.colSpan?c.colSpan(e.current.getCellParams(i,c.field)):c.colSpan;if(!u||1===u)return r(i,n,{spannedByColSpan:!1,cellProps:{colSpan:1,width:c.computedWidth}}),{colSpan:1};for(var d=c.computedWidth,f=1;f<u;f+=1){var h=n+f;h>=o&&h<a&&(d+=l[h].computedWidth,r(i,n+f,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(n+u,s-1),leftVisibleCellIndex:n})),r(i,n,{spannedByColSpan:!1,cellProps:{colSpan:u,width:d}})}return{colSpan:u}}),[e,r]),a=t.useCallback((function(e){for(var t=e.rowId,n=e.minFirstColumn,r=e.maxLastColumn,i=e.columns,a=n;a<r;a+=1){var l=o({columnIndex:a,rowId:t,minFirstColumnIndex:n,maxLastColumnIndex:r,columns:i});l.colSpan>1&&(a+=l.colSpan-1)}}),[o]);mP(e,{unstable_getCellColSpanInfo:i,unstable_calculateColSpan:a});var l=t.useCallback((function(){n.current={}}),[]);xP(e,"columnOrderChange",l)}(i),function(e,n){var r,i=t.useCallback((function(t){var n,r;return null!=(n=null==(r=UR(e)[t])?void 0:r.groupPath)?n:[]}),[e]),o=t.useCallback((function(){return AL(e)}),[e]);mP(e,{unstable_getColumnGroupPath:i,unstable_getAllGroupDetails:o});var a=t.useRef(!0);t.useEffect((function(){var t,r;if(a.current)a.current=!1;else if(null!=(t=n.experimentalFeatures)&&t.columnGrouping){var i=BL(null!=(r=n.columnGroupingModel)?r:[]);e.current.setState((function(e){return(0,Pt.Z)({},e,{columnGrouping:(0,Pt.Z)({},e.columnGrouping,{lookup:i})})}))}}),[e,n.columnGroupingModel,null==(r=n.experimentalFeatures)?void 0:r.columnGrouping])}(i,e),(null!=(r=e.experimentalFeatures)&&r.newEditingApi?RI:gI)(i,e),function(e,n){var r=EO(e,"useGridFocus"),i=t.useRef(null),o=t.useCallback((function(t,n){t&&e.current.getRow(t.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(t.id,t.field),n)}),[e]),a=t.useCallback((function(t,n){var i=YL(e);(null==i?void 0:i.id)===t&&(null==i?void 0:i.field)===n||(e.current.setState((function(e){return r.debug("Focusing on cell with id=".concat(t," and field=").concat(n)),(0,Pt.Z)({},e,{tabIndex:{cell:{id:t,field:n},columnHeader:null},focus:{cell:{id:t,field:n},columnHeader:null}})})),e.current.forceUpdate(),e.current.getRow(t)&&(i&&o(i,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(t,n))))}),[e,r,o]),l=t.useCallback((function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=YL(e);o(i,n),e.current.setState((function(e){return r.debug("Focusing on column header with colIndex=".concat(t)),(0,Pt.Z)({},e,{tabIndex:{columnHeader:{field:t},cell:null},focus:{columnHeader:{field:t},cell:null}})})),e.current.forceUpdate()}),[e,r,o]),s=t.useCallback((function(t,r,i){var o=e.current.getColumnIndex(r),a=e.current.getRowIndexRelativeToVisibleRows(t),l=KR(e);"right"===i?o+=1:"left"===i?o-=1:a+=1;var s=UZ(e,{pagination:n.pagination,paginationMode:n.paginationMode});o>=l.length?(a+=1)<s.rows.length&&(o=0):o<0&&(a-=1)>=0&&(o=l.length-1),a=lP(a,0,s.rows.length-1);var c=s.rows[a],u=e.current.unstable_getCellColSpanInfo(c.id,o);u&&u.spannedByColSpan&&("left"===i||"below"===i?o=u.leftVisibleCellIndex:"right"===i&&(o=u.rightVisibleCellIndex));var d=l[o=lP(o,0,l.length-1)];e.current.setCellFocus(c.id,d.field)}),[e,n.pagination,n.paginationMode]),c=t.useCallback((function(t){var n=t.id,r=t.field;e.current.setCellFocus(n,r)}),[e]),u=t.useCallback((function(t,n){"Enter"===n.key||"Tab"===n.key||QM(n.key)||e.current.setCellFocus(t.id,t.field)}),[e]),d=t.useCallback((function(t,n){var r=t.field;n.target===n.currentTarget&&e.current.setColumnHeaderFocus(r,n)}),[e]),f=t.useCallback((function(){r.debug("Clearing focus"),e.current.setState((function(e){return(0,Pt.Z)({},e,{focus:{cell:null,columnHeader:null}})}))}),[r,e]),h=t.useCallback((function(e){i.current=e}),[]),p=t.useCallback((function(t){var n=i.current;i.current=null;var r=YL(e);if(r){if((null==n?void 0:n.id)!==r.id||(null==n?void 0:n.field)!==r.field){var a=e.current.getCellElement(r.id,r.field);null!=a&&a.contains(t.target)||(n?e.current.setCellFocus(n.id,n.field):(e.current.setState((function(e){return(0,Pt.Z)({},e,{focus:{cell:null,columnHeader:null}})})),e.current.forceUpdate(),o(r,t)))}}else n&&e.current.setCellFocus(n.id,n.field)}),[e,o]),v=t.useCallback((function(t){if("view"!==t.cellMode){var n=YL(e);(null==n?void 0:n.id)===t.id&&(null==n?void 0:n.field)===t.field||e.current.setCellFocus(t.id,t.field)}}),[e]),m=t.useCallback((function(){var t=YL(e);t&&!e.current.getRow(t.id)&&e.current.setState((function(e){return(0,Pt.Z)({},e,{focus:{cell:null,columnHeader:null}})}))}),[e]);mP(e,{setCellFocus:a,setColumnHeaderFocus:l,unstable_moveFocusToRelativeCell:s}),t.useEffect((function(){var t=(0,Qw.Z)(e.current.rootElementRef.current);return t.addEventListener("click",p),function(){t.removeEventListener("click",p)}}),[e,p]),xP(e,"columnHeaderBlur",f),xP(e,"cellDoubleClick",c),xP(e,"cellMouseDown",h),xP(e,"cellKeyDown",u),xP(e,"cellModeChange",v),xP(e,"columnHeaderFocus",d),xP(e,"rowsSet",m)}(i,e),function(e,n){var r,i=EO(e,"useGridPreferencesPanel"),o=t.useRef(),a=t.useRef(),l=t.useCallback((function(){i.debug("Hiding Preferences Panel");var t=sI(e.current.state);t.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:t.openedPanelValue}),e.current.setState((function(e){return(0,Pt.Z)({},e,{preferencePanel:{open:!1}})})),e.current.forceUpdate()}),[e,i]),s=t.useCallback((function(){a.current=setTimeout((function(){return clearTimeout(o.current)}),0)}),[]),c=t.useCallback((function(){o.current=setTimeout(l,100)}),[l]),u=t.useCallback((function(t){i.debug("Opening Preferences Panel"),s(),e.current.setState((function(e){return(0,Pt.Z)({},e,{preferencePanel:(0,Pt.Z)({},e.preferencePanel,{open:!0,openedPanelValue:t})})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:t}),e.current.forceUpdate()}),[i,s,e]);mP(e,{showPreferences:u,hidePreferences:c});var d=t.useCallback((function(t,r){var i,o=sI(e.current.state);return!r.exportOnlyDirtyModels||null!=(null==(i=n.initialState)?void 0:i.preferencePanel)||o.open?(0,Pt.Z)({},t,{preferencePanel:o}):t}),[e,null==(r=n.initialState)?void 0:r.preferencePanel]),f=t.useCallback((function(t,n){var r=n.stateToRestore.preferencePanel;return null!=r&&e.current.setState((function(e){return(0,Pt.Z)({},e,{preferencePanel:r})})),t}),[e]);FP(e,"exportState",d),FP(e,"restoreState",f),t.useEffect((function(){return function(){clearTimeout(o.current),clearTimeout(a.current)}}),[])}(i,e),function(e,n){var r,i,o,a=EO(e,"useGridFilter");e.current.unstable_registerControlState({stateId:"filter",propModel:n.filterModel,propOnChange:n.onFilterModelChange,stateSelector:HO,changeEvent:"filterModelChange"});var l=t.useCallback((function(){e.current.setState((function(t){var r=HO(t,e.current.instanceId),i=n.filterMode===TZ?BZ(r,e):null,o=e.current.unstable_applyStrategyProcessor("filtering",{isRowMatchingFilters:i,filterModel:null!=r?r:LZ()});return(0,Pt.Z)({},t,{filter:(0,Pt.Z)({},t.filter,o)})})),e.current.publishEvent("filteredRowsSet")}),[n.filterMode,e]),s=t.useCallback((function(){l(),e.current.forceUpdate()}),[e,l]),c=t.useCallback((function(t){var n=HO(e),r=(0,v.Z)(n.items),i=r.findIndex((function(e){return e.id===t.id}));-1===i?r.push(t):r[i]=t,e.current.setFilterModel((0,Pt.Z)({},n,{items:r}),"upsertFilterItem")}),[e]),u=t.useCallback((function(t){var n=HO(e),r=(0,v.Z)(n.items);t.forEach((function(e){var n=t.findIndex((function(t){return t.id===e.id}));-1===n?r.push(e):r[n]=e})),e.current.setFilterModel((0,Pt.Z)({},n,{items:t}),"upsertFilterItems")}),[e]),d=t.useCallback((function(t){var n=HO(e),r=n.items.filter((function(e){return e.id!==t.id}));r.length!==n.items.length&&e.current.setFilterModel((0,Pt.Z)({},n,{items:r}),"deleteFilterItem")}),[e]),f=t.useCallback((function(t){if(a.debug("Displaying filter panel"),t){var r,i=HO(e),o=i.items.filter((function(t){var n;if(void 0!==t.value)return!0;var r=null==(n=e.current.getColumn(t.columnField).filterOperators)?void 0:n.find((function(e){return e.value===t.operatorValue}));return!("undefined"===typeof(null==r?void 0:r.requiresFilterValue)||(null==r?void 0:r.requiresFilterValue))}));r=o.find((function(e){return e.columnField===t}))?o:n.disableMultipleColumnsFiltering?[IZ({columnField:t},e)]:[].concat((0,v.Z)(o),[IZ({columnField:t},e)]),e.current.setFilterModel((0,Pt.Z)({},i,{items:r}))}e.current.showPreferences(OL.filters)}),[e,a,n.disableMultipleColumnsFiltering]),h=t.useCallback((function(){a.debug("Hiding filter panel"),e.current.hidePreferences()}),[e,a]),p=t.useCallback((function(t){var n=HO(e);n.linkOperator!==t&&e.current.setFilterModel((0,Pt.Z)({},n,{linkOperator:t}),"changeLogicOperator")}),[e]),m=t.useCallback((function(t){var n=HO(e);sP(n.quickFilterValues,t)||e.current.setFilterModel((0,Pt.Z)({},n,{quickFilterValues:(0,v.Z)(t)}))}),[e]),g=t.useCallback((function(t,r){HO(e)!==t&&(a.debug("Setting filter model"),e.current.unstable_updateControlState("filter",FZ(t,n.disableMultipleColumnsFiltering,e),r),e.current.unstable_applyFilters())}),[e,a,n.disableMultipleColumnsFiltering]),y=t.useCallback((function(){var t=VO(e);return new Map(t.map((function(e){return[e.id,e.model]})))}),[e]);mP(e,{setFilterLinkOperator:p,unstable_applyFilters:s,deleteFilterItem:d,upsertFilterItem:c,upsertFilterItems:u,setFilterModel:g,showFilterPanel:f,hideFilterPanel:h,getVisibleRowModels:y,setQuickFilterValues:m});var b=t.useCallback((function(t,r){var i,o,a=HO(e);return r.exportOnlyDirtyModels&&null==n.filterModel&&null==(null==(i=n.initialState)||null==(o=i.filter)?void 0:o.filterModel)&&sP(a,LZ())?t:(0,Pt.Z)({},t,{filter:{filterModel:a}})}),[e,n.filterModel,null==(r=n.initialState)||null==(i=r.filter)?void 0:i.filterModel]),_=t.useCallback((function(t,r){var i,o=null==(i=r.stateToRestore.filter)?void 0:i.filterModel;return null==o?t:(e.current.unstable_updateControlState("filter",FZ(o,n.disableMultipleColumnsFiltering,e),"restoreState"),(0,Pt.Z)({},t,{callbacks:[].concat((0,v.Z)(t.callbacks),[e.current.unstable_applyFilters])}))}),[e,n.disableMultipleColumnsFiltering]),w=t.useCallback((function(e,t){if(t===OL.filters){var r,i=n.components.FilterPanel;return(0,tn.jsx)(i,(0,Pt.Z)({},null==(r=n.componentsProps)?void 0:r.filterPanel))}return e}),[n.components.FilterPanel,null==(o=n.componentsProps)?void 0:o.filterPanel]),S=t.useCallback((function(t){if(n.filterMode===TZ&&t.isRowMatchingFilters){for(var r=_O(e),i={},o=0;o<r.length;o+=1){var a=r[o],l=void 0;if("string"===typeof a&&a.startsWith("auto-generated-group-footer"))l=!0;else{var s=t.isRowMatchingFilters(a),c=s.passingFilterItems,u=s.passingQuickFilterValues;l=HZ([c],[u],t.filterModel,e)}i[a]=l}return{filteredRowsLookup:i,visibleRowsLookup:i,filteredDescendantCountLookup:{}}}return{visibleRowsLookup:{},filteredRowsLookup:{},filteredDescendantCountLookup:{}}}),[e,n.filterMode]);FP(e,"exportState",b),FP(e,"restoreState",_),FP(e,"preferencePanel",w),ZZ(e,PP,"filtering",S);var x=t.useCallback((function(){a.debug("onColUpdated - GridColumns changed, applying filters");var t=HO(e),n=$R(e),r=t.items.filter((function(e){return e.columnField&&n[e.columnField]}));r.length<t.items.length&&e.current.setFilterModel((0,Pt.Z)({},t,{items:r}))}),[e,a]),C=t.useCallback((function(t){"filtering"===t&&e.current.unstable_applyFilters()}),[e]);xP(e,"rowsSet",l),xP(e,"rowExpansionChange",e.current.unstable_applyFilters),xP(e,"columnsChange",x),xP(e,"activeStrategyProcessorChange",C),NP((function(){e.current.unstable_applyFilters()})),t.useEffect((function(){void 0!==n.filterModel&&e.current.setFilterModel(n.filterModel)}),[e,a,n.filterModel])}(i,e),function(e,n){var r,i,o=EO(e,"useGridSorting");e.current.unstable_registerControlState({stateId:"sortModel",propModel:n.sortModel,propOnChange:n.onSortModelChange,stateSelector:FO,changeEvent:"sortModelChange"});var a=t.useCallback((function(t,n){var r=FO(e),i=r.findIndex((function(e){return e.field===t})),o=(0,v.Z)(r);return i>-1?n?o.splice(i,1,n):o.splice(i,1):o=[].concat((0,v.Z)(r),[n]),o}),[e]),l=t.useCallback((function(t,r){var i,o=FO(e).find((function(e){return e.field===t.field}));if(o){var a,l=void 0===r?_T(null!=(a=t.sortingOrder)?a:n.sortingOrder,o.sort):r;return null==l?void 0:(0,Pt.Z)({},o,{sort:l})}return{field:t.field,sort:void 0===r?_T(null!=(i=t.sortingOrder)?i:n.sortingOrder):r}}),[e,n.sortingOrder]),s=t.useCallback((function(){e.current.setState((function(t){if(n.sortingMode===MZ)return o.debug("Skipping sorting rows as sortingMode = server"),(0,Pt.Z)({},t,{sorting:(0,Pt.Z)({},t.sorting,{sortedRows:_O(t,e.current.instanceId)})});var r=function(e,t){var n=e.map((function(e){return function(e,t){var n=t.current.getColumn(e.field);if(!n)return null;var r="desc"===e.sort?function(){return-1*n.sortComparator.apply(n,arguments)}:n.sortComparator;return{getSortCellParams:function(e){return{id:e,field:n.field,rowNode:t.current.getRowNode(e),value:t.current.getCellValue(e,n.field),api:t.current}},comparator:r}}(e,t)})).filter((function(e){return!!e}));return 0===n.length?null:function(e){return e.map((function(e){return{node:e,params:n.map((function(t){return t.getSortCellParams(e.id)}))}})).sort((function(e,t){return r=e,i=t,n.reduce((function(e,t,n){if(0!==e)return e;var o=r.params[n],a=i.params[n];return t.comparator(o.value,a.value,o,a)}),0);var r,i})).map((function(e){return e.node.id}))}}(FO(t,e.current.instanceId),e),i=e.current.unstable_applyStrategyProcessor("sorting",{sortRowList:r});return(0,Pt.Z)({},t,{sorting:(0,Pt.Z)({},t.sorting,{sortedRows:i})})})),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()}),[e,o,n.sortingMode]),c=t.useCallback((function(t){FO(e)!==t&&(o.debug("Setting sort model"),e.current.setState(bT(t,n.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())}),[e,o,n.disableMultipleColumnsSorting]),u=t.useCallback((function(t,r,i){if(t.sortable){var o,s=l(t,r);o=!i||n.disableMultipleColumnsSorting?s?[s]:[]:a(t.field,s),e.current.setSortModel(o)}}),[e,a,l,n.disableMultipleColumnsSorting]),d=t.useCallback((function(){return FO(e)}),[e]),f=t.useCallback((function(){return NO(e).map((function(e){return e.model}))}),[e]),h=t.useCallback((function(){return AO(e)}),[e]),p=t.useCallback((function(t){return e.current.getSortedRowIds().indexOf(t)}),[e]),m=t.useCallback((function(t){return e.current.getSortedRowIds()[t]}),[e]);mP(e,{getSortModel:d,getSortedRows:f,getSortedRowIds:h,getRowIndex:p,getRowIdFromRowIndex:m,setSortModel:c,sortColumn:u,applySorting:s});var g=t.useCallback((function(t,r){var i,o,a=FO(e);return!r.exportOnlyDirtyModels||null!=n.sortModel||null!=(null==(i=n.initialState)||null==(o=i.sorting)?void 0:o.sortModel)||a.length>0?(0,Pt.Z)({},t,{sorting:{sortModel:a}}):t}),[e,n.sortModel,null==(r=n.initialState)||null==(i=r.sorting)?void 0:i.sortModel]),y=t.useCallback((function(t,r){var i,o=null==(i=r.stateToRestore.sorting)?void 0:i.sortModel;return null==o?t:(e.current.setState(bT(o,n.disableMultipleColumnsSorting)),(0,Pt.Z)({},t,{callbacks:[].concat((0,v.Z)(t.callbacks),[e.current.applySorting])}))}),[e,n.disableMultipleColumnsSorting]),b=t.useCallback((function(t){var n=gO(e);if(!t.sortRowList){var r=[],i=[];return _O(e).forEach((function(e){n[e].isPinned||("footer"===n[e].position?i.push(e):r.push(e))})),[].concat(r,i)}var o=[],a=[];return Object.values(n).forEach((function(e){e.isPinned||("footer"===e.position?a.push(e.id):o.push(e))})),[].concat((0,v.Z)(t.sortRowList(o)),a)}),[e]);FP(e,"exportState",g),FP(e,"restoreState",y),ZZ(e,PP,"sorting",b);var _=t.useCallback((function(e,t){var n=e.colDef,r=t.shiftKey||t.metaKey||t.ctrlKey;u(n,void 0,r)}),[u]),w=t.useCallback((function(e,t){var n=e.colDef;!BM(t.key)||t.ctrlKey||t.metaKey||u(n,void 0,t.shiftKey)}),[u]),S=t.useCallback((function(){var t=FO(e),n=UR(e);if(t.length>0){var r=t.filter((function(e){return n[e.field]}));r.length<t.length&&e.current.setSortModel(r)}}),[e]),x=t.useCallback((function(t){"sorting"===t&&e.current.applySorting()}),[e]);xP(e,"columnHeaderClick",_),xP(e,"columnHeaderKeyDown",w),xP(e,"rowsSet",e.current.applySorting),xP(e,"columnsChange",S),xP(e,"activeStrategyProcessorChange",x),NP((function(){e.current.applySorting()})),t.useEffect((function(){void 0!==n.sortModel&&e.current.setSortModel(n.sortModel)}),[e,n.sortModel])}(i,e),function(e,n){var r=QR(e,KR),i=r.length>0?Math.max.apply(Math,(0,v.Z)(r.map((function(e){var t,n;return null!=(t=null==(n=e.groupPath)?void 0:n.length)?t:0})))):0,o=EO(e,"useDensity"),a=t.useCallback((function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.headerHeight,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.rowHeight,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i;o.debug("Set grid density to ".concat(t)),e.current.setState((function(e){var n=iO(e),i=WL(t,r,a,l);return sP(n,i)?e:(0,Pt.Z)({},e,{density:i})})),e.current.forceUpdate()}),[o,e,n.headerHeight,n.rowHeight,i]);t.useEffect((function(){e.current.setDensity(n.density,n.headerHeight,n.rowHeight,i)}),[e,n.density,n.rowHeight,n.headerHeight,i]),mP(e,{setDensity:a})}(i,e),lI(i,e),function(e,n){var r=n.getRowHeight,i=n.getRowSpacing,o=n.getEstimatedRowHeight,a=t.useRef({}),l=t.useRef(-1),s=t.useRef(!1),c=QR(e,aO),d=QR(e,BO),f=QR(e,rZ),h=QR(e,jO),p=VZ(e,n),v=QR(e,SO),m=t.useCallback((function(){var t,n;s.current=!1;var d=cO(e.current.state,e.current.instanceId),f=function(t){a.current[t.id]||(a.current[t.id]={sizes:{baseCenter:c},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});var n=a.current[t.id],l=n.isResized,f=n.needsFirstMeasurement,h=n.sizes,v=c,m=h.baseCenter;if(l)v=m;else if(r){var g=r((0,Pt.Z)({},t,{densityFactor:d}));if("auto"===g){if(f){var y=o?o((0,Pt.Z)({},t,{densityFactor:d})):c;v=null!=y?y:c}else v=m;s.current=!0,a.current[t.id].autoHeight=!0}else v=null!=g?g:c,a.current[t.id].needsFirstMeasurement=!1,a.current[t.id].autoHeight=!1}else a.current[t.id].needsFirstMeasurement=!1;var b=Object.entries(h).reduce((function(e,t){var n=(0,u.Z)(t,2),r=n[0],i=n[1];return/^base[A-Z]/.test(r)&&(e[r]=i),e}),{}),_=(0,Pt.Z)({},b,{baseCenter:v});if(i){var w,S,x=e.current.getRowIndexRelativeToVisibleRows(t.id),C=i((0,Pt.Z)({},t,{isFirstVisible:0===x,isLastVisible:x===p.rows.length-1,indexRelativeToCurrentPage:x}));_.spacingTop=null!=(w=C.top)?w:0,_.spacingBottom=null!=(S=C.bottom)?S:0}var k=e.current.unstable_applyPipeProcessors("rowHeight",_,t);return a.current[t.id].sizes=k,k},h=[],m=p.rows.reduce((function(e,t){h.push(e);var n=0,r=0,i=f(t);return Object.entries(i).forEach((function(e){var t=(0,u.Z)(e,2),i=t[0],o=t[1];/^base[A-Z]/.test(i)?n=o>n?o:n:r+=o})),e+n+r}),0);null==v||null==(t=v.top)||t.forEach((function(e){f(e)})),null==v||null==(n=v.bottom)||n.forEach((function(e){f(e)})),e.current.setState((function(e){return(0,Pt.Z)({},e,{rowsMeta:{currentPageTotalHeight:m,positions:h}})})),s.current||(l.current=1/0),e.current.forceUpdate()}),[e,p.rows,c,r,i,o,v]),g=t.useCallback((function(e){var t=a.current[e];return t?t.sizes.baseCenter:c}),[c]),y=t.useCallback((function(e,t){a.current[e].sizes.baseCenter=t,a.current[e].isResized=!0,a.current[e].needsFirstMeasurement=!1,m()}),[m]),b=t.useMemo((function(){return(0,_S.Z)(m)}),[m]),_=t.useCallback((function(e,t,n){if(a.current[e]&&a.current[e].autoHeight){var r=a.current[e].sizes["base".concat((0,Mn.Z)(n))]!==t;a.current[e].needsFirstMeasurement=!1,a.current[e].sizes["base".concat((0,Mn.Z)(n))]=t,r&&b()}}),[b]),w=t.useCallback((function(e){var t;return(null==(t=a.current[e])?void 0:t.autoHeight)||!1}),[]),S=t.useCallback((function(){return l.current}),[]),x=t.useCallback((function(e){s.current&&e>l.current&&(l.current=e)}),[]),C=t.useCallback((function(){a.current={},m()}),[m]);t.useEffect((function(){m()}),[c,d,f,h,m]),zP(e,"rowHeight",m),mP(e,{unstable_getLastMeasuredRowIndex:S,unstable_setLastMeasuredRowIndex:x,unstable_rowHasAutoHeight:w,unstable_getRowHeight:g,unstable_getRowInternalSizes:function(e){var t;return null==(t=a.current[e])?void 0:t.sizes},unstable_setRowHeight:y,unstable_storeRowHeightMeasurement:_,resetRowHeights:C})}(i,e),function(e,n){var r=EO(e,"useGridScroll"),i=e.current.columnHeadersElementRef,o=e.current.windowRef,a=QR(e,VO),l=t.useCallback((function(t){var i=fO(e),l=KR(e);if(null!=t.rowIndex&&0===i||0===l.length)return!1;r.debug("Scrolling to cell at row ".concat(t.rowIndex,", col: ").concat(t.colIndex," "));var s={};if(null!=t.colIndex){var c,u=YR(e);if("undefined"!==typeof t.rowIndex){var d,f=null==(d=a[t.rowIndex])?void 0:d.id,h=e.current.unstable_getCellColSpanInfo(f,t.colIndex);h&&!h.spannedByColSpan&&(c=h.cellProps.width)}"undefined"===typeof c&&(c=l[t.colIndex].computedWidth),s.left=FI({clientHeight:o.current.clientWidth,scrollTop:o.current.scrollLeft,offsetHeight:c,offsetTop:u[t.colIndex]})}if(null!=t.rowIndex){var p,v,m=RZ(e.current.state),g=iZ(e),y=oZ(e),b=n.pagination?t.rowIndex-g*y:t.rowIndex,_=m.positions[b+1]?m.positions[b+1]-m.positions[b]:m.currentPageTotalHeight-m.positions[b],w=(null==(p=o.current.querySelector(".".concat(TR["pinnedRows--top"])))?void 0:p.clientHeight)||0,S=(null==(v=o.current.querySelector(".".concat(TR["pinnedRows--bottom"])))?void 0:v.clientHeight)||0;s.top=FI({clientHeight:o.current.clientHeight-w-S,scrollTop:o.current.scrollTop,offsetHeight:_,offsetTop:m.positions[b]})}return(void 0!==typeof(s=e.current.unstable_applyPipeProcessors("scrollToIndexes",s,t)).left||void 0!==typeof s.top)&&(e.current.scroll(s),!0)}),[r,e,o,n.pagination,a]),s=t.useCallback((function(e){o.current&&null!=e.left&&i.current&&(i.current.scrollLeft=e.left,o.current.scrollLeft=e.left,r.debug("Scrolling left: ".concat(e.left))),o.current&&null!=e.top&&(o.current.scrollTop=e.top,r.debug("Scrolling top: ".concat(e.top))),r.debug("Scrolling, updating container, and viewport")}),[o,i,r]),c=t.useCallback((function(){return null!=o&&o.current?{top:o.current.scrollTop,left:o.current.scrollLeft}:{top:0,left:0}}),[o]);mP(e,{scroll:s,scrollToIndexes:l,getScrollPosition:c})}(i,e),function(e){var n=EO(e,"useGridColumnMenu"),r=t.useCallback((function(t){e.current.setState((function(e){return e.columnMenu.open&&e.columnMenu.field===t?e:(n.debug("Opening Column Menu"),(0,Pt.Z)({},e,{columnMenu:{open:!0,field:t}}))}))&&(e.current.hidePreferences(),e.current.forceUpdate())}),[e,n]),i=t.useCallback((function(){e.current.setState((function(e){return e.columnMenu.open||void 0!==e.columnMenu.field?(n.debug("Hiding Column Menu"),(0,Pt.Z)({},e,{columnMenu:(0,Pt.Z)({},e.columnMenu,{open:!1,field:void 0})})):e}))&&e.current.forceUpdate()}),[e,n]),o=t.useCallback((function(t){n.debug("Toggle Column Menu");var o=jP(e.current.state);o.open&&o.field===t?i():r(t)}),[e,n,r,i]);mP(e,{showColumnMenu:r,hideColumnMenu:i,toggleColumnMenu:o});var a=t.useCallback((function(t,n){if(n.target.classList.contains(TR.menuIconButton)&&n.relatedTarget){var r=n.relatedTarget.classList.contains(TR.menuList),i="menuitem"===n.relatedTarget.getAttribute("role");(r||i)&&e.current.setColumnHeaderFocus(t.field)}}),[e]);xP(e,"columnResizeStart",i),xP(e,"columnHeaderFocus",a),xP(e,"virtualScrollerWheel",e.current.hideColumnMenu),xP(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)}(i),EZ(i),PZ(i,e),DP(i),function(e,n){var r=EO(e,"useResizeContainer"),i=t.useRef(!1),o=t.useRef(null),a=t.useRef(null),l=QR(e,RZ),s=QR(e,uO),c=t.useCallback((function(){var t,r=null==(t=e.current.rootElementRef)?void 0:t.current,i=GR(e),c=eI(e);if(o.current){var u,d,f,h;if(null!=n.scrollbarSize)u=n.scrollbarSize;else if(i&&r){var p=(0,Qw.Z)(r).createElement("div");p.style.width="99px",p.style.height="99px",p.style.position="absolute",p.style.overflow="scroll",p.className="scrollDiv",r.appendChild(p),u=p.offsetWidth-p.clientWidth,r.removeChild(p)}else u=0;if(n.autoHeight)h=!1,f=Math.round(i)>o.current.width,d={width:o.current.width,height:l.currentPageTotalHeight+(f?u:0)};else{d={width:o.current.width,height:o.current.height-s};var v=BI({content:{width:Math.round(i),height:l.currentPageTotalHeight},container:{width:d.width,height:d.height-c.top-c.bottom},scrollBarSize:u});h=v.hasScrollY,f=v.hasScrollX}var m={viewportOuterSize:d,viewportInnerSize:{width:d.width-(h?u:0),height:d.height-(f?u:0)},hasScrollX:f,hasScrollY:h,scrollBarSize:u},g=a.current;a.current=m,m.viewportInnerSize.width===(null==g?void 0:g.viewportInnerSize.width)&&m.viewportInnerSize.height===(null==g?void 0:g.viewportInnerSize.height)||e.current.publishEvent("viewportInnerSizeChange",m.viewportInnerSize)}}),[e,n.scrollbarSize,n.autoHeight,s,l.currentPageTotalHeight]),u=t.useCallback((function(){c(),e.current.publishEvent("debouncedResize",o.current)}),[e,c]),d=t.useCallback((function(){return a.current}),[]),f=t.useCallback((function(){var t=e.current.getRootDimensions();if(!t)return 0;var r=UZ(e,{pagination:n.pagination,paginationMode:n.paginationMode});if(n.getRowHeight){var i=e.current.unstable_getRenderContext(),o=i.lastRowIndex-i.firstRowIndex;return Math.min(o-1,r.rows.length)}var a=Math.floor(t.viewportInnerSize.height/aO(e));return Math.min(a,r.rows.length)}),[e,n.pagination,n.paginationMode,n.getRowHeight]);mP(e,{resize:u,getRootDimensions:d,unstable_getViewportPageSize:f,unstable_updateGridDimensionsRef:c});var h=t.useMemo((function(){return(0,_S.Z)(u,60)}),[u]),p=t.useRef(!0),v=t.useCallback((function(e){o.current=e;var t=/jsdom/.test(window.navigator.userAgent);return 0!==e.height||i.current||n.autoHeight||t||(r.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join("\n")),i.current=!0),0!==e.width||i.current||t||(r.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join("\n")),i.current=!0),zI||p.current?(u(),void(p.current=!1)):void h()}),[n.autoHeight,h,r,u]);(0,H_.Z)((function(){return c()}),[c]),kP(e,"sortedRowsSet",c),kP(e,"pageChange",c),kP(e,"pageSizeChange",c),kP(e,"columnsChange",c),xP(e,"resize",v),kP(e,"debouncedResize",n.onResize)}(i,e),function(e,t){kP(e,"columnHeaderClick",t.onColumnHeaderClick),kP(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),kP(e,"columnHeaderOver",t.onColumnHeaderOver),kP(e,"columnHeaderOut",t.onColumnHeaderOut),kP(e,"columnHeaderEnter",t.onColumnHeaderEnter),kP(e,"columnHeaderLeave",t.onColumnHeaderLeave),kP(e,"columnOrderChange",t.onColumnOrderChange),kP(e,"cellClick",t.onCellClick),kP(e,"cellDoubleClick",t.onCellDoubleClick),kP(e,"cellKeyDown",t.onCellKeyDown),kP(e,"cellFocusOut",t.onCellFocusOut),kP(e,"preferencePanelClose",t.onPreferencePanelClose),kP(e,"preferencePanelOpen",t.onPreferencePanelOpen),kP(e,"menuOpen",t.onMenuOpen),kP(e,"menuClose",t.onMenuClose),kP(e,"rowDoubleClick",t.onRowDoubleClick),kP(e,"rowClick",t.onRowClick),kP(e,"componentError",t.onError),kP(e,"stateChange",t.onStateChange)}(i,e),function(e){var n=t.useCallback((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.current.unstable_applyPipeProcessors("exportState",{},t)}),[e]),r=t.useCallback((function(t){e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:t}).callbacks.forEach((function(e){e()})),e.current.forceUpdate()}),[e]);mP(e,{exportState:n,restoreState:r})}(i),i},UI={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",errorOverlayDefaultLabel:"An error occurred.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:function(e){return"".concat(e,1!==e?" active filters":" active filter")},toolbarQuickFilterPlaceholder:"Search\u2026",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelDeleteIconLabel:"Delete",filterPanelLinkOperator:"Logic operator",filterPanelOperators:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:function(e){return"".concat(e,1!==e?" active filters":" active filter")},columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:function(e){return"".concat(e.toLocaleString(),1!==e?" rows selected":" row selected")},footerTotalRows:"Total Rows:",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," of ").concat(t.toLocaleString())},checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:function(e){return"Group by ".concat(e)},unGroupColumn:function(e){return"Stop grouping by ".concat(e)},detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"},VI=(0,Bx.Z)((0,tn.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"),qI=(0,Bx.Z)((0,tn.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"),KI=(0,Bx.Z)((0,tn.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 YI(e){return(0,xn.Z)("MuiCheckbox",e)}var GI,XI=(0,rn.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),$I=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],JI=(0,Zt.ZP)(KE,{shouldForwardProp:function(e){return(0,Zt.FO)(e)||"classes"===e},name:"MuiCheckbox",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t["color".concat((0,Mn.Z)(n.color))]]}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,Pt.Z)({color:(n.vars||n).palette.text.secondary},!r.disableRipple&&{"&:hover":{backgroundColor:n.vars?"rgba(".concat("default"===r.color?n.vars.palette.action.activeChannel:n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,Lt.Fq)("default"===r.color?n.palette.action.active:n.palette[r.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&(t={},(0,o.Z)(t,"&.".concat(XI.checked,", &.").concat(XI.indeterminate),{color:(n.vars||n).palette[r.color].main}),(0,o.Z)(t,"&.".concat(XI.disabled),{color:(n.vars||n).palette.action.disabled}),t))})),QI=(0,tn.jsx)(qI,{}),eD=(0,tn.jsx)(VI,{}),tD=(0,tn.jsx)(KI,{}),nD=t.forwardRef((function(e,n){var r,i,o=(0,It.Z)({props:e,name:"MuiCheckbox"}),a=o.checkedIcon,l=void 0===a?QI:a,s=o.color,c=void 0===s?"primary":s,u=o.icon,d=void 0===u?eD:u,f=o.indeterminate,p=void 0!==f&&f,v=o.indeterminateIcon,g=void 0===v?tD:v,y=o.inputProps,b=o.size,_=void 0===b?"medium":b,w=o.className,S=(0,h.Z)(o,$I),x=p?g:d,C=p?g:l,k=(0,Pt.Z)({},o,{color:c,indeterminate:p,size:_}),E=function(e){var t=e.classes,n=e.indeterminate,r=e.color,i={root:["root",n&&"indeterminate","color".concat((0,Mn.Z)(r))]},o=(0,Mt.Z)(i,YI,t);return(0,Pt.Z)({},t,o)}(k);return(0,tn.jsx)(JI,(0,Pt.Z)({type:"checkbox",inputProps:(0,Pt.Z)({"data-indeterminate":p},y),icon:t.cloneElement(x,{fontSize:null!=(r=x.props.fontSize)?r:_}),checkedIcon:t.cloneElement(C,{fontSize:null!=(i=C.props.fontSize)?i:_}),ownerState:k,ref:n,className:(0,m.Z)(E.root,w)},S,{classes:E}))})),rD=nD,iD=["align","children","colIndex","colDef","cellMode","field","formattedValue","hasFocus","height","isEditable","rowId","tabIndex","value","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","onClick","onDoubleClick","onMouseDown","onMouseUp","onKeyDown","onDragEnter","onDragOver"];var oD=function(e){var t=e.align,n=e.showRightBorder,r=e.isEditable,i=e.classes,o={root:["cell","cell--text".concat((0,Mn.Z)(t)),r&&"cell--editable",n&&"withBorder"],content:["cellContent"]};return(0,Mt.Z)(o,PR,i)};function aD(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function lD(e){return parseFloat(e)}function sD(e){return(0,xn.Z)("MuiSkeleton",e)}(0,rn.Z)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var cD,uD,dD,fD,hD,pD,vD,mD,gD=["animation","className","component","height","style","variant","width"],yD=en(hD||(hD=cD||(cD=Nt(["\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.4;\n }\n\n 100% {\n opacity: 1;\n }\n"])))),bD=en(pD||(pD=uD||(uD=Nt(["\n 0% {\n transform: translateX(-100%);\n }\n\n 50% {\n /* +0.5s of delay between each loop */\n transform: translateX(100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n"])))),_D=(0,Zt.ZP)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})((function(e){var t=e.theme,n=e.ownerState,r=aD(t.shape.borderRadius)||"px",i=lD(t.shape.borderRadius);return(0,Pt.Z)({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:(0,Lt.Fq)(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em"},"text"===n.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(i).concat(r,"/").concat(Math.round(i/.6*10)/10).concat(r),"&:empty:before":{content:'"\\00a0"'}},"circular"===n.variant&&{borderRadius:"50%"},"rounded"===n.variant&&{borderRadius:(t.vars||t).shape.borderRadius},n.hasChildren&&{"& > *":{visibility:"hidden"}},n.hasChildren&&!n.width&&{maxWidth:"fit-content"},n.hasChildren&&!n.height&&{height:"auto"})}),(function(e){return"pulse"===e.ownerState.animation&&Qt(vD||(vD=dD||(dD=Nt(["\n animation: "," 1.5s ease-in-out 0.5s infinite;\n "]))),yD)}),(function(e){var t=e.ownerState,n=e.theme;return"wave"===t.animation&&Qt(mD||(mD=fD||(fD=Nt(["\n position: relative;\n overflow: hidden;\n\n /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n &::after {\n animation: "," 1.6s linear 0.5s infinite;\n background: linear-gradient(\n 90deg,\n transparent,\n ",",\n transparent\n );\n content: '';\n position: absolute;\n transform: translateX(-100%); /* Avoid flash during server-side hydration */\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n }\n "]))),bD,(n.vars||n).palette.action.hover)})),wD=t.forwardRef((function(e,t){var n=(0,It.Z)({props:e,name:"MuiSkeleton"}),r=n.animation,i=void 0===r?"pulse":r,o=n.className,a=n.component,l=void 0===a?"span":a,s=n.height,c=n.style,u=n.variant,d=void 0===u?"text":u,f=n.width,p=(0,h.Z)(n,gD),v=(0,Pt.Z)({},n,{animation:i,component:l,variant:d,hasChildren:Boolean(p.children)}),g=function(e){var t=e.classes,n=e.variant,r=e.animation,i=e.hasChildren,o=e.width,a=e.height,l={root:["root",n,r,i&&"withChildren",i&&!o&&"fitContent",i&&!a&&"heightAuto"]};return(0,Mt.Z)(l,sD,t)}(v);return(0,tn.jsx)(_D,(0,Pt.Z)({as:l,ref:t,className:(0,m.Z)(g.root,o),ownerState:v},p,{style:(0,Pt.Z)({width:f,height:s},c)}))})),SD=wD,xD=["field","align","width","contentWidth"],CD=function(e){var t=e.align,n=e.classes,r={root:["cell","cellSkeleton","cell--text".concat((0,Mn.Z)(t))]};return(0,Mt.Z)(r,PR,n)};function kD(e){return(0,xn.Z)("MuiBadge",e)}(0,rn.Z)("MuiBadge",["root","badge","invisible"]);var ED=["badgeContent","component","children","invisible","max","slotProps","slots","showZero"],RD=t.forwardRef((function(e,t){var n=e.component,r=e.children,i=e.max,o=void 0===i?99:i,a=e.slotProps,l=void 0===a?{}:a,s=e.slots,c=void 0===s?{}:s,u=e.showZero,d=void 0!==u&&u,f=(0,h.Z)(e,ED),p=function(e){var t=e.badgeContent,n=e.invisible,r=void 0!==n&&n,i=e.max,o=void 0===i?99:i,a=e.showZero,l=void 0!==a&&a,s=kT({badgeContent:t,max:o}),c=r;!1!==r||0!==t||l||(c=!0);var u=c?s:e,d=u.badgeContent,f=u.max,h=void 0===f?o:f;return{badgeContent:d,invisible:c,max:h,displayValue:d&&Number(d)>h?"".concat(h,"+"):d}}((0,Pt.Z)({},e,{max:o})),v=p.badgeContent,m=p.max,g=p.displayValue,y=p.invisible,b=(0,Pt.Z)({},e,{badgeContent:v,invisible:y,max:m,showZero:d}),_=function(e){var t={root:["root"],badge:["badge",e.invisible&&"invisible"]};return(0,Mt.Z)(t,kD,void 0)}(b),w=n||c.root||"span",S=Hi({elementType:w,externalSlotProps:l.root,externalForwardedProps:f,additionalProps:{ref:t},ownerState:b,className:_.root}),x=c.badge||"span",C=Hi({elementType:x,externalSlotProps:l.badge,ownerState:b,className:_.badge});return(0,tn.jsxs)(w,(0,Pt.Z)({},S,{children:[r,(0,tn.jsx)(x,(0,Pt.Z)({},C,{children:g}))]}))})),OD=RD,PD=function(e){return!e||!Hn(e)};function TD(e){return(0,xn.Z)("MuiBadge",e)}var MD=(0,rn.Z)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),LD=["anchorOrigin","className","component","components","componentsProps","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],ZD=(0,Zt.ZP)("span",{name:"MuiBadge",slot:"Root",overridesResolver:function(e,t){return t.root}})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),ID=(0,Zt.ZP)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:function(e,t){var n=e.ownerState;return[t.badge,t[n.variant],t["anchorOrigin".concat((0,Mn.Z)(n.anchorOrigin.vertical)).concat((0,Mn.Z)(n.anchorOrigin.horizontal)).concat((0,Mn.Z)(n.overlap))],"default"!==n.color&&t["color".concat((0,Mn.Z)(n.color))],n.invisible&&t.invisible]}})((function(e){var t=e.theme,n=e.ownerState;return(0,Pt.Z)({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen})},"default"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].main,color:(t.vars||t).palette[n.color].contrastText},"dot"===n.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&(0,o.Z)({top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%"},"&.".concat(MD.invisible),{transform:"scale(0) translate(50%, -50%)"}),"bottom"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&(0,o.Z)({bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%"},"&.".concat(MD.invisible),{transform:"scale(0) translate(50%, 50%)"}),"top"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&(0,o.Z)({top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%"},"&.".concat(MD.invisible),{transform:"scale(0) translate(-50%, -50%)"}),"bottom"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&(0,o.Z)({bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%"},"&.".concat(MD.invisible),{transform:"scale(0) translate(-50%, 50%)"}),"top"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&(0,o.Z)({top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%"},"&.".concat(MD.invisible),{transform:"scale(0) translate(50%, -50%)"}),"bottom"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&(0,o.Z)({bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%"},"&.".concat(MD.invisible),{transform:"scale(0) translate(50%, 50%)"}),"top"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&(0,o.Z)({top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%"},"&.".concat(MD.invisible),{transform:"scale(0) translate(-50%, -50%)"}),"bottom"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&(0,o.Z)({bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%"},"&.".concat(MD.invisible),{transform:"scale(0) translate(-50%, 50%)"}),n.invisible&&{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})})})),DD=t.forwardRef((function(e,t){var n,r,i,o,a,l,s=(0,It.Z)({props:e,name:"MuiBadge"}),c=s.anchorOrigin,u=void 0===c?{vertical:"top",horizontal:"right"}:c,d=s.className,f=s.component,p=void 0===f?"span":f,v=s.components,g=void 0===v?{}:v,y=s.componentsProps,b=void 0===y?{}:y,_=s.overlap,w=void 0===_?"rectangular":_,S=s.color,x=void 0===S?"default":S,C=s.invisible,k=void 0!==C&&C,E=s.max,R=s.badgeContent,O=s.slots,P=s.slotProps,T=s.showZero,M=void 0!==T&&T,L=s.variant,Z=void 0===L?"standard":L,I=(0,h.Z)(s,LD),D=kT({anchorOrigin:u,color:x,overlap:w,variant:Z}),j=k;!1===k&&(0===R&&!M||null==R&&"dot"!==Z)&&(j=!0);var A,N=j?D:s,F=N.color,z=void 0===F?x:F,B=N.overlap,H=void 0===B?w:B,W=N.anchorOrigin,U=void 0===W?u:W,V=N.variant,q=void 0===V?Z:V,K=function(e){var t=e.color,n=e.anchorOrigin,r=e.invisible,i=e.overlap,o=e.variant,a=e.classes,l=void 0===a?{}:a,s={root:["root"],badge:["badge",o,r&&"invisible","anchorOrigin".concat((0,Mn.Z)(n.vertical)).concat((0,Mn.Z)(n.horizontal)),"anchorOrigin".concat((0,Mn.Z)(n.vertical)).concat((0,Mn.Z)(n.horizontal)).concat((0,Mn.Z)(i)),"overlap".concat((0,Mn.Z)(i)),"default"!==t&&"color".concat((0,Mn.Z)(t))]};return(0,Mt.Z)(s,TD,l)}((0,Pt.Z)({},s,{anchorOrigin:U,invisible:j,color:z,overlap:H,variant:q}));"dot"!==q&&(A=R&&Number(R)>E?"".concat(E,"+"):R);var Y=null!=(n=null!=(r=null==O?void 0:O.root)?r:g.Root)?n:ZD,G=null!=(i=null!=(o=null==O?void 0:O.badge)?o:g.Badge)?i:ID,X=null!=(a=null==P?void 0:P.root)?a:b.root,$=null!=(l=null==P?void 0:P.badge)?l:b.badge;return(0,tn.jsx)(OD,(0,Pt.Z)({invisible:k,badgeContent:A,showZero:M,max:E},I,{slots:{root:Y,badge:G},className:(0,m.Z)(null==X?void 0:X.className,K.root,d),slotProps:{root:(0,Pt.Z)({},X,PD(Y)&&{as:p,ownerState:(0,Pt.Z)({},null==X?void 0:X.ownerState,{anchorOrigin:U,color:z,overlap:H,variant:q})}),badge:(0,Pt.Z)({},$,{className:(0,m.Z)(K.badge,null==$?void 0:$.className)},PD(G)&&{ownerState:(0,Pt.Z)({},null==$?void 0:$.ownerState,{anchorOrigin:U,color:z,overlap:H,variant:q})})},ref:t}))})),jD=DD,AD=["className"],ND=(0,Zt.ZP)("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:function(e,t){return t.iconButtonContainer}})((function(){return{display:"flex",visibility:"hidden",width:0}})),FD=t.forwardRef((function(e,t){var n=e.className,r=(0,h.Z)(e,AD),i=rO(),o=function(e){var t=e.classes;return(0,Mt.Z)({root:["iconButtonContainer"]},PR,t)}(i);return(0,tn.jsx)(ND,(0,Pt.Z)({ref:t,className:(0,m.Z)(o.root,n),ownerState:i},r))})),zD=function(e){var t=e.classes;return(0,Mt.Z)({icon:["filterIcon"]},PR,t)};var BD=["hideMenu","currentColumn","open","id","labelledby","className","children"],HD=t.forwardRef((function(e,n){var r=e.hideMenu,i=e.open,o=e.id,a=e.labelledby,l=e.className,s=e.children,c=(0,h.Z)(e,BD),u=t.useCallback((function(e){HM(e.key)&&e.preventDefault(),tL(e.key)&&r(e)}),[r]);return(0,tn.jsx)(hS,(0,Pt.Z)({id:o,ref:n,className:(0,m.Z)(TR.menuList,l),"aria-labelledby":a,onKeyDown:u,autoFocus:i},c,{children:s}))})),WD=function(e){var n=e.onClick,r=tO(),i=rO(),o=t.useCallback((function(e){n(e),r.current.showPreferences(OL.columns)}),[r,n]);return i.disableColumnSelector?null:(0,tn.jsx)(BE,{onClick:o,children:r.current.getLocaleText("columnMenuShowColumns")})},UD=function(e){var n=e.column,r=e.onClick,i=tO(),o=rO(),a=t.useCallback((function(e){r(e),i.current.showFilterPanel(null==n?void 0:n.field)}),[i,null==n?void 0:n.field,r]);return o.disableColumnFilter||null==n||!n.filterable?null:(0,tn.jsx)(BE,{onClick:a,children:i.current.getLocaleText("columnMenuFilter")})},VD=function(e){var n=e.column,r=e.onClick,i=tO(),o=rO(),a=t.useRef(),l=1===KR(i).filter((function(e){return!0!==e.disableColumnMenu})).length,s=t.useCallback((function(e){l||(r(e),a.current=setTimeout((function(){i.current.setColumnVisibility(null==n?void 0:n.field,!1)}),100))}),[i,null==n?void 0:n.field,r,l]);return t.useEffect((function(){return function(){return clearTimeout(a.current)}}),[]),o.disableColumnSelector||!1===n.hideable?null:(0,tn.jsx)(BE,{onClick:s,disabled:l,children:i.current.getLocaleText("columnMenuHideColumn")})};function qD(e){var n,r=e.column,i=e.onClick,o=tO(),a=QR(o,FO),l=rO(),s=null!=(n=r.sortingOrder)?n:l.sortingOrder,c=t.useMemo((function(){if(!r)return null;var e=a.find((function(e){return e.field===r.field}));return null==e?void 0:e.sort}),[r,a]),u=t.useCallback((function(e){i(e);var t=e.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(r,t)}),[o,r,i]);return r&&r.sortable?(0,tn.jsxs)(t.Fragment,{children:[s.includes(null)?(0,tn.jsx)(BE,{onClick:u,disabled:null==c,children:o.current.getLocaleText("columnMenuUnsort")}):null,s.includes("asc")?(0,tn.jsx)(BE,{onClick:u,"data-value":"asc",disabled:"asc"===c,children:o.current.getLocaleText("columnMenuSortAsc")}):null,s.includes("desc")?(0,tn.jsx)(BE,{onClick:u,"data-value":"desc",disabled:"desc"===c,children:o.current.getLocaleText("columnMenuSortDesc")}):null]}):null}var KD=t.forwardRef((function(e,n){var r=e.hideMenu,i=e.currentColumn,o=tO(),a=[(0,tn.jsx)(qD,{onClick:r,column:i}),(0,tn.jsx)(UD,{onClick:r,column:i}),(0,tn.jsx)(VD,{onClick:r,column:i}),(0,tn.jsx)(WD,{onClick:r,column:i})],l=o.current.unstable_applyPipeProcessors("columnMenu",a,i);return(0,tn.jsx)(HD,(0,Pt.Z)({ref:n},e,{children:l.map((function(e,n){return t.cloneElement(e,{key:n,onClick:r,column:i})}))}))})),YD=["className","rowCount","visibleRowCount"],GD=(0,Zt.ZP)("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:function(e,t){return t.rowCount}})((function(e){return{alignItems:"center",display:"flex",margin:e.theme.spacing(0,2)}})),XD=t.forwardRef((function(e,t){var n=e.className,r=e.rowCount,i=e.visibleRowCount,o=(0,h.Z)(e,YD),a=tO(),l=rO(),s=function(e){var t=e.classes;return(0,Mt.Z)({root:["rowCount"]},PR,t)}(l);if(0===r)return null;var c=i<r?a.current.getLocaleText("footerTotalVisibleRows")(i,r):r.toLocaleString();return(0,tn.jsxs)(GD,(0,Pt.Z)({ref:t,className:(0,m.Z)(s.root,n),ownerState:l},o,{children:[a.current.getLocaleText("footerTotalRows")," ",c]}))})),$D=["className","selectedRowCount"],JD=(0,Zt.ZP)("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:function(e,t){return t.selectedRowCount}})((function(e){var t=e.theme;return(0,o.Z)({alignItems:"center",display:"flex",margin:t.spacing(0,2),visibility:"hidden",width:0,height:0},t.breakpoints.up("sm"),{visibility:"visible",width:"auto",height:"auto"})})),QD=t.forwardRef((function(e,t){var n=e.className,r=e.selectedRowCount,i=(0,h.Z)(e,$D),o=tO(),a=rO(),l=function(e){var t=e.classes;return(0,Mt.Z)({root:["selectedRowCount"]},PR,t)}(a),s=o.current.getLocaleText("footerRowSelected")(r);return(0,tn.jsx)(JD,(0,Pt.Z)({ref:t,className:(0,m.Z)(l.root,n),ownerState:a},i,{children:s}))})),ej=["className"],tj=(0,Zt.ZP)("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:function(e,t){return t.footerContainer}})((function(e){var t=e.theme,n="light"===t.palette.mode?(0,Lt.$n)((0,Lt.Fq)(t.palette.divider,1),.88):(0,Lt._j)((0,Lt.Fq)(t.palette.divider,1),.68);return{display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid ".concat(n)}})),nj=t.forwardRef((function(e,t){var n=e.className,r=(0,h.Z)(e,ej),i=rO(),o=function(e){var t=e.classes;return(0,Mt.Z)({root:["footerContainer"]},PR,t)}(i);return(0,tn.jsx)(tj,(0,Pt.Z)({ref:t,className:(0,m.Z)(o.root,n),ownerState:i},r))})),rj=t.forwardRef((function(e,t){var n,r=tO(),i=rO(),o=QR(r,pO),a=QR(r,eZ),l=QR(r,$O),s=!i.hideFooterSelectedRowCount&&a>0?(0,tn.jsx)(QD,{selectedRowCount:a}):(0,tn.jsx)("div",{}),c=i.hideFooterRowCount||i.pagination?null:(0,tn.jsx)(XD,{rowCount:o,visibleRowCount:l}),u=i.pagination&&!i.hideFooterPagination&&i.components.Pagination&&(0,tn.jsx)(i.components.Pagination,(0,Pt.Z)({},null==(n=i.componentsProps)?void 0:n.pagination));return(0,tn.jsxs)(nj,(0,Pt.Z)({ref:t},e,{children:[s,c,u]}))})),ij=t.forwardRef((function(e,t){var n,r,i=rO();return(0,tn.jsxs)("div",(0,Pt.Z)({ref:t},e,{children:[(0,tn.jsx)(i.components.PreferencesPanel,(0,Pt.Z)({},null==(n=i.componentsProps)?void 0:n.preferencesPanel)),i.components.Toolbar&&(0,tn.jsx)(i.components.Toolbar,(0,Pt.Z)({},null==(r=i.componentsProps)?void 0:r.toolbar))]}))})),oj=t.forwardRef((function(e,t){var n,r,i,o=tO(),a=QR(o,VR),l=rO(),s=QR(o,sI),c=o.current.unstable_applyPipeProcessors("preferencePanel",null,null!=(n=s.openedPanelValue)?n:OL.filters);return(0,tn.jsx)(l.components.Panel,(0,Pt.Z)({ref:t,as:l.components.BasePopper,open:a.length>0&&s.open},null==(r=l.componentsProps)?void 0:r.panel,e,null==(i=l.componentsProps)?void 0:i.basePopper,{children:c}))}));function aj(e){return(0,xn.Z)("MuiCircularProgress",e)}(0,rn.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var lj,sj,cj,uj,dj,fj,hj,pj,vj=["className","color","disableShrink","size","style","thickness","value","variant"],mj=44,gj=en(dj||(dj=lj||(lj=Nt(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),yj=en(fj||(fj=sj||(sj=Nt(["\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"])))),bj=(0,Zt.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["color".concat((0,Mn.Z)(n.color))]]}})((function(e){var t=e.ownerState,n=e.theme;return(0,Pt.Z)({display:"inline-block"},"determinate"===t.variant&&{transition:n.transitions.create("transform")},"inherit"!==t.color&&{color:(n.vars||n).palette[t.color].main})}),(function(e){return"indeterminate"===e.ownerState.variant&&Qt(hj||(hj=cj||(cj=Nt(["\n animation: "," 1.4s linear infinite;\n "]))),gj)})),_j=(0,Zt.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:function(e,t){return t.svg}})({display:"block"}),wj=(0,Zt.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:function(e,t){var n=e.ownerState;return[t.circle,t["circle".concat((0,Mn.Z)(n.variant))],n.disableShrink&&t.circleDisableShrink]}})((function(e){var t=e.ownerState,n=e.theme;return(0,Pt.Z)({stroke:"currentColor"},"determinate"===t.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(function(e){var t=e.ownerState;return"indeterminate"===t.variant&&!t.disableShrink&&Qt(pj||(pj=uj||(uj=Nt(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),yj)})),Sj=t.forwardRef((function(e,t){var n=(0,It.Z)({props:e,name:"MuiCircularProgress"}),r=n.className,i=n.color,o=void 0===i?"primary":i,a=n.disableShrink,l=void 0!==a&&a,s=n.size,c=void 0===s?40:s,u=n.style,d=n.thickness,f=void 0===d?3.6:d,p=n.value,v=void 0===p?0:p,g=n.variant,y=void 0===g?"indeterminate":g,b=(0,h.Z)(n,vj),_=(0,Pt.Z)({},n,{color:o,disableShrink:l,size:c,thickness:f,value:v,variant:y}),w=function(e){var t=e.classes,n=e.variant,r=e.color,i=e.disableShrink,o={root:["root",n,"color".concat((0,Mn.Z)(r))],svg:["svg"],circle:["circle","circle".concat((0,Mn.Z)(n)),i&&"circleDisableShrink"]};return(0,Mt.Z)(o,aj,t)}(_),S={},x={},C={};if("determinate"===y){var k=2*Math.PI*((mj-f)/2);S.strokeDasharray=k.toFixed(3),C["aria-valuenow"]=Math.round(v),S.strokeDashoffset="".concat(((100-v)/100*k).toFixed(3),"px"),x.transform="rotate(-90deg)"}return(0,tn.jsx)(bj,(0,Pt.Z)({className:(0,m.Z)(w.root,r),style:(0,Pt.Z)({width:c,height:c},x,u),ownerState:_,ref:t,role:"progressbar"},C,b,{children:(0,tn.jsx)(_j,{className:w.svg,ownerState:_,viewBox:"".concat(22," ").concat(22," ").concat(mj," ").concat(mj),children:(0,tn.jsx)(wj,{className:w.circle,style:S,ownerState:_,cx:mj,cy:mj,r:(mj-f)/2,fill:"none",strokeWidth:f})})}))})),xj=Sj,Cj=["className"],kj=(0,Zt.ZP)("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:function(e,t){return t.overlay}})((function(e){var t=e.theme;return{position:"absolute",top:0,zIndex:4,width:"100%",height:"100%",pointerEvents:"none",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:(0,Lt.Fq)(t.palette.background.default,t.palette.action.disabledOpacity)}})),Ej=t.forwardRef((function(e,t){var n=e.className,r=(0,h.Z)(e,Cj),i=rO(),o=function(e){var t=e.classes;return(0,Mt.Z)({root:["overlay"]},PR,t)}(i);return(0,tn.jsx)(kj,(0,Pt.Z)({ref:t,className:(0,m.Z)(o.root,n),ownerState:i},r))})),Rj=t.forwardRef((function(e,t){return(0,tn.jsx)(Ej,(0,Pt.Z)({ref:t},e,{children:(0,tn.jsx)(xj,{})}))})),Oj=t.forwardRef((function(e,t){var n=tO().current.getLocaleText("noRowsLabel");return(0,tn.jsx)(Ej,(0,Pt.Z)({ref:t},e,{children:n}))}));var Pj=t.createContext();var Tj=t.createContext();function Mj(e){return(0,xn.Z)("MuiTableCell",e)}var Lj=(0,rn.Z)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Zj=["align","className","component","padding","scope","size","sortDirection","variant"],Ij=(0,Zt.ZP)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["size".concat((0,Mn.Z)(n.size))],"normal"!==n.padding&&t["padding".concat((0,Mn.Z)(n.padding))],"inherit"!==n.align&&t["align".concat((0,Mn.Z)(n.align))],n.stickyHeader&&t.stickyHeader]}})((function(e){var t=e.theme,n=e.ownerState;return(0,Pt.Z)({},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,Lt.$n)((0,Lt.Fq)(t.palette.divider,1),.88):(0,Lt._j)((0,Lt.Fq)(t.palette.divider,1),.68)),textAlign:"left",padding:16},"head"===n.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===n.variant&&{color:(t.vars||t).palette.text.primary},"footer"===n.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===n.size&&(0,o.Z)({padding:"6px 16px"},"&.".concat(Lj.paddingCheckbox),{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}),"checkbox"===n.padding&&{width:48,padding:"0 0 0 4px"},"none"===n.padding&&{padding:0},"left"===n.align&&{textAlign:"left"},"center"===n.align&&{textAlign:"center"},"right"===n.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===n.align&&{textAlign:"justify"},n.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})})),Dj=t.forwardRef((function(e,n){var r,i=(0,It.Z)({props:e,name:"MuiTableCell"}),o=i.align,a=void 0===o?"inherit":o,l=i.className,s=i.component,c=i.padding,u=i.scope,d=i.size,f=i.sortDirection,p=i.variant,v=(0,h.Z)(i,Zj),g=t.useContext(Pj),y=t.useContext(Tj),b=y&&"head"===y.variant,_=u;"td"===(r=s||(b?"th":"td"))?_=void 0:!_&&b&&(_="col");var w=p||y&&y.variant,S=(0,Pt.Z)({},i,{align:a,component:r,padding:c||(g&&g.padding?g.padding:"normal"),size:d||(g&&g.size?g.size:"medium"),sortDirection:f,stickyHeader:"head"===w&&g&&g.stickyHeader,variant:w}),x=function(e){var t=e.classes,n=e.variant,r=e.align,i=e.padding,o=e.size,a={root:["root",n,e.stickyHeader&&"stickyHeader","inherit"!==r&&"align".concat((0,Mn.Z)(r)),"normal"!==i&&"padding".concat((0,Mn.Z)(i)),"size".concat((0,Mn.Z)(o))]};return(0,Mt.Z)(a,Mj,t)}(S),C=null;return f&&(C="asc"===f?"ascending":"descending"),(0,tn.jsx)(Ij,(0,Pt.Z)({as:r,ref:n,className:(0,m.Z)(x.root,l),"aria-sort":C,scope:_,ownerState:S},v))})),jj=Dj;function Aj(e){return(0,xn.Z)("MuiToolbar",e)}(0,rn.Z)("MuiToolbar",["root","gutters","regular","dense"]);var Nj,Fj,zj,Bj,Hj,Wj,Uj,Vj,qj=["className","component","disableGutters","variant"],Kj=(0,Zt.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,Pt.Z)({position:"relative",display:"flex",alignItems:"center"},!n.disableGutters&&(0,o.Z)({paddingLeft:t.spacing(2),paddingRight:t.spacing(2)},t.breakpoints.up("sm"),{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}),"dense"===n.variant&&{minHeight:48})}),(function(e){var t=e.theme;return"regular"===e.ownerState.variant&&t.mixins.toolbar})),Yj=t.forwardRef((function(e,t){var n=(0,It.Z)({props:e,name:"MuiToolbar"}),r=n.className,i=n.component,o=void 0===i?"div":i,a=n.disableGutters,l=void 0!==a&&a,s=n.variant,c=void 0===s?"regular":s,u=(0,h.Z)(n,qj),d=(0,Pt.Z)({},n,{component:o,disableGutters:l,variant:c}),f=function(e){var t=e.classes,n={root:["root",!e.disableGutters&&"gutters",e.variant]};return(0,Mt.Z)(n,Aj,t)}(d);return(0,tn.jsx)(Kj,(0,Pt.Z)({as:o,className:(0,m.Z)(f.root,r),ref:t,ownerState:d},u))})),Gj=Yj,Xj=(0,Bx.Z)((0,tn.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),$j=(0,Bx.Z)((0,tn.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),Jj=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],Qj=t.forwardRef((function(e,t){var n=e.backIconButtonProps,r=e.count,i=e.getItemAriaLabel,o=e.nextIconButtonProps,a=e.onPageChange,l=e.page,s=e.rowsPerPage,c=e.showFirstButton,u=e.showLastButton,d=(0,h.Z)(e,Jj),f=qn();return(0,tn.jsxs)("div",(0,Pt.Z)({ref:t},d,{children:[c&&(0,tn.jsx)(R_,{onClick:function(e){a(e,0)},disabled:0===l,"aria-label":i("first",l),title:i("first",l),children:"rtl"===f.direction?Nj||(Nj=(0,tn.jsx)(hR,{})):Fj||(Fj=(0,tn.jsx)(fR,{}))}),(0,tn.jsx)(R_,(0,Pt.Z)({onClick:function(e){a(e,l-1)},disabled:0===l,color:"inherit","aria-label":i("previous",l),title:i("previous",l)},n,{children:"rtl"===f.direction?zj||(zj=(0,tn.jsx)($j,{})):Bj||(Bj=(0,tn.jsx)(Xj,{}))})),(0,tn.jsx)(R_,(0,Pt.Z)({onClick:function(e){a(e,l+1)},disabled:-1!==r&&l>=Math.ceil(r/s)-1,color:"inherit","aria-label":i("next",l),title:i("next",l)},o,{children:"rtl"===f.direction?Hj||(Hj=(0,tn.jsx)(Xj,{})):Wj||(Wj=(0,tn.jsx)($j,{}))})),u&&(0,tn.jsx)(R_,{onClick:function(e){a(e,Math.max(0,Math.ceil(r/s)-1))},disabled:l>=Math.ceil(r/s)-1,"aria-label":i("last",l),title:i("last",l),children:"rtl"===f.direction?Uj||(Uj=(0,tn.jsx)(fR,{})):Vj||(Vj=(0,tn.jsx)(hR,{}))})]}))})),eA=Qj;function tA(e){return(0,xn.Z)("MuiTablePagination",e)}var nA,rA=(0,rn.Z)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),iA=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],oA=(0,Zt.ZP)(jj,{name:"MuiTablePagination",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return{overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}}})),aA=(0,Zt.ZP)(Gj,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:function(e,t){return(0,Pt.Z)((0,o.Z)({},"& .".concat(rA.actions),t.actions),t.toolbar)}})((function(e){var t,n=e.theme;return t={minHeight:52,paddingRight:2},(0,o.Z)(t,"".concat(n.breakpoints.up("xs")," and (orientation: landscape)"),{minHeight:52}),(0,o.Z)(t,n.breakpoints.up("sm"),{minHeight:52,paddingRight:2}),(0,o.Z)(t,"& .".concat(rA.actions),{flexShrink:0,marginLeft:20}),t})),lA=(0,Zt.ZP)("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:function(e,t){return t.spacer}})({flex:"1 1 100%"}),sA=(0,Zt.ZP)("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:function(e,t){return t.selectLabel}})((function(e){var t=e.theme;return(0,Pt.Z)({},t.typography.body2,{flexShrink:0})})),cA=(0,Zt.ZP)(Gx,{name:"MuiTablePagination",slot:"Select",overridesResolver:function(e,t){var n;return(0,Pt.Z)((n={},(0,o.Z)(n,"& .".concat(rA.selectIcon),t.selectIcon),(0,o.Z)(n,"& .".concat(rA.select),t.select),n),t.input,t.selectRoot)}})((0,o.Z)({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8},"& .".concat(rA.select),{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"})),uA=(0,Zt.ZP)(BE,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:function(e,t){return t.menuItem}})({}),dA=(0,Zt.ZP)("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:function(e,t){return t.displayedRows}})((function(e){var t=e.theme;return(0,Pt.Z)({},t.typography.body2,{flexShrink:0})}));function fA(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"\u2013").concat(n," of ").concat(-1!==r?r:"more than ".concat(n))}function hA(e){return"Go to ".concat(e," page")}var pA=t.forwardRef((function(e,n){var r,i=(0,It.Z)({props:e,name:"MuiTablePagination"}),o=i.ActionsComponent,a=void 0===o?eA:o,l=i.backIconButtonProps,s=i.className,c=i.colSpan,u=i.component,d=void 0===u?jj:u,f=i.count,p=i.getItemAriaLabel,v=void 0===p?hA:p,g=i.labelDisplayedRows,y=void 0===g?fA:g,b=i.labelRowsPerPage,_=void 0===b?"Rows per page:":b,w=i.nextIconButtonProps,S=i.onPageChange,x=i.onRowsPerPageChange,C=i.page,k=i.rowsPerPage,E=i.rowsPerPageOptions,R=void 0===E?[10,25,50,100]:E,O=i.SelectProps,P=void 0===O?{}:O,T=i.showFirstButton,M=void 0!==T&&T,L=i.showLastButton,Z=void 0!==L&&L,I=(0,h.Z)(i,iA),D=i,j=function(e){var t=e.classes;return(0,Mt.Z)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},tA,t)}(D),A=P.native?"option":uA;d!==jj&&"td"!==d||(r=c||1e3);var N=(0,eo.Z)(P.id),F=(0,eo.Z)(P.labelId);return(0,tn.jsx)(oA,(0,Pt.Z)({colSpan:r,ref:n,as:d,ownerState:D,className:(0,m.Z)(j.root,s)},I,{children:(0,tn.jsxs)(aA,{className:j.toolbar,children:[(0,tn.jsx)(lA,{className:j.spacer}),R.length>1&&(0,tn.jsx)(sA,{className:j.selectLabel,id:F,children:_}),R.length>1&&(0,tn.jsx)(cA,(0,Pt.Z)({variant:"standard"},!P.variant&&{input:nA||(nA=(0,tn.jsx)(nw,{}))},{value:k,onChange:x,id:N,labelId:F},P,{classes:(0,Pt.Z)({},P.classes,{root:(0,m.Z)(j.input,j.selectRoot,(P.classes||{}).root),select:(0,m.Z)(j.select,(P.classes||{}).select),icon:(0,m.Z)(j.selectIcon,(P.classes||{}).icon)}),children:R.map((function(e){return(0,t.createElement)(A,(0,Pt.Z)({},!Hn(A)&&{ownerState:D},{className:j.menuItem,key:e.label?e.label:e,value:e.value?e.value:e}),e.label?e.label:e)}))})),(0,tn.jsx)(dA,{className:j.displayedRows,children:y({from:0===f?0:C*k+1,to:-1===f?(C+1)*k:-1===k?f:Math.min(f,(C+1)*k),count:-1===f?-1:f,page:C})}),(0,tn.jsx)(a,{className:j.actions,backIconButtonProps:l,count:f,nextIconButtonProps:w,onPageChange:S,page:C,rowsPerPage:k,showFirstButton:M,showLastButton:Z,getItemAriaLabel:v})]})}))})),vA=pA,mA=(0,Zt.ZP)(vA)((function(e){var t,n=e.theme;return t={},(0,o.Z)(t,"& .".concat(rA.selectLabel),(0,o.Z)({display:"none"},n.breakpoints.up("sm"),{display:"block"})),(0,o.Z)(t,"& .".concat(rA.input),(0,o.Z)({display:"none"},n.breakpoints.up("sm"),{display:"inline-flex"})),t})),gA=t.forwardRef((function(e,n){var r,i=tO(),o=rO(),a=QR(i,rZ),l=t.useMemo((function(){return Math.floor(a.rowCount/(a.pageSize||1))}),[a.rowCount,a.pageSize]),s=t.useCallback((function(e){var t=Number(e.target.value);i.current.setPageSize(t)}),[i]),c=t.useCallback((function(e,t){i.current.setPage(t)}),[i]);return(0,tn.jsx)(mA,(0,Pt.Z)({ref:n,component:"div",count:a.rowCount,page:a.page<=l?a.page:l,rowsPerPageOptions:null!=(r=o.rowsPerPageOptions)&&r.includes(a.pageSize)?o.rowsPerPageOptions:[],rowsPerPage:a.pageSize,onPageChange:c,onRowsPerPageChange:s},i.current.getLocaleText("MuiTablePagination"),e))})),yA=["className"],bA=function(e){var t=e.classes;return(0,Mt.Z)({root:["panelContent"]},PR,t)},_A=(0,Zt.ZP)("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:function(e,t){return t.panelContent}})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function wA(e){var t=e.className,n=(0,h.Z)(e,yA),r=rO(),i=bA(r);return(0,tn.jsx)(_A,(0,Pt.Z)({className:(0,m.Z)(t,i.root),ownerState:r},n))}var SA=["className"],xA=function(e){var t=e.classes;return(0,Mt.Z)({root:["panelFooter"]},PR,t)},CA=(0,Zt.ZP)("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:function(e,t){return t.panelFooter}})((function(e){return{padding:e.theme.spacing(.5),display:"flex",justifyContent:"space-between"}}));function kA(e){var t=e.className,n=(0,h.Z)(e,SA),r=rO(),i=xA(r);return(0,tn.jsx)(CA,(0,Pt.Z)({className:(0,m.Z)(t,i.root),ownerState:r},n))}var EA=["className","slotProps"],RA=(0,Zt.ZP)("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:function(e,t){return t.panelWrapper}})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),OA=function(){return!0},PA=t.forwardRef((function(e,t){var n=e.className,r=e.slotProps,i=void 0===r?{}:r,o=(0,h.Z)(e,EA),a=rO(),l=function(e){var t=e.classes;return(0,Mt.Z)({root:["panelWrapper"]},PR,t)}(a);return(0,tn.jsx)(ZS,(0,Pt.Z)({open:!0,disableEnforceFocus:!0,isEnabled:OA},i.TrapFocus,{children:(0,tn.jsx)(RA,(0,Pt.Z)({ref:t,tabIndex:-1,className:(0,m.Z)(n,l.root),ownerState:a},o))}))})),TA=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","linkOperators","columnsSort","deleteIconProps","linkOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],MA=["InputComponentProps"],LA=(0,Zt.ZP)("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:function(e,t){return t.filterForm}})((function(e){return{display:"flex",padding:e.theme.spacing(1)}})),ZA=(0,Zt.ZP)(Vw,{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:function(e,t){return t.filterFormDeleteIcon}})((function(e){var t=e.theme;return{flexShrink:0,justifyContent:"flex-end",marginRight:t.spacing(.5),marginBottom:t.spacing(.2)}})),IA=(0,Zt.ZP)(Vw,{name:"MuiDataGrid",slot:"FilterFormLinkOperatorInput",overridesResolver:function(e,t){return t.filterFormLinkOperatorInput}})({minWidth:55,marginRight:5,justifyContent:"end"}),DA=(0,Zt.ZP)(Vw,{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:function(e,t){return t.filterFormColumnInput}})({width:150}),jA=(0,Zt.ZP)(Vw,{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:function(e,t){return t.filterFormOperatorInput}})({width:120}),AA=(0,Zt.ZP)(Vw,{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:function(e,t){return t.filterFormValueInput}})({width:190}),NA=function(e){switch(e){case OZ.And:return"filterPanelOperatorAnd";case OZ.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `linkOperator` property in the `GridFilterPanel`.")}},FA=function(e){return e.headerName||e.field},zA=new Intl.Collator,BA=t.forwardRef((function(e,n){var r,i,o,a,l,s,c,u=e.item,d=e.hasMultipleFilters,f=e.deleteFilter,p=e.applyFilterChanges,v=e.multiFilterOperator,g=e.showMultiFilterOperators,y=e.disableMultiFilterOperator,b=e.applyMultiFilterOperatorChanges,_=e.focusElementRef,w=e.linkOperators,S=void 0===w?[OZ.And,OZ.Or]:w,x=e.columnsSort,C=e.deleteIconProps,k=void 0===C?{}:C,E=e.linkOperatorInputProps,R=void 0===E?{}:E,O=e.operatorInputProps,P=void 0===O?{}:O,T=e.columnInputProps,M=void 0===T?{}:T,L=e.valueInputProps,Z=void 0===L?{}:L,I=(0,h.Z)(e,TA),D=tO(),j=QR(D,XR),A=(0,eo.Z)(),N=(0,eo.Z)(),F=(0,eo.Z)(),z=(0,eo.Z)(),B=rO(),H=function(e){var t=e.classes;return(0,Mt.Z)({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],linkOperatorInput:["filterFormLinkOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},PR,t)}(B),W=t.useRef(null),U=t.useRef(null),V=d&&S.length>0,q=(null==(r=B.componentsProps)?void 0:r.baseFormControl)||{},K=null==(o=((null==(i=B.componentsProps)?void 0:i.baseSelect)||{}).native)||o,Y=K?"option":BE,G=Z.InputComponentProps,X=(0,h.Z)(Z,MA),$=t.useMemo((function(){switch(x){case"asc":return j.sort((function(e,t){return zA.compare(FA(e),FA(t))}));case"desc":return j.sort((function(e,t){return-zA.compare(FA(e),FA(t))}));default:return j}}),[j,x]),J=u.columnField?D.current.getColumn(u.columnField):null,Q=t.useMemo((function(){var e;return u.operatorValue&&J?null==(e=J.filterOperators)?void 0:e.find((function(e){return e.value===u.operatorValue})):null}),[u,J]),ee=t.useCallback((function(e){var t=e.target.value,n=D.current.getColumn(t);if(n.field!==J.field){var r=n.filterOperators.find((function(e){return e.value===u.operatorValue}))||n.filterOperators[0],i=!r.InputComponent||r.InputComponent!==(null==Q?void 0:Q.InputComponent);p((0,Pt.Z)({},u,{columnField:t,operatorValue:r.value,value:i?void 0:u.value}))}}),[D,p,u,J,Q]),te=t.useCallback((function(e){var t=e.target.value,n=null==J?void 0:J.filterOperators.find((function(e){return e.value===t})),r=!(null!=n&&n.InputComponent)||(null==n?void 0:n.InputComponent)!==(null==Q?void 0:Q.InputComponent);p((0,Pt.Z)({},u,{operatorValue:t,value:r?void 0:u.value}))}),[p,u,J,Q]),ne=t.useCallback((function(e){var t=e.target.value===OZ.And.toString()?OZ.And:OZ.Or;b(t)}),[b]);return t.useImperativeHandle(_,(function(){return{focus:function(){var e;null!=Q&&Q.InputComponent?null==W||null==(e=W.current)||e.focus():U.current.focus()}}}),[Q]),(0,tn.jsxs)(LA,(0,Pt.Z)({ref:n,className:H.root,ownerState:B},I,{children:[(0,tn.jsx)(ZA,(0,Pt.Z)({variant:"standard",as:B.components.BaseFormControl},q,k,{className:(0,m.Z)(H.deleteIcon,q.className,k.className),ownerState:B,children:(0,tn.jsx)(R_,{"aria-label":D.current.getLocaleText("filterPanelDeleteIconLabel"),title:D.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:function(){B.disableMultipleColumnsFiltering?void 0===u.value?f(u):p((0,Pt.Z)({},u,{value:void 0})):f(u)},size:"small",children:(0,tn.jsx)(B.components.FilterPanelDeleteIcon,{fontSize:"small"})})})),(0,tn.jsx)(IA,(0,Pt.Z)({variant:"standard",as:B.components.BaseFormControl},q,R,{sx:(0,Pt.Z)({display:V?"flex":"none",visibility:g?"visible":"hidden"},q.sx||{},R.sx||{}),className:(0,m.Z)(H.linkOperatorInput,q.className,R.className),ownerState:B,children:(0,tn.jsx)(B.components.BaseSelect,(0,Pt.Z)({inputProps:{"aria-label":D.current.getLocaleText("filterPanelLinkOperator")},value:v,onChange:ne,disabled:!!y||1===S.length,native:K},null==(a=B.componentsProps)?void 0:a.baseSelect,{children:S.map((function(e){return(0,tn.jsx)(Y,{value:e.toString(),children:D.current.getLocaleText(NA(e))},e.toString())}))}))})),(0,tn.jsxs)(DA,(0,Pt.Z)({variant:"standard",as:B.components.BaseFormControl},q,M,{className:(0,m.Z)(H.columnInput,q.className,M.className),ownerState:B,children:[(0,tn.jsx)(Fw,{htmlFor:A,id:N,children:D.current.getLocaleText("filterPanelColumns")}),(0,tn.jsx)(B.components.BaseSelect,(0,Pt.Z)({labelId:N,id:A,label:D.current.getLocaleText("filterPanelColumns"),value:u.columnField||"",onChange:ee,native:K},null==(l=B.componentsProps)?void 0:l.baseSelect,{children:$.map((function(e){return(0,tn.jsx)(Y,{value:e.field,children:FA(e)},e.field)}))}))]})),(0,tn.jsxs)(jA,(0,Pt.Z)({variant:"standard",as:B.components.BaseFormControl},q,P,{className:(0,m.Z)(H.operatorInput,q.className,P.className),ownerState:B,children:[(0,tn.jsx)(Fw,{htmlFor:F,id:z,children:D.current.getLocaleText("filterPanelOperators")}),(0,tn.jsx)(B.components.BaseSelect,(0,Pt.Z)({labelId:z,label:D.current.getLocaleText("filterPanelOperators"),id:F,value:u.operatorValue,onChange:te,native:K,inputRef:U},null==(s=B.componentsProps)?void 0:s.baseSelect,{children:null==J||null==(c=J.filterOperators)?void 0:c.map((function(e){return(0,tn.jsx)(Y,{value:e.value,children:e.label||D.current.getLocaleText("filterOperator".concat((0,Mn.Z)(e.value)))},e.value)}))}))]})),(0,tn.jsx)(AA,(0,Pt.Z)({variant:"standard",as:B.components.BaseFormControl},q,X,{className:(0,m.Z)(H.valueInput,q.className,X.className),ownerState:B,children:null!=Q&&Q.InputComponent?(0,tn.jsx)(Q.InputComponent,(0,Pt.Z)({apiRef:D,item:u,applyValue:p,focusElementRef:W},Q.InputComponentProps,G)):null}))]}))})),HA=["linkOperators","columnsSort","filterFormProps","children"],WA=t.forwardRef((function(e,n){var r,i=tO(),o=rO(),a=QR(i,HO),l=QR(i,XR),s=t.useRef(null),c=e.linkOperators,u=void 0===c?[OZ.And,OZ.Or]:c,d=e.columnsSort,f=e.filterFormProps,p=(0,h.Z)(e,HA),m=t.useCallback((function(e){i.current.upsertFilterItem(e)}),[i]),g=t.useCallback((function(e){i.current.setFilterLinkOperator(e)}),[i]),y=t.useCallback((function(){var e=l.find((function(e){var t;return null==(t=e.filterOperators)?void 0:t.length}));return e?{columnField:e.field,operatorValue:e.filterOperators[0].value,id:Math.round(1e5*Math.random())}:null}),[l]),b=t.useMemo((function(){if(a.items.length)return a.items;var e=y();return e?[e]:[]}),[a.items,y]),_=b.length>1,w=t.useCallback((function(e){var t=1===b.length;i.current.deleteFilterItem(e),t&&i.current.hideFilterPanel()}),[i,b.length]);return t.useEffect((function(){u.length>0&&a.linkOperator&&!u.includes(a.linkOperator)&&g(u[0])}),[u,g,a.linkOperator]),t.useEffect((function(){b.length>0&&s.current.focus()}),[b.length]),(0,tn.jsxs)(PA,(0,Pt.Z)({ref:n},p,{children:[(0,tn.jsx)(wA,{children:b.map((function(e,t){return(0,tn.jsx)(BA,(0,Pt.Z)({item:e,applyFilterChanges:m,deleteFilter:w,hasMultipleFilters:_,showMultiFilterOperators:t>0,multiFilterOperator:a.linkOperator,disableMultiFilterOperator:1!==t,applyMultiFilterOperatorChanges:g,focusElementRef:t===b.length-1?s:null,linkOperators:u,columnsSort:d},f),null==e.id?t:e.id)}))}),!o.disableMultipleColumnsFiltering&&(0,tn.jsx)(kA,{children:(0,tn.jsx)(o.components.BaseButton,(0,Pt.Z)({onClick:function(){var e=y();e&&i.current.upsertFilterItems([].concat((0,v.Z)(b),[e]))},startIcon:(0,tn.jsx)(tT,{})},null==(r=o.componentsProps)?void 0:r.baseButton,{children:i.current.getLocaleText("filterPanelAddFilter")}))})]}))})),UA=n(7416),VA=["sx"],qA=function(e){var t,n,r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:UA.Z;return Object.keys(e).forEach((function(t){i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function KA(e){return(0,xn.Z)("MuiTypography",e)}(0,rn.Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var YA=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],GA=(0,Zt.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t["align".concat((0,Mn.Z)(n.align))],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((function(e){var t=e.theme,n=e.ownerState;return(0,Pt.Z)({margin:0},n.variant&&t.typography[n.variant],"inherit"!==n.align&&{textAlign:n.align},n.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n.gutterBottom&&{marginBottom:"0.35em"},n.paragraph&&{marginBottom:16})})),XA={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},$A={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},JA=t.forwardRef((function(e,t){var n=(0,It.Z)({props:e,name:"MuiTypography"}),r=function(e){return $A[e]||e}(n.color),i=function(e){var t,n=e.sx,r=(0,h.Z)(e,VA),i=qA(r),o=i.systemProps,a=i.otherProps;return t=Array.isArray(n)?[o].concat((0,v.Z)(n)):"function"===typeof n?function(){var e=n.apply(void 0,arguments);return(0,P_.P)(e)?(0,Pt.Z)({},o,e):o}:(0,Pt.Z)({},o,n),(0,Pt.Z)({},a,{sx:t})}((0,Pt.Z)({},n,{color:r})),o=i.align,a=void 0===o?"inherit":o,l=i.className,s=i.component,c=i.gutterBottom,u=void 0!==c&&c,d=i.noWrap,f=void 0!==d&&d,p=i.paragraph,g=void 0!==p&&p,y=i.variant,b=void 0===y?"body1":y,_=i.variantMapping,w=void 0===_?XA:_,S=(0,h.Z)(i,YA),x=(0,Pt.Z)({},i,{align:a,color:r,className:l,component:s,gutterBottom:u,noWrap:f,paragraph:g,variant:b,variantMapping:w}),C=s||(g?"p":w[b]||XA[b])||"span",k=function(e){var t=e.align,n=e.gutterBottom,r=e.noWrap,i=e.paragraph,o=e.variant,a=e.classes,l={root:["root",o,"inherit"!==e.align&&"align".concat((0,Mn.Z)(t)),n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return(0,Mt.Z)(l,KA,a)}(x);return(0,tn.jsx)(GA,(0,Pt.Z)({as:C,ref:t,ownerState:x,className:(0,m.Z)(k.root,l)},S))})),QA=JA;function eN(e){return(0,xn.Z)("MuiFormControlLabel",e)}var tN=(0,rn.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]),nN=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","slotProps","value"],rN=(0,Zt.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[(0,o.Z)({},"& .".concat(tN.label),t.label),t.root,t["labelPlacement".concat((0,Mn.Z)(n.labelPlacement))]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,Pt.Z)((0,o.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16},"&.".concat(tN.disabled),{cursor:"default"}),"start"===n.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===n.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===n.labelPlacement&&{flexDirection:"column",marginLeft:16},(0,o.Z)({},"& .".concat(tN.label),(0,o.Z)({},"&.".concat(tN.disabled),{color:(t.vars||t).palette.text.disabled})))})),iN=t.forwardRef((function(e,n){var r,i=(0,It.Z)({props:e,name:"MuiFormControlLabel"}),o=i.className,a=i.componentsProps,l=void 0===a?{}:a,s=i.control,c=i.disabled,u=i.disableTypography,d=i.label,f=i.labelPlacement,p=void 0===f?"end":f,v=i.slotProps,g=void 0===v?{}:v,y=(0,h.Z)(i,nN),b=B_(),_=c;"undefined"===typeof _&&"undefined"!==typeof s.props.disabled&&(_=s.props.disabled),"undefined"===typeof _&&b&&(_=b.disabled);var w={disabled:_};["checked","name","onChange","value","inputRef"].forEach((function(e){"undefined"===typeof s.props[e]&&"undefined"!==typeof i[e]&&(w[e]=i[e])}));var S=F_({props:i,muiFormControl:b,states:["error"]}),x=(0,Pt.Z)({},i,{disabled:_,labelPlacement:p,error:S.error}),C=function(e){var t=e.classes,n=e.disabled,r=e.labelPlacement,i=e.error,o={root:["root",n&&"disabled","labelPlacement".concat((0,Mn.Z)(r)),i&&"error"],label:["label",n&&"disabled"]};return(0,Mt.Z)(o,eN,t)}(x),k=null!=(r=g.typography)?r:l.typography,E=d;return null==E||E.type===QA||u||(E=(0,tn.jsx)(QA,(0,Pt.Z)({component:"span"},k,{className:(0,m.Z)(C.label,null==k?void 0:k.className),children:E}))),(0,tn.jsxs)(rN,(0,Pt.Z)({className:(0,m.Z)(C.root,o),ownerState:x,ref:n},y,{children:[t.cloneElement(s,w),E]}))})),oN=["className"],aN=function(e){var t=e.classes;return(0,Mt.Z)({root:["panelHeader"]},PR,t)},lN=(0,Zt.ZP)("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:function(e,t){return t.panelHeader}})((function(e){return{padding:e.theme.spacing(1)}}));function sN(e){var t=e.className,n=(0,h.Z)(e,oN),r=rO(),i=aN(r);return(0,tn.jsx)(lN,(0,Pt.Z)({className:(0,m.Z)(t,i.root),ownerState:r},n))}var cN=!1,uN=["sort","searchPredicate","autoFocusSearchField"],dN=function(e){var t=e.classes;return(0,Mt.Z)({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},PR,t)},fN=(0,Zt.ZP)("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:function(e,t){return t.columnsPanel}})({padding:"8px 0px 8px 8px"}),hN=(0,Zt.ZP)("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:function(e,t){return t.columnsPanelRow}})((function(e){var t=e.theme;return(0,o.Z)({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px"},"& .".concat(GE.root),{marginRight:t.spacing(.5)})})),pN=(0,Zt.ZP)(R_)({justifyContent:"flex-end"}),vN=new Intl.Collator,mN=function(e,t){return(e.headerName||e.field).toLowerCase().indexOf(t)>-1};var gN=["children","className","classes"],yN=(0,rn.Z)("MuiDataGrid",["panel","paper"]),bN=(0,Zt.ZP)(Qi,{name:"MuiDataGrid",slot:"Panel",overridesResolver:function(e,t){return t.panel}})((function(e){return{zIndex:e.theme.zIndex.modal}})),_N=(0,Zt.ZP)(bS,{name:"MuiDataGrid",slot:"Paper",overridesResolver:function(e,t){return t.paper}})((function(e){return{backgroundColor:e.theme.palette.background.paper,minWidth:300,maxHeight:450,display:"flex"}})),wN=t.forwardRef((function(e,n){var r,i=e.children,o=e.className,a=(0,h.Z)(e,gN),l=tO(),s=rO(),c=yN,d=t.useState(!1),f=(0,u.Z)(d,2),p=f[0],v=f[1],g=t.useCallback((function(){l.current.hidePreferences()}),[l]),y=t.useCallback((function(e){zM(e.key)&&l.current.hidePreferences()}),[l]),b=t.useMemo((function(){return[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:function(){v(!0)},effect:function(){return function(){v(!1)}}}]}),[]),_=null==(r=l.current.columnHeadersContainerElementRef)?void 0:r.current;return _?(0,tn.jsx)(bN,(0,Pt.Z)({ref:n,placement:"bottom-start",className:(0,m.Z)(o,c.panel),ownerState:s,anchorEl:_,modifiers:b},a,{children:(0,tn.jsx)(vL,{mouseEvent:"onMouseUp",onClickAway:g,children:(0,tn.jsx)(_N,{className:c.paper,ownerState:s,elevation:8,onKeyDown:y,children:p&&i})})})):null})),SN=["selected","rowId","row","index","style","position","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","cellFocus","cellTabIndex","editRowsState","isLastVisible","onClick","onDoubleClick","onMouseEnter","onMouseLeave"],xN=["changeReason"],CN=function(e){var t=e.width;if(!t)return null;var n={width:t};return(0,tn.jsx)("div",{className:"MuiDataGrid-cell",style:n})},kN=t.forwardRef((function(e,n){var r,i=e.selected,o=e.rowId,a=e.row,l=e.index,s=e.style,c=e.position,d=e.rowHeight,f=e.className,p=e.visibleColumns,g=e.renderedColumns,y=e.containerWidth,b=e.firstColumnToRender,_=e.cellFocus,w=e.cellTabIndex,S=e.editRowsState,x=e.isLastVisible,C=void 0!==x&&x,k=e.onClick,E=e.onDoubleClick,R=e.onMouseEnter,O=e.onMouseLeave,P=(0,h.Z)(e,SN),T=tO(),M=t.useRef(null),L=rO(),Z=VZ(T,L),I=QR(T,GR),D=QR(T,FO),j=QR(T,bO),A=QR(T,sO),N=(0,Dt.Z)(M,n),F=l+A+2,z=null!=(r=T.current.getRootDimensions())?r:{hasScrollX:!1,hasScrollY:!1},B=z.hasScrollX,H=z.hasScrollY,W=function(e){var t=e.editable,n=e.editing,r=e.selected,i=e.isLastVisible,o=e.rowHeight,a=e.classes,l={root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",i&&"row--lastVisible","auto"===o&&"row--dynamicHeight"]};return(0,Mt.Z)(l,PR,a)}({selected:i,isLastVisible:C,classes:L.classes,editing:T.current.getRowMode(o)===YM.Edit,editable:L.editMode===qM.Row,rowHeight:d});t.useLayoutEffect((function(){"auto"===d&&M.current&&"undefined"===typeof ResizeObserver&&T.current.unstable_storeRowHeightMeasurement(o,M.current.clientHeight,c)}),[T,d,o,c]),t.useLayoutEffect((function(){if(Z.range){var e=T.current.getRowIndexRelativeToVisibleRows(o);null!=e&&T.current.unstable_setLastMeasuredRowIndex(e)}var t=M.current;if(t&&!("auto"!==d)&&"undefined"!==typeof ResizeObserver){var n=new ResizeObserver((function(e){var t=(0,u.Z)(e,1)[0],n=t.borderBoxSize&&t.borderBoxSize.length>0?t.borderBoxSize[0].blockSize:t.contentRect.height;T.current.unstable_storeRowHeightMeasurement(o,n,c)}));return n.observe(t),function(){return n.disconnect()}}}),[T,Z.range,l,d,o,c]);var U=t.useCallback((function(e,t){return function(n){(1!==n.target.nodeType||n.currentTarget.contains(n.target))&&T.current.getRow(o)&&(T.current.publishEvent(e,T.current.getRowParams(o),n),t&&t(n))}}),[T,o]),V=t.useCallback((function(e){var t=MI(e.target,TR.cell),n=null==t?void 0:t.getAttribute("data-field");if(n){if(n===hZ.field)return;if(n===KZ)return;if("__reorder__"===n)return;if(T.current.getCellMode(o,n)===KM.Edit)return;if(T.current.getColumn(n).type===SL)return}U("rowClick",k)(e)}),[T,k,U,o]),q=t.useCallback((function(e,t){var n,r=T.current.getCellParams(o,e.field),i=[],l=L.disableColumnReorder&&e.disableReorder||!L.rowReordering&&!!D.length&&j>1&&Object.keys(S).length>0;e.cellClassName&&i.push((0,m.Z)("function"===typeof e.cellClassName?e.cellClassName(r):e.cellClassName));var s,c=S[o]?S[o][e.field]:null,u=null;null==c&&e.renderCell&&(u=e.renderCell((0,Pt.Z)({},r,{api:T.current})),i.push((0,m.Z)(TR["cell--withRenderer"],null==(s=L.classes)?void 0:s["cell--withRenderer"])));if(null!=c&&e.renderEditCell){var f,p=a;T.current.unstable_getRowWithUpdatedValues&&(p=T.current.unstable_getRowWithUpdatedValues(o,e.field));var v=(0,h.Z)(c,xN),g=(0,Pt.Z)({},r,{row:p},v,{api:T.current});u=e.renderEditCell(g),i.push((0,m.Z)(TR["cell--editing"],null==(f=L.classes)?void 0:f["cell--editing"]))}L.getCellClassName&&i.push(L.getCellClassName(r));var y=null!==_&&_.id===o&&_.field===e.field,b=null!==w&&w.id===o&&w.field===e.field&&"view"===r.cellMode?0:-1;return(0,tn.jsx)(L.components.Cell,(0,Pt.Z)({value:r.value,field:e.field,width:t.width,rowId:o,height:d,showRightBorder:t.showRightBorder,formattedValue:r.formattedValue,align:e.align||"left",cellMode:r.cellMode,colIndex:t.indexRelativeToAllColumns,isEditable:r.isEditable,hasFocus:y,tabIndex:b,className:(0,m.Z)(i),colSpan:t.colSpan,disableDragEvents:l},null==(n=L.componentsProps)?void 0:n.cell,{children:u}),e.field)}),[T,w,S,_,L,a,d,o,j,D.length]),K=T.current.unstable_getRowInternalSizes(o),Y=d;if("auto"===Y&&K){var G=0,X=Object.entries(K).reduce((function(e,t){var n=(0,u.Z)(t,2),r=n[0],i=n[1];return/^base[A-Z]/.test(r)?(G+=1,i>e?i:e):e}),0);X>0&&G>1&&(Y=X)}var $=(0,Pt.Z)({},s,{maxHeight:"auto"===d?"none":d,minHeight:Y});null!=K&&K.spacingTop&&($["border"===L.rowSpacingType?"borderTopWidth":"marginTop"]=K.spacingTop);if(null!=K&&K.spacingBottom){var J="border"===L.rowSpacingType?"borderBottomWidth":"marginBottom",Q=$[J];"number"!==typeof Q&&(Q=parseInt(Q||"0",10)),Q+=K.spacingBottom,$[J]=Q}var ee=T.current.unstable_applyPipeProcessors("rowClassName",[],o);if("function"===typeof L.getRowClassName){var te,ne=l-((null==(te=Z.range)?void 0:te.firstRowIndex)||0),re=(0,Pt.Z)({},T.current.getRowParams(o),{isFirstVisible:0===ne,isLastVisible:ne===Z.rows.length-1,indexRelativeToCurrentPage:ne});ee.push(L.getRowClassName(re))}for(var ie=cP(1e4,20,80),oe=[],ae=0;ae<g.length;ae+=1){var le=g[ae],se=b+ae,ce=se===p.length-1,ue=ce?!(ce&&B&&!H)&&L.disableExtendRowFullWidth:L.showCellRightBorder,de=T.current.unstable_getCellColSpanInfo(o,se);if(de&&!de.spannedByColSpan)if(a){var fe=de.cellProps,he=fe.colSpan,pe={width:fe.width,colSpan:he,showRightBorder:ue,indexRelativeToAllColumns:se};oe.push(q(le,pe))}else{var ve=de.cellProps.width,me=Math.round(ie());oe.push((0,tn.jsx)(L.components.SkeletonCell,{width:ve,contentWidth:me,field:le.field,align:le.align},le.field))}}var ge=y-I,ye=a?{onClick:V,onDoubleClick:U("rowDoubleClick",E),onMouseEnter:U("rowMouseEnter",R),onMouseLeave:U("rowMouseLeave",O)}:null;return(0,tn.jsxs)("div",(0,Pt.Z)({ref:N,"data-id":o,"data-rowindex":l,role:"row",className:m.Z.apply(void 0,(0,v.Z)(ee).concat([W.root,f])),"aria-rowindex":F,"aria-selected":i,style:$},ye,P,{children:[oe,ge>0&&(0,tn.jsx)(CN,{width:ge})]}))})),EN=["sortingOrder"],RN=t.memo((function(e){var t=e.sortingOrder,n=(0,h.Z)(e,EN),r=rO(),i="asc"===(0,u.Z)(t,1)[0]?r.components.ColumnSortedAscendingIcon:r.components.ColumnSortedDescendingIcon;return i?(0,tn.jsx)(i,(0,Pt.Z)({},n)):null})),ON=["error","hasError","errorInfo"],PN=t.forwardRef((function(e,t){var n=e.error,r=(0,h.Z)(e,ON),i=tO(),o=i.current.getLocaleText("errorOverlayDefaultLabel"),a=QR(i,aO);return(0,tn.jsx)(Ej,(0,Pt.Z)({ref:t,sx:{width:"100%",minHeight:2*a}},r,{children:(null==n?void 0:n.message)||o}))})),TN=t.forwardRef((function(e,t){var n=tO().current.getLocaleText("noResultsOverlayLabel");return(0,tn.jsx)(Ej,(0,Pt.Z)({ref:t},e,{children:n}))})),MN={BooleanCellTrueIcon:aT,BooleanCellFalseIcon:eT,ColumnMenuIcon:QP,OpenFilterButtonIcon:VP,FilterPanelDeleteIcon:eT,ColumnFilteredIcon:qP,ColumnSelectorIcon:YP,ColumnUnsortedIcon:RN,ColumnSortedAscendingIcon:BP,ColumnSortedDescendingIcon:HP,ColumnResizeIcon:GP,DensityCompactIcon:XP,DensityStandardIcon:$P,DensityComfortableIcon:JP,ExportIcon:oT,MoreActionsIcon:lT,TreeDataCollapseIcon:UP,TreeDataExpandIcon:WP,GroupingCriteriaCollapseIcon:UP,GroupingCriteriaExpandIcon:WP,DetailPanelExpandIcon:tT,DetailPanelCollapseIcon:nT,RowReorderIcon:iT,QuickFilterIcon:KP,QuickFilterClearIcon:eT},LN=(0,Pt.Z)({},MN,{BaseCheckbox:rD,BaseTextField:tC,BaseFormControl:Vw,BaseSelect:Gx,BaseSwitch:nR,BaseButton:Bn,BaseTooltip:vo,BasePopper:Qi,Cell:function(e){var n=e.align,r=e.children,i=e.colIndex,o=e.cellMode,a=e.field,l=e.formattedValue,s=e.hasFocus,c=e.height,u=e.isEditable,d=e.rowId,f=e.tabIndex,p=e.value,v=e.width,g=e.className,y=e.showRightBorder,b=e.colSpan,_=e.disableDragEvents,w=e.onClick,S=e.onDoubleClick,x=e.onMouseDown,C=e.onMouseUp,k=e.onKeyDown,E=e.onDragEnter,R=e.onDragOver,O=(0,h.Z)(e,iD),P=null==l?p:l,T=t.useRef(null),M=t.useRef(null),L=tO(),Z={align:n,showRightBorder:y,isEditable:u,classes:rO().classes},I=oD(Z),D=t.useCallback((function(e){return function(t){var n=L.current.getCellParams(d,a||"");L.current.publishEvent(e,n,t),C&&C(t)}}),[L,a,C,d]),j=t.useCallback((function(e){return function(t){var n=L.current.getCellParams(d,a||"");L.current.publishEvent(e,n,t),x&&x(t)}}),[L,a,x,d]),A=t.useCallback((function(e,t){return function(n){if(n.currentTarget.contains(n.target)&&L.current.getRow(d)){var r=L.current.getCellParams(d,a||"");L.current.publishEvent(e,r,n),t&&t(n)}}}),[L,a,d]),N={minWidth:v,maxWidth:v,minHeight:c,maxHeight:"auto"===c?"none":c};t.useEffect((function(){if(s&&o!==KM.Edit){var e=(0,Qw.Z)(L.current.rootElementRef.current);if(T.current&&!T.current.contains(e.activeElement)){var t=T.current.querySelector('[tabindex="0"]'),n=M.current||t||T.current;if(void 0===GI&&document.createElement("div").focus({get preventScroll(){return GI=!0,!1}}),GI)n.focus({preventScroll:!0});else{var r=L.current.getScrollPosition();n.focus(),L.current.scroll(r)}}}}),[s,o,L]);var F=O.onFocus,z="actions"===L.current.getColumn(a).type,B=_?null:{onDragEnter:A("cellDragEnter",E),onDragOver:A("cellDragOver",R)};return(0,tn.jsx)("div",(0,Pt.Z)({ref:T,className:(0,m.Z)(g,I.root),role:"cell","data-field":a,"data-colindex":i,"aria-colindex":i+1,"aria-colspan":b,style:N,tabIndex:"view"!==o&&u||z?-1:f,onClick:A("cellClick",w),onDoubleClick:A("cellDoubleClick",S),onMouseDown:j("cellMouseDown"),onMouseUp:D("cellMouseUp"),onKeyDown:A("cellKeyDown",k)},B,O,{onFocus:F,children:function(){if(null==r){var e=null==P?void 0:P.toString();return(0,tn.jsx)("div",{title:e,className:I.content,children:e})}return t.isValidElement(r)&&z?t.cloneElement(r,{focusElementRef:M}):r}()}))},SkeletonCell:function(e){var t=e.align,n=e.width,r=e.contentWidth,i=(0,h.Z)(e,xD),o={classes:rO().classes,align:t},a=CD(o);return(0,tn.jsx)("div",(0,Pt.Z)({className:a.root,style:{width:n}},i,{children:(0,tn.jsx)(SD,{width:"".concat(r,"%")})}))},ColumnHeaderFilterIconButton:function(e){var n,r=e.counter,i=e.field,o=e.onClick,a=tO(),l=rO(),s=(0,Pt.Z)({},e,{classes:l.classes}),c=zD(s),u=t.useCallback((function(e){e.preventDefault(),e.stopPropagation();var t=sI(a.current.state),n=t.open,r=t.openedPanelValue;n&&r===OL.filters?a.current.hideFilterPanel():a.current.showFilterPanel(),o&&o(a.current.getColumnHeaderParams(i),e)}),[a,i,o]);if(!r)return null;var d=(0,tn.jsx)(R_,{onClick:u,color:"default","aria-label":a.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,children:(0,tn.jsx)(l.components.ColumnFilteredIcon,{className:c.icon,fontSize:"small"})});return(0,tn.jsx)(l.components.BaseTooltip,(0,Pt.Z)({title:a.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},null==(n=l.componentsProps)?void 0:n.baseTooltip,{children:(0,tn.jsxs)(FD,{children:[r>1&&(0,tn.jsx)(jD,{badgeContent:r,color:"default",children:d}),1===r&&d]})}))},ColumnMenu:KD,ErrorOverlay:PN,Footer:rj,Header:ij,Toolbar:null,PreferencesPanel:oj,LoadingOverlay:Rj,NoResultsOverlay:TN,NoRowsOverlay:Oj,Pagination:gA,FilterPanel:WA,ColumnsPanel:function(e){var n,r,i,o=tO(),a=t.useRef(null),l=QR(o,VR),s=QR(o,qR),c=rO(),d=t.useState(""),f=(0,u.Z)(d,2),p=f[0],m=f[1],g=dN(c),y=e.sort,b=e.searchPredicate,_=void 0===b?mN:b,w=e.autoFocusSearchField,S=void 0===w||w,x=(0,h.Z)(e,uN),C=t.useMemo((function(){switch(y){case"asc":return(0,v.Z)(l).sort((function(e,t){return vN.compare(e.headerName||e.field,t.headerName||t.field)}));case"desc":return(0,v.Z)(l).sort((function(e,t){return-vN.compare(e.headerName||e.field,t.headerName||t.field)}));default:return l}}),[l,y]),k=function(e){var t=e.target.name;o.current.setColumnVisibility(t,!1===s[t])},E=t.useCallback((function(e){if(o.current.unstable_caches.columns.isUsingColumnVisibilityModel){var t=qR(o),n=(0,Pt.Z)({},t);return l.forEach((function(t){t.hideable&&(e?delete n[t.field]:n[t.field]=!1)})),o.current.setColumnVisibilityModel(n)}return o.current.updateColumns(l.map((function(t){return!1!==t.hideable?{field:t.field,hide:!e}:t})))}),[o,l]),R=t.useCallback((function(e){m(e.target.value)}),[]),O=t.useMemo((function(){if(!p)return C;var e=p.toLowerCase();return C.filter((function(t){return _(t,e)}))}),[C,p,_]),P=t.useRef(null);t.useEffect((function(){S?a.current.focus():P.current&&"function"===typeof P.current.focus&&P.current.focus()}),[S]);var T=!1,M=function(e){return!1===T&&!1!==e.hideable&&(T=!0,!0)};return(0,tn.jsxs)(PA,(0,Pt.Z)({},x,{children:[(0,tn.jsx)(sN,{children:(0,tn.jsx)(c.components.BaseTextField,(0,Pt.Z)({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:a,value:p,onChange:R,variant:"standard",fullWidth:!0},null==(n=c.componentsProps)?void 0:n.baseTextField))}),(0,tn.jsx)(wA,{children:(0,tn.jsx)(fN,{className:g.root,ownerState:c,children:O.map((function(e){var t;return(0,tn.jsxs)(hN,{className:g.columnsPanelRow,ownerState:c,children:[(0,tn.jsx)(iN,{control:(0,tn.jsx)(c.components.BaseSwitch,(0,Pt.Z)({disabled:!1===e.hideable,checked:!1!==s[e.field],onClick:k,name:e.field,size:"small",inputRef:M(e)?P:void 0},null==(t=c.componentsProps)?void 0:t.baseSwitch)),label:e.headerName||e.field}),!c.disableColumnReorder&&cN&&(0,tn.jsx)(pN,{draggable:!0,"aria-label":o.current.getLocaleText("columnsPanelDragIconLabel"),title:o.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0,children:(0,tn.jsx)(iT,{})})]},e.field)}))})}),(0,tn.jsxs)(kA,{children:[(0,tn.jsx)(c.components.BaseButton,(0,Pt.Z)({onClick:function(){return E(!1)}},null==(r=c.componentsProps)?void 0:r.baseButton,{children:o.current.getLocaleText("columnsPanelHideAllButton")})),(0,tn.jsx)(c.components.BaseButton,(0,Pt.Z)({onClick:function(){return E(!0)}},null==(i=c.componentsProps)?void 0:i.baseButton,{children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))},Panel:wN,Row:kN}),ZN={apiRef:void 0,disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},IN={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,density:IL.Standard,disableExtendRowFullWidth:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableMultipleColumnsFiltering:!1,disableMultipleSelection:!1,disableMultipleColumnsSorting:!1,disableSelectionOnClick:!1,disableVirtualization:!1,disableIgnoreModificationsIfProcessingProps:!1,editMode:qM.Cell,filterMode:TZ,headerHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:TZ,rowHeight:52,rowsPerPageOptions:[25,50,100],rowSpacingType:"margin",showCellRightBorder:!1,showColumnRightBorder:!1,sortingOrder:["asc","desc",null],sortingMode:TZ,throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1},DN=["className"],jN=(0,Zt.ZP)("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:function(e,t){return t.virtualScroller}})({overflow:"auto",position:"relative","@media print":{overflow:"hidden"}}),AN=t.forwardRef((function(e,t){var n=e.className,r=(0,h.Z)(e,DN),i=rO(),o=function(e){var t=e.classes;return(0,Mt.Z)({root:["virtualScroller"]},PR,t)}(i);return(0,tn.jsx)(jN,(0,Pt.Z)({ref:t,className:(0,m.Z)(o.root,n),ownerState:i},r))})),NN=["className","style"],FN=(0,Zt.ZP)("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:function(e,t){return t.virtualScrollerContent}})({}),zN=t.forwardRef((function(e,t){var n=e.className,r=e.style,i=(0,h.Z)(e,NN),o=rO(),a=(0,Pt.Z)({},o,{overflowedContent:!o.autoHeight&&"auto"===(null==r?void 0:r.minHeight)}),l=function(e){var t=e.classes,n={root:["virtualScrollerContent",e.overflowedContent&&"virtualScrollerContent--overflowed"]};return(0,Mt.Z)(n,PR,t)}(a);return(0,tn.jsx)(FN,(0,Pt.Z)({ref:t,className:(0,m.Z)(l.root,n),ownerState:a,style:r},i))})),BN=["className"],HN=(0,Zt.ZP)("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:function(e,t){return t.virtualScrollerRenderZone}})({position:"absolute",display:"flex",flexDirection:"column"}),WN=t.forwardRef((function(e,t){var n=e.className,r=(0,h.Z)(e,BN),i=rO(),o=function(e){var t=e.classes;return(0,Mt.Z)({root:["virtualScrollerRenderZone"]},PR,t)}(i);return(0,tn.jsx)(HN,(0,Pt.Z)({ref:t,className:(0,m.Z)(o.root,n),ownerState:i},r))})),UN=["style"];function VN(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;if(t.length<=0)return-1;if(n>=r)return n;var i=n+Math.floor((r-n)/2);return e<=t[i]?VN(e,t,n,i):VN(e,t,i+1,r)}var qN=function(e){var t=e.firstIndex,n=e.lastIndex,r=e.buffer,i=e.minFirstIndex,o=e.maxLastIndex;return[lP(t-r,i,o),lP(n+r,i,o)]},KN=function(e){var n,r,i=tO(),o=rO(),a=QR(i,KR),l=e.ref,s=e.disableVirtualization,c=e.onRenderZonePositioning,d=e.renderZoneMinColumnIndex,f=void 0===d?0:d,p=e.renderZoneMaxColumnIndex,v=void 0===p?a.length:p,m=e.getRowProps,g=QR(i,YR),y=QR(i,GR),b=QR(i,aO),_=QR(i,YL),w=QR(i,$L),S=QR(i,RZ),x=QR(i,uI),C=QR(i,nZ),k=VZ(i,o),E=t.useRef(null),R=t.useRef(null),O=(0,Dt.Z)(l,R),P=t.useState(null),T=(0,u.Z)(P,2),M=T[0],L=T[1],Z=t.useRef(M),I=t.useRef({top:0,left:0}),D=t.useState({width:null,height:null}),j=(0,u.Z)(D,2),A=j[0],N=j[1],F=t.useRef(y),z=t.useCallback((function(e){var t,n,r=i.current.unstable_getLastMeasuredRowIndex(),o=r===1/0;null!=(t=k.range)&&t.lastRowIndex&&!o&&(o=r>=k.range.lastRowIndex);var a=lP(r-((null==(n=k.range)?void 0:n.firstRowIndex)||0),0,S.positions.length);return o||S.positions[a]>=e?VN(e,S.positions):function(e,t,n){for(var r=1;n<t.length&&t[n]<e;)n+=r,r*=2;return VN(e,t,Math.floor(n/2),Math.min(n,t.length))}(e,S.positions,a)}),[i,null==(n=k.range)?void 0:n.firstRowIndex,null==(r=k.range)?void 0:r.lastRowIndex,S.positions]),B=t.useCallback((function(){if(s)return{firstRowIndex:0,lastRowIndex:k.rows.length,firstColumnIndex:0,lastColumnIndex:a.length};for(var e=I.current,t=e.top,n=e.left,r=Math.min(z(t),S.positions.length-1),l=o.autoHeight?r+k.rows.length:z(t+A.height),c=!1,d=0,f=g.length,h=qN({firstIndex:r,lastIndex:l,minFirstIndex:0,maxLastIndex:k.rows.length,buffer:o.rowBuffer}),p=(0,u.Z)(h,2),v=p[0],m=p[1],y=v;y<m&&!c;y+=1){var b=k.rows[y];c=i.current.unstable_rowHasAutoHeight(b.id)}return c||(d=VN(n,g),f=VN(n+A.width,g)),{firstRowIndex:r,lastRowIndex:l,firstColumnIndex:d,lastColumnIndex:f}}),[s,z,S.positions.length,o.autoHeight,o.rowBuffer,k.rows,g,a.length,i,A]);(0,H_.Z)((function(){s?E.current.style.transform="translate3d(0px, 0px, 0px)":(R.current.scrollLeft=0,R.current.scrollTop=0)}),[s]),(0,H_.Z)((function(){N({width:R.current.clientWidth,height:R.current.clientHeight})}),[S.currentPageTotalHeight]);var H=t.useCallback((function(e){N({width:e.width,height:e.height})}),[]);xP(i,"resize",H);var W=t.useCallback((function(e){var t=qN({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:k.rows.length,buffer:o.rowBuffer}),n=(0,u.Z)(t,2),r=n[0],a=n[1],l=qN({firstIndex:e.firstColumnIndex,lastIndex:e.lastColumnIndex,minFirstIndex:f,maxLastIndex:v,buffer:o.columnBuffer}),s=LL({firstColumnToRender:(0,u.Z)(l,1)[0],apiRef:i,firstRowToRender:r,lastRowToRender:a,visibleRows:k.rows}),d=RZ(i.current.state).positions[r],h=YR(i)[s];E.current.style.transform="translate3d(".concat(h,"px, ").concat(d,"px, 0px)"),"function"===typeof c&&c({top:d,left:h})}),[i,k.rows,c,f,v,o.columnBuffer,o.rowBuffer]),U=t.useCallback((function(e){if(Z.current&&(t=e,n=Z.current,t===n||t.firstRowIndex===n.firstRowIndex&&t.lastRowIndex===n.lastRowIndex&&t.firstColumnIndex===n.firstColumnIndex&&t.lastColumnIndex===n.lastColumnIndex))W(e);else{var t,n;L(e),W(e);var r=qN({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:k.rows.length,buffer:o.rowBuffer}),a=(0,u.Z)(r,2),l=a[0],s=a[1];i.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:l,lastRowToRender:s}),Z.current=e}}),[i,L,Z,k.rows.length,o.rowBuffer,W]);(0,H_.Z)((function(){if(null!=A.width){var e=B();U(e);var t=I.current,n={top:t.top,left:t.left,renderContext:e};i.current.publishEvent("rowsScroll",n)}}),[i,B,A.width,U]);var V=function(e){var t=e.currentTarget,n=t.scrollTop,r=t.scrollLeft;if(I.current.top=n,I.current.left=r,!(r<0||n<0)&&Z.current){var a=s?Z.current:B(),l=Math.abs(a.firstRowIndex-Z.current.firstRowIndex),c=Math.abs(a.lastRowIndex-Z.current.lastRowIndex),u=Math.abs(a.firstColumnIndex-Z.current.firstColumnIndex),d=Math.abs(a.lastColumnIndex-Z.current.lastColumnIndex),f=l>=o.rowThreshold||c>=o.rowThreshold||u>=o.columnThreshold||d>=o.columnThreshold||F.current!==y;i.current.publishEvent("rowsScroll",{top:n,left:r,renderContext:f?a:Z.current},e),f&&(Kn.flushSync((function(){U(a)})),F.current=y)}},q=function(e){i.current.publishEvent("virtualScrollerWheel",{},e)},K=function(e){i.current.publishEvent("virtualScrollerTouchMove",{},e)},Y=A.width&&y>A.width,G=t.useMemo((function(){var e=Math.max(S.currentPageTotalHeight,1),t=!1;null!=R&&R.current&&e<=(null==R?void 0:R.current.clientHeight)&&(t=!0);var n={width:Y?y:"auto",height:e,minHeight:t?"100%":"auto"};return o.autoHeight&&0===k.rows.length&&(n.height=2*b),n}),[R,y,S.currentPageTotalHeight,k.rows.length,Y,o.autoHeight,b]);t.useEffect((function(){i.current.publishEvent("virtualScrollerContentSizeChange")}),[i,G]),o.autoHeight&&0===k.rows.length&&(G.height=2*b);var X={};Y||(X.overflowX="hidden"),o.autoHeight&&(X.overflowY="hidden");var $=t.useCallback((function(){return Z.current}),[]);return i.current.unstable_getRenderContext=$,{renderContext:M,updateRenderZonePosition:W,getRows:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{renderContext:M},t=e.renderContext,n=e.minFirstColumn,r=void 0===n?f:n,l=e.maxLastColumn,c=void 0===l?v:l,d=e.availableSpace,h=void 0===d?A.width:d,p=e.rowIndexOffset,g=void 0===p?0:p,y=e.position,b=void 0===y?"center":y;if(!t||null==h)return null;var S=s?0:o.rowBuffer,E=s?0:o.columnBuffer,R=qN({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:k.rows.length,buffer:S}),O=(0,u.Z)(R,2),P=O[0],T=O[1],L=[];if(e.rows)e.rows.forEach((function(e){L.push(e),i.current.unstable_calculateColSpan({rowId:e.id,minFirstColumn:r,maxLastColumn:c,columns:a})}));else{if(!k.range)return null;for(var Z=P;Z<T;Z+=1){var I=k.rows[Z];L.push(I),i.current.unstable_calculateColSpan({rowId:I.id,minFirstColumn:r,maxLastColumn:c,columns:a})}}for(var D=qN({firstIndex:t.firstColumnIndex,lastIndex:t.lastColumnIndex,minFirstIndex:r,maxLastIndex:c,buffer:E}),j=(0,u.Z)(D,2),N=j[0],F=j[1],z=LL({firstColumnToRender:N,apiRef:i,firstRowToRender:P,lastRowToRender:T,visibleRows:k.rows}),B=a.slice(z,F),H=[],W=0;W<L.length;W+=1){var U,V,q=L[W],K=q.id,Y=q.model,G=P+W===k.rows.length-1,X=i.current.unstable_rowHasAutoHeight(K)?"auto":i.current.unstable_getRowHeight(K),$=void 0;$=null!=C[K]&&i.current.isRowSelectable(K),H.push((0,tn.jsx)(o.components.Row,(0,Pt.Z)({row:Y,rowId:K,rowHeight:X,cellFocus:_,cellTabIndex:w,editRowsState:x,renderedColumns:B,visibleColumns:a,firstColumnToRender:z,lastColumnToRender:F,selected:$,index:g+((null==k||null==(U=k.range)?void 0:U.firstRowIndex)||0)+P+W,containerWidth:h,isLastVisible:G,position:b},"function"===typeof m?m(K,Y):{},null==(V=o.componentsProps)?void 0:V.row),K))}return H},getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{}:t,r=(0,h.Z)(e,UN);return(0,Pt.Z)({ref:O,onScroll:V,onWheel:q,onTouchMove:K,style:(0,Pt.Z)({},n,X)},r)},getContentProps:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).style,t=void 0===e?{}:e;return{style:(0,Pt.Z)({},t,G)}},getRenderZoneProps:function(){return{ref:E}}}},YN=["className","disableVirtualization"],GN=t.forwardRef((function(e,t){var n=e.className,r=e.disableVirtualization,i=(0,h.Z)(e,YN),o=KN({ref:t,disableVirtualization:r}),a=o.getRootProps,l=o.getContentProps,s=o.getRenderZoneProps,c=o.getRows;return(0,tn.jsx)(AN,(0,Pt.Z)({className:n},a(i),{children:(0,tn.jsx)(zN,(0,Pt.Z)({},l(),{children:(0,tn.jsx)(WN,(0,Pt.Z)({},s(),{children:c()}))}))}))})),XN=function(e){var t=e.classes;return(0,Mt.Z)({icon:["sortIcon"]},PR,t)};function $N(e){var t=e.direction,n=e.index,r=e.sortingOrder,i=tO(),o=rO(),a=(0,Pt.Z)({},e,{classes:o.classes}),l=XN(a),s=function(e,t,n,r){var i,o={};return"asc"===t?i=e.ColumnSortedAscendingIcon:"desc"===t?i=e.ColumnSortedDescendingIcon:(i=e.ColumnUnsortedIcon,o.sortingOrder=r),i?(0,tn.jsx)(i,(0,Pt.Z)({fontSize:"small",className:n},o)):null}(o.components,t,l.icon,r);if(!s)return null;var c=(0,tn.jsx)(R_,{tabIndex:-1,"aria-label":i.current.getLocaleText("columnHeaderSortIconLabel"),title:i.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",children:s});return(0,tn.jsxs)(FD,{children:[null!=n&&(0,tn.jsx)(jD,{badgeContent:n,color:"default",children:c}),null==n&&c]})}var JN=t.memo($N),QN=t.memo((function(e){var n=e.column,r=e.open,i=e.columnMenuId,o=e.columnMenuButtonId,a=e.iconButtonRef,l=tO(),s=rO(),c=function(e){var t=e.classes,n={root:["menuIcon",e.open&&"menuOpen"],button:["menuIconButton"]};return(0,Mt.Z)(n,PR,t)}((0,Pt.Z)({},e,{classes:s.classes})),u=t.useCallback((function(e){e.preventDefault(),e.stopPropagation(),l.current.toggleColumnMenu(n.field)}),[l,n.field]);return(0,tn.jsx)("div",{className:c.root,children:(0,tn.jsx)(R_,{ref:a,tabIndex:-1,className:c.button,"aria-label":l.current.getLocaleText("columnMenuLabel"),title:l.current.getLocaleText("columnMenuLabel"),size:"small",onClick:u,"aria-expanded":r?"true":void 0,"aria-haspopup":"true","aria-controls":i,id:o,children:(0,tn.jsx)(s.components.ColumnMenuIcon,{fontSize:"small"})})})}));function eF(e){var n=e.columnMenuId,r=e.columnMenuButtonId,i=e.ContentComponent,o=e.contentComponentProps,a=e.field,l=e.open,s=e.target,c=e.onExited,u=tO(),d=u.current.getColumn(a),f=t.useCallback((function(e){e.stopPropagation(),u.current.hideColumnMenu()}),[u]);return s?(0,tn.jsx)(bL,{placement:"bottom-".concat("right"===d.align?"start":"end"),open:l,target:s,onClickAway:f,onExited:c,children:(0,tn.jsx)(i,(0,Pt.Z)({currentColumn:d,hideMenu:f,open:l,id:n,labelledby:r},o))}):null}var tF=["className"],nF=(0,Zt.ZP)("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:function(e,t){return t.columnHeaderTitle}})((function(e){return{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:e.theme.typography.fontWeightMedium}})),rF=t.forwardRef((function(e,t){var n=e.className,r=(0,h.Z)(e,tF),i=rO(),o=function(e){var t=e.classes;return(0,Mt.Z)({root:["columnHeaderTitle"]},PR,t)}(i);return(0,tn.jsx)(nF,(0,Pt.Z)({ref:t,className:(0,m.Z)(o.root,n),ownerState:i},r))}));function iF(e){var n,r=e.label,i=e.description,o=e.columnWidth,a=rO(),l=t.useRef(null),s=t.useState(""),c=(0,u.Z)(s,2),d=c[0],f=c[1];return t.useEffect((function(){if(!i&&l&&l.current){var e=(t=l.current).scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth;f(e?r:"")}var t}),[l,o,i,r]),(0,tn.jsx)(a.components.BaseTooltip,(0,Pt.Z)({title:i||d},null==(n=a.componentsProps)?void 0:n.baseTooltip,{children:(0,tn.jsx)(rF,{ref:l,children:r})}))}var oF,aF=["resizable","resizing","height","side"];!function(e){e.Left="left",e.Right="right"}(oF||(oF={}));var lF=function(e){var t=e.resizable,n=e.resizing,r=e.classes,i=e.side,o={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",i&&"columnSeparator--side".concat((0,Mn.Z)(i))],icon:["iconSeparator"]};return(0,Mt.Z)(o,PR,r)};function sF(e){var n=e.height,r=e.side,i=void 0===r?oF.Right:r,o=(0,h.Z)(e,aF),a=rO(),l=(0,Pt.Z)({},e,{side:i,classes:a.classes}),s=lF(l),c=t.useCallback((function(e){e.preventDefault(),e.stopPropagation()}),[]);return(0,tn.jsx)("div",(0,Pt.Z)({className:s.root,style:{minHeight:n,opacity:a.showColumnRightBorder?0:1}},o,{onClick:c,children:(0,tn.jsx)(a.components.ColumnResizeIcon,{className:s.icon})}))}var cF=t.memo(sF),uF=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","disableHeaderSeparator"],dF=t.forwardRef((function(e,n){var r=e.classes,i=e.columnMenuOpen,o=e.colIndex,a=e.height,l=e.isResizing,s=e.sortDirection,c=e.hasFocus,d=e.tabIndex,f=e.separatorSide,p=e.isDraggable,v=e.headerComponent,g=e.description,y=e.width,b=e.columnMenuIconButton,_=void 0===b?null:b,w=e.columnMenu,S=void 0===w?null:w,x=e.columnTitleIconButtons,C=void 0===x?null:x,k=e.headerClassName,E=e.label,R=e.resizable,O=e.draggableContainerProps,P=e.columnHeaderSeparatorProps,T=e.disableHeaderSeparator,M=(0,h.Z)(e,uF),L=tO(),Z=rO(),I=t.useRef(null),D=t.useState(i),j=(0,u.Z)(D,2),A=j[0],N=j[1],F=(0,Dt.Z)(I,n),z="none";return null!=s&&(z="asc"===s?"ascending":"descending"),t.useEffect((function(){A||N(i)}),[A,i]),t.useLayoutEffect((function(){var e=L.current.state.columnMenu;if(c&&!e.open){var t=I.current.querySelector('[tabindex="0"]')||I.current;null==t||t.focus(),L.current.columnHeadersContainerElementRef.current.scrollLeft=0}}),[L,c]),(0,tn.jsxs)("div",(0,Pt.Z)({ref:F,className:(0,m.Z)(r.root,k),style:{height:a,width:y,minWidth:y,maxWidth:y},role:"columnheader",tabIndex:d,"aria-colindex":o+1,"aria-sort":z,"aria-label":null==v?E:void 0},M,{children:[(0,tn.jsxs)("div",(0,Pt.Z)({className:r.draggableContainer,draggable:p},O,{children:[(0,tn.jsxs)("div",{className:r.titleContainer,children:[(0,tn.jsx)("div",{className:r.titleContainerContent,children:void 0!==v?v:(0,tn.jsx)(iF,{label:E,description:g,columnWidth:y})}),C]}),_]})),!T&&(0,tn.jsx)(cF,(0,Pt.Z)({resizable:!Z.disableColumnResize&&!!R,resizing:l,height:a,side:f},P)),S]}))})),fF=function(e){var t=e.column,n=e.classes,r=e.isDragging,i=e.sortDirection,o=e.showRightBorder,a=e.filterItemsCounter,l=null!=i,s=null!=a&&a>0,c="number"===t.type,u={root:["columnHeader","left"===t.headerAlign&&"columnHeader--alignLeft","center"===t.headerAlign&&"columnHeader--alignCenter","right"===t.headerAlign&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",l&&"columnHeader--sorted",s&&"columnHeader--filtered",c&&"columnHeader--numeric",o&&"withBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return(0,Mt.Z)(u,PR,n)};function hF(e){var n,r,i,o,a,l,s=e.column,c=e.columnMenuOpen,d=e.colIndex,f=e.headerHeight,h=e.isResizing,p=e.isLastColumn,v=e.sortDirection,m=e.sortIndex,g=e.filterItemsCounter,y=e.hasFocus,b=e.tabIndex,_=e.extendRowFullWidth,w=e.disableReorder,S=e.separatorSide,x=tO(),C=rO(),k=t.useRef(null),E=(0,eo.Z)(),R=(0,eo.Z)(),O=t.useRef(null),P=t.useState(c),T=(0,u.Z)(P,2),M=T[0],L=T[1],Z=null!=(n=x.current.getRootDimensions())?n:{hasScrollX:!1,hasScrollY:!1},I=Z.hasScrollX,D=Z.hasScrollY,j=t.useMemo((function(){return!C.disableColumnReorder&&!w&&!s.disableReorder}),[C.disableColumnReorder,w,s.disableReorder]);s.renderHeader&&(l=s.renderHeader(x.current.getColumnHeaderParams(s.field)));var A=p?!(p&&I&&!D)&&!_:C.showColumnRightBorder,N=(0,Pt.Z)({},e,{classes:C.classes,showRightBorder:A}),F=fF(N),z=t.useCallback((function(e){return function(t){t.currentTarget.contains(t.target)&&x.current.publishEvent(e,x.current.getColumnHeaderParams(s.field),t)}}),[x,s.field]),B=t.useMemo((function(){return{onClick:z("columnHeaderClick"),onDoubleClick:z("columnHeaderDoubleClick"),onMouseOver:z("columnHeaderOver"),onMouseOut:z("columnHeaderOut"),onMouseEnter:z("columnHeaderEnter"),onMouseLeave:z("columnHeaderLeave"),onKeyDown:z("columnHeaderKeyDown"),onFocus:z("columnHeaderFocus"),onBlur:z("columnHeaderBlur")}}),[z]),H=t.useMemo((function(){return j?{onDragStart:z("columnHeaderDragStart"),onDragEnter:z("columnHeaderDragEnter"),onDragOver:z("columnHeaderDragOver"),onDragEnd:z("columnHeaderDragEnd")}:{}}),[j,z]),W=t.useMemo((function(){return{onMouseDown:z("columnSeparatorMouseDown")}}),[z]);t.useEffect((function(){M||L(c)}),[M,c]);var U=t.useCallback((function(){L(!1)}),[]),V=!C.disableColumnMenu&&!s.disableColumnMenu&&(0,tn.jsx)(QN,{column:s,columnMenuId:E,columnMenuButtonId:R,open:M,iconButtonRef:O}),q=(0,tn.jsx)(eF,{columnMenuId:E,columnMenuButtonId:R,field:s.field,open:c,target:O.current,ContentComponent:C.components.ColumnMenu,contentComponentProps:null==(r=C.componentsProps)?void 0:r.columnMenu,onExited:U}),K=null!=(i=s.sortingOrder)?i:C.sortingOrder,Y=(0,tn.jsxs)(t.Fragment,{children:[!C.disableColumnFilter&&(0,tn.jsx)(C.components.ColumnHeaderFilterIconButton,(0,Pt.Z)({field:s.field,counter:g},null==(o=C.componentsProps)?void 0:o.columnHeaderFilterIconButton)),s.sortable&&!s.hideSortIcons&&(0,tn.jsx)(JN,{direction:v,index:m,sortingOrder:K})]});t.useLayoutEffect((function(){var e=x.current.state.columnMenu;if(y&&!e.open){var t=k.current.querySelector('[tabindex="0"]')||k.current;null==t||t.focus(),x.current.columnHeadersContainerElementRef.current.scrollLeft=0}}),[x,y]);var G="function"===typeof s.headerClassName?s.headerClassName({field:s.field,colDef:s}):s.headerClassName,X=null!=(a=s.headerName)?a:s.field;return(0,tn.jsx)(dF,(0,Pt.Z)({ref:k,classes:F,columnMenuOpen:c,colIndex:d,height:f,isResizing:h,sortDirection:v,hasFocus:y,tabIndex:b,separatorSide:S,isDraggable:j,headerComponent:l,description:s.description,elementId:s.field,width:s.computedWidth,columnMenuIconButton:V,columnTitleIconButtons:Y,headerClassName:G,label:X,resizable:!C.disableColumnResize&&!!s.resizable,"data-field":s.field,columnMenu:q,draggableContainerProps:H,columnHeaderSeparatorProps:W},B))}var pF=function(e){var t=e.classes,n=e.headerAlign,r={root:["columnHeader","left"===n&&"columnHeader--alignLeft","center"===n&&"columnHeader--alignCenter","right"===n&&"columnHeader--alignRight",e.isDragging&&"columnHeader--moving",e.showRightBorder&&"withBorder",e.showColumnBorder&&"columnHeader--showColumnBorder",null===e.groupId?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return(0,Mt.Z)(r,PR,t)};function vF(e){var t,n,r,i=e.groupId,o=e.width,a=e.depth,l=e.maxDepth,s=e.fields,c=e.height,u=e.colIndex,d=e.isLastColumn,f=e.extendRowFullWidth,h=rO(),p=tO(),v=QR(p,AL),m=null!=(t=p.current.getRootDimensions())?t:{hasScrollX:!1,hasScrollY:!1},g=m.hasScrollX,y=m.hasScrollY,b=i?v[i]:{},_=b.headerName,w=void 0===_?null!=i?i:"":_,S=b.description,x=void 0===S?"":S,C=b.headerAlign,k=void 0===C?void 0:C,E=i&&(null==(n=v[i])?void 0:n.renderHeaderGroup),R={groupId:i,headerName:w,description:x,depth:a,maxDepth:l,fields:s,colIndex:u,isLastColumn:d};i&&E&&(r=E(R));var O=d?!(d&&g&&!y)&&!f:h.showColumnRightBorder,P=h.showColumnRightBorder,T=(0,Pt.Z)({},e,{classes:h.classes,showRightBorder:O,showColumnBorder:P,headerAlign:k,depth:a,isDragging:!1}),M=null!=w?w:i,L=(0,O_.Z)(),Z=null===i?"empty-group-cell-".concat(L):i,I=pF(T),D="function"===typeof b.headerClassName?b.headerClassName(R):b.headerClassName;return(0,tn.jsx)(dF,{classes:I,columnMenuOpen:!1,colIndex:u,height:c,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:-1,isDraggable:!1,headerComponent:r,headerClassName:D,description:x,elementId:Z,width:o,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:M,"aria-colspan":s.length,"data-fields":"|-".concat(s.join("-|-"),"-|"),disableHeaderSeparator:!0})}var mF=(0,Zt.ZP)("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:function(e,t){return t.columnHeaderRow}})((function(){return{display:"flex"}}));var gF=1,yF=1.5,bF=function(e){var t=e.scrollDirection,n=e.classes,r={root:["scrollArea","scrollArea--".concat(t)]};return(0,Mt.Z)(r,PR,n)},_F=(0,Zt.ZP)("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:function(e,t){return[(0,o.Z)({},"&.".concat(TR["scrollArea--left"]),t["scrollArea--left"]),(0,o.Z)({},"&.".concat(TR["scrollArea--right"]),t["scrollArea--right"]),t.scrollArea]}})((function(){var e;return e={position:"absolute",top:0,zIndex:101,width:20,bottom:0},(0,o.Z)(e,"&.".concat(TR["scrollArea--left"]),{left:0}),(0,o.Z)(e,"&.".concat(TR["scrollArea--right"]),{right:0}),e}));function wF(e){var n=e.scrollDirection,r=t.useRef(null),i=tO(),o=t.useRef(),a=t.useState(!1),l=(0,u.Z)(a,2),s=l[0],c=l[1],d=QR(i,lO),f=t.useRef({left:0,top:0}),h=rO(),p=(0,Pt.Z)({},h,{scrollDirection:n}),v=bF(p),g=t.useCallback((function(e){f.current=e}),[]),y=t.useCallback((function(e){var t;if("left"===n)t=e.clientX-r.current.getBoundingClientRect().right;else{if("right"!==n)throw new Error("MUI: Wrong drag direction");t=Math.max(1,e.clientX-r.current.getBoundingClientRect().left)}t=(t-gF)*yF+gF,clearTimeout(o.current),o.current=setTimeout((function(){i.current.scroll({left:f.current.left+t,top:f.current.top})}))}),[n,i]);t.useEffect((function(){return function(){clearTimeout(o.current)}}),[]);var b=t.useCallback((function(){c((function(e){return!e}))}),[]);return xP(i,"rowsScroll",g),xP(i,"columnHeaderDragStart",b),xP(i,"columnHeaderDragEnd",b),s?(0,tn.jsx)(_F,{ref:r,className:(0,m.Z)(v.root),ownerState:p,onDragOver:y,style:{height:d}}):null}var SF=t.memo(wF),xF=["className"],CF=(0,Zt.ZP)("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:function(e,t){return t.columnHeaders}})((function(e){var t=e.theme,n="light"===t.palette.mode?(0,Lt.$n)((0,Lt.Fq)(t.palette.divider,1),.88):(0,Lt._j)((0,Lt.Fq)(t.palette.divider,1),.68);return{position:"absolute",top:0,left:0,right:0,overflow:"hidden",display:"flex",alignItems:"center",boxSizing:"border-box",borderBottom:"1px solid ".concat(n),borderTopLeftRadius:t.shape.borderRadius,borderTopRightRadius:t.shape.borderRadius}})),kF=t.forwardRef((function(e,t){var n=e.className,r=(0,h.Z)(e,xF),i=rO(),o=function(e){var t=e.classes;return(0,Mt.Z)({root:["columnHeaders"]},PR,t)}(i);return(0,tn.jsx)(CF,(0,Pt.Z)({ref:t,className:(0,m.Z)(n,o.root),ownerState:i},r))})),EF=["isDragging","className"],RF=(0,Zt.ZP)("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:function(e,t){return[(0,o.Z)({},"&.".concat(TR.columnHeaderDropZone),t.columnHeaderDropZone),t.columnHeadersInner]}})((function(){var e;return e={display:"flex",alignItems:"flex-start",flexDirection:"column"},(0,o.Z)(e,"&.".concat(TR.columnHeaderDropZone," .").concat(TR.columnHeaderDraggableContainer),{cursor:"move"}),(0,o.Z)(e,"&.".concat(TR["columnHeadersInner--scrollable"]," .").concat(TR.columnHeader,":last-child"),{borderRight:"none"}),e})),OF=t.forwardRef((function(e,t){var n,r,i=e.isDragging,o=e.className,a=(0,h.Z)(e,EF),l=tO(),s=rO(),c=(0,Pt.Z)({},s,{isDragging:i,hasScrollX:null!=(n=null==(r=l.current.getRootDimensions())?void 0:r.hasScrollX)&&n}),u=function(e){var t=e.isDragging,n=e.hasScrollX,r=e.classes,i={root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]};return(0,Mt.Z)(i,PR,r)}(c);return(0,tn.jsx)(RF,(0,Pt.Z)({ref:t,className:(0,m.Z)(o,u.root),ownerState:c},a))})),PF=["innerRef","className"],TF=t.forwardRef((function(e,n){var r=e.innerRef,i=(0,h.Z)(e,PF),o=function(e){var n=e.innerRef,r=e.minColumnIndex,i=void 0===r?0:r,o=t.useState(""),a=(0,u.Z)(o,2),l=a[0],s=a[1],c=t.useState(""),d=(0,u.Z)(c,2),f=d[0],h=d[1],p=tO(),m=QR(p,KR),g=QR(p,YR),y=QR(p,JL),b=QR(p,$L),_=QR(p,GL),w=QR(p,lO),S=QR(p,sO),x=QR(p,uO),C=QR(p,QO),k=QR(p,zO),E=QR(p,jP),R=rO(),O=t.useRef(null),P=(0,Dt.Z)(n,O),T=t.useState(null),M=(0,u.Z)(T,2),L=M[0],Z=M[1],I=t.useRef(L),D=t.useRef(0),j=VZ(p,R);t.useEffect((function(){p.current.columnHeadersContainerElementRef.current.scrollLeft=0}),[p]);var A=t.useRef(IR(ZL,{equalityCheck:function(e,t){return["firstColumnIndex","minColumnIndex","columnBuffer"].every((function(n){return e[n]===t[n]}))}})),N=t.useCallback((function(e){var t=qN({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:j.rows.length,buffer:R.rowBuffer}),n=(0,u.Z)(t,2),r=n[0],o=n[1],a=A.current({firstColumnIndex:e.firstColumnIndex,minColumnIndex:i,columnBuffer:R.columnBuffer,firstRowToRender:r,lastRowToRender:o,apiRef:p,visibleRows:j.rows}),l=a>0?D.current-g[a]:D.current;O.current.style.transform="translate3d(".concat(-l,"px, 0px, 0px)")}),[g,i,R.columnBuffer,p,j.rows,R.rowBuffer]);t.useLayoutEffect((function(){L&&N(L)}),[L,N]);var F=t.useCallback((function(e,t){var n,r,i=e.left,o=e.renderContext,a=void 0===o?null:o;if(O.current&&(D.current!==i||(null==(n=I.current)?void 0:n.firstColumnIndex)!==(null==a?void 0:a.firstColumnIndex)||(null==(r=I.current)?void 0:r.lastColumnIndex)!==(null==a?void 0:a.lastColumnIndex))){D.current=i;var l=!1;a===I.current&&I.current?l=!0:(function(e){return!!e.target}(t)?(Kn.flushSync((function(){Z(a)})),l=!0):Z(a),I.current=a),a&&l&&N(a)}}),[N]),z=t.useCallback((function(e){return h(e.field)}),[]),B=t.useCallback((function(){return h("")}),[]),H=t.useCallback((function(e){return s(e.field)}),[]),W=t.useCallback((function(){return s("")}),[]);xP(p,"columnResizeStart",z),xP(p,"columnResizeStop",B),xP(p,"columnHeaderDragStart",H),xP(p,"columnHeaderDragEnd",W),xP(p,"rowsScroll",F);var U=function(e){var t=e||{},n=t.renderContext,r=void 0===n?L:n,o=t.minFirstColumn,a=void 0===o?i:o,l=t.maxLastColumn,s=void 0===l?m.length:l;if(!r)return null;var c=qN({firstIndex:r.firstRowIndex,lastIndex:r.lastRowIndex,minFirstIndex:0,maxLastIndex:j.rows.length,buffer:R.rowBuffer}),d=(0,u.Z)(c,2),f=d[0],h=d[1],v=A.current({firstColumnIndex:r.firstColumnIndex,minColumnIndex:a,columnBuffer:R.columnBuffer,apiRef:p,firstRowToRender:f,lastRowToRender:h,visibleRows:j.rows}),g=Math.min(r.lastColumnIndex+R.columnBuffer,s);return{renderedColumns:m.slice(v,g),firstColumnToRender:v,lastColumnToRender:g,minFirstColumn:a,maxLastColumn:s}},V=function(){var e=arguments.length>1?arguments[1]:void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).slice(0,e+1)},q={minHeight:x,maxHeight:x,lineHeight:"".concat(w,"px")};return{renderContext:L,getColumnHeaders:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=U(e);if(null==n)return null;for(var r=n.renderedColumns,i=n.firstColumnToRender,o=[],a=0;a<r.length;a+=1){var s=r[a],c=i+a,u=0===c,d=!(null===y&&null===b),h=null!==y&&y.field===s.field||u&&!d?0:-1,p=null!==_&&_.field===s.field,v=E.open&&E.field===s.field;o.push((0,tn.jsx)(hF,(0,Pt.Z)({},k[s.field],{columnMenuOpen:v,filterItemsCounter:C[s.field]&&C[s.field].length,headerHeight:w,isDragging:s.field===l,column:s,colIndex:c,isResizing:f===s.field,isLastColumn:c===m.length-1,extendRowFullWidth:!R.disableExtendRowFullWidth,hasFocus:p,tabIndex:h},t),s.field))}return(0,tn.jsx)(mF,{role:"row","aria-rowindex":S+1,ownerState:R,children:o})},getColumnGroupHeaders:function(e){if(0===S)return null;var t=U(e);if(null==t||0===t.renderedColumns.length)return null;for(var n=t.renderedColumns,r=t.firstColumnToRender,o=t.lastColumnToRender,a=t.maxLastColumn,l=[],s=[],c=function(e){for(var t=[],l=0,c=r-1,u=null==(d=m[r])||null==(f=d.groupPath)?void 0:f[e],w=V(null==(h=m[r])?void 0:h.groupPath,e);null!==u&&c>=i&&null!=(p=m[c])&&p.groupPath&&sP(V(null==(g=m[c])?void 0:g.groupPath,e),w);){var S=m[c];l+=null!=(y=S.computedWidth)?y:0,0===t.length?t.push({width:null!=(b=S.computedWidth)?b:0,fields:[S.field],groupId:u,groupParents:w,colIndex:c}):(t[0].width+=null!=(_=S.computedWidth)?_:0,t[0].fields.push(S.field),t[0].colIndex=c),c-=1}var R=n.reduce((function(t,n,i){var o,a,l,s,c=t[t.length-1];return n.groupPath&&n.groupPath.length>e?c&&c.groupId===n.groupPath[e]?[].concat((0,v.Z)(t.slice(0,t.length-1)),[(0,Pt.Z)({},c,{width:c.width+(null!=(l=n.computedWidth)?l:0),fields:[].concat((0,v.Z)(c.fields),[n.field])})]):[].concat((0,v.Z)(t),[{groupId:n.groupPath[e],groupParents:V(n.groupPath,e),width:null!=(a=n.computedWidth)?a:0,fields:[n.field],colIndex:r+i}]):c&&null===c.groupId&&sP(V(n.groupPath,e),c.groupParents)?[].concat((0,v.Z)(t.slice(0,t.length-1)),[(0,Pt.Z)({},c,{width:c.width+(null!=(s=n.computedWidth)?s:0),fields:[].concat((0,v.Z)(c.fields),[n.field])})]):[].concat((0,v.Z)(t),[{groupId:null,groupParents:V(n.groupPath,e),width:null!=(o=n.computedWidth)?o:0,fields:[n.field],colIndex:r+i}])}),t);c=o;for(var O=R[R.length-1].groupId;null!==O&&c<a&&null!=(x=m[c])&&x.groupPath&&(null==(C=m[c])||null==(k=C.groupPath)?void 0:k[e])===O;){var P=m[c];R[R.length-1].width+=null!=(E=P.computedWidth)?E:0,R[R.length-1].fields.push(P.field),c+=1}s.push({leftOverflow:l,elements:(0,v.Z)(R)})},u=0;u<S;u+=1){var d,f,h,p,g,y,b,_,x,C,k,E;c(u)}return s.forEach((function(e,t){l.push((0,tn.jsx)(mF,{style:{height:"".concat(w,"px"),transform:"translateX(-".concat(e.leftOverflow,"px)")},role:"row","aria-rowindex":t+1,ownerState:R,children:e.elements.map((function(e,n){var r=e.groupId,i=e.width,o=e.fields,a=e.colIndex;return(0,tn.jsx)(vF,{groupId:r,width:i,fields:o,colIndex:a,depth:t,isLastColumn:a===m.length-o.length,extendRowFullWidth:!R.disableExtendRowFullWidth,maxDepth:s.length,height:w},n)}))},t))})),l},isDragging:!!l,getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,Pt.Z)({style:q},e)},getInnerProps:function(){return{ref:P,role:"rowgroup"}}}}({innerRef:r}),a=o.isDragging,l=o.getRootProps,s=o.getInnerProps,c=o.getColumnHeaders,d=o.getColumnGroupHeaders;return(0,tn.jsxs)(kF,(0,Pt.Z)({ref:n},l(i),{children:[(0,tn.jsx)(SF,{scrollDirection:"left"}),(0,tn.jsxs)(OF,(0,Pt.Z)({isDragging:a},s(),{children:[d(),c()]})),(0,tn.jsx)(SF,{scrollDirection:"right"})]}))})),MF=t.forwardRef((function(e,n){var r=function(e){if(e.pageSize>100)throw new Error("'props.pageSize' cannot exceed 100 in DataGrid.");var n=(0,It.Z)({props:e,name:"MuiDataGrid"}),r=t.useMemo((function(){return(0,Pt.Z)({},UI,n.localeText)}),[n.localeText]),i=t.useMemo((function(){var e=n.components;if(!e)return(0,Pt.Z)({},LN);var t={};return Object.entries(LN).forEach((function(n){var r=(0,u.Z)(n,2),i=r[0],o=r[1];t[i]=void 0===e[i]?o:e[i]})),t}),[n.components]);return t.useMemo((function(){return(0,Pt.Z)({},IN,n,{localeText:r,components:i},ZN)}),[n,r,i])}(e),i=WI(r);return(0,tn.jsx)(iP,{apiRef:i,props:r,children:(0,tn.jsx)(kO,{className:r.className,style:r.style,sx:r.sx,ref:n,children:(0,tn.jsxs)(MO,{children:[(0,tn.jsx)(LO,{}),(0,tn.jsx)(nP,{ColumnHeadersComponent:TF,VirtualScrollerComponent:GN}),(0,tn.jsx)(rP,{})]})})})})),LF=t.memo(MF);MF.propTypes={"aria-label":go().string,"aria-labelledby":go().string,autoHeight:go().bool,autoPageSize:go().bool,cellModesModel:go().object,checkboxSelection:go().bool,classes:go().object,columnBuffer:go().number,columnGroupingModel:go().arrayOf(go().object),columns:(go().array.isRequired,function(){return null}),columnThreshold:go().number,columnTypes:go().object,columnVisibilityModel:go().object,components:go().object,componentsProps:go().object,density:go().oneOf(["comfortable","compact","standard"]),disableColumnFilter:go().bool,disableColumnMenu:go().bool,disableColumnSelector:go().bool,disableDensitySelector:go().bool,disableExtendRowFullWidth:go().bool,disableIgnoreModificationsIfProcessingProps:go().bool,disableSelectionOnClick:go().bool,disableVirtualization:go().bool,editMode:go().oneOf(["cell","row"]),editRowsModel:go().object,error:go().any,experimentalFeatures:go().shape({columnGrouping:go().bool,newEditingApi:go().bool,preventCommitWhileValidating:go().bool,warnIfFocusStateIsNotSynced:go().bool}),filterMode:go().oneOf(["client","server"]),filterModel:go().shape({items:go().arrayOf(go().shape({columnField:go().string.isRequired,id:go().oneOfType([go().number,go().string]),operatorValue:go().string,value:go().any})).isRequired,linkOperator:go().oneOf(["and","or"]),quickFilterLogicOperator:go().oneOf(["and","or"]),quickFilterValues:go().array}),getCellClassName:go().func,getDetailPanelContent:go().func,getEstimatedRowHeight:go().func,getRowClassName:go().func,getRowHeight:go().func,getRowId:go().func,getRowSpacing:go().func,headerHeight:go().number,hideFooter:go().bool,hideFooterPagination:go().bool,hideFooterSelectedRowCount:go().bool,initialState:go().object,isCellEditable:go().func,isRowSelectable:go().func,keepNonExistentRowsSelected:go().bool,loading:go().bool,localeText:go().object,logger:go().shape({debug:go().func.isRequired,error:go().func.isRequired,info:go().func.isRequired,warn:go().func.isRequired}),logLevel:go().oneOf(["debug","error","info","warn",!1]),nonce:go().string,onCellClick:go().func,onCellDoubleClick:go().func,onCellEditCommit:go().func,onCellEditStart:go().func,onCellEditStop:go().func,onCellFocusOut:go().func,onCellKeyDown:go().func,onCellModesModelChange:go().func,onColumnHeaderClick:go().func,onColumnHeaderDoubleClick:go().func,onColumnHeaderEnter:go().func,onColumnHeaderLeave:go().func,onColumnHeaderOut:go().func,onColumnHeaderOver:go().func,onColumnOrderChange:go().func,onColumnVisibilityChange:go().func,onColumnVisibilityModelChange:go().func,onEditCellPropsChange:go().func,onEditRowsModelChange:go().func,onError:go().func,onFilterModelChange:go().func,onMenuClose:go().func,onMenuOpen:go().func,onPageChange:go().func,onPageSizeChange:go().func,onPreferencePanelClose:go().func,onPreferencePanelOpen:go().func,onProcessRowUpdateError:go().func,onResize:go().func,onRowClick:go().func,onRowDoubleClick:go().func,onRowEditCommit:go().func,onRowEditStart:go().func,onRowEditStop:go().func,onRowModesModelChange:go().func,onSelectionModelChange:go().func,onSortModelChange:go().func,onStateChange:go().func,page:go().number,pageSize:(go().number,function(){return null}),pagination:function(e){return!1===e.pagination?new Error(["MUI: `<DataGrid pagination={false} />` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to DataGridPro or DataGridPremium component to disable the pagination."].join("\n")):null},paginationMode:go().oneOf(["client","server"]),processRowUpdate:go().func,rowBuffer:go().number,rowCount:go().number,rowHeight:go().number,rowModesModel:go().object,rows:go().arrayOf(go().object).isRequired,rowSpacingType:go().oneOf(["border","margin"]),rowsPerPageOptions:go().arrayOf(go().number),rowThreshold:go().number,scrollbarSize:go().number,selectionModel:(go().oneOfType([go().number,go().string,go().array]),function(){return null}),showCellRightBorder:go().bool,showColumnRightBorder:go().bool,sortingMode:go().oneOf(["client","server"]),sortingOrder:go().arrayOf(go().oneOf(["asc","desc"])),sortModel:go().arrayOf(go().shape({field:go().string.isRequired,sort:go().oneOf(["asc","desc"])})),sx:go().oneOfType([go().arrayOf(go().oneOfType([go().func,go().object,go().bool])),go().func,go().object])};var ZF=["className","children"],IF=(0,Zt.ZP)("div",{name:"MuiDataGrid",slot:"ToolbarContainer",overridesResolver:function(e,t){return t.toolbarContainer}})((function(e){return{display:"flex",alignItems:"center",flexWrap:"wrap",padding:e.theme.spacing(.5,.5,0)}})),DF=t.forwardRef((function(e,t){var n=e.className,r=e.children,i=(0,h.Z)(e,ZF),o=rO(),a=function(e){var t=e.classes;return(0,Mt.Z)({root:["toolbarContainer"]},PR,t)}(o);return r?(0,tn.jsx)(IF,(0,Pt.Z)({ref:t,className:(0,m.Z)(n,a.root),ownerState:o},i,{children:r})):null})),jF=["componentsProps"],AF=(0,Zt.ZP)("ul",{name:"MuiDataGrid",slot:"ToolbarFilterList",overridesResolver:function(e,t){return t.toolbarFilterList}})((function(e){var t=e.theme;return{margin:t.spacing(1,1,.5),padding:t.spacing(0,1)}})),NF=t.forwardRef((function(e,n){var r,i,o=e.componentsProps,a=void 0===o?{}:o,l=(0,h.Z)(e,jF),s=a.button||{},c=tO(),u=rO(),d=QR(c,JO),f=QR(c,UR),p=QR(c,sI),v=function(e){var t=e.classes;return(0,Mt.Z)({root:["toolbarFilterList"]},PR,t)}(u),m=t.useMemo((function(){if(p.open)return c.current.getLocaleText("toolbarFiltersTooltipHide");if(0===d.length)return c.current.getLocaleText("toolbarFiltersTooltipShow");var e=function(e){return f[e.columnField].filterOperators.find((function(t){return t.value===e.operatorValue})).label||c.current.getLocaleText("filterOperator".concat((0,Mn.Z)(e.operatorValue))).toString()},t=function(e){var t=f[e.columnField].filterOperators.find((function(t){return t.value===e.operatorValue})).getValueAsString;return t?t(e.value):e.value};return(0,tn.jsxs)("div",{children:[c.current.getLocaleText("toolbarFiltersTooltipActive")(d.length),(0,tn.jsx)(AF,{className:v.root,ownerState:u,children:d.map((function(n,r){return(0,Pt.Z)({},f[n.columnField]&&(0,tn.jsx)("li",{children:"".concat(f[n.columnField].headerName||n.columnField,"\n ").concat(e(n),"\n ").concat(n.value?t(n):"")},r))}))})]})}),[c,u,p.open,d,f,v]);return u.disableColumnFilter?null:(0,tn.jsx)(u.components.BaseTooltip,(0,Pt.Z)({title:m,enterDelay:1e3},l,null==(r=u.componentsProps)?void 0:r.baseTooltip,{children:(0,tn.jsx)(u.components.BaseButton,(0,Pt.Z)({ref:n,size:"small","aria-label":c.current.getLocaleText("toolbarFiltersLabel"),startIcon:(0,tn.jsx)(jD,{badgeContent:d.length,color:"primary",children:(0,tn.jsx)(u.components.OpenFilterButtonIcon,{})})},s,{onClick:function(e){var t,n=p.open,r=p.openedPanelValue;n&&r===OL.filters?c.current.hideFilterPanel():c.current.showFilterPanel(),null==(t=s.onClick)||t.call(s,e)}},null==(i=u.componentsProps)?void 0:i.baseButton,{children:c.current.getLocaleText("toolbarFilters")}))}))})),FF=n(9353),zF=n.n(FF),BF=.2,HF=(0,Zt.ZP)(LF)((function(e){var t=e.theme;return(0,o.Z)({},"& .".concat(TR.row,".even"),{backgroundColor:t.palette.grey[200],"&:hover, &.Mui-hovered":{backgroundColor:(0,Lt.Fq)(t.palette.primary.main,BF),"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:(0,Lt.Fq)(t.palette.primary.main,BF+t.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:(0,Lt.Fq)(t.palette.primary.main,BF+t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,Lt.Fq)(t.palette.primary.main,BF+t.palette.action.selectedOpacity)}}}})}));var WF=function(e){var n=e.rows,r=e.columns,i=e.getAllItems,o=e.setTimeSpace,a=(0,t.useState)(n),l=(0,u.Z)(a,2),s=l[0],c=l[1],d=(0,t.useState)(!0),h=(0,u.Z)(d,2),p=h[0],v=h[1],m=(0,t.useState)(""),g=(0,u.Z)(m,2),y=(g[0],g[1],(0,t.useState)("")),b=(0,u.Z)(y,2),_=b[0],w=b[1],S=(0,t.useState)(""),x=(0,u.Z)(S,2),C=x[0],k=x[1];return(0,t.useEffect)((function(){var e=[],t=1;n.forEach((function(n){e.push(f(f({},n),{},{id_table:t})),t++})),c(e),v(!1)}),[n]),(0,tn.jsx)(tn.Fragment,{children:!p&&(0,tn.jsx)(HF,{getRowId:function(e){return e.id_table},initialState:{sortModel:[{field:"created_at",sort:"desc"}],sorting:{}},rows:s,columns:r,rowHeight:35,pageSize:100,hideFooterRowCount:"true",components:{Toolbar:function(){return(0,tn.jsxs)("div",{style:{display:"flex"},children:[(0,tn.jsxs)(DF,{sx:{display:"flex"},children:[(0,tn.jsx)(NF,{style:{fontSize:"0.8rem"}}),(0,tn.jsx)(kZ,{style:{fontSize:"0.8rem"}})]}),(0,tn.jsx)("div",{style:{width:"20%",display:"flex",color:"#1976d2",fontSize:"0.8rem",marginTop:"5px",fontWeight:500},children:(0,tn.jsxs)("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"right"},children:[(0,tn.jsx)("span",{style:{width:"20%",textAlign:"right"},children:"FROM: "}),(0,tn.jsx)("input",{style:{fontFamily:"Roboto,Helvetica,Arial,sans-serif",color:"#1976d2",border:"solid #1976d2 1px",marginLeft:"5px",fontSize:"0.8rem",width:"40%",borderRadius:"3px"},value:oR()(_).format("YYYY-MM-DD"),type:"date",onChange:function(e){console.log(e.target.value),-1===e.target.value.search("-")?(console.log("from NaN"),w(e.target.value),i()):-1===C.search("-")?(console.log("to NaN"),w(e.target.value)):(o(e.target.value,C),w(e.target.value))}}),(0,tn.jsx)("span",{style:{width:"20%",textAlign:"right"},children:"TO:"}),(0,tn.jsx)("input",{style:{fontFamily:"Roboto,Helvetica,Arial,sans-serif",color:"#1976d2",border:"solid #1976d2 1px",marginLeft:"5px",fontSize:"0.8rem",width:"40%",borderRadius:"3px"},value:C,type:"date",onChange:function(e){-1===e.target.value.search("-")?(k(e.target.value),i()):(-1===_.search("-")||o(_,e.target.value),k(e.target.value))}})]})})]})},Pagination:function(){var e=tO(),t=QR(e,iZ),n=QR(e,aZ);return(0,tn.jsx)(tn.Fragment,{children:(0,tn.jsx)(OR,{color:"primary",size:"small",count:n,page:t+1,onChange:function(t,n){return e.current.setPage(n-1)}})})}},disableColumnMenu:!0,disableSelectionOnClick:!0,sx:{fontSize:"0.7rem",backgroundColor:"white",overflowX:"hidden"},getRowClassName:function(e){return e.indexRelativeToCurrentPage%2===0?"even":"odd"}})})},UF=function(){var e=(0,t.useReducer)((function(e){return e+1}),0),n=(0,u.Z)(e,2),r=n[0],i=(n[1],(0,t.useState)([])),o=(0,u.Z)(i,2),a=o[0],s=o[1],d=(0,t.useState)([]),f=(0,u.Z)(d,2),h=f[0],p=f[1],v=[{field:"created_at",headerName:"Time",width:150,renderCell:function(e){return oR()(parseInt(e.row.created_at)).format("HH:mm:ss-DD/MM/YYYY")}},{field:"item_PID",headerName:"PID Item",width:150},{field:"item_SN",headerName:"SN Item",width:150,renderCell:function(e){if(e.row.SN_parent_item===e.row.item_SN)return(0,tn.jsx)("div",{style:{backgroundColor:"#fcc3c3f0",display:"flex",alignItems:"center"},children:e.row.item_SN})}},{field:"item_desrc",headerName:"Description",width:650},{field:"SN_parent_item",headerName:"Parent SN",width:150,renderCell:function(e){if(e.row.SN_parent_item===e.row.item_SN)return(0,tn.jsx)("div",{style:{backgroundColor:"#fcc3c3f0",display:"flex",alignItems:"center"},children:e.row.SN_parent_item})}}],m=function(){var e=c(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Kk.post(tE);case 3:t=e.sent,s(t.data.pData.sort((function(e,t){return e.created_at>t.created_at?-1:e.created_at<t.created_at?1:0}))),p(t.data.pData),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.log(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}();return(0,t.useEffect)((function(){m()}),[r]),(0,tn.jsx)("div",{className:"viewHome",style:{position:"relative"},children:(0,tn.jsx)(WF,{columns:v,rows:a,getAllItems:m,setTimeSpace:function(e,t){s(h.filter((function(n){return parseInt(n.created_at)>Date.parse(e)&&parseInt(n.created_at)<Date.parse(t)+86399e3})).sort((function(e,t){return e.created_at<t.created_at?-1:e.created_at>t.created_at?1:0})))}})})};function VF(e,t){for(var n=e;(n=n.parentElement)&&!n.matches(t););return n}var qF="Menu.Target component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported",KF=Ay("Menu component was not found in the tree"),YF=(0,u.Z)(KF,2),GF=YF[0],XF=YF[1],$F=cl((function(e){return{divider:{margin:"calc(".concat(e.spacing.xs,"px / 2) -5px"),borderTop:"1px solid ".concat("dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[2])}}})),JF=Object.defineProperty,QF=Object.getOwnPropertySymbols,ez=Object.prototype.hasOwnProperty,tz=Object.prototype.propertyIsEnumerable,nz=function(e,t,n){return t in e?JF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},rz={},iz=(0,t.forwardRef)((function(e,n){var r=za("MenuDivider",rz,e),i=(r.children,r.className),o=function(e,t){var n={};for(var r in e)ez.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&QF){var i,o=ot(QF(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&tz.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(r,["children","className"]),a=XF(),l=a.classNames,s=a.styles,c=a.unstyled,u=$F(null,{name:"Menu",classNames:l,styles:s,unstyled:c}),d=u.classes,f=u.cx;return t.createElement(Ss,function(e,t){for(var n in t||(t={}))ez.call(t,n)&&nz(e,n,t[n]);if(QF){var r,i=ot(QF(t));try{for(i.s();!(r=i.n()).done;)n=r.value,tz.call(t,n)&&nz(e,n,t[n])}catch(pW){i.e(pW)}finally{i.f()}}return e}({className:f(d.divider,i),ref:n},o))}));function oz(e,t){return function(n){null==e||e(n),null==t||t(n)}}iz.displayName="@mantine/core/MenuDivider";var az=Object.defineProperty,lz=Object.getOwnPropertySymbols,sz=Object.prototype.hasOwnProperty,cz=Object.prototype.propertyIsEnumerable,uz=function(e,t,n){return t in e?az(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},dz=function(e,t){for(var n in t||(t={}))sz.call(t,n)&&uz(e,n,t[n]);if(lz){var r,i=ot(lz(t));try{for(i.s();!(r=i.n()).done;){n=r.value;cz.call(t,n)&&uz(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},fz=function(e,t){var n={};for(var r in e)sz.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&lz){var i,o=ot(lz(e));try{for(o.s();!(i=o.n()).done;){r=i.value;t.indexOf(r)<0&&cz.call(e,r)&&(n[r]=e[r])}}catch(pW){o.e(pW)}finally{o.f()}}return n},hz={};function pz(e){var n=za("MenuDropdown",hz,e),r=n.children,i=n.onMouseEnter,o=n.onMouseLeave,a=fz(n,["children","onMouseEnter","onMouseLeave"]),l=(0,t.useRef)(),s=XF(),c=oz(i,(function(){return"hover"===s.trigger&&s.openDropdown()})),u=oz(o,(function(){return"hover"===s.trigger&&s.closeDropdown()}));return t.createElement(Vb.Dropdown,dz({onMouseEnter:c,onMouseLeave:u,role:"menu","aria-orientation":"vertical"},a),t.createElement("div",{tabIndex:-1,"data-menu-dropdown":!0,"data-autofocus":!0,onKeyDown:function(e){"ArrowUp"!==e.key&&"ArrowDown"!==e.key||(e.preventDefault(),l.current.querySelectorAll("[data-menu-item]")[0].focus())},ref:l,style:{outline:0}},r))}function vz(e){var t=e.parentSelector,n=e.siblingSelector,r=e.onKeyDown,i=e.loop,o=void 0===i||i,a=e.activateOnFocus,l=void 0!==a&&a,s=e.dir,c=void 0===s?"rtl":s,u=e.orientation;return function(e){var i;null==r||r(e);var a=Array.from((null==(i=VF(e.currentTarget,t))?void 0:i.querySelectorAll(n))||[]).filter((function(n){return function(e,t,n){return VF(e,n)===VF(t,n)}(e.currentTarget,n,t)})),s=a.findIndex((function(t){return e.currentTarget===t})),d=function(e,t,n){for(var r=e+1;r<t.length;r+=1)if(!t[r].disabled)return r;if(n)for(var i=0;i<t.length;i+=1)if(!t[i].disabled)return i;return e}(s,a,o),f=function(e,t,n){for(var r=e-1;r>=0;r-=1)if(!t[r].disabled)return r;if(n)for(var i=t.length-1;i>-1;i-=1)if(!t[i].disabled)return i;return e}(s,a,o),h="rtl"===c?f:d,p="rtl"===c?d:f;switch(e.key){case"ArrowRight":"horizontal"===u&&(e.stopPropagation(),e.preventDefault(),a[h].focus(),l&&a[h].click());break;case"ArrowLeft":"horizontal"===u&&(e.stopPropagation(),e.preventDefault(),a[p].focus(),l&&a[p].click());break;case"ArrowUp":"vertical"===u&&(e.stopPropagation(),e.preventDefault(),a[f].focus(),l&&a[f].click());break;case"ArrowDown":"vertical"===u&&(e.stopPropagation(),e.preventDefault(),a[d].focus(),l&&a[d].click());break;case"Home":e.stopPropagation(),e.preventDefault(),!a[0].disabled&&a[0].focus();break;case"End":e.stopPropagation(),e.preventDefault();var v=a.length-1;!a[v].disabled&&a[v].focus()}}}pz.displayName="@mantine/core/MenuDropdown";var mz=Object.defineProperty,gz=Object.defineProperties,yz=Object.getOwnPropertyDescriptors,bz=Object.getOwnPropertySymbols,_z=Object.prototype.hasOwnProperty,wz=Object.prototype.propertyIsEnumerable,Sz=function(e,t,n){return t in e?mz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},xz=function(e,t){for(var n in t||(t={}))_z.call(t,n)&&Sz(e,n,t[n]);if(bz){var r,i=ot(bz(t));try{for(i.s();!(r=i.n()).done;){n=r.value;wz.call(t,n)&&Sz(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},Cz=function(e,t){return gz(e,yz(t))},kz=cl((function(e,t){var n=t.color,r=t.radius;return{item:Cz(xz({},e.fn.fontStyles()),{WebkitTapHighlightColor:"transparent",fontSize:e.fontSizes.sm,border:0,backgroundColor:"transparent",outline:0,width:"100%",textAlign:"left",textDecoration:"none",boxSizing:"border-box",padding:"".concat(e.spacing.xs,"px ").concat(e.spacing.sm,"px"),cursor:"pointer",borderRadius:e.fn.radius(r),color:n?e.fn.variant({variant:"filled",primaryFallback:!1,color:n}).background:"dark"===e.colorScheme?e.colors.dark[0]:e.black,display:"flex",alignItems:"center","&:disabled":{color:"dark"===e.colorScheme?e.colors.dark[3]:e.colors.gray[5],pointerEvents:"none",userSelect:"none"},"&[data-hovered]":{backgroundColor:n?e.fn.variant({variant:"light",color:n}).background:"dark"===e.colorScheme?e.fn.rgba(e.colors.dark[3],.35):e.colors.gray[1]}}),itemLabel:{flex:1},itemIcon:{display:"flex",justifyContent:"center",alignItems:"center",marginRight:e.spacing.xs},itemRightSection:{}}})),Ez=kz,Rz=Object.defineProperty,Oz=Object.defineProperties,Pz=Object.getOwnPropertyDescriptors,Tz=Object.getOwnPropertySymbols,Mz=Object.prototype.hasOwnProperty,Lz=Object.prototype.propertyIsEnumerable,Zz=function(e,t,n){return t in e?Rz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Iz={},Dz=(0,t.forwardRef)((function(e,n){var r=za("MenuItem",Iz,e),i=r.children,o=r.className,a=r.color,l=r.closeMenuOnClick,s=r.icon,c=r.rightSection,u=function(e,t){var n={};for(var r in e)Mz.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Tz){var i,o=ot(Tz(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&Lz.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(r,["children","className","color","closeMenuOnClick","icon","rightSection"]),d=XF(),f=Ez({radius:d.radius,color:a},{name:"Menu",classNames:d.classNames,styles:d.styles,unstyled:d.unstyled}),h=f.classes,p=f.cx,v=f.theme,m=(0,t.useRef)(),g=d.getItemIndex(m.current),y=u,b=oz(y.onMouseLeave,(function(){return d.setHovered(-1)})),_=oz(y.onMouseEnter,(function(){return d.setHovered(d.getItemIndex(m.current))})),w=oz(y.onClick,(function(){"boolean"===typeof l?l&&d.closeDropdownImmediately():d.closeOnItemClick&&d.closeDropdownImmediately()})),S=oz(y.onFocus,(function(){return d.setHovered(d.getItemIndex(m.current))}));return t.createElement(Ss,function(e,t){return Oz(e,Pz(t))}(function(e,t){for(var n in t||(t={}))Mz.call(t,n)&&Zz(e,n,t[n]);if(Tz){var r,i=ot(Tz(t));try{for(i.s();!(r=i.n()).done;)n=r.value,Lz.call(t,n)&&Zz(e,n,t[n])}catch(pW){i.e(pW)}finally{i.f()}}return e}({component:"button",type:"button"},u),{tabIndex:-1,onFocus:S,className:p(h.item,o),ref:Xo(m,n),role:"menuitem","data-menu-item":!0,"data-hovered":d.hovered===g||void 0,onMouseEnter:_,onMouseLeave:b,onClick:w,onKeyDown:vz({siblingSelector:"[data-menu-item]",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:d.loop,dir:v.dir,orientation:"vertical",onKeyDown:y.onKeydown})}),s&&t.createElement("div",{className:h.itemIcon},s),i&&t.createElement("div",{className:h.itemLabel},i),c&&t.createElement("div",{className:h.itemRightSection},c))}));Dz.displayName="@mantine/core/MenuItem";var jz=Dz,Az=cl((function(e){return{label:{color:"dark"===e.colorScheme?e.colors.dark[2]:e.colors.gray[6],fontWeight:500,fontSize:e.fontSizes.xs,padding:"calc(".concat(e.spacing.xs,"px / 2) ").concat(e.spacing.sm,"px"),cursor:"default"}}})),Nz=Object.defineProperty,Fz=Object.getOwnPropertySymbols,zz=Object.prototype.hasOwnProperty,Bz=Object.prototype.propertyIsEnumerable,Hz=function(e,t,n){return t in e?Nz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Wz={},Uz=(0,t.forwardRef)((function(e,n){var r=za("MenuLabel",Wz,e),i=r.children,o=r.className,a=function(e,t){var n={};for(var r in e)zz.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Fz){var i,o=ot(Fz(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&Bz.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(r,["children","className"]),l=XF(),s=l.classNames,c=l.styles,u=l.unstyled,d=Az(null,{name:"Menu",classNames:s,styles:c,unstyled:u}),f=d.classes,h=d.cx;return t.createElement(vc,function(e,t){for(var n in t||(t={}))zz.call(t,n)&&Hz(e,n,t[n]);if(Fz){var r,i=ot(Fz(t));try{for(i.s();!(r=i.n()).done;)n=r.value,Bz.call(t,n)&&Hz(e,n,t[n])}catch(pW){i.e(pW)}finally{i.f()}}return e}({className:h(f.label,o),ref:n},a),i)}));Uz.displayName="@mantine/core/MenuLabel";var Vz=Object.defineProperty,qz=Object.getOwnPropertySymbols,Kz=Object.prototype.hasOwnProperty,Yz=Object.prototype.propertyIsEnumerable,Gz=function(e,t,n){return t in e?Vz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Xz={refProp:"ref"},$z=(0,t.forwardRef)((function(e,n){var r=za("MenuTarget",Xz,e),i=r.children,o=r.refProp,a=function(e,t){var n={};for(var r in e)Kz.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&qz){var i,o=ot(qz(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&Yz.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(r,["children","refProp"]);if(!Wy(i))throw new Error(qF);var l=XF(),s=oz(i.props.onClick,(function(){return"click"===l.trigger&&l.toggleDropdown()})),c=oz(i.props.onMouseEnter,(function(){return"hover"===l.trigger&&l.openDropdown()})),u=oz(i.props.onMouseLeave,(function(){return"hover"===l.trigger&&l.closeDropdown()}));return t.createElement(Vb.Target,function(e,t){for(var n in t||(t={}))Kz.call(t,n)&&Gz(e,n,t[n]);if(qz){var r,i=ot(qz(t));try{for(i.s();!(r=i.n()).done;)n=r.value,Yz.call(t,n)&&Gz(e,n,t[n])}catch(pW){i.e(pW)}finally{i.f()}}return e}({refProp:o,popupType:"menu",ref:n},a),(0,t.cloneElement)(i,{onClick:s,onMouseEnter:c,onMouseLeave:u,"data-expanded":!!l.opened||void 0}))}));$z.displayName="@mantine/core/MenuTarget";var Jz=cl({dropdown:{padding:4}});var Qz=Object.defineProperty,eB=Object.defineProperties,tB=Object.getOwnPropertyDescriptors,nB=Object.getOwnPropertySymbols,rB=Object.prototype.hasOwnProperty,iB=Object.prototype.propertyIsEnumerable,oB=function(e,t,n){return t in e?Qz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},aB=function(e,t){for(var n in t||(t={}))rB.call(t,n)&&oB(e,n,t[n]);if(nB){var r,i=ot(nB(t));try{for(i.s();!(r=i.n()).done;){n=r.value;iB.call(t,n)&&oB(e,n,t[n])}}catch(pW){i.e(pW)}finally{i.f()}}return e},lB=function(e,t){return eB(e,tB(t))},sB=function(e,t){var n={};for(var r in e)rB.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&nB){var i,o=ot(nB(e));try{for(o.s();!(i=o.n()).done;){r=i.value;t.indexOf(r)<0&&iB.call(e,r)&&(n[r]=e[r])}}catch(pW){o.e(pW)}finally{o.f()}}return n},cB={closeOnItemClick:!0,loop:!0,trigger:"click",openDelay:0,closeDelay:100};function uB(e){var n=za("Menu",cB,e),r=n.children,i=n.onOpen,o=n.onClose,a=n.opened,l=n.defaultOpened,s=n.onChange,c=n.closeOnItemClick,d=n.loop,f=n.closeOnEscape,h=n.trigger,p=n.openDelay,v=n.closeDelay,m=n.classNames,g=n.styles,y=n.unstyled,b=n.radius,_=sB(n,["children","onOpen","onClose","opened","defaultOpened","onChange","closeOnItemClick","loop","closeOnEscape","trigger","openDelay","closeDelay","classNames","styles","unstyled","radius"]),w=Jz(),S=w.classes,x=w.cx,C=function(){var e=(0,t.useState)(-1),n=(0,u.Z)(e,2),r=n[0],i=n[1];return[r,{setHovered:i,resetHovered:function(){return i(-1)}}]}(),k=(0,u.Z)(C,2),E=k[0],R=k[1],O=R.setHovered,P=R.resetHovered,T=fd({value:a,defaultValue:l,finalValue:!1,onChange:s}),M=(0,u.Z)(T,2),L=M[0],Z=M[1],I=function(){Z(!1),L&&(null==o||o())},D=function(){Z(!0),!L&&(null==i||i())},j=function(e){var n=e.open,r=e.close,i=e.openDelay,o=e.closeDelay,a=(0,t.useRef)(-1),l=(0,t.useRef)(-1),s=function(){window.clearTimeout(a.current),window.clearTimeout(l.current)};return(0,t.useEffect)((function(){return s}),[]),{openDropdown:function(){s(),0===i?n():a.current=window.setTimeout(n,i)},closeDropdown:function(){s(),0===o?r():l.current=window.setTimeout(r,o)}}}({open:D,close:I,closeDelay:v,openDelay:p}),A=j.openDropdown,N=j.closeDropdown;return Qo((function(){P()}),[L]),t.createElement(GF,{value:{opened:L,toggleDropdown:function(){return L?I():D()},getItemIndex:function(e){return function(e,t,n){var r;return n?Array.from((null==(r=VF(n,t))?void 0:r.querySelectorAll(e))||[]).findIndex((function(e){return e===n})):null}("[data-menu-item]","[data-menu-dropdown]",e)},hovered:E,setHovered:O,closeOnItemClick:c,closeDropdown:"click"===h?I:N,openDropdown:"click"===h?D:A,closeDropdownImmediately:I,loop:d,trigger:h,radius:b,classNames:m,styles:g,unstyled:y}},t.createElement(Vb,lB(aB({},_),{radius:b,opened:L,onChange:Z,defaultOpened:l,trapFocus:"click"===h,closeOnEscape:f&&"click"===h,__staticSelector:"Menu",classNames:lB(aB({},m),{dropdown:x(S.dropdown,null==m?void 0:m.dropdown)}),styles:g,unstyled:y,onClose:I,onOpen:D}),r))}uB.displayName="@mantine/core/Menu",uB.Item=jz,uB.Label=Uz,uB.Dropdown=pz,uB.Target=$z,uB.Divider=iz;var dB=cl((function(e,t){var n=t.color;return{root:{backgroundColor:e.fn.themeColor(n,"dark"===e.colorScheme?5:2),color:"dark"===e.colorScheme?e.colors.dark[9]:"inherit"}}})),fB=dB,hB=Object.defineProperty,pB=Object.getOwnPropertySymbols,vB=Object.prototype.hasOwnProperty,mB=Object.prototype.propertyIsEnumerable,gB=function(e,t,n){return t in e?hB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},yB={color:"yellow"},bB=(0,t.forwardRef)((function(e,n){var r=za("Mark",yB,e),i=r.color,o=r.className,a=r.unstyled,l=function(e,t){var n={};for(var r in e)vB.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&pB){var i,o=ot(pB(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&mB.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(r,["color","className","unstyled"]),s=fB({color:i},{unstyled:a,name:"Mark"}),c=s.classes,u=s.cx;return t.createElement(Ss,function(e,t){for(var n in t||(t={}))vB.call(t,n)&&gB(e,n,t[n]);if(pB){var r,i=ot(pB(t));try{for(i.s();!(r=i.n()).done;)n=r.value,mB.call(t,n)&&gB(e,n,t[n])}catch(pW){i.e(pW)}finally{i.f()}}return e}({component:"mark",ref:n,className:u(c.root,o)},l))}));function _B(e){return e.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")}bB.displayName="@mantine/core/Mark";var wB=Object.defineProperty,SB=Object.getOwnPropertySymbols,xB=Object.prototype.hasOwnProperty,CB=Object.prototype.propertyIsEnumerable,kB=function(e,t,n){return t in e?wB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},EB={highlightColor:"yellow"},RB=(0,t.forwardRef)((function(e,n){var r=za("Highlight",EB,e),i=r.children,o=r.highlight,a=r.highlightColor,l=r.highlightStyles,s=r.unstyled,c=function(e,t){var n={};for(var r in e)xB.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&SB){var i,o=ot(SB(e));try{for(o.s();!(i=o.n()).done;)r=i.value,t.indexOf(r)<0&&CB.call(e,r)&&(n[r]=e[r])}catch(pW){o.e(pW)}finally{o.f()}}return n}(r,["children","highlight","highlightColor","highlightStyles","unstyled"]),u=function(e,t){if(null==t)return[{chunk:e,highlighted:!1}];var n=Array.isArray(t)?t.map(_B):_B(t);if(!(Array.isArray(n)?n.filter((function(e){return e.trim().length>0})).length>0:""!==n.trim()))return[{chunk:e,highlighted:!1}];var r="string"===typeof n?n.trim():n.filter((function(e){return 0!==e.trim().length})).map((function(e){return e.trim()})).join("|"),i=new RegExp("(".concat(r,")"),"gi"),o=e.split(i).map((function(e){return{chunk:e,highlighted:i.test(e)}})).filter((function(e){return e.chunk}));return o}(i,o);return t.createElement(vc,function(e,t){for(var n in t||(t={}))xB.call(t,n)&&kB(e,n,t[n]);if(SB){var r,i=ot(SB(t));try{for(i.s();!(r=i.n()).done;)n=r.value,CB.call(t,n)&&kB(e,n,t[n])}catch(pW){i.e(pW)}finally{i.f()}}return e}({unstyled:s,ref:n},c),u.map((function(e,n){var r=e.chunk;return e.highlighted?t.createElement(bB,{unstyled:s,key:n,color:a,sx:l},r):t.createElement("span",{key:n},r)})))}));RB.displayName="@mantine/core/Highlight";var OB=RB,PB=n(8422),TB=n(1499),MB=n(4666),LB=Ro("download","IconDownload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 11l5 5l5 -5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]]),ZB=Ro("lock-access","IconLockAccess",[["path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2",key:"svg-0"}],["path",{d:"M4 16v2a2 2 0 0 0 2 2h2",key:"svg-1"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v2",key:"svg-2"}],["path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2",key:"svg-3"}],["path",{d:"M8 11m0 1a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1z",key:"svg-4"}],["path",{d:"M10 11v-2a2 2 0 1 1 4 0v2",key:"svg-5"}]]),IB=Ro("scan","IconScan",[["path",{d:"M4 7v-1a2 2 0 0 1 2 -2h2",key:"svg-0"}],["path",{d:"M4 17v1a2 2 0 0 0 2 2h2",key:"svg-1"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v1",key:"svg-2"}],["path",{d:"M16 20h2a2 2 0 0 0 2 -2v-1",key:"svg-3"}],["path",{d:"M5 12l14 0",key:"svg-4"}]]),DB=Ro("reload","IconReload",[["path",{d:"M19.933 13.041a8 8 0 1 1 -9.925 -8.788c3.899 -1 7.935 1.007 9.425 4.747",key:"svg-0"}],["path",{d:"M20 4v5h-5",key:"svg-1"}]]),jB=Ro("copy","IconCopy",[["path",{d:"M8 8m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2",key:"svg-1"}]]),AB=Ro("refresh","IconRefresh",[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]]),NB=Ro("point-filled","IconPointFilled",[["path",{d:"M12 7a5 5 0 1 1 -4.995 5.217l-.005 -.217l.005 -.217a5 5 0 0 1 4.995 -4.783z",fill:"currentColor",key:"svg-0",strokeWidth:"0"}]]),FB=n(2973),zB=n.n(FB);var BB,HB=function(e){var n=e.rows,r=e.columns,i=e.setOpenHistory,o=e.setOpenArea,a=(0,t.useState)(n),l=(0,u.Z)(a,2),s=l[0],c=l[1],d=(0,t.useState)(!0),h=(0,u.Z)(d,2),p=h[0],v=h[1],m=(0,t.useState)(""),g=(0,u.Z)(m,2);return g[0],g[1],(0,t.useEffect)((function(){var e=[],t=1;n.forEach((function(n){e.push(f(f({},n),{},{id_table:t})),t++})),c(e),v(!1)}),[n]),(0,tn.jsx)(tn.Fragment,{children:!p&&(0,tn.jsx)(LF,{getRowId:function(e){return e.id_table},initialState:{sorting:{sortModel:[{field:"created_at",sort:"desc"}]}},rows:s,columns:r,rowHeight:35,pageSize:100,hideFooterRowCount:"true",components:{Toolbar:function(){return(0,tn.jsx)("div",{style:{display:"flex"},children:(0,tn.jsxs)(DF,{sx:{display:"flex"},children:[(0,tn.jsx)(NF,{style:{fontSize:"0.6rem"}}),(0,tn.jsx)(kZ,{style:{fontSize:"0.6rem"}})]})})},Pagination:function(){var e=tO(),t=QR(e,iZ),n=QR(e,aZ);return(0,tn.jsxs)(tn.Fragment,{children:[(0,tn.jsx)(Bn,{variant:"contained",size:"small",onClick:function(){i(!1),o(!0)},children:"Report box"}),(0,tn.jsx)(OR,{color:"primary",size:"small",count:n,page:t+1,onChange:function(t,n){return e.current.setPage(n-1)}})]})}},disableColumnMenu:!0,disableSelectionOnClick:!0,sx:{fontSize:"0.7rem",backgroundColor:"white",overflowX:"hidden"}})})},WB=function(e){var n=e.deadline,r=void 0===n?(new Date).toString():n,i=(0,t.useMemo)((function(){return Date.parse(r)}),[r]),o=(0,t.useState)(i-Date.now()),a=(0,u.Z)(o,2),l=a[0],s=a[1];return(0,t.useEffect)((function(){var e=setInterval((function(){return s(i-Date.now())}),1e3);return function(){return clearInterval(e)}}),[i]),(0,tn.jsx)("div",{className:"timer",style:{display:"flex",width:"100%"},children:Object.entries({Minutes:l/6e4%60*-1,Seconds:l/1e3%60*-1}).map((function(e){var t=(0,u.Z)(e,2),n=t[0],r=t[1];return(0,tn.jsx)("div",{children:(0,tn.jsx)("div",{children:(0,tn.jsxs)("p",{children:[":","".concat(Math.floor(r)).padStart(2,"0")]})})},n)}))})},UB=(n(2699),n(9024),function(e){var n=e.socket,r=e.user,i=(0,t.useReducer)((function(e){return e+1}),0),a=(0,u.Z)(i,2),s=a[0],d=a[1],f=(0,t.useState)(!1),h=(0,u.Z)(f,2),p=h[0],m=h[1],g=(0,t.useState)(!1),y=(0,u.Z)(g,2),b=y[0],_=y[1],w=(0,t.useState)([]),S=(0,u.Z)(w,2),x=S[0],C=S[1],k=(0,t.useState)([]),E=(0,u.Z)(k,2),R=E[0],O=E[1],P=(0,t.useState)([]),T=(0,u.Z)(P,2),M=T[0],L=T[1],Z=(0,t.useState)(3),I=(0,u.Z)(Z,2),D=(I[0],I[1],(0,t.useState)(!1)),j=(0,u.Z)(D,2),A=j[0],N=(j[1],(0,t.useState)()),F=(0,u.Z)(N,2),z=F[0],B=F[1],H=(0,t.useState)(""),W=(0,u.Z)(H,2),U=W[0],V=W[1],q=(0,t.useState)(""),K=(0,u.Z)(q,2),G=K[0],X=K[1],$=(0,t.useState)("AU-dev"===r.full_name?1:2),J=(0,u.Z)($,2),Q=J[0],ee=J[1],te=(0,t.useState)(""),ne=(0,u.Z)(te,2),re=ne[0],ie=ne[1],oe=(0,t.useState)(!0),ae=(0,u.Z)(oe,2),le=ae[0],se=ae[1],ce=(0,t.useState)([]),ue=(0,u.Z)(ce,2),de=ue[0],fe=ue[1],he=(0,t.useState)([]),pe=(0,u.Z)(he,2),ve=pe[0],me=pe[1],ge=(0,t.useState)([]),ye=(0,u.Z)(ge,2),be=ye[0],_e=ye[1],we=(0,t.useState)([]),Se=(0,u.Z)(we,2),xe=(Se[0],Se[1]),Ce=(0,t.useState)([]),ke=(0,u.Z)(Ce,2),Ee=(ke[0],ke[1],(0,t.useState)([])),Re=(0,u.Z)(Ee,2),Oe=Re[0],Pe=Re[1],Te=(0,t.useState)([]),Me=(0,u.Z)(Te,2),Le=Me[0],Ze=Me[1],Ie=(0,t.useState)([]),De=(0,u.Z)(Ie,2),je=De[0],Ae=De[1],Ne=(0,t.useState)([]),Fe=(0,u.Z)(Ne,2),ze=Fe[0],Be=Fe[1],He=(0,t.useState)(""),We=(0,u.Z)(He,2),Ue=We[0],Ve=We[1],qe=(0,t.useState)(""),Ke=(0,u.Z)(qe,2),Ye=Ke[0],Ge=Ke[1],Xe=(0,t.useState)([]),$e=(0,u.Z)(Xe,2),Je=$e[0],Qe=$e[1],et=(0,t.useState)(""),tt=(0,u.Z)(et,2),nt=(tt[0],tt[1]),rt=(0,t.useState)(""),it=(0,u.Z)(rt,2),ot=(it[0],it[1]),at=(0,t.useState)(""),lt=(0,u.Z)(at,2),st=lt[0],ct=lt[1],ut=(0,t.useState)(!1),dt=(0,u.Z)(ut,2),ft=dt[0],ht=(dt[1],(0,t.useState)([])),pt=(0,u.Z)(ht,2),vt=pt[0],mt=pt[1],gt=(0,t.useState)([]),yt=(0,u.Z)(gt,2),bt=yt[0],_t=yt[1],wt=(0,t.useState)(!1),St=(0,u.Z)(wt,2),xt=St[0],Ct=(St[1],(0,t.useState)(!1)),kt=(0,u.Z)(Ct,2),Et=kt[0],Rt=kt[1],Ot=(0,t.useState)(!1),Pt=(0,u.Z)(Ot,2),Tt=(Pt[0],Pt[1],(0,t.useState)([])),Mt=(0,u.Z)(Tt,2),Lt=Mt[0],Zt=Mt[1],It=(0,t.useState)([]),Dt=(0,u.Z)(It,2),jt=Dt[0],At=Dt[1],Nt=(0,t.useState)([]),Ft=(0,u.Z)(Nt,2),zt=Ft[0],Bt=Ft[1],Ht=(0,t.useState)([]),Wt=(0,u.Z)(Ht,2),Ut=Wt[0],Vt=Wt[1],qt=(0,t.useState)([]),Kt=(0,u.Z)(qt,2),Yt=(Kt[0],Kt[1]),Gt=(0,t.useState)(0===r.role?"AU-dev":r.full_name),Xt=(0,u.Z)(Gt,2),$t=Xt[0],Jt=Xt[1],Qt=(0,t.useState)([]),en=(0,u.Z)(Qt,2),nn=en[0],rn=en[1],on=(0,t.useState)([]),an=(0,u.Z)(on,2),ln=an[0],sn=an[1],cn=(0,t.useState)([]),un=(0,u.Z)(cn,2),dn=un[0],fn=un[1],hn=(0,t.useState)([]),pn=(0,u.Z)(hn,2),vn=pn[0],mn=pn[1],gn=(0,t.useState)([]),yn=(0,u.Z)(gn,2),bn=yn[0],_n=yn[1],wn=(0,t.useState)([]),Sn=(0,u.Z)(wn,2),xn=Sn[0],Cn=Sn[1],kn=(0,t.useState)(""),En=(0,u.Z)(kn,2),Rn=En[0],On=En[1],Pn=(0,t.useState)(!1),Tn=(0,u.Z)(Pn,2),Mn=Tn[0],Ln=Tn[1],Zn=(0,t.useState)({line:"",port:"",clear:"",ip:""}),In=(0,u.Z)(Zn,2),Dn=In[0],jn=In[1],An=(0,t.useState)(0),Nn=(0,u.Z)(An,2),Fn=Nn[0],zn=Nn[1],Hn=function(){var e=c(l().mark((function e(){var t,n,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[],n=[],r=[],e.prev=3,e.next=6,Kk.post(Jk,{});case 6:e.sent.data.pData.map((function(e){"MODEL_SPECIAL"===e.key&&t.push(e.value),"HIGHLIGHT_STRING"!==e.key&&"MODEL_SPECIAL"!==e.key&&"MEMORY_SPECIAL"!==e.key||n.push(e.value),"CHECK_RAM_EXTRA"===e.key&&r.push(e.value)})),mn(t),Cn(n),_n(r),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),console.log(e.t0);case 16:case"end":return e.stop()}}),e,null,[[3,13]])})));return function(){return e.apply(this,arguments)}}(),Wn=[{field:"created_at",headerName:"Time",width:110,renderCell:function(e){return oR()(parseInt(e.row.created_at)).format("HH:mm:ss-D/M/YY")}},{field:"line",headerName:"Line",width:30},{field:"PID",headerName:"PID",width:170},{field:"SN",headerName:"SN",width:130},{field:"log_status",headerName:"Status",width:100,renderCell:function(e){return-1!==e.row.log_status.search("DPEL")||"Faulty"===e.row.log_status?(0,tn.jsx)(vo,{title:(0,tn.jsx)("div",{style:{width:"100%"},children:"Click to show report"}),placement:"left",children:(0,tn.jsx)("div",{style:{color:-1!==e.row.log_status.search("DPEL")?"green":"orange",fontWeight:700,cursor:"pointer"},onClick:function(){_(!1),V(e.row.log_content),ie(e.row.log_content),B(M.filter((function(t){return t.id_line===e.row.log_line}))[0]),se(!1)},children:e.row.log_status.split("--")[0]})}):(0,tn.jsx)(vo,{title:(0,tn.jsx)("div",{style:{width:"100%",wordWrap:"break-word"},children:e.row.log_content}),placement:"left",children:(0,tn.jsx)("div",{style:{color:"red",fontWeight:700},children:e.row.log_status})})}},{field:"command",headerName:"Command",width:350},{field:"@",headerName:"",width:50,renderCell:function(e){return(0,tn.jsx)(vo,{title:(0,tn.jsx)("div",{style:{width:"100%"},children:"Download file"}),placement:"left",children:(0,tn.jsx)(R_,{onClick:function(){zF()(e.row.log_content,"line"+e.row.line+"_"+oR()(parseInt(e.row.created_at)).format("HH-mm-ss_DD-MM-YYYY")+"_"+e.row.log_status)},children:(0,tn.jsx)(LB,{width:18,height:18})})})}}],Un=function(){var e=c(l().mark((function e(){var t,n,r,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[],e.prev=1,e.next=4,Kk.post(nE);case 4:(i=e.sent).data.pData.map((function(e){t.push(e.sta_name)})),ee(null===(n=i.data.pData.filter((function(e){return e.sta_name===$t}))[0])||void 0===n?void 0:n.id_station),Yt(t.sort((function(e,t){return e<t?-1:e>t?1:0}))),O(i.data.pData.sort((function(e,t){return e.sta_name<t.sta_name?-1:e.sta_name>t.sta_name?1:0}))),jn(i.data.pData.filter((function(e){return e.sta_name===$t}))[0]),Kn(null===(r=i.data.pData.filter((function(e){return e.sta_name===$t}))[0])||void 0===r?void 0:r.id_station,i.data.pData),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),console.log(e.t0);case 16:case"end":return e.stop()}}),e,null,[[1,13]])})));return function(){return e.apply(this,arguments)}}(),Vn=function(){var e=c(l().mark((function e(){var t,n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[],e.prev=1,e.next=4,Kk.post(OE);case 4:n=e.sent,(t=n.data).unshift("None"),Qe(t),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(1),console.log(e.t0);case 13:case"end":return e.stop()}}),e,null,[[1,10]])})));return function(){return e.apply(this,arguments)}}(),qn=function(){var e=c(l().mark((function e(){var t,n,r,i,o,a;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[],n=[],r=[],i=[],e.prev=4,e.next=7,Kk.post(sE);case 7:for(o=e.sent,a=0;a<o.data.pData.length;a++)"break"===o.data.pData[a].group_action&&(t.push(o.data.pData[a].group_name),n.push(o.data.pData[a].id_group)),"UpdateIOS"===o.data.pData[a].group_action&&(r.push(o.data.pData[a].group_name),i.push(o.data.pData[a].id_group));t.unshift("None"),r.unshift("None"),Ze(r),Pe(t),Ae(n),Be(i),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(4),console.log(e.t0);case 20:case"end":return e.stop()}}),e,null,[[4,17]])})));return function(){return e.apply(this,arguments)}}(),Kn=function(){var e=c(l().mark((function e(t,n){var r,i,o,a,s,c,u,d;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=[],i=[],e.prev=2,e.next=5,Kk.post(wE,{id_station:t});case 5:for(o=e.sent,a=0;a<o.data.listLastLog.length;a++)r.push(o.data.listLastLog[a]);C(r),s=0;case 9:if(!(s<n.length)){e.next=19;break}return e.next=12,Kk.post(wE,{id_station:n[s].id_station});case 12:for(c=e.sent,u=[],d=0;d<c.data.listLastLog.length;d++)Date.now()-c.data.listLastLog[d].created_at<36e5&&u.push(c.data.listLastLog[d]);i.push({idSta:n[s].id_station,temp2:u});case 16:s++,e.next=9;break;case 19:rn(i),e.next=25;break;case 22:e.prev=22,e.t0=e.catch(2),console.log(e.t0);case 25:case"end":return e.stop()}}),e,null,[[2,22]])})));return function(t,n){return e.apply(this,arguments)}}(),Yn=function(){var e=c(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Kk.post(SE,{id_station:Q});case 3:t=e.sent,Zt(t.data.listLog),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),Gn=function(){var e=c(l().mark((function e(){var t,n,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=[],e.next=4,Kk.post(PE);case 4:r=e.sent,null===(t=r.data.line)||void 0===t||t.map((function(e){n.push(null===e||void 0===e?void 0:e.split("|||")[1])})),fn(n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),console.log(e.t0);case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}(),Xn=function(){var e=c(l().mark((function e(t){var n,r,i,o,a,s,c,u;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=[],r=[],e.prev=2,e.next=5,Kk.post(rE,{id:t});case 5:for(i=e.sent,o=0;o<i.data.pData.length;o++)1===i.data.pData[o].enable&&n.push(i.data.pData[o]);a=0;case 8:if(!(a<R.length)){e.next=18;break}return e.next=11,Kk.post(rE,{id:R[a].id_station});case 11:for(s=e.sent,c=[],u=0;u<s.data.pData.length;u++)1===s.data.pData[u].enable&&c.push(s.data.pData[u]);r.push({id:R[a].id_station,lengthList:c.length});case 15:a++,e.next=8;break;case 18:sn(r),L(n),e.next=25;break;case 22:e.prev=22,e.t0=e.catch(2),console.log(e.t0);case 25:case"end":return e.stop()}}),e,null,[[2,22]])})));return function(t){return e.apply(this,arguments)}}(),$n=function(){var e=c(l().mark((function e(t,r){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Kk.post(xE,{id:x.filter((function(e){return e.log_line===t}))[0].id_log,command:r});case 3:1===e.sent.data.pCode?null===n||void 0===n||n.emit("changeCommand",{}):Y.error("Command fail"),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t,n){return e.apply(this,arguments)}}(),Jn=function(){var e=c(l().mark((function e(t,n){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Kk.post(EE,{id_line:n,clear_line:t,sta_ip:Dn.sta_ip});case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.log(e.t0);case 8:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t,n){return e.apply(this,arguments)}}(),Qn=function(){var e=c(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{t=oR()(Date.now()).format("HH_mm_ss-DD_MM_YYYY").toString()+"_TestFile.txt",zF()(U,t)}catch(n){console.log(n)}case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),er=function(){var e=c(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,de.length!==M.length){e.next=16;break}return e.next=4,Kk.post(kE,{infoStation:Dn,listLine:[],action:t,type:"all",length:M.length});case 4:e.t0=t,e.next="1"===e.t0?7:"2"===e.t0?9:"3"===e.t0?11:13;break;case 7:return Y.success("Start to turn on"),e.abrupt("break",13);case 9:return Y.success("Start to turn off"),e.abrupt("break",13);case 11:return Y.success("Start to reboot"),e.abrupt("break",13);case 13:fe([]),e.next=33;break;case 16:n=0;case 17:if(!(n<de.length)){e.next=23;break}return e.next=20,Kk.post(kE,{infoStation:Dn,listLine:de[n],action:t,type:"one",length:1});case 20:n++,e.next=17;break;case 23:e.t1=t,e.next="1"===e.t1?26:"2"===e.t1?28:"3"===e.t1?30:32;break;case 26:return Y.success("Start to turn on"),e.abrupt("break",32);case 28:return Y.success("Start to turn off"),e.abrupt("break",32);case 30:return Y.success("Start to reboot"),e.abrupt("break",32);case 32:fe([]);case 33:e.next=38;break;case 35:e.prev=35,e.t2=e.catch(0),console.log(e.t2);case 38:case"end":return e.stop()}}),e,null,[[0,35]])})));return function(t){return e.apply(this,arguments)}}(),tr=function(e){var t="";try{de.map((function(n){if(Ut.filter((function(e){return e.id===n.id_line})).length>0&&0===bt.filter((function(e){return e.id_line===n.id_line})).length){if("line"===e){var r=void 0!==x.filter((function(e){return e.log_line===n.id_line}))[0]&&-1!==x.filter((function(e){return e.log_line===n.id_line}))[0].log_content.search("VID:")?x.filter((function(e){return e.log_line===n.id_line}))[0].log_content.slice(x.filter((function(e){return e.log_line===n.id_line}))[0].log_content.search("VID:")+4,x.filter((function(e){return e.log_line===n.id_line}))[0].log_content.search("VID:")+8):"",i=void 0!==x.filter((function(e){return e.log_line===n.id_line}))[0]?"ROMMON:"===x.filter((function(e){return e.log_line===n.id_line}))[0].log_status||"SWITCH:"===x.filter((function(e){return e.log_line===n.id_line}))[0].log_status?x.filter((function(e){return e.log_line===n.id_line}))[0].log_content.split("\n")[1].split("|||")[1]:"PASSWORD"===x.filter((function(e){return e.log_line===n.id_line}))[0].log_status?x.filter((function(e){return e.log_line===n.id_line}))[0].log_content.split("\n")[1].split("--")[1]:x.filter((function(e){return e.log_line===n.id_line}))[0].PID:"",o=void 0!==x.filter((function(e){return e.log_line===n.id_line}))[0]&&""!==x.filter((function(e){return e.log_line===n.id_line}))[0].SN?x.filter((function(e){return e.log_line===n.id_line}))[0].SN:"",a=bn.length>0&&void 0!==bn.filter((function(e){return void 0!==x.filter((function(e){return e.log_line===n.id_line}))[0]&&-1!==x.filter((function(e){return e.log_line===n.id_line}))[0].PID.search(e.split(":")[0])}))[0]&&105*parseInt(bn.filter((function(e){return void 0!==x.filter((function(e){return e.log_line===n.id_line}))[0]&&-1!==x.filter((function(e){return e.log_line===n.id_line}))[0].PID.search(e.split(":")[0])}))[0].split(":")[1])/100<rr(void 0!==x.filter((function(e){return e.log_line===n.id_line}))[0]&&""!==x.filter((function(e){return e.log_line===n.id_line}))[0].log_content?x.filter((function(e){return e.log_line===n.id_line}))[0].log_content:"")?" - extra RAM - "+(parseInt(rr(void 0!==x.filter((function(e){return e.log_line===n.id_line}))[0]&&""!==x.filter((function(e){return e.log_line===n.id_line}))[0].log_content?x.filter((function(e){return e.log_line===n.id_line}))[0].log_content:""))/1024/1024).toFixed(2)+"G (Default "+(parseInt(bn.filter((function(e){return void 0!==x.filter((function(e){return e.log_line===n.id_line}))[0]&&-1!==x.filter((function(e){return e.log_line===n.id_line}))[0].PID.search(e.split(":")[0])}))[0].split(":")[1])/1024/1024).toFixed(2)+"G)":"",l=void 0!==x.filter((function(e){return e.log_line===n.id_line}))[0]&&""!==x.filter((function(e){return e.log_line===n.id_line}))[0].log_content&&vn.filter((function(e){return-1!==nr(x.filter((function(e){return e.log_line===n.id_line}))[0].log_content).split("\n").slice(3).toString().search(e)})).length>0?" - "+vn.filter((function(e){return-1!==nr(x.filter((function(e){return e.log_line===n.id_line}))[0].log_content).split("\n").slice(3).toString().search(e)})).toString().replace(/,/g," , ")+" inside":"";(""!==i&&void 0!==i||""!==o&&void 0!==o)&&(t=t+"Line "+n.line_number+": "+i.trim()+" "+r+" SN: "+o+a+l+"\n"),navigator.clipboard.writeText(t),fe([])}if("PID"===e){var s=void 0!==x.filter((function(e){return e.log_line===n.id_line}))[0]&&-1!==x.filter((function(e){return e.log_line===n.id_line}))[0].log_content.search("VID:")?x.filter((function(e){return e.log_line===n.id_line}))[0].log_content.slice(x.filter((function(e){return e.log_line===n.id_line}))[0].log_content.search("VID:")+4,x.filter((function(e){return e.log_line===n.id_line}))[0].log_content.search("VID:")+8):"",c=void 0!==x.filter((function(e){return e.log_line===n.id_line}))[0]?"ROMMON:"===x.filter((function(e){return e.log_line===n.id_line}))[0].log_status||"SWITCH:"===x.filter((function(e){return e.log_line===n.id_line}))[0].log_status?x.filter((function(e){return e.log_line===n.id_line}))[0].log_content.split("\n")[1].split("|||")[1]:"PASSWORD"===x.filter((function(e){return e.log_line===n.id_line}))[0].log_status?x.filter((function(e){return e.log_line===n.id_line}))[0].log_content.split("\n")[1].split("--")[1]:"ERROR"===x.filter((function(e){return e.log_line===n.id_line}))[0].log_status?dn.filter((function(e){var t;return-1!==(null===(t=x.filter((function(e){return e.log_line===n.id_line}))[0].log_content)||void 0===t?void 0:t.search("="+e))}))[0]:x.filter((function(e){return e.log_line===n.id_line}))[0].PID:"",u=void 0!==x.filter((function(e){return e.log_line===n.id_line}))[0]&&""!==x.filter((function(e){return e.log_line===n.id_line}))[0].SN?x.filter((function(e){return e.log_line===n.id_line}))[0].SN:"";(""!==c&&void 0!==c||""!==u&&void 0!==u)&&(t=t+c.trim()+" "+s+" SN: "+u+"\n"),navigator.clipboard.writeText(t),fe([])}if("SN"===e){var d=void 0!==x.filter((function(e){return e.log_line===n.id_line}))[0]&&""!==x.filter((function(e){return e.log_line===n.id_line}))[0].SN?x.filter((function(e){return e.log_line===n.id_line}))[0].SN:"";""!==d&&(t=t+d+"\n")}}navigator.clipboard.writeText(t),fe([])}))}catch(n){console.log(n)}},nr=function(e){for(var t="",n=[],r=[],i=[],o=e.replace(/\$ /g,"").split("\n"),a=0;a<o.length;a++)-1!==o[a].search("NAME:")&&-1!==o[a].search("DESCR:")&&-1!==o[a+1].search("PID:")&&-1!==o[a+1].search("SN:")&&""!==o[a+1].slice(o[a+1].search("PID:"),o[a+1].search("PID:")+100).split(",")[0].split(":")[1].trim()&&""!==o[a+1].slice(o[a+1].search("SN:"),o[a+1].search("SN:")+100).split(",")[0].split(":")[1].trim()&&(n.push(o[a]+"\n"+o[a+1]),r.push(o[a+1].slice(o[a+1].search("PID:"),o[a+1].search("PID:")+100).split(",")[0].split(":")[1].trim()),i.push(o[a+1].slice(o[a+1].search("SN:"),o[a+1].search("SN:")+100).split(",")[0].split(":")[1].trim()));for(var l=0;l<r.length;l++)for(var s=0;s<r.length;s++)r[l]===r[s]&&i[l]===i[s]&&l!==s&&(n.splice(r.indexOf(r[s]),1),i.splice(r.indexOf(r[s]),1),r.splice(r.indexOf(r[s]),1));for(var c=0;c<n.length;c++)for(var u=0;u<n.length;u++)n[c].slice(n[c].search("DESCR:"),n[c].search("DESCR:")+100).split("\n")[0].split(":")[1].trim()===n[u].slice(n[u].search("DESCR:"),n[u].search("DESCR:")+100).split("\n")[0].split(":")[1].trim()&&c!==u&&(n[c]=n[c].replace(n[c].slice(n[c].search("SN:"),n[c].search("SN:")+1e3).split("\n")[0].trim(),n[c].slice(n[c].search("SN:"),n[c].search("SN:")+1e3).split("\n")[0].trim()+", "+n[u].slice(n[u].search("SN:"),n[u].search("SN:")+1e3).split("\n")[0].split(":")[1].trim()),n.splice(u,1));return n.map((function(e){e=e.replace(e.slice(e.search("PID:"),e.search("PID:")+2e3).split("\n")[0],e.slice(e.search("PID:"),e.search("PID:")+100).split(",")[0].split(":")[1].trim()+"\n"+e.slice(e.search("SN:"),e.search("SN:")+1e3).split("\n")[0].split(":")[1].trim()+"\n\n"),t=t+e+"\n"})),t},rr=function(e){var t=e.replace(/\$ /g,""),n="",r=t.slice(t.search("bytes of memory.")-100,t.search("bytes of memory.")+"bytes of memory.".length);if(-1!==r.search("bytes of memory.")){var i=(n=r.split("\n")[r.split("\n").length-1]).slice(n.search("bytes of memory")-100,n.search("bytes of memory")).split(" ").reverse()[1];return parseInt(i.split("/")[0].replace("K",""))}if(-1!==t.search("physical memory")){var o=t.slice(t.search("physical memory")-100,t.search("physical memory")+"physical memory".length),a=o.split("\n")[o.split("\n").length-1],l=a.slice(a.search("bytes of physical memory")-50,a.search("bytes of physical memory")).split(" ").reverse()[1];return parseInt(l.split("/")[0].replace("K",""))}};(0,t.useEffect)((function(){null===n||void 0===n||n.emit("newUser",r.username),null===n||void 0===n||n.on("send-response",(function(e){mt((function(t){return[].concat((0,v.Z)(t),[e])})),X(e),d()})),null===n||void 0===n||n.on("updateListRun",(function(e){_e(e)})),null===n||void 0===n||n.on("sendLogs",(function(e){var t=String.fromCodePoint(8),n=new RegExp("".concat(t," ").concat(t),"g"),r=new RegExp("".concat(t),"g");zn(0),On(e.data.replace(n,"").replace(r,"").replace(/ --More-- /g,"")),setTimeout((function(){ir()}),100)})),null===n||void 0===n||n.on("updateListTimer",(function(e){_t(e)})),null===n||void 0===n||n.on("sendListDeviceOn",(function(e){At(e);var t=[],i=[],o=[];e.map((function(e){t.push(e.infoLine),i.push(e.station),o.push(e.mode)}));try{for(var a=[],l=0;l<t.length;l++)a.push({id_line:t[l].id_line,time:Date(Date.now()),action:"Auto-test",timeCheck:Date.now()});_t(a),null===n||void 0===n||n.emit("sendListTimer",a),null===n||void 0===n||n.emit("sendListRun",t);for(var s=0;s<t.length;s++)Kk.post(CE,{infoStation:i[s],listLine:t[s],mode:o[s],created_by:r.username})}catch(c){console.log(c)}})),null===n||void 0===n||n.on("sendListTesting",(function(e){Vt(e)})),null===n||void 0===n||n.on("sendListDeviceOff",(function(e){Bt(e)})),null===n||void 0===n||n.on("updateCommand",(function(e){d()}))}),[n]),console.log(Ut),(0,t.useEffect)((function(){var e=[];mt(vt.filter((function(e,t,n){return n.indexOf(e)===t}))),vt.map((function(t){e.push(t.id)})),me(ve.filter((function(t){return!1===e.includes(t.id_line)}))),d()}),[G]),(0,t.useEffect)((function(){setTimeout((function(){jt.filter((function(e,t,n){return n.indexOf(e)===t}))}),5e3)}),[jt]),(0,t.useEffect)((function(){Un(),Kn(Q,R),Yn(),qn(),Vn(),fe([]),Gn(),Hn(),void 0!==Q&&Xn(Q)}),[s,Q]),(0,t.useEffect)((function(){}),[]);var ir=function(){var e=document.getElementById("textarea_id");e.scrollTop=e.scrollHeight};return(0,tn.jsxs)("div",{className:"viewHome",children:[(0,tn.jsxs)("div",{children:[(0,tn.jsxs)("div",{className:"divStation",style:{position:"relative"},children:[(0,tn.jsxs)(Bn,{style:{width:"10%",display:0===r.role?"block":"none"},variant:"AU-dev"===$t?"contained":"outlined",size:"small",onClick:function(){ee(2),jn(R.filter((function(e){return"AU-dev"===e.sta_name}))[0]),Jt("AU-dev")},children:["AU-dev -"," ",(0,tn.jsx)("span",{style:{color:"#25f125",fontWeight:"800"},children:nn.filter((function(e){return 2===e.idSta})).length>0&&nn.filter((function(e){return 2===e.idSta}))[0].temp2.filter((function(e){return-1!==e.log_status.search("DPEL")})).length}),"/",(0,tn.jsx)("span",{style:{color:"orange",fontWeight:"800"},children:nn.filter((function(e){return 2===e.idSta})).length>0&&nn.filter((function(e){return 2===e.idSta}))[0].temp2.filter((function(e){return"Faulty"===e.log_status})).length}),"/",(0,tn.jsx)("span",{style:{color:"orangered",fontWeight:"800"},children:nn.filter((function(e){return 2===e.idSta})).length>0&&void 0!==ln.filter((function(e){return 2===e.id}))[0]&&ln.filter((function(e){return 2===e.id}))[0].lengthList-nn.filter((function(e){return 2===e.idSta}))[0].temp2.filter((function(e){return-1!==e.log_status.search("DPEL")||"Faulty"===e.log_status})).length})]}),(0,tn.jsxs)(Bn,{style:{width:"10%",marginLeft:"10px",display:-1!==r.full_name.search("AUS")||0===r.role?"block":"none"},variant:"AUS-1"===$t?"contained":"outlined",size:"small",onClick:function(){ee(5),jn(R.filter((function(e){return"AUS-1"===e.sta_name}))[0]),Jt("AUS-1")},children:["AUS-1 -"," ",(0,tn.jsx)("span",{style:{color:"#25f125",fontWeight:"800"},children:nn.filter((function(e){return 5===e.idSta})).length>0&&nn.filter((function(e){return 5===e.idSta}))[0].temp2.filter((function(e){return-1!==e.log_status.search("DPEL")})).length}),"/",(0,tn.jsx)("span",{style:{color:"orange",fontWeight:"800"},children:nn.filter((function(e){return 5===e.idSta})).length>0&&nn.filter((function(e){return 5===e.idSta}))[0].temp2.filter((function(e){return"Faulty"===e.log_status})).length}),"/",(0,tn.jsx)("span",{style:{color:"orangered",fontWeight:"800"},children:nn.filter((function(e){return 5===e.idSta})).length>0&&void 0!==ln.filter((function(e){return 5===e.id}))[0]&&ln.filter((function(e){return 5===e.id}))[0].lengthList-nn.filter((function(e){return 5===e.idSta}))[0].temp2.filter((function(e){return-1!==e.log_status.search("DPEL")||"Faulty"===e.log_status})).length})]}),(0,tn.jsxs)(Bn,{style:{width:"10%",marginLeft:"10px",display:-1!==r.full_name.search("AUS")||0===r.role?"block":"none"},variant:"AUS-2"===$t?"contained":"outlined",size:"small",onClick:function(){ee(3),jn(R.filter((function(e){return"AUS-2"===e.sta_name}))[0]),Jt("AUS-2")},children:["AUS-2 -"," ",(0,tn.jsx)("span",{style:{color:"#25f125",fontWeight:"800"},children:nn.filter((function(e){return 3===e.idSta})).length>0&&nn.filter((function(e){return 3===e.idSta}))[0].temp2.filter((function(e){return-1!==e.log_status.search("DPEL")})).length}),"/",(0,tn.jsx)("span",{style:{color:"orange",fontWeight:"800"},children:nn.filter((function(e){return 3===e.idSta})).length>0&&nn.filter((function(e){return 3===e.idSta}))[0].temp2.filter((function(e){return"Faulty"===e.log_status})).length}),"/",(0,tn.jsx)("span",{style:{color:"orangered",fontWeight:"800"},children:nn.filter((function(e){return 3===e.idSta})).length>0&&void 0!==ln.filter((function(e){return 3===e.id}))[0]&&ln.filter((function(e){return 3===e.id}))[0].lengthList-nn.filter((function(e){return 3===e.idSta}))[0].temp2.filter((function(e){return-1!==e.log_status.search("DPEL")||"Faulty"===e.log_status})).length})]}),(0,tn.jsxs)(Bn,{style:{width:"10%",marginLeft:"10px",display:-1!==r.full_name.search("US1 ")||0===r.role||-1!==r.full_name.search("AUS")?"block":"none"},variant:"US1 01-08"===$t?"contained":"outlined",size:"small",onClick:function(){ee(1),jn(R.filter((function(e){return"US1 01-08"===e.sta_name}))[0]),Jt("US1 01-08")},children:["US 01-08 -"," ",(0,tn.jsx)("span",{style:{color:"#25f125",fontWeight:"800"},children:nn.filter((function(e){return 1===e.idSta})).length>0&&nn.filter((function(e){return 1===e.idSta}))[0].temp2.filter((function(e){return-1!==e.log_status.search("DPEL")})).length}),"/",(0,tn.jsx)("span",{style:{color:"orange",fontWeight:"800"},children:nn.filter((function(e){return 1===e.idSta})).length>0&&nn.filter((function(e){return 1===e.idSta}))[0].temp2.filter((function(e){return"Faulty"===e.log_status})).length}),"/",(0,tn.jsx)("span",{style:{color:"orangered",fontWeight:"800"},children:nn.filter((function(e){return 1===e.idSta})).length>0&&void 0!==ln.filter((function(e){return 1===e.id}))[0]&&ln.filter((function(e){return 1===e.id}))[0].lengthList-nn.filter((function(e){return 1===e.idSta}))[0].temp2.filter((function(e){return-1!==e.log_status.search("DPEL")||"Faulty"===e.log_status})).length})]}),(0,tn.jsxs)(Bn,{style:{width:"10%",marginLeft:"10px",display:-1!==r.full_name.search("US1 ")||0===r.role||-1!==r.full_name.search("AUS")?"block":"none"},variant:"US2 11-18"===$t?"contained":"outlined",size:"small",onClick:function(){ee(4),jn(R.filter((function(e){return"US2 11-18"===e.sta_name}))[0]),Jt("US2 11-18")},children:["US 11-18 -"," ",(0,tn.jsx)("span",{style:{color:"#25f125",fontWeight:"800"},children:nn.filter((function(e){return 4===e.idSta})).length>0&&nn.filter((function(e){return 4===e.idSta}))[0].temp2.filter((function(e){return-1!==e.log_status.search("DPEL")})).length}),"/",(0,tn.jsx)("span",{style:{color:"orange",fontWeight:"800"},children:nn.filter((function(e){return 4===e.idSta})).length>0&&nn.filter((function(e){return 4===e.idSta}))[0].temp2.filter((function(e){return"Faulty"===e.log_status})).length}),"/",(0,tn.jsx)("span",{style:{color:"orangered",fontWeight:"800"},children:nn.filter((function(e){return 4===e.idSta})).length>0&&void 0!==ln.filter((function(e){return 4===e.id}))[0]&&ln.filter((function(e){return 4===e.id}))[0].lengthList-nn.filter((function(e){return 4===e.idSta}))[0].temp2.filter((function(e){return-1!==e.log_status.search("DPEL")||"Faulty"===e.log_status})).length})]}),(0,tn.jsx)("div",{style:{width:"45%",textAlign:"right",position:"absolute",right:15},children:(0,tn.jsx)(Bn,{sx:{fontSize:"0.6rem",boxShadow:"0 0 5px 0 gray",fontWeight:700},onClick:function(){_(!0),Rt(!0),B(void 0)},children:"History / Edit"})}),(0,tn.jsx)(w_,{style:{width:"10%",margin:"0vh 0 0 1%",display:xt?"flex":"none"},placeholder:"Select group",data:Oe,value:Ye,onChange:function(e){"None"===e?(ot(""),Ge("")):(Ge(e),ot(je[Oe.indexOf(e)-1]))},searchable:!0,clearable:!0})]}),(0,tn.jsxs)("div",{style:{display:"flex"},children:[(0,tn.jsx)(w_,{style:{width:"18%",margin:"1vh 0 0 3%",display:ft?"block":"none"},value:Ue,placeholder:"Select group",data:Le,onChange:function(e){"None"===e?nt(""):(nt(ze[Le.indexOf(e)-1]),Ve(e))},searchable:!0}),(0,tn.jsx)(vo,{title:(0,tn.jsx)(Bn,{variant:"contained",size:"small",children:"Update list IOS"}),placement:"right",children:(0,tn.jsx)(w_,{style:{width:"18%",margin:"1vh 0 0 30px",display:ft?"block":"none"},value:st,placeholder:"Select IOS",data:Je,onChange:function(e){ct("None"===e?"":Je[Je.indexOf(e)])},searchable:!0})})]})]}),(0,tn.jsx)("div",{className:"info",children:(0,tn.jsx)("div",{className:"divInfoStationTest",style:{width:"100%"},children:(0,tn.jsxs)("div",{className:"divInfoLine",children:[(0,tn.jsxs)("div",{className:"infoLineTitleTest",children:[(0,tn.jsx)("div",{style:{textAlign:"center",position:"absolute",left:"0.3%",cursor:"pointer"},children:Ut.length>0&&Ut.filter((function(e){return e.infoLine.station_id===Q})).length===M.length?(0,tn.jsx)(vo,{title:"Enable all",placement:"top",children:(0,tn.jsx)(ZB,{width:20,height:20,onClick:function(){null===n||void 0===n||n.emit("updateListTesting",{status:"enable",allLine:M})},color:"red"})}):(0,tn.jsx)(vo,{title:"Disable all",placement:"top",children:(0,tn.jsx)(IB,{width:20,height:20,onClick:function(){null===n||void 0===n||n.emit("updateListTesting",{status:"disable",allLine:M})},color:"green"})})}),(0,tn.jsxs)("div",{style:{textAlign:"center",position:"absolute",left:"1.9%",width:"8%"},children:[(0,tn.jsxs)(uB,{position:"top",arrowPosition:"center",offset:12,trigger:"hover",children:[(0,tn.jsx)(uB.Target,{children:(0,tn.jsx)(vo,{title:"Power control",children:(0,tn.jsx)(TB.Z,{style:{width:18,height:18,margin:"0vh 0 -5px -3px",cursor:"pointer"}})})}),(0,tn.jsx)(uB.Dropdown,{style:{height:"2.5vh",backgroundColor:"rgb(186 200 208 / 65%)"},children:(0,tn.jsxs)("div",{style:{display:"flex",width:"100px",height:"5vh"},children:[(0,tn.jsx)(vo,{title:(0,tn.jsx)("span",{style:{fontSize:"0.6rem"},children:"Turn on"}),placement:"top",children:(0,tn.jsx)(TB.Z,{style:{width:18,height:18,color:"green",margin:"0 22% 0 0",cursor:"pointer"},onClick:function(){0===de.length?Y.error("No line is selected"):er("1")}})}),(0,tn.jsx)(vo,{title:(0,tn.jsx)("span",{style:{fontSize:"0.6rem"},children:"Turn off"}),placement:"top",children:(0,tn.jsx)(TB.Z,{style:{width:18,height:18,color:"red",margin:"0 22% 0 0",cursor:"pointer"},onClick:function(){0===de.length?Y.error("No line is selected"):er("2")}})}),(0,tn.jsx)(vo,{title:(0,tn.jsx)("span",{style:{fontSize:"0.6rem"},children:"Reboot"}),placement:"top",children:(0,tn.jsx)(DB,{style:{width:18,height:18,color:"orange",cursor:"pointer"},onClick:function(){0===de.length?Y.error("No line is selected"):er("3")}})})]})})]}),(0,tn.jsx)(rD,{size:"small",style:{margin:"0 2px 0 5%",padding:0,color:"rgb(0, 105, 167)"},checked:de.length===M.length,onChange:function(e){!1===A&&(e.target.checked?(fe(M),me(M)):(fe([]),me([])))}}),"Line"," ",(0,tn.jsx)(R_,{style:{width:32,height:25,marginTop:"-0.5vh"},onClick:function(){tr("line")},children:(0,tn.jsx)(jB,{width:40,height:40,color:"rgb(0, 105, 167)"})})]}),(0,tn.jsxs)("div",{style:{textAlign:"center",position:"absolute",width:"6%",left:"10%"},children:["Status",x.length>0&&(0,tn.jsx)(vo,{title:"Refresh status",placement:"top",children:(0,tn.jsx)(R_,{variant:"contained",style:{marginLeft:"1%"},onClick:function(){C([]),xe([])},size:"small",children:(0,tn.jsx)(AB,{width:15,height:15,color:"rgb(0, 105, 167)"})})})]}),(0,tn.jsxs)("div",{style:{width:"5%",position:"absolute",left:"18%"},children:["PID",(0,tn.jsx)(R_,{style:{width:32,height:25,marginTop:"-0.5vh"},onClick:function(){tr("PID")},children:(0,tn.jsx)(jB,{width:40,height:40,color:"rgb(0, 105, 167)"})})]}),(0,tn.jsx)("div",{style:{width:"5%",position:"absolute",left:"27.5%"},children:"VID"}),(0,tn.jsxs)("div",{style:{width:"5%",position:"absolute",left:"33%"},children:["SN",(0,tn.jsx)(R_,{style:{width:32,height:25,marginTop:"-0.5vh"},onClick:function(){tr("SN")},children:(0,tn.jsx)(jB,{width:40,height:40,color:"rgb(0, 105, 167)"})})]}),(0,tn.jsx)("div",{style:{width:"5%",position:"absolute",left:"41%"},children:"Created at"}),(0,tn.jsx)("div",{style:{width:"5%",position:"absolute",left:"59%"},children:"Action"}),(0,tn.jsxs)("div",{style:{width:"5%",position:"absolute",left:"79%"},children:["Note"," "]}),(0,tn.jsxs)("div",{style:{width:"5%",position:"absolute",left:"92%"},children:["Other items"," "]})]}),M.length>0?M.map((function(e,t){var i,a,s,u,f,h,p,m,g,y,b,w,S,C,k,E,O,P,T,M,L,Z,I,D,j,A,N,F,z,H;return(0,tn.jsxs)("div",{className:"lineDiv",style:{backgroundColor:parseInt(e.line_number)%2===0?"#b9cfd769":"white"},children:[(0,tn.jsx)("div",{style:{position:"absolute",left:"1",marginTop:"4px",cursor:"pointer",zIndex:1,width:"2%",alignItems:"center",justifyContent:"center",display:"flex",height:"3.5vh"},children:Ut.filter((function(t){return t.id===e.id_line})).length>0&&"edit"===Ut.filter((function(t){return t.id===e.id_line}))[0].status?(0,tn.jsx)(vo,{title:"Enable scan",placement:"left",children:(0,tn.jsx)(ZB,{width:20,height:20,onClick:function(){null===n||void 0===n||n.emit("updateListTesting",e),Kn(Q,R)},color:"red"})}):(0,tn.jsx)(vo,{title:"Disable scan",placement:"left",children:(0,tn.jsx)(IB,{width:20,height:20,onClick:function(){null===n||void 0===n||n.emit("updateListTesting",e)},color:"green"})})}),(0,tn.jsxs)("div",{className:"infoLineTest",children:[(0,tn.jsxs)("div",{className:"lineName",style:{width:"9%",fontSize:"0.85rem",display:"flex",position:"absolute",left:"1",height:"100%",alignItems:"center",justifyContent:"right"},children:[Ut.filter((function(t){return t.id===e.id_line})).length>0?"edit"===Ut.filter((function(t){return t.id===e.id_line}))[0].status?(0,tn.jsx)("div",{style:{width:"30%",textAlign:"center"},children:(0,tn.jsx)(NB,{width:35,height:25,style:{color:"orange"}})}):(0,tn.jsx)("div",{style:{width:"30%",textAlign:"center"},children:(0,tn.jsx)(NB,{width:35,height:25,style:{color:"green"}})}):(0,tn.jsx)("div",{style:{width:"30%",textAlign:"center"},children:(0,tn.jsx)(au,{variant:"bars",size:"xs",color:"orange",style:{margin:"0 0px 0 1%"}})}),(0,tn.jsxs)("div",{style:{width:"55%"},children:[(0,tn.jsx)(rD,{size:"small",style:{width:"20px",padding:0},checked:!!de.includes(e),onChange:function(t){0===be.filter((function(t){return t.id_line===e.id_line})).length&&(t.target.checked?(fe((function(t){return[].concat((0,v.Z)(t),[e])})),me((function(t){return[].concat((0,v.Z)(t),[e])}))):(fe(de.filter((function(t){return t!==e}))),me(de.filter((function(t){return t!==e})))))}}),(0,tn.jsx)(vo,{title:(0,tn.jsx)(vo,{title:"Open CLI",placement:"top",children:(0,tn.jsx)("div",{style:{textAlign:"center"},children:(0,tn.jsx)(MB.Z,{style:{width:25,height:25,color:"white",cursor:"pointer"},onClick:function(){On(""),setTimeout((function(){ir()}),5e3),Ln(!0),null===n||void 0===n||n.emit("createTelnet",{port:Dn.sta_port_telnet,host:Dn.sta_ip,email:r.username,clear_line:e.line_clear,line_number:e.line_number,line_port:e.line_port}),setTimeout((function(){null===n||void 0===n||n.emit("receiverCommand",{email:r.username,command:"\r"})}),3e3)}})})}),placement:"left",children:(0,tn.jsxs)("span",{style:{textDecoration:zt.filter((function(t){return t.id===e.id_line})).length>0&&void 0===Ut.filter((function(t){return t.id===e.id_line}))[0]?"line-through red 2px":"none"},children:["Line ",e.line_number,":"]})})]})]}),(0,tn.jsx)("div",{style:{width:"10%",position:"absolute",left:"7.5%",alignItems:"center",justifyContent:"center",fontSize:"0.85rem",height:"100%",display:Ut.filter((function(t){return t.id===e.id_line})).length>0||"loadingIOS"===(null===(i=x.filter((function(t){return t.log_line===e.id_line}))[0])||void 0===i?void 0:i.log_status)?"flex":"none"},children:bt.filter((function(t){return t.id_line===e.id_line})).length>0?(0,tn.jsx)(vo,{title:"Click to cancel action",children:(0,tn.jsxs)("div",{style:{display:"flex",width:"100%",fontWeight:700,justifyContent:"center",alignItems:"center",height:"100%",cursor:"pointer",fontSize:"0.7rem"},onClick:function(){null===n||void 0===n||n.emit("cancelAction",{clear_line:e.line_clear,id:e.id_line}),Jn()},children:[(0,tn.jsxs)("span",{style:{color:"blueviolet"},children:[" ",bt.filter((function(t){return t.id_line===e.id_line}))[0].action]}),(0,tn.jsx)("div",{style:{textAlign:"center"},children:(0,tn.jsx)(WB,{deadline:bt.filter((function(t){return t.id_line===e.id_line}))[0].time})})]})}):x.length>0&&void 0!==x.filter((function(t){return t.log_line===e.id_line}))[0]?(0,tn.jsx)(Bn,{size:"small",color:-1!==x.filter((function(t){return t.log_line===e.id_line}))[0].log_status.search("DPEL")?"success":"Faulty"===x.filter((function(t){return t.log_line===e.id_line}))[0].log_status?"warning":"Wait"===x.filter((function(t){return t.log_line===e.id_line}))[0].log_status||"loadingIOS"===x.filter((function(t){return t.log_line===e.id_line}))[0].log_status?"info":"error",sx:{fontWeight:"800",height:"20px",fontSize:"0.8rem",animationName:"Faulty"===x.filter((function(t){return t.log_line===e.id_line}))[0].log_status?"status-faulty":"none",animationDuration:"Faulty"===x.filter((function(t){return t.log_line===e.id_line}))[0].log_status?"2s":"none",animationIterationCount:"Faulty"===x.filter((function(t){return t.log_line===e.id_line}))[0].log_status?"infinite":"none"},onClick:function(){B(e),d(),_(!1),se(!1),Rt(!0),V(x.filter((function(t){return t.log_line===e.id_line}))[0].log_content),ie(x.filter((function(t){return t.log_line===e.id_line}))[0].log_content)},children:(0,tn.jsxs)(tn.Fragment,{children:[" ",x.filter((function(t){return t.log_line===e.id_line}))[0].log_status.split("--")[0]]})}):""}),(0,tn.jsxs)("div",{style:{width:"9.7%",position:"absolute",left:"16.5%",fontSize:"0.85rem",alignItems:"center",justifyContent:"left",height:"100%",display:Ut.filter((function(t){return t.id===e.id_line})).length>0&&0===bt.filter((function(t){return t.id_line===e.id_line})).length?"flex":"none"},children:[x.length>0&&void 0!==x.filter((function(t){return t.log_line===e.id_line}))[0]&&""!==x.filter((function(t){return t.log_line===e.id_line}))[0].PID?(0,tn.jsxs)(tn.Fragment,{children:[x.filter((function(t){return t.log_line===e.id_line}))[0].PID,(0,tn.jsx)(R_,{style:{width:32,height:25,marginTop:"-0.5vh"},onClick:function(){navigator.clipboard.writeText(x.filter((function(t){return t.log_line===e.id_line}))[0].PID)},children:(0,tn.jsx)(jB,{width:40,height:40,color:"rgb(0, 105, 167)"})})]}):void 0!==x.filter((function(t){return"ERROR"===t.log_status&&t.log_line===e.id_line}))[0]&&(0,tn.jsxs)(tn.Fragment,{children:[dn.filter((function(t){var n;return-1!==(null===(n=x.filter((function(t){return t.log_line===e.id_line}))[0].log_content)||void 0===n?void 0:n.search("="+t))}))[0],(0,tn.jsx)(R_,{style:{width:32,height:25,marginTop:"-0.5vh",display:void 0!==dn.filter((function(t){var n;return-1!==(null===(n=x.filter((function(t){return t.log_line===e.id_line}))[0].log_content)||void 0===n?void 0:n.search("="+t))}))[0]?"flex":"none"},onClick:function(){navigator.clipboard.writeText(dn.filter((function(t){var n;return-1!==(null===(n=x.filter((function(t){return t.log_line===e.id_line}))[0].log_content)||void 0===n?void 0:n.search("="+t))}))[0])},children:(0,tn.jsx)(jB,{width:40,height:40,color:"rgb(0, 105, 167)"})})]}),void 0!==x.filter((function(t){return t.log_line===e.id_line}))[0]&&void 0===x.filter((function(t){return t.log_line===e.id_line}))[0].PID?(0,tn.jsxs)(tn.Fragment,{children:[x.filter((function(t){return t.log_line===e.id_line}))[0].PID,(0,tn.jsx)(R_,{style:{width:32,height:25,marginTop:"-0.5vh"},onClick:function(){navigator.clipboard.writeText(x.filter((function(t){return t.log_line===e.id_line}))[0].PID)},children:(0,tn.jsx)(jB,{width:40,height:40,color:"rgb(0, 105, 167)"})})]}):void 0!==x.filter((function(t){return"ROMMON:"===t.log_status&&t.log_line===e.id_line}))[0]||void 0!==x.filter((function(t){return"SWITCH:"===t.log_status&&t.log_line===e.id_line}))[0]?""!==x.filter((function(t){return t.log_line===e.id_line}))[0].log_content.split("\n")[1].split("|||")[1]&&void 0!==x.filter((function(t){return t.log_line===e.id_line}))[0].log_content.split("\n")[1].split("|||")[1]?(0,tn.jsxs)(tn.Fragment,{children:[x.filter((function(t){return t.log_line===e.id_line}))[0].log_content.split("\n")[1].split("|||")[1],(0,tn.jsx)(R_,{style:{width:32,height:25,marginTop:"-0.5vh"},onClick:function(){navigator.clipboard.writeText(x.filter((function(t){return t.log_line===e.id_line}))[0].log_content.split("\n")[1].split("|||")[1])},children:(0,tn.jsx)(jB,{width:40,height:40,color:"rgb(0, 105, 167)"})})]}):"":void 0!==x.filter((function(t){return"PASSWORD"===t.log_status&&t.log_line===e.id_line}))[0]&&void 0!==x.filter((function(t){return t.log_line===e.id_line}))[0].log_content.split("\n")[1].split("--")[1]&&""!==x.filter((function(t){return t.log_line===e.id_line}))[0].log_content.split("\n")[1].split("--")[1]&&void 0!==x.filter((function(t){return t.log_line===e.id_line}))[0].log_content.split("\n")[1].split("--")[1]?(0,tn.jsxs)(tn.Fragment,{children:[x.filter((function(t){return t.log_line===e.id_line}))[0].log_content.split("\n")[1].split("--")[1],(0,tn.jsx)(R_,{style:{width:32,height:25,marginTop:"-0.5vh"},onClick:function(){navigator.clipboard.writeText(x.filter((function(t){return t.log_line===e.id_line}))[0].log_content.split("\n")[1].split("--")[1].trim())},children:(0,tn.jsx)(jB,{width:40,height:40,color:"rgb(0, 105, 167)"})})]}):""]}),(0,tn.jsx)("div",{style:{width:"4%",position:"absolute",left:"26.3%",height:"100%",fontSize:"0.85rem",alignItems:"center",justifyContent:"center",animationName:void 0!==x.filter((function(t){return t.log_line===e.id_line}))[0]&&-1!==(null===(a=x.filter((function(t){return t.log_line===e.id_line}))[0])||void 0===a||null===(s=a.log_content.split("\n").filter((function(e){return-1!==e.search("VID:")}))[0])||void 0===s||null===(u=s.split(",")[1])||void 0===u?void 0:u.search("V00"))?"V00":"none",animationDuration:void 0!==x.filter((function(t){return t.log_line===e.id_line}))[0]&&-1!==(null===(f=x.filter((function(t){return t.log_line===e.id_line}))[0])||void 0===f||null===(h=f.log_content.split("\n").filter((function(e){return-1!==e.search("VID:")}))[0])||void 0===h||null===(p=h.split(",")[1])||void 0===p?void 0:p.search("V00"))?"2s":"none",animationIterationCount:void 0!==x.filter((function(t){return t.log_line===e.id_line}))[0]&&-1!==(null===(m=x.filter((function(t){return t.log_line===e.id_line}))[0])||void 0===m||null===(g=m.log_content.split("\n").filter((function(e){return-1!==e.search("VID:")}))[0])||void 0===g||null===(y=g.split(",")[1])||void 0===y?void 0:y.search("V00"))?"infinite":"none",display:Ut.filter((function(t){return t.id===e.id_line})).length>0&&0===bt.filter((function(t){return t.id_line===e.id_line})).length&&(null===(b=x.filter((function(t){return t.log_line===e.id_line}))[0])||void 0===b?void 0:b.log_content.split("\n").filter((function(e){return-1!==e.search("VID:")})).length)>0?"flex":"none"},children:x.length>0&&void 0!==x.filter((function(t){return t.log_line===e.id_line}))[0]&&-1!==x.filter((function(t){return t.log_line===e.id_line}))[0].log_content.search("VID:")?x.filter((function(t){return t.log_line===e.id_line}))[0].log_content.slice(x.filter((function(t){return t.log_line===e.id_line}))[0].log_content.search("VID:")+4,x.filter((function(t){return t.log_line===e.id_line}))[0].log_content.search("VID:")+8):""}),(0,tn.jsx)("div",{style:{textAlign:"center",position:"absolute",left:"30.3%",fontSize:"0.85rem",alignItems:"center",justifyContent:"center",height:"100%",width:"9%",display:Ut.filter((function(t){return t.id===e.id_line})).length>0&&0===bt.filter((function(t){return t.id_line===e.id_line})).length?"flex":"none"},children:x.length>0&&void 0!==x.filter((function(t){return t.log_line===e.id_line}))[0]&&""!==x.filter((function(t){return t.log_line===e.id_line}))[0].SN?(0,tn.jsxs)(tn.Fragment,{children:[x.filter((function(t){return t.log_line===e.id_line}))[0].SN,(0,tn.jsx)(R_,{style:{width:32,height:25,marginTop:"-0.5vh"},onClick:function(){navigator.clipboard.writeText(x.filter((function(t){return t.log_line===e.id_line}))[0].SN)},children:(0,tn.jsx)(jB,{width:40,height:40,color:"rgb(0, 105, 167)"})})]}):""}),(0,tn.jsx)("div",{style:{position:"absolute",left:"39.5%",fontSize:"0.85rem",alignItems:"center",justifyContent:"center",height:"100%",width:"7.5%",display:Ut.filter((function(t){return t.id===e.id_line})).length>0&&0===bt.filter((function(t){return t.id_line===e.id_line})).length?"flex":"none"},children:x.length>0&&void 0!==x.filter((function(t){return t.log_line===e.id_line}))[0]?oR()(parseInt(x.filter((function(t){return t.log_line===e.id_line}))[0].created_at)).format("HH:mm:ss-D/M/YY"):""}),(0,tn.jsxs)("div",{style:{textAlign:"center",position:"absolute",left:"47%",alignItems:"center",justifyContent:"center",height:"100%",width:"26%",display:Ut.filter((function(t){return t.id===e.id_line})).length>0&&0===bt.filter((function(t){return t.id_line===e.id_line})).length||zt.filter((function(t){return t.id===e.id_line})).length>0&&0===bt.filter((function(t){return t.id_line===e.id_line})).length?"flex":"none"},children:[zt.filter((function(t){return t.id===e.id_line})).length>0?0===Ut.filter((function(t){return t.id===e.id_line})).length&&zt.filter((function(t){return t.id===e.id_line}))[0].message:x.length>0&&Ut.filter((function(t){return t.id===e.id_line})).length>0&&void 0!==x.filter((function(t){return"PASSWORD"===t.log_status&&t.log_line===e.id_line}))[0]&&(0,tn.jsx)("span",{style:{color:"orange",fontSize:"0.85rem",fontWeight:"700",textAlign:"center"},children:"(On-site tester) Please repower and hold mode button"}),x.length>0&&Ut.filter((function(t){return t.id===e.id_line})).length>0&&void 0!==x.filter((function(t){return"Faulty"===t.log_status&&t.log_line===e.id_line}))[0]?(0,tn.jsxs)("marquee",{style:{color:"orange",fontSize:"0.85rem",fontWeight:"700",textAlign:"center",width:"100%"},scrollamount:"4",children:["(Remote tester) Please check ","---\x3e"," ",x.filter((function(t){return"Faulty"===t.log_status&&t.log_line===e.id_line}))[0].log_content.slice(x.filter((function(t){return"Faulty"===t.log_status&&t.log_line===e.id_line}))[0].log_content.search("Faulty"),x.filter((function(t){return"Faulty"===t.log_status&&t.log_line===e.id_line}))[0].log_content.search("####")-10).replace(/=/g,"").replace("\n\n"," | ")]}):"",x.length>0&&Ut.filter((function(t){return t.id===e.id_line})).length>0&&void 0!==x.filter((function(t){return-1!==t.log_status.search("DPEL")&&t.log_line===e.id_line}))[0]?(0,tn.jsx)("div",{style:{width:"100%"},children:Ut.filter((function(t){return t.id===e.id_line})).length>0&&void 0!==(null===(w=Ut.filter((function(t){return t.id===e.id_line}))[0])||void 0===w?void 0:w.interfaceCheck)?(0,tn.jsxs)("div",{style:{fontSize:"0.7rem",fontWeight:"700",textAlign:"left",display:"flex",flexFlow:"column"},children:[(0,tn.jsx)("p",{style:{color:"green",width:"100%"},children:x.filter((function(t){return-1!==t.log_status.search("DPEL")&&t.log_line===e.id_line}))[0].log_status.split("--")[1]+" (detected "+(null===(S=Ut.filter((function(t){return t.id===e.id_line}))[0])||void 0===S||null===(C=S.interfaceCheck)||void 0===C||null===(k=C.interUp)||void 0===k?void 0:k.length)+"/up "+(null===(E=Ut.filter((function(t){return t.id===e.id_line}))[0])||void 0===E||null===(O=E.interfaceCheck)||void 0===O||null===(P=O.interUpFinal)||void 0===P?void 0:P.length)+"/down "+(null===(T=Ut.filter((function(t){return t.id===e.id_line}))[0])||void 0===T||null===(M=T.interfaceCheck)||void 0===M||null===(L=M.interDown)||void 0===L?void 0:L.length)+")"}),(0,tn.jsx)("span",{style:{width:"100%",fontSize:"0.8rem",color:"orange"},children:(null===(Z=Ut.filter((function(t){return t.id===e.id_line}))[0])||void 0===Z||null===(I=Z.interfaceCheck)||void 0===I?void 0:I.interDown.length)>6?(0,tn.jsx)("marquee",{scrollamount:"4",children:null===(D=Ut.filter((function(t){return t.id===e.id_line}))[0])||void 0===D||null===(j=D.interfaceCheck)||void 0===j||null===(A=j.interDown)||void 0===A?void 0:A.join(", ")}):null===(N=Ut.filter((function(t){return t.id===e.id_line}))[0])||void 0===N||null===(F=N.interfaceCheck)||void 0===F||null===(z=F.interDown)||void 0===z?void 0:z.join(", ")})]}):(0,tn.jsx)("span",{style:{color:"green",fontSize:"0.8rem",fontWeight:"700",textAlign:"center"},children:x.filter((function(t){return-1!==t.log_status.search("DPEL")&&t.log_line===e.id_line}))[0].log_status.split("--")[1]})}):"",x.length>0&&Ut.filter((function(t){return t.id===e.id_line})).length>0&&void 0!==x.filter((function(t){return-1!==t.log_status.search("Error")&&t.log_line===e.id_line}))[0]?(0,tn.jsx)("div",{style:{color:"orangered",fontSize:"0.85rem",fontWeight:"700",textAlign:"center"},children:"(Remote tester) Please check"}):x.length>0&&Ut.filter((function(t){return t.id===e.id_line})).length>0&&void 0!==x.filter((function(t){return-1!==t.log_status.search("ERROR")&&t.log_line===e.id_line}))[0]?(0,tn.jsx)("div",{style:{color:"orangered",fontSize:"0.85rem",fontWeight:"700",textAlign:"center"},children:"(Remote tester) Error loading IOS. Please install IOS image"}):"",x.length>0&&Ut.filter((function(t){return t.id===e.id_line})).length>0&&void 0!==x.filter((function(t){return"Wait"===t.log_status&&t.log_line===e.id_line}))[0]?(0,tn.jsx)("div",{style:{color:"blue",fontSize:"0.8rem",fontWeight:"700",textAlign:"center"},children:"Wait for automatic test"}):""]}),(0,tn.jsx)("div",{style:{textAlign:"center",position:"absolute",left:"73%",alignItems:"center",justifyContent:"center",height:"100%",width:"15%",display:"flex"},children:void 0!==x.filter((function(t){return t.log_line===e.id_line}))[0]?null!==x.filter((function(t){return t.log_line===e.id_line}))[0].command?(0,tn.jsx)("div",{style:{color:"orange",fontSize:"0.8rem",fontWeight:"700",borderBottom:"solid 0.2px gray",height:"100%",width:"96%",display:"flex",alignItems:"center",justifyContent:"center"},children:x.filter((function(t){return t.log_line===e.id_line}))[0].command}):(0,tn.jsx)(sh,{size:"xs",style:{margin:"0.3vh 0 0 0",color:"rgb(0, 105, 167)",fontWeight:700,width:"100%",height:"100%"},placeholder:"Press 'Enter' to commit",value:void 0!==x.filter((function(t){return t.log_line===e.id_line}))[0]?x.filter((function(t){return t.log_line===e.id_line}))[0].command:"",onKeyDown:function(){var t=c(l().mark((function t(n){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:"Enter"===n.key&&($n(e.id_line,n.target.value),Y.success("Add note success!"));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),onChange:function(e){}}):""}),(0,tn.jsx)("div",{style:{textAlign:"center",position:"absolute",alignItems:"center",justifyContent:"center",height:"100%",left:"86.5%",cursor:"pointer",display:void 0!==x.filter((function(t){return t.log_line===e.id_line}))[0]?null===x.filter((function(t){return t.log_line===e.id_line}))[0].command?"none":"flex":"none"},children:(0,tn.jsx)(vo,{title:"Clear note",placement:"left",children:(0,tn.jsx)(PB.Z,{style:{height:25,width:18,color:"gray"},onClick:c(l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:$n(e.id_line,null);case 1:case"end":return t.stop()}}),t)})))})})}),(0,tn.jsxs)("div",{style:(H={position:"absolute",left:"88%",fontSize:"0.8rem",width:"12%",height:"100%",fontWeight:700,backgroundColor:"#93ff00",animationName:"notiItem",animationDuration:"2s",animationIterationCount:"infinite",alignItems:"center",justifyContent:"center"},(0,o.Z)(H,"height","100%"),(0,o.Z)(H,"display",Ut.filter((function(t){return t.id===e.id_line})).length>0&&0===bt.filter((function(t){return t.id_line===e.id_line})).length?void 0!==x.filter((function(t){return t.log_line===e.id_line}))[0]&&""!==x.filter((function(t){return t.log_line===e.id_line}))[0].log_content&&vn.filter((function(t){return-1!==nr(x.filter((function(t){return t.log_line===e.id_line}))[0].log_content).split("\n").slice(3).toString().search(t)})).length>0&&0===bt.filter((function(t){return t.id_line===e.id_line})).length?nr(x.filter((function(t){return t.log_line===e.id_line}))[0].log_content).split("\n").length>8?"flex":"none":bn.length>0&&void 0!==bn.filter((function(t){return void 0!==x.filter((function(t){return t.log_line===e.id_line}))[0]&&-1!==x.filter((function(t){return t.log_line===e.id_line}))[0].PID.search(t.split(":")[0])}))[0]&&105*parseInt(bn.filter((function(t){return void 0!==x.filter((function(t){return t.log_line===e.id_line}))[0]&&-1!==x.filter((function(t){return t.log_line===e.id_line}))[0].PID.search(t.split(":")[0])}))[0].split(":")[1])/100<rr(void 0!==x.filter((function(t){return t.log_line===e.id_line}))[0]&&""!==x.filter((function(t){return t.log_line===e.id_line}))[0].log_content?x.filter((function(t){return t.log_line===e.id_line}))[0].log_content:"")?"flex":"none":"none"),(0,o.Z)(H,"color","#001bff"),(0,o.Z)(H,"cursor","pointer"),H),onClick:function(){V(bn.length>0&&void 0!==bn.filter((function(t){return void 0!==x.filter((function(t){return t.log_line===e.id_line}))[0]&&-1!==x.filter((function(t){return t.log_line===e.id_line}))[0].PID.search(t.split(":")[0])}))[0]&&105*parseInt(bn.filter((function(t){return void 0!==x.filter((function(t){return t.log_line===e.id_line}))[0]&&-1!==x.filter((function(t){return t.log_line===e.id_line}))[0].PID.search(t.split(":")[0])}))[0].split(":")[1])/100<rr(void 0!==x.filter((function(t){return t.log_line===e.id_line}))[0]&&""!==x.filter((function(t){return t.log_line===e.id_line}))[0].log_content?x.filter((function(t){return t.log_line===e.id_line}))[0].log_content:"")?"RAM: "+(rr(void 0!==x.filter((function(t){return t.log_line===e.id_line}))[0]&&""!==x.filter((function(t){return t.log_line===e.id_line}))[0].log_content?x.filter((function(t){return t.log_line===e.id_line}))[0].log_content:"")/1024/1024).toFixed(2).toString()+"G (Default "+(parseInt(bn.filter((function(t){return void 0!==x.filter((function(t){return t.log_line===e.id_line}))[0]&&-1!==x.filter((function(t){return t.log_line===e.id_line}))[0].PID.search(t.split(":")[0])}))[0].split(":")[1])/1024/1024).toFixed(2).toString()+"G)\n=============================================================\n"+nr(x.filter((function(t){return t.log_line===e.id_line}))[0].log_content):nr(x.filter((function(t){return t.log_line===e.id_line}))[0].log_content)),se(!1),_(!1),Rt(!0)},children:[bn.length>0&&void 0!==bn.filter((function(t){return void 0!==x.filter((function(t){return t.log_line===e.id_line}))[0]&&-1!==x.filter((function(t){return t.log_line===e.id_line}))[0].PID.search(t.split(":")[0])}))[0]&&105*parseInt(bn.filter((function(t){return void 0!==x.filter((function(t){return t.log_line===e.id_line}))[0]&&-1!==x.filter((function(t){return t.log_line===e.id_line}))[0].PID.search(t.split(":")[0])}))[0].split(":")[1])/100<rr(void 0!==x.filter((function(t){return t.log_line===e.id_line}))[0]&&""!==x.filter((function(t){return t.log_line===e.id_line}))[0].log_content?x.filter((function(t){return t.log_line===e.id_line}))[0].log_content:"")?"extra RAM - ":"",void 0!==x.filter((function(t){return t.log_line===e.id_line}))[0]&&""!==x.filter((function(t){return t.log_line===e.id_line}))[0].log_content&&nr(x.filter((function(t){return t.log_line===e.id_line}))[0].log_content).split("\n").length>8?vn.filter((function(t){return-1!==nr(x.filter((function(t){return t.log_line===e.id_line}))[0].log_content).split("\n").slice(3).toString().search(t)})).length>2?(0,tn.jsxs)("marquee",{children:[vn.filter((function(t){return-1!==nr(x.filter((function(t){return t.log_line===e.id_line}))[0].log_content).split("\n").slice(3).toString().search(t)})).toString().replace(/,/g," , ")," ","inside"]}):vn.filter((function(t){return-1!==nr(x.filter((function(t){return t.log_line===e.id_line}))[0].log_content).split("\n").slice(3).toString().search(t)})).toString().replace(/,/g," , ")+" inside":""]})]},t)]})})):""]})})}),(0,tn.jsxs)(rd,{opened:Et,onClose:function(){Rt(!1),V("")},size:"80%",title:b?(0,tn.jsx)("h3",{children:"History"}):void 0!==z?(0,tn.jsxs)("h3",{children:["Line ",z.line_number]}):(0,tn.jsx)("h3",{children:"Report box"}),children:[(0,tn.jsx)("div",{style:{width:"100%",height:"80vh",display:b?"block":"none",marginLeft:"10px"},children:void 0!==Lt&&(0,tn.jsx)(HB,{columns:Wn,rows:Lt,setOpenHistory:_,setOpenArea:se})}),(0,tn.jsxs)("div",{style:{width:"100%",display:!1===b?"block":"none",position:"relative"},children:[!1===b&&(0,tn.jsxs)("div",{id:"reportDiv",style:{fontSize:"5px",width:"100%"},children:[(0,tn.jsx)("div",{children:(0,tn.jsx)(OB,{id:"showReport",highlight:xn,highlightColor:"#d1ff1b",style:{maxWidth:"100%",display:le?"none":"block",whiteSpace:"pre",fontSize:"0.7rem",height:"75vh",border:"solid 0.5px gray",overflow:"auto",overflowX:"auto",wordWrap:"break-word"},children:U})}),(0,tn.jsx)("textarea",{id:"report",style:{display:le?"block":"none",width:p?"170%":"100%",height:p?"110vh":"75vh"},value:U,onChange:function(e){V(e.target.value)}})]}),(0,tn.jsxs)("div",{style:{display:"block",position:"absolute",bottom:"2%",right:0,width:"8%"},children:[(0,tn.jsxs)("div",{style:{width:"100%",textAlign:"right",display:"flex",flexFlow:"column"},children:[(0,tn.jsx)(Bn,{onClick:function(){se(!0)},sx:(0,o.Z)({width:"100%",fontSize:"0.6rem",boxShadow:"0 0 5px 0 gray",fontWeight:700},"boxShadow","0 0 5px 0 gray"),size:"small",children:"Edit"}),(0,tn.jsx)(Bn,{sx:{width:"100%",fontSize:"0.6rem",boxShadow:"0 0 5px 0 gray",fontWeight:700},size:"small",onClick:function(){V(re)},children:"Full"}),(0,tn.jsx)(Bn,{sx:{width:"100%",fontSize:"0.6rem",boxShadow:"0 0 5px 0 gray",fontWeight:700},size:"small",onClick:function(){var e=U.replace(/\$ /g,""),t="";e.slice(e.search("NAME: "),e.search("NAME: ")+3e3).split("\n").map((function(e){-1===e.search("NAME: ")&&-1===e.search("PID: ")||(t=t+e+"\n")}));var n=e.substr(e.search("System image file"),500).split("\n")[0],r="";-1!==e.search("bytes of memory")?e.slice(e.search("bytes of memory")-200,e.search("bytes of memory")+100).split("\n").map((function(e){-1!==e.search("bytes of memory")&&(r+=e)})):-1!==e.search("bytes of physical memory")&&e.slice(e.search(" bytes of physical memory")-200,e.search(" bytes of physical memory")+100).split("\n").map((function(e){-1!==e.search(" bytes of physical memory")&&(r+=e)}));var i=e.slice(e.indexOf(r),e.search("Configuration register is")+e.slice(e.search("Configuration register is"),e.search("Configuration register is")+100).split("\n")[0].length);V((t+"\n\n"+n).replace(/\n\n/g,"\n")+"\n\n"+i.replace(/\n\n/g,"\n"))},children:"short"}),(0,tn.jsx)(Bn,{sx:{width:"100%",fontSize:"0.6rem",boxShadow:"0 0 5px 0 gray",fontWeight:700},size:"small",onClick:function(){var e=U.replace(/\$ /g,""),t=e.slice(e.search("NAME: "),e.search("NAME: ")+1e3).split("\n")[0]+"\n"+e.slice(e.search("NAME: "),e.search("NAME: ")+1e3).split("\n")[1],n="",r=e.slice(e.search("bytes of memory.")-100,e.search("bytes of memory.")+"bytes of memory.".length);if(-1!==r.search("bytes of memory.")){var i=(n=r.split("\n")[r.split("\n").length-1]).slice(n.search("bytes of memory")-100,n.search("bytes of memory")).split(" ").reverse()[1];if(i)if(i.split("/").length>1){var o=parseInt(i.split("/")[0].slice(0,-1));o=o/1024/1024,n=(n=n.replace(i.split("/")[0],o.toFixed(2).toString()+"G")).replace("/"+i.split("/")[1],"")}else{var a=parseInt(i.split("/")[0].slice(0,-1));a=a/1024/1024,n=n.replace(i.split("/")[0],a.toFixed(2).toString()+"G")}}var l="";-1!==e.search("Cisco IOS XE Software")?l+=e.slice(e.search("Cisco IOS XE Software"),e.search("Cisco IOS XE Software")+1e3).split("\n")[0]:-1!==e.search("Cisco IOS Software")&&(l+=e.slice(e.search("Cisco IOS Software"),e.search("Cisco IOS Software")+1e3).split("\n")[0]);for(var s=-1!==e.search("Technology Package License Information")?(e.slice(e.search("Technology Package License Information"),e.search("Technology Package License Information")+"Technology Package License Information".length+100).split("\n")[0]+"\n"+e.slice(e.search("Technology Package License Information")+e.slice(e.search("Technology Package License Information"),e.search("Technology Package License Information")+"Technology Package License Information".length+100).split("\n")[0].length+3,e.search("Technology Package License Information")+"Technology Package License Information".length+1e3)).split("\n\n")[0]:"",c=e.slice(e.search("Index 1"),e.search("Index 1")+1e4).split("\n\n")[0],u="",d=1;d<c.split("Index").length;d++){var f=c.slice(c.search("Index "+d),c.search("Index "+(d+1)));if(-1!==f.search("Permanent"))for(var h=0;h<f.split("\n").length;h++)-1===f.split("\n")[h].search("Feature")&&-1===f.split("\n")[h].search("Permanent")||(u=u+"\n"+f.split("\n")[h])}if(-1!==e.search("physical memory")){for(var p=e.slice(e.search("physical memory")-100,e.search("physical memory")+"physical memory".length),v=p.split("\n")[p.split("\n").length-1],m=v.slice(v.search("bytes of physical memory")-50,v.search("bytes of physical memory")).split(" ").reverse()[1],g=0;g<m.split("/").length;g++){var y=parseInt(m.split("/")[g].slice(0,-1));y=y/1024/1024,v=v.replace(m.split("/")[g],y.toFixed(2).toString()+"G")}V(t+"\n\n"+n+"\n\n"+v+"\n\n"+l+"\n\n"+s+"\n"+u)}else V(t+"\n\n"+n+"\n\n"+l+"\n\n"+s+"\n\n"+u)},children:"license"}),(0,tn.jsx)(Bn,{sx:{width:"100%",fontSize:"0.6rem",boxShadow:"0 0 5px 0 gray",fontWeight:700},size:"small",onClick:function(){for(var e="",t=[],n=[],r=[],i=U.replace(/\$ /g,"").split("\n"),o=0;o<i.length;o++)-1===i[o].search("NAME:")&&-1===i[o].search("Name:")||-1===i[o].search("DESCR:")||-1===i[o+1].search("PID:")||-1===i[o+1].search("SN:")||""!==i[o+1].slice(i[o+1].search("PID:"),i[o+1].search("PID:")+100).split(",")[0].split(":")[1].trim()&&""!==i[o+1].slice(i[o+1].search("SN:"),i[o+1].search("SN:")+100).split(",")[0].split(":")[1].trim()&&(t.push(i[o]+"\n"+i[o+1]),n.push(i[o+1].slice(i[o+1].search("PID:"),i[o+1].search("PID:")+100).split(",")[0].split(":")[1].trim()),r.push(i[o+1].slice(i[o+1].search("SN:"),i[o+1].search("SN:")+100).split(",")[0].split(":")[1].trim()));for(var a=0;a<n.length;a++)for(var l=0;l<n.length;l++)n[a]===n[l]&&r[a]===r[l]&&a!==l&&(t.splice(n.indexOf(n[l]),1),r.splice(n.indexOf(n[l]),1),n.splice(n.indexOf(n[l]),1));for(var s=0;s<t.length;s++)for(var c=0;c<t.length;c++)t[s].slice(t[s].search("DESCR:"),t[s].search("DESCR:")+100).split("\n")[0].split(":")[1].trim()===t[c].slice(t[c].search("DESCR:"),t[c].search("DESCR:")+100).split("\n")[0].split(":")[1].trim()&&s!==c&&(t[s]=t[s].replace(t[s].slice(t[s].search("SN:"),t[s].search("SN:")+1e3).split("\n")[0].trim(),t[s].slice(t[s].search("SN:"),t[s].search("SN:")+1e3).split("\n")[0].trim()+", "+t[c].slice(t[c].search("SN:"),t[c].search("SN:")+1e3).split("\n")[0].split(":")[1].trim()),t.splice(c,1));t.map((function(t){t=t.replace(t.slice(t.search("PID:"),t.search("PID:")+2e3).split("\n")[0],t.slice(t.search("PID:"),t.search("PID:")+100).split(",")[0].split(":")[1].trim()+"\n"+t.slice(t.search("SN:"),t.search("SN:")+1e3).split("\n")[0].split(":")[1].trim()+"\n\n"),e=e+t+"\n"})),V(e)},children:"PID-SN"}),(0,tn.jsx)(Bn,{sx:{width:"100%",fontSize:"0.6rem",boxShadow:"0 0 5px 0 gray",fontWeight:700},size:"small",onClick:function(){navigator.clipboard.writeText(U)},children:"Copy"})]}),(0,tn.jsxs)("div",{style:{width:"100%",textAlign:"right",display:"flex",flexFlow:"column"},children:[(0,tn.jsx)(Bn,{sx:{width:"100%",fontSize:"0.6rem",boxShadow:"0 0 5px 0 gray",fontWeight:700},size:"small",onClick:function(){m(!0),se(!0),setTimeout((function(){zB()({printable:"report",type:"html",documentTitle:"IPSUPPLY",style:"#report {border:none}"}),m(!1)}),5)},children:"Print"}),(0,tn.jsx)(Bn,{sx:{fontSize:"0.6rem",boxShadow:"0 0 5px 0 gray",fontWeight:700,width:"100%"},size:"small",onClick:function(){Qn()},children:"Download"}),(0,tn.jsx)(Bn,{sx:{width:"100%",fontSize:"0.6rem",boxShadow:"0 0 5px 0 gray",fontWeight:700},size:"small",onClick:function(){_(!0)},children:"History"})]})]})]})]}),(0,tn.jsx)(rd,{opened:Mn,onClose:function(){Ln(!1),null===n||void 0===n||n.emit("closeTelnet",{email:r.username}),On("")},size:"80%",title:"Command line interface",children:(0,tn.jsx)("div",{style:{height:"70vh",width:"100%",backgroundColor:"#333",display:"flex",flexFlow:"column-reverse"},children:(0,tn.jsx)("textarea",{id:"textarea_id",value:Rn,style:{height:"100%",width:"100%",backgroundColor:"#333",color:"#c7ffb5"},onChange:function(e){zn(Fn+1),On(e.target.value)},onKeyDown:function(e){"Enter"===e.key&&(null===n||void 0===n||n.emit("receiverCommand",{email:r.username,command:e.target.value.slice(e.target.value.length-Fn,e.target.value.length).trim().replace(/#/g,"")}))," "===e.key&&-1!==e.target.value.slice(e.target.value.length-20,e.target.value.length).search("More")&&(null===n||void 0===n||n.emit("receiverCommand",{email:r.username,command:" \r"})),"Backspace"===e.key&&zn(Fn-2)},children:Rn})})})]})}),VB=function(){var e,n,r,i,a,s,d=(0,t.useState)("Op1"),f=(0,u.Z)(d,2),h=f[0],p=f[1],v=(0,t.useState)({}),m=(0,u.Z)(v,2),g=m[0],y=m[1],b=(0,t.useState)(null),_=(0,u.Z)(b,2),w=_[0],S=_[1],x=Do(localStorage.getItem("user"));!1===["AUS-1","US1 01-08","AU-dev"].includes(null===x||void 0===x?void 0:x.full_name)&&(localStorage.clear(),window.location.reload()),(0,t.useEffect)((function(){S(Ot("https://auto.danielvu.com"))}),[]);var C=function(){var e=c(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return[],e.prev=1,e.next=4,Kk.post(nE);case 4:t=e.sent,y(t.data.pData),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.log(e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(){return e.apply(this,arguments)}}();switch((0,t.useEffect)((function(){C()}),[]),h){case"Op1":return(0,tn.jsxs)("div",{className:"home",children:[(0,tn.jsx)(N,{}),(0,tn.jsx)("div",{className:"headerHome",children:(0,tn.jsx)(jo,{option:h,setOption:p})}),(0,tn.jsx)("div",{className:"bodyHome",children:(0,tn.jsx)("div",{style:(e={display:"block"},(0,o.Z)(e,"display","block"),(0,o.Z)(e,"width","100%"),e),children:(0,tn.jsx)(UB,{socket:w,user:x,STATION:g})})})]});case"Op2":return(0,tn.jsxs)("div",{className:"home",children:[(0,tn.jsx)(N,{}),(0,tn.jsx)("div",{className:"headerHome",children:(0,tn.jsx)(jo,{option:h,setOption:p})}),(0,tn.jsx)("div",{className:"bodyHome",children:(0,tn.jsx)("div",{style:(n={display:"block"},(0,o.Z)(n,"display","block"),(0,o.Z)(n,"width","100%"),n),children:(0,tn.jsx)(ZE,{})})})]});case"Op3":return(0,tn.jsxs)("div",{className:"home",children:[(0,tn.jsx)(N,{}),(0,tn.jsx)("div",{className:"headerHome",children:(0,tn.jsx)(jo,{option:h,setOption:p})}),(0,tn.jsx)("div",{className:"bodyHome",children:(0,tn.jsx)("div",{style:(r={display:"block"},(0,o.Z)(r,"display","block"),(0,o.Z)(r,"width","100%"),r),children:(0,tn.jsx)(TE,{})})})]});case"Op4":return(0,tn.jsxs)("div",{className:"home",children:[(0,tn.jsx)(N,{}),(0,tn.jsx)("div",{className:"headerHome",children:(0,tn.jsx)(jo,{option:h,setOption:p})}),(0,tn.jsx)("div",{className:"bodyHome",children:(0,tn.jsx)("div",{style:(i={display:"block"},(0,o.Z)(i,"display","block"),(0,o.Z)(i,"width","100%"),i),children:(0,tn.jsx)(rR,{})})})]});case"Op5":return(0,tn.jsxs)("div",{className:"home",children:[(0,tn.jsx)(N,{}),(0,tn.jsx)("div",{className:"headerHome",children:(0,tn.jsx)(jo,{option:h,setOption:p})}),(0,tn.jsx)("div",{className:"bodyHome",children:(0,tn.jsx)("div",{style:(a={display:"block"},(0,o.Z)(a,"display","block"),(0,o.Z)(a,"width","100%"),a),children:(0,tn.jsx)(aR,{})})})]});case"Op6":return(0,tn.jsxs)("div",{className:"home",children:[(0,tn.jsx)(N,{}),(0,tn.jsx)("div",{className:"headerHome",children:(0,tn.jsx)(jo,{option:h,setOption:p})}),(0,tn.jsx)("div",{className:"bodyHome",children:(0,tn.jsx)("div",{style:(s={display:"block"},(0,o.Z)(s,"display","block"),(0,o.Z)(s,"width","100%"),s),children:(0,tn.jsx)(UF,{})})})]})}},qB=function(){var e=(0,t.useState)({username:"",password:""}),n=(0,u.Z)(e,2),r=n[0],i=n[1],o=function(){var e=c(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,""!==r.username&&""!==r.password){e.next=5;break}Y.error("Information cannot be left blank"),e.next=9;break;case 5:return e.next=7,Kk.post(RE,{username:r.username,password:r.password});case 7:2===(t=e.sent).data.pCode?Y.error("Username does not exist"):0===t.data.pCode?Y.error("Password is not correct"):(localStorage.setItem("user",JSON.stringify(t.data.accessToken)),window.location.reload());case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(0),console.log(e.t0);case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}();return(0,tn.jsxs)("div",{style:{height:"90vh",backgroundColor:"#afafaf",padding:"10vh 0 0 0"},children:[(0,tn.jsx)(N,{}),(0,tn.jsxs)("div",{style:{border:"solid 1px white",height:"500px",width:"400px",margin:"0vh 0 0 37.5%",borderRadius:"5px",backgroundColor:"white",boxShadow:"0px 10px 35px 0px"},children:[(0,tn.jsxs)("div",{style:{display:"flex",width:"100%",color:"rgb(0 124 196)",fontSize:"2rem",fontWeight:800,alignItems:"center",textAlign:"center",justifyContent:"center",margin:"15% 0 0 0"},children:[(0,tn.jsx)("span",{children:"NETW"}),(0,tn.jsx)("img",{src:To}),(0,tn.jsx)("span",{children:"RK TOOL"})]}),(0,tn.jsxs)("div",{style:{color:"rgb(0 124 196)"},children:[(0,tn.jsxs)("div",{style:{width:"70%",margin:"3vh 0 0vh 15%",display:"flex",flexFlow:"column"},children:[(0,tn.jsx)("span",{style:{fontSize:"1rem",fontWeight:650,margin:"1vh 0"},children:"User name"}),(0,tn.jsx)(sh,{size:"lg",value:r.username,onChange:function(e){i(f(f({},r),{},{username:e.target.value}))},onKeyDown:function(e){"Enter"===e.key&&o()}})]}),(0,tn.jsxs)("div",{style:{width:"70%",margin:"1vh 15%",display:"flex",flexFlow:"column"},children:[(0,tn.jsx)("span",{style:{fontSize:"1rem",fontWeight:650,margin:"1vh 0"},children:"Password"}),(0,tn.jsx)(sh,{type:"password",size:"lg",value:r.password,onChange:function(e){i(f(f({},r),{},{password:e.target.value}))},onKeyDown:function(e){"Enter"===e.key&&o()}})]})]}),(0,tn.jsx)(Bn,{variant:"contained",style:{width:"30%",margin:"3vh 0 0 35%"},onClick:function(){return o()},children:"Sign in"})]})]})},KB=n(3878),YB=n(9199),GB=n(5267);function XB(){return XB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XB.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(BB||(BB={}));var $B,JB="popstate";function QB(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function eH(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(Mo){}}}function tH(e,t){return{usr:e.state,key:e.key,idx:t}}function nH(e,t,n,r){return void 0===n&&(n=null),XB({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?iH(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function rH(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,i=void 0===r?"":r,o=e.hash,a=void 0===o?"":o;return i&&"?"!==i&&(n+="?"===i.charAt(0)?i:"?"+i),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}function iH(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function oH(e,t,n,r){void 0===r&&(r={});var i=r,o=i.window,a=void 0===o?document.defaultView:o,l=i.v5Compat,s=void 0!==l&&l,c=a.history,u=BB.Pop,d=null,f=h();function h(){return(c.state||{idx:null}).idx}function p(){u=BB.Pop;var e=h(),t=null==e?null:e-f;f=e,d&&d({action:u,location:m.location,delta:t})}function v(e){var t="null"!==a.location.origin?a.location.origin:a.location.href,n="string"===typeof e?e:rH(e);return QB(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==f&&(f=0,c.replaceState(XB({},c.state,{idx:f}),""));var m={get action(){return u},get location(){return e(a,c)},listen:function(e){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(JB,p),d=e,function(){a.removeEventListener(JB,p),d=null}},createHref:function(e){return t(a,e)},createURL:v,encodeLocation:function(e){var t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){u=BB.Push;var r=nH(m.location,e,t);n&&n(r,e);var i=tH(r,f=h()+1),o=m.createHref(r);try{c.pushState(i,"",o)}catch(l){a.location.assign(o)}s&&d&&d({action:u,location:m.location,delta:1})},replace:function(e,t){u=BB.Replace;var r=nH(m.location,e,t);n&&n(r,e);var i=tH(r,f=h()),o=m.createHref(r);c.replaceState(i,"",o),s&&d&&d({action:u,location:m.location,delta:0})},go:function(e){return c.go(e)}};return m}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}($B||($B={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function aH(e,t,n){void 0===n&&(n="/");var r=_H(("string"===typeof t?iH(t):t).pathname||"/",n);if(null==r)return null;var i=lH(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(i);for(var o=null,a=0;null==o&&a<i.length;++a)o=gH(i[a],bH(r));return o}function lH(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");var i=function(e,i,o){var a={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(QB(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));var l=CH([r,a.relativePath]),s=n.concat(a);e.children&&e.children.length>0&&(QB(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),lH(e.children,t,s,l)),(null!=e.path||e.index)&&t.push({path:l,score:mH(l,e.index),routesMeta:s})};return e.forEach((function(e,t){var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?")){var r,o=ot(sH(e.path));try{for(o.s();!(r=o.n()).done;){var a=r.value;i(e,t,a)}}catch(pW){o.e(pW)}finally{o.f()}}else i(e,t)})),t}function sH(e){var t=e.split("/");if(0===t.length)return[];var n,r=(n=t,(0,KB.Z)(n)||(0,YB.Z)(n)||(0,it.Z)(n)||(0,GB.Z)()),i=r[0],o=r.slice(1),a=i.endsWith("?"),l=i.replace(/\?$/,"");if(0===o.length)return a?[l,""]:[l];var s=sH(o.join("/")),c=[];return c.push.apply(c,(0,v.Z)(s.map((function(e){return""===e?l:[l,e].join("/")})))),a&&c.push.apply(c,(0,v.Z)(s)),c.map((function(t){return e.startsWith("/")&&""===t?"/":t}))}var cH=/^:\w+$/,uH=3,dH=2,fH=1,hH=10,pH=-2,vH=function(e){return"*"===e};function mH(e,t){var n=e.split("/"),r=n.length;return n.some(vH)&&(r+=pH),t&&(r+=dH),n.filter((function(e){return!vH(e)})).reduce((function(e,t){return e+(cH.test(t)?uH:""===t?fH:hH)}),r)}function gH(e,t){for(var n=e.routesMeta,r={},i="/",o=[],a=0;a<n.length;++a){var l=n[a],s=a===n.length-1,c="/"===i?t:t.slice(i.length)||"/",u=yH({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},c);if(!u)return null;Object.assign(r,u.params);var d=l.route;o.push({params:r,pathname:CH([i,u.pathname]),pathnameBase:kH(CH([i,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(i=CH([i,u.pathnameBase]))}return o}function yH(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});var n=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);eH("*"===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(/\*$/,"/*")+'".');var r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(function(e,t){return r.push(t),"/([^\\/]+)"}));e.endsWith("*")?(r.push("*"),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");var o=new RegExp(i,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),r=(0,u.Z)(n,2),i=r[0],o=r[1],a=t.match(i);if(!a)return null;var l=a[0],s=l.replace(/(.)\/+$/,"$1"),c=a.slice(1),d=o.reduce((function(e,t,n){if("*"===t){var r=c[n]||"";s=l.slice(0,l.length-r.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return eH(!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 ('+n+")."),e}}(c[n]||"",t),e}),{});return{params:d,pathname:l,pathnameBase:s,pattern:e}}function bH(e){try{return decodeURI(e)}catch(t){return eH(!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 _H(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function wH(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function SH(e){return e.filter((function(e,t){return 0===t||e.route.path&&e.route.path.length>0}))}function xH(e,t,n,r){var i;void 0===r&&(r=!1),"string"===typeof e?i=iH(e):(QB(!(i=XB({},e)).pathname||!i.pathname.includes("?"),wH("?","pathname","search",i)),QB(!i.pathname||!i.pathname.includes("#"),wH("#","pathname","hash",i)),QB(!i.search||!i.search.includes("#"),wH("#","search","hash",i)));var o,a=""===e||""===i.pathname,l=a?"/":i.pathname;if(r||null==l)o=n;else{var s=t.length-1;if(l.startsWith("..")){for(var c=l.split("/");".."===c[0];)c.shift(),s-=1;i.pathname=c.join("/")}o=s>=0?t[s]:"/"}var u=function(e,t){void 0===t&&(t="/");var n="string"===typeof e?iH(e):e,r=n.pathname,i=n.search,o=void 0===i?"":i,a=n.hash,l=void 0===a?"":a,s=r?r.startsWith("/")?r:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(r,t):t;return{pathname:s,search:EH(o),hash:RH(l)}}(i,o),d=l&&"/"!==l&&l.endsWith("/"),f=(a||"."===l)&&n.endsWith("/");return u.pathname.endsWith("/")||!d&&!f||(u.pathname+="/"),u}var CH=function(e){return e.join("/").replace(/\/\/+/g,"/")},kH=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},EH=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},RH=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""},OH=function(e){te(n,e);var t=ie(n);function n(){return G(this,n),t.apply(this,arguments)}return J(n)}(le(Error));function PH(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}var TH=["post","put","patch","delete"],MH=(new Set(TH),["get"].concat(TH));new Set(MH),new Set([301,302,303,307,308]),new Set([307,308]),"undefined"!==typeof window&&"undefined"!==typeof window.document&&window.document.createElement;Symbol("deferred");var LH="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},ZH=t.useState,IH=t.useEffect,DH=t.useLayoutEffect,jH=t.useDebugValue;function AH(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!LH(n,r)}catch(i){return!0}}"undefined"===typeof window||"undefined"===typeof window.document||window.document.createElement,r.useSyncExternalStore;var NH=t.createContext(null);var FH=t.createContext(null);var zH=t.createContext(null);var BH=t.createContext(null);var HH=t.createContext(null);var WH=t.createContext({outlet:null,matches:[]});var UH=t.createContext(null);function VH(){return VH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VH.apply(this,arguments)}function qH(){return null!=t.useContext(HH)}function KH(){return qH()||QB(!1),t.useContext(HH).location}function YH(){var e=function(){var e,n=t.useContext(UH),r=eW(XH.UseRouteError),i=tW(XH.UseRouteError);if(n)return n;return null==(e=r.errors)?void 0:e[i]}(),n=PH(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:i};return t.createElement(t.Fragment,null,t.createElement("h2",null,"Unexpected Application Error!"),t.createElement("h3",{style:{fontStyle:"italic"}},n),r?t.createElement("pre",{style:o},r):null,null)}var GH,XH,$H=function(e){te(r,e);var n=ie(r);function r(e){var t;return G(this,r),(t=n.call(this,e)).state={location:e.location,error:e.error},t}return J(r,[{key:"componentDidCatch",value:function(e,t){console.error("React Router caught the following error during render",e,t)}},{key:"render",value:function(){return this.state.error?t.createElement(WH.Provider,{value:this.props.routeContext},t.createElement(UH.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{error:e}}},{key:"getDerivedStateFromProps",value:function(e,t){return t.location!==e.location?{error:e.error,location:e.location}:{error:e.error||t.error,location:t.location}}}]),r}(t.Component);function JH(e){var n=e.routeContext,r=e.match,i=e.children,o=t.useContext(NH);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),t.createElement(WH.Provider,{value:n},i)}function QH(e,n,r){if(void 0===n&&(n=[]),null==e){if(null==r||!r.errors)return null;e=r.matches}var i=e,o=null==r?void 0:r.errors;if(null!=o){var a=i.findIndex((function(e){return e.route.id&&(null==o?void 0:o[e.route.id])}));a>=0||QB(!1),i=i.slice(0,Math.min(i.length,a+1))}return i.reduceRight((function(e,a,l){var s=a.route.id?null==o?void 0:o[a.route.id]:null,c=null;r&&(c=a.route.ErrorBoundary?t.createElement(a.route.ErrorBoundary,null):a.route.errorElement?a.route.errorElement:t.createElement(YH,null));var u=n.concat(i.slice(0,l+1)),d=function(){var n=e;return s?n=c:a.route.Component?n=t.createElement(a.route.Component,null):a.route.element&&(n=a.route.element),t.createElement(JH,{match:a,routeContext:{outlet:e,matches:u},children:n})};return r&&(a.route.ErrorBoundary||a.route.errorElement||0===l)?t.createElement($H,{location:r.location,component:c,error:s,children:d(),routeContext:{outlet:null,matches:u}}):d()}),null)}function eW(e){var n=t.useContext(FH);return n||QB(!1),n}function tW(e){var n=function(e){var n=t.useContext(WH);return n||QB(!1),n}(),r=n.matches[n.matches.length-1];return r.route.id||QB(!1),r.route.id}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"}(GH||(GH={})),function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"}(XH||(XH={}));var nW;function rW(e){var n=e.to,r=e.replace,i=e.state,o=e.relative;qH()||QB(!1);var a=t.useContext(FH),l=function(){qH()||QB(!1);var e=t.useContext(BH),n=e.basename,r=e.navigator,i=t.useContext(WH).matches,o=KH().pathname,a=JSON.stringify(SH(i).map((function(e){return e.pathnameBase}))),l=t.useRef(!1);return t.useEffect((function(){l.current=!0})),t.useCallback((function(e,t){if(void 0===t&&(t={}),l.current)if("number"!==typeof e){var i=xH(e,JSON.parse(a),o,"path"===t.relative);"/"!==n&&(i.pathname="/"===i.pathname?n:CH([n,i.pathname])),(t.replace?r.replace:r.push)(i,t.state,t)}else r.go(e)}),[n,r,a,o])}();return t.useEffect((function(){a&&"idle"!==a.navigation.state||l(n,{replace:r,state:i,relative:o})})),null}function iW(e){QB(!1)}function oW(e){var n=e.basename,r=void 0===n?"/":n,i=e.children,o=void 0===i?null:i,a=e.location,l=e.navigationType,s=void 0===l?BB.Pop:l,c=e.navigator,u=e.static,d=void 0!==u&&u;qH()&&QB(!1);var f=r.replace(/^\/*/,"/"),h=t.useMemo((function(){return{basename:f,navigator:c,static:d}}),[f,c,d]);"string"===typeof a&&(a=iH(a));var p=a,v=p.pathname,m=void 0===v?"/":v,g=p.search,y=void 0===g?"":g,b=p.hash,_=void 0===b?"":b,w=p.state,S=void 0===w?null:w,x=p.key,C=void 0===x?"default":x,k=t.useMemo((function(){var e=_H(m,f);return null==e?null:{location:{pathname:e,search:y,hash:_,state:S,key:C},navigationType:s}}),[f,m,y,_,S,C,s]);return null==k?null:t.createElement(BH.Provider,{value:h},t.createElement(HH.Provider,{children:o,value:k}))}function aW(e){var n=e.children,r=e.location,i=t.useContext(NH);return function(e,n){qH()||QB(!1);var r,i=t.useContext(BH).navigator,o=t.useContext(FH),a=t.useContext(WH).matches,l=a[a.length-1],s=l?l.params:{},c=(l&&l.pathname,l?l.pathnameBase:"/"),u=(l&&l.route,KH());if(n){var d,f="string"===typeof n?iH(n):n;"/"===c||(null==(d=f.pathname)?void 0:d.startsWith(c))||QB(!1),r=f}else r=u;var h=r.pathname||"/",p=aH(e,{pathname:"/"===c?h:h.slice(c.length)||"/"}),v=QH(p&&p.map((function(e){return Object.assign({},e,{params:Object.assign({},s,e.params),pathname:CH([c,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:CH([c,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})})),a,o||void 0);return n&&v?t.createElement(HH.Provider,{value:{location:VH({pathname:"/",search:"",hash:"",state:null,key:"default"},r),navigationType:BB.Pop}},v):v}(i&&!n?i.router.routes:sW(n),r)}!function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(nW||(nW={}));var lW=new Promise((function(){}));t.Component;function sW(e,n){void 0===n&&(n=[]);var r=[];return t.Children.forEach(e,(function(e,i){if(t.isValidElement(e))if(e.type!==t.Fragment){e.type!==iW&&QB(!1),e.props.index&&e.props.children&&QB(!1);var o=[].concat((0,v.Z)(n),[i]),a={id:e.props.id||o.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&&(a.children=sW(e.props.children,o)),r.push(a)}else r.push.apply(r,sW(e.props.children,n))})),r}var cW=function(){return(0,tn.jsx)("div",{className:"App",children:(0,tn.jsxs)(aW,{children:[(0,tn.jsx)(iW,{path:"/",element:null!==JSON.parse(localStorage.getItem("user"))?(0,tn.jsx)(VB,{}):(0,tn.jsx)(qB,{})}),(0,tn.jsx)(iW,{path:"/tool",element:null!==JSON.parse(localStorage.getItem("user"))?(0,tn.jsx)(VB,{}):(0,tn.jsx)(rW,{to:"/"})})]})})},uW=function(e){e&&e instanceof Function&&n.e(787).then(n.bind(n,787)).then((function(t){var n=t.getCLS,r=t.getFID,i=t.getFCP,o=t.getLCP,a=t.getTTFB;n(e),r(e),i(e),o(e),a(e)}))};function dW(e){var n,r=e.basename,i=e.children,o=e.window,a=t.useRef();null==a.current&&(a.current=(void 0===(n={window:o,v5Compat:!0})&&(n={}),oH((function(e,t){var n=e.location;return nH("",{pathname:n.pathname,search:n.search,hash:n.hash},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:rH(t)}),null,n)));var l=a.current,s=t.useState({action:l.action,location:l.location}),c=(0,u.Z)(s,2),d=c[0],f=c[1];return t.useLayoutEffect((function(){return l.listen(f)}),[l]),t.createElement(oW,{basename:r,children:i,location:d.location,navigationType:d.action,navigator:l})}"undefined"!==typeof window&&"undefined"!==typeof window.document&&window.document.createElement;var fW,hW;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(fW||(fW={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(hW||(hW={}));i.createRoot(document.getElementById("root")).render((0,tn.jsx)(t.StrictMode,{children:(0,tn.jsx)(dW,{children:(0,tn.jsx)(aW,{children:(0,tn.jsx)(iW,{path:"*",element:(0,tn.jsx)(cW,{})})})})})),uW()}()}();
//# sourceMappingURL=main.6cf9f33e.js.map