/*! For license information please see main.75ae29a5.js.LICENSE.txt */
(()=>{var e={3803:(e,t,n)=>{"use strict";n.d(t,{A:()=>ae});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){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),a=Math.abs,i=String.fromCharCode,o=Object.assign;function s(e){return e.trim()}function l(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 p(e){return e.length}function h(e){return e.length}function f(e,t){return t.push(e),e}var m=1,g=1,v=0,y=0,b=0,x="";function w(e,t,n,r,a,i,o){return{value:e,root:t,parent:n,type:r,props:a,children:i,line:m,column:g,length:o,return:""}}function S(e,t){return o(w("",null,null,"",null,null,0),e,{length:-e.length},t)}function C(){return b=y>0?u(x,--y):0,g--,10===b&&(g=1,m--),b}function A(){return b=y<v?u(x,y++):0,g++,10===b&&(g=1,m++),b}function k(){return u(x,y)}function T(){return y}function j(e,t){return d(x,e,t)}function E(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 m=g=1,v=p(x=e),y=0,[]}function N(e){return x="",e}function D(e){return s(j(y-1,I(91===e?e+2:40===e?e+1:e)))}function M(e){for(;(b=k())&&b<33;)A();return E(e)>2||E(b)>3?"":" "}function _(e,t){for(;--t&&A()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return j(e,T()+(t<6&&32==k()&&32==A()))}function I(e){for(;A();)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:A()}return y}function R(e,t){for(;A()&&e+b!==57&&(e+b!==84||47!==k()););return"/*"+j(t,y-1)+"*"+i(47===e?e:A())}function O(e){for(;!E(k());)A();return j(e,y)}var L="-ms-",F="-moz-",B="-webkit-",z="comm",V="rule",W="decl",U="@keyframes";function $(e,t){for(var n="",r=h(e),a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function H(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case W:return e.return=e.return||e.value;case z:return"";case U:return e.return=e.value+"{"+$(e.children,r)+"}";case V:e.value=e.props.join(",")}return p(n=$(e.children,r))?e.return=e.value+"{"+n+"}":""}function q(e){return N(G("",null,null,null,[""],e=P(e),0,[0],e))}function G(e,t,n,r,a,o,s,d,h){for(var m=0,g=0,v=s,y=0,b=0,x=0,w=1,S=1,j=1,E=0,P="",N=a,I=o,L=r,F=P;S;)switch(x=E,E=A()){case 40:if(108!=x&&58==u(F,v-1)){-1!=c(F+=l(D(E),"&","&\f"),"&\f")&&(j=-1);break}case 34:case 39:case 91:F+=D(E);break;case 9:case 10:case 13:case 32:F+=M(x);break;case 92:F+=_(T()-1,7);continue;case 47:switch(k()){case 42:case 47:f(Y(R(A(),T()),t,n),h);break;default:F+="/"}break;case 123*w:d[m++]=p(F)*j;case 125*w:case 59:case 0:switch(E){case 0:case 125:S=0;case 59+g:-1==j&&(F=l(F,/\f/g,"")),b>0&&p(F)-v&&f(b>32?X(F+";",r,n,v-1):X(l(F," ","")+";",r,n,v-2),h);break;case 59:F+=";";default:if(f(L=K(F,t,n,m,g,a,d,P,N=[],I=[],v),o),123===E)if(0===g)G(F,t,L,L,N,o,v,d,I);else switch(99===y&&110===u(F,3)?100:y){case 100:case 108:case 109:case 115:G(e,L,L,r&&f(K(e,L,L,0,0,a,d,P,a,N=[],v),I),a,I,v,d,r?N:I);break;default:G(F,L,L,L,[""],I,0,d,I)}}m=g=b=0,w=j=1,P=F="",v=s;break;case 58:v=1+p(F),b=x;default:if(w<1)if(123==E)--w;else if(125==E&&0==w++&&125==C())continue;switch(F+=i(E),E*w){case 38:j=g>0?1:(F+="\f",-1);break;case 44:d[m++]=(p(F)-1)*j,j=1;break;case 64:45===k()&&(F+=D(A())),y=k(),g=v=p(P=F+=O(T())),E++;break;case 45:45===x&&2==p(F)&&(w=0)}}return o}function K(e,t,n,r,i,o,c,u,p,f,m){for(var g=i-1,v=0===i?o:[""],y=h(v),b=0,x=0,S=0;b<r;++b)for(var C=0,A=d(e,g+1,g=a(x=c[b])),k=e;C<y;++C)(k=s(x>0?v[C]+" "+A:l(A,/&\f/g,v[C])))&&(p[S++]=k);return w(e,t,n,0===i?V:u,p,f,m)}function Y(e,t,n){return w(e,t,n,z,i(b),d(e,2,-2),0)}function X(e,t,n,r){return w(e,t,n,W,d(e,0,r),d(e,r+1,-1),r)}var Z=function(e,t,n){for(var r=0,a=0;r=a,a=k(),38===r&&12===a&&(t[n]=1),!E(a);)A();return j(e,y)},J=function(e,t){return N(function(e,t){var n=-1,r=44;do{switch(E(r)){case 0:38===r&&12===k()&&(t[n]=1),e[n]+=Z(y-1,t,n);break;case 2:e[n]+=D(r);break;case 4:if(44===r){e[++n]=58===k()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=A());return e}(P(e),t))},Q=new WeakMap,ee=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)||Q.get(n))&&!r){Q.set(e,!0);for(var a=[],i=J(t,a),o=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<o.length;c++,l++)e.props[l]=a[s]?i[s].replace(/&\f/g,o[c]):o[c]+" "+i[s]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ne(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 B+"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 B+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return B+e+F+e+L+e+e;case 6828:case 4268:return B+e+L+e+e;case 6165:return B+e+L+"flex-"+e+e;case 5187:return B+e+l(e,/(\w+).+(:[^]+)/,B+"box-$1$2"+L+"flex-$1$2")+e;case 5443:return B+e+L+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return B+e+L+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return B+e+L+l(e,"shrink","negative")+e;case 5292:return B+e+L+l(e,"basis","preferred-size")+e;case 6060:return B+"box-"+l(e,"-grow","")+B+e+L+l(e,"grow","positive")+e;case 4554:return B+l(e,/([^-])(transform)/g,"$1"+B+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,B+"$1"),/(image-set)/,B+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,B+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,B+"box-pack:$3"+L+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+B+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,B+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(p(e)-1-t>6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+F+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,p(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+B)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(45===u(e,14)?"inline-":"")+"box$3$1"+B+"$2$3$1"+L+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return B+e+L+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+L+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+L+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+L+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case W:e.return=ne(e.value,e.length);break;case U:return $([S(e,{value:l(e.value,"@","@"+B)})],r);case V:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return $([S(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return $([S(e,{props:[l(t,/:(plac\w+)/,":"+B+"input-$1")]}),S(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),S(e,{props:[l(t,/:(plac\w+)/,L+"input-$1")]})],r)}return""}))}}],ae=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 a,i,o=e.stylisPlugins||re,s={},l=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)}));var c,u,d=[H,(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],p=function(e){var t=h(e);return function(n,r,a,i){for(var o="",s=0;s<t;s++)o+=e[s](n,r,a,i)||"";return o}}([ee,te].concat(o,d));i=function(e,t,n,r){c=n,$(q(e?e+"{"+t.styles+"}":t.styles),p),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new r({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return f.sheet.hydrate(l),f}},918:(e,t,n)=>{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},4575:(e,t,n)=>{"use strict";n.d(t,{C:()=>o,T:()=>l,w:()=>s});var r=n(5043),a=n(3803),i=(n(6598),n(9436),r.createContext("undefined"!==typeof HTMLElement?(0,a.A)({key:"css"}):null)),o=i.Provider,s=function(e){return(0,r.forwardRef)((function(t,n){var a=(0,r.useContext)(i);return e(t,a,n)}))},l=r.createContext({})},3290:(e,t,n)=>{"use strict";n.d(t,{AH:()=>c,i7:()=>u,mL:()=>l});var r=n(4575),a=n(5043),i=n(1722),o=n(9436),s=n(6598),l=(n(3803),n(219),(0,r.w)((function(e,t){var n=e.styles,l=(0,s.J)([n],void 0,a.useContext(r.T)),c=a.useRef();return(0,o.i)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,a=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(r=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),c.current=[n,r],function(){n.flush()}}),[t]),(0,o.i)((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,i.sk)(t,l.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",l,n,!1)}}),[t,l.name]),null})));function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,s.J)(t)}var u=function(){var e=c.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_"}}}},6598:(e,t,n)=>{"use strict";n.d(t,{J:()=>g});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},a=n(918),i=!1,o=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!==typeof e},u=(0,a.A)((function(e){return l(e)?e:e.replace(o,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(s,(function(e,t,n){return f={name:t,styles:n,next:f},t}))}return 1===r[e]||l(e)||"number"!==typeof t||0===t?t:t+"px"},p="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function h(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var a=n;if(1===a.anim)return f={name:a.name,styles:a.styles,next:f},a.name;var o=n;if(void 0!==o.styles){var s=o.next;if(void 0!==s)for(;void 0!==s;)f={name:s.name,styles:s.styles,next:f},s=s.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=h(e,t,n[a])+";";else for(var o in n){var s=n[o];if("object"!==typeof s){var l=s;null!=t&&void 0!==t[l]?r+=o+"{"+t[l]+"}":c(l)&&(r+=u(o)+":"+d(o,l)+";")}else{if("NO_COMPONENT_SELECTOR"===o&&i)throw new Error(p);if(!Array.isArray(s)||"string"!==typeof s[0]||null!=t&&void 0!==t[s[0]]){var f=h(e,t,s);switch(o){case"animation":case"animationName":r+=u(o)+":"+f+";";break;default:r+=o+"{"+f+"}"}}else for(var m=0;m<s.length;m++)c(s[m])&&(r+=u(o)+":"+d(o,s[m])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var l=f,m=n(e);return f=l,h(e,t,m)}}var g=n;if(null==t)return g;var v=t[g];return void 0!==v?v:g}var f,m=/label:\s*([^\s;{]+)\s*(;|$)/g;function g(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,a="";f=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,a+=h(n,t,i)):a+=i[0];for(var o=1;o<e.length;o++){if(a+=h(n,t,e[o]),r)a+=i[o]}m.lastIndex=0;for(var s,l="";null!==(s=m.exec(a));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,a=e.length;a>=4;++r,a-=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(a){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)}(a)+l;return{name:c,styles:a,next:f}}},9436:(e,t,n)=>{"use strict";var r;n.d(t,{i:()=>s,s:()=>o});var a=n(5043),i=!!(r||(r=n.t(a,2))).useInsertionEffect&&(r||(r=n.t(a,2))).useInsertionEffect,o=i||function(e){return e()},s=i||a.useLayoutEffect},1722:(e,t,n)=>{"use strict";n.d(t,{Rk:()=>r,SF:()=>a,sk:()=>i});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var a=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){a(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}},5881:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case o:case p:case h:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case f:case l:return e;default:return t}}case a:return t}}}n=Symbol.for("react.module.reference")},805:(e,t,n)=>{"use strict";n(5881)},869:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});n(5043);var r=n(3290),a=n(579);function i(e){const{styles:t,defaultTheme:n={}}=e,i="function"===typeof t?e=>{return t(void 0===(r=e)||null===r||0===Object.keys(r).length?n:e);var r}:t;return(0,a.jsx)(r.mL,{styles:i})}},1431:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});n(5043);var r=n(4575),a=n(3803),i=n(579);let o;function s(e){const{injectFirst:t,children:n}=e;return t&&o?(0,i.jsx)(r.C,{value:o,children:n}):n}"object"===typeof document&&(o=(0,a.A)({key:"css",prepend:!0}))},4984:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalStyles:()=>x.A,StyledEngineProvider:()=>b.A,ThemeContext:()=>l.T,css:()=>y.AH,default:()=>w,internal_processStyles:()=>S,keyframes:()=>y.i7});var r=n(8168),a=n(5043),i=n(918),o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(0,i.A)((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(4575),c=n(1722),u=n(6598),d=n(9436),p=s,h=function(e){return"theme"!==e},f=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?p:h},m=function(e,t,n){var r;if(t){var a=t.shouldForwardProp;r=e.__emotion_forwardProp&&a?function(t){return e.__emotion_forwardProp(t)&&a(t)}:a}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,c.SF)(t,n,r),(0,d.s)((function(){return(0,c.sk)(t,n,r)})),null},v=function e(t,n){var i,o,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==n&&(i=n.label,o=n.target);var p=m(t,n,s),h=p||f(d),v=!h("as");return function(){var y=arguments,b=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&b.push("label:"+i+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{b.push(y[0][0]);for(var x=y.length,w=1;w<x;w++)b.push(y[w],y[0][w])}var S=(0,l.w)((function(e,t,n){var r=v&&e.as||d,i="",s=[],m=e;if(null==e.theme){for(var y in m={},e)m[y]=e[y];m.theme=a.useContext(l.T)}"string"===typeof e.className?i=(0,c.Rk)(t.registered,s,e.className):null!=e.className&&(i=e.className+" ");var x=(0,u.J)(b.concat(s),t.registered,m);i+=t.key+"-"+x.name,void 0!==o&&(i+=" "+o);var w=v&&void 0===p?f(r):h,S={};for(var C in e)v&&"as"===C||w(C)&&(S[C]=e[C]);return S.className=i,n&&(S.ref=n),a.createElement(a.Fragment,null,a.createElement(g,{cache:t,serialized:x,isStringTag:"string"===typeof r}),a.createElement(r,S))}));return S.displayName=void 0!==i?i:"Styled("+("string"===typeof d?d:d.displayName||d.name||"Component")+")",S.defaultProps=t.defaultProps,S.__emotion_real=S,S.__emotion_base=d,S.__emotion_styles=b,S.__emotion_forwardProp=p,Object.defineProperty(S,"toString",{value:function(){return"."+o}}),S.withComponent=function(t,a){return e(t,(0,r.A)({},n,a,{shouldForwardProp:m(S,a,!0)})).apply(void 0,b)},S}}.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){v[e]=v(e)}));var y=n(3290),b=n(1431),x=n(869);function w(e,t){return v(e,t)}const S=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},7266:(e,t,n)=>{"use strict";var r=n(4994);t.X4=h,t.e$=f,t.tL=g,t.eM=function(e,t){const n=p(e),r=p(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.a=m;var a=r(n(457)),i=r(n(6531));function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,i.default)(e,t,n)}function s(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(s(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,a.default)(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,a.default)(10,r))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:r}}const c=e=>{const t=l(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};function u(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function d(e){e=l(e);const{values:t}=e,n=t[0],r=t[1]/100,a=t[2]/100,i=r*Math.min(a,1-a),o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return a-i*Math.max(Math.min(t-3,9-t,1),-1)};let s="rgb";const c=[Math.round(255*o(0)),Math.round(255*o(8)),Math.round(255*o(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),u({type:s,values:c})}function p(e){let t="hsl"===(e=l(e)).type||"hsla"===e.type?l(d(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function h(e,t){return e=l(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,u(e)}function f(e,t){if(e=l(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return u(e)}function m(e,t){if(e=l(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return u(e)}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return p(e)>.5?f(e,t):m(e,t)}},8052:(e,t,n)=>{"use strict";var r=n(4994);t.Ay=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=m,rootShouldForwardProp:r=f,slotShouldForwardProp:l=f}=e,u=e=>(0,c.default)((0,a.default)({},e,{theme:v((0,a.default)({},e,{defaultTheme:n,themeId:t}))}));return u.__mui_systemSx=!0,function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:d,slot:h,skipVariantsResolver:m,skipSx:x,overridesResolver:w=y(g(h))}=c,S=(0,i.default)(c,p),C=void 0!==m?m:h&&"Root"!==h&&"root"!==h||!1,A=x||!1;let k=f;"Root"===h||"root"===h?k=r:h?k=l:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(k=void 0);const T=(0,o.default)(e,(0,a.default)({shouldForwardProp:k,label:undefined},S)),j=e=>"function"===typeof e&&e.__emotion_real!==e||(0,s.isPlainObject)(e)?r=>b(e,(0,a.default)({},r,{theme:v({theme:r.theme,defaultTheme:n,themeId:t})})):e,E=function(r){let i=j(r);for(var o=arguments.length,s=new Array(o>1?o-1:0),l=1;l<o;l++)s[l-1]=arguments[l];const c=s?s.map(j):[];d&&w&&c.push((e=>{const r=v((0,a.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[d]||!r.components[d].styleOverrides)return null;const i=r.components[d].styleOverrides,o={};return Object.entries(i).forEach((t=>{let[n,i]=t;o[n]=b(i,(0,a.default)({},e,{theme:r}))})),w(e,o)})),d&&!C&&c.push((e=>{var r;const i=v((0,a.default)({},e,{defaultTheme:n,themeId:t}));return b({variants:null==i||null==(r=i.components)||null==(r=r[d])?void 0:r.variants},(0,a.default)({},e,{theme:i}))})),A||c.push(u);const p=c.length-s.length;if(Array.isArray(r)&&p>0){const e=new Array(p).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const h=T(i,...c);return e.muiName&&(h.muiName=e.muiName),h};return T.withConfig&&(E.withConfig=T.withConfig),E}};var a=r(n(4634)),i=r(n(4893)),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(4984)),s=n(9482),l=(r(n(7918)),r(n(3382)),r(n(4989))),c=r(n(3234));const u=["ownerState"],d=["variants"],p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}function f(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const m=(0,l.default)(),g=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function v(e){let{defaultTheme:t,theme:n,themeId:r}=e;return a=n,0===Object.keys(a).length?t:n[r]||n;var a}function y(e){return e?(t,n)=>n[e]:null}function b(e,t){let{ownerState:n}=t,r=(0,i.default)(t,u);const o="function"===typeof e?e((0,a.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>b(e,(0,a.default)({ownerState:n},r))));if(o&&"object"===typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,i.default)(o,d);return e.forEach((e=>{let i=!0;"function"===typeof e.props?i=e.props((0,a.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,a.default)({ownerState:n},r,n)):e.style))})),t}return o}},9751:(e,t,n)=>{"use strict";n.d(t,{EU:()=>s,NI:()=>o,iZ:()=>c,kW:()=>u,vf:()=>l,zu:()=>a});var r=n(9172);const a={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${a[e]}px)`};function o(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||i;return t.reduce(((r,a,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"===typeof t){const e=r.breakpoints||i;return Object.keys(t).reduce(((r,i)=>{if(-1!==Object.keys(e.values||a).indexOf(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}return r}),{})}return n(t)}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function c(e){const t=s(e);for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];const o=[t,...a].reduce(((e,t)=>(0,r.A)(e,t)),{});return l(Object.keys(t),o)}function u(e){let{values:t,breakpoints:n,base:r}=e;const a=r||function(e,t){if("object"!==typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(t,n),i=Object.keys(a);if(0===i.length)return t;let o;return i.reduce(((e,n,r)=>(Array.isArray(t)?(e[n]=null!=t[r]?t[r]:t[o],o=r):"object"===typeof t?(e[n]=null!=t[n]?t[n]:t[o],o=n):e[n]=t,e)),{})}},9703:(e,t,n)=>{"use strict";function r(e,t){const n=this;if(n.vars&&"function"===typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}n.d(t,{A:()=>r})},4853:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(8587),a=n(8168);const i=["values","unit","step"],o=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,a.A)({},e,{[t.key]:t.val})),{})};function s(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:s=5}=e,l=(0,r.A)(e,i),c=o(t),u=Object.keys(c);function d(e){return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${n})`}function p(e){return`@media (max-width:${("number"===typeof t[e]?t[e]:e)-s/100}${n})`}function h(e,r){const a=u.indexOf(r);return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==a&&"number"===typeof t[u[a]]?t[u[a]]:r)-s/100}${n})`}return(0,a.A)({keys:u,values:c,up:d,down:p,between:h,only:function(e){return u.indexOf(e)+1<u.length?h(e,u[u.indexOf(e)+1]):d(e)},not:function(e){const t=u.indexOf(e);return 0===t?d(u[1]):t===u.length-1?p(u[t]):h(e,u[u.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},l)}},8280:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(8168),a=n(8587),i=n(9172),o=n(4853);const s={borderRadius:4};var l=n(8604);var c=n(8812),u=n(7758),d=n(9703);const p=["breakpoints","palette","spacing","shape"];const h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:n={},spacing:h,shape:f={}}=e,m=(0,a.A)(e,p),g=(0,o.A)(t),v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=(0,l.LX)({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((e=>{const n=t(e);return"number"===typeof n?`${n}px`:n})).join(" ")};return n.mui=!0,n}(h);let y=(0,i.A)({breakpoints:g,direction:"ltr",components:{},palette:(0,r.A)({mode:"light"},n),spacing:v,shape:(0,r.A)({},s,f)},m);y.applyStyles=d.A;for(var b=arguments.length,x=new Array(b>1?b-1:0),w=1;w<b;w++)x[w-1]=arguments[w];return y=x.reduce(((e,t)=>(0,i.A)(e,t)),y),y.unstable_sxConfig=(0,r.A)({},u.A,null==m?void 0:m.unstable_sxConfig),y.unstable_sx=function(e){return(0,c.A)({sx:e,theme:this})},y}},4989:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,private_createBreakpoints:()=>a.A,unstable_applyStyles:()=>i.A});var r=n(8280),a=n(4853),i=n(9703)},3815:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(9172);const a=function(e,t){return t?(0,r.A)(e,t,{clone:!1}):e}},8604:(e,t,n)=>{"use strict";n.d(t,{LX:()=>f,MA:()=>h,_W:()=>m,Lc:()=>y,Ms:()=>b});var r=n(9751),a=n(7162),i=n(3815);const o={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),r=o[t],a=s[n]||"";return Array.isArray(a)?a.map((e=>r+e)):[r+a]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[...u,...d];function h(e,t,n,r){var i;const o=null!=(i=(0,a.Yn)(e,t,!1))?i:n;return"number"===typeof o?e=>"string"===typeof e?e:o*e:Array.isArray(o)?e=>"string"===typeof e?e:o[e]:"function"===typeof o?o:()=>{}}function f(e){return h(e,"spacing",8)}function m(e,t){if("string"===typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:`-${n}`}function g(e,t,n,a){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=m(t,n),e)),{})}(c(n),a),o=e[n];return(0,r.NI)(e,o,i)}function v(e,t){const n=f(e.theme);return Object.keys(e).map((r=>g(e,t,r,n))).reduce(i.A,{})}function y(e){return v(e,u)}function b(e){return v(e,d)}function x(e){return v(e,p)}y.propTypes={},y.filterProps=u,b.propTypes={},b.filterProps=d,x.propTypes={},x.filterProps=p},7162:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,BO:()=>o,Yn:()=>i});var r=n(7598),a=n(9751);function i(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function o(e,t,n){let r,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||a:i(e,n)||a,t&&(r=t(r,a,e)),r}const s=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=i(e.theme,s)||{};return(0,a.NI)(e,c,(e=>{let a=o(u,l,e);return e===a&&"string"===typeof e&&(a=o(u,l,`${t}${"default"===e?"":(0,r.A)(e)}`,e)),!1===n?a:{[n]:a}}))};return c.propTypes={},c.filterProps=[t],c}},7758:(e,t,n)=>{"use strict";n.d(t,{A:()=>I});var r=n(8604),a=n(7162),i=n(3815);const o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),a=e=>Object.keys(e).reduce(((t,n)=>r[n]?(0,i.A)(t,r[n](e)):t),{});return a.propTypes={},a.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),a};var s=n(9751);function l(e){return"number"!==typeof e?e:`${e}px solid`}function c(e,t){return(0,a.Ay)({prop:e,themeKey:"borders",transform:t})}const u=c("border",l),d=c("borderTop",l),p=c("borderRight",l),h=c("borderBottom",l),f=c("borderLeft",l),m=c("borderColor"),g=c("borderTopColor"),v=c("borderRightColor"),y=c("borderBottomColor"),b=c("borderLeftColor"),x=c("outline",l),w=c("outlineColor"),S=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r._W)(t,e)});return(0,s.NI)(e,e.borderRadius,n)}return null};S.propTypes={},S.filterProps=["borderRadius"];o(u,d,p,h,f,m,g,v,y,b,S,x,w);const C=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.MA)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r._W)(t,e)});return(0,s.NI)(e,e.gap,n)}return null};C.propTypes={},C.filterProps=["gap"];const A=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.MA)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.columnGap,n)}return null};A.propTypes={},A.filterProps=["columnGap"];const k=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.MA)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.rowGap,n)}return null};k.propTypes={},k.filterProps=["rowGap"];o(C,A,k,(0,a.Ay)({prop:"gridColumn"}),(0,a.Ay)({prop:"gridRow"}),(0,a.Ay)({prop:"gridAutoFlow"}),(0,a.Ay)({prop:"gridAutoColumns"}),(0,a.Ay)({prop:"gridAutoRows"}),(0,a.Ay)({prop:"gridTemplateColumns"}),(0,a.Ay)({prop:"gridTemplateRows"}),(0,a.Ay)({prop:"gridTemplateAreas"}),(0,a.Ay)({prop:"gridArea"}));function T(e,t){return"grey"===t?t:e}o((0,a.Ay)({prop:"color",themeKey:"palette",transform:T}),(0,a.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:T}),(0,a.Ay)({prop:"backgroundColor",themeKey:"palette",transform:T}));function j(e){return e<=1&&0!==e?100*e+"%":e}const E=(0,a.Ay)({prop:"width",transform:j}),P=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const a=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||s.zu[t];return a?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:j(t)}};return(0,s.NI)(e,e.maxWidth,t)}return null};P.filterProps=["maxWidth"];const N=(0,a.Ay)({prop:"minWidth",transform:j}),D=(0,a.Ay)({prop:"height",transform:j}),M=(0,a.Ay)({prop:"maxHeight",transform:j}),_=(0,a.Ay)({prop:"minHeight",transform:j}),I=((0,a.Ay)({prop:"size",cssProperty:"width",transform:j}),(0,a.Ay)({prop:"size",cssProperty:"height",transform:j}),o(E,P,N,D,M,_,(0,a.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:S},color:{themeKey:"palette",transform:T},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:T},backgroundColor:{themeKey:"palette",transform:T},p:{style:r.Ms},pt:{style:r.Ms},pr:{style:r.Ms},pb:{style:r.Ms},pl:{style:r.Ms},px:{style:r.Ms},py:{style:r.Ms},padding:{style:r.Ms},paddingTop:{style:r.Ms},paddingRight:{style:r.Ms},paddingBottom:{style:r.Ms},paddingLeft:{style:r.Ms},paddingX:{style:r.Ms},paddingY:{style:r.Ms},paddingInline:{style:r.Ms},paddingInlineStart:{style:r.Ms},paddingInlineEnd:{style:r.Ms},paddingBlock:{style:r.Ms},paddingBlockStart:{style:r.Ms},paddingBlockEnd:{style:r.Ms},m:{style:r.Lc},mt:{style:r.Lc},mr:{style:r.Lc},mb:{style:r.Lc},ml:{style:r.Lc},mx:{style:r.Lc},my:{style:r.Lc},margin:{style:r.Lc},marginTop:{style:r.Lc},marginRight:{style:r.Lc},marginBottom:{style:r.Lc},marginLeft:{style:r.Lc},marginX:{style:r.Lc},marginY:{style:r.Lc},marginInline:{style:r.Lc},marginInlineStart:{style:r.Lc},marginInlineEnd:{style:r.Lc},marginBlock:{style:r.Lc},marginBlockStart:{style:r.Lc},marginBlockEnd:{style:r.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:C},rowGap:{style:k},columnGap:{style:A},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:j},maxWidth:{style:P},minWidth:{transform:j},height:{transform:j},maxHeight:{transform:j},minHeight:{transform:j},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},8698:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8168),a=n(8587),i=n(9172),o=n(7758);const s=["sx"],l=e=>{var t,n;const r={systemProps:{},otherProps:{}},a=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:o.A;return Object.keys(e).forEach((t=>{a[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function c(e){const{sx:t}=e,n=(0,a.A)(e,s),{systemProps:o,otherProps:c}=l(n);let u;return u=Array.isArray(t)?[o,...t]:"function"===typeof t?function(){const e=t(...arguments);return(0,i.Q)(e)?(0,r.A)({},o,e):o}:(0,r.A)({},o,t),(0,r.A)({},c,{sx:u})}},3234:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,extendSxProp:()=>a.A,unstable_createStyleFunctionSx:()=>r.k,unstable_defaultSxConfig:()=>i.A});var r=n(8812),a=n(8698),i=n(7758)},8812:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,k:()=>l});var r=n(7598),a=n(3815),i=n(7162),o=n(9751),s=n(7758);function l(){function e(e,t,n,a){const s={[e]:t,theme:n},l=a[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:p}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const h=(0,i.Yn)(n,u)||{};if(p)return p(s);return(0,o.NI)(s,t,(t=>{let n=(0,i.BO)(h,d,t);return t===n&&"string"===typeof t&&(n=(0,i.BO)(h,d,`${e}${"default"===t?"":(0,r.A)(t)}`,t)),!1===c?n:{[c]:n}}))}return function t(n){var r;const{sx:i,theme:l={}}=n||{};if(!i)return null;const c=null!=(r=l.unstable_sxConfig)?r:s.A;function u(n){let r=n;if("function"===typeof n)r=n(l);else if("object"!==typeof n)return n;if(!r)return null;const i=(0,o.EU)(l.breakpoints),s=Object.keys(i);let u=i;return Object.keys(r).forEach((n=>{const i=(s=r[n],d=l,"function"===typeof s?s(d):s);var s,d;if(null!==i&&void 0!==i)if("object"===typeof i)if(c[n])u=(0,a.A)(u,e(n,i,l,c));else{const e=(0,o.NI)({theme:l},i,(e=>({[n]:e})));!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>e.concat(Object.keys(t))),[]),a=new Set(r);return t.every((e=>a.size===Object.keys(e).length))}(e,i)?u=(0,a.A)(u,e):u[n]=t({sx:i,theme:l})}else u=(0,a.A)(u,e(n,i,l,c))})),(0,o.vf)(s,u)}return Array.isArray(i)?i.map(u):u(i)}}const c=l();c.filterProps=["sx"];const u=c},2374:(e,t,n)=>{"use strict";t.A=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(5043)),a=n(4984);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}t.A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=r.useContext(a.ThemeContext);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},7598:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(7868);function a(e){if("string"!==typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},7918:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(7598)},1188:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,n))}},6531:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(1188)},9172:(e,t,n)=>{"use strict";n.d(t,{A:()=>o,Q:()=>a});var r=n(8168);function a(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function i(e){if(!a(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=i(e[n])})),t}function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const s=n.clone?(0,r.A)({},e):e;return a(e)&&a(t)&&Object.keys(t).forEach((r=>{a(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&a(e[r])?s[r]=o(e[r],t[r],n):n.clone?s[r]=a(t[r])?i(t[r]):t[r]:s[r]=t[r]})),s}},9482:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,isPlainObject:()=>r.Q});var r=n(9172)},7868:(e,t,n)=>{"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{A:()=>r})},457:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(7868)},3382:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,getFunctionName:()=>i});var r=n(9565);const a=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function i(e){const t=`${e}`.match(a);return t&&t[1]||""}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||i(e)||t}function s(e,t,n){const r=o(t);return e.displayName||(""!==r?`${n}(${r})`:n)}function l(e){if(null!=e){if("string"===typeof e)return e;if("function"===typeof e)return o(e,"Component");if("object"===typeof e)switch(e.$$typeof){case r.ForwardRef:return s(e,e.render,"ForwardRef");case r.Memo:return s(e,e.type,"memo");default:return}}}},8609:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case o:case p:case h:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case f:case l:return e;default:return t}}case a:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,t.Memo=f},9565:(e,t,n)=>{"use strict";e.exports=n(8609)},854:(e,t,n)=>{e.exports=n(672)},1989:(e,t,n)=>{"use strict";var r=n(6267),a=n(3229),i=n(7903),o=n(6735),s=n(7638),l=n(3101),c=n(705),u=n(938),d=n(1550),p=n(5299);e.exports=function(e){return new Promise((function(t,n){var h,f=e.data,m=e.headers,g=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(f)&&delete m["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(b+":"+x)}var w=s(e.baseURL,e.url);function S(){if(y){var r="getAllResponseHeaders"in y?l(y.getAllResponseHeaders()):null,i={data:g&&"text"!==g&&"json"!==g?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:r,config:e,request:y};a((function(e){t(e),v()}),(function(e){n(e),v()}),i),y=null}}if(y.open(e.method.toUpperCase(),o(w,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=S:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(S)},y.onabort=function(){y&&(n(u("Request aborted",e,"ECONNABORTED",y)),y=null)},y.onerror=function(){n(u("Network Error",e,null,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||d.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},r.isStandardBrowserEnv()){var C=(e.withCredentials||c(w))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;C&&(m[e.xsrfHeaderName]=C)}"setRequestHeader"in y&&r.forEach(m,(function(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete m[t]:y.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),g&&"json"!==g&&(y.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){y&&(n(!e||e&&e.type?new p("canceled"):e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),f||(f=null),y.send(f)}))}},672:(e,t,n)=>{"use strict";var r=n(6267),a=n(6973),i=n(8938),o=n(6438);var s=function e(t){var n=new i(t),s=a(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return e(o(t,n))},s}(n(1550));s.Axios=i,s.Cancel=n(5299),s.CancelToken=n(7690),s.isCancel=n(7767),s.VERSION=n(3104).version,s.all=function(e){return Promise.all(e)},s.spread=n(8125),s.isAxiosError=n(8738),e.exports=s,e.exports.default=s},5299:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},7690:(e,t,n)=>{"use strict";var r=n(5299);function a(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}a.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},a.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},a.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},a.source=function(){var e;return{token:new a((function(t){e=t})),cancel:e}},e.exports=a},7767:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},8938:(e,t,n)=>{"use strict";var r=n(6267),a=n(6735),i=n(6664),o=n(4395),s=n(6438),l=n(2478),c=l.validators;function u(e){this.defaults=e,this.interceptors={request:new i,response:new i}}u.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var a,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var u=[o,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(i),a=Promise.resolve(e);u.length;)a=a.then(u.shift(),u.shift());return a}for(var d=e;n.length;){var p=n.shift(),h=n.shift();try{d=p(d)}catch(f){h(f);break}}try{a=o(d)}catch(f){return Promise.reject(f)}for(;i.length;)a=a.then(i.shift(),i.shift());return a},u.prototype.getUri=function(e){return e=s(this.defaults,e),a(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=u},6664:(e,t,n)=>{"use strict";var r=n(6267);function a(){this.handlers=[]}a.prototype.use=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},a.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},a.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=a},7638:(e,t,n)=>{"use strict";var r=n(2762),a=n(1523);e.exports=function(e,t){return e&&!r(t)?a(e,t):t}},938:(e,t,n)=>{"use strict";var r=n(9478);e.exports=function(e,t,n,a,i){var o=new Error(e);return r(o,t,n,a,i)}},4395:(e,t,n)=>{"use strict";var r=n(6267),a=n(3024),i=n(7767),o=n(1550),s=n(5299);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=a.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return l(e),t.data=a.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=a.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},9478:e=>{"use strict";e.exports=function(e,t,n,r,a){return e.config=t,n&&(e.code=n),e.request=r,e.response=a,e.isAxiosError=!0,e.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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},6438:(e,t,n)=>{"use strict";var r=n(6267);e.exports=function(e,t){t=t||{};var n={};function a(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:a(void 0,e[n]):a(e[n],t[n])}function o(e){if(!r.isUndefined(t[e]))return a(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:a(void 0,e[n]):a(void 0,t[n])}function l(n){return n in t?a(e[n],t[n]):n in e?a(void 0,e[n]):void 0}var c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,a=t(e);r.isUndefined(a)&&t!==l||(n[e]=a)})),n}},3229:(e,t,n)=>{"use strict";var r=n(938);e.exports=function(e,t,n){var a=n.config.validateStatus;n.status&&a&&!a(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},3024:(e,t,n)=>{"use strict";var r=n(6267),a=n(1550);e.exports=function(e,t,n){var i=this||a;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},1550:(e,t,n)=>{"use strict";var r=n(6267),a=n(2121),i=n(9478),o={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(1989)),e}(),transformRequest:[function(e,t){return a(t,"Accept"),a(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(a){if("SyntaxError"!==a.name)throw a}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||l.transitional,n=t&&t.silentJSONParsing,a=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||a&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(o){if("SyntaxError"===s.name)throw i(s,this,"E_JSON_PARSE");throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(o)})),e.exports=l},3104:e=>{e.exports={version:"0.23.0"}},6973:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},6735:(e,t,n)=>{"use strict";var r=n(6267);function a(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var o=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),o.push(a(t)+"="+a(e))})))})),i=o.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},1523:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},7903:(e,t,n)=>{"use strict";var r=n(6267);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,a,i,o){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(a)&&s.push("path="+a),r.isString(i)&&s.push("domain="+i),!0===o&&s.push("secure"),document.cookie=s.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(){}}},2762:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},8738:e=>{"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},705:(e,t,n)=>{"use strict";var r=n(6267);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function a(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=a(window.location.href),function(t){var n=r.isString(t)?a(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},2121:(e,t,n)=>{"use strict";var r=n(6267);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},3101:(e,t,n)=>{"use strict";var r=n(6267),a=["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"];e.exports=function(e){var t,n,i,o={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(o[t]&&a.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},8125:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},2478:(e,t,n)=>{"use strict";var r=n(3104).version,a={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){a[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={};a.transitional=function(e,t,n){function a(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,o){if(!1===e)throw new Error(a(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}},e.exports={assertOptions:function(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),a=r.length;a-- >0;){var i=r[a],o=t[i];if(o){var s=e[i],l=void 0===s||o(s,i,e);if(!0!==l)throw new TypeError("option "+i+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:a}},6267:(e,t,n)=>{"use strict";var r=n(6973),a=Object.prototype.toString;function i(e){return"[object Array]"===a.call(e)}function o(e){return"undefined"===typeof e}function s(e){return null!==e&&"object"===typeof e}function l(e){if("[object Object]"!==a.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===a.call(e)}function u(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===a.call(e)},isBuffer:function(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!==typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:s,isPlainObject:l,isUndefined:o,isDate:function(e){return"[object Date]"===a.call(e)},isFile:function(e){return"[object File]"===a.call(e)},isBlob:function(e){return"[object Blob]"===a.call(e)},isFunction:c,isStream:function(e){return s(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:u,merge:function e(){var t={};function n(n,r){l(t[r])&&l(n)?t[r]=e(t[r],n):l(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,a=arguments.length;r<a;r++)u(arguments[r],n);return t},extend:function(e,t,n){return u(t,(function(t,a){e[a]=n&&"function"===typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},4445:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=s(e),o=i[0],l=i[1],c=new a(function(e,t,n){return 3*(t+n)/4-n}(0,o,l)),u=0,d=l>0?o-4:o;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,r=e.length,a=r%3,i=[],o=16383,s=0,c=r-a;s<c;s+=o)i.push(l(e,s,s+o>c?c:s+o));1===a?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===a&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],a="undefined"!==typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)n[o]=i[o],r[i.charCodeAt(o)]=o;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var a,i,o=[],s=t;s<r;s+=3)a=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(n[(i=a)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},6382:(e,t,n)=>{"use strict";const r=n(4445),a=n(6900),i="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=l,t.IS=50;const o=2147483647;function s(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return c(e,t,n)}function c(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=s(n);const a=r.write(e,t);a!==n&&(r=r.slice(0,a));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);const a=function(e){if(l.isBuffer(e)){const t=0|f(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||X(e.length)?s(0):p(e);if("Buffer"===e.type&&Array.isArray(e.data))return p(e.data)}(e);if(a)return a;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),s(e<0?0:0|f(e))}function p(e){const t=e.length<0?0:0|f(e.length),n=s(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function h(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,l.prototype),r}function f(e){if(e>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let a=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(a)return r?-1:q(e).length;t=(""+t).toLowerCase(),a=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return E(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,a){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),X(n=+n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"===typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,a);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,a){let i,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){let r=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===l)return r*o}else-1!==r&&(i-=i-r),r=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){let n=!0;for(let r=0;r<l;r++)if(c(e,i+r)!==c(t,r)){n=!1;break}if(n)return i}return-1}function x(e,t,n,r){n=Number(n)||0;const a=e.length-n;r?(r=Number(r))>a&&(r=a):r=a;const i=t.length;let o;for(r>i/2&&(r=i/2),o=0;o<r;++o){const r=parseInt(t.substr(2*o,2),16);if(X(r))return o;e[n+o]=r}return o}function w(e,t,n,r){return K(q(t,e.length-n),e,n,r)}function S(e,t,n,r){return K(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function C(e,t,n,r){return K(G(t),e,n,r)}function A(e,t,n,r){return K(function(e,t){let n,r,a;const i=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,a=n%256,i.push(a),i.push(r);return i}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);const r=[];let a=t;for(;a<n;){const t=e[a];let i=null,o=t>239?4:t>223?3:t>191?2:1;if(a+o<=n){let n,r,s,l;switch(o){case 1:t<128&&(i=t);break;case 2:n=e[a+1],128===(192&n)&&(l=(31&t)<<6|63&n,l>127&&(i=l));break;case 3:n=e[a+1],r=e[a+2],128===(192&n)&&128===(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(i=l));break;case 4:n=e[a+1],r=e[a+2],s=e[a+3],128===(192&n)&&128===(192&r)&&128===(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(i=l))}}null===i?(i=65533,o=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),a+=o}return function(e){const t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=j));return n}(r)}l.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?s(e):void 0!==t?"string"===typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},l.allocUnsafe=function(e){return d(e)},l.allocUnsafeSlow=function(e){return d(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(Y(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),Y(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let a=0,i=Math.min(n,r);a<i;++a)if(e[a]!==t[a]){n=e[a],r=t[a];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=l.allocUnsafe(t);let a=0;for(n=0;n<e.length;++n){let t=e[n];if(Y(t,Uint8Array))a+t.length>r.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,a)):Uint8Array.prototype.set.call(r,t,a);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,a)}a+=t.length}return r},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)v(this,t,t+1);return this},l.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},l.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?T(this,0,e):g.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const n=t.IS;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,a){if(Y(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(this===e)return 0;let i=(a>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0);const s=Math.min(i,o),c=this.slice(r,a),u=e.slice(t,n);for(let l=0;l<s;++l)if(c[l]!==u[l]){i=c[l],o=u[l];break}return i<o?-1:o<i?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return x(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":case"latin1":case"binary":return S(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const j=4096;function E(e,t,n){let r="";n=Math.min(e.length,n);for(let a=t;a<n;++a)r+=String.fromCharCode(127&e[a]);return r}function P(e,t,n){let r="";n=Math.min(e.length,n);for(let a=t;a<n;++a)r+=String.fromCharCode(e[a]);return r}function N(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let a="";for(let i=t;i<n;++i)a+=Z[e[i]];return a}function D(e,t,n){const r=e.slice(t,n);let a="";for(let i=0;i<r.length-1;i+=2)a+=String.fromCharCode(r[i]+256*r[i+1]);return a}function M(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function _(e,t,n,r,a,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function I(e,t,n,r,a){W(t,r,a,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function R(e,t,n,r,a){W(t,r,a,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function O(e,t,n,r,a,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,r,i){return t=+t,n>>>=0,i||O(e,0,n,4),a.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,i){return t=+t,n>>>=0,i||O(e,0,n,8),a.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,l.prototype),r},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=this[e],a=1,i=0;for(;++i<t&&(a*=256);)r+=this[e+i]*a;return r},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=this[e+--t],a=1;for(;t>0&&(a*=256);)r+=this[e+--t]*a;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||M(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||M(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||M(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=J((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,a=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(a)<<BigInt(32))})),l.prototype.readBigUInt64BE=J((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],a=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(a)})),l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=this[e],a=1,i=0;for(;++i<t&&(a*=256);)r+=this[e+i]*a;return a*=128,r>=a&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=t,a=1,i=this[e+--r];for(;r>0&&(a*=256);)i+=this[e+--r]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return e>>>=0,t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||M(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||M(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=J((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),l.prototype.readBigInt64BE=J((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||M(e,4,this.length),a.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||M(e,4,this.length),a.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||M(e,8,this.length),a.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||M(e,8,this.length),a.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){_(this,e,t,n,Math.pow(2,8*n)-1,0)}let a=1,i=0;for(this[t]=255&e;++i<n&&(a*=256);)this[t+i]=e/a&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){_(this,e,t,n,Math.pow(2,8*n)-1,0)}let a=n-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||_(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||_(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||_(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||_(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||_(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=J((function(e){return I(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=J((function(e){return R(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);_(this,e,t,n,r-1,-r)}let a=0,i=1,o=0;for(this[t]=255&e;++a<n&&(i*=256);)e<0&&0===o&&0!==this[t+a-1]&&(o=1),this[t+a]=(e/i|0)-o&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);_(this,e,t,n,r-1,-r)}let a=n-1,i=1,o=0;for(this[t+a]=255&e;--a>=0&&(i*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/i|0)-o&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||_(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||_(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||_(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||_(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||_(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=J((function(e){return I(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=J((function(e){return R(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const a=r-n;return this===e&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),a},l.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"===typeof e?e&=255:"boolean"===typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(a=t;a<n;++a)this[a]=e;else{const i=l.isBuffer(e)?e:l.from(e,r),o=i.length;if(0===o)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-t;++a)this[a+t]=i[a%o]}return this};const B={};function z(e,t,n){B[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function V(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function W(e,t,n,r,a,i){if(e>n||e<t){const r="bigint"===typeof t?"n":"";let a;throw a=i>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new B.ERR_OUT_OF_RANGE("value",a,e)}!function(e,t,n){U(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||$(t,e.length-(n+1))}(r,a,i)}function U(e,t){if("number"!==typeof e)throw new B.ERR_INVALID_ARG_TYPE(t,"number",e)}function $(e,t,n){if(Math.floor(e)!==e)throw U(e,n),new B.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new B.ERR_BUFFER_OUT_OF_BOUNDS;throw new B.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}z("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),z("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),z("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,a=n;return Number.isInteger(n)&&Math.abs(n)>2**32?a=V(String(n)):"bigint"===typeof n&&(a=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(a=V(a)),a+="n"),r+=` It must be ${t}. Received ${a}`,r}),RangeError);const H=/[^+/0-9A-Za-z-_]/g;function q(e,t){let n;t=t||1/0;const r=e.length;let a=null;const i=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function G(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function K(e,t,n,r){let a;for(a=0;a<r&&!(a+n>=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function X(e){return e!==e}const Z=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let a=0;a<16;++a)t[r+a]=e[n]+e[a]}return t}();function J(e){return"undefined"===typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},7876:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e<0?"-":"",r=Math.abs(e).toString();for(;r.length<t;)r="0"+r;return n+r},e.exports=t.default},1067:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},e.exports=t.default},2088:(e,t,n)=>{"use strict";var r=n(4994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)({},e)};var a=r(n(1067));e.exports=t.default},2653:(e,t,n)=>{"use strict";var r=n(4994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(9406)).default;t.default=a,e.exports=t.default},6139:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultOptions=function(){return n},t.setDefaultOptions=function(e){n=e};var n={}},8065:(e,t,n)=>{"use strict";var r=n(4994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(5130)),i=r(n(389)),o=r(n(2964)),s=r(n(5252)),l=r(n(605)),c=r(n(7876)),u=r(n(5997)),d="midnight",p="noon",h="morning",f="afternoon",m="evening",g="night";function v(e,t){var n=e>0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),i=r%60;if(0===i)return n+String(a);var o=t||"";return n+String(a)+o+(0,c.default)(i,2)}function y(e,t){return e%60===0?(e>0?"-":"+")+(0,c.default)(Math.abs(e)/60,2):b(e,t)}function b(e,t){var n=t||"",r=e>0?"-":"+",a=Math.abs(e);return r+(0,c.default)(Math.floor(a/60),2)+n+(0,c.default)(a%60,2)}var x={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return u.default.y(e,t)},Y:function(e,t,n,r){var a=(0,l.default)(e,r),i=a>0?a:1-a;if("YY"===t){var o=i%100;return(0,c.default)(o,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):(0,c.default)(i,t.length)},R:function(e,t){var n=(0,o.default)(e);return(0,c.default)(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return(0,c.default)(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,c.default)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,c.default)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return u.default.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return(0,c.default)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var a=(0,s.default)(e,r);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):(0,c.default)(a,t.length)},I:function(e,t,n){var r=(0,i.default)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):(0,c.default)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):u.default.d(e,t)},D:function(e,t,n){var r=(0,a.default)(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):(0,c.default)(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var a=e.getUTCDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return(0,c.default)(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var a=e.getUTCDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return(0,c.default)(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),a=0===r?7:r;switch(t){case"i":return String(a);case"ii":return(0,c.default)(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,a=e.getUTCHours();switch(r=12===a?p:0===a?d:a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,a=e.getUTCHours();switch(r=a>=17?m:a>=12?f:a>=4?h:g,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return u.default.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):u.default.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,c.default)(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,c.default)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):u.default.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):u.default.s(e,t)},S:function(e,t){return u.default.S(e,t)},X:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();if(0===a)return"Z";switch(t){case"X":return y(a);case"XXXX":case"XX":return b(a);default:return b(a,":")}},x:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return y(a);case"xxxx":case"xx":return b(a);default:return b(a,":")}},O:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+v(a,":");default:return"GMT"+b(a,":")}},z:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+v(a,":");default:return"GMT"+b(a,":")}},t:function(e,t,n,r){var a=r._originalDate||e,i=Math.floor(a.getTime()/1e3);return(0,c.default)(i,t.length)},T:function(e,t,n,r){var a=(r._originalDate||e).getTime();return(0,c.default)(a,t.length)}};t.default=x,e.exports=t.default},5997:(e,t,n)=>{"use strict";var r=n(4994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(7876)),i={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return(0,a.default)("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):(0,a.default)(n+1,2)},d:function(e,t){return(0,a.default)(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return(0,a.default)(e.getUTCHours()%12||12,t.length)},H:function(e,t){return(0,a.default)(e.getUTCHours(),t.length)},m:function(e,t){return(0,a.default)(e.getUTCMinutes(),t.length)},s:function(e,t){return(0,a.default)(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,n-3));return(0,a.default)(i,t.length)}};t.default=i,e.exports=t.default},6723:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},r=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},a={p:r,P:function(e,t){var a,i=e.match(/(P+)(p+)?/)||[],o=i[1],s=i[2];if(!s)return n(e,t);switch(o){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",n(o,t)).replace("{{time}}",r(s,t))}};t.default=a,e.exports=t.default},5899:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()},e.exports=t.default},5130:(e,t,n)=>{"use strict";var r=n(4994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(1,arguments);var t=(0,a.default)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),s=n-r;return Math.floor(s/o)+1};var a=r(n(7336)),i=r(n(230)),o=864e5;e.exports=t.default},389:(e,t,n)=>{"use strict";var r=n(4994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,s.default)(1,arguments);var t=(0,a.default)(e),n=(0,i.default)(t).getTime()-(0,o.default)(t).getTime();return Math.round(n/l)+1};var a=r(n(7336)),i=r(n(144)),o=r(n(3089)),s=r(n(230)),l=6048e5;e.exports=t.default},2964:(e,t,n)=>{"use strict";var r=n(4994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(1,arguments);var t=(0,a.default)(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var s=(0,o.default)(r),l=new Date(0);l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0);var c=(0,o.default)(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1};var a=r(n(7336)),i=r(n(230)),o=r(n(144));e.exports=t.default},5252:(e,t,n)=>{"use strict";var r=n(4994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,s.default)(1,arguments);var n=(0,a.default)(e),r=(0,i.default)(n,t).getTime()-(0,o.default)(n,t).getTime();return Math.round(r/l)+1};var a=r(n(7336)),i=r(n(5419)),o=r(n(9222)),s=r(n(230)),l=6048e5;e.exports=t.default},605:(e,t,n)=>{"use strict";var r=n(4994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r,c,u,d,p,h,f;(0,i.default)(1,arguments);var m=(0,a.default)(e),g=m.getUTCFullYear(),v=(0,l.getDefaultOptions)(),y=(0,s.default)(null!==(n=null!==(r=null!==(c=null!==(u=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==u?u:null===t||void 0===t||null===(d=t.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==c?c:v.firstWeekContainsDate)&&void 0!==r?r:null===(h=v.locale)||void 0===h||null===(f=h.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(g+1,0,y),b.setUTCHours(0,0,0,0);var x=(0,o.default)(b,t),w=new Date(0);w.setUTCFullYear(g,0,y),w.setUTCHours(0,0,0,0);var S=(0,o.default)(w,t);return m.getTime()>=x.getTime()?g+1:m.getTime()>=S.getTime()?g:g-1};var a=r(n(7336)),i=r(n(230)),o=r(n(5419)),s=r(n(911)),l=n(6139);e.exports=t.default},2810:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isProtectedDayOfYearToken=function(e){return-1!==n.indexOf(e)},t.isProtectedWeekYearToken=function(e){return-1!==r.indexOf(e)},t.throwProtectedError=function(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))};var n=["D","DD"],r=["YY","YYYY"]},230:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")},e.exports=t.default},144:(e,t,n)=>{"use strict";var r=n(4994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(1,arguments);var t=(0,a.default)(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t};var a=r(n(7336)),i=r(n(230));e.exports=t.default},3089:(e,t,n)=>{"use strict";var r=n(4994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,a.default)(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),(0,i.default)(n)};var a=r(n(2964)),i=r(n(144)),o=r(n(230));e.exports=t.default},5419:(e,t,n)=>{"use strict";var r=n(4994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r,l,c,u,d,p,h;(0,i.default)(1,arguments);var f=(0,s.getDefaultOptions)(),m=(0,o.default)(null!==(n=null!==(r=null!==(l=null!==(c=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==c?c:null===t||void 0===t||null===(u=t.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==l?l:f.weekStartsOn)&&void 0!==r?r:null===(p=f.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,a.default)(e),v=g.getUTCDay(),y=(v<m?7:0)+v-m;return g.setUTCDate(g.getUTCDate()-y),g.setUTCHours(0,0,0,0),g};var a=r(n(7336)),i=r(n(230)),o=r(n(911)),s=n(6139);e.exports=t.default},9222:(e,t,n)=>{"use strict";var r=n(4994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r,c,u,d,p,h,f;(0,i.default)(1,arguments);var m=(0,l.getDefaultOptions)(),g=(0,s.default)(null!==(n=null!==(r=null!==(c=null!==(u=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==u?u:null===t||void 0===t||null===(d=t.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==c?c:m.firstWeekContainsDate)&&void 0!==r?r:null===(h=m.locale)||void 0===h||null===(f=h.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1),v=(0,a.default)(e,t),y=new Date(0);return y.setUTCFullYear(v,0,g),y.setUTCHours(0,0,0,0),(0,o.default)(y,t)};var a=r(n(605)),i=r(n(230)),o=r(n(5419)),s=r(n(911)),l=n(6139);e.exports=t.default},911:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);if(isNaN(t))return t;return t<0?Math.ceil(t):Math.floor(t)},e.exports=t.default},9142:(e,t,n)=>{"use strict";var r=n(4994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(2,arguments);var n=(0,i.default)(e).getTime(),r=(0,a.default)(t);return new Date(n+r)};var a=r(n(911)),i=r(n(7336)),o=r(n(230));e.exports=t.default},6422:(e,t,n)=>{"use strict";var r=n(4994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r,x,w,S,C,A,k,T,j,E,P,N,D,M,_,I,R,O;(0,p.default)(2,arguments);var L=String(t),F=(0,h.getDefaultOptions)(),B=null!==(r=null!==(x=null===n||void 0===n?void 0:n.locale)&&void 0!==x?x:F.locale)&&void 0!==r?r:f.default,z=(0,d.default)(null!==(w=null!==(S=null!==(C=null!==(A=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==A?A:null===n||void 0===n||null===(k=n.locale)||void 0===k||null===(T=k.options)||void 0===T?void 0:T.firstWeekContainsDate)&&void 0!==C?C:F.firstWeekContainsDate)&&void 0!==S?S:null===(j=F.locale)||void 0===j||null===(E=j.options)||void 0===E?void 0:E.firstWeekContainsDate)&&void 0!==w?w:1);if(!(z>=1&&z<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var V=(0,d.default)(null!==(P=null!==(N=null!==(D=null!==(M=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==M?M:null===n||void 0===n||null===(_=n.locale)||void 0===_||null===(I=_.options)||void 0===I?void 0:I.weekStartsOn)&&void 0!==D?D:F.weekStartsOn)&&void 0!==N?N:null===(R=F.locale)||void 0===R||null===(O=R.options)||void 0===O?void 0:O.weekStartsOn)&&void 0!==P?P:0);if(!(V>=0&&V<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!B.localize)throw new RangeError("locale must contain localize property");if(!B.formatLong)throw new RangeError("locale must contain formatLong property");var W=(0,o.default)(e);if(!(0,a.default)(W))throw new RangeError("Invalid time value");var U=(0,c.default)(W),$=(0,i.default)(W,U),H={firstWeekContainsDate:z,weekStartsOn:V,locale:B,_originalDate:W};return L.match(g).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,l.default[t])(e,B.formatLong):e})).join("").match(m).map((function(r){if("''"===r)return"'";var a=r[0];if("'"===a)return function(e){var t=e.match(v);if(!t)return e;return t[1].replace(y,"'")}(r);var i=s.default[a];if(i)return null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||!(0,u.isProtectedWeekYearToken)(r)||(0,u.throwProtectedError)(r,t,String(e)),null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!(0,u.isProtectedDayOfYearToken)(r)||(0,u.throwProtectedError)(r,t,String(e)),i($,r,B.localize,H);if(a.match(b))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return r})).join("")};var a=r(n(5009)),i=r(n(967)),o=r(n(7336)),s=r(n(8065)),l=r(n(6723)),c=r(n(5899)),u=n(2810),d=r(n(911)),p=r(n(230)),h=n(6139),f=r(n(2653)),m=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,v=/^'([^]*?)'?$/,y=/''/g,b=/[a-zA-Z]/;e.exports=t.default},6161:(e,t,n)=>{"use strict";var r=n(4994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(1,arguments),e instanceof Date||"object"===(0,a.default)(e)&&"[object Date]"===Object.prototype.toString.call(e)};var a=r(n(3738)),i=r(n(230));e.exports=t.default},5009:(e,t,n)=>{"use strict";var r=n(4994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,o.default)(1,arguments),!(0,a.default)(e)&&"number"!==typeof e)return!1;var t=(0,i.default)(e);return!isNaN(Number(t))};var a=r(n(6161)),i=r(n(7336)),o=r(n(230));e.exports=t.default},118:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}},e.exports=t.default},3500:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n){var r;if("formatting"===(null!==n&&void 0!==n&&n.context?String(n.context):"standalone")&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,i=null!==n&&void 0!==n&&n.width?String(n.width):a;r=e.formattingValues[i]||e.formattingValues[a]}else{var o=e.defaultWidth,s=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[o]}return r[e.argumentCallback?e.argumentCallback(t):t]}},e.exports=t.default},2308:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;var o,s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,(function(e){return e.test(s)}));return o=e.valueCallback?e.valueCallback(c):c,{value:o=n.valueCallback?n.valueCallback(o):o,rest:t.slice(s.length)}}},e.exports=t.default},4010:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var a=r[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];return{value:o=n.valueCallback?n.valueCallback(o):o,rest:t.slice(a.length)}}},e.exports=t.default},8516:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(e,t,r){var a,i=n[e];return a="string"===typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!==r&&void 0!==r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};t.default=r,e.exports=t.default},2533:(e,t,n)=>{"use strict";var r=n(4994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(118)),i={date:(0,a.default)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,a.default)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.default)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};t.default=i,e.exports=t.default},7527:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(e,t,r,a){return n[e]};t.default=r,e.exports=t.default},5687:(e,t,n)=>{"use strict";var r=n(4994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(3500)),i={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,a.default)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,a.default)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,a.default)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,a.default)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,a.default)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};t.default=i,e.exports=t.default},9417:(e,t,n)=>{"use strict";var r=n(4994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(2308)),i={ordinalNumber:(0,r(n(4010)).default)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,a.default)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,a.default)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,a.default)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,a.default)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,a.default)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};t.default=i,e.exports=t.default},9406:(e,t,n)=>{"use strict";var r=n(4994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(8516)),i=r(n(2533)),o=r(n(7527)),s=r(n(5687)),l=r(n(9417)),c={code:"en-US",formatDistance:a.default,formatLong:i.default,formatRelative:o.default,localize:s.default,match:l.default,options:{weekStartsOn:0,firstWeekContainsDate:1}};t.default=c,e.exports=t.default},967:(e,t,n)=>{"use strict";var r=n(4994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(2,arguments);var n=(0,o.default)(t);return(0,a.default)(e,-n)};var a=r(n(9142)),i=r(n(230)),o=r(n(911));e.exports=t.default},7336:(e,t,n)=>{"use strict";var r=n(4994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,a.default)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))};var a=r(n(3738)),i=r(n(230));e.exports=t.default},2363:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExportToCsv=t.ConfigDefaults=t.CsvConfigConsts=void 0;var n=function(){function e(){}return e.EOL="\r\n",e.BOM="\ufeff",e.DEFAULT_FIELD_SEPARATOR=",",e.DEFAULT_DECIMAL_SEPARATOR=".",e.DEFAULT_QUOTE='"',e.DEFAULT_SHOW_TITLE=!1,e.DEFAULT_TITLE="My Generated Report",e.DEFAULT_FILENAME="generated",e.DEFAULT_SHOW_LABELS=!1,e.DEFAULT_USE_TEXT_FILE=!1,e.DEFAULT_USE_BOM=!0,e.DEFAULT_HEADER=[],e.DEFAULT_KEYS_AS_HEADERS=!1,e}();t.CsvConfigConsts=n,t.ConfigDefaults={filename:n.DEFAULT_FILENAME,fieldSeparator:n.DEFAULT_FIELD_SEPARATOR,quoteStrings:n.DEFAULT_QUOTE,decimalSeparator:n.DEFAULT_DECIMAL_SEPARATOR,showLabels:n.DEFAULT_SHOW_LABELS,showTitle:n.DEFAULT_SHOW_TITLE,title:n.DEFAULT_TITLE,useTextFile:n.DEFAULT_USE_TEXT_FILE,useBom:n.DEFAULT_USE_BOM,headers:n.DEFAULT_HEADER,useKeysAsHeaders:n.DEFAULT_KEYS_AS_HEADERS};var r=function(){function e(e){this._csv="";var n=e||{};this._options=o({},t.ConfigDefaults,n),this._options.useKeysAsHeaders&&this._options.headers&&this._options.headers.length>0&&console.warn("Option to use object keys as headers was set, but headers were still passed!")}return Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(e){this._options=o({},t.ConfigDefaults,e)},enumerable:!1,configurable:!0}),e.prototype.generateCsv=function(e,t){if(void 0===t&&(t=!1),this._csv="",this._parseData(e),this._options.useBom&&(this._csv+=n.BOM),this._options.showTitle&&(this._csv+=this._options.title+"\r\n\n"),this._createHeaders(),this._createBody(),""!=this._csv){if(t)return this._csv;var r=this._options.useTextFile?"plain":"csv",a=this._options.useTextFile?".txt":".csv",i=new Blob([this._csv],{type:"text/"+r+";charset=utf8;"}),o=document.createElement("a");o.href=URL.createObjectURL(i),o.setAttribute("visibility","hidden"),o.download=this._options.filename.replace(/ /g,"_")+a,document.body.appendChild(o),o.click(),document.body.removeChild(o)}else console.log("Invalid data")},e.prototype._getHeaders=function(){if(this._options.showLabels||this._options.useKeysAsHeaders)return this._options.useKeysAsHeaders?Object.keys(this._data[0]):this._options.headers},e.prototype._createHeaders=function(){var e=this._getHeaders();if(e.length>0){for(var t="",r=0;r<e.length;r++)t+=e[r]+this._options.fieldSeparator;t=t.slice(0,-1),this._csv+=t+n.EOL}},e.prototype._createBody=function(){for(var e=this._getHeaders(),t=0;t<this._data.length;t++){for(var r="",a=0;a<e.length;a++){var i=e[a];r+=this._formatData(this._data[t][i])+this._options.fieldSeparator}r=r.slice(0,-1),this._csv+=r+n.EOL}},e.prototype._formatData=function(e){return"locale"===this._options.decimalSeparator&&this._isFloat(e)?e.toLocaleString():"."!==this._options.decimalSeparator&&this._isFloat(e)?e.toString().replace(".",this._options.decimalSeparator):"string"===typeof e?(e=e.replace(/"/g,'""'),(this._options.quoteStrings||e.indexOf(",")>-1||e.indexOf("\n")>-1||e.indexOf("\r")>-1)&&(e=this._options.quoteStrings+e+this._options.quoteStrings),e):"boolean"===typeof e?e?"TRUE":"FALSE":e},e.prototype._isFloat=function(e){return+e===e&&(!isFinite(e)||Boolean(e%1))},e.prototype._parseData=function(e){return this._data="object"!=typeof e?JSON.parse(e):e,this._data},e}();t.ExportToCsv=r;var a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];for(var o,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in t=Object(arguments[l]))a.call(t,c)&&(s[c]=t[c]);if(Object.getOwnPropertySymbols){o=Object.getOwnPropertySymbols(t);for(var u=0;u<o.length;u++)i.call(t,o[u])&&(s[o[u]]=t[o[u]])}}return s}},4686:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(2363),t)},219:(e,t,n)=>{"use strict";var r=n(3763),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?o:s[e.$$typeof]||a}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(f){var a=h(n);a&&a!==f&&e(t,a,r)}var o=u(n);d&&(o=o.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<o.length;++g){var v=o[g];if(!i[v]&&(!r||!r[v])&&(!m||!m[v])&&(!s||!s[v])){var y=p(n,v);try{c(t,v,y)}catch(b){}}}}return t}},4983:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=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,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=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 i:case s:case o:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case a:return t}}}function S(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=a,t.Profiler=s,t.StrictMode=o,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)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===a},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===o},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===d||e===s||e===o||e===h||e===f||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},3763:(e,t,n)=>{"use strict";e.exports=n(4983)},4407:e=>{const t=String.raw`[A-Za-z][^/\s>]*`,n=String.raw`\B"(?:\\[^<>\n]|[^\\"<>\n])*"(?!\w)`,r=String.raw`\B'(?:\\[^<>\n]|[^\\'<>\n])*'(?!\w)`,a=String.raw`${n}|${r}`,i=String.raw`"(?<quotedAttrValue>[^"]*)"`,o=String.raw`'(?<singleQuotedAttrValue>[^']*)'`,s=String.raw`(?<unquotedAttrValue>[^\s"'\`=<>]+)`,l=String.raw`[^=\s>/"']+(?=[=>\s]|$)`,c=String.raw`${i}|${o}|${s}`,u=String.raw`(?<attrName>${l})(?:\s*=\s*(?:${c}))?`,d=String.raw`${a}|[^\s>]*[^\s>/]|[^\s>]*/(?!\s*>)`,p=String.raw`(?<attrSpace>\s*)(?:${u}|(?<attrText>${d}))`,h={comment:String.raw`<!--.*?-->`,dtd:String.raw`<![^>]+>`,startTag:String.raw`<(?<startTagName>${t})(?<attrs>(?:${p})*)\s*(?<closingSlash>/?)\s*>`,endTag:String.raw`</(?<endTagName>${t})\s*>`,space:String.raw`\s+`,text:String.raw`[^<\s"']+|${a}|['"]`,wildcard:String.raw`.`},f=Object.entries(h).map((e=>{let[t,n]=e;return`(?<${t}>${n})`})).join("|");const m=new Set(["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"]);function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"  ",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:80;const r=new RegExp(f,"gys"),a=new RegExp(p,"gy"),i=[];let o=null,s=0,l=0,c="",u=0,d="";const h=()=>{if(d&&"\n"!=d){const e=c.indexOf("\n"),t=-1==e?c.length:e;l+d.length+t>n&&(d="\n")}const e="\n"==d&&c?t.repeat(u):"",r=`${d}${e}${c}`;if(r){const e=r.lastIndexOf("\n");-1==e?l+=r.length:l=r.length-e-1,i.push(r)}c=d=""},v=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(const r of t)!o&&/^\s+$/.test(r)?(h(),d=r):(c||(u=s),c+=r)};for(const p of function*(e,t){let n,{lastIndex:r}=e;for(;n=e.exec(t);)yield n,({lastIndex:r}=e);if(r!=t.length)throw new Error("Failed to parse string")}(r,e)){if(g.__strict&&p.groups.wildcard)throw new Error("Unexpected wildcard");if(p.groups.endTag){const e=p.groups.endTagName.toLowerCase();e==o&&(o=null),o||(--s,v(`</${e}>`))}if(o)v(p[0]);else if(p.groups.space)v(...p[0].match(/\n/g)?.slice(0,2)??[" "]);else if(p.groups.comment||p.groups.dtd||p.groups.text||p.groups.wildcard)v(p[0]);else if(p.groups.startTag){const e=p.groups.startTagName.toLowerCase();if(v(`<${e}`),++s,p.groups.attrs){let e,t,{lastIndex:n}=a;for(;e=a.exec(p.groups.attrs);){if(({lastIndex:n}=a),g.__strict&&e.groups.attrText)throw new Error("Unexpected attr text");e.groups.attrText?(e.groups.attrSpace&&v(/\n/.test(e.groups.attrSpace)?"\n":" "),v(e.groups.attrText)):(!e.groups.attrSpace&&t?.groups.attrText||v(/\n/.test(e.groups.attrSpace)?"\n":" "),v(`${e.groups.attrName}${e.groups.quotedAttrValue?`="${e.groups.quotedAttrValue}"`:e.groups.singleQuotedAttrValue?`='${e.groups.singleQuotedAttrValue}'`:e.groups.unquotedAttrValue?`=${e.groups.unquotedAttrValue}`:""}`)),t=e}if(n!=p.groups.attrs.length)throw new Error("Failed to parse attributes")}const t=Boolean(p.groups.closingSlash);v(t?" />":">"),t||m.has(e)?--s:["pre","textarea","script","style"].includes(e)&&(o=e)}}h();let y=!1;for(;/^\s+$/.test(i[i.length-1]);){const e=i.pop();/\n/.test(e)&&(y=!0)}return y&&i.push("\n"),i.join("")}g.default=g,e.exports=g},6900:(e,t)=>{t.read=function(e,t,n,r,a){var i,o,s=8*a-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?a-1:0,p=n?-1:1,h=e[t+d];for(d+=p,i=h&(1<<-u)-1,h>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=p,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=r;u>0;o=256*o+e[t+d],d+=p,u-=8);if(0===i)i=1-c;else{if(i===l)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),i-=c}return(h?-1:1)*o*Math.pow(2,i-r)},t.write=function(e,t,n,r,a,i){var o,s,l,c=8*i-a-1,u=(1<<c)-1,d=u>>1,p=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+d>=1?p/l:p*Math.pow(2,1-d))*l>=2&&(o++,l/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*l-1)*Math.pow(2,a),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,a),o=0));a>=8;e[n+h]=255&s,h+=f,s/=256,a-=8);for(o=o<<a|s,c+=a;c>0;e[n+h]=255&o,h+=f,o/=256,c-=8);e[n+h-f]|=128*m}},1141:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},7777:(e,t,n)=>{var r="[object Symbol]",a=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o="\\ud800-\\udfff",s="\\u0300-\\u036f\\ufe20-\\ufe23",l="\\u20d0-\\u20f0",c="\\u2700-\\u27bf",u="a-z\\xdf-\\xf6\\xf8-\\xff",d="A-Z\\xc0-\\xd6\\xd8-\\xde",p="\\ufe0e\\ufe0f",h="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",f="['\u2019]",m="["+o+"]",g="["+h+"]",v="["+s+l+"]",y="\\d+",b="["+c+"]",x="["+u+"]",w="[^"+o+h+y+c+u+d+"]",S="\\ud83c[\\udffb-\\udfff]",C="[^"+o+"]",A="(?:\\ud83c[\\udde6-\\uddff]){2}",k="[\\ud800-\\udbff][\\udc00-\\udfff]",T="["+d+"]",j="\\u200d",E="(?:"+x+"|"+w+")",P="(?:"+T+"|"+w+")",N="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",D="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",M="(?:"+v+"|"+S+")"+"?",_="["+p+"]?",I=_+M+("(?:"+j+"(?:"+[C,A,k].join("|")+")"+_+M+")*"),R="(?:"+[b,A,k].join("|")+")"+I,O="(?:"+[C+v+"?",v,A,k,m].join("|")+")",L=RegExp(f,"g"),F=RegExp(v,"g"),B=RegExp(S+"(?="+S+")|"+O+I,"g"),z=RegExp([T+"?"+x+"+"+N+"(?="+[g,T,"$"].join("|")+")",P+"+"+D+"(?="+[g,T+E,"$"].join("|")+")",T+"?"+E+"+"+N,T+"+"+D,y,R].join("|"),"g"),V=RegExp("["+j+o+s+l+p+"]"),W=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,U="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,$="object"==typeof self&&self&&self.Object===Object&&self,H=U||$||Function("return this")();var q,G=(q={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"ss"},function(e){return null==q?void 0:q[e]});function K(e){return V.test(e)}function Y(e){return K(e)?function(e){return e.match(B)||[]}(e):function(e){return e.split("")}(e)}var X=Object.prototype.toString,Z=H.Symbol,J=Z?Z.prototype:void 0,Q=J?J.toString:void 0;function ee(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&X.call(e)==r}(e))return Q?Q.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function te(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r<a;)i[r]=e[r+t];return i}(e,t,n)}function ne(e){return null==e?"":ee(e)}var re,ae=(re=function(e,t,n){return t=t.toLowerCase(),e+(n?oe(ne(t).toLowerCase()):t)},function(e){return function(e,t,n,r){var a=-1,i=e?e.length:0;for(r&&i&&(n=e[++a]);++a<i;)n=t(n,e[a],a,e);return n}(function(e,t,n){return e=ne(e),void 0===(t=n?void 0:t)?function(e){return W.test(e)}(e)?function(e){return e.match(z)||[]}(e):function(e){return e.match(a)||[]}(e):e.match(t)||[]}(function(e){return(e=ne(e))&&e.replace(i,G).replace(F,"")}(e).replace(L,"")),re,"")});var ie,oe=(ie="toUpperCase",function(e){var t=K(e=ne(e))?Y(e):void 0,n=t?t[0]:e.charAt(0),r=t?te(t,1).join(""):e.slice(1);return n[ie]()+r});e.exports=ae},3536:function(e,t,n){var r;e=n.nmd(e),function(){var a,i="Expected a function",o="__lodash_hash_undefined__",s="__lodash_placeholder__",l=16,c=32,u=64,d=128,p=256,h=1/0,f=9007199254740991,m=NaN,g=4294967295,v=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",c],["partialRight",u],["rearg",p]],y="[object Arguments]",b="[object Array]",x="[object Boolean]",w="[object Date]",S="[object Error]",C="[object Function]",A="[object GeneratorFunction]",k="[object Map]",T="[object Number]",j="[object Object]",E="[object Promise]",P="[object RegExp]",N="[object Set]",D="[object String]",M="[object Symbol]",_="[object WeakMap]",I="[object ArrayBuffer]",R="[object DataView]",O="[object Float32Array]",L="[object Float64Array]",F="[object Int8Array]",B="[object Int16Array]",z="[object Int32Array]",V="[object Uint8Array]",W="[object Uint8ClampedArray]",U="[object Uint16Array]",$="[object Uint32Array]",H=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,X=RegExp(K.source),Z=RegExp(Y.source),J=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ae=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(ae.source),oe=/^\s+/,se=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,xe=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Se=/($^)/,Ce=/['\n\r\u2028\u2029\\]/g,Ae="\\ud800-\\udfff",ke="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Te="\\u2700-\\u27bf",je="a-z\\xdf-\\xf6\\xf8-\\xff",Ee="A-Z\\xc0-\\xd6\\xd8-\\xde",Pe="\\ufe0e\\ufe0f",Ne="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",De="['\u2019]",Me="["+Ae+"]",_e="["+Ne+"]",Ie="["+ke+"]",Re="\\d+",Oe="["+Te+"]",Le="["+je+"]",Fe="[^"+Ae+Ne+Re+Te+je+Ee+"]",Be="\\ud83c[\\udffb-\\udfff]",ze="[^"+Ae+"]",Ve="(?:\\ud83c[\\udde6-\\uddff]){2}",We="[\\ud800-\\udbff][\\udc00-\\udfff]",Ue="["+Ee+"]",$e="\\u200d",He="(?:"+Le+"|"+Fe+")",qe="(?:"+Ue+"|"+Fe+")",Ge="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ke="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ye="(?:"+Ie+"|"+Be+")"+"?",Xe="["+Pe+"]?",Ze=Xe+Ye+("(?:"+$e+"(?:"+[ze,Ve,We].join("|")+")"+Xe+Ye+")*"),Je="(?:"+[Oe,Ve,We].join("|")+")"+Ze,Qe="(?:"+[ze+Ie+"?",Ie,Ve,We,Me].join("|")+")",et=RegExp(De,"g"),tt=RegExp(Ie,"g"),nt=RegExp(Be+"(?="+Be+")|"+Qe+Ze,"g"),rt=RegExp([Ue+"?"+Le+"+"+Ge+"(?="+[_e,Ue,"$"].join("|")+")",qe+"+"+Ke+"(?="+[_e,Ue+He,"$"].join("|")+")",Ue+"?"+He+"+"+Ge,Ue+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Re,Je].join("|"),"g"),at=RegExp("["+$e+Ae+ke+Pe+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],st=-1,lt={};lt[O]=lt[L]=lt[F]=lt[B]=lt[z]=lt[V]=lt[W]=lt[U]=lt[$]=!0,lt[y]=lt[b]=lt[I]=lt[x]=lt[R]=lt[w]=lt[S]=lt[C]=lt[k]=lt[T]=lt[j]=lt[P]=lt[N]=lt[D]=lt[_]=!1;var ct={};ct[y]=ct[b]=ct[I]=ct[R]=ct[x]=ct[w]=ct[O]=ct[L]=ct[F]=ct[B]=ct[z]=ct[k]=ct[T]=ct[j]=ct[P]=ct[N]=ct[D]=ct[M]=ct[V]=ct[W]=ct[U]=ct[$]=!0,ct[S]=ct[C]=ct[_]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,pt=parseInt,ht="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ft="object"==typeof self&&self&&self.Object===Object&&self,mt=ht||ft||Function("return this")(),gt=t&&!t.nodeType&&t,vt=gt&&e&&!e.nodeType&&e,yt=vt&&vt.exports===gt,bt=yt&&ht.process,xt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(t){}}(),wt=xt&&xt.isArrayBuffer,St=xt&&xt.isDate,Ct=xt&&xt.isMap,At=xt&&xt.isRegExp,kt=xt&&xt.isSet,Tt=xt&&xt.isTypedArray;function jt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Et(e,t,n,r){for(var a=-1,i=null==e?0:e.length;++a<i;){var o=e[a];t(r,o,n(o),e)}return r}function Pt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Nt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Dt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Mt(e,t){for(var n=-1,r=null==e?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}function _t(e,t){return!!(null==e?0:e.length)&&Ut(e,t,0)>-1}function It(e,t,n){for(var r=-1,a=null==e?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}function Rt(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}function Ot(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}function Lt(e,t,n,r){var a=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++a]);++a<i;)n=t(n,e[a],a,e);return n}function Ft(e,t,n,r){var a=null==e?0:e.length;for(r&&a&&(n=e[--a]);a--;)n=t(n,e[a],a,e);return n}function Bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var zt=Gt("length");function Vt(e,t,n){var r;return n(e,(function(e,n,a){if(t(e,n,a))return r=n,!1})),r}function Wt(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return-1}function Ut(e,t,n){return t===t?function(e,t,n){var r=n-1,a=e.length;for(;++r<a;)if(e[r]===t)return r;return-1}(e,t,n):Wt(e,Ht,n)}function $t(e,t,n,r){for(var a=n-1,i=e.length;++a<i;)if(r(e[a],t))return a;return-1}function Ht(e){return e!==e}function qt(e,t){var n=null==e?0:e.length;return n?Xt(e,t)/n:m}function Gt(e){return function(t){return null==t?a:t[e]}}function Kt(e){return function(t){return null==e?a:e[t]}}function Yt(e,t,n,r,a){return a(e,(function(e,a,i){n=r?(r=!1,e):t(n,e,a,i)})),n}function Xt(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);o!==a&&(n=n===a?o:n+o)}return n}function Zt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Jt(e){return e?e.slice(0,gn(e)+1).replace(oe,""):e}function Qt(e){return function(t){return e(t)}}function en(e,t){return Rt(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Ut(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Ut(t,e[n],0)>-1;);return n}var an=Kt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),on=Kt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function sn(e){return"\\"+ut[e]}function ln(e){return at.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function un(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,a=0,i=[];++n<r;){var o=e[n];o!==t&&o!==s||(e[n]=s,i[a++]=n)}return i}function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function hn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function fn(e){return ln(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):zt(e)}function mn(e){return ln(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function gn(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var vn=Kt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var yn=function e(t){var n=(t=null==t?mt:yn.defaults(mt.Object(),t,yn.pick(mt,ot))).Array,r=t.Date,se=t.Error,Ae=t.Function,ke=t.Math,Te=t.Object,je=t.RegExp,Ee=t.String,Pe=t.TypeError,Ne=n.prototype,De=Ae.prototype,Me=Te.prototype,_e=t["__core-js_shared__"],Ie=De.toString,Re=Me.hasOwnProperty,Oe=0,Le=function(){var e=/[^.]+$/.exec(_e&&_e.keys&&_e.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Fe=Me.toString,Be=Ie.call(Te),ze=mt._,Ve=je("^"+Ie.call(Re).replace(ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),We=yt?t.Buffer:a,Ue=t.Symbol,$e=t.Uint8Array,He=We?We.allocUnsafe:a,qe=un(Te.getPrototypeOf,Te),Ge=Te.create,Ke=Me.propertyIsEnumerable,Ye=Ne.splice,Xe=Ue?Ue.isConcatSpreadable:a,Ze=Ue?Ue.iterator:a,Je=Ue?Ue.toStringTag:a,Qe=function(){try{var e=di(Te,"defineProperty");return e({},"",{}),e}catch(t){}}(),nt=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,at=r&&r.now!==mt.Date.now&&r.now,ut=t.setTimeout!==mt.setTimeout&&t.setTimeout,ht=ke.ceil,ft=ke.floor,gt=Te.getOwnPropertySymbols,vt=We?We.isBuffer:a,bt=t.isFinite,xt=Ne.join,zt=un(Te.keys,Te),Kt=ke.max,bn=ke.min,xn=r.now,wn=t.parseInt,Sn=ke.random,Cn=Ne.reverse,An=di(t,"DataView"),kn=di(t,"Map"),Tn=di(t,"Promise"),jn=di(t,"Set"),En=di(t,"WeakMap"),Pn=di(Te,"create"),Nn=En&&new En,Dn={},Mn=Li(An),_n=Li(kn),In=Li(Tn),Rn=Li(jn),On=Li(En),Ln=Ue?Ue.prototype:a,Fn=Ln?Ln.valueOf:a,Bn=Ln?Ln.toString:a;function zn(e){if(ts(e)&&!$o(e)&&!(e instanceof $n)){if(e instanceof Un)return e;if(Re.call(e,"__wrapped__"))return Fi(e)}return new Un(e)}var Vn=function(){function e(){}return function(t){if(!es(t))return{};if(Ge)return Ge(t);e.prototype=t;var n=new e;return e.prototype=a,n}}();function Wn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}function $n(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Gn;++t<n;)this.add(e[t])}function Yn(e){var t=this.__data__=new qn(e);this.size=t.size}function Xn(e,t){var n=$o(e),r=!n&&Uo(e),a=!n&&!r&&Ko(e),i=!n&&!r&&!a&&cs(e),o=n||r||a||i,s=o?Zt(e.length,Ee):[],l=s.length;for(var c in e)!t&&!Re.call(e,c)||o&&("length"==c||a&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||yi(c,l))||s.push(c);return s}function Zn(e){var t=e.length;return t?e[Kr(0,t-1)]:a}function Jn(e,t){return Ii(Pa(e),sr(t,0,e.length))}function Qn(e){return Ii(Pa(e))}function er(e,t,n){(n!==a&&!zo(e[t],n)||n===a&&!(t in e))&&ir(e,t,n)}function tr(e,t,n){var r=e[t];Re.call(e,t)&&zo(r,n)&&(n!==a||t in e)||ir(e,t,n)}function nr(e,t){for(var n=e.length;n--;)if(zo(e[n][0],t))return n;return-1}function rr(e,t,n,r){return pr(e,(function(e,a,i){t(r,e,n(e),i)})),r}function ar(e,t){return e&&Na(t,Ds(t),e)}function ir(e,t,n){"__proto__"==t&&Qe?Qe(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var r=-1,i=t.length,o=n(i),s=null==e;++r<i;)o[r]=s?a:Ts(e,t[r]);return o}function sr(e,t,n){return e===e&&(n!==a&&(e=e<=n?e:n),t!==a&&(e=e>=t?e:t)),e}function lr(e,t,n,r,i,o){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=i?n(e,r,i,o):n(e)),s!==a)return s;if(!es(e))return e;var d=$o(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Pa(e,s)}else{var p=fi(e),h=p==C||p==A;if(Ko(e))return Ca(e,l);if(p==j||p==y||h&&!i){if(s=c||h?{}:gi(e),!l)return c?function(e,t){return Na(e,hi(e),t)}(e,function(e,t){return e&&Na(t,Ms(t),e)}(s,e)):function(e,t){return Na(e,pi(e),t)}(e,ar(s,e))}else{if(!ct[p])return i?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case I:return Aa(e);case x:case w:return new r(+e);case R:return function(e,t){var n=t?Aa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case O:case L:case F:case B:case z:case V:case W:case U:case $:return ka(e,n);case k:return new r;case T:case D:return new r(e);case P:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case N:return new r;case M:return a=e,Fn?Te(Fn.call(a)):{}}var a}(e,p,l)}}o||(o=new Yn);var f=o.get(e);if(f)return f;o.set(e,s),os(e)?e.forEach((function(r){s.add(lr(r,t,n,r,e,o))})):ns(e)&&e.forEach((function(r,a){s.set(a,lr(r,t,n,a,e,o))}));var m=d?a:(u?c?ai:ri:c?Ms:Ds)(e);return Pt(m||e,(function(r,a){m&&(r=e[a=r]),tr(s,a,lr(r,t,n,a,e,o))})),s}function cr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Te(e);r--;){var i=n[r],o=t[i],s=e[i];if(s===a&&!(i in e)||!o(s))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new Pe(i);return Ni((function(){e.apply(a,n)}),t)}function dr(e,t,n,r){var a=-1,i=_t,o=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Rt(t,Qt(n))),r?(i=It,o=!1):t.length>=200&&(i=tn,o=!1,t=new Kn(t));e:for(;++a<s;){var u=e[a],d=null==n?u:n(u);if(u=r||0!==u?u:0,o&&d===d){for(var p=c;p--;)if(t[p]===d)continue e;l.push(u)}else i(t,d,r)||l.push(u)}return l}zn.templateSettings={escape:J,evaluate:Q,interpolate:ee,variable:"",imports:{_:zn}},zn.prototype=Wn.prototype,zn.prototype.constructor=zn,Un.prototype=Vn(Wn.prototype),Un.prototype.constructor=Un,$n.prototype=Vn(Wn.prototype),$n.prototype.constructor=$n,Hn.prototype.clear=function(){this.__data__=Pn?Pn(null):{},this.size=0},Hn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hn.prototype.get=function(e){var t=this.__data__;if(Pn){var n=t[e];return n===o?a:n}return Re.call(t,e)?t[e]:a},Hn.prototype.has=function(e){var t=this.__data__;return Pn?t[e]!==a:Re.call(t,e)},Hn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Pn&&t===a?o:t,this},qn.prototype.clear=function(){this.__data__=[],this.size=0},qn.prototype.delete=function(e){var t=this.__data__,n=nr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ye.call(t,n,1),--this.size,!0)},qn.prototype.get=function(e){var t=this.__data__,n=nr(t,e);return n<0?a:t[n][1]},qn.prototype.has=function(e){return nr(this.__data__,e)>-1},qn.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(kn||qn),string:new Hn}},Gn.prototype.delete=function(e){var t=ci(this,e).delete(e);return this.size-=t?1:0,t},Gn.prototype.get=function(e){return ci(this,e).get(e)},Gn.prototype.has=function(e){return ci(this,e).has(e)},Gn.prototype.set=function(e,t){var n=ci(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,o),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.clear=function(){this.__data__=new qn,this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Yn.prototype.get=function(e){return this.__data__.get(e)},Yn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!kn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Gn(r)}return n.set(e,t),this.size=n.size,this};var pr=_a(xr),hr=_a(wr,!0);function fr(e,t){var n=!0;return pr(e,(function(e,r,a){return n=!!t(e,r,a)})),n}function mr(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],s=t(o);if(null!=s&&(l===a?s===s&&!ls(s):n(s,l)))var l=s,c=o}return c}function gr(e,t){var n=[];return pr(e,(function(e,r,a){t(e,r,a)&&n.push(e)})),n}function vr(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=vi),a||(a=[]);++i<o;){var s=e[i];t>0&&n(s)?t>1?vr(s,t-1,n,r,a):Ot(a,s):r||(a[a.length]=s)}return a}var yr=Ia(),br=Ia(!0);function xr(e,t){return e&&yr(e,t,Ds)}function wr(e,t){return e&&br(e,t,Ds)}function Sr(e,t){return Mt(t,(function(t){return Zo(e[t])}))}function Cr(e,t){for(var n=0,r=(t=ba(t,e)).length;null!=e&&n<r;)e=e[Oi(t[n++])];return n&&n==r?e:a}function Ar(e,t,n){var r=t(e);return $o(e)?r:Ot(r,n(e))}function kr(e){return null==e?e===a?"[object Undefined]":"[object Null]":Je&&Je in Te(e)?function(e){var t=Re.call(e,Je),n=e[Je];try{e[Je]=a;var r=!0}catch(o){}var i=Fe.call(e);r&&(t?e[Je]=n:delete e[Je]);return i}(e):function(e){return Fe.call(e)}(e)}function Tr(e,t){return e>t}function jr(e,t){return null!=e&&Re.call(e,t)}function Er(e,t){return null!=e&&t in Te(e)}function Pr(e,t,r){for(var i=r?It:_t,o=e[0].length,s=e.length,l=s,c=n(s),u=1/0,d=[];l--;){var p=e[l];l&&t&&(p=Rt(p,Qt(t))),u=bn(p.length,u),c[l]=!r&&(t||o>=120&&p.length>=120)?new Kn(l&&p):a}p=e[0];var h=-1,f=c[0];e:for(;++h<o&&d.length<u;){var m=p[h],g=t?t(m):m;if(m=r||0!==m?m:0,!(f?tn(f,g):i(d,g,r))){for(l=s;--l;){var v=c[l];if(!(v?tn(v,g):i(e[l],g,r)))continue e}f&&f.push(g),d.push(m)}}return d}function Nr(e,t,n){var r=null==(e=ji(e,t=ba(t,e)))?e:e[Oi(Yi(t))];return null==r?a:jt(r,e,n)}function Dr(e){return ts(e)&&kr(e)==y}function Mr(e,t,n,r,i){return e===t||(null==e||null==t||!ts(e)&&!ts(t)?e!==e&&t!==t:function(e,t,n,r,i,o){var s=$o(e),l=$o(t),c=s?b:fi(e),u=l?b:fi(t),d=(c=c==y?j:c)==j,p=(u=u==y?j:u)==j,h=c==u;if(h&&Ko(e)){if(!Ko(t))return!1;s=!0,d=!1}if(h&&!d)return o||(o=new Yn),s||cs(e)?ti(e,t,n,r,i,o):function(e,t,n,r,a,i,o){switch(n){case R:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case I:return!(e.byteLength!=t.byteLength||!i(new $e(e),new $e(t)));case x:case w:case T:return zo(+e,+t);case S:return e.name==t.name&&e.message==t.message;case P:case D:return e==t+"";case k:var s=cn;case N:var l=1&r;if(s||(s=pn),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;r|=2,o.set(e,t);var u=ti(s(e),s(t),r,a,i,o);return o.delete(e),u;case M:if(Fn)return Fn.call(e)==Fn.call(t)}return!1}(e,t,c,n,r,i,o);if(!(1&n)){var f=d&&Re.call(e,"__wrapped__"),m=p&&Re.call(t,"__wrapped__");if(f||m){var g=f?e.value():e,v=m?t.value():t;return o||(o=new Yn),i(g,v,n,r,o)}}if(!h)return!1;return o||(o=new Yn),function(e,t,n,r,i,o){var s=1&n,l=ri(e),c=l.length,u=ri(t),d=u.length;if(c!=d&&!s)return!1;var p=c;for(;p--;){var h=l[p];if(!(s?h in t:Re.call(t,h)))return!1}var f=o.get(e),m=o.get(t);if(f&&m)return f==t&&m==e;var g=!0;o.set(e,t),o.set(t,e);var v=s;for(;++p<c;){var y=e[h=l[p]],b=t[h];if(r)var x=s?r(b,y,h,t,e,o):r(y,b,h,e,t,o);if(!(x===a?y===b||i(y,b,n,r,o):x)){g=!1;break}v||(v="constructor"==h)}if(g&&!v){var w=e.constructor,S=t.constructor;w==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof S&&S instanceof S||(g=!1)}return o.delete(e),o.delete(t),g}(e,t,n,r,i,o)}(e,t,n,r,Mr,i))}function _r(e,t,n,r){var i=n.length,o=i,s=!r;if(null==e)return!o;for(e=Te(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<o;){var c=(l=n[i])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===a&&!(c in e))return!1}else{var p=new Yn;if(r)var h=r(u,d,c,e,t,p);if(!(h===a?Mr(d,u,3,r,p):h))return!1}}return!0}function Ir(e){return!(!es(e)||(t=e,Le&&Le in t))&&(Zo(e)?Ve:ye).test(Li(e));var t}function Rr(e){return"function"==typeof e?e:null==e?rl:"object"==typeof e?$o(e)?Vr(e[0],e[1]):zr(e):pl(e)}function Or(e){if(!Ci(e))return zt(e);var t=[];for(var n in Te(e))Re.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Lr(e){if(!es(e))return function(e){var t=[];if(null!=e)for(var n in Te(e))t.push(n);return t}(e);var t=Ci(e),n=[];for(var r in e)("constructor"!=r||!t&&Re.call(e,r))&&n.push(r);return n}function Fr(e,t){return e<t}function Br(e,t){var r=-1,a=qo(e)?n(e.length):[];return pr(e,(function(e,n,i){a[++r]=t(e,n,i)})),a}function zr(e){var t=ui(e);return 1==t.length&&t[0][2]?ki(t[0][0],t[0][1]):function(n){return n===e||_r(n,e,t)}}function Vr(e,t){return xi(e)&&Ai(t)?ki(Oi(e),t):function(n){var r=Ts(n,e);return r===a&&r===t?js(n,e):Mr(t,r,3)}}function Wr(e,t,n,r,i){e!==t&&yr(t,(function(o,s){if(i||(i=new Yn),es(o))!function(e,t,n,r,i,o,s){var l=Ei(e,n),c=Ei(t,n),u=s.get(c);if(u)return void er(e,n,u);var d=o?o(l,c,n+"",e,t,s):a,p=d===a;if(p){var h=$o(c),f=!h&&Ko(c),m=!h&&!f&&cs(c);d=c,h||f||m?$o(l)?d=l:Go(l)?d=Pa(l):f?(p=!1,d=Ca(c,!0)):m?(p=!1,d=ka(c,!0)):d=[]:as(c)||Uo(c)?(d=l,Uo(l)?d=vs(l):es(l)&&!Zo(l)||(d=gi(c))):p=!1}p&&(s.set(c,d),i(d,c,r,o,s),s.delete(c));er(e,n,d)}(e,t,s,n,Wr,r,i);else{var l=r?r(Ei(e,s),o,s+"",e,t,i):a;l===a&&(l=o),er(e,s,l)}}),Ms)}function Ur(e,t){var n=e.length;if(n)return yi(t+=t<0?n:0,n)?e[t]:a}function $r(e,t,n){t=t.length?Rt(t,(function(e){return $o(e)?function(t){return Cr(t,1===e.length?e[0]:e)}:e})):[rl];var r=-1;t=Rt(t,Qt(li()));var a=Br(e,(function(e,n,a){var i=Rt(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(a,(function(e,t){return function(e,t,n){var r=-1,a=e.criteria,i=t.criteria,o=a.length,s=n.length;for(;++r<o;){var l=Ta(a[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Hr(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var o=t[r],s=Cr(e,o);n(s,o)&&Qr(i,ba(o,e),s)}return i}function qr(e,t,n,r){var a=r?$t:Ut,i=-1,o=t.length,s=e;for(e===t&&(t=Pa(t)),n&&(s=Rt(e,Qt(n)));++i<o;)for(var l=0,c=t[i],u=n?n(c):c;(l=a(s,u,l,r))>-1;)s!==e&&Ye.call(s,l,1),Ye.call(e,l,1);return e}function Gr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var a=t[n];if(n==r||a!==i){var i=a;yi(a)?Ye.call(e,a,1):da(e,a)}}return e}function Kr(e,t){return e+ft(Sn()*(t-e+1))}function Yr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=ft(t/2))&&(e+=e)}while(t);return n}function Xr(e,t){return Di(Ti(e,t,rl),e+"")}function Zr(e){return Zn(zs(e))}function Jr(e,t){var n=zs(e);return Ii(n,sr(t,0,n.length))}function Qr(e,t,n,r){if(!es(e))return e;for(var i=-1,o=(t=ba(t,e)).length,s=o-1,l=e;null!=l&&++i<o;){var c=Oi(t[i]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var d=l[c];(u=r?r(d,c,l):a)===a&&(u=es(d)?d:yi(t[i+1])?[]:{})}tr(l,c,u),l=l[c]}return e}var ea=Nn?function(e,t){return Nn.set(e,t),e}:rl,ta=Qe?function(e,t){return Qe(e,"toString",{configurable:!0,enumerable:!1,value:el(t),writable:!0})}:rl;function na(e){return Ii(zs(e))}function ra(e,t,r){var a=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=n(i);++a<i;)o[a]=e[a+t];return o}function aa(e,t){var n;return pr(e,(function(e,r,a){return!(n=t(e,r,a))})),!!n}function ia(e,t,n){var r=0,a=null==e?r:e.length;if("number"==typeof t&&t===t&&a<=2147483647){for(;r<a;){var i=r+a>>>1,o=e[i];null!==o&&!ls(o)&&(n?o<=t:o<t)?r=i+1:a=i}return a}return oa(e,t,rl,n)}function oa(e,t,n,r){var i=0,o=null==e?0:e.length;if(0===o)return 0;for(var s=(t=n(t))!==t,l=null===t,c=ls(t),u=t===a;i<o;){var d=ft((i+o)/2),p=n(e[d]),h=p!==a,f=null===p,m=p===p,g=ls(p);if(s)var v=r||m;else v=u?m&&(r||h):l?m&&h&&(r||!f):c?m&&h&&!f&&(r||!g):!f&&!g&&(r?p<=t:p<t);v?i=d+1:o=d}return bn(o,4294967294)}function sa(e,t){for(var n=-1,r=e.length,a=0,i=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!zo(s,l)){var l=s;i[a++]=0===o?0:o}}return i}function la(e){return"number"==typeof e?e:ls(e)?m:+e}function ca(e){if("string"==typeof e)return e;if($o(e))return Rt(e,ca)+"";if(ls(e))return Bn?Bn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ua(e,t,n){var r=-1,a=_t,i=e.length,o=!0,s=[],l=s;if(n)o=!1,a=It;else if(i>=200){var c=t?null:Ya(e);if(c)return pn(c);o=!1,a=tn,l=new Kn}else l=t?[]:s;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,o&&d===d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(u)}else a(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function da(e,t){return null==(e=ji(e,t=ba(t,e)))||delete e[Oi(Yi(t))]}function pa(e,t,n,r){return Qr(e,t,n(Cr(e,t)),r)}function ha(e,t,n,r){for(var a=e.length,i=r?a:-1;(r?i--:++i<a)&&t(e[i],i,e););return n?ra(e,r?0:i,r?i+1:a):ra(e,r?i+1:0,r?a:i)}function fa(e,t){var n=e;return n instanceof $n&&(n=n.value()),Lt(t,(function(e,t){return t.func.apply(t.thisArg,Ot([e],t.args))}),n)}function ma(e,t,r){var a=e.length;if(a<2)return a?ua(e[0]):[];for(var i=-1,o=n(a);++i<a;)for(var s=e[i],l=-1;++l<a;)l!=i&&(o[i]=dr(o[i]||s,e[l],t,r));return ua(vr(o,1),t,r)}function ga(e,t,n){for(var r=-1,i=e.length,o=t.length,s={};++r<i;){var l=r<o?t[r]:a;n(s,e[r],l)}return s}function va(e){return Go(e)?e:[]}function ya(e){return"function"==typeof e?e:rl}function ba(e,t){return $o(e)?e:xi(e,t)?[e]:Ri(ys(e))}var xa=Xr;function wa(e,t,n){var r=e.length;return n=n===a?r:n,!t&&n>=r?e:ra(e,t,n)}var Sa=nt||function(e){return mt.clearTimeout(e)};function Ca(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function Aa(e){var t=new e.constructor(e.byteLength);return new $e(t).set(new $e(e)),t}function ka(e,t){var n=t?Aa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ta(e,t){if(e!==t){var n=e!==a,r=null===e,i=e===e,o=ls(e),s=t!==a,l=null===t,c=t===t,u=ls(t);if(!l&&!u&&!o&&e>t||o&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!i)return 1;if(!r&&!o&&!u&&e<t||u&&n&&i&&!r&&!o||l&&n&&i||!s&&i||!c)return-1}return 0}function ja(e,t,r,a){for(var i=-1,o=e.length,s=r.length,l=-1,c=t.length,u=Kt(o-s,0),d=n(c+u),p=!a;++l<c;)d[l]=t[l];for(;++i<s;)(p||i<o)&&(d[r[i]]=e[i]);for(;u--;)d[l++]=e[i++];return d}function Ea(e,t,r,a){for(var i=-1,o=e.length,s=-1,l=r.length,c=-1,u=t.length,d=Kt(o-l,0),p=n(d+u),h=!a;++i<d;)p[i]=e[i];for(var f=i;++c<u;)p[f+c]=t[c];for(;++s<l;)(h||i<o)&&(p[f+r[s]]=e[i++]);return p}function Pa(e,t){var r=-1,a=e.length;for(t||(t=n(a));++r<a;)t[r]=e[r];return t}function Na(e,t,n,r){var i=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var l=t[o],c=r?r(n[l],e[l],l,n,e):a;c===a&&(c=e[l]),i?ir(n,l,c):tr(n,l,c)}return n}function Da(e,t){return function(n,r){var a=$o(n)?Et:rr,i=t?t():{};return a(n,e,li(r,2),i)}}function Ma(e){return Xr((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:a,s=i>2?n[2]:a;for(o=e.length>3&&"function"==typeof o?(i--,o):a,s&&bi(n[0],n[1],s)&&(o=i<3?a:o,i=1),t=Te(t);++r<i;){var l=n[r];l&&e(t,l,r,o)}return t}))}function _a(e,t){return function(n,r){if(null==n)return n;if(!qo(n))return e(n,r);for(var a=n.length,i=t?a:-1,o=Te(n);(t?i--:++i<a)&&!1!==r(o[i],i,o););return n}}function Ia(e){return function(t,n,r){for(var a=-1,i=Te(t),o=r(t),s=o.length;s--;){var l=o[e?s:++a];if(!1===n(i[l],l,i))break}return t}}function Ra(e){return function(t){var n=ln(t=ys(t))?mn(t):a,r=n?n[0]:t.charAt(0),i=n?wa(n,1).join(""):t.slice(1);return r[e]()+i}}function Oa(e){return function(t){return Lt(Zs(Us(t).replace(et,"")),e,"")}}function La(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Vn(e.prototype),r=e.apply(n,t);return es(r)?r:n}}function Fa(e){return function(t,n,r){var i=Te(t);if(!qo(t)){var o=li(n,3);t=Ds(t),n=function(e){return o(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[o?t[s]:s]:a}}function Ba(e){return ni((function(t){var n=t.length,r=n,o=Un.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Pe(i);if(o&&!l&&"wrapper"==oi(s))var l=new Un([],!0)}for(r=l?r:n;++r<n;){var c=oi(s=t[r]),u="wrapper"==c?ii(s):a;l=u&&wi(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[oi(u[0])].apply(l,u[3]):1==s.length&&wi(s)?l[c]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&$o(r))return l.plant(r).value();for(var a=0,i=n?t[a].apply(this,e):r;++a<n;)i=t[a].call(this,i);return i}}))}function za(e,t,r,i,o,s,l,c,u,p){var h=t&d,f=1&t,m=2&t,g=24&t,v=512&t,y=m?a:La(e);return function d(){for(var b=arguments.length,x=n(b),w=b;w--;)x[w]=arguments[w];if(g)var S=si(d),C=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(x,S);if(i&&(x=ja(x,i,o,g)),s&&(x=Ea(x,s,l,g)),b-=C,g&&b<p){var A=dn(x,S);return Ga(e,t,za,d.placeholder,r,x,A,c,u,p-b)}var k=f?r:this,T=m?k[e]:e;return b=x.length,c?x=function(e,t){var n=e.length,r=bn(t.length,n),i=Pa(e);for(;r--;){var o=t[r];e[r]=yi(o,n)?i[o]:a}return e}(x,c):v&&b>1&&x.reverse(),h&&u<b&&(x.length=u),this&&this!==mt&&this instanceof d&&(T=y||La(T)),T.apply(k,x)}}function Va(e,t){return function(n,r){return function(e,t,n,r){return xr(e,(function(e,a,i){t(r,n(e),a,i)})),r}(n,e,t(r),{})}}function Wa(e,t){return function(n,r){var i;if(n===a&&r===a)return t;if(n!==a&&(i=n),r!==a){if(i===a)return r;"string"==typeof n||"string"==typeof r?(n=ca(n),r=ca(r)):(n=la(n),r=la(r)),i=e(n,r)}return i}}function Ua(e){return ni((function(t){return t=Rt(t,Qt(li())),Xr((function(n){var r=this;return e(t,(function(e){return jt(e,r,n)}))}))}))}function $a(e,t){var n=(t=t===a?" ":ca(t)).length;if(n<2)return n?Yr(t,e):t;var r=Yr(t,ht(e/fn(t)));return ln(t)?wa(mn(r),0,e).join(""):r.slice(0,e)}function Ha(e){return function(t,r,i){return i&&"number"!=typeof i&&bi(t,r,i)&&(r=i=a),t=hs(t),r===a?(r=t,t=0):r=hs(r),function(e,t,r,a){for(var i=-1,o=Kt(ht((t-e)/(r||1)),0),s=n(o);o--;)s[a?o:++i]=e,e+=r;return s}(t,r,i=i===a?t<r?1:-1:hs(i),e)}}function qa(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=gs(t),n=gs(n)),e(t,n)}}function Ga(e,t,n,r,i,o,s,l,d,p){var h=8&t;t|=h?c:u,4&(t&=~(h?u:c))||(t&=-4);var f=[e,t,i,h?o:a,h?s:a,h?a:o,h?a:s,l,d,p],m=n.apply(a,f);return wi(e)&&Pi(m,f),m.placeholder=r,Mi(m,e,t)}function Ka(e){var t=ke[e];return function(e,n){if(e=gs(e),(n=null==n?0:bn(fs(n),292))&&bt(e)){var r=(ys(e)+"e").split("e");return+((r=(ys(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ya=jn&&1/pn(new jn([,-0]))[1]==h?function(e){return new jn(e)}:ll;function Xa(e){return function(t){var n=fi(t);return n==k?cn(t):n==N?hn(t):function(e,t){return Rt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Za(e,t,r,o,h,f,m,g){var v=2&t;if(!v&&"function"!=typeof e)throw new Pe(i);var y=o?o.length:0;if(y||(t&=-97,o=h=a),m=m===a?m:Kt(fs(m),0),g=g===a?g:fs(g),y-=h?h.length:0,t&u){var b=o,x=h;o=h=a}var w=v?a:ii(e),S=[e,t,r,o,h,b,x,f,m,g];if(w&&function(e,t){var n=e[1],r=t[1],a=n|r,i=a<131,o=r==d&&8==n||r==d&&n==p&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!o)return e;1&r&&(e[2]=t[2],a|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?ja(c,l,t[4]):l,e[4]=c?dn(e[3],s):t[4]}(l=t[5])&&(c=e[5],e[5]=c?Ea(c,l,t[6]):l,e[6]=c?dn(e[5],s):t[6]);(l=t[7])&&(e[7]=l);r&d&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=a}(S,w),e=S[0],t=S[1],r=S[2],o=S[3],h=S[4],!(g=S[9]=S[9]===a?v?0:e.length:Kt(S[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)C=8==t||t==l?function(e,t,r){var i=La(e);return function o(){for(var s=arguments.length,l=n(s),c=s,u=si(o);c--;)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:dn(l,u);return(s-=d.length)<r?Ga(e,t,za,o.placeholder,a,l,d,a,a,r-s):jt(this&&this!==mt&&this instanceof o?i:e,this,l)}}(e,t,g):t!=c&&33!=t||h.length?za.apply(a,S):function(e,t,r,a){var i=1&t,o=La(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=a.length,d=n(u+l),p=this&&this!==mt&&this instanceof t?o:e;++c<u;)d[c]=a[c];for(;l--;)d[c++]=arguments[++s];return jt(p,i?r:this,d)}}(e,t,r,o);else var C=function(e,t,n){var r=1&t,a=La(e);return function t(){return(this&&this!==mt&&this instanceof t?a:e).apply(r?n:this,arguments)}}(e,t,r);return Mi((w?ea:Pi)(C,S),e,t)}function Ja(e,t,n,r){return e===a||zo(e,Me[n])&&!Re.call(r,n)?t:e}function Qa(e,t,n,r,i,o){return es(e)&&es(t)&&(o.set(t,e),Wr(e,t,a,Qa,o),o.delete(t)),e}function ei(e){return as(e)?a:e}function ti(e,t,n,r,i,o){var s=1&n,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var p=-1,h=!0,f=2&n?new Kn:a;for(o.set(e,t),o.set(t,e);++p<l;){var m=e[p],g=t[p];if(r)var v=s?r(g,m,p,t,e,o):r(m,g,p,e,t,o);if(v!==a){if(v)continue;h=!1;break}if(f){if(!Bt(t,(function(e,t){if(!tn(f,t)&&(m===e||i(m,e,n,r,o)))return f.push(t)}))){h=!1;break}}else if(m!==g&&!i(m,g,n,r,o)){h=!1;break}}return o.delete(e),o.delete(t),h}function ni(e){return Di(Ti(e,a,$i),e+"")}function ri(e){return Ar(e,Ds,pi)}function ai(e){return Ar(e,Ms,hi)}var ii=Nn?function(e){return Nn.get(e)}:ll;function oi(e){for(var t=e.name+"",n=Dn[t],r=Re.call(Dn,t)?n.length:0;r--;){var a=n[r],i=a.func;if(null==i||i==e)return a.name}return t}function si(e){return(Re.call(zn,"placeholder")?zn:e).placeholder}function li(){var e=zn.iteratee||al;return e=e===al?Rr:e,arguments.length?e(arguments[0],arguments[1]):e}function ci(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function ui(e){for(var t=Ds(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,Ai(a)]}return t}function di(e,t){var n=function(e,t){return null==e?a:e[t]}(e,t);return Ir(n)?n:a}var pi=gt?function(e){return null==e?[]:(e=Te(e),Mt(gt(e),(function(t){return Ke.call(e,t)})))}:ml,hi=gt?function(e){for(var t=[];e;)Ot(t,pi(e)),e=qe(e);return t}:ml,fi=kr;function mi(e,t,n){for(var r=-1,a=(t=ba(t,e)).length,i=!1;++r<a;){var o=Oi(t[r]);if(!(i=null!=e&&n(e,o)))break;e=e[o]}return i||++r!=a?i:!!(a=null==e?0:e.length)&&Qo(a)&&yi(o,a)&&($o(e)||Uo(e))}function gi(e){return"function"!=typeof e.constructor||Ci(e)?{}:Vn(qe(e))}function vi(e){return $o(e)||Uo(e)||!!(Xe&&e&&e[Xe])}function yi(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&xe.test(e))&&e>-1&&e%1==0&&e<t}function bi(e,t,n){if(!es(n))return!1;var r=typeof t;return!!("number"==r?qo(n)&&yi(t,n.length):"string"==r&&t in n)&&zo(n[t],e)}function xi(e,t){if($o(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ls(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Te(t))}function wi(e){var t=oi(e),n=zn[t];if("function"!=typeof n||!(t in $n.prototype))return!1;if(e===n)return!0;var r=ii(n);return!!r&&e===r[0]}(An&&fi(new An(new ArrayBuffer(1)))!=R||kn&&fi(new kn)!=k||Tn&&fi(Tn.resolve())!=E||jn&&fi(new jn)!=N||En&&fi(new En)!=_)&&(fi=function(e){var t=kr(e),n=t==j?e.constructor:a,r=n?Li(n):"";if(r)switch(r){case Mn:return R;case _n:return k;case In:return E;case Rn:return N;case On:return _}return t});var Si=_e?Zo:gl;function Ci(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Me)}function Ai(e){return e===e&&!es(e)}function ki(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==a||e in Te(n)))}}function Ti(e,t,r){return t=Kt(t===a?e.length-1:t,0),function(){for(var a=arguments,i=-1,o=Kt(a.length-t,0),s=n(o);++i<o;)s[i]=a[t+i];i=-1;for(var l=n(t+1);++i<t;)l[i]=a[i];return l[t]=r(s),jt(e,this,l)}}function ji(e,t){return t.length<2?e:Cr(e,ra(t,0,-1))}function Ei(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Pi=_i(ea),Ni=ut||function(e,t){return mt.setTimeout(e,t)},Di=_i(ta);function Mi(e,t,n){var r=t+"";return Di(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Pt(v,(function(n){var r="_."+n[0];t&n[1]&&!_t(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(ue):[]}(r),n)))}function _i(e){var t=0,n=0;return function(){var r=xn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Ii(e,t){var n=-1,r=e.length,i=r-1;for(t=t===a?r:t;++n<t;){var o=Kr(n,i),s=e[o];e[o]=e[n],e[n]=s}return e.length=t,e}var Ri=function(e){var t=Io(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,a){t.push(r?a.replace(he,"$1"):n||e)})),t}));function Oi(e){if("string"==typeof e||ls(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Li(e){if(null!=e){try{return Ie.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Fi(e){if(e instanceof $n)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=Pa(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Bi=Xr((function(e,t){return Go(e)?dr(e,vr(t,1,Go,!0)):[]})),zi=Xr((function(e,t){var n=Yi(t);return Go(n)&&(n=a),Go(e)?dr(e,vr(t,1,Go,!0),li(n,2)):[]})),Vi=Xr((function(e,t){var n=Yi(t);return Go(n)&&(n=a),Go(e)?dr(e,vr(t,1,Go,!0),a,n):[]}));function Wi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:fs(n);return a<0&&(a=Kt(r+a,0)),Wt(e,li(t,3),a)}function Ui(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==a&&(i=fs(n),i=n<0?Kt(r+i,0):bn(i,r-1)),Wt(e,li(t,3),i,!0)}function $i(e){return(null==e?0:e.length)?vr(e,1):[]}function Hi(e){return e&&e.length?e[0]:a}var qi=Xr((function(e){var t=Rt(e,va);return t.length&&t[0]===e[0]?Pr(t):[]})),Gi=Xr((function(e){var t=Yi(e),n=Rt(e,va);return t===Yi(n)?t=a:n.pop(),n.length&&n[0]===e[0]?Pr(n,li(t,2)):[]})),Ki=Xr((function(e){var t=Yi(e),n=Rt(e,va);return(t="function"==typeof t?t:a)&&n.pop(),n.length&&n[0]===e[0]?Pr(n,a,t):[]}));function Yi(e){var t=null==e?0:e.length;return t?e[t-1]:a}var Xi=Xr(Zi);function Zi(e,t){return e&&e.length&&t&&t.length?qr(e,t):e}var Ji=ni((function(e,t){var n=null==e?0:e.length,r=or(e,t);return Gr(e,Rt(t,(function(e){return yi(e,n)?+e:e})).sort(Ta)),r}));function Qi(e){return null==e?e:Cn.call(e)}var eo=Xr((function(e){return ua(vr(e,1,Go,!0))})),to=Xr((function(e){var t=Yi(e);return Go(t)&&(t=a),ua(vr(e,1,Go,!0),li(t,2))})),no=Xr((function(e){var t=Yi(e);return t="function"==typeof t?t:a,ua(vr(e,1,Go,!0),a,t)}));function ro(e){if(!e||!e.length)return[];var t=0;return e=Mt(e,(function(e){if(Go(e))return t=Kt(e.length,t),!0})),Zt(t,(function(t){return Rt(e,Gt(t))}))}function ao(e,t){if(!e||!e.length)return[];var n=ro(e);return null==t?n:Rt(n,(function(e){return jt(t,a,e)}))}var io=Xr((function(e,t){return Go(e)?dr(e,t):[]})),oo=Xr((function(e){return ma(Mt(e,Go))})),so=Xr((function(e){var t=Yi(e);return Go(t)&&(t=a),ma(Mt(e,Go),li(t,2))})),lo=Xr((function(e){var t=Yi(e);return t="function"==typeof t?t:a,ma(Mt(e,Go),a,t)})),co=Xr(ro);var uo=Xr((function(e){var t=e.length,n=t>1?e[t-1]:a;return n="function"==typeof n?(e.pop(),n):a,ao(e,n)}));function po(e){var t=zn(e);return t.__chain__=!0,t}function ho(e,t){return t(e)}var fo=ni((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof $n&&yi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ho,args:[i],thisArg:a}),new Un(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(a),e}))):this.thru(i)}));var mo=Da((function(e,t,n){Re.call(e,n)?++e[n]:ir(e,n,1)}));var go=Fa(Wi),vo=Fa(Ui);function yo(e,t){return($o(e)?Pt:pr)(e,li(t,3))}function bo(e,t){return($o(e)?Nt:hr)(e,li(t,3))}var xo=Da((function(e,t,n){Re.call(e,n)?e[n].push(t):ir(e,n,[t])}));var wo=Xr((function(e,t,r){var a=-1,i="function"==typeof t,o=qo(e)?n(e.length):[];return pr(e,(function(e){o[++a]=i?jt(t,e,r):Nr(e,t,r)})),o})),So=Da((function(e,t,n){ir(e,n,t)}));function Co(e,t){return($o(e)?Rt:Br)(e,li(t,3))}var Ao=Da((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ko=Xr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&bi(e,t[0],t[1])?t=[]:n>2&&bi(t[0],t[1],t[2])&&(t=[t[0]]),$r(e,vr(t,1),[])})),To=at||function(){return mt.Date.now()};function jo(e,t,n){return t=n?a:t,t=e&&null==t?e.length:t,Za(e,d,a,a,a,a,t)}function Eo(e,t){var n;if("function"!=typeof t)throw new Pe(i);return e=fs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=a),n}}var Po=Xr((function(e,t,n){var r=1;if(n.length){var a=dn(n,si(Po));r|=c}return Za(e,r,t,n,a)})),No=Xr((function(e,t,n){var r=3;if(n.length){var a=dn(n,si(No));r|=c}return Za(t,r,e,n,a)}));function Do(e,t,n){var r,o,s,l,c,u,d=0,p=!1,h=!1,f=!0;if("function"!=typeof e)throw new Pe(i);function m(t){var n=r,i=o;return r=o=a,d=t,l=e.apply(i,n)}function g(e){var n=e-u;return u===a||n>=t||n<0||h&&e-d>=s}function v(){var e=To();if(g(e))return y(e);c=Ni(v,function(e){var n=t-(e-u);return h?bn(n,s-(e-d)):n}(e))}function y(e){return c=a,f&&r?m(e):(r=o=a,l)}function b(){var e=To(),n=g(e);if(r=arguments,o=this,u=e,n){if(c===a)return function(e){return d=e,c=Ni(v,t),p?m(e):l}(u);if(h)return Sa(c),c=Ni(v,t),m(u)}return c===a&&(c=Ni(v,t)),l}return t=gs(t)||0,es(n)&&(p=!!n.leading,s=(h="maxWait"in n)?Kt(gs(n.maxWait)||0,t):s,f="trailing"in n?!!n.trailing:f),b.cancel=function(){c!==a&&Sa(c),d=0,r=u=o=c=a},b.flush=function(){return c===a?l:y(To())},b}var Mo=Xr((function(e,t){return ur(e,1,t)})),_o=Xr((function(e,t,n){return ur(e,gs(t)||0,n)}));function Io(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Pe(i);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(Io.Cache||Gn),n}function Ro(e){if("function"!=typeof e)throw new Pe(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Io.Cache=Gn;var Oo=xa((function(e,t){var n=(t=1==t.length&&$o(t[0])?Rt(t[0],Qt(li())):Rt(vr(t,1),Qt(li()))).length;return Xr((function(r){for(var a=-1,i=bn(r.length,n);++a<i;)r[a]=t[a].call(this,r[a]);return jt(e,this,r)}))})),Lo=Xr((function(e,t){var n=dn(t,si(Lo));return Za(e,c,a,t,n)})),Fo=Xr((function(e,t){var n=dn(t,si(Fo));return Za(e,u,a,t,n)})),Bo=ni((function(e,t){return Za(e,p,a,a,a,t)}));function zo(e,t){return e===t||e!==e&&t!==t}var Vo=qa(Tr),Wo=qa((function(e,t){return e>=t})),Uo=Dr(function(){return arguments}())?Dr:function(e){return ts(e)&&Re.call(e,"callee")&&!Ke.call(e,"callee")},$o=n.isArray,Ho=wt?Qt(wt):function(e){return ts(e)&&kr(e)==I};function qo(e){return null!=e&&Qo(e.length)&&!Zo(e)}function Go(e){return ts(e)&&qo(e)}var Ko=vt||gl,Yo=St?Qt(St):function(e){return ts(e)&&kr(e)==w};function Xo(e){if(!ts(e))return!1;var t=kr(e);return t==S||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!as(e)}function Zo(e){if(!es(e))return!1;var t=kr(e);return t==C||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Jo(e){return"number"==typeof e&&e==fs(e)}function Qo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ts(e){return null!=e&&"object"==typeof e}var ns=Ct?Qt(Ct):function(e){return ts(e)&&fi(e)==k};function rs(e){return"number"==typeof e||ts(e)&&kr(e)==T}function as(e){if(!ts(e)||kr(e)!=j)return!1;var t=qe(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ie.call(n)==Be}var is=At?Qt(At):function(e){return ts(e)&&kr(e)==P};var os=kt?Qt(kt):function(e){return ts(e)&&fi(e)==N};function ss(e){return"string"==typeof e||!$o(e)&&ts(e)&&kr(e)==D}function ls(e){return"symbol"==typeof e||ts(e)&&kr(e)==M}var cs=Tt?Qt(Tt):function(e){return ts(e)&&Qo(e.length)&&!!lt[kr(e)]};var us=qa(Fr),ds=qa((function(e,t){return e<=t}));function ps(e){if(!e)return[];if(qo(e))return ss(e)?mn(e):Pa(e);if(Ze&&e[Ze])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ze]());var t=fi(e);return(t==k?cn:t==N?pn:zs)(e)}function hs(e){return e?(e=gs(e))===h||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function fs(e){var t=hs(e),n=t%1;return t===t?n?t-n:t:0}function ms(e){return e?sr(fs(e),0,g):0}function gs(e){if("number"==typeof e)return e;if(ls(e))return m;if(es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=ve.test(e);return n||be.test(e)?pt(e.slice(2),n?2:8):ge.test(e)?m:+e}function vs(e){return Na(e,Ms(e))}function ys(e){return null==e?"":ca(e)}var bs=Ma((function(e,t){if(Ci(t)||qo(t))Na(t,Ds(t),e);else for(var n in t)Re.call(t,n)&&tr(e,n,t[n])})),xs=Ma((function(e,t){Na(t,Ms(t),e)})),ws=Ma((function(e,t,n,r){Na(t,Ms(t),e,r)})),Ss=Ma((function(e,t,n,r){Na(t,Ds(t),e,r)})),Cs=ni(or);var As=Xr((function(e,t){e=Te(e);var n=-1,r=t.length,i=r>2?t[2]:a;for(i&&bi(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],s=Ms(o),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===a||zo(d,Me[u])&&!Re.call(e,u))&&(e[u]=o[u])}return e})),ks=Xr((function(e){return e.push(a,Qa),jt(Is,a,e)}));function Ts(e,t,n){var r=null==e?a:Cr(e,t);return r===a?n:r}function js(e,t){return null!=e&&mi(e,t,Er)}var Es=Va((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=n}),el(rl)),Ps=Va((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),Re.call(e,t)?e[t].push(n):e[t]=[n]}),li),Ns=Xr(Nr);function Ds(e){return qo(e)?Xn(e):Or(e)}function Ms(e){return qo(e)?Xn(e,!0):Lr(e)}var _s=Ma((function(e,t,n){Wr(e,t,n)})),Is=Ma((function(e,t,n,r){Wr(e,t,n,r)})),Rs=ni((function(e,t){var n={};if(null==e)return n;var r=!1;t=Rt(t,(function(t){return t=ba(t,e),r||(r=t.length>1),t})),Na(e,ai(e),n),r&&(n=lr(n,7,ei));for(var a=t.length;a--;)da(n,t[a]);return n}));var Os=ni((function(e,t){return null==e?{}:function(e,t){return Hr(e,t,(function(t,n){return js(e,n)}))}(e,t)}));function Ls(e,t){if(null==e)return{};var n=Rt(ai(e),(function(e){return[e]}));return t=li(t),Hr(e,n,(function(e,n){return t(e,n[0])}))}var Fs=Xa(Ds),Bs=Xa(Ms);function zs(e){return null==e?[]:en(e,Ds(e))}var Vs=Oa((function(e,t,n){return t=t.toLowerCase(),e+(n?Ws(t):t)}));function Ws(e){return Xs(ys(e).toLowerCase())}function Us(e){return(e=ys(e))&&e.replace(we,an).replace(tt,"")}var $s=Oa((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Hs=Oa((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),qs=Ra("toLowerCase");var Gs=Oa((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ks=Oa((function(e,t,n){return e+(n?" ":"")+Xs(t)}));var Ys=Oa((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Xs=Ra("toUpperCase");function Zs(e,t,n){return e=ys(e),(t=n?a:t)===a?function(e){return it.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Js=Xr((function(e,t){try{return jt(e,a,t)}catch(n){return Xo(n)?n:new se(n)}})),Qs=ni((function(e,t){return Pt(t,(function(t){t=Oi(t),ir(e,t,Po(e[t],e))})),e}));function el(e){return function(){return e}}var tl=Ba(),nl=Ba(!0);function rl(e){return e}function al(e){return Rr("function"==typeof e?e:lr(e,1))}var il=Xr((function(e,t){return function(n){return Nr(n,e,t)}})),ol=Xr((function(e,t){return function(n){return Nr(e,n,t)}}));function sl(e,t,n){var r=Ds(t),a=Sr(t,r);null!=n||es(t)&&(a.length||!r.length)||(n=t,t=e,e=this,a=Sr(t,Ds(t)));var i=!(es(n)&&"chain"in n)||!!n.chain,o=Zo(e);return Pt(a,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Pa(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ot([this.value()],arguments))})})),e}function ll(){}var cl=Ua(Rt),ul=Ua(Dt),dl=Ua(Bt);function pl(e){return xi(e)?Gt(Oi(e)):function(e){return function(t){return Cr(t,e)}}(e)}var hl=Ha(),fl=Ha(!0);function ml(){return[]}function gl(){return!1}var vl=Wa((function(e,t){return e+t}),0),yl=Ka("ceil"),bl=Wa((function(e,t){return e/t}),1),xl=Ka("floor");var wl=Wa((function(e,t){return e*t}),1),Sl=Ka("round"),Cl=Wa((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new Pe(i);return e=fs(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=jo,zn.assign=bs,zn.assignIn=xs,zn.assignInWith=ws,zn.assignWith=Ss,zn.at=Cs,zn.before=Eo,zn.bind=Po,zn.bindAll=Qs,zn.bindKey=No,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return $o(e)?e:[e]},zn.chain=po,zn.chunk=function(e,t,r){t=(r?bi(e,t,r):t===a)?1:Kt(fs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,s=0,l=n(ht(i/t));o<i;)l[s++]=ra(e,o,o+=t);return l},zn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,a=[];++t<n;){var i=e[t];i&&(a[r++]=i)}return a},zn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],a=e;a--;)t[a-1]=arguments[a];return Ot($o(r)?Pa(r):[r],vr(t,1))},zn.cond=function(e){var t=null==e?0:e.length,n=li();return e=t?Rt(e,(function(e){if("function"!=typeof e[1])throw new Pe(i);return[n(e[0]),e[1]]})):[],Xr((function(n){for(var r=-1;++r<t;){var a=e[r];if(jt(a[0],this,n))return jt(a[1],this,n)}}))},zn.conforms=function(e){return function(e){var t=Ds(e);return function(n){return cr(n,e,t)}}(lr(e,1))},zn.constant=el,zn.countBy=mo,zn.create=function(e,t){var n=Vn(e);return null==t?n:ar(n,t)},zn.curry=function e(t,n,r){var i=Za(t,8,a,a,a,a,a,n=r?a:n);return i.placeholder=e.placeholder,i},zn.curryRight=function e(t,n,r){var i=Za(t,l,a,a,a,a,a,n=r?a:n);return i.placeholder=e.placeholder,i},zn.debounce=Do,zn.defaults=As,zn.defaultsDeep=ks,zn.defer=Mo,zn.delay=_o,zn.difference=Bi,zn.differenceBy=zi,zn.differenceWith=Vi,zn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ra(e,(t=n||t===a?1:fs(t))<0?0:t,r):[]},zn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ra(e,0,(t=r-(t=n||t===a?1:fs(t)))<0?0:t):[]},zn.dropRightWhile=function(e,t){return e&&e.length?ha(e,li(t,3),!0,!0):[]},zn.dropWhile=function(e,t){return e&&e.length?ha(e,li(t,3),!0):[]},zn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&bi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=fs(n))<0&&(n=-n>i?0:i+n),(r=r===a||r>i?i:fs(r))<0&&(r+=i),r=n>r?0:ms(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},zn.filter=function(e,t){return($o(e)?Mt:gr)(e,li(t,3))},zn.flatMap=function(e,t){return vr(Co(e,t),1)},zn.flatMapDeep=function(e,t){return vr(Co(e,t),h)},zn.flatMapDepth=function(e,t,n){return n=n===a?1:fs(n),vr(Co(e,t),n)},zn.flatten=$i,zn.flattenDeep=function(e){return(null==e?0:e.length)?vr(e,h):[]},zn.flattenDepth=function(e,t){return(null==e?0:e.length)?vr(e,t=t===a?1:fs(t)):[]},zn.flip=function(e){return Za(e,512)},zn.flow=tl,zn.flowRight=nl,zn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var a=e[t];r[a[0]]=a[1]}return r},zn.functions=function(e){return null==e?[]:Sr(e,Ds(e))},zn.functionsIn=function(e){return null==e?[]:Sr(e,Ms(e))},zn.groupBy=xo,zn.initial=function(e){return(null==e?0:e.length)?ra(e,0,-1):[]},zn.intersection=qi,zn.intersectionBy=Gi,zn.intersectionWith=Ki,zn.invert=Es,zn.invertBy=Ps,zn.invokeMap=wo,zn.iteratee=al,zn.keyBy=So,zn.keys=Ds,zn.keysIn=Ms,zn.map=Co,zn.mapKeys=function(e,t){var n={};return t=li(t,3),xr(e,(function(e,r,a){ir(n,t(e,r,a),e)})),n},zn.mapValues=function(e,t){var n={};return t=li(t,3),xr(e,(function(e,r,a){ir(n,r,t(e,r,a))})),n},zn.matches=function(e){return zr(lr(e,1))},zn.matchesProperty=function(e,t){return Vr(e,lr(t,1))},zn.memoize=Io,zn.merge=_s,zn.mergeWith=Is,zn.method=il,zn.methodOf=ol,zn.mixin=sl,zn.negate=Ro,zn.nthArg=function(e){return e=fs(e),Xr((function(t){return Ur(t,e)}))},zn.omit=Rs,zn.omitBy=function(e,t){return Ls(e,Ro(li(t)))},zn.once=function(e){return Eo(2,e)},zn.orderBy=function(e,t,n,r){return null==e?[]:($o(t)||(t=null==t?[]:[t]),$o(n=r?a:n)||(n=null==n?[]:[n]),$r(e,t,n))},zn.over=cl,zn.overArgs=Oo,zn.overEvery=ul,zn.overSome=dl,zn.partial=Lo,zn.partialRight=Fo,zn.partition=Ao,zn.pick=Os,zn.pickBy=Ls,zn.property=pl,zn.propertyOf=function(e){return function(t){return null==e?a:Cr(e,t)}},zn.pull=Xi,zn.pullAll=Zi,zn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,li(n,2)):e},zn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,a,n):e},zn.pullAt=Ji,zn.range=hl,zn.rangeRight=fl,zn.rearg=Bo,zn.reject=function(e,t){return($o(e)?Mt:gr)(e,Ro(li(t,3)))},zn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,a=[],i=e.length;for(t=li(t,3);++r<i;){var o=e[r];t(o,r,e)&&(n.push(o),a.push(r))}return Gr(e,a),n},zn.rest=function(e,t){if("function"!=typeof e)throw new Pe(i);return Xr(e,t=t===a?t:fs(t))},zn.reverse=Qi,zn.sampleSize=function(e,t,n){return t=(n?bi(e,t,n):t===a)?1:fs(t),($o(e)?Jn:Jr)(e,t)},zn.set=function(e,t,n){return null==e?e:Qr(e,t,n)},zn.setWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:Qr(e,t,n,r)},zn.shuffle=function(e){return($o(e)?Qn:na)(e)},zn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&bi(e,t,n)?(t=0,n=r):(t=null==t?0:fs(t),n=n===a?r:fs(n)),ra(e,t,n)):[]},zn.sortBy=ko,zn.sortedUniq=function(e){return e&&e.length?sa(e):[]},zn.sortedUniqBy=function(e,t){return e&&e.length?sa(e,li(t,2)):[]},zn.split=function(e,t,n){return n&&"number"!=typeof n&&bi(e,t,n)&&(t=n=a),(n=n===a?g:n>>>0)?(e=ys(e))&&("string"==typeof t||null!=t&&!is(t))&&!(t=ca(t))&&ln(e)?wa(mn(e),0,n):e.split(t,n):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new Pe(i);return t=null==t?0:Kt(fs(t),0),Xr((function(n){var r=n[t],a=wa(n,0,t);return r&&Ot(a,r),jt(e,this,a)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?ra(e,1,t):[]},zn.take=function(e,t,n){return e&&e.length?ra(e,0,(t=n||t===a?1:fs(t))<0?0:t):[]},zn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ra(e,(t=r-(t=n||t===a?1:fs(t)))<0?0:t,r):[]},zn.takeRightWhile=function(e,t){return e&&e.length?ha(e,li(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?ha(e,li(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw new Pe(i);return es(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),Do(e,t,{leading:r,maxWait:t,trailing:a})},zn.thru=ho,zn.toArray=ps,zn.toPairs=Fs,zn.toPairsIn=Bs,zn.toPath=function(e){return $o(e)?Rt(e,Oi):ls(e)?[e]:Pa(Ri(ys(e)))},zn.toPlainObject=vs,zn.transform=function(e,t,n){var r=$o(e),a=r||Ko(e)||cs(e);if(t=li(t,4),null==n){var i=e&&e.constructor;n=a?r?new i:[]:es(e)&&Zo(i)?Vn(qe(e)):{}}return(a?Pt:xr)(e,(function(e,r,a){return t(n,e,r,a)})),n},zn.unary=function(e){return jo(e,1)},zn.union=eo,zn.unionBy=to,zn.unionWith=no,zn.uniq=function(e){return e&&e.length?ua(e):[]},zn.uniqBy=function(e,t){return e&&e.length?ua(e,li(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:a,e&&e.length?ua(e,a,t):[]},zn.unset=function(e,t){return null==e||da(e,t)},zn.unzip=ro,zn.unzipWith=ao,zn.update=function(e,t,n){return null==e?e:pa(e,t,ya(n))},zn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:pa(e,t,ya(n),r)},zn.values=zs,zn.valuesIn=function(e){return null==e?[]:en(e,Ms(e))},zn.without=io,zn.words=Zs,zn.wrap=function(e,t){return Lo(ya(t),e)},zn.xor=oo,zn.xorBy=so,zn.xorWith=lo,zn.zip=co,zn.zipObject=function(e,t){return ga(e||[],t||[],tr)},zn.zipObjectDeep=function(e,t){return ga(e||[],t||[],Qr)},zn.zipWith=uo,zn.entries=Fs,zn.entriesIn=Bs,zn.extend=xs,zn.extendWith=ws,sl(zn,zn),zn.add=vl,zn.attempt=Js,zn.camelCase=Vs,zn.capitalize=Ws,zn.ceil=yl,zn.clamp=function(e,t,n){return n===a&&(n=t,t=a),n!==a&&(n=(n=gs(n))===n?n:0),t!==a&&(t=(t=gs(t))===t?t:0),sr(gs(e),t,n)},zn.clone=function(e){return lr(e,4)},zn.cloneDeep=function(e){return lr(e,5)},zn.cloneDeepWith=function(e,t){return lr(e,5,t="function"==typeof t?t:a)},zn.cloneWith=function(e,t){return lr(e,4,t="function"==typeof t?t:a)},zn.conformsTo=function(e,t){return null==t||cr(e,t,Ds(t))},zn.deburr=Us,zn.defaultTo=function(e,t){return null==e||e!==e?t:e},zn.divide=bl,zn.endsWith=function(e,t,n){e=ys(e),t=ca(t);var r=e.length,i=n=n===a?r:sr(fs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},zn.eq=zo,zn.escape=function(e){return(e=ys(e))&&Z.test(e)?e.replace(Y,on):e},zn.escapeRegExp=function(e){return(e=ys(e))&&ie.test(e)?e.replace(ae,"\\$&"):e},zn.every=function(e,t,n){var r=$o(e)?Dt:fr;return n&&bi(e,t,n)&&(t=a),r(e,li(t,3))},zn.find=go,zn.findIndex=Wi,zn.findKey=function(e,t){return Vt(e,li(t,3),xr)},zn.findLast=vo,zn.findLastIndex=Ui,zn.findLastKey=function(e,t){return Vt(e,li(t,3),wr)},zn.floor=xl,zn.forEach=yo,zn.forEachRight=bo,zn.forIn=function(e,t){return null==e?e:yr(e,li(t,3),Ms)},zn.forInRight=function(e,t){return null==e?e:br(e,li(t,3),Ms)},zn.forOwn=function(e,t){return e&&xr(e,li(t,3))},zn.forOwnRight=function(e,t){return e&&wr(e,li(t,3))},zn.get=Ts,zn.gt=Vo,zn.gte=Wo,zn.has=function(e,t){return null!=e&&mi(e,t,jr)},zn.hasIn=js,zn.head=Hi,zn.identity=rl,zn.includes=function(e,t,n,r){e=qo(e)?e:zs(e),n=n&&!r?fs(n):0;var a=e.length;return n<0&&(n=Kt(a+n,0)),ss(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&Ut(e,t,n)>-1},zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:fs(n);return a<0&&(a=Kt(r+a,0)),Ut(e,t,a)},zn.inRange=function(e,t,n){return t=hs(t),n===a?(n=t,t=0):n=hs(n),function(e,t,n){return e>=bn(t,n)&&e<Kt(t,n)}(e=gs(e),t,n)},zn.invoke=Ns,zn.isArguments=Uo,zn.isArray=$o,zn.isArrayBuffer=Ho,zn.isArrayLike=qo,zn.isArrayLikeObject=Go,zn.isBoolean=function(e){return!0===e||!1===e||ts(e)&&kr(e)==x},zn.isBuffer=Ko,zn.isDate=Yo,zn.isElement=function(e){return ts(e)&&1===e.nodeType&&!as(e)},zn.isEmpty=function(e){if(null==e)return!0;if(qo(e)&&($o(e)||"string"==typeof e||"function"==typeof e.splice||Ko(e)||cs(e)||Uo(e)))return!e.length;var t=fi(e);if(t==k||t==N)return!e.size;if(Ci(e))return!Or(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0},zn.isEqual=function(e,t){return Mr(e,t)},zn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:a)?n(e,t):a;return r===a?Mr(e,t,a,n):!!r},zn.isError=Xo,zn.isFinite=function(e){return"number"==typeof e&&bt(e)},zn.isFunction=Zo,zn.isInteger=Jo,zn.isLength=Qo,zn.isMap=ns,zn.isMatch=function(e,t){return e===t||_r(e,t,ui(t))},zn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:a,_r(e,t,ui(t),n)},zn.isNaN=function(e){return rs(e)&&e!=+e},zn.isNative=function(e){if(Si(e))throw new se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ir(e)},zn.isNil=function(e){return null==e},zn.isNull=function(e){return null===e},zn.isNumber=rs,zn.isObject=es,zn.isObjectLike=ts,zn.isPlainObject=as,zn.isRegExp=is,zn.isSafeInteger=function(e){return Jo(e)&&e>=-9007199254740991&&e<=f},zn.isSet=os,zn.isString=ss,zn.isSymbol=ls,zn.isTypedArray=cs,zn.isUndefined=function(e){return e===a},zn.isWeakMap=function(e){return ts(e)&&fi(e)==_},zn.isWeakSet=function(e){return ts(e)&&"[object WeakSet]"==kr(e)},zn.join=function(e,t){return null==e?"":xt.call(e,t)},zn.kebabCase=$s,zn.last=Yi,zn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==a&&(i=(i=fs(n))<0?Kt(r+i,0):bn(i,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Wt(e,Ht,i,!0)},zn.lowerCase=Hs,zn.lowerFirst=qs,zn.lt=us,zn.lte=ds,zn.max=function(e){return e&&e.length?mr(e,rl,Tr):a},zn.maxBy=function(e,t){return e&&e.length?mr(e,li(t,2),Tr):a},zn.mean=function(e){return qt(e,rl)},zn.meanBy=function(e,t){return qt(e,li(t,2))},zn.min=function(e){return e&&e.length?mr(e,rl,Fr):a},zn.minBy=function(e,t){return e&&e.length?mr(e,li(t,2),Fr):a},zn.stubArray=ml,zn.stubFalse=gl,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=wl,zn.nth=function(e,t){return e&&e.length?Ur(e,fs(t)):a},zn.noConflict=function(){return mt._===this&&(mt._=ze),this},zn.noop=ll,zn.now=To,zn.pad=function(e,t,n){e=ys(e);var r=(t=fs(t))?fn(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return $a(ft(a),n)+e+$a(ht(a),n)},zn.padEnd=function(e,t,n){e=ys(e);var r=(t=fs(t))?fn(e):0;return t&&r<t?e+$a(t-r,n):e},zn.padStart=function(e,t,n){e=ys(e);var r=(t=fs(t))?fn(e):0;return t&&r<t?$a(t-r,n)+e:e},zn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(ys(e).replace(oe,""),t||0)},zn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&bi(e,t,n)&&(t=n=a),n===a&&("boolean"==typeof t?(n=t,t=a):"boolean"==typeof e&&(n=e,e=a)),e===a&&t===a?(e=0,t=1):(e=hs(e),t===a?(t=e,e=0):t=hs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Sn();return bn(e+i*(t-e+dt("1e-"+((i+"").length-1))),t)}return Kr(e,t)},zn.reduce=function(e,t,n){var r=$o(e)?Lt:Yt,a=arguments.length<3;return r(e,li(t,4),n,a,pr)},zn.reduceRight=function(e,t,n){var r=$o(e)?Ft:Yt,a=arguments.length<3;return r(e,li(t,4),n,a,hr)},zn.repeat=function(e,t,n){return t=(n?bi(e,t,n):t===a)?1:fs(t),Yr(ys(e),t)},zn.replace=function(){var e=arguments,t=ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,n){var r=-1,i=(t=ba(t,e)).length;for(i||(i=1,e=a);++r<i;){var o=null==e?a:e[Oi(t[r])];o===a&&(r=i,o=n),e=Zo(o)?o.call(e):o}return e},zn.round=Sl,zn.runInContext=e,zn.sample=function(e){return($o(e)?Zn:Zr)(e)},zn.size=function(e){if(null==e)return 0;if(qo(e))return ss(e)?fn(e):e.length;var t=fi(e);return t==k||t==N?e.size:Or(e).length},zn.snakeCase=Gs,zn.some=function(e,t,n){var r=$o(e)?Bt:aa;return n&&bi(e,t,n)&&(t=a),r(e,li(t,3))},zn.sortedIndex=function(e,t){return ia(e,t)},zn.sortedIndexBy=function(e,t,n){return oa(e,t,li(n,2))},zn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ia(e,t);if(r<n&&zo(e[r],t))return r}return-1},zn.sortedLastIndex=function(e,t){return ia(e,t,!0)},zn.sortedLastIndexBy=function(e,t,n){return oa(e,t,li(n,2),!0)},zn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ia(e,t,!0)-1;if(zo(e[n],t))return n}return-1},zn.startCase=Ks,zn.startsWith=function(e,t,n){return e=ys(e),n=null==n?0:sr(fs(n),0,e.length),t=ca(t),e.slice(n,n+t.length)==t},zn.subtract=Cl,zn.sum=function(e){return e&&e.length?Xt(e,rl):0},zn.sumBy=function(e,t){return e&&e.length?Xt(e,li(t,2)):0},zn.template=function(e,t,n){var r=zn.templateSettings;n&&bi(e,t,n)&&(t=a),e=ys(e),t=ws({},t,r,Ja);var i,o,s=ws({},t.imports,r.imports,Ja),l=Ds(s),c=en(s,l),u=0,d=t.interpolate||Se,p="__p += '",h=je((t.escape||Se).source+"|"+d.source+"|"+(d===ee?fe:Se).source+"|"+(t.evaluate||Se).source+"|$","g"),f="//# sourceURL="+(Re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++st+"]")+"\n";e.replace(h,(function(t,n,r,a,s,l){return r||(r=a),p+=e.slice(u,l).replace(Ce,sn),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),s&&(o=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),p+="';\n";var m=Re.call(t,"variable")&&t.variable;if(m){if(pe.test(m))throw new se("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(o?p.replace(H,""):p).replace(q,"$1").replace(G,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Js((function(){return Ae(l,f+"return "+p).apply(a,c)}));if(g.source=p,Xo(g))throw g;return g},zn.times=function(e,t){if((e=fs(e))<1||e>f)return[];var n=g,r=bn(e,g);t=li(t),e-=g;for(var a=Zt(r,t);++n<e;)t(n);return a},zn.toFinite=hs,zn.toInteger=fs,zn.toLength=ms,zn.toLower=function(e){return ys(e).toLowerCase()},zn.toNumber=gs,zn.toSafeInteger=function(e){return e?sr(fs(e),-9007199254740991,f):0===e?e:0},zn.toString=ys,zn.toUpper=function(e){return ys(e).toUpperCase()},zn.trim=function(e,t,n){if((e=ys(e))&&(n||t===a))return Jt(e);if(!e||!(t=ca(t)))return e;var r=mn(e),i=mn(t);return wa(r,nn(r,i),rn(r,i)+1).join("")},zn.trimEnd=function(e,t,n){if((e=ys(e))&&(n||t===a))return e.slice(0,gn(e)+1);if(!e||!(t=ca(t)))return e;var r=mn(e);return wa(r,0,rn(r,mn(t))+1).join("")},zn.trimStart=function(e,t,n){if((e=ys(e))&&(n||t===a))return e.replace(oe,"");if(!e||!(t=ca(t)))return e;var r=mn(e);return wa(r,nn(r,mn(t))).join("")},zn.truncate=function(e,t){var n=30,r="...";if(es(t)){var i="separator"in t?t.separator:i;n="length"in t?fs(t.length):n,r="omission"in t?ca(t.omission):r}var o=(e=ys(e)).length;if(ln(e)){var s=mn(e);o=s.length}if(n>=o)return e;var l=n-fn(r);if(l<1)return r;var c=s?wa(s,0,l).join(""):e.slice(0,l);if(i===a)return c+r;if(s&&(l+=c.length-l),is(i)){if(e.slice(l).search(i)){var u,d=c;for(i.global||(i=je(i.source,ys(me.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var p=u.index;c=c.slice(0,p===a?l:p)}}else if(e.indexOf(ca(i),l)!=l){var h=c.lastIndexOf(i);h>-1&&(c=c.slice(0,h))}return c+r},zn.unescape=function(e){return(e=ys(e))&&X.test(e)?e.replace(K,vn):e},zn.uniqueId=function(e){var t=++Oe;return ys(e)+t},zn.upperCase=Ys,zn.upperFirst=Xs,zn.each=yo,zn.eachRight=bo,zn.first=Hi,sl(zn,function(){var e={};return xr(zn,(function(t,n){Re.call(zn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),zn.VERSION="4.17.21",Pt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),Pt(["drop","take"],(function(e,t){$n.prototype[e]=function(n){n=n===a?1:Kt(fs(n),0);var r=this.__filtered__&&!t?new $n(this):this.clone();return r.__filtered__?r.__takeCount__=bn(n,r.__takeCount__):r.__views__.push({size:bn(n,g),type:e+(r.__dir__<0?"Right":"")}),r},$n.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Pt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;$n.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:li(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Pt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");$n.prototype[e]=function(){return this[n](1).value()[0]}})),Pt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");$n.prototype[e]=function(){return this.__filtered__?new $n(this):this[n](1)}})),$n.prototype.compact=function(){return this.filter(rl)},$n.prototype.find=function(e){return this.filter(e).head()},$n.prototype.findLast=function(e){return this.reverse().find(e)},$n.prototype.invokeMap=Xr((function(e,t){return"function"==typeof e?new $n(this):this.map((function(n){return Nr(n,e,t)}))})),$n.prototype.reject=function(e){return this.filter(Ro(li(e)))},$n.prototype.slice=function(e,t){e=fs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new $n(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==a&&(n=(t=fs(t))<0?n.dropRight(-t):n.take(t-e)),n)},$n.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},$n.prototype.toArray=function(){return this.take(g)},xr($n.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=zn[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(zn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof $n,c=s[0],u=l||$o(t),d=function(e){var t=i.apply(zn,Ot([e],s));return r&&p?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,h=!!this.__actions__.length,f=o&&!p,m=l&&!h;if(!o&&u){t=m?t:new $n(this);var g=e.apply(t,s);return g.__actions__.push({func:ho,args:[d],thisArg:a}),new Un(g,p)}return f&&m?e.apply(this,s):(g=this.thru(d),f?r?g.value()[0]:g.value():g)})})),Pt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ne[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var a=this.value();return t.apply($o(a)?a:[],e)}return this[n]((function(n){return t.apply($o(n)?n:[],e)}))}})),xr($n.prototype,(function(e,t){var n=zn[t];if(n){var r=n.name+"";Re.call(Dn,r)||(Dn[r]=[]),Dn[r].push({name:t,func:n})}})),Dn[za(a,2).name]=[{name:"wrapper",func:a}],$n.prototype.clone=function(){var e=new $n(this.__wrapped__);return e.__actions__=Pa(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Pa(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Pa(this.__views__),e},$n.prototype.reverse=function(){if(this.__filtered__){var e=new $n(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},$n.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=$o(e),r=t<0,a=n?e.length:0,i=function(e,t,n){var r=-1,a=n.length;for(;++r<a;){var i=n[r],o=i.size;switch(i.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=bn(t,e+o);break;case"takeRight":e=Kt(e,t-o)}}return{start:e,end:t}}(0,a,this.__views__),o=i.start,s=i.end,l=s-o,c=r?s:o-1,u=this.__iteratees__,d=u.length,p=0,h=bn(l,this.__takeCount__);if(!n||!r&&a==l&&h==l)return fa(e,this.__actions__);var f=[];e:for(;l--&&p<h;){for(var m=-1,g=e[c+=t];++m<d;){var v=u[m],y=v.iteratee,b=v.type,x=y(g);if(2==b)g=x;else if(!x){if(1==b)continue e;break e}}f[p++]=g}return f},zn.prototype.at=fo,zn.prototype.chain=function(){return po(this)},zn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===a&&(this.__values__=ps(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?a:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,n=this;n instanceof Wn;){var r=Fi(n);r.__index__=0,r.__values__=a,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof $n){var t=e;return this.__actions__.length&&(t=new $n(this)),(t=t.reverse()).__actions__.push({func:ho,args:[Qi],thisArg:a}),new Un(t,this.__chain__)}return this.thru(Qi)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return fa(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,Ze&&(zn.prototype[Ze]=function(){return this}),zn}();mt._=yn,(r=function(){return yn}.call(t,n,t,e))===a||(e.exports=r)}.call(this)},2123:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(a){return!1}}()?Object.assign:function(e,a){for(var i,o,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))n.call(i,c)&&(s[c]=i[c]);if(t){o=t(i);for(var u=0;u<o.length;u++)r.call(i,o[u])&&(s[o[u]]=i[o[u]])}}return s}},8123:(e,t,n)=>{var r=n(1141);e.exports=f,e.exports.parse=i,e.exports.compile=function(e,t){return l(i(e,t),t)},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=h;var a=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,s=0,l="",c=t&&t.delimiter||"/";null!=(n=a.exec(e));){var d=n[0],p=n[1],h=n.index;if(l+=e.slice(s,h),s=h+d.length,p)l+=p[1];else{var f=e[s],m=n[2],g=n[3],v=n[4],y=n[5],b=n[6],x=n[7];l&&(r.push(l),l="");var w=null!=m&&null!=f&&f!==m,S="+"===b||"*"===b,C="?"===b||"*"===b,A=m||c,k=v||y,T=m||("string"===typeof r[r.length-1]?r[r.length-1]:"");r.push({name:g||i++,prefix:m||"",delimiter:A,optional:C,repeat:S,partial:w,asterisk:!!x,pattern:k?u(k):x?".*":o(A,T)})}}return s<e.length&&(l+=e.substr(s)),l&&r.push(l),r}function o(e,t){return!t||t.indexOf(e)>-1?"[^"+c(e)+"]+?":c(t)+"|(?:(?!"+c(t)+")[^"+c(e)+"])+?"}function s(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function l(e,t){for(var n=new Array(e.length),a=0;a<e.length;a++)"object"===typeof e[a]&&(n[a]=new RegExp("^(?:"+e[a].pattern+")$",p(t)));return function(t,a){for(var i="",o=t||{},l=(a||{}).pretty?s:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!==typeof u){var d,p=o[u.name];if(null==p){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(p)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var h=0;h<p.length;h++){if(d=l(p[h]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");i+=(0===h?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(p),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');i+=u.prefix+d}}else i+=u}return i}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function d(e,t){return e.keys=t,e}function p(e){return e&&e.sensitive?"":"i"}function h(e,t,n){r(t)||(n=t||n,t=[]);for(var a=(n=n||{}).strict,i=!1!==n.end,o="",s=0;s<e.length;s++){var l=e[s];if("string"===typeof l)o+=c(l);else{var u=c(l.prefix),h="(?:"+l.pattern+")";t.push(l),l.repeat&&(h+="(?:"+u+h+")*"),o+=h=l.optional?l.partial?u+"("+h+")?":"(?:"+u+"("+h+"))?":u+"("+h+")"}}var f=c(n.delimiter||"/"),m=o.slice(-f.length)===f;return a||(o=(m?o.slice(0,-f.length):o)+"(?:"+f+"(?=$))?"),o+=i?"$":a&&m?"":"(?="+f+"|$)",d(new RegExp("^"+o,p(n)),t)}function f(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return d(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],a=0;a<e.length;a++)r.push(f(e[a],t,n).source);return d(new RegExp("(?:"+r.join("|")+")",p(n)),t)}(e,t,n):function(e,t,n){return h(i(e,n),t,n)}(e,t,n)}},1497:(e,t,n)=>{"use strict";var r=n(3218);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,i,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var 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:i,resetWarningCache:a};return n.PropTypes=n,n}},5173:(e,t,n)=>{e.exports=n(1497)()},3218:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6956:e=>{"use strict";function t(e){this._maxSize=e,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(e){return this._values[e]},t.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,a=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),l=new t(512),c=new t(512);function u(e){return s.get(e)||s.set(e,d(e).map((function(e){return e.replace(o,"$2")})))}function d(e){return e.match(n)||[""]}function p(e){return"string"===typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function h(e){return!p(e)&&(function(e){return e.match(a)&&!e.match(r)}(e)||function(e){return i.test(e)}(e))}e.exports={Cache:t,split:d,normalizePath:u,setter:function(e){var t=u(e);return l.get(e)||l.set(e,(function(e,n){for(var r=0,a=t.length,i=e;r<a-1;){var o=t[r];if("__proto__"===o||"constructor"===o||"prototype"===o)return e;i=i[t[r++]]}i[t[r]]=n}))},getter:function(e,t){var n=u(e);return c.get(e)||c.set(e,(function(e){for(var r=0,a=n.length;r<a;){if(null==e&&t)return;e=e[n[r++]]}return e}))},join:function(e){return e.reduce((function(e,t){return e+(p(t)||r.test(t)?"["+t+"]":(e?".":"")+t)}),"")},forEach:function(e,t,n){!function(e,t,n){var r,a,i,o,s=e.length;for(a=0;a<s;a++)(r=e[a])&&(h(r)&&(r='"'+r+'"'),i=!(o=p(r))&&/^\d+$/.test(r),t.call(n,r,o,i,a,e))}(Array.isArray(e)?e:d(e),t,n)}}},2730:(e,t,n)=>{"use strict";var r=n(5043),a=n(2123),i=n(8853);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."}if(!r)throw Error(o(227));var s=new Set,l={};function c(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var d=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h=Object.prototype.hasOwnProperty,f={},m={};function g(e,t,n,r,a,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function x(e,t,n,r){var a=v.hasOwnProperty(t)?v[t]:null;(null!==a?0===a.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,a,r)&&(n=null),r||null===a?function(e){return!!h.call(m,e)||!h.call(f,e)&&(p.test(e)?m[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!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(y,b);v[t]=new g(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(y,b);v[t]=new g(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(y,b);v[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=60103,C=60106,A=60107,k=60108,T=60114,j=60109,E=60110,P=60112,N=60113,D=60120,M=60115,_=60116,I=60121,R=60128,O=60129,L=60130,F=60131;if("function"===typeof Symbol&&Symbol.for){var B=Symbol.for;S=B("react.element"),C=B("react.portal"),A=B("react.fragment"),k=B("react.strict_mode"),T=B("react.profiler"),j=B("react.provider"),E=B("react.context"),P=B("react.forward_ref"),N=B("react.suspense"),D=B("react.suspense_list"),M=B("react.memo"),_=B("react.lazy"),I=B("react.block"),B("react.scope"),R=B("react.opaque.id"),O=B("react.debug_trace_mode"),L=B("react.offscreen"),F=B("react.legacy_hidden")}var z,V="function"===typeof Symbol&&Symbol.iterator;function W(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=V&&e[V]||e["@@iterator"])?e:null}function U(e){if(void 0===z)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var $=!1;function H(e,t){if(!e||$)return"";$=!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(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&"string"===typeof l.stack){for(var a=l.stack.split("\n"),i=r.stack.split("\n"),o=a.length-1,s=i.length-1;1<=o&&0<=s&&a[o]!==i[s];)s--;for(;1<=o&&0<=s;o--,s--)if(a[o]!==i[s]){if(1!==o||1!==s)do{if(o--,0>--s||a[o]!==i[s])return"\n"+a[o].replace(" at new "," at ")}while(1<=o&&0<=s);break}}}finally{$=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?U(e):""}function q(e){switch(e.tag){case 5:return U(e.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return e=H(e.type,!1);case 11:return e=H(e.type.render,!1);case 22:return e=H(e.type._render,!1);case 1:return e=H(e.type,!0);default:return""}}function G(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 A:return"Fragment";case C:return"Portal";case T:return"Profiler";case k:return"StrictMode";case N:return"Suspense";case D:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case j:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case M:return G(e.type);case I:return G(e._render);case _:t=e._payload,e=e._init;try{return G(e(t))}catch(n){}}return null}function K(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(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 a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,i.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 Z(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(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 Q(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 ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(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 te(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=K(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")?ae(e,t.type,n):t.hasOwnProperty("defaultValue")&&ae(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(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 ae(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function oe(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+K(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(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(Array.isArray(n)){if(!(1>=n.length))throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:K(n)}}function ce(e,t){var n=K(t.value),r=K(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 ue(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml",pe="http://www.w3.org/2000/svg";function he(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 fe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?he(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ge=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,a){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==pe||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ve(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 ye={animationIterationCount:!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},be=["Webkit","ms","Moz","O"];function xe(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function we(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=xe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(ye).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var Se=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 Ce(e,t){if(t){if(Se[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 Ae(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}}function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Te=null,je=null,Ee=null;function Pe(e){if(e=Qr(e)){if("function"!==typeof Te)throw Error(o(280));var t=e.stateNode;t&&(t=ta(t),Te(e.stateNode,e.type,t))}}function Ne(e){je?Ee?Ee.push(e):Ee=[e]:je=e}function De(){if(je){var e=je,t=Ee;if(Ee=je=null,Pe(e),t)for(e=0;e<t.length;e++)Pe(t[e])}}function Me(e,t){return e(t)}function _e(e,t,n,r,a){return e(t,n,r,a)}function Ie(){}var Re=Me,Oe=!1,Le=!1;function Fe(){null===je&&null===Ee||(Ie(),De())}function Be(e,t){var n=e.stateNode;if(null===n)return null;var r=ta(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(d)try{var Ve={};Object.defineProperty(Ve,"passive",{get:function(){ze=!0}}),window.addEventListener("test",Ve,Ve),window.removeEventListener("test",Ve,Ve)}catch(lc){ze=!1}function We(e,t,n,r,a,i,o,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Ue=!1,$e=null,He=!1,qe=null,Ge={onError:function(e){Ue=!0,$e=e}};function Ke(e,t,n,r,a,i,o,s,l){Ue=!1,$e=null,We.apply(Ge,arguments)}function Ye(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Xe(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 Ze(e){if(Ye(e)!==e)throw Error(o(188))}function Je(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ye(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(r=a.return)){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return Ze(a),e;if(i===r)return Ze(a),t;i=i.sibling}throw Error(o(188))}if(n.return!==r.return)n=a,r=i;else{for(var s=!1,l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s)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),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Qe(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,at=!1,it=[],ot=null,st=null,lt=null,ct=new Map,ut=new Map,dt=[],pt="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 ht(e,t,n,r,a){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:a,targetContainers:[r]}}function ft(e,t){switch(e){case"focusin":case"focusout":ot=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ut.delete(t.pointerId)}}function mt(e,t,n,r,a,i){return null===e||e.nativeEvent!==i?(e=ht(t,n,r,a,i),null!==t&&(null!==(t=Qr(t))&&tt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function gt(e){var t=Jr(e.target);if(null!==t){var n=Ye(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Xe(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function vt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Qr(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function yt(e,t,n){vt(e)&&n.delete(t)}function bt(){for(at=!1;0<it.length;){var e=it[0];if(null!==e.blockedOn){null!==(e=Qr(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&it.shift()}null!==ot&&vt(ot)&&(ot=null),null!==st&&vt(st)&&(st=null),null!==lt&&vt(lt)&&(lt=null),ct.forEach(yt),ut.forEach(yt)}function xt(e,t){e.blockedOn===t&&(e.blockedOn=null,at||(at=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,bt)))}function wt(e){function t(t){return xt(t,e)}if(0<it.length){xt(it[0],e);for(var n=1;n<it.length;n++){var r=it[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==ot&&xt(ot,e),null!==st&&xt(st,e),null!==lt&&xt(lt,e),ct.forEach(t),ut.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)gt(n),null===n.blockedOn&&dt.shift()}function St(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ct={animationend:St("Animation","AnimationEnd"),animationiteration:St("Animation","AnimationIteration"),animationstart:St("Animation","AnimationStart"),transitionend:St("Transition","TransitionEnd")},At={},kt={};function Tt(e){if(At[e])return At[e];if(!Ct[e])return e;var t,n=Ct[e];for(t in n)if(n.hasOwnProperty(t)&&t in kt)return At[e]=n[t];return e}d&&(kt=document.createElement("div").style,"AnimationEvent"in window||(delete Ct.animationend.animation,delete Ct.animationiteration.animation,delete Ct.animationstart.animation),"TransitionEvent"in window||delete Ct.transitionend.transition);var jt=Tt("animationend"),Et=Tt("animationiteration"),Pt=Tt("animationstart"),Nt=Tt("transitionend"),Dt=new Map,Mt=new Map,_t=["abort","abort",jt,"animationEnd",Et,"animationIteration",Pt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Nt,"transitionEnd","waiting","waiting"];function It(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],a=e[n+1];a="on"+(a[0].toUpperCase()+a.slice(1)),Mt.set(r,t),Dt.set(r,a),c(a,[r])}}(0,i.unstable_now)();var Rt=8;function Ot(e){if(0!==(1&e))return Rt=15,1;if(0!==(2&e))return Rt=14,2;if(0!==(4&e))return Rt=13,4;var t=24&e;return 0!==t?(Rt=12,t):0!==(32&e)?(Rt=11,32):0!==(t=192&e)?(Rt=10,t):0!==(256&e)?(Rt=9,256):0!==(t=3584&e)?(Rt=8,t):0!==(4096&e)?(Rt=7,4096):0!==(t=4186112&e)?(Rt=6,t):0!==(t=62914560&e)?(Rt=5,t):67108864&e?(Rt=4,67108864):0!==(134217728&e)?(Rt=3,134217728):0!==(t=805306368&e)?(Rt=2,t):0!==(1073741824&e)?(Rt=1,1073741824):(Rt=8,e)}function Lt(e,t){var n=e.pendingLanes;if(0===n)return Rt=0;var r=0,a=0,i=e.expiredLanes,o=e.suspendedLanes,s=e.pingedLanes;if(0!==i)r=i,a=Rt=15;else if(0!==(i=134217727&n)){var l=i&~o;0!==l?(r=Ot(l),a=Rt):0!==(s&=i)&&(r=Ot(s),a=Rt)}else 0!==(i=n&~o)?(r=Ot(i),a=Rt):0!==s&&(r=Ot(s),a=Rt);if(0===r)return 0;if(r=n&((0>(r=31-Ut(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&o)){if(Ot(t),a<=Rt)return t;Rt=a}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-Ut(t)),r|=e[n],t&=~a;return r}function Ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Bt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=zt(24&~t))?Bt(10,t):e;case 10:return 0===(e=zt(192&~t))?Bt(8,t):e;case 8:return 0===(e=zt(3584&~t))&&(0===(e=zt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=zt(805306368&~t))&&(t=268435456),t}throw Error(o(358,e))}function zt(e){return e&-e}function Vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ut(t)]=n}var Ut=Math.clz32?Math.clz32:function(e){return 0===e?32:31-($t(e)/Ht|0)|0},$t=Math.log,Ht=Math.LN2;var qt=i.unstable_UserBlockingPriority,Gt=i.unstable_runWithPriority,Kt=!0;function Yt(e,t,n,r){Oe||Ie();var a=Zt,i=Oe;Oe=!0;try{_e(a,e,t,n,r)}finally{(Oe=i)||Fe()}}function Xt(e,t,n,r){Gt(qt,Zt.bind(null,e,t,n,r))}function Zt(e,t,n,r){var a;if(Kt)if((a=0===(4&t))&&0<it.length&&-1<pt.indexOf(e))e=ht(null,e,t,n,r),it.push(e);else{var i=Jt(e,t,n,r);if(null===i)a&&ft(e,r);else{if(a){if(-1<pt.indexOf(e))return e=ht(i,e,t,n,r),void it.push(e);if(function(e,t,n,r,a){switch(t){case"focusin":return ot=mt(ot,e,t,n,r,a),!0;case"dragenter":return st=mt(st,e,t,n,r,a),!0;case"mouseover":return lt=mt(lt,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return ct.set(i,mt(ct.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,ut.set(i,mt(ut.get(i)||null,e,t,n,r,a)),!0}return!1}(i,e,t,n,r))return;ft(e,r)}Dr(e,t,r,null,n)}}}function Jt(e,t,n,r){var a=ke(r);if(null!==(a=Jr(a))){var i=Ye(a);if(null===i)a=null;else{var o=i.tag;if(13===o){if(null!==(a=Xe(i)))return a;a=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;a=null}else i!==a&&(a=null)}}return Dr(e,t,r,a,n),null}var Qt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,a="value"in Qt?Qt.value:Qt.textContent,i=a.length;for(e=0;e<r&&n[e]===a[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===a[i-t];t++);return tn=a.slice(e,1<t?1-t:void 0)}function rn(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 an(){return!0}function on(){return!1}function sn(e){function t(t,n,r,a,i){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(a):a[o]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?an:on,this.isPropagationStopped=on,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=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var ln,cn,un,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=sn(dn),hn=a({},dn,{view:0,detail:0}),fn=sn(hn),mn=a({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,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!==un&&(un&&"mousemove"===e.type?(ln=e.screenX-un.screenX,cn=e.screenY-un.screenY):cn=ln=0,un=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),gn=sn(mn),vn=sn(a({},mn,{dataTransfer:0})),yn=sn(a({},hn,{relatedTarget:0})),bn=sn(a({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),xn=sn(a({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),wn=sn(a({},dn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cn={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"},An={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=An[e])&&!!t[e]}function Tn(){return kn}var jn=sn(a({},hn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),En=sn(a({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=sn(a({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),Nn=sn(a({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Dn=sn(a({},mn,{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})),Mn=[9,13,27,32],_n=d&&"CompositionEvent"in window,In=null;d&&"documentMode"in document&&(In=document.documentMode);var Rn=d&&"TextEvent"in window&&!In,On=d&&(!_n||In&&8<In&&11>=In),Ln=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!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 $n(e,t,n,r){Ne(r),0<(t=_r(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Hn=null,qn=null;function Gn(e){kr(e,0)}function Kn(e){if(Z(ea(e)))return e}function Yn(e,t){if("change"===e)return t}var Xn=!1;if(d){var Zn;if(d){var Jn="oninput"in document;if(!Jn){var Qn=document.createElement("div");Qn.setAttribute("oninput","return;"),Jn="function"===typeof Qn.oninput}Zn=Jn}else Zn=!1;Xn=Zn&&(!document.documentMode||9<document.documentMode)}function er(){Hn&&(Hn.detachEvent("onpropertychange",tr),qn=Hn=null)}function tr(e){if("value"===e.propertyName&&Kn(qn)){var t=[];if($n(t,qn,e,ke(e)),e=Gn,Oe)e(t);else{Oe=!0;try{Me(e,t)}finally{Oe=!1,Fe()}}}}function nr(e,t,n){"focusin"===e?(er(),qn=n,(Hn=t).attachEvent("onpropertychange",tr)):"focusout"===e&&er()}function rr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(qn)}function ar(e,t){if("click"===e)return Kn(t)}function ir(e,t){if("input"===e||"change"===e)return Kn(t)}var or="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},sr=Object.prototype.hasOwnProperty;function lr(e,t){if(or(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++)if(!sr.call(t,n[r])||!or(e[n[r]],t[n[r]]))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 pr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=J((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)}var fr=d&&"documentMode"in document&&11>=document.documentMode,mr=null,gr=null,vr=null,yr=!1;function br(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==mr||mr!==J(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},vr&&lr(vr,r)||(vr=r,0<(r=_r(gr,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}It("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),It("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),It(_t,2);for(var xr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),wr=0;wr<xr.length;wr++)Mt.set(xr[wr],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Cr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sr));function Ar(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,i,s,l,c){if(Ke.apply(this,arguments),Ue){if(!Ue)throw Error(o(198));var u=$e;Ue=!1,$e=null,He||(He=!0,qe=u)}}(r,t,void 0,e),e.currentTarget=null}function kr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&a.isPropagationStopped())break e;Ar(a,s,c),i=l}else for(o=0;o<r.length;o++){if(l=(s=r[o]).instance,c=s.currentTarget,s=s.listener,l!==i&&a.isPropagationStopped())break e;Ar(a,s,c),i=l}}}if(He)throw e=qe,He=!1,qe=null,e}function Tr(e,t){var n=na(t),r=e+"__bubble";n.has(r)||(Nr(t,e,2,!1),n.add(r))}var jr="_reactListening"+Math.random().toString(36).slice(2);function Er(e){e[jr]||(e[jr]=!0,s.forEach((function(t){Cr.has(t)||Pr(t,!1,e,null),Pr(t,!0,e,null)})))}function Pr(e,t,n,r){var a=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&Cr.has(e)){if("scroll"!==e)return;a|=2,i=r}var o=na(i),s=e+"__"+(t?"capture":"bubble");o.has(s)||(t&&(a|=4),Nr(i,e,a,t),o.add(s))}function Nr(e,t,n,r){var a=Mt.get(t);switch(void 0===a?2:a){case 0:a=Yt;break;case 1:a=Xt;break;default:a=Zt}n=a.bind(null,t,n,e),a=void 0,!ze||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Dr(e,t,n,r,a){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===a||8===s.nodeType&&s.parentNode===a)break;if(4===o)for(o=r.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===a||8===l.nodeType&&l.parentNode===a))return;o=o.return}for(;null!==s;){if(null===(o=Jr(s)))return;if(5===(l=o.tag)||6===l){r=i=o;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Le)return e(t,n);Le=!0;try{return Re(e,t,n)}finally{Le=!1,Fe()}}((function(){var r=i,a=ke(n),o=[];e:{var s=Dt.get(e);if(void 0!==s){var l=pn,c=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":l=jn;break;case"focusin":c="focus",l=yn;break;case"focusout":c="blur",l=yn;break;case"beforeblur":case"afterblur":l=yn;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":l=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Pn;break;case jt:case Et:case Pt:l=bn;break;case Nt:l=Nn;break;case"scroll":l=fn;break;case"wheel":l=Dn;break;case"copy":case"cut":case"paste":l=xn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=En}var u=0!==(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var h,f=r;null!==f;){var m=(h=f).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==p&&(null!=(m=Be(f,p))&&u.push(Mr(f,m,h)))),d)break;f=f.return}0<u.length&&(s=new l(s,c,null,n,a),o.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(c=n.relatedTarget||n.fromElement)||!Jr(c)&&!c[Xr])&&(l||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?Jr(c):null)&&(c!==(d=Ye(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=gn,m="onMouseLeave",p="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(u=En,m="onPointerLeave",p="onPointerEnter",f="pointer"),d=null==l?s:ea(l),h=null==c?s:ea(c),(s=new u(m,f+"leave",l,n,a)).target=d,s.relatedTarget=h,m=null,Jr(a)===r&&((u=new u(p,f+"enter",c,n,a)).target=h,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(p=c,f=0,h=u=l;h;h=Ir(h))f++;for(h=0,m=p;m;m=Ir(m))h++;for(;0<f-h;)u=Ir(u),f--;for(;0<h-f;)p=Ir(p),h--;for(;f--;){if(u===p||null!==p&&u===p.alternate)break e;u=Ir(u),p=Ir(p)}u=null}else u=null;null!==l&&Rr(o,s,l,u,!1),null!==c&&null!==d&&Rr(o,d,c,u,!0)}if("select"===(l=(s=r?ea(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Yn;else if(Un(s))if(Xn)g=ir;else{g=rr;var v=nr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ar);switch(g&&(g=g(e,r))?$n(o,g,n,a):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ae(s,"number",s.value)),v=r?ea(r):window,e){case"focusin":(Un(v)||"true"===v.contentEditable)&&(mr=v,gr=r,vr=null);break;case"focusout":vr=gr=mr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,br(o,n,a);break;case"selectionchange":if(fr)break;case"keydown":case"keyup":br(o,n,a)}var y;if(_n)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 Vn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(On&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Vn&&(y=nn()):(en="value"in(Qt=a)?Qt.value:Qt.textContent,Vn=!0)),0<(v=_r(r,b)).length&&(b=new wn(b,e,null,n,a),o.push({event:b,listeners:v}),y?b.data=y:null!==(y=zn(n))&&(b.data=y))),(y=Rn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Fn=!0,Ln);case"textInput":return(e=t.data)===Ln&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!_n&&Bn(e,t)?(e=nn(),tn=en=Qt=null,Vn=!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 On&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=_r(r,"onBeforeInput")).length&&(a=new wn("onBeforeInput","beforeinput",null,n,a),o.push({event:a,listeners:r}),a.data=y))}kr(o,t)}))}function Mr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function _r(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,i=a.stateNode;5===a.tag&&null!==i&&(a=i,null!=(i=Be(e,n))&&r.unshift(Mr(e,i,a)),null!=(i=Be(e,t))&&r.push(Mr(e,i,a))),e=e.return}return r}function Ir(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Rr(e,t,n,r,a){for(var i=t._reactName,o=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,a?null!=(l=Be(n,i))&&o.unshift(Mr(n,l,s)):a||null!=(l=Be(n,i))&&o.push(Mr(n,l,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}function Or(){}var Lr=null,Fr=null;function Br(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function zr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Vr="function"===typeof setTimeout?setTimeout:void 0,Wr="function"===typeof clearTimeout?clearTimeout:void 0;function Ur(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function $r(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Hr(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 qr=0;var Gr=Math.random().toString(36).slice(2),Kr="__reactFiber$"+Gr,Yr="__reactProps$"+Gr,Xr="__reactContainer$"+Gr,Zr="__reactEvents$"+Gr;function Jr(e){var t=e[Kr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xr]||n[Kr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Hr(e);null!==e;){if(n=e[Kr])return n;e=Hr(e)}return t}n=(e=n).parentNode}return null}function Qr(e){return!(e=e[Kr]||e[Xr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ea(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function ta(e){return e[Yr]||null}function na(e){var t=e[Zr];return void 0===t&&(t=e[Zr]=new Set),t}var ra=[],aa=-1;function ia(e){return{current:e}}function oa(e){0>aa||(e.current=ra[aa],ra[aa]=null,aa--)}function sa(e,t){aa++,ra[aa]=e.current,e.current=t}var la={},ca=ia(la),ua=ia(!1),da=la;function pa(e,t){var n=e.type.contextTypes;if(!n)return la;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,i={};for(a in n)i[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ha(e){return null!==(e=e.childContextTypes)&&void 0!==e}function fa(){oa(ua),oa(ca)}function ma(e,t,n){if(ca.current!==la)throw Error(o(168));sa(ca,t),sa(ua,n)}function ga(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(o(108,G(t)||"Unknown",i));return a({},n,r)}function va(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||la,da=ca.current,sa(ca,e),sa(ua,ua.current),!0}function ya(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=ga(e,t,da),r.__reactInternalMemoizedMergedChildContext=e,oa(ua),oa(ca),sa(ca,e)):oa(ua),sa(ua,n)}var ba=null,xa=null,wa=i.unstable_runWithPriority,Sa=i.unstable_scheduleCallback,Ca=i.unstable_cancelCallback,Aa=i.unstable_shouldYield,ka=i.unstable_requestPaint,Ta=i.unstable_now,ja=i.unstable_getCurrentPriorityLevel,Ea=i.unstable_ImmediatePriority,Pa=i.unstable_UserBlockingPriority,Na=i.unstable_NormalPriority,Da=i.unstable_LowPriority,Ma=i.unstable_IdlePriority,_a={},Ia=void 0!==ka?ka:function(){},Ra=null,Oa=null,La=!1,Fa=Ta(),Ba=1e4>Fa?Ta:function(){return Ta()-Fa};function za(){switch(ja()){case Ea:return 99;case Pa:return 98;case Na:return 97;case Da:return 96;case Ma:return 95;default:throw Error(o(332))}}function Va(e){switch(e){case 99:return Ea;case 98:return Pa;case 97:return Na;case 96:return Da;case 95:return Ma;default:throw Error(o(332))}}function Wa(e,t){return e=Va(e),wa(e,t)}function Ua(e,t,n){return e=Va(e),Sa(e,t,n)}function $a(){if(null!==Oa){var e=Oa;Oa=null,Ca(e)}Ha()}function Ha(){if(!La&&null!==Ra){La=!0;var e=0;try{var t=Ra;Wa(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ra=null}catch(n){throw null!==Ra&&(Ra=Ra.slice(e+1)),Sa(Ea,$a),n}finally{La=!1}}}var qa=w.ReactCurrentBatchConfig;function Ga(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 Ka=ia(null),Ya=null,Xa=null,Za=null;function Ja(){Za=Xa=Ya=null}function Qa(e){var t=Ka.current;oa(Ka),e.type._context._currentValue=t}function ei(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ti(e,t){Ya=e,Za=Xa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(_o=!0),e.firstContext=null)}function ni(e,t){if(Za!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(Za=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Xa){if(null===Ya)throw Error(o(308));Xa=t,Ya.dependencies={lanes:0,firstContext:t,responders:null}}else Xa=Xa.next=t;return e._currentValue}var ri=!1;function ai(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ii(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 oi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function si(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function li(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?a=i=o:i=i.next=o,n=n.next}while(null!==n);null===i?a=i=t:i=i.next=t}else a=i=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ci(e,t,n,r){var i=e.updateQueue;ri=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var c=l,u=c.next;c.next=null,null===s?o=u:s.next=u,s=c;var d=e.alternate;if(null!==d){var p=(d=d.updateQueue).lastBaseUpdate;p!==s&&(null===p?d.firstBaseUpdate=u:p.next=u,d.lastBaseUpdate=c)}}if(null!==o){for(p=i.baseState,s=0,d=u=c=null;;){l=o.lane;var h=o.eventTime;if((r&l)===l){null!==d&&(d=d.next={eventTime:h,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var f=e,m=o;switch(l=t,h=n,m.tag){case 1:if("function"===typeof(f=m.payload)){p=f.call(h,p,l);break e}p=f;break e;case 3:f.flags=-4097&f.flags|64;case 0:if(null===(l="function"===typeof(f=m.payload)?f.call(h,p,l):f)||void 0===l)break e;p=a({},p,l);break e;case 2:ri=!0}}null!==o.callback&&(e.flags|=32,null===(l=i.effects)?i.effects=[o]:l.push(o))}else h={eventTime:h,lane:l,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===d?(u=d=h,c=p):d=d.next=h,s|=l;if(null===(o=o.next)){if(null===(l=i.shared.pending))break;o=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}null===d&&(c=p),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,Fs|=s,e.lanes=s,e.memoizedState=p}}function ui(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!==typeof a)throw Error(o(191,a));a.call(r)}}}var di=(new r.Component).refs;function pi(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 hi={isMounted:function(e){return!!(e=e._reactInternals)&&Ye(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=cl(),a=ul(e),i=oi(r,a);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),si(e,i),dl(e,a,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=cl(),a=ul(e),i=oi(r,a);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),si(e,i),dl(e,a,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=cl(),r=ul(e),a=oi(n,r);a.tag=2,void 0!==t&&null!==t&&(a.callback=t),si(e,a),dl(e,r,n)}};function fi(e,t,n,r,a,i,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,o):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(a,i))}function mi(e,t,n){var r=!1,a=la,i=t.contextType;return"object"===typeof i&&null!==i?i=ni(i):(a=ha(t)?da:ca.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?pa(e,a):la),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=hi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function gi(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&&hi.enqueueReplaceState(t,t.state,null)}function vi(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=di,ai(e);var i=t.contextType;"object"===typeof i&&null!==i?a.context=ni(i):(i=ha(t)?da:ca.current,a.context=pa(e,i)),ci(e,n,a,r),a.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(pi(e,t,i,n),a.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof a.getSnapshotBeforeUpdate||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||(t=a.state,"function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&hi.enqueueReplaceState(a,a.state,null),ci(e,n,a,r),a.state=e.memoizedState),"function"===typeof a.componentDidMount&&(e.flags|=4)}var yi=Array.isArray;function bi(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 a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=r.refs;t===di&&(t=r.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 xi(e,t){if("textarea"!==e.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function wi(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}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 a(e,t){return(e=Ul(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Gl(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=a(t,n.props)).ref=bi(e,t,n),r.return=e,r):((r=$l(n.type,n.key,n.props,null,e.mode,r)).ref=bi(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=Kl(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Hl(n,e.mode,r,i)).return=e,t):((t=a(t,n)).return=e,t)}function p(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Gl(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case S:return(n=$l(t.type,t.key,t.props,null,e.mode,n)).ref=bi(e,null,t),n.return=e,n;case C:return(t=Kl(t,e.mode,n)).return=e,t}if(yi(t)||W(t))return(t=Hl(t,e.mode,n,null)).return=e,t;xi(e,t)}return null}function h(e,t,n,r){var a=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==a?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case S:return n.key===a?n.type===A?d(e,t,n.props.children,r,a):c(e,t,n,r):null;case C:return n.key===a?u(e,t,n,r):null}if(yi(n)||W(n))return null!==a?null:d(e,t,n,r,null);xi(e,n)}return null}function f(e,t,n,r,a){if("string"===typeof r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,a);if("object"===typeof r&&null!==r){switch(r.$$typeof){case S:return e=e.get(null===r.key?n:r.key)||null,r.type===A?d(t,e,r.props.children,a,r.key):c(t,e,r,a);case C:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a)}if(yi(r)||W(r))return d(t,e=e.get(n)||null,r,a,null);xi(t,r)}return null}function m(a,o,s,l){for(var c=null,u=null,d=o,m=o=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=h(a,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(a,d),o=i(v,o,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(a,d),c;if(null===d){for(;m<s.length;m++)null!==(d=p(a,s[m],l))&&(o=i(d,o,m),null===u?c=d:u.sibling=d,u=d);return c}for(d=r(a,d);m<s.length;m++)null!==(g=f(d,a,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),o=i(g,o,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(a,e)})),c}function g(a,s,l,c){var u=W(l);if("function"!==typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var d=u=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=h(a,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(a,m),s=i(b,s,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return n(a,m),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=p(a,y.value,c))&&(s=i(y,s,g),null===d?u=y:d.sibling=y,d=y);return u}for(m=r(a,m);!y.done;g++,y=l.next())null!==(y=f(m,a,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=i(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(a,e)})),u}return function(e,r,i,l){var c="object"===typeof i&&null!==i&&i.type===A&&null===i.key;c&&(i=i.props.children);var u="object"===typeof i&&null!==i;if(u)switch(i.$$typeof){case S:e:{for(u=i.key,c=r;null!==c;){if(c.key===u){if(7===c.tag){if(i.type===A){n(e,c.sibling),(r=a(c,i.props.children)).return=e,e=r;break e}}else if(c.elementType===i.type){n(e,c.sibling),(r=a(c,i.props)).ref=bi(e,c,i),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}i.type===A?((r=Hl(i.props.children,e.mode,l,i.key)).return=e,e=r):((l=$l(i.type,i.key,i.props,null,e.mode,l)).ref=bi(e,r,i),l.return=e,e=l)}return s(e);case C:e:{for(c=i.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=a(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Kl(i,e.mode,l)).return=e,e=r}return s(e)}if("string"===typeof i||"number"===typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=a(r,i)).return=e,e=r):(n(e,r),(r=Gl(i,e.mode,l)).return=e,e=r),s(e);if(yi(i))return m(e,r,i,l);if(W(i))return g(e,r,i,l);if(u&&xi(e,i),"undefined"===typeof i&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(o(152,G(e.type)||"Component"))}return n(e,r)}}var Si=wi(!0),Ci=wi(!1),Ai={},ki=ia(Ai),Ti=ia(Ai),ji=ia(Ai);function Ei(e){if(e===Ai)throw Error(o(174));return e}function Pi(e,t){switch(sa(ji,t),sa(Ti,e),sa(ki,Ai),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fe(null,"");break;default:t=fe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}oa(ki),sa(ki,t)}function Ni(){oa(ki),oa(Ti),oa(ji)}function Di(e){Ei(ji.current);var t=Ei(ki.current),n=fe(t,e.type);t!==n&&(sa(Ti,e),sa(ki,n))}function Mi(e){Ti.current===e&&(oa(ki),oa(Ti))}var _i=ia(0);function Ii(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!==(64&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 Ri=null,Oi=null,Li=!1;function Fi(e,t){var n=Vl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Bi(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,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function zi(e){if(Li){var t=Oi;if(t){var n=t;if(!Bi(e,t)){if(!(t=$r(n.nextSibling))||!Bi(e,t))return e.flags=-1025&e.flags|2,Li=!1,void(Ri=e);Fi(Ri,n)}Ri=e,Oi=$r(t.firstChild)}else e.flags=-1025&e.flags|2,Li=!1,Ri=e}}function Vi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ri=e}function Wi(e){if(e!==Ri)return!1;if(!Li)return Vi(e),Li=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!zr(t,e.memoizedProps))for(t=Oi;t;)Fi(e,t),t=$r(t.nextSibling);if(Vi(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){Oi=$r(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Oi=null}}else Oi=Ri?$r(e.stateNode.nextSibling):null;return!0}function Ui(){Oi=Ri=null,Li=!1}var $i=[];function Hi(){for(var e=0;e<$i.length;e++)$i[e]._workInProgressVersionPrimary=null;$i.length=0}var qi=w.ReactCurrentDispatcher,Gi=w.ReactCurrentBatchConfig,Ki=0,Yi=null,Xi=null,Zi=null,Ji=!1,Qi=!1;function eo(){throw Error(o(321))}function to(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!or(e[n],t[n]))return!1;return!0}function no(e,t,n,r,a,i){if(Ki=i,Yi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,qi.current=null===e||null===e.memoizedState?Po:No,e=n(r,a),Qi){i=0;do{if(Qi=!1,!(25>i))throw Error(o(301));i+=1,Zi=Xi=null,t.updateQueue=null,qi.current=Do,e=n(r,a)}while(Qi)}if(qi.current=Eo,t=null!==Xi&&null!==Xi.next,Ki=0,Zi=Xi=Yi=null,Ji=!1,t)throw Error(o(300));return e}function ro(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Zi?Yi.memoizedState=Zi=e:Zi=Zi.next=e,Zi}function ao(){if(null===Xi){var e=Yi.alternate;e=null!==e?e.memoizedState:null}else e=Xi.next;var t=null===Zi?Yi.memoizedState:Zi.next;if(null!==t)Zi=t,Xi=e;else{if(null===e)throw Error(o(310));e={memoizedState:(Xi=e).memoizedState,baseState:Xi.baseState,baseQueue:Xi.baseQueue,queue:Xi.queue,next:null},null===Zi?Yi.memoizedState=Zi=e:Zi=Zi.next=e}return Zi}function io(e,t){return"function"===typeof t?t(e):t}function oo(e){var t=ao(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=Xi,a=r.baseQueue,i=n.pending;if(null!==i){if(null!==a){var s=a.next;a.next=i.next,i.next=s}r.baseQueue=a=i,n.pending=null}if(null!==a){a=a.next,r=r.baseState;var l=s=i=null,c=a;do{var u=c.lane;if((Ki&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=d,i=r):l=l.next=d,Yi.lanes|=u,Fs|=u}c=c.next}while(null!==c&&c!==a);null===l?i=r:l.next=s,or(r,t.memoizedState)||(_o=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function so(e){var t=ao(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(null!==a){n.pending=null;var s=a=a.next;do{i=e(i,s.action),s=s.next}while(s!==a);or(i,t.memoizedState)||(_o=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function lo(e,t,n){var r=t._getVersion;r=r(t._source);var a=t._workInProgressVersionPrimary;if(null!==a?e=a===r:(e=e.mutableReadLanes,(e=(Ki&e)===e)&&(t._workInProgressVersionPrimary=r,$i.push(t))),e)return n(t._source);throw $i.push(t),Error(o(350))}function co(e,t,n,r){var a=Ns;if(null===a)throw Error(o(349));var i=t._getVersion,s=i(t._source),l=qi.current,c=l.useState((function(){return lo(a,t,n)})),u=c[1],d=c[0];c=Zi;var p=e.memoizedState,h=p.refs,f=h.getSnapshot,m=p.source;p=p.subscribe;var g=Yi;return e.memoizedState={refs:h,source:t,subscribe:r},l.useEffect((function(){h.getSnapshot=n,h.setSnapshot=u;var e=i(t._source);if(!or(s,e)){e=n(t._source),or(d,e)||(u(e),e=ul(g),a.mutableReadLanes|=e&a.pendingLanes),e=a.mutableReadLanes,a.entangledLanes|=e;for(var r=a.entanglements,o=e;0<o;){var l=31-Ut(o),c=1<<l;r[l]|=e,o&=~c}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=h.getSnapshot,n=h.setSnapshot;try{n(e(t._source));var r=ul(g);a.mutableReadLanes|=r&a.pendingLanes}catch(i){n((function(){throw i}))}}))}),[t,r]),or(f,n)&&or(m,t)&&or(p,r)||((e={pending:null,dispatch:null,lastRenderedReducer:io,lastRenderedState:d}).dispatch=u=jo.bind(null,Yi,e),c.queue=e,c.baseQueue=null,d=lo(a,t,n),c.memoizedState=c.baseState=d),d}function uo(e,t,n){return co(ao(),e,t,n)}function po(e){var t=ro();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:io,lastRenderedState:e}).dispatch=jo.bind(null,Yi,e),[t.memoizedState,e]}function ho(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Yi.updateQueue)?(t={lastEffect:null},Yi.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 fo(e){return e={current:e},ro().memoizedState=e}function mo(){return ao().memoizedState}function go(e,t,n,r){var a=ro();Yi.flags|=e,a.memoizedState=ho(1|t,n,void 0,void 0===r?null:r)}function vo(e,t,n,r){var a=ao();r=void 0===r?null:r;var i=void 0;if(null!==Xi){var o=Xi.memoizedState;if(i=o.destroy,null!==r&&to(r,o.deps))return void ho(t,n,i,r)}Yi.flags|=e,a.memoizedState=ho(1|t,n,i,r)}function yo(e,t){return go(516,4,e,t)}function bo(e,t){return vo(516,4,e,t)}function xo(e,t){return vo(4,2,e,t)}function wo(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 So(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,vo(4,2,wo.bind(null,t,e),n)}function Co(){}function Ao(e,t){var n=ao();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&to(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ko(e,t){var n=ao();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&to(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function To(e,t){var n=za();Wa(98>n?98:n,(function(){e(!0)})),Wa(97<n?97:n,(function(){var n=Gi.transition;Gi.transition=1;try{e(!1),t()}finally{Gi.transition=n}}))}function jo(e,t,n){var r=cl(),a=ul(e),i={lane:a,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),t.pending=i,o=e.alternate,e===Yi||null!==o&&o===Yi)Qi=Ji=!0;else{if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=o(s,n);if(i.eagerReducer=o,i.eagerState=l,or(l,s))return}catch(c){}dl(e,a,r)}}var Eo={readContext:ni,useCallback:eo,useContext:eo,useEffect:eo,useImperativeHandle:eo,useLayoutEffect:eo,useMemo:eo,useReducer:eo,useRef:eo,useState:eo,useDebugValue:eo,useDeferredValue:eo,useTransition:eo,useMutableSource:eo,useOpaqueIdentifier:eo,unstable_isNewReconciler:!1},Po={readContext:ni,useCallback:function(e,t){return ro().memoizedState=[e,void 0===t?null:t],e},useContext:ni,useEffect:yo,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,go(4,2,wo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return go(4,2,e,t)},useMemo:function(e,t){var n=ro();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ro();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=jo.bind(null,Yi,e),[r.memoizedState,e]},useRef:fo,useState:po,useDebugValue:Co,useDeferredValue:function(e){var t=po(e),n=t[0],r=t[1];return yo((function(){var t=Gi.transition;Gi.transition=1;try{r(e)}finally{Gi.transition=t}}),[e]),n},useTransition:function(){var e=po(!1),t=e[0];return fo(e=To.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ro();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},co(r,e,t,n)},useOpaqueIdentifier:function(){if(Li){var e=!1,t=function(e){return{$$typeof:R,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(qr++).toString(36))),Error(o(355))})),n=po(t)[1];return 0===(2&Yi.mode)&&(Yi.flags|=516,ho(5,(function(){n("r:"+(qr++).toString(36))}),void 0,null)),t}return po(t="r:"+(qr++).toString(36)),t},unstable_isNewReconciler:!1},No={readContext:ni,useCallback:Ao,useContext:ni,useEffect:bo,useImperativeHandle:So,useLayoutEffect:xo,useMemo:ko,useReducer:oo,useRef:mo,useState:function(){return oo(io)},useDebugValue:Co,useDeferredValue:function(e){var t=oo(io),n=t[0],r=t[1];return bo((function(){var t=Gi.transition;Gi.transition=1;try{r(e)}finally{Gi.transition=t}}),[e]),n},useTransition:function(){var e=oo(io)[0];return[mo().current,e]},useMutableSource:uo,useOpaqueIdentifier:function(){return oo(io)[0]},unstable_isNewReconciler:!1},Do={readContext:ni,useCallback:Ao,useContext:ni,useEffect:bo,useImperativeHandle:So,useLayoutEffect:xo,useMemo:ko,useReducer:so,useRef:mo,useState:function(){return so(io)},useDebugValue:Co,useDeferredValue:function(e){var t=so(io),n=t[0],r=t[1];return bo((function(){var t=Gi.transition;Gi.transition=1;try{r(e)}finally{Gi.transition=t}}),[e]),n},useTransition:function(){var e=so(io)[0];return[mo().current,e]},useMutableSource:uo,useOpaqueIdentifier:function(){return so(io)[0]},unstable_isNewReconciler:!1},Mo=w.ReactCurrentOwner,_o=!1;function Io(e,t,n,r){t.child=null===e?Ci(t,null,n,r):Si(t,e.child,n,r)}function Ro(e,t,n,r,a){n=n.render;var i=t.ref;return ti(t,a),r=no(e,t,n,r,i,a),null===e||_o?(t.flags|=1,Io(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,ns(e,t,a))}function Oo(e,t,n,r,a,i){if(null===e){var o=n.type;return"function"!==typeof o||Wl(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=$l(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Lo(e,t,o,r,a,i))}return o=e.child,0===(a&i)&&(a=o.memoizedProps,(n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)?ns(e,t,i):(t.flags|=1,(e=Ul(o,r)).ref=t.ref,e.return=t,t.child=e)}function Lo(e,t,n,r,a,i){if(null!==e&&lr(e.memoizedProps,r)&&e.ref===t.ref){if(_o=!1,0===(i&a))return t.lanes=e.lanes,ns(e,t,i);0!==(16384&e.flags)&&(_o=!0)}return zo(e,t,n,r,i)}function Fo(e,t,n){var r=t.pendingProps,a=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},bl(t,n);else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},bl(t,e),null;t.memoizedState={baseLanes:0},bl(t,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,bl(t,r);return Io(e,t,a,n),t.child}function Bo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function zo(e,t,n,r,a){var i=ha(n)?da:ca.current;return i=pa(t,i),ti(t,a),n=no(e,t,n,r,i,a),null===e||_o?(t.flags|=1,Io(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,ns(e,t,a))}function Vo(e,t,n,r,a){if(ha(n)){var i=!0;va(t)}else i=!1;if(ti(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),mi(t,n,r),vi(t,n,r,a),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,c=n.contextType;"object"===typeof c&&null!==c?c=ni(c):c=pa(t,c=ha(n)?da:ca.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof o.getSnapshotBeforeUpdate;d||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==r||l!==c)&&gi(t,o,r,c),ri=!1;var p=t.memoizedState;o.state=p,ci(t,r,o,a),l=t.memoizedState,s!==r||p!==l||ua.current||ri?("function"===typeof u&&(pi(t,n,u,r),l=t.memoizedState),(s=ri||fi(t,n,s,r,p,l,c))?(d||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.flags|=4)):("function"===typeof o.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=c,r=s):("function"===typeof o.componentDidMount&&(t.flags|=4),r=!1)}else{o=t.stateNode,ii(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Ga(t.type,s),o.props=c,d=t.pendingProps,p=o.context,"object"===typeof(l=n.contextType)&&null!==l?l=ni(l):l=pa(t,l=ha(n)?da:ca.current);var h=n.getDerivedStateFromProps;(u="function"===typeof h||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==d||p!==l)&&gi(t,o,r,l),ri=!1,p=t.memoizedState,o.state=p,ci(t,r,o,a);var f=t.memoizedState;s!==d||p!==f||ua.current||ri?("function"===typeof h&&(pi(t,n,h,r),f=t.memoizedState),(c=ri||fi(t,n,c,r,p,f,l))?(u||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(r,f,l),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,f,l)),"function"===typeof o.componentDidUpdate&&(t.flags|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=f),o.props=r,o.state=f,o.context=l,r=c):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),r=!1)}return Wo(e,t,n,r,i,a)}function Wo(e,t,n,r,a,i){Bo(e,t);var o=0!==(64&t.flags);if(!r&&!o)return a&&ya(t,n,!1),ns(e,t,i);r=t.stateNode,Mo.current=t;var s=o&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=Si(t,e.child,null,i),t.child=Si(t,null,s,i)):Io(e,t,s,i),t.memoizedState=r.state,a&&ya(t,n,!0),t.child}function Uo(e){var t=e.stateNode;t.pendingContext?ma(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ma(0,t.context,!1),Pi(e,t.containerInfo)}var $o,Ho,qo,Go,Ko={dehydrated:null,retryLane:0};function Yo(e,t,n){var r,a=t.pendingProps,i=_i.current,o=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&i)),r?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===a.fallback||!0===a.unstable_avoidThisFallback||(i|=1),sa(_i,1&i),null===e?(void 0!==a.fallback&&zi(t),e=a.children,i=a.fallback,o?(e=Xo(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ko,e):"number"===typeof a.unstable_expectedLoadTime?(e=Xo(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ko,t.lanes=33554432,e):((n=ql({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,o?(a=Jo(e,t,a.children,a.fallback,n),o=t.child,i=e.child.memoizedState,o.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Ko,a):(n=Zo(e,t,a.children,n),t.memoizedState=null,n))}function Xo(e,t,n,r){var a=e.mode,i=e.child;return t={mode:"hidden",children:t},0===(2&a)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=ql(t,a,0,null),n=Hl(n,a,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function Zo(e,t,n,r){var a=e.child;return e=a.sibling,n=Ul(a,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Jo(e,t,n,r,a){var i=t.mode,o=e.child;e=o.sibling;var s={mode:"hidden",children:n};return 0===(2&i)&&t.child!==o?((n=t.child).childLanes=0,n.pendingProps=s,null!==(o=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Ul(o,s),null!==e?r=Ul(e,r):(r=Hl(r,i,a,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Qo(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ei(e.return,t)}function es(e,t,n,r,a,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,lastEffect:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a,o.lastEffect=i)}function ts(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;if(Io(e,t,r.children,n),0!==(2&(r=_i.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Qo(e,n);else if(19===e.tag)Qo(e,n);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(sa(_i,r),0===(2&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===Ii(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),es(t,!1,a,n,i,t.lastEffect);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===Ii(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}es(t,!0,n,null,i,t.lastEffect);break;case"together":es(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ns(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fs|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Ul(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ul(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function rs(e,t){if(!Li)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 as(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return ha(t.type)&&fa(),null;case 3:return Ni(),oa(ua),oa(ca),Hi(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Wi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Ho(t),null;case 5:Mi(t);var i=Ei(ji.current);if(n=t.type,null!==e&&null!=t.stateNode)qo(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(o(166));return null}if(e=Ei(ki.current),Wi(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Kr]=t,r[Yr]=s,n){case"dialog":Tr("cancel",r),Tr("close",r);break;case"iframe":case"object":case"embed":Tr("load",r);break;case"video":case"audio":for(e=0;e<Sr.length;e++)Tr(Sr[e],r);break;case"source":Tr("error",r);break;case"img":case"image":case"link":Tr("error",r),Tr("load",r);break;case"details":Tr("toggle",r);break;case"input":ee(r,s),Tr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Tr("invalid",r);break;case"textarea":le(r,s),Tr("invalid",r)}for(var c in Ce(n,s),e=null,s)s.hasOwnProperty(c)&&(i=s[c],"children"===c?"string"===typeof i?r.textContent!==i&&(e=["children",i]):"number"===typeof i&&r.textContent!==""+i&&(e=["children",""+i]):l.hasOwnProperty(c)&&null!=i&&"onScroll"===c&&Tr("scroll",r));switch(n){case"input":X(r),re(r,s,!0);break;case"textarea":X(r),ue(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=Or)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(c=9===i.nodeType?i:i.ownerDocument,e===de&&(e=he(n)),e===de?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[Kr]=t,e[Yr]=r,$o(e,t,!1,!1),t.stateNode=e,c=Ae(n,r),n){case"dialog":Tr("cancel",e),Tr("close",e),i=r;break;case"iframe":case"object":case"embed":Tr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Sr.length;i++)Tr(Sr[i],e);i=r;break;case"source":Tr("error",e),i=r;break;case"img":case"image":case"link":Tr("error",e),Tr("load",e),i=r;break;case"details":Tr("toggle",e),i=r;break;case"input":ee(e,r),i=Q(e,r),Tr("invalid",e);break;case"option":i=ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=a({},r,{value:void 0}),Tr("invalid",e);break;case"textarea":le(e,r),i=se(e,r),Tr("invalid",e);break;default:i=r}Ce(n,i);var u=i;for(s in u)if(u.hasOwnProperty(s)){var d=u[s];"style"===s?we(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&ge(e,d):"children"===s?"string"===typeof d?("textarea"!==n||""!==d)&&ve(e,d):"number"===typeof d&&ve(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=d&&"onScroll"===s&&Tr("scroll",e):null!=d&&x(e,s,d,c))}switch(n){case"input":X(e),re(e,r,!1);break;case"textarea":X(e),ue(e);break;case"option":null!=r.value&&e.setAttribute("value",""+K(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?oe(e,!!r.multiple,s,!1):null!=r.defaultValue&&oe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Or)}Br(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Go(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));n=Ei(ji.current),Ei(ki.current),Wi(t)?(r=t.stateNode,n=t.memoizedProps,r[Kr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Kr]=t,t.stateNode=r)}return null;case 13:return oa(_i),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Wi(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&_i.current)?0===Rs&&(Rs=3):(0!==Rs&&3!==Rs||(Rs=4),null===Ns||0===(134217727&Fs)&&0===(134217727&Bs)||ml(Ns,Ms))),(r||n)&&(t.flags|=4),null);case 4:return Ni(),Ho(t),null===e&&Er(t.stateNode.containerInfo),null;case 10:return Qa(t),null;case 19:if(oa(_i),null===(r=t.memoizedState))return null;if(s=0!==(64&t.flags),null===(c=r.rendering))if(s)rs(r,!1);else{if(0!==Rs||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=Ii(e))){for(t.flags|=64,rs(r,!1),null!==(s=c.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(c=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return sa(_i,1&_i.current|2),t.child}e=e.sibling}null!==r.tail&&Ba()>Us&&(t.flags|=64,s=!0,rs(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Ii(c))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),rs(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!Li)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Ba()-r.renderingStartTime>Us&&1073741824!==n&&(t.flags|=64,s=!0,rs(r,!1),t.lanes=33554432);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=r.last)?n.sibling=c:t.child=c,r.last=c)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Ba(),n.sibling=null,t=_i.current,sa(_i,s?1&t|2:1&t),n):null;case 23:case 24:return xl(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(o(156,t.tag))}function is(e){switch(e.tag){case 1:ha(e.type)&&fa();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ni(),oa(ua),oa(ca),Hi(),0!==(64&(t=e.flags)))throw Error(o(285));return e.flags=-4097&t|64,e;case 5:return Mi(e),null;case 13:return oa(_i),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return oa(_i),null;case 4:return Ni(),null;case 10:return Qa(e),null;case 23:case 24:return xl(),null;default:return null}}function os(e,t){try{var n="",r=t;do{n+=q(r),r=r.return}while(r);var a=n}catch(i){a="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:a}}function ss(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}$o=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}},Ho=function(){},qo=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ei(ki.current);var o,s=null;switch(n){case"input":i=Q(e,i),r=Q(e,r),s=[];break;case"option":i=ie(e,i),r=ie(e,r),s=[];break;case"select":i=a({},i,{value:void 0}),r=a({},r,{value:void 0}),s=[];break;case"textarea":i=se(e,i),r=se(e,r),s=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Or)}for(d in Ce(n,r),n=null,i)if(!r.hasOwnProperty(d)&&i.hasOwnProperty(d)&&null!=i[d])if("style"===d){var c=i[d];for(o in c)c.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(l.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var u=r[d];if(c=null!=i?i[d]:void 0,r.hasOwnProperty(d)&&u!==c&&(null!=u||null!=c))if("style"===d)if(c){for(o in c)!c.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&c[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(s||(s=[]),s.push(d,n)),n=u;else"dangerouslySetInnerHTML"===d?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(s=s||[]).push(d,u)):"children"===d?"string"!==typeof u&&"number"!==typeof u||(s=s||[]).push(d,""+u):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(l.hasOwnProperty(d)?(null!=u&&"onScroll"===d&&Tr("scroll",e),s||c===u||(s=[])):"object"===typeof u&&null!==u&&u.$$typeof===R?u.toString():(s=s||[]).push(d,u))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Go=function(e,t,n,r){n!==r&&(t.flags|=4)};var ls="function"===typeof WeakMap?WeakMap:Map;function cs(e,t,n){(n=oi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gs||(Gs=!0,Ks=r),ss(0,t)},n}function us(e,t,n){(n=oi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var a=t.value;n.payload=function(){return ss(0,t),r(a)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Ys?Ys=new Set([this]):Ys.add(this),ss(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ds="function"===typeof WeakSet?WeakSet:Set;function ps(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Ll(e,n)}else t.current=null}function hs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Ga(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Ur(t.stateNode.containerInfo))}throw Error(o(163))}function fs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var a=e;r=a.next,0!==(4&(a=a.tag))&&0!==(1&a)&&(Il(n,e),_l(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Ga(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&ui(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}ui(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Br(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&wt(n)))))}throw Error(o(163))}function ms(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var a=n.memoizedProps.style;a=void 0!==a&&null!==a&&a.hasOwnProperty("display")?a.display:null,r.style.display=xe("display",a)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function gs(e,t){if(xa&&"function"===typeof xa.onCommitFiberUnmount)try{xa.onCommitFiberUnmount(ba,t)}catch(i){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,a=r.destroy;if(r=r.tag,void 0!==a)if(0!==(4&r))Il(t,n);else{r=t;try{a()}catch(i){Ll(r,i)}}n=n.next}while(n!==e)}break;case 1:if(ps(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(i){Ll(t,i)}break;case 5:ps(t);break;case 4:Ss(e,t)}}function vs(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function ys(e){return 5===e.tag||3===e.tag||4===e.tag}function bs(e){e:{for(var t=e.return;null!==t;){if(ys(t))break e;t=t.return}throw Error(o(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(o(161))}16&n.flags&&(ve(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ys(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?xs(e,n,t):ws(e,n,t)}function xs(e,t,n){var r=e.tag,a=5===r||6===r;if(a)e=a?e.stateNode:e.stateNode.instance,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=Or));else if(4!==r&&null!==(e=e.child))for(xs(e,t,n),e=e.sibling;null!==e;)xs(e,t,n),e=e.sibling}function ws(e,t,n){var r=e.tag,a=5===r||6===r;if(a)e=a?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ws(e,t,n),e=e.sibling;null!==e;)ws(e,t,n),e=e.sibling}function Ss(e,t){for(var n,r,a=t,i=!1;;){if(!i){i=a.return;e:for(;;){if(null===i)throw Error(o(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===a.tag||6===a.tag){e:for(var s=e,l=a,c=l;;)if(gs(s,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===l)break e;for(;null===c.sibling;){if(null===c.return||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(s=n,l=a.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(a.stateNode)}else if(4===a.tag){if(null!==a.child){n=a.stateNode.containerInfo,r=!0,a.child.return=a,a=a.child;continue}}else if(gs(e,a),null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;4===(a=a.return).tag&&(i=!1)}a.sibling.return=a.return,a=a.sibling}}function Cs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var a=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Yr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Ae(e,a),t=Ae(e,r),a=0;a<i.length;a+=2){var s=i[a],l=i[a+1];"style"===s?we(n,l):"dangerouslySetInnerHTML"===s?ge(n,l):"children"===s?ve(n,l):x(n,s,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?oe(n,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?oe(n,!!r.multiple,r.defaultValue,!0):oe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(o(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,wt(n.containerInfo)));case 13:return null!==t.memoizedState&&(Ws=Ba(),ms(t.child,!0)),void As(t);case 19:return void As(t);case 23:case 24:return void ms(t,null!==t.memoizedState)}throw Error(o(163))}function As(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ds),t.forEach((function(t){var r=Bl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ks(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Ts=Math.ceil,js=w.ReactCurrentDispatcher,Es=w.ReactCurrentOwner,Ps=0,Ns=null,Ds=null,Ms=0,_s=0,Is=ia(0),Rs=0,Os=null,Ls=0,Fs=0,Bs=0,zs=0,Vs=null,Ws=0,Us=1/0;function $s(){Us=Ba()+500}var Hs,qs=null,Gs=!1,Ks=null,Ys=null,Xs=!1,Zs=null,Js=90,Qs=[],el=[],tl=null,nl=0,rl=null,al=-1,il=0,ol=0,sl=null,ll=!1;function cl(){return 0!==(48&Ps)?Ba():-1!==al?al:al=Ba()}function ul(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===za()?1:2;if(0===il&&(il=Ls),0!==qa.transition){0!==ol&&(ol=null!==Vs?Vs.pendingLanes:0),e=il;var t=4186112&~ol;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=za(),0!==(4&Ps)&&98===e?e=Bt(12,il):e=Bt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),il),e}function dl(e,t,n){if(50<nl)throw nl=0,rl=null,Error(o(185));if(null===(e=pl(e,t)))return null;Wt(e,t,n),e===Ns&&(Bs|=t,4===Rs&&ml(e,Ms));var r=za();1===t?0!==(8&Ps)&&0===(48&Ps)?gl(e):(hl(e,n),0===Ps&&($s(),$a())):(0===(4&Ps)||98!==r&&99!==r||(null===tl?tl=new Set([e]):tl.add(e)),hl(e,n)),Vs=e}function pl(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}function hl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Ut(s),c=1<<l,u=i[l];if(-1===u){if(0===(c&r)||0!==(c&a)){u=t,Ot(c);var d=Rt;i[l]=10<=d?u+250:6<=d?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);s&=~c}if(r=Lt(e,e===Ns?Ms:0),t=Rt,0===r)null!==n&&(n!==_a&&Ca(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==_a&&Ca(n)}15===t?(n=gl.bind(null,e),null===Ra?(Ra=[n],Oa=Sa(Ea,Ha)):Ra.push(n),n=_a):14===t?n=Ua(99,gl.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(o(358,e))}}(t),n=Ua(n,fl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function fl(e){if(al=-1,ol=il=0,0!==(48&Ps))throw Error(o(327));var t=e.callbackNode;if(Ml()&&e.callbackNode!==t)return null;var n=Lt(e,e===Ns?Ms:0);if(0===n)return null;var r=n,a=Ps;Ps|=16;var i=Cl();for(Ns===e&&Ms===r||($s(),wl(e,r));;)try{Tl();break}catch(l){Sl(e,l)}if(Ja(),js.current=i,Ps=a,null!==Ds?r=0:(Ns=null,Ms=0,r=Rs),0!==(Ls&Bs))wl(e,0);else if(0!==r){if(2===r&&(Ps|=64,e.hydrate&&(e.hydrate=!1,Ur(e.containerInfo)),0!==(n=Ft(e))&&(r=Al(e,n))),1===r)throw t=Os,wl(e,0),ml(e,n),hl(e,Ba()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(o(345));case 2:case 5:Pl(e);break;case 3:if(ml(e,n),(62914560&n)===n&&10<(r=Ws+500-Ba())){if(0!==Lt(e,0))break;if(((a=e.suspendedLanes)&n)!==n){cl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Vr(Pl.bind(null,e),r);break}Pl(e);break;case 4:if(ml(e,n),(4186112&n)===n)break;for(r=e.eventTimes,a=-1;0<n;){var s=31-Ut(n);i=1<<s,(s=r[s])>a&&(a=s),n&=~i}if(n=a,10<(n=(120>(n=Ba()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ts(n/1960))-n)){e.timeoutHandle=Vr(Pl.bind(null,e),n);break}Pl(e);break;default:throw Error(o(329))}}return hl(e,Ba()),e.callbackNode===t?fl.bind(null,e):null}function ml(e,t){for(t&=~zs,t&=~Bs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ut(t),r=1<<n;e[n]=-1,t&=~r}}function gl(e){if(0!==(48&Ps))throw Error(o(327));if(Ml(),e===Ns&&0!==(e.expiredLanes&Ms)){var t=Ms,n=Al(e,t);0!==(Ls&Bs)&&(n=Al(e,t=Lt(e,t)))}else n=Al(e,t=Lt(e,0));if(0!==e.tag&&2===n&&(Ps|=64,e.hydrate&&(e.hydrate=!1,Ur(e.containerInfo)),0!==(t=Ft(e))&&(n=Al(e,t))),1===n)throw n=Os,wl(e,0),ml(e,t),hl(e,Ba()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pl(e),hl(e,Ba()),null}function vl(e,t){var n=Ps;Ps|=1;try{return e(t)}finally{0===(Ps=n)&&($s(),$a())}}function yl(e,t){var n=Ps;Ps&=-2,Ps|=8;try{return e(t)}finally{0===(Ps=n)&&($s(),$a())}}function bl(e,t){sa(Is,_s),_s|=t,Ls|=t}function xl(){_s=Is.current,oa(Is)}function wl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Wr(n)),null!==Ds)for(n=Ds.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&fa();break;case 3:Ni(),oa(ua),oa(ca),Hi();break;case 5:Mi(r);break;case 4:Ni();break;case 13:case 19:oa(_i);break;case 10:Qa(r);break;case 23:case 24:xl()}n=n.return}Ns=e,Ds=Ul(e.current,null),Ms=_s=Ls=t,Rs=0,Os=null,zs=Bs=Fs=0}function Sl(e,t){for(;;){var n=Ds;try{if(Ja(),qi.current=Eo,Ji){for(var r=Yi.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}Ji=!1}if(Ki=0,Zi=Xi=Yi=null,Qi=!1,Es.current=null,null===n||null===n.return){Rs=1,Os=t,Ds=null;break}e:{var i=e,o=n.return,s=n,l=t;if(t=Ms,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"===typeof l&&"function"===typeof l.then){var c=l;if(0===(2&s.mode)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=0!==(1&_i.current),p=o;do{var h;if(h=13===p.tag){var f=p.memoizedState;if(null!==f)h=null!==f.dehydrated;else{var m=p.memoizedProps;h=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!d)}}if(h){var g=p.updateQueue;if(null===g){var v=new Set;v.add(c),p.updateQueue=v}else g.add(c);if(0===(2&p.mode)){if(p.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=oi(-1,1);y.tag=2,si(s,y)}s.lanes|=1;break e}l=void 0,s=t;var b=i.pingCache;if(null===b?(b=i.pingCache=new ls,l=new Set,b.set(c,l)):void 0===(l=b.get(c))&&(l=new Set,b.set(c,l)),!l.has(s)){l.add(s);var x=Fl.bind(null,i,c,s);c.then(x,x)}p.flags|=4096,p.lanes=t;break e}p=p.return}while(null!==p);l=Error((G(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Rs&&(Rs=2),l=os(l,s),p=o;do{switch(p.tag){case 3:i=l,p.flags|=4096,t&=-t,p.lanes|=t,li(p,cs(0,i,t));break e;case 1:i=l;var w=p.type,S=p.stateNode;if(0===(64&p.flags)&&("function"===typeof w.getDerivedStateFromError||null!==S&&"function"===typeof S.componentDidCatch&&(null===Ys||!Ys.has(S)))){p.flags|=4096,t&=-t,p.lanes|=t,li(p,us(p,i,t));break e}}p=p.return}while(null!==p)}El(n)}catch(C){t=C,Ds===n&&null!==n&&(Ds=n=n.return);continue}break}}function Cl(){var e=js.current;return js.current=Eo,null===e?Eo:e}function Al(e,t){var n=Ps;Ps|=16;var r=Cl();for(Ns===e&&Ms===t||wl(e,t);;)try{kl();break}catch(a){Sl(e,a)}if(Ja(),Ps=n,js.current=r,null!==Ds)throw Error(o(261));return Ns=null,Ms=0,Rs}function kl(){for(;null!==Ds;)jl(Ds)}function Tl(){for(;null!==Ds&&!Aa();)jl(Ds)}function jl(e){var t=Hs(e.alternate,e,_s);e.memoizedProps=e.pendingProps,null===t?El(e):Ds=t,Es.current=null}function El(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=as(n,t,_s)))return void(Ds=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&_s)||0===(4&n.mode)){for(var r=0,a=n.child;null!==a;)r|=a.lanes|a.childLanes,a=a.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=is(t)))return n.flags&=2047,void(Ds=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ds=t);Ds=t=e}while(null!==t);0===Rs&&(Rs=5)}function Pl(e){var t=za();return Wa(99,Nl.bind(null,e,t)),null}function Nl(e,t){do{Ml()}while(null!==Zs);if(0!==(48&Ps))throw Error(o(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null;var r=n.lanes|n.childLanes,a=r,i=e.pendingLanes&~a;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=a,e.mutableReadLanes&=a,e.entangledLanes&=a,a=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<i;){var c=31-Ut(i),u=1<<c;a[c]=0,s[c]=-1,l[c]=-1,i&=~u}if(null!==tl&&0===(24&r)&&tl.has(e)&&tl.delete(e),e===Ns&&(Ds=Ns=null,Ms=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(a=Ps,Ps|=32,Es.current=null,Lr=Kt,hr(s=pr())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&0!==u.rangeCount){l=u.anchorNode,i=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{l.nodeType,c.nodeType}catch(T){l=null;break e}var d=0,p=-1,h=-1,f=0,m=0,g=s,v=null;t:for(;;){for(var y;g!==l||0!==i&&3!==g.nodeType||(p=d+i),g!==c||0!==u&&3!==g.nodeType||(h=d+u),3===g.nodeType&&(d+=g.nodeValue.length),null!==(y=g.firstChild);)v=g,g=y;for(;;){if(g===s)break t;if(v===l&&++f===i&&(p=d),v===c&&++m===u&&(h=d),null!==(y=g.nextSibling))break;v=(g=v).parentNode}g=y}l=-1===p||-1===h?null:{start:p,end:h}}else l=null;l=l||{start:0,end:0}}else l=null;Fr={focusedElem:s,selectionRange:l},Kt=!1,sl=null,ll=!1,qs=r;do{try{Dl()}catch(T){if(null===qs)throw Error(o(330));Ll(qs,T),qs=qs.nextEffect}}while(null!==qs);sl=null,qs=r;do{try{for(s=e;null!==qs;){var b=qs.flags;if(16&b&&ve(qs.stateNode,""),128&b){var x=qs.alternate;if(null!==x){var w=x.ref;null!==w&&("function"===typeof w?w(null):w.current=null)}}switch(1038&b){case 2:bs(qs),qs.flags&=-3;break;case 6:bs(qs),qs.flags&=-3,Cs(qs.alternate,qs);break;case 1024:qs.flags&=-1025;break;case 1028:qs.flags&=-1025,Cs(qs.alternate,qs);break;case 4:Cs(qs.alternate,qs);break;case 8:Ss(s,l=qs);var S=l.alternate;vs(l),null!==S&&vs(S)}qs=qs.nextEffect}}catch(T){if(null===qs)throw Error(o(330));Ll(qs,T),qs=qs.nextEffect}}while(null!==qs);if(w=Fr,x=pr(),b=w.focusedElem,s=w.selectionRange,x!==b&&b&&b.ownerDocument&&dr(b.ownerDocument.documentElement,b)){null!==s&&hr(b)&&(x=s.start,void 0===(w=s.end)&&(w=x),"selectionStart"in b?(b.selectionStart=x,b.selectionEnd=Math.min(w,b.value.length)):(w=(x=b.ownerDocument||document)&&x.defaultView||window).getSelection&&(w=w.getSelection(),l=b.textContent.length,S=Math.min(s.start,l),s=void 0===s.end?S:Math.min(s.end,l),!w.extend&&S>s&&(l=s,s=S,S=l),l=ur(b,S),i=ur(b,s),l&&i&&(1!==w.rangeCount||w.anchorNode!==l.node||w.anchorOffset!==l.offset||w.focusNode!==i.node||w.focusOffset!==i.offset)&&((x=x.createRange()).setStart(l.node,l.offset),w.removeAllRanges(),S>s?(w.addRange(x),w.extend(i.node,i.offset)):(x.setEnd(i.node,i.offset),w.addRange(x))))),x=[];for(w=b;w=w.parentNode;)1===w.nodeType&&x.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<x.length;b++)(w=x[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Kt=!!Lr,Fr=Lr=null,e.current=n,qs=r;do{try{for(b=e;null!==qs;){var C=qs.flags;if(36&C&&fs(b,qs.alternate,qs),128&C){x=void 0;var A=qs.ref;if(null!==A){var k=qs.stateNode;qs.tag,x=k,"function"===typeof A?A(x):A.current=x}}qs=qs.nextEffect}}catch(T){if(null===qs)throw Error(o(330));Ll(qs,T),qs=qs.nextEffect}}while(null!==qs);qs=null,Ia(),Ps=a}else e.current=n;if(Xs)Xs=!1,Zs=e,Js=t;else for(qs=r;null!==qs;)t=qs.nextEffect,qs.nextEffect=null,8&qs.flags&&((C=qs).sibling=null,C.stateNode=null),qs=t;if(0===(r=e.pendingLanes)&&(Ys=null),1===r?e===rl?nl++:(nl=0,rl=e):nl=0,n=n.stateNode,xa&&"function"===typeof xa.onCommitFiberRoot)try{xa.onCommitFiberRoot(ba,n,void 0,64===(64&n.current.flags))}catch(T){}if(hl(e,Ba()),Gs)throw Gs=!1,e=Ks,Ks=null,e;return 0!==(8&Ps)||$a(),null}function Dl(){for(;null!==qs;){var e=qs.alternate;ll||null===sl||(0!==(8&qs.flags)?Qe(qs,sl)&&(ll=!0):13===qs.tag&&ks(e,qs)&&Qe(qs,sl)&&(ll=!0));var t=qs.flags;0!==(256&t)&&hs(e,qs),0===(512&t)||Xs||(Xs=!0,Ua(97,(function(){return Ml(),null}))),qs=qs.nextEffect}}function Ml(){if(90!==Js){var e=97<Js?97:Js;return Js=90,Wa(e,Rl)}return!1}function _l(e,t){Qs.push(t,e),Xs||(Xs=!0,Ua(97,(function(){return Ml(),null})))}function Il(e,t){el.push(t,e),Xs||(Xs=!0,Ua(97,(function(){return Ml(),null})))}function Rl(){if(null===Zs)return!1;var e=Zs;if(Zs=null,0!==(48&Ps))throw Error(o(331));var t=Ps;Ps|=32;var n=el;el=[];for(var r=0;r<n.length;r+=2){var a=n[r],i=n[r+1],s=a.destroy;if(a.destroy=void 0,"function"===typeof s)try{s()}catch(c){if(null===i)throw Error(o(330));Ll(i,c)}}for(n=Qs,Qs=[],r=0;r<n.length;r+=2){a=n[r],i=n[r+1];try{var l=a.create;a.destroy=l()}catch(c){if(null===i)throw Error(o(330));Ll(i,c)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Ps=t,$a(),!0}function Ol(e,t,n){si(e,t=cs(0,t=os(n,t),1)),t=cl(),null!==(e=pl(e,1))&&(Wt(e,1,t),hl(e,t))}function Ll(e,t){if(3===e.tag)Ol(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Ol(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Ys||!Ys.has(r))){var a=us(n,e=os(t,e),1);if(si(n,a),a=cl(),null!==(n=pl(n,1)))Wt(n,1,a),hl(n,a);else if("function"===typeof r.componentDidCatch&&(null===Ys||!Ys.has(r)))try{r.componentDidCatch(t,e)}catch(i){}break}}n=n.return}}function Fl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=cl(),e.pingedLanes|=e.suspendedLanes&n,Ns===e&&(Ms&n)===n&&(4===Rs||3===Rs&&(62914560&Ms)===Ms&&500>Ba()-Ws?wl(e,0):zs|=n),hl(e,t)}function Bl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===za()?1:2:(0===il&&(il=Ls),0===(t=zt(62914560&~il))&&(t=4194304))),n=cl(),null!==(e=pl(e,t))&&(Wt(e,t,n),hl(e,n))}function zl(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.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Vl(e,t,n,r){return new zl(e,t,n,r)}function Wl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ul(e,t){var n=e.alternate;return null===n?((n=Vl(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.nextEffect=null,n.firstEffect=null,n.lastEffect=null),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 $l(e,t,n,r,a,i){var s=2;if(r=e,"function"===typeof e)Wl(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case A:return Hl(n.children,a,i,t);case O:s=8,a|=16;break;case k:s=8,a|=1;break;case T:return(e=Vl(12,n,t,8|a)).elementType=T,e.type=T,e.lanes=i,e;case N:return(e=Vl(13,n,t,a)).type=N,e.elementType=N,e.lanes=i,e;case D:return(e=Vl(19,n,t,a)).elementType=D,e.lanes=i,e;case L:return ql(n,a,i,t);case F:return(e=Vl(24,n,t,a)).elementType=F,e.lanes=i,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case j:s=10;break e;case E:s=9;break e;case P:s=11;break e;case M:s=14;break e;case _:s=16,r=null;break e;case I:s=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Vl(s,n,t,a)).elementType=e,t.type=r,t.lanes=i,t}function Hl(e,t,n,r){return(e=Vl(7,e,r,t)).lanes=n,e}function ql(e,t,n,r){return(e=Vl(23,e,r,t)).elementType=L,e.lanes=n,e}function Gl(e,t,n){return(e=Vl(6,e,null,t)).lanes=n,e}function Kl(e,t,n){return(t=Vl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Vt(0),this.expirationTimes=Vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vt(0),this.mutableSourceEagerHydrationData=null}function Xl(e,t,n,r){var a=t.current,i=cl(),s=ul(a);e:if(n){t:{if(Ye(n=n._reactInternals)!==n||1!==n.tag)throw Error(o(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(ha(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(o(171))}if(1===n.tag){var c=n.type;if(ha(c)){n=ga(n,c,l);break e}}n=l}else n=la;return null===t.context?t.context=n:t.pendingContext=n,(t=oi(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),si(a,t),dl(a,s,i),s}function Zl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Jl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Ql(e,t){Jl(e,t),(e=e.alternate)&&Jl(e,t)}function ec(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Yl(e,t,null!=n&&!0===n.hydrate),t=Vl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ai(t),e[Xr]=n.current,Er(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var a=(t=r[e])._getVersion;a=a(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,a]:n.mutableSourceEagerHydrationData.push(t,a)}this._internalRoot=n}function tc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function nc(e,t,n,r,a){var i=n._reactRootContainer;if(i){var o=i._internalRoot;if("function"===typeof a){var s=a;a=function(){var e=Zl(o);s.call(e)}}Xl(t,o,e,a)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new ec(e,0,t?{hydrate:!0}:void 0)}(n,r),o=i._internalRoot,"function"===typeof a){var l=a;a=function(){var e=Zl(o);l.call(e)}}yl((function(){Xl(t,o,e,a)}))}return Zl(o)}function rc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!tc(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:C,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Hs=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ua.current)_o=!0;else{if(0===(n&r)){switch(_o=!1,t.tag){case 3:Uo(t),Ui();break;case 5:Di(t);break;case 1:ha(t.type)&&va(t);break;case 4:Pi(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var a=t.type._context;sa(Ka,a._currentValue),a._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Yo(e,t,n):(sa(_i,1&_i.current),null!==(t=ns(e,t,n))?t.sibling:null);sa(_i,1&_i.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return ts(e,t,n);t.flags|=64}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),sa(_i,_i.current),r)break;return null;case 23:case 24:return t.lanes=0,Fo(e,t,n)}return ns(e,t,n)}_o=0!==(16384&e.flags)}else _o=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=pa(t,ca.current),ti(t,n),a=no(null,t,r,e,a,n),t.flags|=1,"object"===typeof a&&null!==a&&"function"===typeof a.render&&void 0===a.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ha(r)){var i=!0;va(t)}else i=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,ai(t);var s=r.getDerivedStateFromProps;"function"===typeof s&&pi(t,r,s,e),a.updater=hi,t.stateNode=a,a._reactInternals=t,vi(t,r,e,n),t=Wo(null,t,r,!0,i,n)}else t.tag=0,Io(null,t,a,n),t=t.child;return t;case 16:a=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=(i=a._init)(a._payload),t.type=a,i=t.tag=function(e){if("function"===typeof e)return Wl(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===P)return 11;if(e===M)return 14}return 2}(a),e=Ga(a,e),i){case 0:t=zo(null,t,a,e,n);break e;case 1:t=Vo(null,t,a,e,n);break e;case 11:t=Ro(null,t,a,e,n);break e;case 14:t=Oo(null,t,a,Ga(a.type,e),r,n);break e}throw Error(o(306,a,""))}return t;case 0:return r=t.type,a=t.pendingProps,zo(e,t,r,a=t.elementType===r?a:Ga(r,a),n);case 1:return r=t.type,a=t.pendingProps,Vo(e,t,r,a=t.elementType===r?a:Ga(r,a),n);case 3:if(Uo(t),r=t.updateQueue,null===e||null===r)throw Error(o(282));if(r=t.pendingProps,a=null!==(a=t.memoizedState)?a.element:null,ii(e,t),ci(t,r,null,n),(r=t.memoizedState.element)===a)Ui(),t=ns(e,t,n);else{if((i=(a=t.stateNode).hydrate)&&(Oi=$r(t.stateNode.containerInfo.firstChild),Ri=t,i=Li=!0),i){if(null!=(e=a.mutableSourceEagerHydrationData))for(a=0;a<e.length;a+=2)(i=e[a])._workInProgressVersionPrimary=e[a+1],$i.push(i);for(n=Ci(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Io(e,t,r,n),Ui();t=t.child}return t;case 5:return Di(t),null===e&&zi(t),r=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,s=a.children,zr(r,a)?s=null:null!==i&&zr(r,i)&&(t.flags|=16),Bo(e,t),Io(e,t,s,n),t.child;case 6:return null===e&&zi(t),null;case 13:return Yo(e,t,n);case 4:return Pi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Si(t,null,r,n):Io(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,Ro(e,t,r,a=t.elementType===r?a:Ga(r,a),n);case 7:return Io(e,t,t.pendingProps,n),t.child;case 8:case 12:return Io(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,a=t.pendingProps,s=t.memoizedProps,i=a.value;var l=t.type._context;if(sa(Ka,l._currentValue),l._currentValue=i,null!==s)if(l=s.value,0===(i=or(l,i)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(l,i):1073741823))){if(s.children===a.children&&!ua.current){t=ns(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!==(u.observedBits&i)){1===l.tag&&((u=oi(-1,n&-n)).tag=2,si(l,u)),l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),ei(l.return,n),c.lanes|=n;break}u=u.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Io(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=(i=t.pendingProps).children,ti(t,n),r=r(a=ni(a,i.unstable_observedBits)),t.flags|=1,Io(e,t,r,n),t.child;case 14:return i=Ga(a=t.type,t.pendingProps),Oo(e,t,a,i=Ga(a.type,i),r,n);case 15:return Lo(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Ga(r,a),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,ha(r)?(e=!0,va(t)):e=!1,ti(t,n),mi(t,r,a),vi(t,r,a,n),Wo(null,t,r,!0,e,n);case 19:return ts(e,t,n);case 23:case 24:return Fo(e,t,n)}throw Error(o(156,t.tag))},ec.prototype.render=function(e){Xl(e,this._internalRoot,null,null)},ec.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Xl(null,e,null,(function(){t[Xr]=null}))},et=function(e){13===e.tag&&(dl(e,4,cl()),Ql(e,4))},tt=function(e){13===e.tag&&(dl(e,67108864,cl()),Ql(e,67108864))},nt=function(e){if(13===e.tag){var t=cl(),n=ul(e);dl(e,n,t),Ql(e,n)}},rt=function(e,t){return t()},Te=function(e,t,n){switch(t){case"input":if(ne(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 a=ta(r);if(!a)throw Error(o(90));Z(r),ne(r,a)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&oe(e,!!n.multiple,t,!1)}},Me=vl,_e=function(e,t,n,r,a){var i=Ps;Ps|=4;try{return Wa(98,e.bind(null,t,n,r,a))}finally{0===(Ps=i)&&($s(),$a())}},Ie=function(){0===(49&Ps)&&(function(){if(null!==tl){var e=tl;tl=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,hl(e,Ba())}))}$a()}(),Ml())},Re=function(e,t){var n=Ps;Ps|=2;try{return e(t)}finally{0===(Ps=n)&&($s(),$a())}};var ac={Events:[Qr,ea,ta,Ne,De,Ml,{current:!1}]},ic={findFiberByHostInstance:Jr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},oc={bundleType:ic.bundleType,version:ic.version,rendererPackageName:ic.rendererPackageName,rendererConfig:ic.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:ic.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var sc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sc.isDisabled&&sc.supportsFiber)try{ba=sc.inject(oc),xa=sc}catch(lc){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ac,t.createPortal=rc,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 Error(o(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Ps;if(0!==(48&n))return e(t);Ps|=1;try{if(e)return Wa(99,e.bind(null,t))}finally{Ps=n,$a()}},t.hydrate=function(e,t,n){if(!tc(t))throw Error(o(200));return nc(null,e,t,!0,n)},t.render=function(e,t,n){if(!tc(t))throw Error(o(200));return nc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!tc(e))throw Error(o(40));return!!e._reactRootContainer&&(yl((function(){nc(null,null,e,!1,(function(){e._reactRootContainer=null,e[Xr]=null}))})),!0)},t.unstable_batchedUpdates=vl,t.unstable_createPortal=function(e,t){return rc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!tc(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return nc(e,t,n,!1,r)},t.version="17.0.2"},7950:(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(2730)},6366:e=>{"use strict";var t=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty,a="undefined"!==typeof Element;function i(e,o){if(e===o)return!0;if(e&&o&&"object"==typeof e&&"object"==typeof o){var s,l,c,u=t(e),d=t(o);if(u&&d){if((l=e.length)!=o.length)return!1;for(s=l;0!==s--;)if(!i(e[s],o[s]))return!1;return!0}if(u!=d)return!1;var p=e instanceof Date,h=o instanceof Date;if(p!=h)return!1;if(p&&h)return e.getTime()==o.getTime();var f=e instanceof RegExp,m=o instanceof RegExp;if(f!=m)return!1;if(f&&m)return e.toString()==o.toString();var g=n(e);if((l=g.length)!==n(o).length)return!1;for(s=l;0!==s--;)if(!r.call(o,g[s]))return!1;if(a&&e instanceof Element&&o instanceof Element)return e===o;for(s=l;0!==s--;)if(("_owner"!==(c=g[s])||!e.$$typeof)&&!i(e[c],o[c]))return!1;return!0}return e!==e&&o!==o}e.exports=function(e,t){try{return i(e,t)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||-2146828260===n.number)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}}},5082:(e,t)=>{"use strict";var n=60103,r=60106,a=60107,i=60108,o=60114,s=60109,l=60110,c=60112,u=60113,d=60120,p=60115,h=60116,f=60121,m=60122,g=60117,v=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),a=b("react.fragment"),i=b("react.strict_mode"),o=b("react.profiler"),s=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),u=b("react.suspense"),d=b("react.suspense_list"),p=b("react.memo"),h=b("react.lazy"),f=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case a:case o:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case h:case p:case s:return e;default:return t}}case r:return t}}}t.isContextConsumer=function(e){return x(e)===l}},2086:(e,t,n)=>{"use strict";e.exports=n(5082)},9005:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=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,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=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 i:case s:case o:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case a:return t}}}function S(e){return w(e)===d}},7681:(e,t,n)=>{"use strict";n(9005)},1153:(e,t,n)=>{"use strict";n(2123);var r=n(5043),a=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var i=Symbol.for;a=i("react.element"),t.Fragment=i("react.fragment")}var o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},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)s.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:a,type:e,key:c,ref:u,props:i,_owner:o.current}}t.jsx=c,t.jsxs=c},4202:(e,t,n)=>{"use strict";var r=n(2123),a=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,s=60110,l=60112;t.Suspense=60113;var c=60115,u=60116;if("function"===typeof Symbol&&Symbol.for){var d=Symbol.for;a=d("react.element"),i=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),o=d("react.provider"),s=d("react.context"),l=d("react.forward_ref"),t.Suspense=d("react.suspense"),c=d("react.memo"),u=d("react.lazy")}var p="function"===typeof Symbol&&Symbol.iterator;function h(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 f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=g.prototype;var b=y.prototype=new v;b.constructor=y,r(b,g.prototype),b.isPureReactComponent=!0;var x={current:null},w=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var r,i={},o=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)w.call(t,r)&&!S.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:a,type:e,key:o,ref:s,props:i,_owner:x.current}}function A(e){return"object"===typeof e&&null!==e&&e.$$typeof===a}var k=/\/+/g;function T(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 j(e,t,n,r,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case a:case i:l=!0}}if(l)return o=o(l=e),e=""===r?"."+T(l,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(k,"$&/")+"/"),j(o,t,n,"",(function(e){return e}))):null!=o&&(A(o)&&(o=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(k,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=r+T(s=e[c],c);l+=j(s,t,n,u,o)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=j(s=s.value,t,n,u=r+T(s,c++),o);else if("object"===s)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function E(e,t,n){if(null==e)return e;var r=[],a=0;return j(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function P(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var N={current:null};function D(){var e=N.current;if(null===e)throw Error(h(321));return e}var M={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:E,forEach:function(e,t,n){E(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return E(e,(function(){t++})),t},toArray:function(e){return E(e,(function(e){return e}))||[]},only:function(e){if(!A(e))throw Error(h(143));return e}},t.Component=g,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(h(267,e));var i=r({},e.props),o=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=x.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)w.call(t,u)&&!S.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];i.children=c}return{$$typeof:a,type:e.type,key:o,ref:s,props:i,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=A,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return D().useCallback(e,t)},t.useContext=function(e,t){return D().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return D().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return D().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return D().useLayoutEffect(e,t)},t.useMemo=function(e,t){return D().useMemo(e,t)},t.useReducer=function(e,t,n){return D().useReducer(e,t,n)},t.useRef=function(e){return D().useRef(e)},t.useState=function(e){return D().useState(e)},t.version="17.0.2"},5043:(e,t,n)=>{"use strict";e.exports=n(4202)},579:(e,t,n)=>{"use strict";e.exports=n(1153)},6766:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e){var t=(0,a.default)(e);return{getItem:function(e){return new Promise((function(n,r){n(t.getItem(e))}))},setItem:function(e,n){return new Promise((function(r,a){r(t.setItem(e,n))}))},removeItem:function(e){return new Promise((function(n,r){n(t.removeItem(e))}))}}};var r,a=(r=n(4004))&&r.__esModule?r:{default:r}},4004:(e,t)=>{"use strict";function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(){}t.__esModule=!0,t.default=function(e){var t="".concat(e,"Storage");return function(e){if("object"!==("undefined"===typeof self?"undefined":n(self))||!(e in self))return!1;try{var t=self[e],r="redux-persist ".concat(e," test");t.setItem(r,"test"),t.getItem(r),t.removeItem(r)}catch(a){return!1}return!0}(t)?self[t]:a};var a={getItem:r,setItem:r,removeItem:r}},8901:(e,t,n)=>{"use strict";var r;t.A=void 0;var a=(0,((r=n(6766))&&r.__esModule?r:{default:r}).default)("local");t.A=a},7234:(e,t)=>{"use strict";var n,r,a,i;if("object"===typeof performance&&"function"===typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var c=null,u=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(n){throw setTimeout(d,0),n}};n=function(e){null!==c?setTimeout(n,0,e):(c=e,setTimeout(d,0))},r=function(e,t){u=setTimeout(e,t)},a=function(){clearTimeout(u)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,h=window.clearTimeout;if("undefined"!==typeof console){var f=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof f&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,g=null,v=-1,y=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},i=function(){},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"):y=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,w=x.port2;x.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();b=e+y;try{g(!0,e)?w.postMessage(null):(m=!1,g=null)}catch(n){throw w.postMessage(null),n}}else m=!1},n=function(e){g=e,m||(m=!0,w.postMessage(null))},r=function(e,n){v=p((function(){e(t.unstable_now())}),n)},a=function(){h(v),v=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,a=e[r];if(!(void 0!==a&&0<k(a,t)))break e;e[r]=t,e[n]=a,n=r}}function C(e){return void 0===(e=e[0])?null:e}function A(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length;r<a;){var i=2*(r+1)-1,o=e[i],s=i+1,l=e[s];if(void 0!==o&&0>k(o,n))void 0!==l&&0>k(l,o)?(e[r]=l,e[s]=n,r=s):(e[r]=o,e[i]=n,r=i);else{if(!(void 0!==l&&0>k(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function k(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var T=[],j=[],E=1,P=null,N=3,D=!1,M=!1,_=!1;function I(e){for(var t=C(j);null!==t;){if(null===t.callback)A(j);else{if(!(t.startTime<=e))break;A(j),t.sortIndex=t.expirationTime,S(T,t)}t=C(j)}}function R(e){if(_=!1,I(e),!M)if(null!==C(T))M=!0,n(O);else{var t=C(j);null!==t&&r(R,t.startTime-e)}}function O(e,n){M=!1,_&&(_=!1,a()),D=!0;var i=N;try{for(I(n),P=C(T);null!==P&&(!(P.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=P.callback;if("function"===typeof o){P.callback=null,N=P.priorityLevel;var s=o(P.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?P.callback=s:P===C(T)&&A(T),I(n)}else A(T);P=C(T)}if(null!==P)var l=!0;else{var c=C(j);null!==c&&r(R,c.startTime-n),l=!1}return l}finally{P=null,N=i,D=!1}}var L=i;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(){M||D||(M=!0,n(O))},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_getFirstCallbackNode=function(){return C(T)},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=L,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_scheduleCallback=function(e,i,o){var s=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?s+o:s:o=s,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:E++,callback:i,priorityLevel:e,startTime:o,expirationTime:l=o+l,sortIndex:-1},o>s?(e.sortIndex=o,S(j,e),null===C(T)&&e===C(j)&&(_?a():_=!0,r(R,o-s))):(e.sortIndex=l,S(T,e),M||D||(M=!0,n(O))),e},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}}},8853:(e,t,n)=>{"use strict";e.exports=n(7234)},1517:e=>{const t=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['\u2019](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,n=e=>e.match(t)||[],r=e=>e[0].toUpperCase()+e.slice(1),a=(e,t)=>n(e).join(t).toLowerCase(),i=e=>n(e).reduce(((e,t)=>`${e}${e?t[0].toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()}`),"");e.exports={words:n,upperFirst:r,camelCase:i,pascalCase:e=>r(i(e)),snakeCase:e=>a(e,"_"),kebabCase:e=>a(e,"-"),sentenceCase:e=>r(a(e," ")),titleCase:e=>n(e).map(r).join(" ")}},8704:e=>{function t(e,t){var n=e.length,r=new Array(n),a={},i=n,o=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var a=e[n];t.has(a[0])||t.set(a[0],new Set),t.has(a[1])||t.set(a[1],new Set),t.get(a[0]).add(a[1])}return t}(t),s=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach((function(e){if(!s.has(e[0])||!s.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));i--;)a[i]||l(e[i],i,new Set);return r;function l(e,t,i){if(i.has(e)){var c;try{c=", node was:"+JSON.stringify(e)}catch(p){c=""}throw new Error("Cyclic dependency"+c)}if(!s.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!a[t]){a[t]=!0;var u=o.get(e)||new Set;if(t=(u=Array.from(u)).length){i.add(e);do{var d=u[--t];l(d,s.get(d),i)}while(t);i.delete(e)}r[--n]=e}}}e.exports=function(e){return t(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var a=e[n];t.add(a[0]),t.add(a[1])}return Array.from(t)}(e),e)},e.exports.array=t},5956:(e,t,n)=>{"use strict";var r=n(5043);var a="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=r.useState,o=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a(e,n)}catch(r){return!0}}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),a=r[0].inst,u=r[1];return s((function(){a.value=n,a.getSnapshot=t,c(a)&&u({inst:a})}),[e,n,t]),o((function(){return c(a)&&u({inst:a}),e((function(){c(a)&&u({inst:a})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},9461:(e,t,n)=>{"use strict";e.exports=n(5956)},4634:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},4893:e=>{e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},3738: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},8566:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,a,i,o){var s=new Date(0);return s.setUTCFullYear(e,t,n),s.setUTCHours(r,a,i,o),s},e.exports=t.default},7107:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=function(e,t,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}(e,n.timeZone,n.locale);return r.formatToParts?function(e,t){for(var n=e.formatToParts(t),r=n.length-1;r>=0;--r)if("timeZoneName"===n[r].type)return n[r].value}(r,t):function(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}(r,t)},e.exports=t.default},5332:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r,i,p;if(!e)return 0;if(r=l.timezoneZ.exec(e))return 0;if(r=l.timezoneHH.exec(e))return u(p=parseInt(r[1],10))?-p*o:NaN;if(r=l.timezoneHHMM.exec(e)){p=parseInt(r[1],10);var h=parseInt(r[2],10);return u(p,h)?(i=Math.abs(p)*o+h*s,p>0?-i:i):NaN}if(function(e){if(d[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),d[e]=!0,!0}catch(t){return!1}}(e)){t=new Date(t||Date.now());var f=n?t:function(e){return(0,a.default)(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),m=c(f,e),g=n?m:function(e,t,n){var r=e.getTime(),a=r-t,i=c(new Date(a),n);if(t===i)return t;a-=i-t;var o=c(new Date(a),n);if(i===o)return i;return Math.max(i,o)}(t,m,e);return-g}return NaN};var r=i(n(7157)),a=i(n(8566));function i(e){return e&&e.__esModule?e:{default:e}}var o=36e5,s=6e4,l={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function c(e,t){var n=(0,r.default)(e,t),i=(0,a.default)(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),o=e.getTime(),s=o%1e3;return i-(o-=s>=0?s:1e3+s)}function u(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var d={};e.exports=t.default},6178:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;t.default=n,e.exports=t.default},7157:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var a=function(e){if(!r[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n="06/25/2014, 00:00:00"===t||"\u200e06\u200e/\u200e25\u200e/\u200e2014\u200e \u200e00\u200e:\u200e00\u200e:\u200e00"===t;r[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return r[e]}(t);return a.formatToParts?function(e,t){try{for(var r=e.formatToParts(t),a=[],i=0;i<r.length;i++){var o=n[r[i].type];o>=0&&(a[o]=parseInt(r[i].value,10))}return a}catch(s){if(s instanceof RangeError)return[NaN];throw s}}(a,e):function(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}(a,e)};var n={year:0,month:1,day:2,hour:3,minute:4,second:5};var r={};e.exports=t.default},2808:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(7107)),a=i(n(5332));function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n=e?(0,a.default)(e,t,!0)/6e4:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function s(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}function l(e,t){var n=t||"",r=e>0?"-":"+",a=Math.abs(e);return r+s(Math.floor(a/60),2)+n+s(Math.floor(a%60),2)}function c(e,t){return e%60===0?(e>0?"-":"+")+s(Math.abs(e)/60,2):l(e,t)}var u={X:function(e,t,n,r){var a=o(r.timeZone,r._originalDate||e);if(0===a)return"Z";switch(t){case"X":return c(a);case"XXXX":case"XX":return l(a);default:return l(a,":")}},x:function(e,t,n,r){var a=o(r.timeZone,r._originalDate||e);switch(t){case"x":return c(a);case"xxxx":case"xx":return l(a);default:return l(a,":")}},O:function(e,t,n,r){var a=o(r.timeZone,r._originalDate||e);switch(t){case"O":case"OO":case"OOO":return"GMT"+function(e,t){var n=e>0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),i=r%60;if(0===i)return n+String(a);var o=t||"";return n+String(a)+o+s(i,2)}(a,":");default:return"GMT"+l(a,":")}},z:function(e,t,n,a){var i=a._originalDate||e;switch(t){case"z":case"zz":case"zzz":return(0,r.default)("short",i,a);default:return(0,r.default)("long",i,a)}}};t.default=u,e.exports=t.default},9894:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var o=String(t),l=n||{},c=o.match(s);if(c){var u=(0,i.default)(e,l);o=c.reduce((function(e,t){if("'"===t[0])return e;var n=e.indexOf(t),r="'"===e[n-1],i=e.replace(t,"'"+a.default[t[0]](u,t,null,l)+"'");return r?i.substring(0,n-1)+i.substring(n+1):i}),o)}return(0,r.default)(e,o,l)};var r=o(n(6422)),a=o(n(2808)),i=o(n(6776));function o(e){return e&&e.__esModule?e:{default:e}}var s=/([xXOz]+)|''|'(''|[^'])+('|$)/g;e.exports=t.default},7318:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,o){var s=(0,r.default)(o);return s.timeZone=t,(0,a.default)((0,i.default)(e,t),n,s)};var r=o(n(2088)),a=o(n(9894)),i=o(n(6183));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},4519:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return-(0,a.default)(e,t)};var r,a=(r=n(5332))&&r.__esModule?r:{default:r};e.exports=t.default},5288:(e,t,n)=>{"use strict";e.exports={format:n(9894),formatInTimeZone:n(7318),getTimezoneOffset:n(4519),toDate:n(6776),utcToZonedTime:n(6183),zonedTimeToUtc:n(2465)}},6776:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var n=t||{},o=null==n.additionalDigits?u:(0,r.default)(n.additionalDigits);if(2!==o&&1!==o&&0!==o)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"===typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"===typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("string"!==typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var s=function(e){var t,n={},r=d.dateTimePattern.exec(e);r?(n.date=r[1],t=r[3]):(r=d.datePattern.exec(e))?(n.date=r[1],t=r[2]):(n.date=null,t=e);if(t){var a=d.timeZone.exec(t);a?(n.time=t.replace(a[1],""),n.timeZone=a[1].trim()):n.time=t}return n}(e),h=function(e,t){var n,r=d.YYY[t],a=d.YYYYY[t];if(n=d.YYYY.exec(e)||a.exec(e)){var i=n[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(n=d.YY.exec(e)||r.exec(e)){var o=n[1];return{year:100*parseInt(o,10),restDateString:e.slice(o.length)}}return{year:null}}(s.date,o),f=h.year,b=function(e,t){if(null===t)return null;var n,r,a,i;if(0===e.length)return(r=new Date(0)).setUTCFullYear(t),r;if(n=d.MM.exec(e))return r=new Date(0),g(t,a=parseInt(n[1],10)-1)?(r.setUTCFullYear(t,a),r):new Date(NaN);if(n=d.DDD.exec(e)){r=new Date(0);var o=parseInt(n[1],10);return function(e,t){if(t<1)return!1;var n=m(e);if(n&&t>366)return!1;if(!n&&t>365)return!1;return!0}(t,o)?(r.setUTCFullYear(t,0,o),r):new Date(NaN)}if(n=d.MMDD.exec(e)){r=new Date(0),a=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return g(t,a,s)?(r.setUTCFullYear(t,a,s),r):new Date(NaN)}if(n=d.Www.exec(e))return v(t,i=parseInt(n[1],10)-1)?p(t,i):new Date(NaN);if(n=d.WwwD.exec(e)){i=parseInt(n[1],10)-1;var l=parseInt(n[2],10)-1;return v(t,i,l)?p(t,i,l):new Date(NaN)}return null}(h.restDateString,f);if(isNaN(b))return new Date(NaN);if(b){var x,w=b.getTime(),S=0;if(s.time&&(S=function(e){var t,n,r;if(t=d.HH.exec(e))return y(n=parseFloat(t[1].replace(",",".")))?n%24*l:NaN;if(t=d.HHMM.exec(e))return y(n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")))?n%24*l+r*c:NaN;if(t=d.HHMMSS.exec(e)){n=parseInt(t[1],10),r=parseInt(t[2],10);var a=parseFloat(t[3].replace(",","."));return y(n,r,a)?n%24*l+r*c+1e3*a:NaN}return null}(s.time),isNaN(S)))return new Date(NaN);if(s.timeZone||n.timeZone){if(x=(0,i.default)(s.timeZone||n.timeZone,new Date(w+S)),isNaN(x))return new Date(NaN)}else x=(0,a.default)(new Date(w+S)),x=(0,a.default)(new Date(w+S+x));return new Date(w+S+x)}return new Date(NaN)};var r=s(n(911)),a=s(n(5899)),i=s(n(5332)),o=s(n(6178));function s(e){return e&&e.__esModule?e:{default:e}}var l=36e5,c=6e4,u=2,d={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:o.default};function p(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var a=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+a),r}var h=[31,28,31,30,31,30,31,31,30,31,30,31],f=[31,29,31,30,31,30,31,31,30,31,30,31];function m(e){return e%400===0||e%4===0&&e%100!==0}function g(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;var r=m(e);if(r&&n>f[t])return!1;if(!r&&n>h[t])return!1}return!0}function v(e,t,n){return!(t<0||t>52)&&(null==n||!(n<0||n>6))}function y(e,t,n){return(null==e||!(e<0||e>=25))&&((null==t||!(t<0||t>=60))&&(null==n||!(n<0||n>=60)))}e.exports=t.default},6183:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var i=(0,a.default)(e,n),o=(0,r.default)(t,i,!0),s=new Date(i.getTime()-o),l=new Date(0);return l.setFullYear(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()),l.setHours(s.getUTCHours(),s.getUTCMinutes(),s.getUTCSeconds(),s.getUTCMilliseconds()),l};var r=i(n(5332)),a=i(n(6776));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},2465:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if("string"===typeof e&&!e.match(i.default)){var l=(0,r.default)(n);return l.timeZone=t,(0,a.default)(e,l)}var c=(0,a.default)(e,n),u=(0,s.default)(c.getFullYear(),c.getMonth(),c.getDate(),c.getHours(),c.getMinutes(),c.getSeconds(),c.getMilliseconds()).getTime(),d=(0,o.default)(t,new Date(u));return new Date(u+d)};var r=l(n(2088)),a=l(n(6776)),i=l(n(6178)),o=l(n(5332)),s=l(n(8566));function l(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},8168:(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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},8587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,a){if(1&a&&(r=this(r)),8&a)return r;if("object"===typeof r&&r){if(4&a&&r.__esModule)return r;if(16&a&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&a&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>o[e]=()=>r[e]));return o.default=()=>r,n.d(i,o),i}})(),n.d=(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=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+e+".2e57bdc0.chunk.js",n.miniCssF=e=>{},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="activatemanagement.client:";n.l=(r,a,i,o)=>{if(e[r])e[r].push(a);else{var s,l;if(void 0!==i)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+i){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+i),s.src=r),e[r]=[a];var p=(t,n)=>{s.onerror=s.onload=null,clearTimeout(h);var a=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),a&&a.forEach((e=>e(n))),t)return t(n)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="/",(()=>{var e={792:0};n.f.j=(t,r)=>{var a=n.o(e,t)?e[t]:void 0;if(0!==a)if(a)r.push(a[2]);else{var i=new Promise(((n,r)=>a=e[t]=[n,r]));r.push(a[2]=i);var o=n.p+n.u(t),s=new Error;n.l(o,(r=>{if(n.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var i=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",s.name="ChunkLoadError",s.type=i,s.request=o,a[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var a,i,o=r[0],s=r[1],l=r[2],c=0;if(o.some((t=>0!==e[t]))){for(a in s)n.o(s,a)&&(n.m[a]=s[a]);if(l)l(n)}for(t&&t(r);c<o.length;c++)i=o[c],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0},r=self.webpackChunkactivatemanagement_client=self.webpackChunkactivatemanagement_client||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e=n(5043),t=n.t(e,2),r=n(7950),a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)};var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},i.apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function s(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))}function l(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(s){i=[6,s],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var c=function(e,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},c(e,t)};function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var d=function(){return d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},d.apply(this,arguments)};function p(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function h(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))}function f(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o}function g(e,t,n){if(n||2===arguments.length)for(var r,a=0,i=t.length;a<i;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}var v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function y(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function b(e,t){return e(t={exports:{}},t.exports),t.exports}var x,w,S=function(e){return e&&e.Math==Math&&e},C=S("object"==typeof globalThis&&globalThis)||S("object"==typeof window&&window)||S("object"==typeof self&&self)||S("object"==typeof v&&v)||function(){return this}()||Function("return this")(),A=function(e){try{return!!e()}catch(e){return!0}},k=!A((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),T=!A((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),j=Function.prototype.call,E=T?j.bind(j):function(){return j.apply(j,arguments)},P={}.propertyIsEnumerable,N=Object.getOwnPropertyDescriptor,D={f:N&&!P.call({1:2},1)?function(e){var t=N(this,e);return!!t&&t.enumerable}:P},M=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_=Function,I=_.prototype,R=I.bind,O=I.call,L=T&&R.bind(O,O),F=function(e){return e instanceof _?T?L(e):function(){return O.apply(e,arguments)}:void 0},B=F({}.toString),z=F("".slice),V=function(e){return z(B(e),8,-1)},W=Object,U=F("".split),$=A((function(){return!W("z").propertyIsEnumerable(0)}))?function(e){return"String"==V(e)?U(e,""):W(e)}:W,H=function(e){return null==e},q=TypeError,G=function(e){if(H(e))throw q("Can't call method on "+e);return e},K=function(e){return $(G(e))},Y="object"==typeof document&&document.all,X={all:Y,IS_HTMLDDA:void 0===Y&&void 0!==Y},Z=X.all,J=X.IS_HTMLDDA?function(e){return"function"==typeof e||e===Z}:function(e){return"function"==typeof e},Q=X.all,ee=X.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:J(e)||e===Q}:function(e){return"object"==typeof e?null!==e:J(e)},te=function(e,t){return arguments.length<2?function(e){return J(e)?e:void 0}(C[e]):C[e]&&C[e][t]},ne=F({}.isPrototypeOf),re=te("navigator","userAgent")||"",ae=C.process,ie=C.Deno,oe=ae&&ae.versions||ie&&ie.version,se=oe&&oe.v8;se&&(w=(x=se.split("."))[0]>0&&x[0]<4?1:+(x[0]+x[1])),!w&&re&&(!(x=re.match(/Edge\/(\d+)/))||x[1]>=74)&&(x=re.match(/Chrome\/(\d+)/))&&(w=+x[1]);var le=w,ce=!!Object.getOwnPropertySymbols&&!A((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&le&&le<41})),ue=ce&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,de=Object,pe=ue?function(e){return"symbol"==typeof e}:function(e){var t=te("Symbol");return J(t)&&ne(t.prototype,de(e))},he=String,fe=function(e){try{return he(e)}catch(e){return"Object"}},me=TypeError,ge=function(e){if(J(e))return e;throw me(fe(e)+" is not a function")},ve=function(e,t){var n=e[t];return H(n)?void 0:ge(n)},ye=TypeError,be=Object.defineProperty,xe=function(e,t){try{be(C,e,{value:t,configurable:!0,writable:!0})}catch(d){C[e]=t}return t},we=C["__core-js_shared__"]||xe("__core-js_shared__",{}),Se=b((function(e){(e.exports=function(e,t){return we[e]||(we[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.25.4",mode:"global",copyright:"\xa9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.4/LICENSE",source:"https://github.com/zloirock/core-js"})})),Ce=Object,Ae=function(e){return Ce(G(e))},ke=F({}.hasOwnProperty),Te=Object.hasOwn||function(e,t){return ke(Ae(e),t)},je=0,Ee=Math.random(),Pe=F(1..toString),Ne=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Pe(++je+Ee,36)},De=Se("wks"),Me=C.Symbol,_e=Me&&Me.for,Ie=ue?Me:Me&&Me.withoutSetter||Ne,Re=function(e){if(!Te(De,e)||!ce&&"string"!=typeof De[e]){var t="Symbol."+e;ce&&Te(Me,e)?De[e]=Me[e]:De[e]=ue&&_e?_e(t):Ie(t)}return De[e]},Oe=TypeError,Le=Re("toPrimitive"),Fe=function(e){var t=function(e,t){if(!ee(e)||pe(e))return e;var n,r=ve(e,Le);if(r){if(void 0===t&&(t="default"),n=E(r,e,t),!ee(n)||pe(n))return n;throw Oe("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&J(n=e.toString)&&!ee(r=E(n,e)))return r;if(J(n=e.valueOf)&&!ee(r=E(n,e)))return r;if("string"!==t&&J(n=e.toString)&&!ee(r=E(n,e)))return r;throw ye("Can't convert object to primitive value")}(e,t)}(e,"string");return pe(t)?t:t+""},Be=C.document,ze=ee(Be)&&ee(Be.createElement),Ve=function(e){return ze?Be.createElement(e):{}},We=!k&&!A((function(){return 7!=Object.defineProperty(Ve("div"),"a",{get:function(){return 7}}).a})),Ue=Object.getOwnPropertyDescriptor,$e={f:k?Ue:function(e,t){if(e=K(e),t=Fe(t),We)try{return Ue(e,t)}catch(e){}if(Te(e,t))return M(!E(D.f,e,t),e[t])}},He=k&&A((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),qe=String,Ge=TypeError,Ke=function(e){if(ee(e))return e;throw Ge(qe(e)+" is not an object")},Ye=TypeError,Xe=Object.defineProperty,Ze=Object.getOwnPropertyDescriptor,Je={f:k?He?function(e,t,n){if(Ke(e),t=Fe(t),Ke(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=Ze(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return Xe(e,t,n)}:Xe:function(e,t,n){if(Ke(e),t=Fe(t),Ke(n),We)try{return Xe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ye("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Qe=k?function(e,t,n){return Je.f(e,t,M(1,n))}:function(e,t,n){return e[t]=n,e},et=Function.prototype,tt=k&&Object.getOwnPropertyDescriptor,nt=Te(et,"name"),rt={EXISTS:nt,PROPER:nt&&"something"===function(){}.name,CONFIGURABLE:nt&&(!k||k&&tt(et,"name").configurable)},at=F(Function.toString);J(we.inspectSource)||(we.inspectSource=function(e){return at(e)});var it,ot,st,lt=we.inspectSource,ct=C.WeakMap,ut=J(ct)&&/native code/.test(String(ct)),dt=Se("keys"),pt=function(e){return dt[e]||(dt[e]=Ne(e))},ht={},ft=C.TypeError,mt=C.WeakMap;if(ut||we.state){var gt=we.state||(we.state=new mt),vt=F(gt.get),yt=F(gt.has),bt=F(gt.set);it=function(e,t){if(yt(gt,e))throw ft("Object already initialized");return t.facade=e,bt(gt,e,t),t},ot=function(e){return vt(gt,e)||{}},st=function(e){return yt(gt,e)}}else{var xt=pt("state");ht[xt]=!0,it=function(e,t){if(Te(e,xt))throw ft("Object already initialized");return t.facade=e,Qe(e,xt,t),t},ot=function(e){return Te(e,xt)?e[xt]:{}},st=function(e){return Te(e,xt)}}var wt={set:it,get:ot,has:st,enforce:function(e){return st(e)?ot(e):it(e,{})},getterFor:function(e){return function(t){var n;if(!ee(t)||(n=ot(t)).type!==e)throw ft("Incompatible receiver, "+e+" required");return n}}},St=b((function(e){var t=rt.CONFIGURABLE,n=wt.enforce,r=wt.get,a=Object.defineProperty,i=k&&!A((function(){return 8!==a((function(){}),"length",{value:8}).length})),o=String(String).split("String"),s=e.exports=function(e,r,s){"Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),s&&s.getter&&(r="get "+r),s&&s.setter&&(r="set "+r),(!Te(e,"name")||t&&e.name!==r)&&(k?a(e,"name",{value:r,configurable:!0}):e.name=r),i&&s&&Te(s,"arity")&&e.length!==s.arity&&a(e,"length",{value:s.arity});try{s&&Te(s,"constructor")&&s.constructor?k&&a(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var l=n(e);return Te(l,"source")||(l.source=o.join("string"==typeof r?r:"")),e};Function.prototype.toString=s((function(){return J(this)&&r(this).source||lt(this)}),"toString")})),Ct=function(e,t,n,r){r||(r={});var a=r.enumerable,i=void 0!==r.name?r.name:t;if(J(n)&&St(n,i,r),r.global)a?e[t]=n:xe(t,n);else{try{r.unsafe?e[t]&&(a=!0):delete e[t]}catch(e){}a?e[t]=n:Je.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},At=Math.ceil,kt=Math.floor,Tt=Math.trunc||function(e){var t=+e;return(t>0?kt:At)(t)},jt=function(e){var t=+e;return t!=t||0===t?0:Tt(t)},Et=Math.max,Pt=Math.min,Nt=function(e,t){var n=jt(e);return n<0?Et(n+t,0):Pt(n,t)},Dt=Math.min,Mt=function(e){return e>0?Dt(jt(e),9007199254740991):0},_t=function(e){return Mt(e.length)},It=function(e){return function(t,n,r){var a,i=K(t),o=_t(i),s=Nt(r,o);if(e&&n!=n){for(;o>s;)if((a=i[s++])!=a)return!0}else for(;o>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},Rt={includes:It(!0),indexOf:It(!1)},Ot=Rt.indexOf,Lt=F([].push),Ft=function(e,t){var n,r=K(e),a=0,i=[];for(n in r)!Te(ht,n)&&Te(r,n)&&Lt(i,n);for(;t.length>a;)Te(r,n=t[a++])&&(~Ot(i,n)||Lt(i,n));return i},Bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],zt=Bt.concat("length","prototype"),Vt={f:Object.getOwnPropertyNames||function(e){return Ft(e,zt)}},Wt={f:Object.getOwnPropertySymbols},Ut=F([].concat),$t=te("Reflect","ownKeys")||function(e){var t=Vt.f(Ke(e)),n=Wt.f;return n?Ut(t,n(e)):t},Ht=function(e,t,n){for(var r=$t(t),a=Je.f,i=$e.f,o=0;o<r.length;o++){var s=r[o];Te(e,s)||n&&Te(n,s)||a(e,s,i(t,s))}},qt=/#|\.prototype\./,Gt=function(e,t){var n=Yt[Kt(e)];return n==Zt||n!=Xt&&(J(t)?A(t):!!t)},Kt=Gt.normalize=function(e){return String(e).replace(qt,".").toLowerCase()},Yt=Gt.data={},Xt=Gt.NATIVE="N",Zt=Gt.POLYFILL="P",Jt=Gt,Qt=$e.f,en=function(e,t){var n,r,a,i,o,s=e.target,l=e.global,c=e.stat;if(n=l?C:c?C[s]||xe(s,{}):(C[s]||{}).prototype)for(r in t){if(i=t[r],a=e.dontCallGetSet?(o=Qt(n,r))&&o.value:n[r],!Jt(l?r:s+(c?".":"#")+r,e.forced)&&void 0!==a){if(typeof i==typeof a)continue;Ht(i,a)}(e.sham||a&&a.sham)&&Qe(i,"sham",!0),Ct(n,r,i,e)}},tn={};tn[Re("toStringTag")]="z";var nn,rn="[object z]"===String(tn),an=Re("toStringTag"),on=Object,sn="Arguments"==V(function(){return arguments}()),ln=rn?V:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=on(e),an))?n:sn?V(t):"Object"==(r=V(t))&&J(t.callee)?"Arguments":r},cn=String,un=function(e){if("Symbol"===ln(e))throw TypeError("Cannot convert a Symbol value to a string");return cn(e)},dn=Re("match"),pn=TypeError,hn=function(e){if(function(e){var t;return ee(e)&&(void 0!==(t=e[dn])?!!t:"RegExp"==V(e))}(e))throw pn("The method doesn't accept regular expressions");return e},fn=Re("match"),mn=function(e){var t=/./;try{"/./"[e](t)}catch(d){try{return t[fn]=!1,"/./"[e](t)}catch(e){}}return!1},gn=$e.f,vn=F("".startsWith),yn=F("".slice),bn=Math.min,xn=mn("startsWith"),wn=!(xn||(nn=gn(String.prototype,"startsWith"),!nn||nn.writable));en({target:"String",proto:!0,forced:!wn&&!xn},{startsWith:function(e){var t=un(G(this));hn(e);var n=Mt(bn(arguments.length>1?arguments[1]:void 0,t.length)),r=un(e);return vn?vn(t,r,n):yn(t,n,n+r.length)===r}});var Sn=function(e,t){return F(C[e].prototype[t])};Sn("String","startsWith");var Cn=Array.isArray||function(e){return"Array"==V(e)},An=TypeError,kn=function(e){if(e>9007199254740991)throw An("Maximum allowed index exceeded");return e},Tn=function(e,t,n){var r=Fe(t);r in e?Je.f(e,r,M(0,n)):e[r]=n},jn=function(){},En=[],Pn=te("Reflect","construct"),Nn=/^\s*(?:class|function)\b/,Dn=F(Nn.exec),Mn=!Nn.exec(jn),_n=function(e){if(!J(e))return!1;try{return Pn(jn,En,e),!0}catch(e){return!1}},In=function(e){if(!J(e))return!1;switch(ln(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Mn||!!Dn(Nn,lt(e))}catch(e){return!0}};In.sham=!0;var Rn=!Pn||A((function(){var e;return _n(_n.call)||!_n(Object)||!_n((function(){e=!0}))||e}))?In:_n,On=Re("species"),Ln=Array,Fn=function(e,t){return new(function(e){var t;return Cn(e)&&(t=e.constructor,(Rn(t)&&(t===Ln||Cn(t.prototype))||ee(t)&&null===(t=t[On]))&&(t=void 0)),void 0===t?Ln:t}(e))(0===t?0:t)},Bn=Re("species"),zn=Re("isConcatSpreadable"),Vn=le>=51||!A((function(){var e=[];return e[zn]=!1,e.concat()[0]!==e})),Wn=le>=51||!A((function(){var e=[];return(e.constructor={})[Bn]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),Un=function(e){if(!ee(e))return!1;var t=e[zn];return void 0!==t?!!t:Cn(e)};en({target:"Array",proto:!0,arity:1,forced:!Vn||!Wn},{concat:function(e){var t,n,r,a,i,o=Ae(this),s=Fn(o,0),l=0;for(t=-1,r=arguments.length;t<r;t++)if(Un(i=-1===t?o:arguments[t]))for(a=_t(i),kn(l+a),n=0;n<a;n++,l++)n in i&&Tn(s,l,i[n]);else kn(l+1),Tn(s,l++,i);return s.length=l,s}});var $n=rn?{}.toString:function(){return"[object "+ln(this)+"]"};rn||Ct(Object.prototype,"toString",$n,{unsafe:!0});var Hn,qn=Object.keys||function(e){return Ft(e,Bt)},Gn=k&&!He?Object.defineProperties:function(e,t){Ke(e);for(var n,r=K(t),a=qn(t),i=a.length,o=0;i>o;)Je.f(e,n=a[o++],r[n]);return e},Kn={f:Gn},Yn=te("document","documentElement"),Xn=pt("IE_PROTO"),Zn=function(){},Jn=function(e){return"<script>"+e+"<\/script>"},Qn=function(e){e.write(Jn("")),e.close();var t=e.parentWindow.Object;return e=null,t},er=function(){try{Hn=new ActiveXObject("htmlfile")}catch(e){}var e,t;er="undefined"!=typeof document?document.domain&&Hn?Qn(Hn):((t=Ve("iframe")).style.display="none",Yn.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Jn("document.F=Object")),e.close(),e.F):Qn(Hn);for(var n=Bt.length;n--;)delete er.prototype[Bt[n]];return er()};ht[Xn]=!0;var tr=Object.create||function(e,t){var n;return null!==e?(Zn.prototype=Ke(e),n=new Zn,Zn.prototype=null,n[Xn]=e):n=er(),void 0===t?n:Kn.f(n,t)},nr=Array,rr=Math.max,ar=Vt.f,ir="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],or={f:function(e){return ir&&"Window"==V(e)?function(e){try{return ar(e)}catch(e){return function(e){for(var t=_t(e),n=Nt(void 0,t),r=Nt(t,t),a=nr(rr(r-n,0)),i=0;n<r;n++,i++)Tn(a,i,e[n]);return a.length=i,a}(ir)}}(e):ar(K(e))}},sr={f:Re},lr=C,cr=Je.f,ur=function(e){var t=lr.Symbol||(lr.Symbol={});Te(t,e)||cr(t,e,{value:sr.f(e)})},dr=function(){var e=te("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,r=Re("toPrimitive");t&&!t[r]&&Ct(t,r,(function(e){return E(n,this)}),{arity:1})},pr=Je.f,hr=Re("toStringTag"),fr=function(e,t,n){e&&!n&&(e=e.prototype),e&&!Te(e,hr)&&pr(e,hr,{configurable:!0,value:t})},mr=F(F.bind),gr=function(e,t){return ge(e),void 0===t?e:T?mr(e,t):function(){return e.apply(t,arguments)}},vr=F([].push),yr=function(e){var t=1==e,n=2==e,r=3==e,a=4==e,i=6==e,o=7==e,s=5==e||i;return function(l,c,u,d){for(var p,h,f=Ae(l),m=$(f),g=gr(c,u),v=_t(m),y=0,b=d||Fn,x=t?b(l,v):n||o?b(l,0):void 0;v>y;y++)if((s||y in m)&&(h=g(p=m[y],y,f),e))if(t)x[y]=h;else if(h)switch(e){case 3:return!0;case 5:return p;case 6:return y;case 2:vr(x,p)}else switch(e){case 4:return!1;case 7:vr(x,p)}return i?-1:r||a?a:x}},br=[yr(0),yr(1),yr(2),yr(3),yr(4),yr(5),yr(6),yr(7)][0],xr=pt("hidden"),wr=wt.set,Sr=wt.getterFor("Symbol"),Cr=Object.prototype,Ar=C.Symbol,kr=Ar&&Ar.prototype,Tr=C.TypeError,jr=C.QObject,Er=$e.f,Pr=Je.f,Nr=or.f,Dr=D.f,Mr=F([].push),_r=Se("symbols"),Ir=Se("op-symbols"),Rr=Se("wks"),Or=!jr||!jr.prototype||!jr.prototype.findChild,Lr=k&&A((function(){return 7!=tr(Pr({},"a",{get:function(){return Pr(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Er(Cr,t);r&&delete Cr[t],Pr(e,t,n),r&&e!==Cr&&Pr(Cr,t,r)}:Pr,Fr=function(e,t){var n=_r[e]=tr(kr);return wr(n,{type:"Symbol",tag:e,description:t}),k||(n.description=t),n},Br=function(e,t,n){e===Cr&&Br(Ir,t,n),Ke(e);var r=Fe(t);return Ke(n),Te(_r,r)?(n.enumerable?(Te(e,xr)&&e[xr][r]&&(e[xr][r]=!1),n=tr(n,{enumerable:M(0,!1)})):(Te(e,xr)||Pr(e,xr,M(1,{})),e[xr][r]=!0),Lr(e,r,n)):Pr(e,r,n)},zr=function(e,t){Ke(e);var n=K(t),r=qn(n).concat($r(n));return br(r,(function(t){k&&!E(Vr,n,t)||Br(e,t,n[t])})),e},Vr=function(e){var t=Fe(e),n=E(Dr,this,t);return!(this===Cr&&Te(_r,t)&&!Te(Ir,t))&&(!(n||!Te(this,t)||!Te(_r,t)||Te(this,xr)&&this[xr][t])||n)},Wr=function(e,t){var n=K(e),r=Fe(t);if(n!==Cr||!Te(_r,r)||Te(Ir,r)){var a=Er(n,r);return!a||!Te(_r,r)||Te(n,xr)&&n[xr][r]||(a.enumerable=!0),a}},Ur=function(e){var t=Nr(K(e)),n=[];return br(t,(function(e){Te(_r,e)||Te(ht,e)||Mr(n,e)})),n},$r=function(e){var t=e===Cr,n=Nr(t?Ir:K(e)),r=[];return br(n,(function(e){!Te(_r,e)||t&&!Te(Cr,e)||Mr(r,_r[e])})),r};ce||(kr=(Ar=function(){if(ne(kr,this))throw Tr("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?un(arguments[0]):void 0,t=Ne(e),n=function(e){this===Cr&&E(n,Ir,e),Te(this,xr)&&Te(this[xr],t)&&(this[xr][t]=!1),Lr(this,t,M(1,e))};return k&&Or&&Lr(Cr,t,{configurable:!0,set:n}),Fr(t,e)}).prototype,Ct(kr,"toString",(function(){return Sr(this).tag})),Ct(Ar,"withoutSetter",(function(e){return Fr(Ne(e),e)})),D.f=Vr,Je.f=Br,Kn.f=zr,$e.f=Wr,Vt.f=or.f=Ur,Wt.f=$r,sr.f=function(e){return Fr(Re(e),e)},k&&(Pr(kr,"description",{configurable:!0,get:function(){return Sr(this).description}}),Ct(Cr,"propertyIsEnumerable",Vr,{unsafe:!0}))),en({global:!0,constructor:!0,wrap:!0,forced:!ce,sham:!ce},{Symbol:Ar}),br(qn(Rr),(function(e){ur(e)})),en({target:"Symbol",stat:!0,forced:!ce},{useSetter:function(){Or=!0},useSimple:function(){Or=!1}}),en({target:"Object",stat:!0,forced:!ce,sham:!k},{create:function(e,t){return void 0===t?tr(e):zr(tr(e),t)},defineProperty:Br,defineProperties:zr,getOwnPropertyDescriptor:Wr}),en({target:"Object",stat:!0,forced:!ce},{getOwnPropertyNames:Ur}),dr(),fr(Ar,"Symbol"),ht[xr]=!0;var Hr=ce&&!!Symbol.for&&!!Symbol.keyFor,qr=Se("string-to-symbol-registry"),Gr=Se("symbol-to-string-registry");en({target:"Symbol",stat:!0,forced:!Hr},{for:function(e){var t=un(e);if(Te(qr,t))return qr[t];var n=te("Symbol")(t);return qr[t]=n,Gr[n]=t,n}});var Kr=Se("symbol-to-string-registry");en({target:"Symbol",stat:!0,forced:!Hr},{keyFor:function(e){if(!pe(e))throw TypeError(fe(e)+" is not a symbol");if(Te(Kr,e))return Kr[e]}});var Yr=Function.prototype,Xr=Yr.apply,Zr=Yr.call,Jr="object"==typeof Reflect&&Reflect.apply||(T?Zr.bind(Xr):function(){return Zr.apply(Xr,arguments)}),Qr=F([].slice),ea=te("JSON","stringify"),ta=F(/./.exec),na=F("".charAt),ra=F("".charCodeAt),aa=F("".replace),ia=F(1..toString),oa=/[\uD800-\uDFFF]/g,sa=/^[\uD800-\uDBFF]$/,la=/^[\uDC00-\uDFFF]$/,ca=!ce||A((function(){var e=te("Symbol")();return"[null]"!=ea([e])||"{}"!=ea({a:e})||"{}"!=ea(Object(e))})),ua=A((function(){return'"\\udf06\\ud834"'!==ea("\udf06\ud834")||'"\\udead"'!==ea("\udead")})),da=function(e,t){var n=Qr(arguments),r=t;if((ee(t)||void 0!==e)&&!pe(e))return Cn(t)||(t=function(e,t){if(J(r)&&(t=E(r,this,e,t)),!pe(t))return t}),n[1]=t,Jr(ea,null,n)},pa=function(e,t,n){var r=na(n,t-1),a=na(n,t+1);return ta(sa,e)&&!ta(la,a)||ta(la,e)&&!ta(sa,r)?"\\u"+ia(ra(e,0),16):e};ea&&en({target:"JSON",stat:!0,arity:3,forced:ca||ua},{stringify:function(e,t,n){var r=Qr(arguments),a=Jr(ca?da:ea,null,r);return ua&&"string"==typeof a?aa(a,oa,pa):a}});var ha=!ce||A((function(){Wt.f(1)}));en({target:"Object",stat:!0,forced:ha},{getOwnPropertySymbols:function(e){var t=Wt.f;return t?t(Ae(e)):[]}}),ur("asyncIterator");var fa=Je.f,ma=C.Symbol,ga=ma&&ma.prototype;if(k&&J(ma)&&(!("description"in ga)||void 0!==ma().description)){var va={},ya=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:un(arguments[0]),t=ne(ga,this)?new ma(e):void 0===e?ma():ma(e);return""===e&&(va[t]=!0),t};Ht(ya,ma),ya.prototype=ga,ga.constructor=ya;var ba="Symbol(test)"==String(ma("test")),xa=F(ga.valueOf),wa=F(ga.toString),Sa=/^Symbol\((.*)\)[^)]+$/,Ca=F("".replace),Aa=F("".slice);fa(ga,"description",{configurable:!0,get:function(){var e=xa(this);if(Te(va,e))return"";var t=wa(e),n=ba?Aa(t,7,-1):Ca(t,Sa,"$1");return""===n?void 0:n}}),en({global:!0,constructor:!0,forced:!0},{Symbol:ya})}ur("hasInstance"),ur("isConcatSpreadable"),ur("iterator"),ur("match"),ur("matchAll"),ur("replace"),ur("search"),ur("species"),ur("split"),ur("toPrimitive"),dr(),ur("toStringTag"),fr(te("Symbol"),"Symbol"),ur("unscopables"),fr(C.JSON,"JSON",!0),fr(Math,"Math",!0),en({global:!0},{Reflect:{}}),fr(C.Reflect,"Reflect",!0),lr.Symbol;var ka,Ta,ja,Ea=F("".charAt),Pa=F("".charCodeAt),Na=F("".slice),Da=function(e){return function(t,n){var r,a,i=un(G(t)),o=jt(n),s=i.length;return o<0||o>=s?e?"":void 0:(r=Pa(i,o))<55296||r>56319||o+1===s||(a=Pa(i,o+1))<56320||a>57343?e?Ea(i,o):r:e?Na(i,o,o+2):a-56320+(r-55296<<10)+65536}},Ma={codeAt:Da(!1),charAt:Da(!0)},_a=!A((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ia=pt("IE_PROTO"),Ra=Object,Oa=Ra.prototype,La=_a?Ra.getPrototypeOf:function(e){var t=Ae(e);if(Te(t,Ia))return t[Ia];var n=t.constructor;return J(n)&&t instanceof n?n.prototype:t instanceof Ra?Oa:null},Fa=Re("iterator"),Ba=!1;[].keys&&("next"in(ja=[].keys())?(Ta=La(La(ja)))!==Object.prototype&&(ka=Ta):Ba=!0),(!ee(ka)||A((function(){var e={};return ka[Fa].call(e)!==e})))&&(ka={}),J(ka[Fa])||Ct(ka,Fa,(function(){return this}));var za={IteratorPrototype:ka,BUGGY_SAFARI_ITERATORS:Ba},Va={},Wa=za.IteratorPrototype,Ua=function(){return this},$a=String,Ha=TypeError,qa=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=F(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Ke(n),function(e){if("object"==typeof e||J(e))return e;throw Ha("Can't set "+$a(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Ga=rt.PROPER,Ka=rt.CONFIGURABLE,Ya=za.IteratorPrototype,Xa=za.BUGGY_SAFARI_ITERATORS,Za=Re("iterator"),Ja=function(){return this},Qa=function(e,t,n,r,a,i,o){!function(e,t,n){var r=t+" Iterator";e.prototype=tr(Wa,{next:M(1,n)}),fr(e,r,!1),Va[r]=Ua}(n,t,r);var s,l,c,u=function(e){if(e===a&&m)return m;if(!Xa&&e in h)return h[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",p=!1,h=e.prototype,f=h[Za]||h["@@iterator"]||a&&h[a],m=!Xa&&f||u(a),g="Array"==t&&h.entries||f;if(g&&(s=La(g.call(new e)))!==Object.prototype&&s.next&&(La(s)!==Ya&&(qa?qa(s,Ya):J(s[Za])||Ct(s,Za,Ja)),fr(s,d,!0)),Ga&&"values"==a&&f&&"values"!==f.name&&(Ka?Qe(h,"name","values"):(p=!0,m=function(){return E(f,this)})),a)if(l={values:u("values"),keys:i?m:u("keys"),entries:u("entries")},o)for(c in l)(Xa||p||!(c in h))&&Ct(h,c,l[c]);else en({target:t,proto:!0,forced:Xa||p},l);return h[Za]!==m&&Ct(h,Za,m,{name:a}),Va[t]=m,l},ei=function(e,t){return{value:e,done:t}},ti=Ma.charAt,ni=wt.set,ri=wt.getterFor("String Iterator");Qa(String,"String",(function(e){ni(this,{type:"String Iterator",string:un(e),index:0})}),(function(){var e,t=ri(this),n=t.string,r=t.index;return r>=n.length?ei(void 0,!0):(e=ti(n,r),t.index+=e.length,ei(e,!1))}));var ai=function(e,t,n){var r,a;Ke(e);try{if(!(r=ve(e,"return"))){if("throw"===t)throw n;return n}r=E(r,e)}catch(e){a=!0,r=e}if("throw"===t)throw n;if(a)throw r;return Ke(r),n},ii=function(e,t,n,r){try{return r?t(Ke(n)[0],n[1]):t(n)}catch(t){ai(e,"throw",t)}},oi=Re("iterator"),si=Array.prototype,li=function(e){return void 0!==e&&(Va.Array===e||si[oi]===e)},ci=Re("iterator"),ui=function(e){if(!H(e))return ve(e,ci)||ve(e,"@@iterator")||Va[ln(e)]},di=TypeError,pi=function(e,t){var n=arguments.length<2?ui(e):t;if(ge(n))return Ke(E(n,e));throw di(fe(e)+" is not iterable")},hi=Array,fi=Re("iterator"),mi=!1;try{var gi=0,vi={next:function(){return{done:!!gi++}},return:function(){mi=!0}};vi[fi]=function(){return this},Array.from(vi,(function(){throw 2}))}catch(Dpe){}var yi=function(e,t){if(!t&&!mi)return!1;var n=!1;try{var r={};r[fi]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},bi=!yi((function(e){Array.from(e)}));en({target:"Array",stat:!0,forced:bi},{from:function(e){var t=Ae(e),n=Rn(this),r=arguments.length,a=r>1?arguments[1]:void 0,i=void 0!==a;i&&(a=gr(a,r>2?arguments[2]:void 0));var o,s,l,c,u,d,p=ui(t),h=0;if(!p||this===hi&&li(p))for(o=_t(t),s=n?new this(o):hi(o);o>h;h++)d=i?a(t[h],h):t[h],Tn(s,h,d);else for(u=(c=pi(t,p)).next,s=n?new this:[];!(l=E(u,c)).done;h++)d=i?ii(c,a,[l.value,h],!0):l.value,Tn(s,h,d);return s.length=h,s}}),lr.Array.from;var xi,wi,Si,Ci="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,Ai=Je.f,ki=wt.enforce,Ti=wt.get,ji=C.Int8Array,Ei=ji&&ji.prototype,Pi=C.Uint8ClampedArray,Ni=Pi&&Pi.prototype,Di=ji&&La(ji),Mi=Ei&&La(Ei),_i=Object.prototype,Ii=C.TypeError,Ri=Re("toStringTag"),Oi=Ne("TYPED_ARRAY_TAG"),Li=Ci&&!!qa&&"Opera"!==ln(C.opera),Fi=!1,Bi={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},zi={BigInt64Array:8,BigUint64Array:8},Vi=function(e){var t=La(e);if(ee(t)){var n=Ti(t);return n&&Te(n,"TypedArrayConstructor")?n.TypedArrayConstructor:Vi(t)}},Wi=function(e){if(!ee(e))return!1;var t=ln(e);return Te(Bi,t)||Te(zi,t)};for(xi in Bi)(Si=(wi=C[xi])&&wi.prototype)?ki(Si).TypedArrayConstructor=wi:Li=!1;for(xi in zi)(Si=(wi=C[xi])&&wi.prototype)&&(ki(Si).TypedArrayConstructor=wi);if((!Li||!J(Di)||Di===Function.prototype)&&(Di=function(){throw Ii("Incorrect invocation")},Li))for(xi in Bi)C[xi]&&qa(C[xi],Di);if((!Li||!Mi||Mi===_i)&&(Mi=Di.prototype,Li))for(xi in Bi)C[xi]&&qa(C[xi].prototype,Mi);if(Li&&La(Ni)!==Mi&&qa(Ni,Mi),k&&!Te(Mi,Ri))for(xi in Fi=!0,Ai(Mi,Ri,{get:function(){return ee(this)?this[Oi]:void 0}}),Bi)C[xi]&&Qe(C[xi],Oi,xi);var Ui={NATIVE_ARRAY_BUFFER_VIEWS:Li,TYPED_ARRAY_TAG:Fi&&Oi,aTypedArray:function(e){if(Wi(e))return e;throw Ii("Target is not a typed array")},aTypedArrayConstructor:function(e){if(J(e)&&(!qa||ne(Di,e)))return e;throw Ii(fe(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(k){if(n)for(var a in Bi){var i=C[a];if(i&&Te(i.prototype,e))try{delete i.prototype[e]}catch(n){try{i.prototype[e]=t}catch(e){}}}Mi[e]&&!n||Ct(Mi,e,n?t:Li&&Ei[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,a;if(k){if(qa){if(n)for(r in Bi)if((a=C[r])&&Te(a,e))try{delete a[e]}catch(e){}if(Di[e]&&!n)return;try{return Ct(Di,e,n?t:Li&&Di[e]||t)}catch(e){}}for(r in Bi)!(a=C[r])||a[e]&&!n||Ct(a,e,t)}},getTypedArrayConstructor:Vi,isView:function(e){if(!ee(e))return!1;var t=ln(e);return"DataView"===t||Te(Bi,t)||Te(zi,t)},isTypedArray:Wi,TypedArray:Di,TypedArrayPrototype:Mi},$i=TypeError,Hi=Re("species"),qi=Ui.aTypedArrayConstructor,Gi=Ui.getTypedArrayConstructor,Ki=Ui.aTypedArray;(0,Ui.exportTypedArrayMethod)("slice",(function(e,t){for(var n=Qr(Ki(this),e,t),r=qi(function(e,t){var n,r=Ke(e).constructor;return void 0===r||H(n=Ke(r)[Hi])?t:function(e){if(Rn(e))return e;throw $i(fe(e)+" is not a constructor")}(n)}(this,Gi(this))),a=0,i=n.length,o=new r(i);i>a;)o[a]=n[a++];return o}),A((function(){new Int8Array(1).slice()})));var Yi=Je.f,Xi=Re("unscopables"),Zi=Array.prototype;null==Zi[Xi]&&Yi(Zi,Xi,{configurable:!0,value:tr(null)});var Ji=function(e){Zi[Xi][e]=!0},Qi=Rt.includes,eo=A((function(){return!Array(1).includes()}));en({target:"Array",proto:!0,forced:eo},{includes:function(e){return Qi(this,e,arguments.length>1?arguments[1]:void 0)}}),Ji("includes"),Sn("Array","includes");var to=F("".indexOf);en({target:"String",proto:!0,forced:!mn("includes")},{includes:function(e){return!!~to(un(G(this)),un(hn(e)),arguments.length>1?arguments[1]:void 0)}}),Sn("String","includes");var no=Je.f,ro=wt.set,ao=wt.getterFor("Array Iterator");Qa(Array,"Array",(function(e,t){ro(this,{type:"Array Iterator",target:K(e),index:0,kind:t})}),(function(){var e=ao(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,ei(void 0,!0)):ei("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)}),"values");var io=Va.Arguments=Va.Array;if(Ji("keys"),Ji("values"),Ji("entries"),k&&"values"!==io.name)try{no(io,"name",{value:"values"})}catch(Dpe){}var oo=A((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),so=Object.isExtensible,lo=A((function(){so(1)}))||oo?function(e){return!!ee(e)&&(!oo||"ArrayBuffer"!=V(e))&&(!so||so(e))}:so,co=!A((function(){return Object.isExtensible(Object.preventExtensions({}))})),uo=b((function(e){var t=Je.f,n=!1,r=Ne("meta"),a=0,i=function(e){t(e,r,{value:{objectID:"O"+a++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var e=Vt.f,t=F([].splice),a={};a[r]=1,e(a).length&&(Vt.f=function(n){for(var a=e(n),i=0,o=a.length;i<o;i++)if(a[i]===r){t(a,i,1);break}return a},en({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:or.f}))},fastKey:function(e,t){if(!ee(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Te(e,r)){if(!lo(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Te(e,r)){if(!lo(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return co&&n&&lo(e)&&!Te(e,r)&&i(e),e}};ht[r]=!0}));uo.enable,uo.fastKey,uo.getWeakData,uo.onFreeze;var po=TypeError,ho=function(e,t){this.stopped=e,this.result=t},fo=ho.prototype,mo=function(e,t,n){var r,a,i,o,s,l,c,u=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),f=!(!n||!n.INTERRUPTED),m=gr(t,u),g=function(e){return r&&ai(r,"normal",e),new ho(!0,e)},v=function(e){return d?(Ke(e),f?m(e[0],e[1],g):m(e[0],e[1])):f?m(e,g):m(e)};if(p)r=e.iterator;else if(h)r=e;else{if(!(a=ui(e)))throw po(fe(e)+" is not iterable");if(li(a)){for(i=0,o=_t(e);o>i;i++)if((s=v(e[i]))&&ne(fo,s))return s;return new ho(!1)}r=pi(e,a)}for(l=p?e.next:r.next;!(c=E(l,r)).done;){try{s=v(c.value)}catch(e){ai(r,"throw",e)}if("object"==typeof s&&s&&ne(fo,s))return s}return new ho(!1)},go=TypeError,vo=function(e,t){if(ne(t,e))return e;throw go("Incorrect invocation")},yo=function(e,t,n){for(var r in t)Ct(e,r,t[r],n);return e},bo=Re("species"),xo=Je.f,wo=uo.fastKey,So=wt.set,Co=wt.getterFor,Ao={getConstructor:function(e,t,n,r){var a=e((function(e,a){vo(e,i),So(e,{type:t,index:tr(null),first:void 0,last:void 0,size:0}),k||(e.size=0),H(a)||mo(a,e[r],{that:e,AS_ENTRIES:n})})),i=a.prototype,o=Co(t),s=function(e,t,n){var r,a,i=o(e),s=l(e,t);return s?s.value=n:(i.last=s={index:a=wo(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=s),r&&(r.next=s),k?i.size++:e.size++,"F"!==a&&(i.index[a]=s)),e},l=function(e,t){var n,r=o(e),a=wo(t);if("F"!==a)return r.index[a];for(n=r.first;n;n=n.next)if(n.key==t)return n};return yo(i,{clear:function(){for(var e=o(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,k?e.size=0:this.size=0},delete:function(e){var t=this,n=o(t),r=l(t,e);if(r){var a=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=a),a&&(a.previous=i),n.first==r&&(n.first=a),n.last==r&&(n.last=i),k?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=o(this),r=gr(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!l(this,e)}}),yo(i,n?{get:function(e){var t=l(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),k&&xo(i,"size",{get:function(){return o(this).size}}),a},setStrong:function(e,t,n){var r=t+" Iterator",a=Co(t),i=Co(r);Qa(e,t,(function(e,t){So(this,{type:r,target:e,state:a(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?ei("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,ei(void 0,!0))}),n?"entries":"values",!n,!0),function(e){var t=te(e),n=Je.f;k&&t&&!t[bo]&&n(t,bo,{configurable:!0,get:function(){return this}})}(t)}};function ko(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))}function To(e){return new this((function(t,n){if(!e||void 0===e.length)return n(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var a=r.length;function i(e,n){if(n&&("object"==typeof n||"function"==typeof n)){var o=n.then;if("function"==typeof o)return void o.call(n,(function(t){i(e,t)}),(function(n){r[e]={status:"rejected",reason:n},0==--a&&t(r)}))}r[e]={status:"fulfilled",value:n},0==--a&&t(r)}for(var o=0;o<r.length;o++)i(o,r[o])}))}!function(e,t,n){var r=-1!==e.indexOf("Map"),a=-1!==e.indexOf("Weak"),i=r?"set":"add",o=C[e],s=o&&o.prototype,l=o,c={},u=function(e){var t=F(s[e]);Ct(s,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(a&&!ee(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return a&&!ee(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(a&&!ee(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Jt(e,!J(o)||!(a||s.forEach&&!A((function(){(new o).entries().next()})))))l=n.getConstructor(t,e,r,i),uo.enable();else if(Jt(e,!0)){var d=new l,p=d[i](a?{}:-0,1)!=d,h=A((function(){d.has(1)})),f=yi((function(e){new o(e)})),m=!a&&A((function(){for(var e=new o,t=5;t--;)e[i](t,t);return!e.has(-0)}));f||((l=t((function(e,t){vo(e,s);var n=function(e,t,n){var r,a;return qa&&J(r=t.constructor)&&r!==n&&ee(a=r.prototype)&&a!==n.prototype&&qa(e,a),e}(new o,e,l);return H(t)||mo(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=l),(h||m)&&(u("delete"),u("has"),r&&u("get")),(m||p)&&u(i),a&&s.clear&&delete s.clear}c[e]=l,en({global:!0,constructor:!0,forced:l!=o},c),fr(l,e),a||n.setStrong(l,e,r)}("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Ao),lr.Set;var jo=setTimeout;function Eo(e){return Boolean(e&&void 0!==e.length)}function Po(){}function No(e){if(!(this instanceof No))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],Oo(e,this)}function Do(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,No._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void _o(t.promise,e)}Mo(t.promise,r)}else(1===e._state?Mo:_o)(t.promise,e._value)}))):e._deferreds.push(t)}function Mo(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof No)return e._state=3,e._value=t,void Io(e);if("function"==typeof n)return void Oo((r=n,a=t,function(){r.apply(a,arguments)}),e)}e._state=1,e._value=t,Io(e)}catch(t){_o(e,t)}var r,a}function _o(e,t){e._state=2,e._value=t,Io(e)}function Io(e){2===e._state&&0===e._deferreds.length&&No._immediateFn((function(){e._handled||No._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)Do(e,e._deferreds[t]);e._deferreds=null}function Ro(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function Oo(e,t){var n=!1;try{e((function(e){n||(n=!0,Mo(t,e))}),(function(e){n||(n=!0,_o(t,e))}))}catch(e){if(n)return;n=!0,_o(t,e)}}No.prototype.catch=function(e){return this.then(null,e)},No.prototype.then=function(e,t){var n=new this.constructor(Po);return Do(this,new Ro(e,t,n)),n},No.prototype.finally=ko,No.all=function(e){return new No((function(t,n){if(!Eo(e))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var a=r.length;function i(e,o){try{if(o&&("object"==typeof o||"function"==typeof o)){var s=o.then;if("function"==typeof s)return void s.call(o,(function(t){i(e,t)}),n)}r[e]=o,0==--a&&t(r)}catch(e){n(e)}}for(var o=0;o<r.length;o++)i(o,r[o])}))},No.allSettled=To,No.resolve=function(e){return e&&"object"==typeof e&&e.constructor===No?e:new No((function(t){t(e)}))},No.reject=function(e){return new No((function(t,n){n(e)}))},No.race=function(e){return new No((function(t,n){if(!Eo(e))return n(new TypeError("Promise.race accepts an array"));for(var r=0,a=e.length;r<a;r++)No.resolve(e[r]).then(t,n)}))},No._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){jo(e,0)},No._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var Lo=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof n.g)return n.g;throw new Error("unable to locate global object")}();"function"!=typeof Lo.Promise?Lo.Promise=No:(Lo.Promise.prototype.finally||(Lo.Promise.prototype.finally=ko),Lo.Promise.allSettled||(Lo.Promise.allSettled=To)),function(e){function t(e){for(var t=0,n=Math.min(65536,e.length+1),r=new Uint16Array(n),a=[],i=0;;){var o=t<e.length;if(!o||i>=n-1){var s=r.subarray(0,i);if(a.push(String.fromCharCode.apply(null,s)),!o)return a.join("");e=e.subarray(t),t=0,i=0}var l=e[t++];if(0==(128&l))r[i++]=l;else if(192==(224&l)){var c=63&e[t++];r[i++]=(31&l)<<6|c}else if(224==(240&l)){c=63&e[t++];var u=63&e[t++];r[i++]=(31&l)<<12|c<<6|u}else if(240==(248&l)){var d=(7&l)<<18|(c=63&e[t++])<<12|(u=63&e[t++])<<6|63&e[t++];d>65535&&(d-=65536,r[i++]=d>>>10&1023|55296,d=56320|1023&d),r[i++]=d}}}var n="Failed to ",r=function(e,t,r){if(e)throw new Error("".concat(n).concat(t,": the '").concat(r,"' option is unsupported."))},a="function"==typeof Buffer&&Buffer.from,i=a?function(e){return Buffer.from(e)}:function(e){for(var t=0,n=e.length,r=0,a=Math.max(32,n+(n>>>1)+7),i=new Uint8Array(a>>>3<<3);t<n;){var o=e.charCodeAt(t++);if(o>=55296&&o<=56319){if(t<n){var s=e.charCodeAt(t);56320==(64512&s)&&(++t,o=((1023&o)<<10)+(1023&s)+65536)}if(o>=55296&&o<=56319)continue}if(r+4>i.length){a+=8,a=(a*=1+t/e.length*2)>>>3<<3;var l=new Uint8Array(a);l.set(i),i=l}if(0!=(4294967168&o)){if(0==(4294965248&o))i[r++]=o>>>6&31|192;else if(0==(4294901760&o))i[r++]=o>>>12&15|224,i[r++]=o>>>6&63|128;else{if(0!=(4292870144&o))continue;i[r++]=o>>>18&7|240,i[r++]=o>>>12&63|128,i[r++]=o>>>6&63|128}i[r++]=63&o|128}else i[r++]=o}return i.slice?i.slice(0,r):i.subarray(0,r)};function o(){this.encoding="utf-8"}o.prototype.encode=function(e,t){return r(t&&t.stream,"encode","stream"),i(e)};var s=!a&&"function"==typeof Blob&&"function"==typeof URL&&"function"==typeof URL.createObjectURL,l=["utf-8","utf8","unicode-1-1-utf-8"],c=t;a?c=function(e,t){return(e instanceof Buffer?e:Buffer.from(e.buffer,e.byteOffset,e.byteLength)).toString(t)}:s&&(c=function(e){try{return function(e){var t;try{var n=new Blob([e],{type:"text/plain;charset=UTF-8"});t=URL.createObjectURL(n);var r=new XMLHttpRequest;return r.open("GET",t,!1),r.send(),r.responseText}finally{t&&URL.revokeObjectURL(t)}}(e)}catch(n){return t(e)}});var u="construct 'TextDecoder'",d="".concat(n," ").concat(u,": the ");function p(e,t){if(r(t&&t.fatal,u,"fatal"),e=e||"utf-8",!(a?Buffer.isEncoding(e):-1!==l.indexOf(e.toLowerCase())))throw new RangeError("".concat(d," encoding label provided ('").concat(e,"') is invalid."));this.encoding=e,this.fatal=!1,this.ignoreBOM=!1}p.prototype.decode=function(e,t){var n;return r(t&&t.stream,"decode","stream"),n=e instanceof Uint8Array?e:e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer):new Uint8Array(e),c(n,this.encoding)},e.TextEncoder=e.TextEncoder||o,e.TextDecoder=e.TextDecoder||p}("undefined"!=typeof window?window:v),function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(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,r.key,r)}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}function r(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}}),t&&i(e,t)}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){var t=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}}();return function(){var n,r=a(e);if(t){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?o(e):t}(this,n)}}function l(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=a(e)););return e}function c(e,t,n){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=l(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}},c(e,t,n||e)}var u=function(){function t(){e(this,t),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return n(t,[{key:"addEventListener",value:function(e,t,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:n})}},{key:"removeEventListener",value:function(e,t){if(e in this.listeners)for(var n=this.listeners[e],r=0,a=n.length;r<a;r++)if(n[r].callback===t)return void n.splice(r,1)}},{key:"dispatchEvent",value:function(e){if(e.type in this.listeners){for(var t=this.listeners[e.type].slice(),n=0,r=t.length;n<r;n++){var a=t[n];try{a.callback.call(this,e)}catch(e){Promise.resolve().then((function(){throw e}))}a.options&&a.options.once&&this.removeEventListener(e.type,a.callback)}return!e.defaultPrevented}}}]),t}(),d=function(t){r(l,t);var i=s(l);function l(){var t;return e(this,l),(t=i.call(this)).listeners||u.call(o(t)),Object.defineProperty(o(t),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(o(t),"onabort",{value:null,writable:!0,configurable:!0}),t}return n(l,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(e){"abort"===e.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,e)),c(a(l.prototype),"dispatchEvent",this).call(this,e)}}]),l}(u),p=function(){function t(){e(this,t),Object.defineProperty(this,"signal",{value:new d,writable:!0,configurable:!0})}return n(t,[{key:"abort",value:function(){var e;try{e=new Event("abort")}catch(t){"undefined"!=typeof document?document.createEvent?(e=document.createEvent("Event")).initEvent("abort",!1,!1):(e=document.createEventObject()).type="abort":e={type:"abort",bubbles:!1,cancelable:!1}}this.signal.dispatchEvent(e)}},{key:"toString",value:function(){return"[object AbortController]"}}]),t}();"undefined"!=typeof Symbol&&Symbol.toStringTag&&(p.prototype[Symbol.toStringTag]="AbortController",d.prototype[Symbol.toStringTag]="AbortSignal"),function(e){(function(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof e.Request&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController})(e)&&(e.AbortController=p,e.AbortSignal=d)}("undefined"!=typeof self?self:v)}();var Fo=b((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){var e=this;this.locked=new Map,this.addToLocked=function(t,n){var r=e.locked.get(t);void 0===r?void 0===n?e.locked.set(t,[]):e.locked.set(t,[n]):void 0!==n&&(r.unshift(n),e.locked.set(t,r))},this.isLocked=function(t){return e.locked.has(t)},this.lock=function(t){return new Promise((function(n,r){e.isLocked(t)?e.addToLocked(t,n):(e.addToLocked(t),n())}))},this.unlock=function(t){var n=e.locked.get(t);if(void 0!==n&&0!==n.length){var r=n.pop();e.locked.set(t,n),void 0!==r&&setTimeout(r,0)}else e.locked.delete(t)}}return e.getInstance=function(){return void 0===e.instance&&(e.instance=new e),e.instance},e}();t.default=function(){return n.getInstance()}}));y(Fo);var Bo=b((function(e,t){var n=v&&v.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?a(e.value):new n((function(t){t(e.value)})).then(o,s)}l((r=r.apply(e,t||[])).next())}))},r=v&&v.__generator||function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var a="browser-tabs-lock-key";function i(e){return new Promise((function(t){return setTimeout(t,e)}))}function o(e){for(var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",n="",r=0;r<e;r++)n+=t[Math.floor(61*Math.random())];return n}var s=function(){function e(){this.acquiredIatSet=new Set,this.id=Date.now().toString()+o(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),void 0===e.waiters&&(e.waiters=[])}return e.prototype.acquireLock=function(t,s){return void 0===s&&(s=5e3),n(this,void 0,void 0,(function(){var n,l,c,u,d,p;return r(this,(function(r){switch(r.label){case 0:n=Date.now()+o(4),l=Date.now()+s,c=a+"-"+t,u=window.localStorage,r.label=1;case 1:return Date.now()<l?[4,i(30)]:[3,8];case 2:return r.sent(),null!==u.getItem(c)?[3,5]:(d=this.id+"-"+t+"-"+n,[4,i(Math.floor(25*Math.random()))]);case 3:return r.sent(),u.setItem(c,JSON.stringify({id:this.id,iat:n,timeoutKey:d,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,i(30)];case 4:return r.sent(),null!==(p=u.getItem(c))&&(p=JSON.parse(p)).id===this.id&&p.iat===n?(this.acquiredIatSet.add(n),this.refreshLockWhileAcquired(c,n),[2,!0]):[3,7];case 5:return e.lockCorrector(),[4,this.waitForSomethingToChange(l)];case 6:r.sent(),r.label=7;case 7:return n=Date.now()+o(4),[3,1];case 8:return[2,!1]}}))}))},e.prototype.refreshLockWhileAcquired=function(e,t){return n(this,void 0,void 0,(function(){var a=this;return r(this,(function(i){return setTimeout((function(){return n(a,void 0,void 0,(function(){var n,a;return r(this,(function(r){switch(r.label){case 0:return[4,Fo.default().lock(t)];case 1:return r.sent(),this.acquiredIatSet.has(t)?(n=window.localStorage,null===(a=n.getItem(e))?(Fo.default().unlock(t),[2]):((a=JSON.parse(a)).timeRefreshed=Date.now(),n.setItem(e,JSON.stringify(a)),Fo.default().unlock(t),this.refreshLockWhileAcquired(e,t),[2])):(Fo.default().unlock(t),[2])}}))}))}),1e3),[2]}))}))},e.prototype.waitForSomethingToChange=function(t){return n(this,void 0,void 0,(function(){return r(this,(function(n){switch(n.label){case 0:return[4,new Promise((function(n){var r=!1,a=Date.now(),i=!1;function o(){if(i||(window.removeEventListener("storage",o),e.removeFromWaiting(o),clearTimeout(s),i=!0),!r){r=!0;var t=50-(Date.now()-a);t>0?setTimeout(n,t):n()}}window.addEventListener("storage",o),e.addToWaiting(o);var s=setTimeout(o,Math.max(0,t-Date.now()))}))];case 1:return n.sent(),[2]}}))}))},e.addToWaiting=function(t){this.removeFromWaiting(t),void 0!==e.waiters&&e.waiters.push(t)},e.removeFromWaiting=function(t){void 0!==e.waiters&&(e.waiters=e.waiters.filter((function(e){return e!==t})))},e.notifyWaiters=function(){void 0!==e.waiters&&e.waiters.slice().forEach((function(e){return e()}))},e.prototype.releaseLock=function(e){return n(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,this.releaseLock__private__(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.releaseLock__private__=function(t){return n(this,void 0,void 0,(function(){var n,i,o;return r(this,(function(r){switch(r.label){case 0:return n=window.localStorage,i=a+"-"+t,null===(o=n.getItem(i))?[2]:(o=JSON.parse(o)).id!==this.id?[3,2]:[4,Fo.default().lock(o.iat)];case 1:r.sent(),this.acquiredIatSet.delete(o.iat),n.removeItem(i),Fo.default().unlock(o.iat),e.notifyWaiters(),r.label=2;case 2:return[2]}}))}))},e.lockCorrector=function(){for(var t=Date.now()-5e3,n=window.localStorage,r=Object.keys(n),i=!1,o=0;o<r.length;o++){var s=r[o];if(s.includes(a)){var l=n.getItem(s);null!==l&&(void 0===(l=JSON.parse(l)).timeRefreshed&&l.timeAcquired<t||void 0!==l.timeRefreshed&&l.timeRefreshed<t)&&(n.removeItem(s),i=!0)}}i&&e.notifyWaiters()},e.waiters=void 0,e}();t.default=s})),zo=y(Bo),Vo={timeoutInSeconds:60},Wo=["login_required","consent_required","interaction_required","account_selection_required","access_denied"],Uo={name:"auth0-spa-js",version:"1.22.6"},$o=function(){return Date.now()},Ho=function(e){function t(n,r){var a=e.call(this,r)||this;return a.error=n,a.error_description=r,Object.setPrototypeOf(a,t.prototype),a}return u(t,e),t.fromPayload=function(e){return new t(e.error,e.error_description)},t}(Error),qo=function(e){function t(n,r,a,i){void 0===i&&(i=null);var o=e.call(this,n,r)||this;return o.state=a,o.appState=i,Object.setPrototypeOf(o,t.prototype),o}return u(t,e),t}(Ho),Go=function(e){function t(){var n=e.call(this,"timeout","Timeout")||this;return Object.setPrototypeOf(n,t.prototype),n}return u(t,e),t}(Ho),Ko=function(e){function t(n){var r=e.call(this)||this;return r.popup=n,Object.setPrototypeOf(r,t.prototype),r}return u(t,e),t}(Go),Yo=function(e){function t(n){var r=e.call(this,"cancelled","Popup closed")||this;return r.popup=n,Object.setPrototypeOf(r,t.prototype),r}return u(t,e),t}(Ho),Xo=function(e){function t(n,r,a){var i=e.call(this,n,r)||this;return i.mfa_token=a,Object.setPrototypeOf(i,t.prototype),i}return u(t,e),t}(Ho),Zo=function(e){function t(n,r){var a=e.call(this,"missing_refresh_token","Missing Refresh Token (audience: '".concat(ss(n,["default"]),"', scope: '").concat(ss(r),"')"))||this;return a.audience=n,a.scope=r,Object.setPrototypeOf(a,t.prototype),a}return u(t,e),t}(Ho),Jo=function(e){return new Promise((function(t,n){var r,a=setInterval((function(){e.popup&&e.popup.closed&&(clearInterval(a),clearTimeout(i),window.removeEventListener("message",r,!1),n(new Yo(e.popup)))}),1e3),i=setTimeout((function(){clearInterval(a),n(new Ko(e.popup)),window.removeEventListener("message",r,!1)}),1e3*(e.timeoutInSeconds||60));r=function(o){if(o.data&&"authorization_response"===o.data.type){if(clearTimeout(i),clearInterval(a),window.removeEventListener("message",r,!1),e.popup.close(),o.data.response.error)return n(Ho.fromPayload(o.data.response));t(o.data.response)}},window.addEventListener("message",r)}))},Qo=function(){return window.crypto||window.msCrypto},es=function(){var e=Qo();return e.subtle||e.webkitSubtle},ts=function(){var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.",t="";return Array.from(Qo().getRandomValues(new Uint8Array(43))).forEach((function(n){return t+=e[n%66]})),t},ns=function(e){return btoa(e)},rs=function(e){return Object.keys(e).filter((function(t){return void 0!==e[t]})).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")},as=function(e){return h(void 0,void 0,void 0,(function(){var t;return f(this,(function(n){switch(n.label){case 0:return t=es().digest({name:"SHA-256"},(new TextEncoder).encode(e)),window.msCrypto?[2,new Promise((function(e,n){t.oncomplete=function(t){e(t.target.result)},t.onerror=function(e){n(e.error)},t.onabort=function(){n("The digest operation was aborted")}}))]:[4,t];case 1:return[2,n.sent()]}}))}))},is=function(e){return function(e){return decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}(e.replace(/_/g,"/").replace(/-/g,"+"))},os=function(e){var t=new Uint8Array(e);return function(e){var t={"+":"-","/":"_","=":""};return e.replace(/[+/=]/g,(function(e){return t[e]}))}(window.btoa(String.fromCharCode.apply(String,g([],m(Array.from(t)),!1))))};function ss(e,t){return void 0===t&&(t=[]),e&&!t.includes(e)?e:""}var ls=function(e,t){return h(void 0,void 0,void 0,(function(){var n,r;return f(this,(function(a){switch(a.label){case 0:return[4,(i=e,o=t,o=o||{},new Promise((function(e,t){var n=new XMLHttpRequest,r=[],a=[],s={},l=function(){return{ok:2==(n.status/100|0),statusText:n.statusText,status:n.status,url:n.responseURL,text:function(){return Promise.resolve(n.responseText)},json:function(){return Promise.resolve(n.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([n.response]))},clone:l,headers:{keys:function(){return r},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var c in n.open(o.method||"get",i,!0),n.onload=function(){n.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){r.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n})),e(l())},n.onerror=t,n.withCredentials="include"==o.credentials,o.headers)n.setRequestHeader(c,o.headers[c]);n.send(o.body||null)})))];case 1:return n=a.sent(),r={ok:n.ok},[4,n.json()];case 2:return[2,(r.json=a.sent(),r)]}var i,o}))}))},cs=function(e,t,n){return h(void 0,void 0,void 0,(function(){var r,a;return f(this,(function(i){return r=new AbortController,t.signal=r.signal,[2,Promise.race([ls(e,t),new Promise((function(e,t){a=setTimeout((function(){r.abort(),t(new Error("Timeout when executing 'fetch'"))}),n)}))]).finally((function(){clearTimeout(a)}))]}))}))},us=function(e,t,n,r,a,i,o){return h(void 0,void 0,void 0,(function(){return f(this,(function(s){return[2,(l={auth:{audience:t,scope:n},timeout:a,fetchUrl:e,fetchOptions:r,useFormData:o},c=i,new Promise((function(e,t){var n=new MessageChannel;n.port1.onmessage=function(r){r.data.error?t(new Error(r.data.error)):e(r.data),n.port1.close()},c.postMessage(l,[n.port2])})))];var l,c}))}))},ds=function(e,t,n,r,a,i,o){return void 0===o&&(o=1e4),h(void 0,void 0,void 0,(function(){return f(this,(function(s){return a?[2,us(e,t,n,r,o,a,i)]:[2,cs(e,r,o)]}))}))};function ps(e,t,n,r,a,i,o){return h(this,void 0,void 0,(function(){var s,l,c,u,d,h,m,g,v;return f(this,(function(f){switch(f.label){case 0:s=null,c=0,f.label=1;case 1:if(!(c<3))return[3,6];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,ds(e,n,r,a,i,o,t)];case 3:return l=f.sent(),s=null,[3,6];case 4:return u=f.sent(),s=u,[3,5];case 5:return c++,[3,1];case 6:if(s)throw s.message=s.message||"Failed to fetch",s;if(d=l.json,h=d.error,m=d.error_description,g=p(d,["error","error_description"]),!l.ok){if(v=m||"HTTP error. Unable to fetch ".concat(e),"mfa_required"===h)throw new Xo(h,v,g.mfa_token);throw new Ho(h||"request_error",v)}return[2,g]}}))}))}function hs(e,t){var n=e.baseUrl,r=e.timeout,a=e.audience,i=e.scope,o=e.auth0Client,s=e.useFormData,l=p(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);return h(this,void 0,void 0,(function(){var e;return f(this,(function(c){switch(c.label){case 0:return e=s?rs(l):JSON.stringify(l),[4,ps("".concat(n,"/oauth/token"),r,a||"default",i,{method:"POST",body:e,headers:{"Content-Type":s?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(o||Uo))}},t,s)];case 1:return[2,c.sent()]}}))}))}var fs=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(e){return Array.from(new Set(e))}(e.join(" ").trim().split(/\s+/)).join(" ")},ms=function(){function e(e,t){void 0===t&&(t="@@auth0spajs@@"),this.prefix=t,this.client_id=e.client_id,this.scope=e.scope,this.audience=e.audience}return e.prototype.toKey=function(){return"".concat(this.prefix,"::").concat(this.client_id,"::").concat(this.audience,"::").concat(this.scope)},e.fromKey=function(t){var n=m(t.split("::"),4),r=n[0],a=n[1],i=n[2];return new e({client_id:a,scope:n[3],audience:i},r)},e.fromCacheEntry=function(t){return new e({scope:t.scope,audience:t.audience,client_id:t.client_id})},e}(),gs=function(){function e(){}return e.prototype.set=function(e,t){localStorage.setItem(e,JSON.stringify(t))},e.prototype.get=function(e){var t=window.localStorage.getItem(e);if(t)try{return JSON.parse(t)}catch(e){return}},e.prototype.remove=function(e){localStorage.removeItem(e)},e.prototype.allKeys=function(){return Object.keys(window.localStorage).filter((function(e){return e.startsWith("@@auth0spajs@@")}))},e}(),vs=function(){var e;this.enclosedCache=(e={},{set:function(t,n){e[t]=n},get:function(t){var n=e[t];if(n)return n},remove:function(t){delete e[t]},allKeys:function(){return Object.keys(e)}})},ys=function(){function e(e,t,n){this.cache=e,this.keyManifest=t,this.nowProvider=n,this.nowProvider=this.nowProvider||$o}return e.prototype.get=function(e,t){var n;return void 0===t&&(t=0),h(this,void 0,void 0,(function(){var r,a,i,o,s;return f(this,(function(l){switch(l.label){case 0:return[4,this.cache.get(e.toKey())];case 1:return(r=l.sent())?[3,4]:[4,this.getCacheKeys()];case 2:return(a=l.sent())?(i=this.matchExistingCacheKey(e,a))?[4,this.cache.get(i)]:[3,4]:[2];case 3:r=l.sent(),l.label=4;case 4:return r?[4,this.nowProvider()]:[2];case 5:return o=l.sent(),s=Math.floor(o/1e3),r.expiresAt-t<s?r.body.refresh_token?(r.body={refresh_token:r.body.refresh_token},[4,this.cache.set(e.toKey(),r)]):[3,7]:[3,10];case 6:return l.sent(),[2,r.body];case 7:return[4,this.cache.remove(e.toKey())];case 8:return l.sent(),[4,null===(n=this.keyManifest)||void 0===n?void 0:n.remove(e.toKey())];case 9:return l.sent(),[2];case 10:return[2,r.body]}}))}))},e.prototype.set=function(e){var t;return h(this,void 0,void 0,(function(){var n,r;return f(this,(function(a){switch(a.label){case 0:return n=new ms({client_id:e.client_id,scope:e.scope,audience:e.audience}),[4,this.wrapCacheEntry(e)];case 1:return r=a.sent(),[4,this.cache.set(n.toKey(),r)];case 2:return a.sent(),[4,null===(t=this.keyManifest)||void 0===t?void 0:t.add(n.toKey())];case 3:return a.sent(),[2]}}))}))},e.prototype.clear=function(e){var t;return h(this,void 0,void 0,(function(){var n,r=this;return f(this,(function(a){switch(a.label){case 0:return[4,this.getCacheKeys()];case 1:return(n=a.sent())?[4,n.filter((function(t){return!e||t.includes(e)})).reduce((function(e,t){return h(r,void 0,void 0,(function(){return f(this,(function(n){switch(n.label){case 0:return[4,e];case 1:return n.sent(),[4,this.cache.remove(t)];case 2:return n.sent(),[2]}}))}))}),Promise.resolve())]:[2];case 2:return a.sent(),[4,null===(t=this.keyManifest)||void 0===t?void 0:t.clear()];case 3:return a.sent(),[2]}}))}))},e.prototype.clearSync=function(e){var t=this,n=this.cache.allKeys();n&&n.filter((function(t){return!e||t.includes(e)})).forEach((function(e){t.cache.remove(e)}))},e.prototype.wrapCacheEntry=function(e){return h(this,void 0,void 0,(function(){var t,n,r;return f(this,(function(a){switch(a.label){case 0:return[4,this.nowProvider()];case 1:return t=a.sent(),n=Math.floor(t/1e3)+e.expires_in,r=Math.min(n,e.decodedToken.claims.exp),[2,{body:e,expiresAt:r}]}}))}))},e.prototype.getCacheKeys=function(){var e;return h(this,void 0,void 0,(function(){var t;return f(this,(function(n){switch(n.label){case 0:return this.keyManifest?[4,this.keyManifest.get()]:[3,2];case 1:return t=null===(e=n.sent())||void 0===e?void 0:e.keys,[3,4];case 2:return[4,this.cache.allKeys()];case 3:t=n.sent(),n.label=4;case 4:return[2,t]}}))}))},e.prototype.matchExistingCacheKey=function(e,t){return t.filter((function(t){var n=ms.fromKey(t),r=new Set(n.scope&&n.scope.split(" ")),a=e.scope.split(" "),i=n.scope&&a.reduce((function(e,t){return e&&r.has(t)}),!0);return"@@auth0spajs@@"===n.prefix&&n.client_id===e.client_id&&n.audience===e.audience&&i}))[0]},e}(),bs=function(){function e(e,t){this.storage=e,this.clientId=t,this.storageKey="".concat("a0.spajs.txs",".").concat(this.clientId),this.transaction=this.storage.get(this.storageKey)}return e.prototype.create=function(e){this.transaction=e,this.storage.save(this.storageKey,e,{daysUntilExpire:1})},e.prototype.get=function(){return this.transaction},e.prototype.remove=function(){delete this.transaction,this.storage.remove(this.storageKey)},e}(),xs=function(e){return"number"==typeof e},ws=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"],Ss=function(e){if(!e.id_token)throw new Error("ID token is required but missing");var t=function(e){var t=e.split("."),n=m(t,3),r=n[0],a=n[1],i=n[2];if(3!==t.length||!r||!a||!i)throw new Error("ID token could not be decoded");var o=JSON.parse(is(a)),s={__raw:e},l={};return Object.keys(o).forEach((function(e){s[e]=o[e],ws.includes(e)||(l[e]=o[e])})),{encoded:{header:r,payload:a,signature:i},header:JSON.parse(is(r)),claims:s,user:l}}(e.id_token);if(!t.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(t.claims.iss!==e.iss)throw new Error('Issuer (iss) claim mismatch in the ID token; expected "'.concat(e.iss,'", found "').concat(t.claims.iss,'"'));if(!t.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if("RS256"!==t.header.alg)throw new Error('Signature algorithm of "'.concat(t.header.alg,'" is not supported. Expected the ID token to be signed with "RS256".'));if(!t.claims.aud||"string"!=typeof t.claims.aud&&!Array.isArray(t.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(t.claims.aud)){if(!t.claims.aud.includes(e.aud))throw new Error('Audience (aud) claim mismatch in the ID token; expected "'.concat(e.aud,'" but was not one of "').concat(t.claims.aud.join(", "),'"'));if(t.claims.aud.length>1){if(!t.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(t.claims.azp!==e.aud)throw new Error('Authorized Party (azp) claim mismatch in the ID token; expected "'.concat(e.aud,'", found "').concat(t.claims.azp,'"'))}}else if(t.claims.aud!==e.aud)throw new Error('Audience (aud) claim mismatch in the ID token; expected "'.concat(e.aud,'" but found "').concat(t.claims.aud,'"'));if(e.nonce){if(!t.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(t.claims.nonce!==e.nonce)throw new Error('Nonce (nonce) claim mismatch in the ID token; expected "'.concat(e.nonce,'", found "').concat(t.claims.nonce,'"'))}if(e.max_age&&!xs(t.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(!xs(t.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!xs(t.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");var n=e.leeway||60,r=new Date(e.now||Date.now()),a=new Date(0),i=new Date(0),o=new Date(0);if(o.setUTCSeconds(parseInt(t.claims.auth_time)+e.max_age+n),a.setUTCSeconds(t.claims.exp+n),i.setUTCSeconds(t.claims.nbf-n),r>a)throw new Error("Expiration Time (exp) claim error in the ID token; current time (".concat(r,") is after expiration time (").concat(a,")"));if(xs(t.claims.nbf)&&r<i)throw new Error("Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Currrent time (".concat(r,") is before ").concat(i));if(xs(t.claims.auth_time)&&r>o)throw new Error("Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Currrent time (".concat(r,") is after last auth at ").concat(o));if(e.organizationId){if(!t.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(e.organizationId!==t.claims.org_id)throw new Error('Organization ID (org_id) claim mismatch in the ID token; expected "'.concat(e.organizationId,'", found "').concat(t.claims.org_id,'"'))}return t},Cs=b((function(e,t){var n=v&&v.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};function r(e,t){if(!t)return"";var n="; "+e;return!0===t?n:n+"="+t}function a(e,t,n){return encodeURIComponent(e).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(t).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(e){if("number"==typeof e.expires){var t=new Date;t.setMilliseconds(t.getMilliseconds()+864e5*e.expires),e.expires=t}return r("Expires",e.expires?e.expires.toUTCString():"")+r("Domain",e.domain)+r("Path",e.path)+r("Secure",e.secure)+r("SameSite",e.sameSite)}(n)}function i(e){for(var t={},n=e?e.split("; "):[],r=/(%[\dA-F]{2})+/gi,a=0;a<n.length;a++){var i=n[a].split("="),o=i.slice(1).join("=");'"'===o.charAt(0)&&(o=o.slice(1,-1));try{t[i[0].replace(r,decodeURIComponent)]=o.replace(r,decodeURIComponent)}catch(e){}}return t}function o(){return i(document.cookie)}function s(e,t,r){document.cookie=a(e,t,n({path:"/"},r))}t.__esModule=!0,t.encode=a,t.parse=i,t.getAll=o,t.get=function(e){return o()[e]},t.set=s,t.remove=function(e,t){s(e,"",n(n({},t),{expires:-1}))}}));y(Cs),Cs.encode,Cs.parse,Cs.getAll;var As=Cs.get,ks=Cs.set,Ts=Cs.remove,js={get:function(e){var t=As(e);if(void 0!==t)return JSON.parse(t)},save:function(e,t,n){var r={};"https:"===window.location.protocol&&(r={secure:!0,sameSite:"none"}),(null==n?void 0:n.daysUntilExpire)&&(r.expires=n.daysUntilExpire),(null==n?void 0:n.cookieDomain)&&(r.domain=n.cookieDomain),ks(e,JSON.stringify(t),r)},remove:function(e,t){var n={};(null==t?void 0:t.cookieDomain)&&(n.domain=t.cookieDomain),Ts(e,n)}},Es={get:function(e){return js.get(e)||js.get("".concat("_legacy_").concat(e))},save:function(e,t,n){var r={};"https:"===window.location.protocol&&(r={secure:!0}),(null==n?void 0:n.daysUntilExpire)&&(r.expires=n.daysUntilExpire),ks("".concat("_legacy_").concat(e),JSON.stringify(t),r),js.save(e,t,n)},remove:function(e,t){var n={};(null==t?void 0:t.cookieDomain)&&(n.domain=t.cookieDomain),Ts(e,n),js.remove(e,t),js.remove("".concat("_legacy_").concat(e),t)}},Ps={get:function(e){if("undefined"!=typeof sessionStorage){var t=sessionStorage.getItem(e);if(void 0!==t)return JSON.parse(t)}},save:function(e,t){sessionStorage.setItem(e,JSON.stringify(t))},remove:function(e){sessionStorage.removeItem(e)}};var Ns,Ds=function(e){return Ns=Ns||function(e,t,n){var r=void 0===t?null:t,a=function(e,t){var n=atob(e);if(t){for(var r=new Uint8Array(n.length),a=0,i=n.length;a<i;++a)r[a]=n.charCodeAt(a);return String.fromCharCode.apply(null,new Uint16Array(r.buffer))}return n}(e,void 0!==n&&n),i=a.indexOf("\n",10)+1,o=a.substring(i)+(r?"//# sourceMappingURL="+r:""),s=new Blob([o],{type:"application/javascript"});return URL.createObjectURL(s)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7dmFyIHQ9ZnVuY3Rpb24oZSxyKXtyZXR1cm4gdD1PYmplY3Quc2V0UHJvdG90eXBlT2Z8fHtfX3Byb3RvX186W119aW5zdGFuY2VvZiBBcnJheSYmZnVuY3Rpb24odCxlKXt0Ll9fcHJvdG9fXz1lfXx8ZnVuY3Rpb24odCxlKXtmb3IodmFyIHIgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxyKSYmKHRbcl09ZVtyXSl9LHQoZSxyKX07ZnVuY3Rpb24gZShlLHIpe2lmKCJmdW5jdGlvbiIhPXR5cGVvZiByJiZudWxsIT09cil0aHJvdyBuZXcgVHlwZUVycm9yKCJDbGFzcyBleHRlbmRzIHZhbHVlICIrU3RyaW5nKHIpKyIgaXMgbm90IGEgY29uc3RydWN0b3Igb3IgbnVsbCIpO2Z1bmN0aW9uIG4oKXt0aGlzLmNvbnN0cnVjdG9yPWV9dChlLHIpLGUucHJvdG90eXBlPW51bGw9PT1yP09iamVjdC5jcmVhdGUocik6KG4ucHJvdG90eXBlPXIucHJvdG90eXBlLG5ldyBuKX12YXIgcj1mdW5jdGlvbigpe3JldHVybiByPU9iamVjdC5hc3NpZ258fGZ1bmN0aW9uKHQpe2Zvcih2YXIgZSxyPTEsbj1hcmd1bWVudHMubGVuZ3RoO3I8bjtyKyspZm9yKHZhciBvIGluIGU9YXJndW1lbnRzW3JdKU9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChlLG8pJiYodFtvXT1lW29dKTtyZXR1cm4gdH0sci5hcHBseSh0aGlzLGFyZ3VtZW50cyl9O2Z1bmN0aW9uIG4odCxlLHIsbil7cmV0dXJuIG5ldyhyfHwocj1Qcm9taXNlKSkoKGZ1bmN0aW9uKG8sYyl7ZnVuY3Rpb24gaSh0KXt0cnl7cyhuLm5leHQodCkpfWNhdGNoKHQpe2ModCl9fWZ1bmN0aW9uIGEodCl7dHJ5e3Mobi50aHJvdyh0KSl9Y2F0Y2godCl7Yyh0KX19ZnVuY3Rpb24gcyh0KXt2YXIgZTt0LmRvbmU/byh0LnZhbHVlKTooZT10LnZhbHVlLGUgaW5zdGFuY2VvZiByP2U6bmV3IHIoKGZ1bmN0aW9uKHQpe3QoZSl9KSkpLnRoZW4oaSxhKX1zKChuPW4uYXBwbHkodCxlfHxbXSkpLm5leHQoKSl9KSl9ZnVuY3Rpb24gbyh0LGUpe3ZhciByLG4sbyxjLGk9e2xhYmVsOjAsc2VudDpmdW5jdGlvbigpe2lmKDEmb1swXSl0aHJvdyBvWzFdO3JldHVybiBvWzFdfSx0cnlzOltdLG9wczpbXX07cmV0dXJuIGM9e25leHQ6YSgwKSx0aHJvdzphKDEpLHJldHVybjphKDIpfSwiZnVuY3Rpb24iPT10eXBlb2YgU3ltYm9sJiYoY1tTeW1ib2wuaXRlcmF0b3JdPWZ1bmN0aW9uKCl7cmV0dXJuIHRoaXN9KSxjO2Z1bmN0aW9uIGEoYyl7cmV0dXJuIGZ1bmN0aW9uKGEpe3JldHVybiBmdW5jdGlvbihjKXtpZihyKXRocm93IG5ldyBUeXBlRXJyb3IoIkdlbmVyYXRvciBpcyBhbHJlYWR5IGV4ZWN1dGluZy4iKTtmb3IoO2k7KXRyeXtpZihyPTEsbiYmKG89MiZjWzBdP24ucmV0dXJuOmNbMF0/bi50aHJvd3x8KChvPW4ucmV0dXJuKSYmby5jYWxsKG4pLDApOm4ubmV4dCkmJiEobz1vLmNhbGwobixjWzFdKSkuZG9uZSlyZXR1cm4gbztzd2l0Y2gobj0wLG8mJihjPVsyJmNbMF0sby52YWx1ZV0pLGNbMF0pe2Nhc2UgMDpjYXNlIDE6bz1jO2JyZWFrO2Nhc2UgNDpyZXR1cm4gaS5sYWJlbCsrLHt2YWx1ZTpjWzFdLGRvbmU6ITF9O2Nhc2UgNTppLmxhYmVsKyssbj1jWzFdLGM9WzBdO2NvbnRpbnVlO2Nhc2UgNzpjPWkub3BzLnBvcCgpLGkudHJ5cy5wb3AoKTtjb250aW51ZTtkZWZhdWx0OmlmKCEobz1pLnRyeXMsKG89by5sZW5ndGg+MCYmb1tvLmxlbmd0aC0xXSl8fDYhPT1jWzBdJiYyIT09Y1swXSkpe2k9MDtjb250aW51ZX1pZigzPT09Y1swXSYmKCFvfHxjWzFdPm9bMF0mJmNbMV08b1szXSkpe2kubGFiZWw9Y1sxXTticmVha31pZig2PT09Y1swXSYmaS5sYWJlbDxvWzFdKXtpLmxhYmVsPW9bMV0sbz1jO2JyZWFrfWlmKG8mJmkubGFiZWw8b1syXSl7aS5sYWJlbD1vWzJdLGkub3BzLnB1c2goYyk7YnJlYWt9b1syXSYmaS5vcHMucG9wKCksaS50cnlzLnBvcCgpO2NvbnRpbnVlfWM9ZS5jYWxsKHQsaSl9Y2F0Y2godCl7Yz1bNix0XSxuPTB9ZmluYWxseXtyPW89MH1pZig1JmNbMF0pdGhyb3cgY1sxXTtyZXR1cm57dmFsdWU6Y1swXT9jWzFdOnZvaWQgMCxkb25lOiEwfX0oW2MsYV0pfX19ZnVuY3Rpb24gYyh0LGUpe3JldHVybiB2b2lkIDA9PT1lJiYoZT1bXSksdCYmIWUuaW5jbHVkZXModCk/dDoiIn12YXIgaT1mdW5jdGlvbih0KXtmdW5jdGlvbiByKGUsbil7dmFyIG89dC5jYWxsKHRoaXMsbil8fHRoaXM7cmV0dXJuIG8uZXJyb3I9ZSxvLmVycm9yX2Rlc2NyaXB0aW9uPW4sT2JqZWN0LnNldFByb3RvdHlwZU9mKG8sci5wcm90b3R5cGUpLG99cmV0dXJuIGUocix0KSxyLmZyb21QYXlsb2FkPWZ1bmN0aW9uKHQpe3JldHVybiBuZXcgcih0LmVycm9yLHQuZXJyb3JfZGVzY3JpcHRpb24pfSxyfShFcnJvcik7IWZ1bmN0aW9uKHQpe2Z1bmN0aW9uIHIoZSxuLG8sYyl7dm9pZCAwPT09YyYmKGM9bnVsbCk7dmFyIGk9dC5jYWxsKHRoaXMsZSxuKXx8dGhpcztyZXR1cm4gaS5zdGF0ZT1vLGkuYXBwU3RhdGU9YyxPYmplY3Quc2V0UHJvdG90eXBlT2YoaSxyLnByb3RvdHlwZSksaX1lKHIsdCl9KGkpLGZ1bmN0aW9uKHQpe2Z1bmN0aW9uIHIoZSl7dmFyIG49dC5jYWxsKHRoaXMpfHx0aGlzO3JldHVybiBuLnBvcHVwPWUsT2JqZWN0LnNldFByb3RvdHlwZU9mKG4sci5wcm90b3R5cGUpLG59ZShyLHQpfShmdW5jdGlvbih0KXtmdW5jdGlvbiByKCl7dmFyIGU9dC5jYWxsKHRoaXMsInRpbWVvdXQiLCJUaW1lb3V0Iil8fHRoaXM7cmV0dXJuIE9iamVjdC5zZXRQcm90b3R5cGVPZihlLHIucHJvdG90eXBlKSxlfXJldHVybiBlKHIsdCkscn0oaSkpLGZ1bmN0aW9uKHQpe2Z1bmN0aW9uIHIoZSl7dmFyIG49dC5jYWxsKHRoaXMsImNhbmNlbGxlZCIsIlBvcHVwIGNsb3NlZCIpfHx0aGlzO3JldHVybiBuLnBvcHVwPWUsT2JqZWN0LnNldFByb3RvdHlwZU9mKG4sci5wcm90b3R5cGUpLG59ZShyLHQpfShpKSxmdW5jdGlvbih0KXtmdW5jdGlvbiByKGUsbixvKXt2YXIgYz10LmNhbGwodGhpcyxlLG4pfHx0aGlzO3JldHVybiBjLm1mYV90b2tlbj1vLE9iamVjdC5zZXRQcm90b3R5cGVPZihjLHIucHJvdG90eXBlKSxjfWUocix0KX0oaSk7dmFyIGE9ZnVuY3Rpb24odCl7ZnVuY3Rpb24gcihlLG4pe3ZhciBvPXQuY2FsbCh0aGlzLCJtaXNzaW5nX3JlZnJlc2hfdG9rZW4iLCJNaXNzaW5nIFJlZnJlc2ggVG9rZW4gKGF1ZGllbmNlOiAnIi5jb25jYXQoYyhlLFsiZGVmYXVsdCJdKSwiJywgc2NvcGU6ICciKS5jb25jYXQoYyhuKSwiJykiKSl8fHRoaXM7cmV0dXJuIG8uYXVkaWVuY2U9ZSxvLnNjb3BlPW4sT2JqZWN0LnNldFByb3RvdHlwZU9mKG8sci5wcm90b3R5cGUpLG99cmV0dXJuIGUocix0KSxyfShpKSxzPXt9LHU9ZnVuY3Rpb24odCxlKXtyZXR1cm4iIi5jb25jYXQodCwifCIpLmNvbmNhdChlKX07YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGZ1bmN0aW9uKHQpe3ZhciBlPXQuZGF0YSxjPWUudGltZW91dCxpPWUuYXV0aCxmPWUuZmV0Y2hVcmwsbD1lLmZldGNoT3B0aW9ucyxwPWUudXNlRm9ybURhdGEsaD1mdW5jdGlvbih0LGUpe3ZhciByPSJmdW5jdGlvbiI9PXR5cGVvZiBTeW1ib2wmJnRbU3ltYm9sLml0ZXJhdG9yXTtpZighcilyZXR1cm4gdDt2YXIgbixvLGM9ci5jYWxsKHQpLGk9W107dHJ5e2Zvcig7KHZvaWQgMD09PWV8fGUtLSA+MCkmJiEobj1jLm5leHQoKSkuZG9uZTspaS5wdXNoKG4udmFsdWUpfWNhdGNoKHQpe289e2Vycm9yOnR9fWZpbmFsbHl7dHJ5e24mJiFuLmRvbmUmJihyPWMucmV0dXJuKSYmci5jYWxsKGMpfWZpbmFsbHl7aWYobyl0aHJvdyBvLmVycm9yfX1yZXR1cm4gaX0odC5wb3J0cywxKVswXTtyZXR1cm4gbih2b2lkIDAsdm9pZCAwLHZvaWQgMCwoZnVuY3Rpb24oKXt2YXIgdCxlLG4seSx2LGIsZCx3LE8sXztyZXR1cm4gbyh0aGlzLChmdW5jdGlvbihvKXtzd2l0Y2goby5sYWJlbCl7Y2FzZSAwOm49KGU9aXx8e30pLmF1ZGllbmNlLHk9ZS5zY29wZSxvLmxhYmVsPTE7Y2FzZSAxOmlmKG8udHJ5cy5wdXNoKFsxLDcsLDhdKSwhKHY9cD8obT1sLmJvZHksaz1uZXcgVVJMU2VhcmNoUGFyYW1zKG0pLFA9e30say5mb3JFYWNoKChmdW5jdGlvbih0LGUpe1BbZV09dH0pKSxQKTpKU09OLnBhcnNlKGwuYm9keSkpLnJlZnJlc2hfdG9rZW4mJiJyZWZyZXNoX3Rva2VuIj09PXYuZ3JhbnRfdHlwZSl7aWYoYj1mdW5jdGlvbih0LGUpe3JldHVybiBzW3UodCxlKV19KG4seSksIWIpdGhyb3cgbmV3IGEobix5KTtsLmJvZHk9cD9uZXcgVVJMU2VhcmNoUGFyYW1zKHIocih7fSx2KSx7cmVmcmVzaF90b2tlbjpifSkpLnRvU3RyaW5nKCk6SlNPTi5zdHJpbmdpZnkocihyKHt9LHYpLHtyZWZyZXNoX3Rva2VuOmJ9KSl9ZD12b2lkIDAsImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGQ9bmV3IEFib3J0Q29udHJvbGxlcixsLnNpZ25hbD1kLnNpZ25hbCksdz12b2lkIDAsby5sYWJlbD0yO2Nhc2UgMjpyZXR1cm4gby50cnlzLnB1c2goWzIsNCwsNV0pLFs0LFByb21pc2UucmFjZShbKGc9YyxuZXcgUHJvbWlzZSgoZnVuY3Rpb24odCl7cmV0dXJuIHNldFRpbWVvdXQodCxnKX0pKSksZmV0Y2goZixyKHt9LGwpKV0pXTtjYXNlIDM6cmV0dXJuIHc9by5zZW50KCksWzMsNV07Y2FzZSA0OnJldHVybiBPPW8uc2VudCgpLGgucG9zdE1lc3NhZ2Uoe2Vycm9yOk8ubWVzc2FnZX0pLFsyXTtjYXNlIDU6cmV0dXJuIHc/WzQsdy5qc29uKCldOihkJiZkLmFib3J0KCksaC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KSxbMl0pO2Nhc2UgNjpyZXR1cm4odD1vLnNlbnQoKSkucmVmcmVzaF90b2tlbj8oZnVuY3Rpb24odCxlLHIpe3NbdShlLHIpXT10fSh0LnJlZnJlc2hfdG9rZW4sbix5KSxkZWxldGUgdC5yZWZyZXNoX3Rva2VuKTpmdW5jdGlvbih0LGUpe2RlbGV0ZSBzW3UodCxlKV19KG4seSksaC5wb3N0TWVzc2FnZSh7b2s6dy5vayxqc29uOnR9KSxbMyw4XTtjYXNlIDc6cmV0dXJuIF89by5zZW50KCksaC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3JfZGVzY3JpcHRpb246Xy5tZXNzYWdlfX0pLFszLDhdO2Nhc2UgODpyZXR1cm5bMl19dmFyIGcsbSxrLFB9KSl9KSl9KSl9KCk7Cgo=",null,false),new Worker(Ns,e)},Ms={},_s=function(){function e(e,t){this.cache=e,this.clientId=t,this.manifestKey=this.createManifestKeyFrom(this.clientId)}return e.prototype.add=function(e){var t;return h(this,void 0,void 0,(function(){var n,r;return f(this,(function(a){switch(a.label){case 0:return r=Set.bind,[4,this.cache.get(this.manifestKey)];case 1:return(n=new(r.apply(Set,[void 0,(null===(t=a.sent())||void 0===t?void 0:t.keys)||[]]))).add(e),[4,this.cache.set(this.manifestKey,{keys:g([],m(n),!1)})];case 2:return a.sent(),[2]}}))}))},e.prototype.remove=function(e){return h(this,void 0,void 0,(function(){var t,n;return f(this,(function(r){switch(r.label){case 0:return[4,this.cache.get(this.manifestKey)];case 1:return(t=r.sent())?((n=new Set(t.keys)).delete(e),n.size>0?[4,this.cache.set(this.manifestKey,{keys:g([],m(n),!1)})]:[3,3]):[3,5];case 2:case 4:return[2,r.sent()];case 3:return[4,this.cache.remove(this.manifestKey)];case 5:return[2]}}))}))},e.prototype.get=function(){return this.cache.get(this.manifestKey)},e.prototype.clear=function(){return this.cache.remove(this.manifestKey)},e.prototype.createManifestKeyFrom=function(e){return"".concat("@@auth0spajs@@","::").concat(e)},e}(),Is=new zo,Rs={memory:function(){return(new vs).enclosedCache},localstorage:function(){return new gs}},Os=function(e){return Rs[e]},Ls=function(){function e(e){var t,n,r,a,i=this;if(this.options=e,this._releaseLockOnPageHide=function(){return h(i,void 0,void 0,(function(){return f(this,(function(e){switch(e.label){case 0:return[4,Is.releaseLock("auth0.lock.getTokenSilently")];case 1:return e.sent(),window.removeEventListener("pagehide",this._releaseLockOnPageHide),[2]}}))}))},"undefined"!=typeof window&&function(){if(!Qo())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(void 0===es())throw new Error("\n      auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/master/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.\n    ")}(),e.cache&&e.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),e.cache)r=e.cache;else{if(this.cacheLocation=e.cacheLocation||"memory",!Os(this.cacheLocation))throw new Error('Invalid cache location "'.concat(this.cacheLocation,'"'));r=Os(this.cacheLocation)()}this.httpTimeoutMs=e.httpTimeoutInSeconds?1e3*e.httpTimeoutInSeconds:1e4,this.cookieStorage=!1===e.legacySameSiteCookie?js:Es,this.orgHintCookieName=(a=this.options.client_id,"auth0.".concat(a,".organization_hint")),this.isAuthenticatedCookieName=function(e){return"auth0.".concat(e,".is.authenticated")}(this.options.client_id),this.sessionCheckExpiryDays=e.sessionCheckExpiryDays||1;var o,s=e.useCookiesForTransactions?this.cookieStorage:Ps;this.scope=this.options.scope,this.transactionManager=new bs(s,this.options.client_id),this.nowProvider=this.options.nowProvider||$o,this.cacheManager=new ys(r,r.allKeys?null:new _s(r,this.options.client_id),this.nowProvider),this.domainUrl=(o=this.options.domain,/^https?:\/\//.test(o)?o:"https://".concat(o)),this.tokenIssuer=function(e,t){return e?e.startsWith("https://")?e:"https://".concat(e,"/"):"".concat(t,"/")}(this.options.issuer,this.domainUrl),this.defaultScope=fs("openid",void 0!==(null===(n=null===(t=this.options)||void 0===t?void 0:t.advancedOptions)||void 0===n?void 0:n.defaultScope)?this.options.advancedOptions.defaultScope:"openid profile email"),this.options.useRefreshTokens&&(this.scope=fs(this.scope,"offline_access")),"undefined"!=typeof window&&window.Worker&&this.options.useRefreshTokens&&"memory"===this.cacheLocation&&!/Trident.*rv:11\.0/.test(navigator.userAgent)&&(this.worker=new Ds),this.customOptions=function(e){return e.advancedOptions,e.audience,e.auth0Client,e.authorizeTimeoutInSeconds,e.cacheLocation,e.cache,e.client_id,e.domain,e.issuer,e.leeway,e.max_age,e.nowProvider,e.redirect_uri,e.scope,e.useRefreshTokens,e.useRefreshTokensFallback,e.useCookiesForTransactions,e.useFormData,p(e,["advancedOptions","audience","auth0Client","authorizeTimeoutInSeconds","cacheLocation","cache","client_id","domain","issuer","leeway","max_age","nowProvider","redirect_uri","scope","useRefreshTokens","useRefreshTokensFallback","useCookiesForTransactions","useFormData"])}(e),this.useRefreshTokensFallback=!1!==this.options.useRefreshTokensFallback}return e.prototype._url=function(e){var t=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||Uo)));return"".concat(this.domainUrl).concat(e,"&auth0Client=").concat(t)},e.prototype._getParams=function(e,t,n,r,a){var i=this.options;i.useRefreshTokens,i.useCookiesForTransactions,i.useFormData,i.auth0Client,i.cacheLocation,i.advancedOptions,i.detailedResponse,i.nowProvider,i.authorizeTimeoutInSeconds,i.legacySameSiteCookie,i.sessionCheckExpiryDays,i.domain,i.leeway,i.httpTimeoutInSeconds;var o=p(i,["useRefreshTokens","useCookiesForTransactions","useFormData","auth0Client","cacheLocation","advancedOptions","detailedResponse","nowProvider","authorizeTimeoutInSeconds","legacySameSiteCookie","sessionCheckExpiryDays","domain","leeway","httpTimeoutInSeconds"]);return d(d(d({},o),e),{scope:fs(this.defaultScope,this.scope,e.scope),response_type:"code",response_mode:"query",state:t,nonce:n,redirect_uri:a||this.options.redirect_uri,code_challenge:r,code_challenge_method:"S256"})},e.prototype._authorizeUrl=function(e){return this._url("/authorize?".concat(rs(e)))},e.prototype._verifyIdToken=function(e,t,n){return h(this,void 0,void 0,(function(){var r;return f(this,(function(a){switch(a.label){case 0:return[4,this.nowProvider()];case 1:return r=a.sent(),[2,Ss({iss:this.tokenIssuer,aud:this.options.client_id,id_token:e,nonce:t,organizationId:n,leeway:this.options.leeway,max_age:this._parseNumber(this.options.max_age),now:r})]}}))}))},e.prototype._parseNumber=function(e){return"string"!=typeof e?e:parseInt(e,10)||void 0},e.prototype._processOrgIdHint=function(e){e?this.cookieStorage.save(this.orgHintCookieName,e,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})},e.prototype.buildAuthorizeUrl=function(e){return void 0===e&&(e={}),h(this,void 0,void 0,(function(){var t,n,r,a,i,o,s,l,c,u,h,m;return f(this,(function(f){switch(f.label){case 0:return t=e.redirect_uri,n=e.appState,r=p(e,["redirect_uri","appState"]),a=ns(ts()),i=ns(ts()),o=ts(),[4,as(o)];case 1:return s=f.sent(),l=os(s),c=e.fragment?"#".concat(e.fragment):"",u=this._getParams(r,a,i,l,t),h=this._authorizeUrl(u),m=e.organization||this.options.organization,this.transactionManager.create(d({nonce:i,code_verifier:o,appState:n,scope:u.scope,audience:u.audience||"default",redirect_uri:u.redirect_uri,state:a},m&&{organizationId:m})),[2,h+c]}}))}))},e.prototype.loginWithPopup=function(e,t){return h(this,void 0,void 0,(function(){var n,r,a,i,o,s,l,c,u,h,m,g,v;return f(this,(function(f){switch(f.label){case 0:if(e=e||{},!(t=t||{}).popup&&(t.popup=function(){var e=window.screenX+(window.innerWidth-400)/2,t=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup","left=".concat(e,",top=").concat(t,",width=").concat(400,",height=").concat(600,",resizable,scrollbars=yes,status=1"))}(),!t.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");return n=p(e,[]),r=ns(ts()),a=ns(ts()),i=ts(),[4,as(i)];case 1:return o=f.sent(),s=os(o),l=this._getParams(n,r,a,s,this.options.redirect_uri||window.location.origin),c=this._authorizeUrl(d(d({},l),{response_mode:"web_message"})),t.popup.location.href=c,[4,Jo(d(d({},t),{timeoutInSeconds:t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}))];case 2:if(u=f.sent(),r!==u.state)throw new Error("Invalid state");return[4,hs({audience:l.audience,scope:l.scope,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:i,code:u.code,grant_type:"authorization_code",redirect_uri:l.redirect_uri,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},this.worker)];case 3:return h=f.sent(),m=e.organization||this.options.organization,[4,this._verifyIdToken(h.id_token,a,m)];case 4:return g=f.sent(),v=d(d({},h),{decodedToken:g,scope:l.scope,audience:l.audience||"default",client_id:this.options.client_id}),[4,this.cacheManager.set(v)];case 5:return f.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgIdHint(g.claims.org_id),[2]}}))}))},e.prototype.getUser=function(e){return void 0===e&&(e={}),h(this,void 0,void 0,(function(){var t,n,r;return f(this,(function(a){switch(a.label){case 0:return t=e.audience||this.options.audience||"default",n=fs(this.defaultScope,this.scope,e.scope),[4,this.cacheManager.get(new ms({client_id:this.options.client_id,audience:t,scope:n}))];case 1:return[2,(r=a.sent())&&r.decodedToken&&r.decodedToken.user]}}))}))},e.prototype.getIdTokenClaims=function(e){return void 0===e&&(e={}),h(this,void 0,void 0,(function(){var t,n,r;return f(this,(function(a){switch(a.label){case 0:return t=e.audience||this.options.audience||"default",n=fs(this.defaultScope,this.scope,e.scope),[4,this.cacheManager.get(new ms({client_id:this.options.client_id,audience:t,scope:n}))];case 1:return[2,(r=a.sent())&&r.decodedToken&&r.decodedToken.claims]}}))}))},e.prototype.loginWithRedirect=function(e){return void 0===e&&(e={}),h(this,void 0,void 0,(function(){var t,n,r;return f(this,(function(a){switch(a.label){case 0:return t=e.redirectMethod,n=p(e,["redirectMethod"]),[4,this.buildAuthorizeUrl(n)];case 1:return r=a.sent(),window.location[t||"assign"](r),[2]}}))}))},e.prototype.handleRedirectCallback=function(e){return void 0===e&&(e=window.location.href),h(this,void 0,void 0,(function(){var t,n,r,a,i,o,s,l,c,u;return f(this,(function(p){switch(p.label){case 0:if(0===(t=e.split("?").slice(1)).length)throw new Error("There are no query params available for parsing.");if(n=function(e){e.indexOf("#")>-1&&(e=e.substr(0,e.indexOf("#")));var t=e.split("&"),n={};return t.forEach((function(e){var t=m(e.split("="),2),r=t[0],a=t[1];n[r]=decodeURIComponent(a)})),n.expires_in&&(n.expires_in=parseInt(n.expires_in)),n}(t.join("")),r=n.state,a=n.code,i=n.error,o=n.error_description,!(s=this.transactionManager.get()))throw new Error("Invalid state");if(this.transactionManager.remove(),i)throw new qo(i,o,r,s.appState);if(!s.code_verifier||s.state&&s.state!==r)throw new Error("Invalid state");return l={audience:s.audience,scope:s.scope,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:s.code_verifier,grant_type:"authorization_code",code:a,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},void 0!==s.redirect_uri&&(l.redirect_uri=s.redirect_uri),[4,hs(l,this.worker)];case 1:return c=p.sent(),[4,this._verifyIdToken(c.id_token,s.nonce,s.organizationId)];case 2:return u=p.sent(),[4,this.cacheManager.set(d(d(d(d({},c),{decodedToken:u,audience:s.audience,scope:s.scope}),c.scope?{oauthTokenScope:c.scope}:null),{client_id:this.options.client_id}))];case 3:return p.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgIdHint(u.claims.org_id),[2,{appState:s.appState}]}}))}))},e.prototype.checkSession=function(e){return h(this,void 0,void 0,(function(){var t;return f(this,(function(n){switch(n.label){case 0:if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return[2];this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.getTokenSilently(e)];case 2:return n.sent(),[3,4];case 3:if(t=n.sent(),!Wo.includes(t.error))throw t;return[3,4];case 4:return[2]}}))}))},e.prototype.getTokenSilently=function(e){return void 0===e&&(e={}),h(this,void 0,void 0,(function(){var t,n,r,a,i=this;return f(this,(function(o){switch(o.label){case 0:return t=d(d({audience:this.options.audience,ignoreCache:!1},e),{scope:fs(this.defaultScope,this.scope,e.scope)}),n=t.ignoreCache,r=p(t,["ignoreCache"]),[4,(s=function(){return i._getTokenSilently(d({ignoreCache:n},r))},l="".concat(this.options.client_id,"::").concat(r.audience,"::").concat(r.scope),c=Ms[l],c||(c=s().finally((function(){delete Ms[l],c=null})),Ms[l]=c),c)];case 1:return a=o.sent(),[2,e.detailedResponse?a:a.access_token]}var s,l,c}))}))},e.prototype._getTokenSilently=function(e){return void 0===e&&(e={}),h(this,void 0,void 0,(function(){var t,n,r,a,i,o,s,l,c;return f(this,(function(u){switch(u.label){case 0:return t=e.ignoreCache,n=p(e,["ignoreCache"]),t?[3,2]:[4,this._getEntryFromCache({scope:n.scope,audience:n.audience||"default",client_id:this.options.client_id})];case 1:if(r=u.sent())return[2,r];u.label=2;case 2:return[4,(m=function(){return Is.acquireLock("auth0.lock.getTokenSilently",5e3)},g=10,void 0===g&&(g=3),h(void 0,void 0,void 0,(function(){var e;return f(this,(function(t){switch(t.label){case 0:e=0,t.label=1;case 1:return e<g?[4,m()]:[3,4];case 2:if(t.sent())return[2,!0];t.label=3;case 3:return e++,[3,1];case 4:return[2,!1]}}))})))];case 3:if(!u.sent())return[3,15];u.label=4;case 4:return u.trys.push([4,,12,14]),window.addEventListener("pagehide",this._releaseLockOnPageHide),t?[3,6]:[4,this._getEntryFromCache({scope:n.scope,audience:n.audience||"default",client_id:this.options.client_id})];case 5:if(r=u.sent())return[2,r];u.label=6;case 6:return this.options.useRefreshTokens?[4,this._getTokenUsingRefreshToken(n)]:[3,8];case 7:return i=u.sent(),[3,10];case 8:return[4,this._getTokenFromIFrame(n)];case 9:i=u.sent(),u.label=10;case 10:return a=i,[4,this.cacheManager.set(d({client_id:this.options.client_id},a))];case 11:return u.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),o=a.id_token,s=a.access_token,l=a.oauthTokenScope,c=a.expires_in,[2,d(d({id_token:o,access_token:s},l?{scope:l}:null),{expires_in:c})];case 12:return[4,Is.releaseLock("auth0.lock.getTokenSilently")];case 13:return u.sent(),window.removeEventListener("pagehide",this._releaseLockOnPageHide),[7];case 14:return[3,16];case 15:throw new Go;case 16:return[2]}var m,g}))}))},e.prototype.getTokenWithPopup=function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),h(this,void 0,void 0,(function(){return f(this,(function(n){switch(n.label){case 0:return e.audience=e.audience||this.options.audience,e.scope=fs(this.defaultScope,this.scope,e.scope),t=d(d({},Vo),t),[4,this.loginWithPopup(e,t)];case 1:return n.sent(),[4,this.cacheManager.get(new ms({scope:e.scope,audience:e.audience||"default",client_id:this.options.client_id}))];case 2:return[2,n.sent().access_token]}}))}))},e.prototype.isAuthenticated=function(){return h(this,void 0,void 0,(function(){return f(this,(function(e){switch(e.label){case 0:return[4,this.getUser()];case 1:return[2,!!e.sent()]}}))}))},e.prototype.buildLogoutUrl=function(e){void 0===e&&(e={}),null!==e.client_id?e.client_id=e.client_id||this.options.client_id:delete e.client_id;var t=e.federated,n=p(e,["federated"]),r=t?"&federated":"";return this._url("/v2/logout?".concat(rs(n)))+r},e.prototype.logout=function(e){var t=this;void 0===e&&(e={});var n=e.localOnly,r=p(e,["localOnly"]);if(n&&r.federated)throw new Error("It is invalid to set both the `federated` and `localOnly` options to `true`");var a=function(){if(t.cookieStorage.remove(t.orgHintCookieName,{cookieDomain:t.options.cookieDomain}),t.cookieStorage.remove(t.isAuthenticatedCookieName,{cookieDomain:t.options.cookieDomain}),!n){var e=t.buildLogoutUrl(r);window.location.assign(e)}};if(this.options.cache)return this.cacheManager.clear().then((function(){return a()}));this.cacheManager.clearSync(),a()},e.prototype._getTokenFromIFrame=function(e){return h(this,void 0,void 0,(function(){var t,n,r,a,i,o,s,l,c,u,h,m,g,v,y,b,x;return f(this,(function(f){switch(f.label){case 0:return t=ns(ts()),n=ns(ts()),r=ts(),[4,as(r)];case 1:a=f.sent(),i=os(a),o=p(e,["detailedResponse"]),s=this._getParams(o,t,n,i,e.redirect_uri||this.options.redirect_uri||window.location.origin),(l=this.cookieStorage.get(this.orgHintCookieName))&&!s.organization&&(s.organization=l),c=this._authorizeUrl(d(d({},s),{prompt:"none",response_mode:"web_message"})),f.label=2;case 2:if(f.trys.push([2,6,,7]),window.crossOriginIsolated)throw new Ho("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");return u=e.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,[4,(w=c,S=this.domainUrl,C=u,void 0===C&&(C=60),new Promise((function(e,t){var n=window.document.createElement("iframe");n.setAttribute("width","0"),n.setAttribute("height","0"),n.style.display="none";var r,a=function(){window.document.body.contains(n)&&(window.document.body.removeChild(n),window.removeEventListener("message",r,!1))},i=setTimeout((function(){t(new Go),a()}),1e3*C);r=function(n){if(n.origin==S&&n.data&&"authorization_response"===n.data.type){var o=n.source;o&&o.close(),n.data.response.error?t(Ho.fromPayload(n.data.response)):e(n.data.response),clearTimeout(i),window.removeEventListener("message",r,!1),setTimeout(a,2e3)}},window.addEventListener("message",r,!1),window.document.body.appendChild(n),n.setAttribute("src",w)})))];case 3:if(h=f.sent(),t!==h.state)throw new Error("Invalid state");return m=e.scope,g=e.audience,v=p(e,["scope","audience","redirect_uri","ignoreCache","timeoutInSeconds","detailedResponse"]),[4,hs(d(d(d({},this.customOptions),v),{scope:m,audience:g,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:r,code:h.code,grant_type:"authorization_code",redirect_uri:s.redirect_uri,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:v.timeout||this.httpTimeoutMs}),this.worker)];case 4:return y=f.sent(),[4,this._verifyIdToken(y.id_token,n)];case 5:return b=f.sent(),this._processOrgIdHint(b.claims.org_id),[2,d(d({},y),{decodedToken:b,scope:s.scope,oauthTokenScope:y.scope,audience:s.audience||"default"})];case 6:throw"login_required"===(x=f.sent()).error&&this.logout({localOnly:!0}),x;case 7:return[2]}var w,S,C}))}))},e.prototype._getTokenUsingRefreshToken=function(e){return h(this,void 0,void 0,(function(){var t,n,r,a,i,o,s,l,c;return f(this,(function(u){switch(u.label){case 0:return e.scope=fs(this.defaultScope,this.options.scope,e.scope),[4,this.cacheManager.get(new ms({scope:e.scope,audience:e.audience||"default",client_id:this.options.client_id}))];case 1:return(t=u.sent())&&t.refresh_token||this.worker?[3,4]:this.useRefreshTokensFallback?[4,this._getTokenFromIFrame(e)]:[3,3];case 2:return[2,u.sent()];case 3:throw new Zo(e.audience||"default",e.scope);case 4:n=e.redirect_uri||this.options.redirect_uri||window.location.origin,a=e.scope,i=e.audience,o=p(e,["scope","audience","ignoreCache","timeoutInSeconds","detailedResponse"]),s="number"==typeof e.timeoutInSeconds?1e3*e.timeoutInSeconds:null,u.label=5;case 5:return u.trys.push([5,7,,10]),[4,hs(d(d(d(d(d({},this.customOptions),o),{audience:i,scope:a,baseUrl:this.domainUrl,client_id:this.options.client_id,grant_type:"refresh_token",refresh_token:t&&t.refresh_token,redirect_uri:n}),s&&{timeout:s}),{auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs}),this.worker)];case 6:return r=u.sent(),[3,10];case 7:return((l=u.sent()).message.indexOf("Missing Refresh Token")>-1||l.message&&l.message.indexOf("invalid refresh token")>-1)&&this.useRefreshTokensFallback?[4,this._getTokenFromIFrame(e)]:[3,9];case 8:return[2,u.sent()];case 9:throw l;case 10:return[4,this._verifyIdToken(r.id_token)];case 11:return c=u.sent(),[2,d(d({},r),{decodedToken:c,scope:e.scope,oauthTokenScope:r.scope,audience:e.audience||"default"})]}}))}))},e.prototype._getEntryFromCache=function(e){var t=e.scope,n=e.audience,r=e.client_id;return h(this,void 0,void 0,(function(){var e,a,i,o,s;return f(this,(function(l){switch(l.label){case 0:return[4,this.cacheManager.get(new ms({scope:t,audience:n,client_id:r}),60)];case 1:return(e=l.sent())&&e.access_token?(a=e.id_token,i=e.access_token,o=e.oauthTokenScope,s=e.expires_in,[2,d(d({id_token:a,access_token:i},o?{scope:o}:null),{expires_in:s})]):[2]}}))}))},e}(),Fs={isAuthenticated:!1,isLoading:!0},Bs=function(){throw new Error("You forgot to wrap your component in <Auth0Provider>.")},zs=i(i({},Fs),{buildAuthorizeUrl:Bs,buildLogoutUrl:Bs,getAccessTokenSilently:Bs,getAccessTokenWithPopup:Bs,getIdTokenClaims:Bs,loginWithRedirect:Bs,loginWithPopup:Bs,logout:Bs,handleRedirectCallback:Bs}),Vs=(0,e.createContext)(zs),Ws=function(e){function t(n,r){var a=e.call(this,r||n)||this;return a.error=n,a.error_description=r,Object.setPrototypeOf(a,t.prototype),a}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error),Us=/[?&]code=[^&]+/,$s=/[?&]state=[^&]+/,Hs=/[?&]error=[^&]+/,qs=function(e){return function(t){return"error"in t?new Ws(t.error,t.error_description):t instanceof Error?t:new Error(e)}},Gs=qs("Login failed"),Ks=qs("Get access token failed"),Ys=function(e,t){var n,r;switch(t.type){case"LOGIN_POPUP_STARTED":return i(i({},e),{isLoading:!0});case"LOGIN_POPUP_COMPLETE":case"INITIALISED":return i(i({},e),{isAuthenticated:!!t.user,user:t.user,isLoading:!1,error:void 0});case"HANDLE_REDIRECT_COMPLETE":case"GET_ACCESS_TOKEN_COMPLETE":return(null===(n=e.user)||void 0===n?void 0:n.updated_at)===(null===(r=t.user)||void 0===r?void 0:r.updated_at)?e:i(i({},e),{isAuthenticated:!!t.user,user:t.user});case"LOGOUT":return i(i({},e),{isAuthenticated:!1,user:void 0});case"ERROR":return i(i({},e),{isLoading:!1,error:t.error})}},Xs=function(e){if(e){var t=e.redirectUri,n=o(e,["redirectUri"]);return i(i({},n),{redirect_uri:t})}},Zs=function(e){window.history.replaceState({},document.title,(null===e||void 0===e?void 0:e.returnTo)||window.location.pathname)},Js=function(t){var n=t.children,r=t.skipRedirectCallback,a=t.onRedirectCallback,c=void 0===a?Zs:a,u=t.context,d=void 0===u?Vs:u,p=o(t,["children","skipRedirectCallback","onRedirectCallback","context"]),h=(0,e.useState)((function(){return new Ls(function(e){var t=e.clientId,n=e.redirectUri,r=e.maxAge,a=o(e,["clientId","redirectUri","maxAge"]);return i(i({},a),{client_id:t,redirect_uri:n,max_age:r,auth0Client:{name:"auth0-react",version:"1.12.1"}})}(p))}))[0],f=(0,e.useReducer)(Ys,Fs),m=f[0],g=f[1],v=(0,e.useRef)(!1);(0,e.useEffect)((function(){v.current||(v.current=!0,s(void 0,void 0,void 0,(function(){var e,t,n;return l(this,(function(a){switch(a.label){case 0:return a.trys.push([0,7,,8]),e=void 0,void 0===i&&(i=window.location.search),!Us.test(i)&&!Hs.test(i)||!$s.test(i)||r?[3,3]:[4,h.handleRedirectCallback()];case 1:return t=a.sent().appState,[4,h.getUser()];case 2:return e=a.sent(),c(t,e),[3,6];case 3:return[4,h.checkSession()];case 4:return a.sent(),[4,h.getUser()];case 5:e=a.sent(),a.label=6;case 6:return g({type:"INITIALISED",user:e}),[3,8];case 7:return n=a.sent(),g({type:"ERROR",error:Gs(n)}),[3,8];case 8:return[2]}var i}))})))}),[h,c,r]);var y=(0,e.useCallback)((function(e){return h.buildAuthorizeUrl(Xs(e))}),[h]),b=(0,e.useCallback)((function(e){return h.buildLogoutUrl(e)}),[h]),x=(0,e.useCallback)((function(e){return h.loginWithRedirect(Xs(e))}),[h]),w=(0,e.useCallback)((function(e,t){return s(void 0,void 0,void 0,(function(){var n,r;return l(this,(function(a){switch(a.label){case 0:g({type:"LOGIN_POPUP_STARTED"}),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,h.loginWithPopup(e,t)];case 2:return a.sent(),[3,4];case 3:return n=a.sent(),g({type:"ERROR",error:Gs(n)}),[2];case 4:return[4,h.getUser()];case 5:return r=a.sent(),g({type:"LOGIN_POPUP_COMPLETE",user:r}),[2]}}))}))}),[h]),S=(0,e.useCallback)((function(e){void 0===e&&(e={});var t=h.logout(e);if(e.localOnly){if(t&&"function"===typeof t.then)return t.then((function(){return g({type:"LOGOUT"})}));g({type:"LOGOUT"})}return t}),[h]),C=(0,e.useCallback)((function(e){return s(void 0,void 0,void 0,(function(){var t,n,r,a;return l(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,3,5]),[4,h.getTokenSilently(e)];case 1:return t=i.sent(),[3,5];case 2:throw n=i.sent(),Ks(n);case 3:return r=g,a={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,h.getUser()];case 4:return r.apply(void 0,[(a.user=i.sent(),a)]),[7];case 5:return[2,t]}}))}))}),[h]),A=(0,e.useCallback)((function(e,t){return s(void 0,void 0,void 0,(function(){var n,r,a,i;return l(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,3,5]),[4,h.getTokenWithPopup(e,t)];case 1:return n=o.sent(),[3,5];case 2:throw r=o.sent(),Ks(r);case 3:return a=g,i={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,h.getUser()];case 4:return a.apply(void 0,[(i.user=o.sent(),i)]),[7];case 5:return[2,n]}}))}))}),[h]),k=(0,e.useCallback)((function(e){return h.getIdTokenClaims(e)}),[h]),T=(0,e.useCallback)((function(e){return s(void 0,void 0,void 0,(function(){var t,n,r;return l(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,3,5]),[4,h.handleRedirectCallback(e)];case 1:return[2,a.sent()];case 2:throw t=a.sent(),Ks(t);case 3:return n=g,r={type:"HANDLE_REDIRECT_COMPLETE"},[4,h.getUser()];case 4:return n.apply(void 0,[(r.user=a.sent(),r)]),[7];case 5:return[2]}}))}))}),[h]),j=(0,e.useMemo)((function(){return i(i({},m),{buildAuthorizeUrl:y,buildLogoutUrl:b,getAccessTokenSilently:C,getAccessTokenWithPopup:A,getIdTokenClaims:k,loginWithRedirect:x,loginWithPopup:w,logout:S,handleRedirectCallback:T})}),[m,y,b,C,A,k,x,w,S,T]);return e.createElement(d.Provider,{value:j},n)},Qs=function(t){return void 0===t&&(t=Vs),(0,e.useContext)(t)},el=n(854),tl=n.n(el);const nl="A8100A50-4440-4633-B137-1A848E927685",rl="9B6CEAF8-8B2F-4A25-8403-3ECCE902ECF4",al="4F606859-7349-4A5A-8EC2-4780CCD5EB4E",il="198CCA39-1161-4009-8123-49157C863384",ol="A9943D90-D2F8-4E06-9A92-9BF0DC2F4A38",sl="DB6947B9-D264-4951-BAF2-BA41A5446157",ll="7FDAABD5-80F9-4E07-BAB0-D011B2C54A1F",cl="154E1EF1-AEBF-4F95-BB04-DED92AAE0A33",ul="D4F66806-7461-40F5-AB1A-EC3131B64D44",dl="2728D7A9-EF2E-4652-869A-EE484DF04219",pl=0,hl=1,fl=2,ml=3,gl=4,vl=5,yl=6,bl=7;var xl=n(1431),wl=n(8168),Sl=n(8587);const Cl=e.createContext(null);function Al(){return e.useContext(Cl)}const kl="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";var Tl=n(579);const jl=function(t){const{children:n,theme:r}=t,a=Al(),i=e.useMemo((()=>{const e=null===a?r:function(e,t){if("function"===typeof t)return t(e);return(0,wl.A)({},e,t)}(a,r);return null!=e&&(e[kl]=null!==a),e}),[r,a]);return(0,Tl.jsx)(Cl.Provider,{value:i,children:n})};var El=n(4575);const Pl=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const n=e.useContext(El.T);return n&&(r=n,0!==Object.keys(r).length)?n:t;var r},Nl=["value"],Dl=e.createContext();const Ml=()=>{const t=e.useContext(Dl);return null!=t&&t},_l=function(e){let{value:t}=e,n=(0,Sl.A)(e,Nl);return(0,Tl.jsx)(Dl.Provider,(0,wl.A)({value:null==t||t},n))};function Il(e,t){const n=(0,wl.A)({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=(0,wl.A)({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const a=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?a&&Object.keys(a)?(n[r]=(0,wl.A)({},i),Object.keys(a).forEach((e=>{n[r][e]=Il(a[e],i[e])}))):n[r]=i:n[r]=a}else void 0===n[r]&&(n[r]=e[r])})),n}const Rl=e.createContext(void 0);function Ol(t){let{props:n,name:r}=t;return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const a=t.components[n];return a.defaultProps?Il(a.defaultProps,r):a.styleOverrides||a.variants?r:Il(a,r)}({props:n,name:r,theme:{components:e.useContext(Rl)}})}const Ll=function(e){let{value:t,children:n}=e;return(0,Tl.jsx)(Rl.Provider,{value:t,children:n})},Fl={};function Bl(t,n,r){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e.useMemo((()=>{const e=t&&n[t]||n;if("function"===typeof r){const i=r(e),o=t?(0,wl.A)({},n,{[t]:i}):i;return a?()=>o:o}return t?(0,wl.A)({},n,{[t]:r}):(0,wl.A)({},n,r)}),[t,n,r,a])}const zl=function(e){const{children:t,theme:n,themeId:r}=e,a=Pl(Fl),i=Al()||Fl,o=Bl(r,a,n),s=Bl(r,i,n,!0),l="rtl"===o.direction;return(0,Tl.jsx)(jl,{theme:s,children:(0,Tl.jsx)(El.T.Provider,{value:o,children:(0,Tl.jsx)(_l,{value:l,children:(0,Tl.jsx)(Ll,{value:null==o?void 0:o.components,children:t})})})})},Vl="$$material",Wl=["theme"];function Ul(e){let{theme:t}=e,n=(0,Sl.A)(e,Wl);const r=t[Vl];return(0,Tl.jsx)(zl,(0,wl.A)({},n,{themeId:r?Vl:void 0,theme:r||t}))}var $l=e.createContext(null);var Hl=function(e){e()},ql=function(){return Hl};var Gl={notify:function(){},get:function(){return[]}};function Kl(e,t){var n,r=Gl;function a(){o.onStateChange&&o.onStateChange()}function i(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){var e=ql(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,a=n={callback:e,next:null,prev:n};return a.prev?a.prev.next=a:t=a,function(){r&&null!==t&&(r=!1,a.next?a.next.prev=a.prev:n=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}())}var o={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=Gl)},getListeners:function(){return r}};return o}var Yl="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?e.useLayoutEffect:e.useEffect;const Xl=function(t){var n=t.store,r=t.context,a=t.children,i=(0,e.useMemo)((function(){var e=Kl(n);return{store:n,subscription:e}}),[n]),o=(0,e.useMemo)((function(){return n.getState()}),[n]);Yl((function(){var e=i.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==n.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,o]);var s=r||$l;return e.createElement(s.Provider,{value:i},a)};var Zl=n(219),Jl=n.n(Zl),Ql=n(2086),ec=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],tc=["reactReduxForwardedRef"],nc=[],rc=[null,null];function ac(e,t){var n=e[1];return[t.payload,n+1]}function ic(e,t,n){Yl((function(){return e.apply(void 0,t)}),n)}function oc(e,t,n,r,a,i,o){e.current=r,t.current=a,n.current=!1,i.current&&(i.current=null,o())}function sc(e,t,n,r,a,i,o,s,l,c){if(e){var u=!1,d=null,p=function(){if(!u){var e,n,p=t.getState();try{e=r(p,a.current)}catch(Dpe){n=Dpe,d=Dpe}n||(d=null),e===i.current?o.current||l():(i.current=e,s.current=e,o.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=p,n.trySubscribe(),p();return function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var lc=function(){return[null,0]};function cc(t,n){void 0===n&&(n={});var r=n,a=r.getDisplayName,i=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,o=r.methodName,s=void 0===o?"connectAdvanced":o,l=r.renderCountProp,c=void 0===l?void 0:l,u=r.shouldHandleStateChanges,d=void 0===u||u,p=r.storeKey,h=void 0===p?"store":p,f=(r.withRef,r.forwardRef),m=void 0!==f&&f,g=r.context,v=void 0===g?$l:g,y=(0,Sl.A)(r,ec),b=v;return function(n){var r=n.displayName||n.name||"Component",a=i(r),o=(0,wl.A)({},y,{getDisplayName:i,methodName:s,renderCountProp:c,shouldHandleStateChanges:d,storeKey:h,displayName:a,wrappedComponentName:r,WrappedComponent:n}),l=y.pure;var u=l?e.useMemo:function(e){return e()};function p(r){var a=(0,e.useMemo)((function(){var e=r.reactReduxForwardedRef,t=(0,Sl.A)(r,tc);return[r.context,e,t]}),[r]),i=a[0],s=a[1],l=a[2],c=(0,e.useMemo)((function(){return i&&i.Consumer&&(0,Ql.isContextConsumer)(e.createElement(i.Consumer,null))?i:b}),[i,b]),p=(0,e.useContext)(c),h=Boolean(r.store)&&Boolean(r.store.getState)&&Boolean(r.store.dispatch);Boolean(p)&&Boolean(p.store);var f=h?r.store:p.store,m=(0,e.useMemo)((function(){return function(e){return t(e.dispatch,o)}(f)}),[f]),g=(0,e.useMemo)((function(){if(!d)return rc;var e=Kl(f,h?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[f,h,p]),v=g[0],y=g[1],x=(0,e.useMemo)((function(){return h?p:(0,wl.A)({},p,{subscription:v})}),[h,p,v]),w=(0,e.useReducer)(ac,nc,lc),S=w[0][0],C=w[1];if(S&&S.error)throw S.error;var A=(0,e.useRef)(),k=(0,e.useRef)(l),T=(0,e.useRef)(),j=(0,e.useRef)(!1),E=u((function(){return T.current&&l===k.current?T.current:m(f.getState(),l)}),[f,S,l]);ic(oc,[k,A,j,l,E,T,y]),ic(sc,[d,f,v,m,k,A,j,T,y,C],[f,v,m]);var P=(0,e.useMemo)((function(){return e.createElement(n,(0,wl.A)({},E,{ref:s}))}),[s,n,E]);return(0,e.useMemo)((function(){return d?e.createElement(c.Provider,{value:x},P):P}),[c,P,x])}var f=l?e.memo(p):p;if(f.WrappedComponent=n,f.displayName=p.displayName=a,m){var g=e.forwardRef((function(t,n){return e.createElement(f,(0,wl.A)({},t,{reactReduxForwardedRef:n}))}));return g.displayName=a,g.WrappedComponent=n,Jl()(g,n)}return Jl()(f,n)}}function uc(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function dc(e,t){if(uc(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(var a=0;a<n.length;a++)if(!Object.prototype.hasOwnProperty.call(t,n[a])||!uc(e[n[a]],t[n[a]]))return!1;return!0}function pc(e){return function(t,n){var r=e(t,n);function a(){return r}return a.dependsOnOwnProps=!1,a}}function hc(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function fc(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=hc(e);var a=r(t,n);return"function"===typeof a&&(r.mapToProps=a,r.dependsOnOwnProps=hc(a),a=r(t,n)),a},r}}const mc=[function(e){return"function"===typeof e?fc(e):void 0},function(e){return e?void 0:pc((function(e){return{dispatch:e}}))},function(e){return e&&"object"===typeof e?pc((function(t){return function(e,t){var n={},r=function(r){var a=e[r];"function"===typeof a&&(n[r]=function(){return t(a.apply(void 0,arguments))})};for(var a in e)r(a);return n}(e,t)})):void 0}];const gc=[function(e){return"function"===typeof e?fc(e):void 0},function(e){return e?void 0:pc((function(){return{}}))}];function vc(e,t,n){return(0,wl.A)({},n,e,t)}const yc=[function(e){return"function"===typeof e?function(e){return function(t,n){n.displayName;var r,a=n.pure,i=n.areMergedPropsEqual,o=!1;return function(t,n,s){var l=e(t,n,s);return o?a&&i(l,r)||(r=l):(o=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return vc}}];var bc=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function xc(e,t,n,r){return function(a,i){return n(e(a,i),t(r,i),i)}}function wc(e,t,n,r,a){var i,o,s,l,c,u=a.areStatesEqual,d=a.areOwnPropsEqual,p=a.areStatePropsEqual,h=!1;function f(a,h){var f=!d(h,o),m=!u(a,i,h,o);return i=a,o=h,f&&m?(s=e(i,o),t.dependsOnOwnProps&&(l=t(r,o)),c=n(s,l,o)):f?(e.dependsOnOwnProps&&(s=e(i,o)),t.dependsOnOwnProps&&(l=t(r,o)),c=n(s,l,o)):m?function(){var t=e(i,o),r=!p(t,s);return s=t,r&&(c=n(s,l,o)),c}():c}return function(a,u){return h?f(a,u):(s=e(i=a,o=u),l=t(r,o),c=n(s,l,o),h=!0,c)}}function Sc(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,a=t.initMergeProps,i=(0,Sl.A)(t,bc),o=n(e,i),s=r(e,i),l=a(e,i);return(i.pure?wc:xc)(o,s,l,e,i)}var Cc=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function Ac(e,t,n){for(var r=t.length-1;r>=0;r--){var a=t[r](e);if(a)return a}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function kc(e,t){return e===t}function Tc(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?cc:n,a=t.mapStateToPropsFactories,i=void 0===a?gc:a,o=t.mapDispatchToPropsFactories,s=void 0===o?mc:o,l=t.mergePropsFactories,c=void 0===l?yc:l,u=t.selectorFactory,d=void 0===u?Sc:u;return function(e,t,n,a){void 0===a&&(a={});var o=a,l=o.pure,u=void 0===l||l,p=o.areStatesEqual,h=void 0===p?kc:p,f=o.areOwnPropsEqual,m=void 0===f?dc:f,g=o.areStatePropsEqual,v=void 0===g?dc:g,y=o.areMergedPropsEqual,b=void 0===y?dc:y,x=(0,Sl.A)(o,Cc),w=Ac(e,i,"mapStateToProps"),S=Ac(t,s,"mapDispatchToProps"),C=Ac(n,c,"mergeProps");return r(d,(0,wl.A)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:w,initMapDispatchToProps:S,initMergeProps:C,pure:u,areStatesEqual:h,areOwnPropsEqual:m,areStatePropsEqual:v,areMergedPropsEqual:b},x))}}const jc=Tc();function Ec(){return(0,e.useContext)($l)}function Pc(t){void 0===t&&(t=$l);var n=t===$l?Ec:function(){return(0,e.useContext)(t)};return function(){return n().store}}var Nc=Pc();function Dc(e){void 0===e&&(e=$l);var t=e===$l?Nc:Pc(e);return function(){return t().dispatch}}var Mc=Dc(),_c=function(e,t){return e===t};function Ic(t){void 0===t&&(t=$l);var n=t===$l?Ec:function(){return(0,e.useContext)(t)};return function(t,r){void 0===r&&(r=_c);var a=n(),i=function(t,n,r,a){var i,o=(0,e.useReducer)((function(e){return e+1}),0)[1],s=(0,e.useMemo)((function(){return Kl(r,a)}),[r,a]),l=(0,e.useRef)(),c=(0,e.useRef)(),u=(0,e.useRef)(),d=(0,e.useRef)(),p=r.getState();try{if(t!==c.current||p!==u.current||l.current){var h=t(p);i=void 0!==d.current&&n(h,d.current)?d.current:h}else i=d.current}catch(f){throw l.current&&(f.message+="\nThe error may be correlated with this previous error:\n"+l.current.stack+"\n\n"),f}return Yl((function(){c.current=t,u.current=p,d.current=i,l.current=void 0})),Yl((function(){function e(){try{var e=r.getState();if(e===u.current)return;var t=c.current(e);if(n(t,d.current))return;d.current=t,u.current=e}catch(f){l.current=f}o()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}}),[r,s]),i}(t,r,a.store,a.subscription);return(0,e.useDebugValue)(i),i}}var Rc,Oc=Ic();function Lc(e,t){return Lc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lc(e,t)}function Fc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Lc(e,t)}Rc=r.unstable_batchedUpdates,Hl=Rc;var Bc=n(5173),zc=n.n(Bc);function Vc(e){return"/"===e.charAt(0)}function Wc(e,t){for(var n=t,r=n+1,a=e.length;r<a;n+=1,r+=1)e[n]=e[r];e.pop()}const Uc=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],i=e&&Vc(e),o=t&&Vc(t),s=i||o;if(e&&Vc(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var l=a[a.length-1];n="."===l||".."===l||""===l}else n=!1;for(var c=0,u=a.length;u>=0;u--){var d=a[u];"."===d?Wc(a,u):".."===d?(Wc(a,u),c++):c&&(Wc(a,u),c--)}if(!s)for(;c--;c)a.unshift("..");!s||""===a[0]||a[0]&&Vc(a[0])||a.unshift("");var p=a.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};function $c(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const Hc=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=$c(t),a=$c(n);return r!==t||a!==n?e(r,a):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var qc="Invariant failed";function Gc(e,t){if(!e)throw new Error(qc)}function Kc(e){return"/"===e.charAt(0)?e:"/"+e}function Yc(e){return"/"===e.charAt(0)?e.substr(1):e}function Xc(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function Zc(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function Jc(e){var t=e.pathname,n=e.search,r=e.hash,a=t||"/";return n&&"?"!==n&&(a+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(a+="#"===r.charAt(0)?r:"#"+r),a}function Qc(e,t,n,r){var a;"string"===typeof e?(a=function(e){var t=e||"/",n="",r="",a=t.indexOf("#");-1!==a&&(r=t.substr(a),t=t.substr(0,a));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),a.state=t):(void 0===(a=(0,wl.A)({},e)).pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(Dpe){throw Dpe instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):Dpe}return n&&(a.key=n),r?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=Uc(a.pathname,r.pathname)):a.pathname=r.pathname:a.pathname||(a.pathname="/"),a}function eu(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,a){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,a):a(!0):a(!1!==i)}else a(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var tu=!("undefined"===typeof window||!window.document||!window.document.createElement);function nu(e,t){t(window.confirm(e))}var ru="popstate",au="hashchange";function iu(){try{return window.history.state||{}}catch(Dpe){return{}}}function ou(e){void 0===e&&(e={}),tu||Gc(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),r=!(-1===window.navigator.userAgent.indexOf("Trident")),a=e,i=a.forceRefresh,o=void 0!==i&&i,s=a.getUserConfirmation,l=void 0===s?nu:s,c=a.keyLength,u=void 0===c?6:c,d=e.basename?Zc(Kc(e.basename)):"";function p(e){var t=e||{},n=t.key,r=t.state,a=window.location,i=a.pathname+a.search+a.hash;return d&&(i=Xc(i,d)),Qc(i,r,n)}function h(){return Math.random().toString(36).substr(2,u)}var f=eu();function m(e){(0,wl.A)(j,e),j.length=t.length,f.notifyListeners(j.location,j.action)}function g(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||b(p(e.state))}function v(){b(p(iu()))}var y=!1;function b(e){if(y)y=!1,m();else{f.confirmTransitionTo(e,"POP",l,(function(t){t?m({action:"POP",location:e}):function(e){var t=j.location,n=w.indexOf(t.key);-1===n&&(n=0);var r=w.indexOf(e.key);-1===r&&(r=0);var a=n-r;a&&(y=!0,C(a))}(e)}))}}var x=p(iu()),w=[x.key];function S(e){return d+Jc(e)}function C(e){t.go(e)}var A=0;function k(e){1===(A+=e)&&1===e?(window.addEventListener(ru,g),r&&window.addEventListener(au,v)):0===A&&(window.removeEventListener(ru,g),r&&window.removeEventListener(au,v))}var T=!1;var j={length:t.length,action:"POP",location:x,createHref:S,push:function(e,r){var a="PUSH",i=Qc(e,r,h(),j.location);f.confirmTransitionTo(i,a,l,(function(e){if(e){var r=S(i),s=i.key,l=i.state;if(n)if(t.pushState({key:s,state:l},null,r),o)window.location.href=r;else{var c=w.indexOf(j.location.key),u=w.slice(0,c+1);u.push(i.key),w=u,m({action:a,location:i})}else window.location.href=r}}))},replace:function(e,r){var a="REPLACE",i=Qc(e,r,h(),j.location);f.confirmTransitionTo(i,a,l,(function(e){if(e){var r=S(i),s=i.key,l=i.state;if(n)if(t.replaceState({key:s,state:l},null,r),o)window.location.replace(r);else{var c=w.indexOf(j.location.key);-1!==c&&(w[c]=i.key),m({action:a,location:i})}else window.location.replace(r)}}))},go:C,goBack:function(){C(-1)},goForward:function(){C(1)},block:function(e){void 0===e&&(e=!1);var t=f.setPrompt(e);return T||(k(1),T=!0),function(){return T&&(T=!1,k(-1)),t()}},listen:function(e){var t=f.appendListener(e);return k(1),function(){k(-1),t()}}};return j}var su="hashchange",lu={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+Yc(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:Yc,decodePath:Kc},slash:{encodePath:Kc,decodePath:Kc}};function cu(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function uu(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function du(e){window.location.replace(cu(window.location.href)+"#"+e)}function pu(e){void 0===e&&{},tu||Gc(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,a=void 0===r?nu:r,i=n.hashType,o=void 0===i?"slash":i,s=e.basename?Zc(Kc(e.basename)):"",l=lu[o],c=l.encodePath,u=l.decodePath;function d(){var e=u(uu());return s&&Xc(e,s),Qc(e)}var p=eu();function h(e){(0,wl.A)(k,e),k.length=t.length,p.notifyListeners(k.location,k.action)}var f=!1,m=null;function g(){var e=uu(),t=c(e);if(e!==t)du(t);else{var n=d(),r=k.location;if(!f&&function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash}(r,n))return;if(m===Jc(n))return;(function(e){if(f)h();else{var t="POP";p.confirmTransitionTo(e,t,a,(function(n){n?h({action:t,location:e}):function(e){var t=k.location,n=x.lastIndexOf(Jc(t));-1===n&&0;var r=x.lastIndexOf(Jc(e));-1===r&&0;var a=n-r;a&&w(a)}(e)}))}})(n)}}var v=uu(),y=c(v);v!==y&&du(y);var b=d(),x=[Jc(b)];function w(e){t.go(e)}var S=0;function C(e){1===(S+=e)&&1===e?window.addEventListener(su,g):0===S&&window.removeEventListener(su,g)}var A=!1;var k={length:t.length,action:"POP",location:b,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&cu(window.location.href),n+"#"+c(s+Jc(e))},push:function(e,t){var n="PUSH",r=Qc(e,void 0,void 0,k.location);p.confirmTransitionTo(r,n,a,(function(e){if(e){var t=Jc(r),a=c(s+t);if(uu()!==a){(function(e){window.location.hash=e})(a);var i=x.lastIndexOf(Jc(k.location)),o=x.slice(0,i+1);o.push(t),h({action:n,location:r})}else h()}}))},replace:function(e,t){var n="REPLACE",r=Qc(e,void 0,void 0,k.location);p.confirmTransitionTo(r,n,a,(function(e){if(e){var t=Jc(r),a=c(s+t);uu()!==a&&du(a);var i=x.indexOf(Jc(k.location));-1!==i&&(x[i]=t),h({action:n,location:r})}}))},go:w,goBack:function(){w(-1)},goForward:function(){w(1)},block:function(e){void 0===e&&!1;var t=p.setPrompt(e);return A||(C(1),!0),function(){return A&&C(-1),t()}},listen:function(e){var t=p.appendListener(e);return C(1),function(){C(-1),t()}}};return k}function hu(e,t,n){return Math.min(Math.max(e,t),n)}var fu=n(8123),mu=n.n(fu),gu=(n(7681),1073741823),vu="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{};var yu=e.createContext||function(t,n){var r,a,i="__create-react-context-"+function(){var e="__global_unique_id__";return vu[e]=(vu[e]||0)+1}()+"__",o=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).emitter=function(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}(t.props.value),t}Fc(t,e);var r=t.prototype;return r.getChildContext=function(){var e;return(e={})[i]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var t,r=this.props.value,a=e.value;!function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}(r,a)?(t="function"===typeof n?n(r,a):gu,0!==(t|=0)&&this.emitter.set(e.value,t)):t=0}},r.render=function(){return this.props.children},t}(e.Component);o.childContextTypes=((r={})[i]=zc().object.isRequired,r);var s=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).observedBits=void 0,t.state={value:t.getValue()},t.onUpdate=function(e,n){0!==((0|t.observedBits)&n)&&t.setState({value:t.getValue()})},t}Fc(n,e);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?gu:t},r.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?gu:e},r.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},r.getValue=function(){return this.context[i]?this.context[i].get():t},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(e.Component);return s.contextTypes=((a={})[i]=zc().object,a),{Provider:o,Consumer:s}},bu=function(e){var t=yu();return t.displayName=e,t},xu=bu("Router-History"),wu=bu("Router"),Su=function(t){function n(e){var n;return(n=t.call(this,e)||this).state={location:e.history.location},n._isMounted=!1,n._pendingLocation=null,e.staticContext||(n.unlisten=e.history.listen((function(e){n._pendingLocation=e}))),n}Fc(n,t),n.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var r=n.prototype;return r.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},r.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},r.render=function(){return e.createElement(wu.Provider,{value:{history:this.props.history,location:this.state.location,match:n.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},e.createElement(xu.Provider,{children:this.props.children||null,value:this.props.history}))},n}(e.Component);e.Component;var Cu=function(e){function t(){return e.apply(this,arguments)||this}Fc(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(e.Component);var Au={},ku=0;function Tu(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(Au[e])return Au[e];var t=mu().compile(e);return ku<1e4&&(Au[e]=t,ku++),t}(e)(t,{pretty:!0})}function ju(t){var n=t.computedMatch,r=t.to,a=t.push,i=void 0!==a&&a;return e.createElement(wu.Consumer,null,(function(t){t||Gc(!1);var a=t.history,o=t.staticContext,s=i?a.push:a.replace,l=Qc(n?"string"===typeof r?Tu(r,n.params):(0,wl.A)({},r,{pathname:Tu(r.pathname,n.params)}):r);return o?(s(l),null):e.createElement(Cu,{onMount:function(){s(l)},onUpdate:function(e,t){var n=Qc(t.to);(function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&Hc(e.state,t.state)})(n,(0,wl.A)({},l,{key:n.key}))||s(l)},to:r})}))}var Eu={},Pu=0;function Nu(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,a=n.exact,i=void 0!==a&&a,o=n.strict,s=void 0!==o&&o,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=Eu[n]||(Eu[n]={});if(r[e])return r[e];var a=[],i={regexp:mu()(e,a,t),keys:a};return Pu<1e4&&(r[e]=i,Pu++),i}(n,{end:i,strict:s,sensitive:c}),a=r.regexp,o=r.keys,l=a.exec(e);if(!l)return null;var u=l[0],d=l.slice(1),p=e===u;return i&&!p?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:p,params:o.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var Du=function(t){function n(){return t.apply(this,arguments)||this}return Fc(n,t),n.prototype.render=function(){var t=this;return e.createElement(wu.Consumer,null,(function(n){n||Gc(!1);var r=t.props.location||n.location,a=t.props.computedMatch?t.props.computedMatch:t.props.path?Nu(r.pathname,t.props):n.match,i=(0,wl.A)({},n,{location:r,match:a}),o=t.props,s=o.children,l=o.component,c=o.render;return Array.isArray(s)&&function(t){return 0===e.Children.count(t)}(s)&&(s=null),e.createElement(wu.Provider,{value:i},i.match?s?"function"===typeof s?s(i):s:l?e.createElement(l,i):c?c(i):null:"function"===typeof s?s(i):null)}))},n}(e.Component);function Mu(e){return"/"===e.charAt(0)?e:"/"+e}function _u(e,t){if(!e)return t;var n=Mu(e);return 0!==t.pathname.indexOf(n)?t:(0,wl.A)({},t,{pathname:t.pathname.substr(n.length)})}function Iu(e){return"string"===typeof e?e:Jc(e)}function Ru(e){return function(){Gc(!1)}}function Ou(){}e.Component;var Lu=function(t){function n(){return t.apply(this,arguments)||this}return Fc(n,t),n.prototype.render=function(){var t=this;return e.createElement(wu.Consumer,null,(function(n){n||Gc(!1);var r,a,i=t.props.location||n.location;return e.Children.forEach(t.props.children,(function(t){if(null==a&&e.isValidElement(t)){r=t;var o=t.props.path||t.props.from;a=o?Nu(i.pathname,(0,wl.A)({},t.props,{path:o})):n.match}})),a?e.cloneElement(r,{location:i,computedMatch:a}):null}))},n}(e.Component);var Fu=e.useContext;function Bu(){return Fu(xu)}function zu(){return Fu(wu).location}function Vu(){var e=Fu(wu).match;return e?e.params:{}}const Wu={1:["198CCA39-1161-4009-8123-49157C863384"],2:["198CCA39-1161-4009-8123-49157C863384"],4:["198CCA39-1161-4009-8123-49157C863384","9B6CEAF8-8B2F-4A25-8403-3ECCE902ECF4","D4F66806-7461-40F5-AB1A-EC3131B64D44"],8:["198CCA39-1161-4009-8123-49157C863384","154E1EF1-AEBF-4F95-BB04-DED92AAE0A33","D4F66806-7461-40F5-AB1A-EC3131B64D44"],16:["198CCA39-1161-4009-8123-49157C863384","9B6CEAF8-8B2F-4A25-8403-3ECCE902ECF4","154E1EF1-AEBF-4F95-BB04-DED92AAE0A33","D4F66806-7461-40F5-AB1A-EC3131B64D44","2728D7A9-EF2E-4652-869A-EE484DF04219"],32:["198CCA39-1161-4009-8123-49157C863384","9B6CEAF8-8B2F-4A25-8403-3ECCE902ECF4","154E1EF1-AEBF-4F95-BB04-DED92AAE0A33","D4F66806-7461-40F5-AB1A-EC3131B64D44","2728D7A9-EF2E-4652-869A-EE484DF04219"],64:["198CCA39-1161-4009-8123-49157C863384","9B6CEAF8-8B2F-4A25-8403-3ECCE902ECF4","154E1EF1-AEBF-4F95-BB04-DED92AAE0A33","D4F66806-7461-40F5-AB1A-EC3131B64D44","2728D7A9-EF2E-4652-869A-EE484DF04219"],128:["198CCA39-1161-4009-8123-49157C863384","9B6CEAF8-8B2F-4A25-8403-3ECCE902ECF4","154E1EF1-AEBF-4F95-BB04-DED92AAE0A33","D4F66806-7461-40F5-AB1A-EC3131B64D44","2728D7A9-EF2E-4652-869A-EE484DF04219"],256:["198CCA39-1161-4009-8123-49157C863384","9B6CEAF8-8B2F-4A25-8403-3ECCE902ECF4","A9943D90-D2F8-4E06-9A92-9BF0DC2F4A38","154E1EF1-AEBF-4F95-BB04-DED92AAE0A33","D4F66806-7461-40F5-AB1A-EC3131B64D44"],512:["198CCA39-1161-4009-8123-49157C863384","9B6CEAF8-8B2F-4A25-8403-3ECCE902ECF4","A9943D90-D2F8-4E06-9A92-9BF0DC2F4A38","154E1EF1-AEBF-4F95-BB04-DED92AAE0A33","D4F66806-7461-40F5-AB1A-EC3131B64D44"],1024:["198CCA39-1161-4009-8123-49157C863384","A8100A50-4440-4633-B137-1A848E927685","9B6CEAF8-8B2F-4A25-8403-3ECCE902ECF4","A9943D90-D2F8-4E06-9A92-9BF0DC2F4A38","154E1EF1-AEBF-4F95-BB04-DED92AAE0A33","D4F66806-7461-40F5-AB1A-EC3131B64D44","2728D7A9-EF2E-4652-869A-EE484DF04219"],2048:["198CCA39-1161-4009-8123-49157C863384","A8100A50-4440-4633-B137-1A848E927685","9B6CEAF8-8B2F-4A25-8403-3ECCE902ECF4","154E1EF1-AEBF-4F95-BB04-DED92AAE0A33","D4F66806-7461-40F5-AB1A-EC3131B64D44"],4096:["198CCA39-1161-4009-8123-49157C863384","7FDAABD5-80F9-4E07-BAB0-D011B2C54A1F"],8192:["198CCA39-1161-4009-8123-49157C863384","4F606859-7349-4A5A-8EC2-4780CCD5EB4E"],16384:["198CCA39-1161-4009-8123-49157C863384","D4F66806-7461-40F5-AB1A-EC3131B64D44"],32768:["198CCA39-1161-4009-8123-49157C863384"],65536:["198CCA39-1161-4009-8123-49157C863384","DB6947B9-D264-4951-BAF2-BA41A5446157"]};function Uu(e,t){for(var n in e)if(null!=e[n].CareersRoleID&&e[n].CareersRoleID.toUpperCase()===t)return!0;return!1}function $u(e,t){for(var n in e)if(e[n].BaseClientID.toUpperCase()===t)return 2===e[n].CRMRole}function Hu(e,t,n){for(var r in e)if(null!=e[r].CareersRoleID&&e[r].BaseClientID.toUpperCase()===t)return e[r].CareersRoleID.toUpperCase()===n;return!1}function qu(e,t){for(var n in e){if(null!=e[n].CareersRoleID)if(e[n].CareersRightsFlag&t)return!0}return!1}function Gu(e,t,n){for(var r in e)if(null!=e[r].CareersRoleID&&e[r].BaseClientID.toUpperCase()===t)return!!Wu[n].includes(e[r].CareersRoleID.toUpperCase())||!!Yu(n,e[r].CareersRightsFlag);return!1}function Ku(e,t,n){for(var r in e)if(null!=e[r].CareersRoleID&&e[r].BaseClientID.toUpperCase()===t){for(var a=0;a<n.length;a++){if(Wu[n[a]].includes(e[r].CareersRoleID.toUpperCase()))return!0;if(Yu(n[a],e[r].CareersRightsFlag))return!0}return!1}return!1}function Yu(e,t){const n=[65536,32768,16384,8192,4096,2048,1024,512,256,128,64,32,16,8,4,2,1];for(let r in n)if(t-n[r]>=0){if(n[r]===e)return!0;t-=n[r]}return e===t}function Xu(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Zu(e){return!!e&&!!e[Bd]}function Ju(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===zd}(e)||Array.isArray(e)||!!e[Fd]||!!(null===(t=e.constructor)||void 0===t?void 0:t[Fd])||id(e)||od(e))}function Qu(e,t,n){void 0===n&&(n=!1),0===ed(e)?(n?Object.keys:Vd)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function ed(e){var t=e[Bd];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:id(e)?2:od(e)?3:0}function td(e,t){return 2===ed(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function nd(e,t){return 2===ed(e)?e.get(t):e[t]}function rd(e,t,n){var r=ed(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function ad(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function id(e){return Id&&e instanceof Map}function od(e){return Rd&&e instanceof Set}function sd(e){return e.o||e.t}function ld(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Wd(e);delete t[Bd];for(var n=Vd(t),r=0;r<n.length;r++){var a=n[r],i=t[a];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function cd(e,t){return void 0===t&&(t=!1),dd(e)||Zu(e)||!Ju(e)||(ed(e)>1&&(e.set=e.add=e.clear=e.delete=ud),Object.freeze(e),t&&Qu(e,(function(e,t){return cd(t,!0)}),!0)),e}function ud(){Xu(2)}function dd(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function pd(e){var t=Ud[e];return t||Xu(18,e),t}function hd(e,t){Ud[e]||(Ud[e]=t)}function fd(){return Md}function md(e,t){t&&(pd("Patches"),e.u=[],e.s=[],e.v=t)}function gd(e){vd(e),e.p.forEach(bd),e.p=null}function vd(e){e===Md&&(Md=e.l)}function yd(e){return Md={p:[],l:Md,h:e,m:!0,_:0}}function bd(e){var t=e[Bd];0===t.i||1===t.i?t.j():t.g=!0}function xd(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||pd("ES5").S(t,e,r),r?(n[Bd].P&&(gd(t),Xu(4)),Ju(e)&&(e=wd(t,e),t.l||Cd(t,e)),t.u&&pd("Patches").M(n[Bd].t,e,t.u,t.s)):e=wd(t,n,[]),gd(t),t.u&&t.v(t.u,t.s),e!==Ld?e:void 0}function wd(e,t,n){if(dd(t))return t;var r=t[Bd];if(!r)return Qu(t,(function(a,i){return Sd(e,r,t,a,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Cd(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var a=4===r.i||5===r.i?r.o=ld(r.k):r.o,i=a,o=!1;3===r.i&&(i=new Set(a),a.clear(),o=!0),Qu(i,(function(t,i){return Sd(e,r,a,t,i,n,o)})),Cd(e,a,!1),n&&e.u&&pd("Patches").N(r,n,e.u,e.s)}return r.o}function Sd(e,t,n,r,a,i,o){if(Zu(a)){var s=wd(e,a,i&&t&&3!==t.i&&!td(t.R,r)?i.concat(r):void 0);if(rd(n,r,s),!Zu(s))return;e.m=!1}else o&&n.add(a);if(Ju(a)&&!dd(a)){if(!e.h.D&&e._<1)return;wd(e,a),t&&t.A.l||Cd(e,a)}}function Cd(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&cd(t,n)}function Ad(e,t){var n=e[Bd];return(n?sd(n):e)[t]}function kd(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Td(e){e.P||(e.P=!0,e.l&&Td(e.l))}function jd(e){e.o||(e.o=ld(e.t))}function Ed(e,t,n){var r=id(t)?pd("MapSet").F(t,n):od(t)?pd("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:fd(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},a=r,i=$d;n&&(a=[r],i=Hd);var o=Proxy.revocable(a,i),s=o.revoke,l=o.proxy;return r.k=l,r.j=s,l}(t,n):pd("ES5").J(t,n);return(n?n.A:fd()).p.push(r),r}function Pd(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return ld(e)}function Nd(){function e(e,t){var n=a[e];return n?n.enumerable=t:a[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[Bd];return $d.get(t,e)},set:function(t){var n=this[Bd];$d.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var a=e[t][Bd];if(!a.P)switch(a.i){case 5:r(a)&&Td(a);break;case 4:n(a)&&Td(a)}}}function n(e){for(var t=e.t,n=e.k,r=Vd(n),a=r.length-1;a>=0;a--){var i=r[a];if(i!==Bd){var o=t[i];if(void 0===o&&!td(t,i))return!0;var s=n[i],l=s&&s[Bd];if(l?l.t!==o:!ad(s,o))return!0}}var c=!!t[Bd];return r.length!==Vd(t).length+(c?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r<t.length;r++)if(!t.hasOwnProperty(r))return!0;return!1}var a={};hd("ES5",{J:function(t,n){var r=Array.isArray(t),a=function(t,n){if(t){for(var r=Array(n.length),a=0;a<n.length;a++)Object.defineProperty(r,""+a,e(a,!0));return r}var i=Wd(n);delete i[Bd];for(var o=Vd(i),s=0;s<o.length;s++){var l=o[s];i[l]=e(l,t||!!i[l].enumerable)}return Object.create(Object.getPrototypeOf(n),i)}(r,t),i={i:r?5:4,A:n?n.A:fd(),P:!1,I:!1,R:{},l:n,t:t,k:a,o:null,g:!1,C:!1};return Object.defineProperty(a,Bd,{value:i,writable:!0}),a},S:function(e,n,a){a?Zu(n)&&n[Bd].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[Bd];if(n){var a=n.t,i=n.k,o=n.R,s=n.i;if(4===s)Qu(i,(function(t){t!==Bd&&(void 0!==a[t]||td(a,t)?o[t]||e(i[t]):(o[t]=!0,Td(n)))})),Qu(a,(function(e){void 0!==i[e]||td(i,e)||(o[e]=!1,Td(n))}));else if(5===s){if(r(n)&&(Td(n),o.length=!0),i.length<a.length)for(var l=i.length;l<a.length;l++)o[l]=!1;else for(var c=a.length;c<i.length;c++)o[c]=!0;for(var u=Math.min(i.length,a.length),d=0;d<u;d++)i.hasOwnProperty(d)||(o[d]=!0),void 0===o[d]&&e(i[d])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):r(e)}})}var Dd,Md,_d="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Id="undefined"!=typeof Map,Rd="undefined"!=typeof Set,Od="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ld=_d?Symbol.for("immer-nothing"):((Dd={})["immer-nothing"]=!0,Dd),Fd=_d?Symbol.for("immer-draftable"):"__$immer_draftable",Bd=_d?Symbol.for("immer-state"):"__$immer_state",zd=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),Vd="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Wd=Object.getOwnPropertyDescriptors||function(e){var t={};return Vd(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Ud={},$d={get:function(e,t){if(t===Bd)return e;var n=sd(e);if(!td(n,t))return function(e,t,n){var r,a=kd(t,n);return a?"value"in a?a.value:null===(r=a.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!Ju(r)?r:r===Ad(e.t,t)?(jd(e),e.o[t]=Ed(e.A.h,r,e)):r},has:function(e,t){return t in sd(e)},ownKeys:function(e){return Reflect.ownKeys(sd(e))},set:function(e,t,n){var r=kd(sd(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var a=Ad(sd(e),t),i=null==a?void 0:a[Bd];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(ad(n,a)&&(void 0!==n||td(e.t,t)))return!0;jd(e),Td(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==Ad(e.t,t)||t in e.t?(e.R[t]=!1,jd(e),Td(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=sd(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){Xu(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Xu(12)}},Hd={};Qu($d,(function(e,t){Hd[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Hd.deleteProperty=function(e,t){return Hd.set.call(this,e,t,void 0)},Hd.set=function(e,t,n){return $d.set.call(this,e[0],t,n,e[0])};var qd=function(){function e(e){var t=this;this.O=Od,this.D=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var a=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=a);for(var r=arguments.length,o=Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(o))}))}}var o;if("function"!=typeof n&&Xu(6),void 0!==r&&"function"!=typeof r&&Xu(7),Ju(e)){var s=yd(t),l=Ed(t,e,void 0),c=!0;try{o=n(l),c=!1}finally{c?gd(s):vd(s)}return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(e){return md(s,r),xd(e,s)}),(function(e){throw gd(s),e})):(md(s,r),xd(o,s))}if(!e||"object"!=typeof e){if(void 0===(o=n(e))&&(o=e),o===Ld&&(o=void 0),t.D&&cd(o,!0),r){var u=[],d=[];pd("Patches").M(e,o,u,d),r(u,d)}return o}Xu(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,a=Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(a))}))};var r,a,i=t.produce(e,n,(function(e,t){r=e,a=t}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(e){return[e,r,a]})):[i,r,a]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){Ju(e)||Xu(8),Zu(e)&&(e=function(e){return Zu(e)||Xu(22,e),function e(t){if(!Ju(t))return t;var n,r=t[Bd],a=ed(t);if(r){if(!r.P&&(r.i<4||!pd("ES5").K(r)))return r.t;r.I=!0,n=Pd(t,a),r.I=!1}else n=Pd(t,a);return Qu(n,(function(t,a){r&&nd(r.t,t)===a||rd(n,t,e(a))})),3===a?new Set(n):n}(e)}(e));var t=yd(this),n=Ed(this,e,void 0);return n[Bd].C=!0,vd(t),n},t.finishDraft=function(e,t){var n=(e&&e[Bd]).A;return md(n,t),xd(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!Od&&Xu(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var a=pd("Patches").$;return Zu(e)?a(e,t):this.produce(e,(function(e){return a(e,t)}))},e}(),Gd=new qd,Kd=Gd.produce;Gd.produceWithPatches.bind(Gd),Gd.setAutoFreeze.bind(Gd),Gd.setUseProxies.bind(Gd),Gd.applyPatches.bind(Gd),Gd.createDraft.bind(Gd),Gd.finishDraft.bind(Gd);const Yd=Kd;function Xd(e){return Xd="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},Xd(e)}function Zd(e){var t=function(e,t){if("object"!=Xd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Xd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Xd(t)?t:t+""}function Jd(e,t,n){return(t=Zd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qd(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 ep(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qd(Object(n),!0).forEach((function(t){Jd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tp(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var np="function"===typeof Symbol&&Symbol.observable||"@@observable",rp=function(){return Math.random().toString(36).substring(7).split("").join(".")},ap={INIT:"@@redux/INIT"+rp(),REPLACE:"@@redux/REPLACE"+rp(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+rp()}};function ip(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function op(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(tp(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(tp(1));return n(op)(e,t)}if("function"!==typeof e)throw new Error(tp(2));var a=e,i=t,o=[],s=o,l=!1;function c(){s===o&&(s=o.slice())}function u(){if(l)throw new Error(tp(3));return i}function d(e){if("function"!==typeof e)throw new Error(tp(4));if(l)throw new Error(tp(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(tp(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),o=null}}}function p(e){if(!ip(e))throw new Error(tp(7));if("undefined"===typeof e.type)throw new Error(tp(8));if(l)throw new Error(tp(9));try{l=!0,i=a(i,e)}finally{l=!1}for(var t=o=s,n=0;n<t.length;n++){(0,t[n])()}return e}return p({type:ap.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!==typeof e)throw new Error(tp(10));a=e,p({type:ap.REPLACE})}})[np]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(tp(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[np]=function(){return this},e},r}function sp(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var a=t[r];0,"function"===typeof e[a]&&(n[a]=e[a])}var i,o=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:ap.INIT}))throw new Error(tp(12));if("undefined"===typeof n(void 0,{type:ap.PROBE_UNKNOWN_ACTION()}))throw new Error(tp(13))}))}(n)}catch(Dpe){i=Dpe}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,a={},s=0;s<o.length;s++){var l=o[s],c=n[l],u=e[l],d=c(u,t);if("undefined"===typeof d){t&&t.type;throw new Error(tp(14))}a[l]=d,r=r||d!==u}return(r=r||o.length!==Object.keys(e).length)?a:e}}function lp(e,t){return function(){return t(e.apply(this,arguments))}}function cp(e,t){if("function"===typeof e)return lp(e,t);if("object"!==typeof e||null===e)throw new Error(tp(16));var n={};for(var r in e){var a=e[r];"function"===typeof a&&(n[r]=lp(a,t))}return n}function up(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function dp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(tp(15))},a={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(a)}));return r=up.apply(void 0,i)(n.dispatch),ep(ep({},n),{},{dispatch:r})}}}function pp(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(a){return"function"===typeof a?a(n,r,e):t(a)}}}}var hp=pp();hp.withExtraArgument=pp;const fp=hp;var mp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gp=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(Dpe){i=[6,Dpe],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},vp=function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e},yp=Object.defineProperty,bp=Object.defineProperties,xp=Object.getOwnPropertyDescriptors,wp=Object.getOwnPropertySymbols,Sp=Object.prototype.hasOwnProperty,Cp=Object.prototype.propertyIsEnumerable,Ap=function(e,t,n){return t in e?yp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},kp=function(e,t){for(var n in t||(t={}))Sp.call(t,n)&&Ap(e,n,t[n]);if(wp)for(var r=0,a=wp(t);r<a.length;r++){n=a[r];Cp.call(t,n)&&Ap(e,n,t[n])}return e},Tp=function(e,t){return bp(e,xp(t))},jp=function(e,t,n){return new Promise((function(r,a){var i=function(e){try{s(n.next(e))}catch(Dpe){a(Dpe)}},o=function(e){try{s(n.throw(e))}catch(Dpe){a(Dpe)}},s=function(e){return e.done?r(e.value):Promise.resolve(e.value).then(i,o)};s((n=n.apply(e,t)).next())}))},Ep="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?up:up.apply(null,arguments)};"undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function Pp(e){if("object"!==typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}function Np(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t){var a=t.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return kp(kp({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:n[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}var Dp=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var a=e.apply(this,n)||this;return Object.setPrototypeOf(a,t.prototype),a}return mp(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,vp([void 0],e[0].concat(this)))):new(t.bind.apply(t,vp([void 0],e.concat(this))))},t}(Array),Mp=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var a=e.apply(this,n)||this;return Object.setPrototypeOf(a,t.prototype),a}return mp(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,vp([void 0],e[0].concat(this)))):new(t.bind.apply(t,vp([void 0],e.concat(this))))},t}(Array);function _p(e){return Ju(e)?Yd(e,(function(){})):e}function Ip(){return function(e){return function(e){void 0===e&&(e={});var t=e.thunk,n=void 0===t||t,r=(e.immutableCheck,e.serializableCheck,e.actionCreatorCheck,new Dp);n&&(!function(e){return"boolean"===typeof e}(n)?r.push(fp.withExtraArgument(n.extraArgument)):r.push(fp));0;return r}(e)}}function Rp(e){var t,n={},r=[],a={addCase:function(e,t){var r="string"===typeof e?e:e.type;if(!r)throw new Error("`builder.addCase` cannot be called with an empty action type");if(r in n)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return n[r]=t,a},addMatcher:function(e,t){return r.push({matcher:e,reducer:t}),a},addDefaultCase:function(e){return t=e,a}};return e(a),[n,r,t]}function Op(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var n,r="function"==typeof e.initialState?e.initialState:_p(e.initialState),a=e.reducers||{},i=Object.keys(a),o={},s={},l={};function c(){var t="function"===typeof e.extraReducers?Rp(e.extraReducers):[e.extraReducers],n=t[0],a=void 0===n?{}:n,i=t[1],o=void 0===i?[]:i,l=t[2],c=void 0===l?void 0:l,u=kp(kp({},a),s);return function(e,t,n,r){void 0===n&&(n=[]);var a,i="function"===typeof t?Rp(t):[t,n,r],o=i[0],s=i[1],l=i[2];if(function(e){return"function"===typeof e}(e))a=function(){return _p(e())};else{var c=_p(e);a=function(){return c}}function u(e,t){void 0===e&&(e=a());var n=vp([o[t.type]],s.filter((function(e){return(0,e.matcher)(t)})).map((function(e){return e.reducer})));return 0===n.filter((function(e){return!!e})).length&&(n=[l]),n.reduce((function(e,n){if(n){var r;if(Zu(e))return void 0===(r=n(e,t))?e:r;if(Ju(e))return Yd(e,(function(e){return n(e,t)}));if(void 0===(r=n(e,t))){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return e}),e)}return u.getInitialState=a,u}(r,(function(e){for(var t in u)e.addCase(t,u[t]);for(var n=0,r=o;n<r.length;n++){var a=r[n];e.addMatcher(a.matcher,a.reducer)}c&&e.addDefaultCase(c)}))}return i.forEach((function(e){var n,r,i=a[e],c=t+"/"+e;"reducer"in i?(n=i.reducer,r=i.prepare):n=i,o[e]=n,s[c]=n,l[e]=r?Np(c,r):Np(c)})),{name:t,reducer:function(e,t){return n||(n=c()),n(e,t)},actions:l,caseReducers:o,getInitialState:function(){return n||(n=c()),n.getInitialState()}}}var Lp=function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},Fp=["name","message","stack","code"],Bp=function(e,t){this.payload=e,this.meta=t},zp=function(e,t){this.payload=e,this.meta=t},Vp=function(e){if("object"===typeof e&&null!==e){for(var t={},n=0,r=Fp;n<r.length;n++){var a=r[n];"string"===typeof e[a]&&(t[a]=e[a])}return t}return{message:String(e)}};!function(){function e(e,t,n){var r=Np(e+"/fulfilled",(function(e,t,n,r){return{payload:e,meta:Tp(kp({},r||{}),{arg:n,requestId:t,requestStatus:"fulfilled"})}})),a=Np(e+"/pending",(function(e,t,n){return{payload:void 0,meta:Tp(kp({},n||{}),{arg:t,requestId:e,requestStatus:"pending"})}})),i=Np(e+"/rejected",(function(e,t,r,a,i){return{payload:a,error:(n&&n.serializeError||Vp)(e||"Rejected"),meta:Tp(kp({},i||{}),{arg:r,requestId:t,rejectedWithValue:!!a,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)})}})),o="undefined"!==typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return e.prototype.abort=function(){0},e}();return Object.assign((function(e){return function(s,l,c){var u,d=(null==n?void 0:n.idGenerator)?n.idGenerator(e):Lp(),p=new o;function h(e){u=e,p.abort()}var f=function(){return jp(this,null,(function(){var o,f,m,g,v,y;return gp(this,(function(b){switch(b.label){case 0:return b.trys.push([0,4,,5]),g=null==(o=null==n?void 0:n.condition)?void 0:o.call(n,e,{getState:l,extra:c}),null===(x=g)||"object"!==typeof x||"function"!==typeof x.then?[3,2]:[4,g];case 1:g=b.sent(),b.label=2;case 2:if(!1===g||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return v=new Promise((function(e,t){return p.signal.addEventListener("abort",(function(){return t({name:"AbortError",message:u||"Aborted"})}))})),s(a(d,e,null==(f=null==n?void 0:n.getPendingMeta)?void 0:f.call(n,{requestId:d,arg:e},{getState:l,extra:c}))),[4,Promise.race([v,Promise.resolve(t(e,{dispatch:s,getState:l,extra:c,requestId:d,signal:p.signal,abort:h,rejectWithValue:function(e,t){return new Bp(e,t)},fulfillWithValue:function(e,t){return new zp(e,t)}})).then((function(t){if(t instanceof Bp)throw t;return t instanceof zp?r(t.payload,d,e,t.meta):r(t,d,e)}))])];case 3:return m=b.sent(),[3,5];case 4:return y=b.sent(),m=y instanceof Bp?i(null,d,e,y.payload,y.meta):i(y,d,e),[3,5];case 5:return n&&!n.dispatchConditionRejection&&i.match(m)&&m.meta.condition||s(m),[2,m]}var x}))}))}();return Object.assign(f,{abort:h,requestId:d,arg:e,unwrap:function(){return f.then(Wp)}})}}),{pending:a,rejected:i,fulfilled:r,typePrefix:e})}e.withTypes=function(){return e}}();function Wp(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}Object.assign;var Up="listenerMiddleware";Np(Up+"/add"),Np(Up+"/removeAll"),Np(Up+"/remove");"function"===typeof queueMicrotask&&queueMicrotask.bind("undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:globalThis);var $p,Hp=function(e){return function(t){setTimeout(t,e)}};"undefined"!==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:Hp(10);Nd();const qp=Op({name:"selectedClient",initialState:{value:{}},reducers:{updateClient:(e,t)=>{e.value=t.payload},removeClient:e=>{e.value={}}}}),{updateClient:Gp,removeClient:Kp}=qp.actions,Yp=e=>e.selectedClient.value,Xp=qp.reducer,Zp=Op({name:"userPermissions",initialState:{value:{}},reducers:{updatePermissions:(e,t)=>{e.value=t.payload},removePermissions:e=>{e.value={}}}}),{updatePermissions:Jp,removePermissions:Qp}=Zp.actions,eh=e=>e.userPermissions.value,th=Zp.reducer;function nh(e){var t;const n=e.component,r=e.requiredPermissions,a=e.routeType,i=function(e,t,n,r){switch(n){case pl:return!0;case hl:return Uu(e,r);case fl:return Hu(e,t,r);case ml:return qu(e,r);case gl:return Gu(e,t,r);case yl:return $u(e,t)||Gu(e,t,r);default:return!1}}(Oc(eh),null===(t=Oc(Yp).id)||void 0===t?void 0:t.toUpperCase(),a,r),o=e.componentProps;return i?(0,Tl.jsx)(n,{props:o}):(0,Tl.jsx)(ju,{to:{pathname:"/"}})}var rh=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))||this).history=ou(e.props),e}return Fc(n,t),n.prototype.render=function(){return e.createElement(Su,{history:this.history,children:this.props.children})},n}(e.Component);e.Component;var ah=function(e,t){return"function"===typeof e?e(t):e},ih=function(e,t){return"string"===typeof e?Qc(e,null,null,t):e},oh=function(e){return e},sh=e.forwardRef;"undefined"===typeof sh&&(sh=oh);var lh=sh((function(t,n){var r=t.innerRef,a=t.navigate,i=t.onClick,o=(0,Sl.A)(t,["innerRef","navigate","onClick"]),s=o.target,l=(0,wl.A)({},o,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),a())}});return l.ref=oh!==sh&&n||r,e.createElement("a",l)}));var ch=sh((function(t,n){var r=t.component,a=void 0===r?lh:r,i=t.replace,o=t.to,s=t.innerRef,l=(0,Sl.A)(t,["component","replace","to","innerRef"]);return e.createElement(wu.Consumer,null,(function(t){t||Gc(!1);var r=t.history,c=ih(ah(o,t.location),t.location),u=c?r.createHref(c):"",d=(0,wl.A)({},l,{href:u,navigate:function(){var e=ah(o,t.location),n=Jc(t.location)===Jc(ih(e));(i||n?r.replace:r.push)(e)}});return oh!==sh?d.ref=n||s:d.innerRef=s,e.createElement(a,d)}))})),uh=function(e){return e},dh=e.forwardRef;"undefined"===typeof dh&&(dh=uh);var ph=dh((function(t,n){var r=t["aria-current"],a=void 0===r?"page":r,i=t.activeClassName,o=void 0===i?"active":i,s=t.activeStyle,l=t.className,c=t.exact,u=t.isActive,d=t.location,p=t.sensitive,h=t.strict,f=t.style,m=t.to,g=t.innerRef,v=(0,Sl.A)(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return e.createElement(wu.Consumer,null,(function(t){t||Gc(!1);var r=d||t.location,i=ih(ah(m,r),r),y=i.pathname,b=y&&y.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),x=b?Nu(r.pathname,{path:b,exact:c,sensitive:p,strict:h}):null,w=!!(u?u(x,r):x),S="function"===typeof l?l(w):l,C="function"===typeof f?f(w):f;w&&(S=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(S,o),C=(0,wl.A)({},C,s));var A=(0,wl.A)({"aria-current":w&&a||null,className:S,style:C,to:i},v);return uh!==dh?A.ref=n||g:A.innerRef=g,e.createElement(ch,A)}))}));function hh(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=hh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const fh=function(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=hh(e))&&(r&&(r+=" "),r+=t);return r};function mh(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r={};return Object.keys(e).forEach((a=>{r[a]=e[a].reduce(((e,r)=>{if(r){const a=t(r);""!==a&&e.push(a),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}var gh=n(7266),vh=n(8052),yh=n(7868),bh=n(9172),xh=n(7758),wh=n(8812),Sh=n(8280);function Ch(e,t){return(0,wl.A)({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Ah={black:"#000",white:"#fff"},kh={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"},Th={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"},jh={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"},Eh={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"},Ph={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"},Nh={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"},Dh={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"},Mh=["mode","contrastThreshold","tonalOffset"],_h={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:Ah.white,default:Ah.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}},Ih={text:{primary:Ah.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:Ah.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 Rh(e,t,n,r){const a=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,gh.a)(e.main,a):"dark"===t&&(e.dark=(0,gh.e$)(e.main,i)))}function Oh(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,a=(0,Sl.A)(e,Mh),i=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Ph[200],light:Ph[50],dark:Ph[400]}:{main:Ph[700],light:Ph[400],dark:Ph[800]}}(t),o=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Th[200],light:Th[50],dark:Th[400]}:{main:Th[500],light:Th[300],dark:Th[700]}}(t),s=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:jh[500],light:jh[300],dark:jh[700]}:{main:jh[700],light:jh[400],dark:jh[800]}}(t),l=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Nh[400],light:Nh[300],dark:Nh[700]}:{main:Nh[700],light:Nh[500],dark:Nh[900]}}(t),c=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Dh[400],light:Dh[300],dark:Dh[700]}:{main:Dh[800],light:Dh[500],dark:Dh[900]}}(t),u=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Eh[400],light:Eh[300],dark:Eh[700]}:{main:"#ed6c02",light:Eh[500],dark:Eh[900]}}(t);function d(e){return(0,gh.eM)(e,Ih.text.primary)>=n?Ih.text.primary:_h.text.primary}const p=e=>{let{color:t,name:n,mainShade:a=500,lightShade:i=300,darkShade:o=700}=e;if(t=(0,wl.A)({},t),!t.main&&t[a]&&(t.main=t[a]),!t.hasOwnProperty("main"))throw new Error((0,yh.A)(11,n?` (${n})`:"",a));if("string"!==typeof t.main)throw new Error((0,yh.A)(12,n?` (${n})`:"",JSON.stringify(t.main)));return Rh(t,"light",i,r),Rh(t,"dark",o,r),t.contrastText||(t.contrastText=d(t.main)),t},h={dark:Ih,light:_h};return(0,bh.A)((0,wl.A)({common:(0,wl.A)({},Ah),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:kh,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},h[t]),a)}const Lh=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Fh={textTransform:"uppercase"},Bh='"Roboto", "Helvetica", "Arial", sans-serif';function zh(e,t){const n="function"===typeof t?t(e):t,{fontFamily:r=Bh,fontSize:a=14,fontWeightLight:i=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=(0,Sl.A)(n,Lh);const h=a/14,f=d||(e=>e/c*h+"rem"),m=(e,t,n,a,i)=>{return(0,wl.A)({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===Bh?{letterSpacing:(o=a/t,Math.round(1e5*o)/1e5)+"em"}:{},i,u);var o},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(o,48,1.167,0),h4:m(o,34,1.235,.25),h5:m(o,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(o,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(o,16,1.5,.15),body2:m(o,14,1.43,.15),button:m(s,14,1.75,.4,Fh),caption:m(o,12,1.66,.4),overline:m(o,12,2.66,1,Fh),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,bh.A)((0,wl.A)({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:a,fontWeightLight:i,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Vh(){return[`${arguments.length<=0?void 0:arguments[0]}px ${arguments.length<=1?void 0:arguments[1]}px ${arguments.length<=2?void 0:arguments[2]}px ${arguments.length<=3?void 0:arguments[3]}px rgba(0,0,0,0.2)`,`${arguments.length<=4?void 0:arguments[4]}px ${arguments.length<=5?void 0:arguments[5]}px ${arguments.length<=6?void 0:arguments[6]}px ${arguments.length<=7?void 0:arguments[7]}px rgba(0,0,0,0.14)`,`${arguments.length<=8?void 0:arguments[8]}px ${arguments.length<=9?void 0:arguments[9]}px ${arguments.length<=10?void 0:arguments[10]}px ${arguments.length<=11?void 0:arguments[11]}px rgba(0,0,0,0.12)`].join(",")}const Wh=["none",Vh(0,2,1,-1,0,1,1,0,0,1,3,0),Vh(0,3,1,-2,0,2,2,0,0,1,5,0),Vh(0,3,3,-2,0,3,4,0,0,1,8,0),Vh(0,2,4,-1,0,4,5,0,0,1,10,0),Vh(0,3,5,-1,0,5,8,0,0,1,14,0),Vh(0,3,5,-1,0,6,10,0,0,1,18,0),Vh(0,4,5,-2,0,7,10,1,0,2,16,1),Vh(0,5,5,-3,0,8,10,1,0,3,14,2),Vh(0,5,6,-3,0,9,12,1,0,3,16,2),Vh(0,6,6,-3,0,10,14,1,0,4,18,3),Vh(0,6,7,-4,0,11,15,1,0,4,20,3),Vh(0,7,8,-4,0,12,17,2,0,5,22,4),Vh(0,7,8,-4,0,13,19,2,0,5,24,4),Vh(0,7,9,-4,0,14,21,2,0,5,26,4),Vh(0,8,9,-5,0,15,22,2,0,6,28,5),Vh(0,8,10,-5,0,16,24,2,0,6,30,5),Vh(0,8,11,-5,0,17,26,2,0,6,32,5),Vh(0,9,11,-5,0,18,28,2,0,7,34,6),Vh(0,9,12,-6,0,19,29,2,0,7,36,6),Vh(0,10,13,-6,0,20,31,3,0,8,38,7),Vh(0,10,13,-6,0,21,33,3,0,8,40,7),Vh(0,10,14,-6,0,22,35,3,0,8,42,7),Vh(0,11,14,-7,0,23,36,3,0,9,44,8),Vh(0,11,15,-7,0,24,38,3,0,9,46,8)],Uh=["duration","easing","delay"],$h={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)"},Hh={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qh(e){return`${Math.round(e)}ms`}function Gh(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Kh(e){const t=(0,wl.A)({},$h,e.easing),n=(0,wl.A)({},Hh,e.duration);return(0,wl.A)({getAutoHeightDuration:Gh,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:a=n.standard,easing:i=t.easeInOut,delay:o=0}=r;(0,Sl.A)(r,Uh);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"===typeof a?a:qh(a)} ${i} ${"string"===typeof o?o:qh(o)}`)).join(",")}},e,{easing:t,duration:n})}const Yh={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Xh=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Zh(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:n={},transitions:r={},typography:a={}}=e,i=(0,Sl.A)(e,Xh);if(e.vars)throw new Error((0,yh.A)(18));const o=Oh(n),s=(0,Sh.A)(e);let l=(0,bh.A)(s,{mixins:Ch(s.breakpoints,t),palette:o,shadows:Wh.slice(),typography:zh(o,a),transitions:Kh(r),zIndex:(0,wl.A)({},Yh)});l=(0,bh.A)(l,i);for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];return l=u.reduce(((e,t)=>(0,bh.A)(e,t)),l),l.unstable_sxConfig=(0,wl.A)({},xh.A,null==i?void 0:i.unstable_sxConfig),l.unstable_sx=function(e){return(0,wh.A)({sx:e,theme:this})},l}const Jh=Zh,Qh=Jh();const ef=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e},tf=e=>ef(e)&&"classes"!==e,nf=(0,vh.Ay)({themeId:Vl,defaultTheme:Qh,rootShouldForwardProp:tf});function rf(e){return Ol(e)}function af(e,t){"function"===typeof e?e(t):e&&(e.current=t)}function of(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.useMemo((()=>n.every((e=>null==e))?null:e=>{n.forEach((t=>{af(t,e)}))}),n)}const sf=of,lf="undefined"!==typeof window?e.useLayoutEffect:e.useEffect;const cf=function(t){const n=e.useRef(t);return lf((()=>{n.current=t})),e.useRef((function(){return(0,n.current)(...arguments)})).current},uf=cf,df={};const pf=[];class hf{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new hf}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function ff(){const t=function(t,n){const r=e.useRef(df);return r.current===df&&(r.current=t(n)),r}(hf.create).current;return function(t){e.useEffect(t,pf)}(t.disposeEffect),t}let mf=!0,gf=!1;const vf=new hf,yf={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 bf(e){e.metaKey||e.altKey||e.ctrlKey||(mf=!0)}function xf(){mf=!1}function wf(){"hidden"===this.visibilityState&&gf&&(mf=!0)}function Sf(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return mf||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!yf[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Cf(){const t=e.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",bf,!0),t.addEventListener("mousedown",xf,!0),t.addEventListener("pointerdown",xf,!0),t.addEventListener("touchstart",xf,!0),t.addEventListener("visibilitychange",wf,!0))}),[]),n=e.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(e){return!!Sf(e)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(gf=!0,vf.start(100,(()=>{gf=!1})),n.current=!1,!0)},ref:t}}const Af=Cf;function kf(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const Tf=e.createContext(null);function jf(t,n){var r=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){r[t.key]=function(t){return n&&(0,e.isValidElement)(t)?n(t):t}(t)})),r}function Ef(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Pf(t,n,r){var a=jf(t.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,a=Object.create(null),i=[];for(var o in e)o in t?i.length&&(a[o]=i,i=[]):i.push(o);var s={};for(var l in t){if(a[l])for(r=0;r<a[l].length;r++){var c=a[l][r];s[a[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(n,a);return Object.keys(i).forEach((function(o){var s=i[o];if((0,e.isValidElement)(s)){var l=o in n,c=o in a,u=n[o],d=(0,e.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,e.isValidElement)(u)&&(i[o]=(0,e.cloneElement)(s,{onExited:r.bind(null,s),in:u.props.in,exit:Ef(s,"exit",t),enter:Ef(s,"enter",t)})):i[o]=(0,e.cloneElement)(s,{in:!1}):i[o]=(0,e.cloneElement)(s,{onExited:r.bind(null,s),in:!0,exit:Ef(s,"exit",t),enter:Ef(s,"enter",t)})}})),i}var Nf=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Df=function(t){function n(e,n){var r,a=(r=t.call(this,e,n)||this).handleExited.bind(kf(r));return r.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},r}Fc(n,t);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(t,n){var r,a,i=n.children,o=n.handleExited;return{children:n.firstRender?(r=t,a=o,jf(r.children,(function(t){return(0,e.cloneElement)(t,{onExited:a.bind(null,t),in:!0,appear:Ef(t,"appear",r),enter:Ef(t,"enter",r),exit:Ef(t,"exit",r)})}))):Pf(t,i,o),firstRender:!1}},r.handleExited=function(e,t){var n=jf(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,wl.A)({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var t=this.props,n=t.component,r=t.childFactory,a=(0,Sl.A)(t,["component","childFactory"]),i=this.state.contextValue,o=Nf(this.state.children).map(r);return delete a.appear,delete a.enter,delete a.exit,null===n?e.createElement(Tf.Provider,{value:i},o):e.createElement(Tf.Provider,{value:i},e.createElement(n,a,o))},n}(e.Component);Df.propTypes={},Df.defaultProps={component:"div",childFactory:function(e){return e}};const Mf=Df;var _f=n(3290);const If=function(t){const{className:n,classes:r,pulsate:a=!1,rippleX:i,rippleY:o,rippleSize:s,in:l,onExited:c,timeout:u}=t,[d,p]=e.useState(!1),h=fh(n,r.ripple,r.rippleVisible,a&&r.ripplePulsate),f={width:s,height:s,top:-s/2+o,left:-s/2+i},m=fh(r.child,d&&r.childLeaving,a&&r.childPulsate);return l||d||p(!0),e.useEffect((()=>{if(!l&&null!=c){const e=setTimeout(c,u);return()=>{clearTimeout(e)}}}),[c,l,u]),(0,Tl.jsx)("span",{className:h,style:f,children:(0,Tl.jsx)("span",{className:m})})},Rf=e=>e,Of=(()=>{let e=Rf;return{configure(t){e=t},generate:t=>e(t),reset(){e=Rf}}})(),Lf={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ff(e,t){const n=Lf[t];return n?`${arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui"}-${n}`:`${Of.generate(e)}-${t}`}function Bf(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const r={};return t.forEach((t=>{r[t]=Ff(e,t,n)})),r}const zf=Bf("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Vf=["center","classes","className"];let Wf,Uf,$f,Hf,qf=e=>e;const Gf=(0,_f.i7)(Wf||(Wf=qf`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

  100% {
    transform: scale(1);
    opacity: 0.3;
  }
`)),Kf=(0,_f.i7)(Uf||(Uf=qf`
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
`)),Yf=(0,_f.i7)($f||($f=qf`
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
`)),Xf=nf("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Zf=nf(If,{name:"MuiTouchRipple",slot:"Ripple"})(Hf||(Hf=qf`
  opacity: 0;
  position: absolute;

  &.${0} {
    opacity: 0.3;
    transform: scale(1);
    animation-name: ${0};
    animation-duration: ${0}ms;
    animation-timing-function: ${0};
  }

  &.${0} {
    animation-duration: ${0}ms;
  }

  & .${0} {
    opacity: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: currentColor;
  }

  & .${0} {
    opacity: 0;
    animation-name: ${0};
    animation-duration: ${0}ms;
    animation-timing-function: ${0};
  }

  & .${0} {
    position: absolute;
    /* @noflip */
    left: 0px;
    top: 0;
    animation-name: ${0};
    animation-duration: 2500ms;
    animation-timing-function: ${0};
    animation-iteration-count: infinite;
    animation-delay: 200ms;
  }
`),zf.rippleVisible,Gf,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),zf.ripplePulsate,(e=>{let{theme:t}=e;return t.transitions.duration.shorter}),zf.child,zf.childLeaving,Kf,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),zf.childPulsate,Yf,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut})),Jf=e.forwardRef((function(t,n){const r=rf({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:i={},className:o}=r,s=(0,Sl.A)(r,Vf),[l,c]=e.useState([]),u=e.useRef(0),d=e.useRef(null);e.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const p=e.useRef(!1),h=ff(),f=e.useRef(null),m=e.useRef(null),g=e.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:o}=e;c((e=>[...e,(0,Tl.jsx)(Zf,{classes:{ripple:fh(i.ripple,zf.ripple),rippleVisible:fh(i.rippleVisible,zf.rippleVisible),ripplePulsate:fh(i.ripplePulsate,zf.ripplePulsate),child:fh(i.child,zf.child),childLeaving:fh(i.childLeaving,zf.childLeaving),childPulsate:fh(i.childPulsate,zf.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},u.current)])),u.current+=1,d.current=o}),[i]),v=e.useCallback((function(){let 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]:()=>{};const{pulsate:r=!1,center:i=a||t.pulsate,fakeElement:o=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const s=o?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2===0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{g({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})},h.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):g({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[a,g,h]),y=e.useCallback((()=>{v({},{pulsate:!0})}),[v]),b=e.useCallback(((e,t)=>{if(h.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void h.start(0,(()=>{b(e,t)}));f.current=null,c((e=>e.length>0?e.slice(1):e)),d.current=t}),[h]);return e.useImperativeHandle(n,(()=>({pulsate:y,start:v,stop:b})),[y,v,b]),(0,Tl.jsx)(Xf,(0,wl.A)({className:fh(zf.root,i.root,o),ref:m},s,{children:(0,Tl.jsx)(Mf,{component:null,exit:!0,children:l})}))})),Qf=Jf;function em(e){return Ff("MuiButtonBase",e)}const tm=Bf("MuiButtonBase",["root","disabled","focusVisible"]),nm=["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"],rm=nf("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${tm.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),am=e.forwardRef((function(t,n){const r=rf({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:i=!1,children:o,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:h="a",onBlur:f,onClick:m,onContextMenu:g,onDragLeave:v,onFocus:y,onFocusVisible:b,onKeyDown:x,onKeyUp:w,onMouseDown:S,onMouseLeave:C,onMouseUp:A,onTouchEnd:k,onTouchMove:T,onTouchStart:j,tabIndex:E=0,TouchRippleProps:P,touchRippleRef:N,type:D}=r,M=(0,Sl.A)(r,nm),_=e.useRef(null),I=e.useRef(null),R=sf(I,N),{isFocusVisibleRef:O,onFocus:L,onBlur:F,ref:B}=Af(),[z,V]=e.useState(!1);c&&z&&V(!1),e.useImperativeHandle(a,(()=>({focusVisible:()=>{V(!0),_.current.focus()}})),[]);const[W,U]=e.useState(!1);e.useEffect((()=>{U(!0)}),[]);const $=W&&!u&&!c;function H(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;return uf((r=>{t&&t(r);return!n&&I.current&&I.current[e](r),!0}))}e.useEffect((()=>{z&&p&&!u&&W&&I.current.pulsate()}),[u,p,z,W]);const q=H("start",S),G=H("stop",g),K=H("stop",v),Y=H("stop",A),X=H("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),Z=H("start",j),J=H("stop",k),Q=H("stop",T),ee=H("stop",(e=>{F(e),!1===O.current&&V(!1),f&&f(e)}),!1),te=uf((e=>{_.current||(_.current=e.currentTarget),L(e),!0===O.current&&(V(!0),b&&b(e)),y&&y(e)})),ne=()=>{const e=_.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=e.useRef(!1),ae=uf((e=>{p&&!re.current&&z&&I.current&&" "===e.key&&(re.current=!0,I.current.stop(e,(()=>{I.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!c&&(e.preventDefault(),m&&m(e))})),ie=uf((e=>{p&&" "===e.key&&I.current&&z&&!e.defaultPrevented&&(re.current=!1,I.current.stop(e,(()=>{I.current.pulsate(e)}))),w&&w(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let oe=l;"button"===oe&&(M.href||M.to)&&(oe=h);const se={};"button"===oe?(se.type=void 0===D?"button":D,se.disabled=c):(M.href||M.to||(se.role="button"),c&&(se["aria-disabled"]=c));const le=sf(n,B,_);const ce=(0,wl.A)({},r,{centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:p,tabIndex:E,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:a}=e,i=mh({root:["root",t&&"disabled",n&&"focusVisible"]},em,a);return n&&r&&(i.root+=` ${r}`),i})(ce);return(0,Tl.jsxs)(rm,(0,wl.A)({as:oe,className:fh(ue.root,s),ownerState:ce,onBlur:ee,onClick:m,onContextMenu:G,onFocus:te,onKeyDown:ae,onKeyUp:ie,onMouseDown:q,onMouseLeave:X,onMouseUp:Y,onDragLeave:K,onTouchEnd:J,onTouchMove:Q,onTouchStart:Z,ref:le,tabIndex:c?-1:E,type:D},se,M,{children:[o,$?(0,Tl.jsx)(Qf,(0,wl.A)({ref:R,center:i},P)):null]}))})),im=am;var om=n(7598);const sm=om.A;function lm(e){return Ff("MuiIconButton",e)}const cm=Bf("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),um=["edge","children","className","color","disabled","disableFocusRipple","size"],dm=nf(im,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${sm(n.color)}`],n.edge&&t[`edge${sm(n.edge)}`],t[`size${sm(n.size)}`]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({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(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,gh.X4)(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})}),(e=>{let{theme:t,ownerState:n}=e;var r;const a=null==(r=(t.vars||t).palette)?void 0:r[n.color];return(0,wl.A)({},"inherit"===n.color&&{color:"inherit"},"inherit"!==n.color&&"default"!==n.color&&(0,wl.A)({color:null==a?void 0:a.main},!n.disableRipple&&{"&:hover":(0,wl.A)({},a&&{backgroundColor:t.vars?`rgba(${a.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,gh.X4)(a.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===n.size&&{padding:5,fontSize:t.typography.pxToRem(18)},"large"===n.size&&{padding:12,fontSize:t.typography.pxToRem(28)},{[`&.${cm.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})})),pm=e.forwardRef((function(e,t){const n=rf({props:e,name:"MuiIconButton"}),{edge:r=!1,children:a,className:i,color:o="default",disabled:s=!1,disableFocusRipple:l=!1,size:c="medium"}=n,u=(0,Sl.A)(n,um),d=(0,wl.A)({},n,{edge:r,color:o,disabled:s,disableFocusRipple:l,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:a,size:i}=e;return mh({root:["root",n&&"disabled","default"!==r&&`color${sm(r)}`,a&&`edge${sm(a)}`,`size${sm(i)}`]},lm,t)})(d);return(0,Tl.jsx)(dm,(0,wl.A)({className:fh(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},u,{ownerState:d,children:a}))})),hm=pm;function fm(e){return Ff("MuiSvgIcon",e)}Bf("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const mm=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],gm=nf("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${sm(n.color)}`],t[`fontSize${sm(n.fontSize)}`]]}})((e=>{let{theme:t,ownerState:n}=e;var r,a,i,o,s,l,c,u,d,p,h,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:n.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=t.transitions)||null==(a=r.create)?void 0:a.call(r,"fill",{duration:null==(i=t.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(o=t.typography)||null==(s=o.pxToRem)?void 0:s.call(o,20))||"1.25rem",medium:(null==(l=t.typography)||null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(u=t.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[n.fontSize],color:null!=(p=null==(h=(t.vars||t).palette)||null==(h=h[n.color])?void 0:h.main)?p:{action:null==(f=(t.vars||t).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(t.vars||t).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[n.color]}})),vm=e.forwardRef((function(t,n){const r=rf({props:t,name:"MuiSvgIcon"}),{children:a,className:i,color:o="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:p="0 0 24 24"}=r,h=(0,Sl.A)(r,mm),f=e.isValidElement(a)&&"svg"===a.type,m=(0,wl.A)({},r,{color:o,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:f}),g={};u||(g.viewBox=p);const v=(e=>{const{color:t,fontSize:n,classes:r}=e;return mh({root:["root","inherit"!==t&&`color${sm(t)}`,`fontSize${sm(n)}`]},fm,r)})(m);return(0,Tl.jsxs)(gm,(0,wl.A)({as:s,className:fh(v.root,i),focusable:"false",color:c,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:n},g,h,f&&a.props,{ownerState:m,children:[f?a.props.children:a,d?(0,Tl.jsx)("title",{children:d}):null]}))}));vm.muiName="SvgIcon";const ym=vm;function bm(t,n){function r(e,r){return(0,Tl.jsx)(ym,(0,wl.A)({"data-testid":`${n}Icon`,ref:r},e,{children:t}))}return r.muiName=ym.muiName,e.memo(e.forwardRef(r))}const xm=bm([(0,Tl.jsx)("path",{d:"M17 11c.34 0 .67.04 1 .09V6.27L10.5 3 3 6.27v4.91c0 4.54 3.2 8.79 7.5 9.82.55-.13 1.08-.32 1.6-.55-.69-.98-1.1-2.17-1.1-3.45 0-3.31 2.69-6 6-6"},"0"),(0,Tl.jsx)("path",{d:"M17 13c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 1.38c.62 0 1.12.51 1.12 1.12s-.51 1.12-1.12 1.12-1.12-.51-1.12-1.12.5-1.12 1.12-1.12m0 5.37c-.93 0-1.74-.46-2.24-1.17.05-.72 1.51-1.08 2.24-1.08s2.19.36 2.24 1.08c-.5.71-1.31 1.17-2.24 1.17"},"1")],"AdminPanelSettings"),wm=bm((0,Tl.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Sm=bm((0,Tl.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),Cm=bm((0,Tl.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People"),Am=bm((0,Tl.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m2 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"}),"Assignment"),km=bm((0,Tl.jsx)("path",{d:"M20 19.59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 .85-.15 1.19-.4l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5c0 1.02-.31 1.96-.83 2.75zM9 13c0 1.66 1.34 3 3 3s3-1.34 3-3-1.34-3-3-3-3 1.34-3 3"}),"FindInPage"),Tm=bm((0,Tl.jsx)("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-6 0h-4V4h4z"}),"Work"),jm=bm((0,Tl.jsx)("path",{d:"M17 12h-5v5h5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1zm3 18H5V8h14z"}),"Event"),Em=bm((0,Tl.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-2M9 17H7v-7h2zm4 0h-2V7h2zm4 0h-2v-4h2z"}),"Assessment"),Pm=bm((0,Tl.jsx)("path",{d:"M4 8h4V4H4zm6 12h4v-4h-4zm-6 0h4v-4H4zm0-6h4v-4H4zm6 0h4v-4h-4zm6-10v4h4V4zm-6 4h4V4h-4zm6 6h4v-4h-4zm0 6h4v-4h-4z"}),"Apps"),Nm=bm((0,Tl.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person"),Dm=bm((0,Tl.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),Mm=bm((0,Tl.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),_m=bm((0,Tl.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),Im=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Rm(e){return Ff("MuiPaper",e)}Bf("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Om=["className","component","elevation","square","variant"],Lm=nf("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((e=>{let{theme:t,ownerState:n}=e;var r;return(0,wl.A)({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!n.square&&{borderRadius:t.shape.borderRadius},"outlined"===n.variant&&{border:`1px solid ${(t.vars||t).palette.divider}`},"elevation"===n.variant&&(0,wl.A)({boxShadow:(t.vars||t).shadows[n.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:`linear-gradient(${(0,gh.X4)("#fff",Im(n.elevation))}, ${(0,gh.X4)("#fff",Im(n.elevation))})`},t.vars&&{backgroundImage:null==(r=t.vars.overlays)?void 0:r[n.elevation]}))})),Fm=e.forwardRef((function(e,t){const n=rf({props:e,name:"MuiPaper"}),{className:r,component:a="div",elevation:i=1,square:o=!1,variant:s="elevation"}=n,l=(0,Sl.A)(n,Om),c=(0,wl.A)({},n,{component:a,elevation:i,square:o,variant:s}),u=(e=>{const{square:t,elevation:n,variant:r,classes:a}=e;return mh({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Rm,a)})(c);return(0,Tl.jsx)(Lm,(0,wl.A)({as:a,ownerState:c,className:fh(u.root,r),ref:t},l))})),Bm=Fm;function zm(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=zm(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const Vm=function(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=zm(e))&&(r&&(r+=" "),r+=t);return r};var Wm=n(4984),Um=n(8698);const $m=(0,Sh.A)();const Hm=function(){return Pl(arguments.length>0&&void 0!==arguments[0]?arguments[0]:$m)},qm=["className","component"];const Gm=Bf("MuiBox",["root"]),Km=Jh(),Ym=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:n,defaultTheme:r,defaultClassName:a="MuiBox-root",generateClassName:i}=t,o=(0,Wm.default)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(wh.A),s=e.forwardRef((function(e,t){const s=Hm(r),l=(0,Um.A)(e),{className:c,component:u="div"}=l,d=(0,Sl.A)(l,qm);return(0,Tl.jsx)(o,(0,wl.A)({as:u,ref:t,className:Vm(c,i?i(a):a),theme:n&&s[n]||s},d))}));return s}({themeId:Vl,defaultTheme:Km,defaultClassName:Gm.root,generateClassName:Of.generate}),Xm=Ym;var Zm="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};const Jm="object"===("undefined"===typeof window?"undefined":Zm(window))&&"object"===("undefined"===typeof document?"undefined":Zm(document))&&9===document.nodeType;function Qm(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,Zd(r.key),r)}}function eg(e,t,n){return t&&Qm(e.prototype,t),n&&Qm(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var tg={}.constructor;function ng(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(ng);if(e.constructor!==tg)return e;var t={};for(var n in e)t[n]=ng(e[n]);return t}function rg(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,a=ng(t),i=r.plugins.onCreateRule(e,a,n);return i||(e[0],null)}var ag=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},ig=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=ag(e[n]," ");else t=ag(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function og(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function sg(e,t){for(var n="",r=0;r<t;r++)n+="  ";return n+e}function lg(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var a=n.indent,i=void 0===a?0:a,o=t.fallbacks;!1===n.format&&(i=-1/0);var s=og(n),l=s.linebreak,c=s.space;if(e&&i++,o)if(Array.isArray(o))for(var u=0;u<o.length;u++){var d=o[u];for(var p in d){var h=d[p];null!=h&&(r&&(r+=l),r+=sg(p+":"+c+ig(h)+";",i))}}else for(var f in o){var m=o[f];null!=m&&(r&&(r+=l),r+=sg(f+":"+c+ig(m)+";",i))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(r&&(r+=l),r+=sg(g+":"+c+ig(v)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),sg(""+e+c+"{"+r,--i)+sg("}",i)):r}var cg=/([[\].#*$><+~=|^:(),"'`\s])/g,ug="undefined"!==typeof CSS&&CSS.escape,dg=function(e){return ug?ug(e):e.replace(cg,"\\$1")},pg=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,a=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:a&&(this.renderer=new a)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var a=t;n&&!1===n.process||(a=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==a||!1===a,o=e in this.style;if(i&&!o&&!r)return this;var s=i&&o;if(s?delete this.style[e]:this.style[e]=a,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,a),this;var l=this.options.sheet;return l&&l.attached,this},e}(),hg=function(e){function t(t,n,r){var a;a=e.call(this,t,n,r)||this;var i=r.selector,o=r.scoped,s=r.sheet,l=r.generateId;return i?a.selectorText=i:!1!==o&&(a.id=l(kf(kf(a)),s),a.selectorText="."+dg(a.id)),a}Fc(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==typeof n?e[t]=n:Array.isArray(n)&&(e[t]=ig(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,wl.A)({},e,{allowEmpty:!0}):e;return lg(this.selectorText,this.style,n)},eg(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(pg),fg={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new hg(e,t,n)}},mg={indent:1,children:!0},gg=/@([\w-]+)/,vg=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(gg);for(var a in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Vg((0,wl.A)({},n,{parent:this})),t)this.rules.add(a,t[a]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=mg);var t=og(e).linebreak;if(null==e.indent&&(e.indent=mg.indent),null==e.children&&(e.children=mg.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),yg=/@container|@media|@supports\s+/,bg={onCreateRule:function(e,t,n){return yg.test(e)?new vg(e,t,n):null}},xg={indent:1,children:!0},wg=/@keyframes\s+([\w-]+)/,Sg=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(wg);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var a=n.scoped,i=n.sheet,o=n.generateId;for(var s in this.id=!1===a?this.name:dg(o(this,i)),this.rules=new Vg((0,wl.A)({},n,{parent:this})),t)this.rules.add(s,t[s],(0,wl.A)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=xg);var t=og(e).linebreak;if(null==e.indent&&(e.indent=xg.indent),null==e.children&&(e.children=xg.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),Cg=/@keyframes\s+/,Ag=/\$([\w-]+)/g,kg=function(e,t){return"string"===typeof e?e.replace(Ag,(function(e,n){return n in t?t[n]:e})):e},Tg=function(e,t,n){var r=e[t],a=kg(r,n);a!==r&&(e[t]=a)},jg={onCreateRule:function(e,t,n){return"string"===typeof e&&Cg.test(e)?new Sg(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&Tg(e,"animation-name",n.keyframes),"animation"in e&&Tg(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return kg(e,r.keyframes);default:return e}}},Eg=function(e){function t(){return e.apply(this,arguments)||this}return Fc(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,wl.A)({},e,{allowEmpty:!0}):e;return lg(this.key,this.style,n)},t}(pg),Pg={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new Eg(e,t,n):null}},Ng=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=og(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=lg(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return lg(this.at,this.style,e)},e}(),Dg=/@font-face/,Mg={onCreateRule:function(e,t,n){return Dg.test(e)?new Ng(e,t,n):null}},_g=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return lg(this.key,this.style,e)},e}(),Ig={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new _g(e,t,n):null}},Rg=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),Og={"@charset":!0,"@import":!0,"@namespace":!0},Lg={onCreateRule:function(e,t,n){return e in Og?new Rg(e,t,n):null}},Fg=[fg,bg,jg,Pg,Mg,Ig,Lg],Bg={process:!0},zg={force:!0,process:!0},Vg=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,a=r.parent,i=r.sheet,o=r.jss,s=r.Renderer,l=r.generateId,c=r.scoped,u=(0,wl.A)({classes:this.classes,parent:a,sheet:i,jss:o,Renderer:s,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+dg(this.classes[d]));var p=rg(d,t,u);if(!p)return null;this.register(p);var h=void 0===u.index?this.index.length:u.index;return this.index.splice(h,0,p),p},t.replace=function(e,t,n){var r=this.get(e),a=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==a&&(i=(0,wl.A)({},n,{index:a})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof hg?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Sg&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof hg?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Sg&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"===typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=Bg);var a=this.options,i=a.jss.plugins,o=a.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,o,r),r.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,o),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,zg)}for(var u in s){var d=t.style[u],p=s[u];null==d&&d!==p&&t.prop(u,null,zg)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,a=og(e).linebreak,i=0;i<this.index.length;i++){var o=this.index[i].toString(e);(o||r)&&(t&&(t+=a),t+=o)}return t},e}(),Wg=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=(0,wl.A)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Vg(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var a=this.rules.add(e,t,n);return a?(this.options.jss.plugins.onProcessRule(a),this.attached?this.deployed?(r?r.push(a):(this.insertRule(a),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),a):a:(this.deployed=!1,a)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var a=this.rules.replace(e,t,n);return a&&this.options.jss.plugins.onProcessRule(a),this.attached?this.deployed?(this.renderer&&(a?r.renderable&&this.renderer.replaceRule(r.renderable,a):this.renderer.deleteRule(r)),a):a:(this.deployed=!1,a)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var a=this.addRule(r,e[r],t);a&&n.push(a)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"===typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),Ug=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var a=this.registry.onCreateRule[r](e,t,n);if(a)return a}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var a=0;a<this.registry.onUpdate.length;a++)this.registry.onUpdate[a](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,a=0;a<this.registry.onChangeValue.length;a++)r=this.registry.onChangeValue[a](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),$g=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,Sl.A)(t,["attached"]),a=og(r).linebreak,i="",o=0;o<this.registry.length;o++){var s=this.registry[o];null!=n&&s.attached!==n||(i&&(i+=a),i+=s.toString(r))}return i},eg(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Hg=new $g,qg="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window&&window.Math===Math?window:"undefined"!==typeof self&&self.Math===Math?self:Function("return this")(),Gg="2f1acc6c3a606b082e5eef5e54414ffb";null==qg[Gg]&&(qg[Gg]=0);var Kg=qg[Gg]++,Yg=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var a="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(a=String(r.options.jss.id))),e.minify?""+(i||"c")+Kg+a+t:i+n.key+"-"+Kg+(a?"-"+a:"")+"-"+t}},Xg=function(e){var t;return function(){return t||(t=e()),t}},Zg=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(n){return""}},Jg=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=ig(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var a=r?r.indexOf("!important"):-1,i=a>-1?r.substr(0,a-1):r;e.style.setProperty(t,i,a>-1?"important":"")}}catch(o){return!1}return!0},Qg=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(n){}},ev=function(e,t){return e.selectorText=t,e.selectorText===t},tv=Xg((function(){return document.querySelector("head")}));function nv(e){var t=Hg.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"===typeof r){var a=function(e){for(var t=tv(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(a)return{parent:a.parentNode,node:a.nextSibling}}return!1}var rv=Xg((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),av=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(r){return!1}return e.cssRules[n]},iv=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},ov=function(){function e(e){this.getPropertyValue=Zg,this.setProperty=Jg,this.removeProperty=Qg,this.setSelector=ev,this.hasInsertedRules=!1,this.cssRules=[],e&&Hg.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,a=t.element;this.element=a||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=rv();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=nv(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"===typeof n.nodeType){var a=n,i=a.parentNode;i&&i.insertBefore(e,a.nextSibling)}else tv().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,a=n;if("conditional"===e.type||"keyframes"===e.type){var i=iv(n,t);if(!1===(a=av(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,a)}return this.insertRules(r.rules,a),a}var o=e.toString();if(!o)return!1;var s=iv(n,t),l=av(n,o,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof Wg&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),sv=0,lv=function(){function e(e){this.id=sv++,this.version="10.10.0",this.plugins=new Ug,this.options={id:{minify:!1},createGenerateId:Yg,Renderer:Jm?ov:null,plugins:[]},this.generateId=Yg({minify:!1});for(var t=0;t<Fg.length;t++)this.plugins.use(Fg[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=(0,wl.A)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!==typeof n&&(n=0===Hg.index?0:Hg.index+1);var r=new Wg(e,(0,wl.A)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),Hg.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"===typeof e)return this.createRule(void 0,e,t);var r=(0,wl.A)({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var a=rg(e,t,r);return a&&this.plugins.onProcessRule(a),a},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),cv=function(e){return new lv(e)},uv="object"===typeof CSS&&null!=CSS&&"number"in CSS;function dv(e){var t=null;for(var n in e){var r=e[n],a=typeof r;if("function"===a)t||(t={}),t[n]=r;else if("object"===a&&null!==r&&!Array.isArray(r)){var i=dv(r);i&&(t||(t={}),t[n]=i)}}return t}cv();function pv(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{baseClasses:t,newClasses:n,Component:r}=e;if(!n)return t;const a=(0,wl.A)({},t);return Object.keys(n).forEach((e=>{n[e]&&(a[e]=`${t[e]} ${n[e]}`)})),a}const hv={set:(e,t,n,r)=>{let a=e.get(t);a||(a=new Map,e.set(t,a)),a.set(n,r)},get:(e,t,n)=>{const r=e.get(t);return r?r.get(n):void 0},delete:(e,t,n)=>{e.get(t).delete(n)}},fv=hv;function mv(){var e;const t=Al();return null!=(e=null==t?void 0:t.$$material)?e:t}const gv=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function vv(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{disableGlobal:t=!1,productionPrefix:n="jss",seed:r=""}=e,a=""===r?"":`${r}-`;let i=0;const o=()=>(i+=1,i);return(e,i)=>{const s=i.options.name;if(s&&0===s.indexOf("Mui")&&!i.options.link&&!t){if(-1!==gv.indexOf(e.key))return`Mui-${e.key}`;const t=`${a}${s}-${e.key}`;return i.options.theme[kl]&&""===r?`${t}-${o()}`:t}return`${a}${n}${o()}`}}var yv=Date.now(),bv="fnValues"+yv,xv="fnStyle"+ ++yv;const wv=function(){return{onCreateRule:function(e,t,n){if("function"!==typeof t)return null;var r=rg(e,{},n);return r[xv]=t,r},onProcessStyle:function(e,t){if(bv in t||xv in t)return e;var n={};for(var r in e){var a=e[r];"function"===typeof a&&(delete e[r],n[r]=a)}return t[bv]=n,e},onUpdate:function(e,t,n,r){var a=t,i=a[xv];i&&(a.style=i(e)||{});var o=a[bv];if(o)for(var s in o)a.prop(s,o[s](e),r)}}};var Sv="@global",Cv="@global ",Av=function(){function e(e,t,n){for(var r in this.type="global",this.at=Sv,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Vg((0,wl.A)({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),kv=function(){function e(e,t,n){this.type="global",this.at=Sv,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,(0,wl.A)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Tv=/\s*,\s*/g;function jv(e,t){for(var n=e.split(Tv),r="",a=0;a<n.length;a++)r+=t+" "+n[a].trim(),n[a+1]&&(r+=", ");return r}const Ev=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Sv)return new Av(e,t,n);if("@"===e[0]&&e.substr(0,8)===Cv)return new kv(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,a=r?r[Sv]:null;if(a){for(var i in a)t.addRule(i,a[i],(0,wl.A)({},n,{selector:jv(i,e.selector)}));delete r[Sv]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var a in r)if("@"===a[0]&&a.substr(0,7)===Sv){var i=jv(a.substr(7),e.selector);t.addRule(i,r[a],(0,wl.A)({},n,{selector:i})),delete r[a]}}(e,t))}}};var Pv=/\s*,\s*/g,Nv=/&/g,Dv=/\$([\w-]+)/g;const Mv=function(){function e(e,t){return function(n,r){var a=e.getRule(r)||t&&t.getRule(r);return a?a.selector:r}}function t(e,t){for(var n=t.split(Pv),r=e.split(Pv),a="",i=0;i<n.length;i++)for(var o=n[i],s=0;s<r.length;s++){var l=r[s];a&&(a+=", "),a+=-1!==l.indexOf("&")?l.replace(Nv,o):o+" "+l}return a}function n(e,t,n){if(n)return(0,wl.A)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var a=(0,wl.A)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete a.name,a}return{onProcessStyle:function(r,a,i){if("style"!==a.type)return r;var o,s,l=a,c=l.options.parent;for(var u in r){var d=-1!==u.indexOf("&"),p="@"===u[0];if(d||p){if(o=n(l,c,o),d){var h=t(u,l.selector);s||(s=e(c,i)),h=h.replace(Dv,s);var f=l.key+"-"+u;"replaceRule"in c?c.replaceRule(f,r[u],(0,wl.A)({},o,{selector:h})):c.addRule(f,r[u],(0,wl.A)({},o,{selector:h}))}else p&&c.addRule(u,{},o).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}};var _v=/[A-Z]/g,Iv=/^ms-/,Rv={};function Ov(e){return"-"+e.toLowerCase()}const Lv=function(e){if(Rv.hasOwnProperty(e))return Rv[e];var t=e.replace(_v,Ov);return Rv[e]=Iv.test(t)?"-"+t:t};function Fv(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:Lv(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Fv):t.fallbacks=Fv(e.fallbacks)),t}const Bv=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Fv(e[t]);return e}return Fv(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Lv(t);return t===r?e:(n.prop(r,e),null)}}};var zv=uv&&CSS?CSS.px:"px",Vv=uv&&CSS?CSS.ms:"ms",Wv=uv&&CSS?CSS.percent:"%";function Uv(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var a in e)r[a]=e[a],r[a.replace(t,n)]=e[a];return r}var $v=Uv({"animation-delay":Vv,"animation-duration":Vv,"background-position":zv,"background-position-x":zv,"background-position-y":zv,"background-size":zv,border:zv,"border-bottom":zv,"border-bottom-left-radius":zv,"border-bottom-right-radius":zv,"border-bottom-width":zv,"border-left":zv,"border-left-width":zv,"border-radius":zv,"border-right":zv,"border-right-width":zv,"border-top":zv,"border-top-left-radius":zv,"border-top-right-radius":zv,"border-top-width":zv,"border-width":zv,"border-block":zv,"border-block-end":zv,"border-block-end-width":zv,"border-block-start":zv,"border-block-start-width":zv,"border-block-width":zv,"border-inline":zv,"border-inline-end":zv,"border-inline-end-width":zv,"border-inline-start":zv,"border-inline-start-width":zv,"border-inline-width":zv,"border-start-start-radius":zv,"border-start-end-radius":zv,"border-end-start-radius":zv,"border-end-end-radius":zv,margin:zv,"margin-bottom":zv,"margin-left":zv,"margin-right":zv,"margin-top":zv,"margin-block":zv,"margin-block-end":zv,"margin-block-start":zv,"margin-inline":zv,"margin-inline-end":zv,"margin-inline-start":zv,padding:zv,"padding-bottom":zv,"padding-left":zv,"padding-right":zv,"padding-top":zv,"padding-block":zv,"padding-block-end":zv,"padding-block-start":zv,"padding-inline":zv,"padding-inline-end":zv,"padding-inline-start":zv,"mask-position-x":zv,"mask-position-y":zv,"mask-size":zv,height:zv,width:zv,"min-height":zv,"max-height":zv,"min-width":zv,"max-width":zv,bottom:zv,left:zv,top:zv,right:zv,inset:zv,"inset-block":zv,"inset-block-end":zv,"inset-block-start":zv,"inset-inline":zv,"inset-inline-end":zv,"inset-inline-start":zv,"box-shadow":zv,"text-shadow":zv,"column-gap":zv,"column-rule":zv,"column-rule-width":zv,"column-width":zv,"font-size":zv,"font-size-delta":zv,"letter-spacing":zv,"text-decoration-thickness":zv,"text-indent":zv,"text-stroke":zv,"text-stroke-width":zv,"word-spacing":zv,motion:zv,"motion-offset":zv,outline:zv,"outline-offset":zv,"outline-width":zv,perspective:zv,"perspective-origin-x":Wv,"perspective-origin-y":Wv,"transform-origin":Wv,"transform-origin-x":Wv,"transform-origin-y":Wv,"transform-origin-z":Wv,"transition-delay":Vv,"transition-duration":Vv,"vertical-align":zv,"flex-basis":zv,"shape-margin":zv,size:zv,gap:zv,grid:zv,"grid-gap":zv,"row-gap":zv,"grid-row-gap":zv,"grid-column-gap":zv,"grid-template-rows":zv,"grid-template-columns":zv,"grid-auto-rows":zv,"grid-auto-columns":zv,"box-shadow-x":zv,"box-shadow-y":zv,"box-shadow-blur":zv,"box-shadow-spread":zv,"font-line-height":zv,"text-shadow-x":zv,"text-shadow-y":zv,"text-shadow-blur":zv});function Hv(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=Hv(e,t[r],n);else if("object"===typeof t)if("fallbacks"===e)for(var a in t)t[a]=Hv(a,t[a],n);else for(var i in t)t[i]=Hv(e+"-"+i,t[i],n);else if("number"===typeof t&&!1===isNaN(t)){var o=n[e]||$v[e];return!o||0===t&&o===zv?t.toString():"function"===typeof o?o(t).toString():""+t+o}return t}const qv=function(e){void 0===e&&(e={});var t=Uv(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=Hv(r,e[r],t);return e},onChangeValue:function(e,n){return Hv(n,e,t)}}};function Gv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Kv(e,t){if(e){if("string"==typeof e)return Gv(e,t);var n={}.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)?Gv(e,t):void 0}}function Yv(e){return function(e){if(Array.isArray(e))return Gv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Kv(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.")}()}var Xv="",Zv="",Jv="",Qv="",ey=Jm&&"ontouchstart"in document.documentElement;if(Jm){var ty={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},ny=document.createElement("p").style;for(var ry in ty)if(ry+"Transform"in ny){Xv=ry,Zv=ty[ry];break}"Webkit"===Xv&&"msHyphens"in ny&&(Xv="ms",Zv=ty.ms,Qv="edge"),"Webkit"===Xv&&"-apple-trailing-word"in ny&&(Jv="apple")}var ay=Xv,iy=Zv,oy=Jv,sy=Qv,ly=ey;var cy={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===ay?"-webkit-"+e:iy+e)}},uy={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===ay?iy+"print-"+e:e)}},dy=/[-\s]+(.)?/g;function py(e,t){return t?t.toUpperCase():""}function hy(e){return e.replace(dy,py)}function fy(e){return hy("-"+e)}var my,gy={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===ay){var n="mask-image";if(hy(n)in t)return e;if(ay+fy(n)in t)return iy+e}return e}},vy={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==oy||ly?e:iy+e)}},yy={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:iy+e)}},by={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:iy+e)}},xy={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===ay||"ms"===ay&&"edge"!==sy?iy+e:e)}},wy={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===ay||"ms"===ay||"apple"===oy?iy+e:e)}},Sy={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===ay?"WebkitColumn"+fy(e)in t&&iy+"column-"+e:"Moz"===ay&&("page"+fy(e)in t&&"page-"+e))}},Cy={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===ay)return e;var n=e.replace("-inline","");return ay+fy(n)in t&&iy+n}},Ay={supportedProperty:function(e,t){return hy(e)in t&&e}},ky={supportedProperty:function(e,t){var n=fy(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:ay+n in t?iy+e:"Webkit"!==ay&&"Webkit"+n in t&&"-webkit-"+e}},Ty={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===ay?""+iy+e:e)}},jy={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===ay?iy+"scroll-chaining":e)}},Ey={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Py={supportedProperty:function(e,t){var n=Ey[e];return!!n&&(ay+fy(n)in t&&iy+n)}},Ny={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Dy=Object.keys(Ny),My=function(e){return iy+e},_y={supportedProperty:function(e,t,n){var r=n.multiple;if(Dy.indexOf(e)>-1){var a=Ny[e];if(!Array.isArray(a))return ay+fy(a)in t&&iy+a;if(!r)return!1;for(var i=0;i<a.length;i++)if(!(ay+fy(a[0])in t))return!1;return a.map(My)}return!1}},Iy=[cy,uy,gy,vy,yy,by,xy,wy,Sy,Cy,Ay,ky,Ty,jy,Py,_y],Ry=Iy.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Oy=Iy.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Yv(t.noPrefill)),e}),[]),Ly={};if(Jm){my=document.createElement("p");var Fy=window.getComputedStyle(document.documentElement,"");for(var By in Fy)isNaN(By)||(Ly[Fy[By]]=Fy[By]);Oy.forEach((function(e){return delete Ly[e]}))}function zy(e,t){if(void 0===t&&(t={}),!my)return e;if(null!=Ly[e])return Ly[e];"transition"!==e&&"transform"!==e||(t[e]=e in my.style);for(var n=0;n<Ry.length&&(Ly[e]=Ry[n](e,my.style,t),!Ly[e]);n++);try{my.style[e]=""}catch(r){return!1}return Ly[e]}var Vy,Wy={},Uy={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},$y=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Hy(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?zy(t):", "+zy(n);return r||(t||n)}function qy(e,t){var n=t;if(!Vy||"content"===e)return t;if("string"!==typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Wy[r])return Wy[r];try{Vy.style[e]=n}catch(a){return Wy[r]=!1,!1}if(Uy[e])n=n.replace($y,Hy);else if(""===Vy.style[e]&&("-ms-flex"===(n=iy+n)&&(Vy.style[e]="-ms-flexbox"),Vy.style[e]=n,""===Vy.style[e]))return Wy[r]=!1,!1;return Vy.style[e]="",Wy[r]=n,Wy[r]}Jm&&(Vy=document.createElement("p"));const Gy=function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var a=!1,i=zy(n);i&&i!==n&&(a=!0);var o=!1,s=qy(i,ig(r));s&&s!==r&&(o=!0),(a||o)&&(a&&delete t[n],t[i||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===ay?e:"@"+iy+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return qy(t,ig(e))||e}}};const Ky=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},a=Object.keys(t).sort(e),i=0;i<a.length;i++)r[a[i]]=t[a[i]];return r}}};function Yy(){return{plugins:[wv(),Ev(),Mv(),Bv(),qv(),"undefined"===typeof window?null:Gy(),Ky()]}}const Xy=["children","injectFirst","disableGeneration"],Zy=cv(Yy()),Jy={disableGeneration:!1,generateClassName:vv(),jss:Zy,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Qy=e.createContext(Jy);let eb;function tb(t){const{children:n,injectFirst:r=!1,disableGeneration:a=!1}=t,i=(0,Sl.A)(t,Xy),o=e.useContext(Qy),{generateClassName:s,jss:l,serverGenerateClassName:c,sheetsCache:u,sheetsManager:d,sheetsRegistry:p}=(0,wl.A)({},o,i);const h=e.useMemo((()=>{const e={disableGeneration:a,generateClassName:s,jss:l,serverGenerateClassName:c,sheetsCache:u,sheetsManager:d,sheetsRegistry:p};if(!e.jss.options.insertionPoint&&r&&"undefined"!==typeof window){if(!eb){const e=document.head;eb=document.createComment("mui-inject-first"),e.insertBefore(eb,e.firstChild)}e.jss=cv({plugins:Yy().plugins,insertionPoint:eb})}return e}),[r,a,s,l,c,u,d,p]);return(0,Tl.jsx)(Qy.Provider,{value:h,children:n})}let nb=-1e9;const rb=["variant"];function ab(e){return 0===e.length}function ib(e){const t="function"===typeof e;return{create:(n,r)=>{let a;try{a=t?e(n):e}catch(l){throw l}if(!r||!n.components||!n.components[r]||!n.components[r].styleOverrides&&!n.components[r].variants)return a;const i=n.components[r].styleOverrides||{},o=n.components[r].variants||[],s=(0,wl.A)({},a);return Object.keys(i).forEach((e=>{s[e]=(0,bh.A)(s[e]||{},i[e])})),o.forEach((e=>{const t=function(e){const{variant:t}=e,n=(0,Sl.A)(e,rb);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?ab(r)?e[t]:(0,om.A)(e[t]):`${ab(r)?t:(0,om.A)(t)}${(0,om.A)(e[t].toString())}`})),r}(e.props);s[t]=(0,bh.A)(s[t]||{},e.style)})),s},options:{}}}const ob={},sb=["name","classNamePrefix","Component","defaultTheme"];function lb(e,t){let{state:n,theme:r,stylesOptions:a,stylesCreator:i,name:o}=e;if(a.disableGeneration)return;let s=fv.get(a.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},fv.set(a.sheetsManager,i,r,s));const l=(0,wl.A)({},i.options,a,{theme:r,flip:"boolean"===typeof a.flip?a.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;const c=a.sheetsRegistry;if(0===s.refs){let e;a.sheetsCache&&(e=fv.get(a.sheetsCache,i,r));const t=i.create(r,o);e||(e=a.jss.createStyleSheet(t,(0,wl.A)({link:!1},l)),e.attach(),a.sheetsCache&&fv.set(a.sheetsCache,i,r,e)),c&&c.add(e),s.staticSheet=e,s.dynamicStyles=dv(t)}if(s.dynamicStyles){const e=a.jss.createStyleSheet(s.dynamicStyles,(0,wl.A)({link:!0},l));e.update(t),e.attach(),n.dynamicSheet=e,n.classes=pv({baseClasses:s.staticSheet.classes,newClasses:e.classes}),c&&c.add(e)}else n.classes=s.staticSheet.classes;s.refs+=1}function cb(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{name:r,classNamePrefix:a,Component:i,defaultTheme:o=ob}=n,s=(0,Sl.A)(n,sb),l=ib(t),c=r||a||"makeStyles";l.options={index:(nb+=1,nb),name:r,meta:c,classNamePrefix:c};return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=mv()||o,a=(0,wl.A)({},e.useContext(Qy),s),c=e.useRef(),u=e.useRef();!function(t,n){const r=e.useRef([]);let a;const i=e.useMemo((()=>({})),n);r.current!==i&&(r.current=i,a=t()),e.useEffect((()=>()=>{a&&a()}),[i])}((()=>{const e={name:r,state:{},stylesCreator:l,stylesOptions:a,theme:n};return lb(e,t),u.current=!1,c.current=e,()=>{!function(e){let{state:t,theme:n,stylesOptions:r,stylesCreator:a}=e;if(r.disableGeneration)return;const i=fv.get(r.sheetsManager,a,n);i.refs-=1;const o=r.sheetsRegistry;0===i.refs&&(fv.delete(r.sheetsManager,a,n),r.jss.removeStyleSheet(i.staticSheet),o&&o.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),o&&o.remove(t.dynamicSheet))}(e)}}),[n,l]),e.useEffect((()=>{u.current&&function(e,t){let{state:n}=e;n.dynamicSheet&&n.dynamicSheet.update(t)}(c.current,t),u.current=!0}));const d=function(e,t,n){let{state:r,stylesOptions:a}=e;if(a.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});let i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=pv({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(c.current,t.classes,i);return d}}const ub=!1;var db=function(e){return e.scrollTop},pb="unmounted",hb="exited",fb="entering",mb="entered",gb="exiting",vb=function(t){function n(e,n){var r;r=t.call(this,e,n)||this;var a,i=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?i?(a=hb,r.appearStatus=fb):a=mb:a=e.unmountOnExit||e.mountOnEnter?pb:hb,r.state={status:a},r.nextCallback=null,r}Fc(n,t),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===pb?{status:hb}:null};var a=n.prototype;return a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==fb&&n!==mb&&(t=fb):n!==fb&&n!==mb||(t=gb)}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.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}},a.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===fb){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:r.findDOMNode(this);n&&db(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===hb&&this.setState({status:pb})},a.performEnter=function(e){var t=this,n=this.props.enter,a=this.context?this.context.isMounting:e,i=this.props.nodeRef?[a]:[r.findDOMNode(this),a],o=i[0],s=i[1],l=this.getTimeouts(),c=a?l.appear:l.enter;!e&&!n||ub?this.safeSetState({status:mb},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,s),this.safeSetState({status:fb},(function(){t.props.onEntering(o,s),t.onTransitionEnd(c,(function(){t.safeSetState({status:mb},(function(){t.props.onEntered(o,s)}))}))})))},a.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),a=this.props.nodeRef?void 0:r.findDOMNode(this);t&&!ub?(this.props.onExit(a),this.safeSetState({status:gb},(function(){e.props.onExiting(a),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:hb},(function(){e.props.onExited(a)}))}))}))):this.safeSetState({status:hb},(function(){e.props.onExited(a)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.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},a.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:r.findDOMNode(this),a=null==e&&!this.props.addEndListener;if(n&&!a){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],s=i[1];this.props.addEndListener(o,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},a.render=function(){var t=this.state.status;if(t===pb)return null;var n=this.props,r=n.children,a=(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,Sl.A)(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.createElement(Tf.Provider,{value:null},"function"===typeof r?r(t,a):e.cloneElement(e.Children.only(r),a))},n}(e.Component);function yb(){}vb.contextType=Tf,vb.propTypes={},vb.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:yb,onEntering:yb,onEntered:yb,onExit:yb,onExiting:yb,onExited:yb},vb.UNMOUNTED=pb,vb.EXITED=hb,vb.ENTERING=fb,vb.ENTERED=mb,vb.EXITING=gb;const bb=vb;function xb(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];clearTimeout(t),t=setTimeout((()=>{e.apply(this,a)}),n)}return r.clear=()=>{clearTimeout(t)},r}const wb=xb;function Sb(){const e=Hm(Qh);return e[Vl]||e}const Cb=e=>e.scrollTop;function Ab(e,t){var n,r;const{timeout:a,easing:i,style:o={}}=e;return{duration:null!=(n=o.transitionDuration)?n:"number"===typeof a?a:a[t.mode]||0,easing:null!=(r=o.transitionTimingFunction)?r:"object"===typeof i?i[t.mode]:i,delay:o.transitionDelay}}function kb(e){return e&&e.ownerDocument||document}function Tb(e){return kb(e).defaultView||window}const jb=Tb,Eb=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Pb(e,t,n){var r;const a=function(e,t,n){const r=t.getBoundingClientRect(),a=n&&n.getBoundingClientRect(),i=jb(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const e=i.getComputedStyle(t);o=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let s=0,l=0;if(o&&"none"!==o&&"string"===typeof o){const e=o.split("(")[1].split(")")[0].split(",");s=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?a?`translateX(${a.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:"right"===e?a?`translateX(-${r.right-a.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:"up"===e?a?`translateY(${a.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:a?`translateY(-${r.top-a.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}(e,t,"function"===typeof(r=n)?r():r);a&&(t.style.webkitTransform=a,t.style.transform=a)}const Nb=e.forwardRef((function(t,n){const r=Sb(),a={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,container:c,direction:u="down",easing:d=a,in:p,onEnter:h,onEntered:f,onEntering:m,onExit:g,onExited:v,onExiting:y,style:b,timeout:x=i,TransitionComponent:w=bb}=t,S=(0,Sl.A)(t,Eb),C=e.useRef(null),A=sf(l.ref,C,n),k=e=>t=>{e&&(void 0===t?e(C.current):e(C.current,t))},T=k(((e,t)=>{Pb(u,e,c),Cb(e),h&&h(e,t)})),j=k(((e,t)=>{const n=Ab({timeout:x,style:b,easing:d},{mode:"enter"});e.style.webkitTransition=r.transitions.create("-webkit-transform",(0,wl.A)({},n)),e.style.transition=r.transitions.create("transform",(0,wl.A)({},n)),e.style.webkitTransform="none",e.style.transform="none",m&&m(e,t)})),E=k(f),P=k(y),N=k((e=>{const t=Ab({timeout:x,style:b,easing:d},{mode:"exit"});e.style.webkitTransition=r.transitions.create("-webkit-transform",t),e.style.transition=r.transitions.create("transform",t),Pb(u,e,c),g&&g(e)})),D=k((e=>{e.style.webkitTransition="",e.style.transition="",v&&v(e)})),M=e.useCallback((()=>{C.current&&Pb(u,C.current,c)}),[u,c]);return e.useEffect((()=>{if(p||"down"===u||"right"===u)return;const e=wb((()=>{C.current&&Pb(u,C.current,c)})),t=jb(C.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[u,p,c]),e.useEffect((()=>{p||M()}),[p,M]),(0,Tl.jsx)(w,(0,wl.A)({nodeRef:C,onEnter:T,onEntered:E,onEntering:j,onExit:N,onExited:D,onExiting:P,addEndListener:e=>{o&&o(C.current,e)},appear:s,in:p,timeout:x},S,{children:(t,n)=>e.cloneElement(l,(0,wl.A)({ref:A,style:(0,wl.A)({visibility:"exited"!==t||p?void 0:"hidden"},b,l.props.style)},n))}))})),Db=Nb;n(805);const Mb=kb;const _b=e.createContext({});function Ib(e){return Ff("MuiList",e)}Bf("MuiList",["root","padding","dense","subheader"]);const Rb=["children","className","component","dense","disablePadding","subheader"],Ob=nf("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((e=>{let{ownerState:t}=e;return(0,wl.A)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),Lb=e.forwardRef((function(t,n){const r=rf({props:t,name:"MuiList"}),{children:a,className:i,component:o="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=r,u=(0,Sl.A)(r,Rb),d=e.useMemo((()=>({dense:s})),[s]),p=(0,wl.A)({},r,{component:o,dense:s,disablePadding:l}),h=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:a}=e;return mh({root:["root",!n&&"padding",r&&"dense",a&&"subheader"]},Ib,t)})(p);return(0,Tl.jsx)(_b.Provider,{value:d,children:(0,Tl.jsxs)(Ob,(0,wl.A)({as:o,className:fh(h.root,i),ref:n,ownerState:p},u,{children:[c,a]}))})})),Fb=Lb;function Bb(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const zb=Bb,Vb=lf,Wb=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ub(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function $b(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Hb(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function qb(e,t,n,r,a,i){let o=!1,s=a(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Hb(s,i)&&!t)return s.focus(),!0;s=a(e,s,n)}return!1}const Gb=e.forwardRef((function(t,n){const{actions:r,autoFocus:a=!1,autoFocusItem:i=!1,children:o,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu"}=t,p=(0,Sl.A)(t,Wb),h=e.useRef(null),f=e.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Vb((()=>{a&&h.current.focus()}),[a]),e.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{let{direction:n}=t;const r=!h.current.style.width;if(e.clientHeight<h.current.clientHeight&&r){const t=`${zb(Mb(e))}px`;h.current.style["rtl"===n?"paddingLeft":"paddingRight"]=t,h.current.style.width=`calc(100% + ${t})`}return h.current}})),[]);const m=sf(h,n);let g=-1;e.Children.forEach(o,((t,n)=>{e.isValidElement(t)?(t.props.disabled||("selectedMenu"===d&&t.props.selected||-1===g)&&(g=n),g===n&&(t.props.disabled||t.props.muiSkipListHighlight||t.type.muiSkipListHighlight)&&(g+=1,g>=o.length&&(g=-1))):g===n&&(g+=1,g>=o.length&&(g=-1))}));const v=e.Children.map(o,((t,n)=>{if(n===g){const n={};return i&&(n.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===d&&(n.tabIndex=0),e.cloneElement(t,n)}return t}));return(0,Tl.jsx)(Fb,(0,wl.A)({role:"menu",ref:m,className:s,onKeyDown:e=>{const t=h.current,n=e.key,r=Mb(t).activeElement;if("ArrowDown"===n)e.preventDefault(),qb(t,r,c,l,Ub);else if("ArrowUp"===n)e.preventDefault(),qb(t,r,c,l,$b);else if("Home"===n)e.preventDefault(),qb(t,null,c,l,Ub);else if("End"===n)e.preventDefault(),qb(t,null,c,l,$b);else if(1===n.length){const a=f.current,i=n.toLowerCase(),o=performance.now();a.keys.length>0&&(o-a.lastTime>500?(a.keys=[],a.repeating=!0,a.previousKeyMatched=!0):a.repeating&&i!==a.keys[0]&&(a.repeating=!1)),a.lastTime=o,a.keys.push(i);const s=r&&!a.repeating&&Hb(r,a);a.previousKeyMatched&&(s||qb(t,r,!1,l,Ub,a))?e.preventDefault():a.previousKeyMatched=!1}u&&u(e)},tabIndex:a?0:-1},p,{children:v}))})),Kb=Gb,Yb=cb((e=>({root:{[e.breakpoints.down("md")]:{position:"absolute",zIndex:"5",left:"95px"},height:"100vh",background:"#fafafa",justifyContent:"right",boxShadow:"0px 0px 5px darkgrey",display:"flex"},list:{padding:"10px"}})));function Xb(t){const n=Yb(),[r,a]=(0,e.useState)(!1),i=Oc(eh),o=Oc(Yp);return(0,e.useEffect)((()=>{var e;a(function(e,t,n,r){switch(n){case pl:return!0;case hl:return Uu(e,r);case fl:return Hu(e,t,r);case ml:return qu(e,r);case gl:return Gu(e,t,r);case vl:return Ku(e,t,r);case yl:return $u(e,t)||Gu(e,t,r);default:return!1}}(i,null===(e=o.id)||void 0===e?void 0:e.toUpperCase(),t.routeType,t.requiredPermissions))}),[t.navMenuSelection,t.menuCategory,i,o,t.routeType,t.requiredPermissions]),t.index===t.selected&&r?(0,Tl.jsx)(Db,{direction:"right",in:t.open,mountOnEnter:!0,unmountOnExit:!0,children:(0,Tl.jsx)(Bm,{elevation:1,square:!0,className:n.root,children:(0,Tl.jsx)(Kb,{className:n.list,children:t.children})})}):null}function Zb(e){return Ff("MuiDivider",e)}const Jb=Bf("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function Qb(e){return Ff("MuiListItemIcon",e)}const ex=Bf("MuiListItemIcon",["root","alignItemsFlexStart"]);function tx(e){return Ff("MuiListItemText",e)}const nx=Bf("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function rx(e){return Ff("MuiMenuItem",e)}const ax=Bf("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),ix=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ox=nf(im,{shouldForwardProp:e=>tf(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ax.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,gh.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${ax.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:(0,gh.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${ax.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,gh.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,gh.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${ax.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${ax.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${Jb.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${Jb.inset}`]:{marginLeft:52},[`& .${nx.root}`]:{marginTop:0,marginBottom:0},[`& .${nx.inset}`]:{paddingLeft:36},[`& .${ex.root}`]:{minWidth:36}},!n.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},n.dense&&(0,wl.A)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{[`& .${ex.root} svg`]:{fontSize:"1.25rem"}}))})),sx=e.forwardRef((function(t,n){const r=rf({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:i="li",dense:o=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:p}=r,h=(0,Sl.A)(r,ix),f=e.useContext(_b),m=e.useMemo((()=>({dense:o||f.dense||!1,disableGutters:l})),[f.dense,o,l]),g=e.useRef(null);Vb((()=>{a&&g.current&&g.current.focus()}),[a]);const v=(0,wl.A)({},r,{dense:m.dense,divider:s,disableGutters:l}),y=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:a,selected:i,classes:o}=e,s=mh({root:["root",n&&"dense",t&&"disabled",!a&&"gutters",r&&"divider",i&&"selected"]},rx,o);return(0,wl.A)({},o,s)})(r),b=sf(g,n);let x;return r.disabled||(x=void 0!==d?d:-1),(0,Tl.jsx)(_b.Provider,{value:m,children:(0,Tl.jsx)(ox,(0,wl.A)({ref:b,role:u,tabIndex:x,component:i,focusVisibleClassName:fh(y.focusVisible,c),className:fh(y.root,p)},h,{ownerState:v,classes:y}))})})),lx=sx;function cx(e){return Ff("MuiTypography",e)}Bf("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ux=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],dx=nf("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${sm(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({margin:0},"inherit"===n.variant&&{font:"inherit"},"inherit"!==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})})),px={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},hx={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},fx=e.forwardRef((function(e,t){const n=rf({props:e,name:"MuiTypography"}),r=(e=>hx[e]||e)(n.color),a=(0,Um.A)((0,wl.A)({},n,{color:r})),{align:i="inherit",className:o,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=px}=a,h=(0,Sl.A)(a,ux),f=(0,wl.A)({},a,{align:i,color:r,className:o,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=s||(u?"p":p[d]||px[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:a,variant:i,classes:o}=e;return mh({root:["root",i,"inherit"!==e.align&&`align${sm(t)}`,n&&"gutterBottom",r&&"noWrap",a&&"paragraph"]},cx,o)})(f);return(0,Tl.jsx)(dx,(0,wl.A)({as:m,ref:t,ownerState:f,className:fh(g.root,o)},h))})),mx=fx,gx=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],vx=nf("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nx.primary}`]:t.primary},{[`& .${nx.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((e=>{let{ownerState:t}=e;return(0,wl.A)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})})),yx=e.forwardRef((function(t,n){const r=rf({props:t,name:"MuiListItemText"}),{children:a,className:i,disableTypography:o=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d}=r,p=(0,Sl.A)(r,gx),{dense:h}=e.useContext(_b);let f=null!=l?l:a,m=u;const g=(0,wl.A)({},r,{disableTypography:o,inset:s,primary:!!f,secondary:!!m,dense:h}),v=(e=>{const{classes:t,inset:n,primary:r,secondary:a,dense:i}=e;return mh({root:["root",n&&"inset",i&&"dense",r&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},tx,t)})(g);return null==f||f.type===mx||o||(f=(0,Tl.jsx)(mx,(0,wl.A)({variant:h?"body2":"body1",className:v.primary,component:null!=c&&c.variant?void 0:"span",display:"block"},c,{children:f}))),null==m||m.type===mx||o||(m=(0,Tl.jsx)(mx,(0,wl.A)({variant:"body2",className:v.secondary,color:"text.secondary",display:"block"},d,{children:m}))),(0,Tl.jsxs)(vx,(0,wl.A)({className:fh(v.root,i),ownerState:g,ref:n},p,{children:[f,m]}))})),bx=yx,xx={Dashboard:0,UserManagement:1,ClientConfiguration:2,Search:3,Jobs:4,Events:5,Reports:6,CrossClient:7,MoreApps:8,Profile:9},wx=Jh({palette:{primary:{main:"#00af4a",contrastText:"#fff",copy:"#58595b",blue:"rgba(28,172,232,.2)",graph:"rgba(0,175,74,.6)",greenHighlight:"#14C35E"},secondary:{main:"#ed7044"},background:{main:"#E7E7E7"},error:{main:"#ed7044"},NAS:{green:"#00af4a",lightGreen:"#78c040",blue:"#445bab",lightBlue:"#1cace8",magenta:"#a652a0",orange:"#ed7044",greenHighlight:"#14C35E",lightGreenHighlight:"#8CD454",blueHighlight:"#586FBF",lightBlueHighlight:"#30C0FC",magentaHighlight:"#BA66B4",orangeHighlight:"#FF8462"}}}),Sx=Jh({palette:{primary:{main:"#445bab"}}}),Cx=wx,Ax=cb({linkText:{color:"black",textDecoration:"none"},item:{margin:"20px 0px 0px 0px",justifyContent:"flex-start",display:"flex",width:"220px"},disabledItem:{margin:"20px 0px 0px 0px",justifyContent:"flex-start",display:"flex",width:"220px",pointerEvents:"none",opacity:"0.5"},itemText:{paddingRight:"20px",color:Cx.palette.primary.copy}});function kx(t){const n=Ax(),r=Oc(eh),a=Oc(Yp),[i,o]=(0,e.useState)(!1),[s,l]=(0,e.useState)(!1),c=zu().pathname;return(0,e.useEffect)((()=>{var e,n,i;l((n=t.navMenuSelection,i=t.menuCategory,n===i)),o(function(e,t,n,r){switch(n){case pl:return!0;case hl:return Uu(e,r);case fl:return Hu(e,t,r);case ml:return qu(e,r);case gl:return Gu(e,t,r);case yl:return $u(e,t)||Gu(e,t,r);case bl:return function(e,t){for(var n in e)if(e[n].BaseClientID.toUpperCase()===t)return 1===e[n].CRMRole||2===e[n].CRMRole}(e,t);default:return!1}}(r,null===(e=a.id)||void 0===e?void 0:e.toUpperCase(),t.routeType,t.requiredPermissions))}),[t.navMenuSelection,t.menuCategory,r,a,t.routeType,t.requiredPermissions]),!0===s&&!0===i?t.menuCategory===xx.MoreApps?(0,Tl.jsx)(ph,{className:n.linkText,to:{pathname:t.route},target:"_blank",children:(0,Tl.jsx)(lx,{onClick:t.clickEvent,className:n.item,selected:c===t.route,sx:{minWidth:"95px","&.Mui-selected":{backgroundColor:"rgba(0, 0, 0, 0.08)","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.08)"}}},children:(0,Tl.jsx)(bx,{className:n.itemText,children:t.title})})}):(0,Tl.jsx)(ph,{className:n.linkText,to:t.route,children:(0,Tl.jsx)(lx,{onClick:t.clickEvent,className:n.item,selected:c===t.route,sx:{minWidth:"95px","&.Mui-selected":{backgroundColor:"rgba(0, 0, 0, 0.08)","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.08)"}}},children:(0,Tl.jsx)(bx,{sx:{padding:"6px"},children:t.title})})}):null}const Tx=["className"],jx=nf("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===n.alignItems&&{marginTop:8})})),Ex=e.forwardRef((function(t,n){const r=rf({props:t,name:"MuiListItemIcon"}),{className:a}=r,i=(0,Sl.A)(r,Tx),o=e.useContext(_b),s=(0,wl.A)({},r,{alignItems:o.alignItems}),l=(e=>{const{alignItems:t,classes:n}=e;return mh({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Qb,n)})(s);return(0,Tl.jsx)(jx,(0,wl.A)({className:fh(l.root,a),ownerState:s,ref:n},i))})),Px=Ex;const Nx=function(e){return"string"===typeof e};const Dx=function(e,t,n){return void 0===e||Nx(e)?t:(0,wl.A)({},t,{ownerState:(0,wl.A)({},t.ownerState,n)})},Mx=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function _x(e){return`scale(${e}, ${e**2})`}const Ix={entering:{opacity:1,transform:_x(1)},entered:{opacity:1,transform:"none"}},Rx="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ox=e.forwardRef((function(t,n){const{addEndListener:r,appear:a=!0,children:i,easing:o,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:p,onExiting:h,style:f,timeout:m="auto",TransitionComponent:g=bb}=t,v=(0,Sl.A)(t,Mx),y=ff(),b=e.useRef(),x=Sb(),w=e.useRef(null),S=sf(w,i.ref,n),C=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},A=C(u),k=C(((e,t)=>{Cb(e);const{duration:n,delay:r,easing:a}=Ab({style:f,timeout:m,easing:o},{mode:"enter"});let i;"auto"===m?(i=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=i):i=n,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:r}),x.transitions.create("transform",{duration:Rx?i:.666*i,delay:r,easing:a})].join(","),l&&l(e,t)})),T=C(c),j=C(h),E=C((e=>{const{duration:t,delay:n,easing:r}=Ab({style:f,timeout:m,easing:o},{mode:"exit"});let a;"auto"===m?(a=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=t,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:n}),x.transitions.create("transform",{duration:Rx?a:.666*a,delay:Rx?n:n||.333*a,easing:r})].join(","),e.style.opacity=0,e.style.transform=_x(.75),d&&d(e)})),P=C(p);return(0,Tl.jsx)(g,(0,wl.A)({appear:a,in:s,nodeRef:w,onEnter:k,onEntered:T,onEntering:A,onExit:E,onExited:P,onExiting:j,addEndListener:e=>{"auto"===m&&y.start(b.current||0,e),r&&r(w.current,e)},timeout:"auto"===m?null:m},v,{children:(t,n)=>e.cloneElement(i,(0,wl.A)({style:(0,wl.A)({opacity:0,transform:_x(.75),visibility:"exited"!==t||s?void 0:"hidden"},Ix[t],f,i.props.style),ref:S},n))}))}));Ox.muiSupportAuto=!0;const Lx=Ox;var Fx=n(2374);function Bx(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function zx(e){return e instanceof Bx(e).Element||e instanceof Element}function Vx(e){return e instanceof Bx(e).HTMLElement||e instanceof HTMLElement}function Wx(e){return"undefined"!==typeof ShadowRoot&&(e instanceof Bx(e).ShadowRoot||e instanceof ShadowRoot)}var Ux=Math.max,$x=Math.min,Hx=Math.round;function qx(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Gx(){return!/^((?!chrome|android).)*safari/i.test(qx())}function Kx(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),a=1,i=1;t&&Vx(e)&&(a=e.offsetWidth>0&&Hx(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Hx(r.height)/e.offsetHeight||1);var o=(zx(e)?Bx(e):window).visualViewport,s=!Gx()&&n,l=(r.left+(s&&o?o.offsetLeft:0))/a,c=(r.top+(s&&o?o.offsetTop:0))/i,u=r.width/a,d=r.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function Yx(e){var t=Bx(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Xx(e){return e?(e.nodeName||"").toLowerCase():null}function Zx(e){return((zx(e)?e.ownerDocument:e.document)||window.document).documentElement}function Jx(e){return Kx(Zx(e)).left+Yx(e).scrollLeft}function Qx(e){return Bx(e).getComputedStyle(e)}function ew(e){var t=Qx(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function tw(e,t,n){void 0===n&&(n=!1);var r=Vx(t),a=Vx(t)&&function(e){var t=e.getBoundingClientRect(),n=Hx(t.width)/e.offsetWidth||1,r=Hx(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Zx(t),o=Kx(e,a,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Xx(t)||ew(i))&&(s=function(e){return e!==Bx(e)&&Vx(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Yx(e);var t}(t)),Vx(t)?((l=Kx(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Jx(i))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function nw(e){var t=Kx(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 rw(e){return"html"===Xx(e)?e:e.assignedSlot||e.parentNode||(Wx(e)?e.host:null)||Zx(e)}function aw(e){return["html","body","#document"].indexOf(Xx(e))>=0?e.ownerDocument.body:Vx(e)&&ew(e)?e:aw(rw(e))}function iw(e,t){var n;void 0===t&&(t=[]);var r=aw(e),a=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Bx(r),o=a?[i].concat(i.visualViewport||[],ew(r)?r:[]):r,s=t.concat(o);return a?s:s.concat(iw(rw(o)))}function ow(e){return["table","td","th"].indexOf(Xx(e))>=0}function sw(e){return Vx(e)&&"fixed"!==Qx(e).position?e.offsetParent:null}function lw(e){for(var t=Bx(e),n=sw(e);n&&ow(n)&&"static"===Qx(n).position;)n=sw(n);return n&&("html"===Xx(n)||"body"===Xx(n)&&"static"===Qx(n).position)?t:n||function(e){var t=/firefox/i.test(qx());if(/Trident/i.test(qx())&&Vx(e)&&"fixed"===Qx(e).position)return null;var n=rw(e);for(Wx(n)&&(n=n.host);Vx(n)&&["html","body"].indexOf(Xx(n))<0;){var r=Qx(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 cw="top",uw="bottom",dw="right",pw="left",hw="auto",fw=[cw,uw,dw,pw],mw="start",gw="end",vw="viewport",yw="popper",bw=fw.reduce((function(e,t){return e.concat([t+"-"+mw,t+"-"+gw])}),[]),xw=[].concat(fw,[hw]).reduce((function(e,t){return e.concat([t,t+"-"+mw,t+"-"+gw])}),[]),ww=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Sw(e){var t=new Map,n=new Set,r=[];function a(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&a(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||a(e)})),r}function Cw(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Aw={placement:"bottom",modifiers:[],strategy:"absolute"};function kw(){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 Tw(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,a=t.defaultOptions,i=void 0===a?Aw:a;return function(e,t,n){void 0===n&&(n=i);var a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Aw,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,l={state:a,setOptions:function(n){var s="function"===typeof n?n(a.options):n;c(),a.options=Object.assign({},i,a.options,s),a.scrollParents={reference:zx(e)?iw(e):e.contextElement?iw(e.contextElement):[],popper:iw(t)};var u=function(e){var t=Sw(e);return ww.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,a.options.modifiers)));return a.orderedModifiers=u.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"===typeof i){var s=i({state:a,name:t,instance:l,options:r}),c=function(){};o.push(s||c)}})),l.update()},forceUpdate:function(){if(!s){var e=a.elements,t=e.reference,n=e.popper;if(kw(t,n)){a.rects={reference:tw(t,lw(n),"fixed"===a.options.strategy),popper:nw(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<a.orderedModifiers.length;r++)if(!0!==a.reset){var i=a.orderedModifiers[r],o=i.fn,c=i.options,u=void 0===c?{}:c,d=i.name;"function"===typeof o&&(a=o({state:a,options:u,name:d,instance:l})||a)}else a.reset=!1,r=-1}}},update:Cw((function(){return new Promise((function(e){l.forceUpdate(),e(a)}))})),destroy:function(){c(),s=!0}};if(!kw(e,t))return l;function c(){o.forEach((function(e){return e()})),o=[]}return l.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var jw={passive:!0};function Ew(e){return e.split("-")[0]}function Pw(e){return e.split("-")[1]}function Nw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Dw(e){var t,n=e.reference,r=e.element,a=e.placement,i=a?Ew(a):null,o=a?Pw(a):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case cw:t={x:s,y:n.y-r.height};break;case uw:t={x:s,y:n.y+n.height};break;case dw:t={x:n.x+n.width,y:l};break;case pw:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?Nw(i):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case mw:t[c]=t[c]-(n[u]/2-r[u]/2);break;case gw:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var Mw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _w(e){var t,n=e.popper,r=e.popperRect,a=e.placement,i=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=o.x,h=void 0===p?0:p,f=o.y,m=void 0===f?0:f,g="function"===typeof u?u({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var v=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),b=pw,x=cw,w=window;if(c){var S=lw(n),C="clientHeight",A="clientWidth";if(S===Bx(n)&&"static"!==Qx(S=Zx(n)).position&&"absolute"===s&&(C="scrollHeight",A="scrollWidth"),a===cw||(a===pw||a===dw)&&i===gw)x=uw,m-=(d&&S===w&&w.visualViewport?w.visualViewport.height:S[C])-r.height,m*=l?1:-1;if(a===pw||(a===cw||a===uw)&&i===gw)b=dw,h-=(d&&S===w&&w.visualViewport?w.visualViewport.width:S[A])-r.width,h*=l?1:-1}var k,T=Object.assign({position:s},c&&Mw),j=!0===u?function(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:Hx(n*a)/a||0,y:Hx(r*a)/a||0}}({x:h,y:m},Bx(n)):{x:h,y:m};return h=j.x,m=j.y,l?Object.assign({},T,((k={})[x]=y?"0":"",k[b]=v?"0":"",k.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",k)):Object.assign({},T,((t={})[x]=y?m+"px":"",t[b]=v?h+"px":"",t.transform="",t))}const Iw={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]||{},a=t.elements[e];Vx(a)&&Xx(a)&&(Object.assign(a.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?a.removeAttribute(e):a.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],a=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Vx(r)&&Xx(r)&&(Object.assign(r.style,i),Object.keys(a).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};const Rw={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=void 0===a?[0,0]:a,o=xw.reduce((function(e,n){return e[n]=function(e,t,n){var r=Ew(e),a=[pw,cw].indexOf(r)>=0?-1:1,i="function"===typeof n?n(Object.assign({},t,{placement:e})):n,o=i[0],s=i[1];return o=o||0,s=(s||0)*a,[pw,dw].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}(n,t.rects,i),e}),{}),s=o[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=o}};var Ow={left:"right",right:"left",bottom:"top",top:"bottom"};function Lw(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ow[e]}))}var Fw={start:"end",end:"start"};function Bw(e){return e.replace(/start|end/g,(function(e){return Fw[e]}))}function zw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Wx(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Vw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ww(e,t,n){return t===vw?Vw(function(e,t){var n=Bx(e),r=Zx(e),a=n.visualViewport,i=r.clientWidth,o=r.clientHeight,s=0,l=0;if(a){i=a.width,o=a.height;var c=Gx();(c||!c&&"fixed"===t)&&(s=a.offsetLeft,l=a.offsetTop)}return{width:i,height:o,x:s+Jx(e),y:l}}(e,n)):zx(t)?function(e,t){var n=Kx(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):Vw(function(e){var t,n=Zx(e),r=Yx(e),a=null==(t=e.ownerDocument)?void 0:t.body,i=Ux(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=Ux(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+Jx(e),l=-r.scrollTop;return"rtl"===Qx(a||n).direction&&(s+=Ux(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:s,y:l}}(Zx(e)))}function Uw(e,t,n,r){var a="clippingParents"===t?function(e){var t=iw(rw(e)),n=["absolute","fixed"].indexOf(Qx(e).position)>=0&&Vx(e)?lw(e):e;return zx(n)?t.filter((function(e){return zx(e)&&zw(e,n)&&"body"!==Xx(e)})):[]}(e):[].concat(t),i=[].concat(a,[n]),o=i[0],s=i.reduce((function(t,n){var a=Ww(e,n,r);return t.top=Ux(a.top,t.top),t.right=$x(a.right,t.right),t.bottom=$x(a.bottom,t.bottom),t.left=Ux(a.left,t.left),t}),Ww(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function $w(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Hw(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function qw(e,t){void 0===t&&(t={});var n=t,r=n.placement,a=void 0===r?e.placement:r,i=n.strategy,o=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?vw:c,d=n.elementContext,p=void 0===d?yw:d,h=n.altBoundary,f=void 0!==h&&h,m=n.padding,g=void 0===m?0:m,v=$w("number"!==typeof g?g:Hw(g,fw)),y=p===yw?"reference":yw,b=e.rects.popper,x=e.elements[f?y:p],w=Uw(zx(x)?x:x.contextElement||Zx(e.elements.popper),l,u,o),S=Kx(e.elements.reference),C=Dw({reference:S,element:b,strategy:"absolute",placement:a}),A=Vw(Object.assign({},b,C)),k=p===yw?A:S,T={top:w.top-k.top+v.top,bottom:k.bottom-w.bottom+v.bottom,left:w.left-k.left+v.left,right:k.right-w.right+v.right},j=e.modifiersData.offset;if(p===yw&&j){var E=j[a];Object.keys(T).forEach((function(e){var t=[dw,uw].indexOf(e)>=0?1:-1,n=[cw,uw].indexOf(e)>=0?"y":"x";T[e]+=E[n]*t}))}return T}const Gw={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 a=n.mainAxis,i=void 0===a||a,o=n.altAxis,s=void 0===o||o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,f=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,v=Ew(g),y=l||(v===g||!f?[Lw(g)]:function(e){if(Ew(e)===hw)return[];var t=Lw(e);return[Bw(e),t,Bw(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(Ew(n)===hw?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,a=n.boundary,i=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?xw:l,u=Pw(r),d=u?s?bw:bw.filter((function(e){return Pw(e)===u})):fw,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var h=p.reduce((function(t,n){return t[n]=qw(e,{placement:n,boundary:a,rootBoundary:i,padding:o})[Ew(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:f,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,w=t.rects.popper,S=new Map,C=!0,A=b[0],k=0;k<b.length;k++){var T=b[k],j=Ew(T),E=Pw(T)===mw,P=[cw,uw].indexOf(j)>=0,N=P?"width":"height",D=qw(t,{placement:T,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),M=P?E?dw:pw:E?uw:cw;x[N]>w[N]&&(M=Lw(M));var _=Lw(M),I=[];if(i&&I.push(D[j]<=0),s&&I.push(D[M]<=0,D[_]<=0),I.every((function(e){return e}))){A=T,C=!1;break}S.set(T,I)}if(C)for(var R=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 A=t,"break"},O=f?3:1;O>0;O--){if("break"===R(O))break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Kw(e,t,n){return Ux(e,$x(t,n))}const Yw={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,i=void 0===a||a,o=n.altAxis,s=void 0!==o&&o,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,h=void 0===p||p,f=n.tetherOffset,m=void 0===f?0:f,g=qw(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Ew(t.placement),y=Pw(t.placement),b=!y,x=Nw(v),w="x"===x?"y":"x",S=t.modifiersData.popperOffsets,C=t.rects.reference,A=t.rects.popper,k="function"===typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,T="number"===typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(S){if(i){var P,N="y"===x?cw:pw,D="y"===x?uw:dw,M="y"===x?"height":"width",_=S[x],I=_+g[N],R=_-g[D],O=h?-A[M]/2:0,L=y===mw?C[M]:A[M],F=y===mw?-A[M]:-C[M],B=t.elements.arrow,z=h&&B?nw(B):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=V[N],U=V[D],$=Kw(0,C[M],z[M]),H=b?C[M]/2-O-$-W-T.mainAxis:L-$-W-T.mainAxis,q=b?-C[M]/2+O+$+U+T.mainAxis:F+$+U+T.mainAxis,G=t.elements.arrow&&lw(t.elements.arrow),K=G?"y"===x?G.clientTop||0:G.clientLeft||0:0,Y=null!=(P=null==j?void 0:j[x])?P:0,X=_+q-Y,Z=Kw(h?$x(I,_+H-Y-K):I,_,h?Ux(R,X):R);S[x]=Z,E[x]=Z-_}if(s){var J,Q="x"===x?cw:pw,ee="x"===x?uw:dw,te=S[w],ne="y"===w?"height":"width",re=te+g[Q],ae=te-g[ee],ie=-1!==[cw,pw].indexOf(v),oe=null!=(J=null==j?void 0:j[w])?J:0,se=ie?re:te-C[ne]-A[ne]-oe+T.altAxis,le=ie?te+C[ne]+A[ne]-oe-T.altAxis:ae,ce=h&&ie?function(e,t,n){var r=Kw(e,t,n);return r>n?n:r}(se,te,le):Kw(h?se:re,te,h?le:ae);S[w]=ce,E[w]=ce-te}t.modifiersData[r]=E}},requiresIfExists:["offset"]};const Xw={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,a=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Ew(n.placement),l=Nw(s),c=[pw,dw].indexOf(s)>=0?"height":"width";if(i&&o){var u=function(e,t){return $w("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Hw(e,fw))}(a.padding,n),d=nw(i),p="y"===l?cw:pw,h="y"===l?uw:dw,f=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],m=o[l]-n.rects.reference[l],g=lw(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=f/2-m/2,b=u[p],x=v-d[c]-u[h],w=v/2-d[c]/2+y,S=Kw(b,w,x),C=l;n.modifiersData[r]=((t={})[C]=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)))&&zw(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zw(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 Jw(e){return[cw,dw,uw,pw].some((function(t){return e[t]>=0}))}var Qw=Tw({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,i=void 0===a||a,o=r.resize,s=void 0===o||o,l=Bx(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,jw)})),s&&l.addEventListener("resize",n.update,jw),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,jw)})),s&&l.removeEventListener("resize",n.update,jw)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Dw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=void 0===r||r,i=n.adaptive,o=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:Ew(t.placement),variation:Pw(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,_w(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,_w(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Iw,Rw,Gw,Yw,Xw,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,o=qw(t,{elementContext:"reference"}),s=qw(t,{altBoundary:!0}),l=Zw(o,r),c=Zw(s,a,i),u=Jw(l),d=Jw(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});function eS(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=eS(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const tS=function(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=eS(e))&&(r&&(r+=" "),r+=t);return r};const nS=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"===typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n};const rS=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"===typeof e[t]))).forEach((n=>{t[n]=e[n]})),t};const aS=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:i}=e;if(!t){const e=tS(null==n?void 0:n.className,i,null==a?void 0:a.className,null==r?void 0:r.className),t=(0,wl.A)({},null==n?void 0:n.style,null==a?void 0:a.style,null==r?void 0:r.style),o=(0,wl.A)({},n,a,r);return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}const o=nS((0,wl.A)({},a,r)),s=rS(r),l=rS(a),c=t(o),u=tS(null==c?void 0:c.className,null==n?void 0:n.className,i,null==a?void 0:a.className,null==r?void 0:r.className),d=(0,wl.A)({},null==c?void 0:c.style,null==n?void 0:n.style,null==a?void 0:a.style,null==r?void 0:r.style),p=(0,wl.A)({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}};const iS=function(e,t,n){return"function"===typeof e?e(t,n):e},oS=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];const sS=function(e){var t;const{elementType:n,externalSlotProps:r,ownerState:a,skipResolvingSlotProps:i=!1}=e,o=(0,Sl.A)(e,oS),s=i?{}:iS(r,a),{props:l,internalRef:c}=aS((0,wl.A)({},o,{externalSlotProps:s})),u=of(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref);return Dx(n,(0,wl.A)({},l,{ref:u}),a)};const lS=e.forwardRef((function(t,n){const{children:a,container:i,disablePortal:o=!1}=t,[s,l]=e.useState(null),c=of(e.isValidElement(a)?a.ref:null,n);if(lf((()=>{o||l(function(e){return"function"===typeof e?e():e}(i)||document.body)}),[i,o]),lf((()=>{if(s&&!o)return af(n,s),()=>{af(n,null)}}),[n,s,o]),o){if(e.isValidElement(a)){const t={ref:c};return e.cloneElement(a,t)}return(0,Tl.jsx)(e.Fragment,{children:a})}return(0,Tl.jsx)(e.Fragment,{children:s?r.createPortal(a,s):s})}));function cS(e){return Ff("MuiPopper",e)}Bf("MuiPopper",["root"]);const uS=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],dS=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function pS(e){return"function"===typeof e?e():e}function hS(e){return void 0!==e.nodeType}const fS={},mS=e.forwardRef((function(t,n){var r;const{anchorEl:a,children:i,direction:o,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:p,slotProps:h={},slots:f={},TransitionProps:m}=t,g=(0,Sl.A)(t,uS),v=e.useRef(null),y=of(v,n),b=e.useRef(null),x=of(b,p),w=e.useRef(x);lf((()=>{w.current=x}),[x]),e.useImperativeHandle(p,(()=>b.current),[]);const S=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(u,o),[C,A]=e.useState(S),[k,T]=e.useState(pS(a));e.useEffect((()=>{b.current&&b.current.forceUpdate()})),e.useEffect((()=>{a&&T(pS(a))}),[a]),lf((()=>{if(!k||!c)return;let e=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:e=>{let{state:t}=e;A(t.placement)}}];null!=l&&(e=e.concat(l)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));const t=Qw(k,v.current,(0,wl.A)({placement:S},d,{modifiers:e}));return w.current(t),()=>{t.destroy(),w.current(null)}}),[k,s,l,c,d,S]);const j={placement:C};null!==m&&(j.TransitionProps=m);const E=(e=>{const{classes:t}=e;return mh({root:["root"]},cS,t)})(t),P=null!=(r=f.root)?r:"div",N=sS({elementType:P,externalSlotProps:h.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:E.root});return(0,Tl.jsx)(P,(0,wl.A)({},N,{children:"function"===typeof i?i(j):i}))})),gS=e.forwardRef((function(t,n){const{anchorEl:r,children:a,container:i,direction:o="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:p=fS,popperRef:h,style:f,transition:m=!1,slotProps:g={},slots:v={}}=t,y=(0,Sl.A)(t,dS),[b,x]=e.useState(!0);if(!l&&!u&&(!m||b))return null;let w;if(i)w=i;else if(r){const e=pS(r);w=e&&hS(e)?kb(e).body:kb(null).body}const S=u||!l||m&&!b?void 0:"none",C=m?{in:u,onEnter:()=>{x(!1)},onExited:()=>{x(!0)}}:void 0;return(0,Tl.jsx)(lS,{disablePortal:s,container:w,children:(0,Tl.jsx)(mS,(0,wl.A)({anchorEl:r,direction:o,disablePortal:s,modifiers:c,ref:n,open:m?!b:u,placement:d,popperOptions:p,popperRef:h,slotProps:g,slots:v},y,{style:(0,wl.A)({position:"fixed",top:0,left:0,display:S},f),TransitionProps:C,children:a}))})})),vS=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],yS=nf(gS,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),bS=e.forwardRef((function(e,t){var n;const r=(0,Fx.A)(),a=rf({props:e,name:"MuiPopper"}),{anchorEl:i,component:o,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:h,placement:f,popperOptions:m,popperRef:g,transition:v,slots:y,slotProps:b}=a,x=(0,Sl.A)(a,vS),w=null!=(n=null==y?void 0:y.root)?n:null==s?void 0:s.Root,S=(0,wl.A)({anchorEl:i,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:h,placement:f,popperOptions:m,popperRef:g,transition:v},x);return(0,Tl.jsx)(yS,(0,wl.A)({as:o,direction:null==r?void 0:r.direction,slots:{root:w},slotProps:null!=b?b:l},S,{ref:t}))})),xS=bS;let wS=0;const SS=t["useId".toString()];function CS(t){if(void 0!==SS){const e=SS();return null!=t?t:e}return function(t){const[n,r]=e.useState(t),a=t||n;return e.useEffect((()=>{null==n&&(wS+=1,r(`mui-${wS}`))}),[n]),a}(t)}const AS=CS;function kS(t){let{controlled:n,default:r,name:a,state:i="value"}=t;const{current:o}=e.useRef(void 0!==n),[s,l]=e.useState(r);return[o?n:s,e.useCallback((e=>{o||l(e)}),[])]}const TS=kS;function jS(e){return Ff("MuiTooltip",e)}const ES=Bf("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),PS=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];const NS=nf(xS,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((e=>{let{theme:t,ownerState:n,open:r}=e;return(0,wl.A)({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!n.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},n.arrow&&{[`&[data-popper-placement*="bottom"] .${ES.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ES.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ES.arrow}`]:(0,wl.A)({},n.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${ES.arrow}`]:(0,wl.A)({},n.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})})),DS=nf("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${sm(n.placement.split("-")[0])}`]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:(0,gh.X4)(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium},n.arrow&&{position:"relative",margin:0},n.touch&&{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:(r=16/14,Math.round(1e5*r)/1e5)+"em",fontWeight:t.typography.fontWeightRegular},{[`.${ES.popper}[data-popper-placement*="left"] &`]:(0,wl.A)({transformOrigin:"right center"},n.isRtl?(0,wl.A)({marginLeft:"14px"},n.touch&&{marginLeft:"24px"}):(0,wl.A)({marginRight:"14px"},n.touch&&{marginRight:"24px"})),[`.${ES.popper}[data-popper-placement*="right"] &`]:(0,wl.A)({transformOrigin:"left center"},n.isRtl?(0,wl.A)({marginRight:"14px"},n.touch&&{marginRight:"24px"}):(0,wl.A)({marginLeft:"14px"},n.touch&&{marginLeft:"24px"})),[`.${ES.popper}[data-popper-placement*="top"] &`]:(0,wl.A)({transformOrigin:"center bottom",marginBottom:"14px"},n.touch&&{marginBottom:"24px"}),[`.${ES.popper}[data-popper-placement*="bottom"] &`]:(0,wl.A)({transformOrigin:"center top",marginTop:"14px"},n.touch&&{marginTop:"24px"})});var r})),MS=nf("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((e=>{let{theme:t}=e;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:(0,gh.X4)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}}));let _S=!1;const IS=new hf;let RS={x:0,y:0};function OS(e,t){return function(n){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];t&&t(n,...a),e(n,...a)}}const LS=e.forwardRef((function(t,n){var r,a,i,o,s,l,c,u,d,p,h,f,m,g,v,y,b,x,w;const S=rf({props:t,name:"MuiTooltip"}),{arrow:C=!1,children:A,components:k={},componentsProps:T={},describeChild:j=!1,disableFocusListener:E=!1,disableHoverListener:P=!1,disableInteractive:N=!1,disableTouchListener:D=!1,enterDelay:M=100,enterNextDelay:_=0,enterTouchDelay:I=700,followCursor:R=!1,id:O,leaveDelay:L=0,leaveTouchDelay:F=1500,onClose:B,onOpen:z,open:V,placement:W="bottom",PopperComponent:U,PopperProps:$={},slotProps:H={},slots:q={},title:G,TransitionComponent:K=Lx,TransitionProps:Y}=S,X=(0,Sl.A)(S,PS),Z=e.isValidElement(A)?A:(0,Tl.jsx)("span",{children:A}),J=Sb(),Q=Ml(),[ee,te]=e.useState(),[ne,re]=e.useState(null),ae=e.useRef(!1),ie=N||R,oe=ff(),se=ff(),le=ff(),ce=ff(),[ue,de]=TS({controlled:V,default:!1,name:"Tooltip",state:"open"});let pe=ue;const he=AS(O),fe=e.useRef(),me=uf((()=>{void 0!==fe.current&&(document.body.style.WebkitUserSelect=fe.current,fe.current=void 0),ce.clear()}));e.useEffect((()=>me),[me]);const ge=e=>{IS.clear(),_S=!0,de(!0),z&&!pe&&z(e)},ve=uf((e=>{IS.start(800+L,(()=>{_S=!1})),de(!1),B&&pe&&B(e),oe.start(J.transitions.duration.shortest,(()=>{ae.current=!1}))})),ye=e=>{ae.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),se.clear(),le.clear(),M||_S&&_?se.start(_S?_:M,(()=>{ge(e)})):ge(e))},be=e=>{se.clear(),le.start(L,(()=>{ve(e)}))},{isFocusVisibleRef:xe,onBlur:we,onFocus:Se,ref:Ce}=Af(),[,Ae]=e.useState(!1),ke=e=>{we(e),!1===xe.current&&(Ae(!1),be(e))},Te=e=>{ee||te(e.currentTarget),Se(e),!0===xe.current&&(Ae(!0),ye(e))},je=e=>{ae.current=!0;const t=Z.props;t.onTouchStart&&t.onTouchStart(e)},Ee=e=>{je(e),le.clear(),oe.clear(),me(),fe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(I,(()=>{document.body.style.WebkitUserSelect=fe.current,ye(e)}))},Pe=e=>{Z.props.onTouchEnd&&Z.props.onTouchEnd(e),me(),le.start(F,(()=>{ve(e)}))};e.useEffect((()=>{if(pe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ve(e)}}),[ve,pe]);const Ne=sf(Z.ref,Ce,te,n);G||0===G||(pe=!1);const De=e.useRef(),Me={},_e="string"===typeof G;j?(Me.title=pe||!_e||P?null:G,Me["aria-describedby"]=pe?he:null):(Me["aria-label"]=_e?G:null,Me["aria-labelledby"]=pe&&!_e?he:null);const Ie=(0,wl.A)({},Me,X,Z.props,{className:fh(X.className,Z.props.className),onTouchStart:je,ref:Ne},R?{onMouseMove:e=>{const t=Z.props;t.onMouseMove&&t.onMouseMove(e),RS={x:e.clientX,y:e.clientY},De.current&&De.current.update()}}:{});const Re={};D||(Ie.onTouchStart=Ee,Ie.onTouchEnd=Pe),P||(Ie.onMouseOver=OS(ye,Ie.onMouseOver),Ie.onMouseLeave=OS(be,Ie.onMouseLeave),ie||(Re.onMouseOver=ye,Re.onMouseLeave=be)),E||(Ie.onFocus=OS(Te,Ie.onFocus),Ie.onBlur=OS(ke,Ie.onBlur),ie||(Re.onFocus=Te,Re.onBlur=ke));const Oe=e.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=$.popperOptions)&&e.modifiers&&(t=t.concat($.popperOptions.modifiers)),(0,wl.A)({},$.popperOptions,{modifiers:t})}),[ne,$]),Le=(0,wl.A)({},S,{isRtl:Q,arrow:C,disableInteractive:ie,placement:W,PopperComponentProp:U,touch:ae.current}),Fe=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:a,placement:i}=e;return mh({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",a&&"touch",`tooltipPlacement${sm(i.split("-")[0])}`],arrow:["arrow"]},jS,t)})(Le),Be=null!=(r=null!=(a=q.popper)?a:k.Popper)?r:NS,ze=null!=(i=null!=(o=null!=(s=q.transition)?s:k.Transition)?o:K)?i:Lx,Ve=null!=(l=null!=(c=q.tooltip)?c:k.Tooltip)?l:DS,We=null!=(u=null!=(d=q.arrow)?d:k.Arrow)?u:MS,Ue=Dx(Be,(0,wl.A)({},$,null!=(p=H.popper)?p:T.popper,{className:fh(Fe.popper,null==$?void 0:$.className,null==(h=null!=(f=H.popper)?f:T.popper)?void 0:h.className)}),Le),$e=Dx(ze,(0,wl.A)({},Y,null!=(m=H.transition)?m:T.transition),Le),He=Dx(Ve,(0,wl.A)({},null!=(g=H.tooltip)?g:T.tooltip,{className:fh(Fe.tooltip,null==(v=null!=(y=H.tooltip)?y:T.tooltip)?void 0:v.className)}),Le),qe=Dx(We,(0,wl.A)({},null!=(b=H.arrow)?b:T.arrow,{className:fh(Fe.arrow,null==(x=null!=(w=H.arrow)?w:T.arrow)?void 0:x.className)}),Le);return(0,Tl.jsxs)(e.Fragment,{children:[e.cloneElement(Z,Ie),(0,Tl.jsx)(Be,(0,wl.A)({as:null!=U?U:xS,placement:W,anchorEl:R?{getBoundingClientRect:()=>({top:RS.y,left:RS.x,right:RS.x,bottom:RS.y,width:0,height:0})}:ee,popperRef:De,open:!!ee&&pe,id:he,transition:!0},Re,Ue,{popperOptions:Oe,children:e=>{let{TransitionProps:t}=e;return(0,Tl.jsx)(ze,(0,wl.A)({timeout:J.transitions.duration.shorter},t,$e,{children:(0,Tl.jsxs)(Ve,(0,wl.A)({},He,{children:[G,C?(0,Tl.jsx)(We,(0,wl.A)({},qe,{ref:re})):null]}))}))}}))]})})),FS=LS,BS=cb({menuItem:{padding:"20px",justifyContent:"center"},itemIcon:{color:"white",justifyContent:"center"}});function zS(t){const n=BS(),[a,i]=(0,e.useState)(!1),[o,s]=(0,e.useState)(!1),l=Oc(eh),c=Oc(Yp),u=zu();return(0,e.useEffect)((()=>{var e;i(function(e,t,n,r){switch(n){case pl:return!0;case hl:return Uu(e,r);case fl:return Hu(e,t,r);case ml:return qu(e,r);case gl:return Gu(e,t,r);case vl:return Ku(e,t,r);case yl:return $u(e,t)||Gu(e,t,r);default:return!1}}(l,null===(e=c.id)||void 0===e?void 0:e.toUpperCase(),t.routeType,t.requiredPermissions)),t.menuIndex===t.selectedNavBarIndex?s(!0):0===t.selectedNavBarIndex&&t.routes.includes(u.pathname)?(s(!0),t.setSelectedNavBarIndex(t.menuIndex)):s(!1)}),[t.navMenuSelection,t.menuCategory,l,c,t.routeType,t.requiredPermissions,u,t.routes,t.menuIndex,t.selectedNavBarIndex,t]),a?null===t.route?(0,Tl.jsxs)("div",{children:[(0,Tl.jsx)(FS,{arrow:!0,placement:"right",title:t.tooltipText,children:(0,Tl.jsx)(lx,{onClick:t.clickEvent,className:n.menuItem,selected:o,sx:{minWidth:"95px","&.Mui-selected":{backgroundColor:"rgba(0, 0, 0, 0.08);","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.08);"}}},children:(0,Tl.jsx)(Px,{size:"large",className:n.itemIcon,children:t.icon})})}),r.createPortal(t.children,document.createElement("div"))]}):(0,Tl.jsx)(ph,{to:t.route,children:(0,Tl.jsx)(FS,{arrow:!0,placement:"right",title:t.tooltipText,children:(0,Tl.jsx)(lx,{onClick:t.clickEvent,className:n.menuItem,selected:t.menuIndex===t.selectedNavBarIndex,sx:{minWidth:"95px","&.Mui-selected":{backgroundColor:"rgba(0, 0, 0, 0.08);","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.08);"}}},children:(0,Tl.jsx)(Px,{className:n.itemIcon,children:t.icon})})})}):null}const VS=bm((0,Tl.jsx)("path",{d:"M9.01 14H2v2h7.01v3L13 15l-3.99-4zm5.98-1v-3H22V8h-7.01V5L11 9z"}),"CompareArrows"),WS=bm((0,Tl.jsx)("path",{d:"M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"ExitToApp"),US=bm((0,Tl.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),$S=bm((0,Tl.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),HS=bm((0,Tl.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function qS(e){return Ff("MuiAvatar",e)}Bf("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const GS=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],KS=["component","slots","slotProps"],YS=["component"];function XS(e,t){const{className:n,elementType:r,ownerState:a,externalForwardedProps:i,getSlotOwnerState:o,internalForwardedProps:s}=t,l=(0,Sl.A)(t,GS),{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0}}=i,p=(0,Sl.A)(i,KS),h=u[e]||r,f=iS(d[e],a),m=aS((0,wl.A)({className:n},l,{externalForwardedProps:"root"===e?p:void 0,externalSlotProps:f})),{props:{component:g},internalRef:v}=m,y=(0,Sl.A)(m.props,YS),b=of(v,null==f?void 0:f.ref,t.ref),x=o?o(y):{},w=(0,wl.A)({},a,x),S="root"===e?g||c:g,C=Dx(h,(0,wl.A)({},"root"===e&&!c&&!u[e]&&s,"root"!==e&&!u[e]&&s,y,S&&{as:S},{ref:b}),w);return Object.keys(x).forEach((e=>{delete C[e]})),[h,C]}const ZS=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],JS=nf("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})((e=>{let{theme:t}=e;return{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:(0,wl.A)({color:(t.vars||t).palette.background.default},t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:(0,wl.A)({backgroundColor:t.palette.grey[400]},t.applyStyles("dark",{backgroundColor:t.palette.grey[600]})))}]}})),QS=nf("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),eC=nf(HS,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});const tC=e.forwardRef((function(t,n){const r=rf({props:t,name:"MuiAvatar"}),{alt:a,children:i,className:o,component:s="div",slots:l={},slotProps:c={},imgProps:u,sizes:d,src:p,srcSet:h,variant:f="circular"}=r,m=(0,Sl.A)(r,ZS);let g=null;const v=function(t){let{crossOrigin:n,referrerPolicy:r,src:a,srcSet:i}=t;const[o,s]=e.useState(!1);return e.useEffect((()=>{if(!a&&!i)return;s(!1);let e=!0;const t=new Image;return t.onload=()=>{e&&s("loaded")},t.onerror=()=>{e&&s("error")},t.crossOrigin=n,t.referrerPolicy=r,t.src=a,i&&(t.srcset=i),()=>{e=!1}}),[n,r,a,i]),o}((0,wl.A)({},u,{src:p,srcSet:h})),y=p||h,b=y&&"error"!==v,x=(0,wl.A)({},r,{colorDefault:!b,component:s,variant:f}),w=(e=>{const{classes:t,variant:n,colorDefault:r}=e;return mh({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},qS,t)})(x),[S,C]=XS("img",{className:w.img,elementType:QS,externalForwardedProps:{slots:l,slotProps:{img:(0,wl.A)({},u,c.img)}},additionalProps:{alt:a,src:p,srcSet:h,sizes:d},ownerState:x});return g=b?(0,Tl.jsx)(S,(0,wl.A)({},C)):i||0===i?i:y&&a?a[0]:(0,Tl.jsx)(eC,{ownerState:x,className:w.fallback}),(0,Tl.jsx)(JS,(0,wl.A)({as:s,ownerState:x,className:fh(w.root,o),ref:n},m,{children:g}))})),nC=tC,rC=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],aC=nf("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},n.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},n.light&&{borderColor:t.vars?`rgba(${t.vars.palette.dividerChannel} / 0.08)`:(0,gh.X4)(t.palette.divider,.08)},"inset"===n.variant&&{marginLeft:72},"middle"===n.variant&&"horizontal"===n.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===n.variant&&"vertical"===n.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===n.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},n.flexItem&&{alignSelf:"stretch",height:"auto"})}),(e=>{let{ownerState:t}=e;return(0,wl.A)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({},n.children&&"vertical"!==n.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(t.vars||t).palette.divider}`,borderTopStyle:"inherit"}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({},n.children&&"vertical"===n.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(t.vars||t).palette.divider}`,borderLeftStyle:"inherit"}})}),(e=>{let{ownerState:t}=e;return(0,wl.A)({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})})),iC=nf("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({display:"inline-block",paddingLeft:`calc(${t.spacing(1)} * 1.2)`,paddingRight:`calc(${t.spacing(1)} * 1.2)`},"vertical"===n.orientation&&{paddingTop:`calc(${t.spacing(1)} * 1.2)`,paddingBottom:`calc(${t.spacing(1)} * 1.2)`})})),oC=e.forwardRef((function(e,t){const n=rf({props:e,name:"MuiDivider"}),{absolute:r=!1,children:a,className:i,component:o=(a?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==o?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,h=(0,Sl.A)(n,rC),f=(0,wl.A)({},n,{absolute:r,component:o,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:a,light:i,orientation:o,textAlign:s,variant:l}=e;return mh({root:["root",t&&"absolute",l,i&&"light","vertical"===o&&"vertical",a&&"flexItem",n&&"withChildren",n&&"vertical"===o&&"withChildrenVertical","right"===s&&"vertical"!==o&&"textAlignRight","left"===s&&"vertical"!==o&&"textAlignLeft"],wrapper:["wrapper","vertical"===o&&"wrapperVertical"]},Zb,r)})(f);return(0,Tl.jsx)(aC,(0,wl.A)({as:o,className:fh(m.root,i),role:u,ref:t,ownerState:f},h,{children:a?(0,Tl.jsx)(iC,{className:m.wrapper,ownerState:f,children:a}):null}))}));oC.muiSkipListHighlight=!0;const sC=oC,lC=["onChange","maxRows","minRows","style","value"];function cC(e){return parseInt(e,10)||0}const uC={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const dC=e.forwardRef((function(t,n){const{onChange:r,maxRows:a,minRows:i=1,style:o,value:s}=t,l=(0,Sl.A)(t,lC),{current:c}=e.useRef(null!=s),u=e.useRef(null),d=of(n,u),p=e.useRef(null),h=e.useRef(null),f=e.useCallback((()=>{const e=u.current,n=Tb(e).getComputedStyle(e);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};const r=h.current;r.style.width=n.width,r.value=e.value||t.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const o=n.boxSizing,s=cC(n.paddingBottom)+cC(n.paddingTop),l=cC(n.borderBottomWidth)+cC(n.borderTopWidth),c=r.scrollHeight;r.value="x";const d=r.scrollHeight;let p=c;i&&(p=Math.max(Number(i)*d,p)),a&&(p=Math.min(Number(a)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===o?s+l:0),overflowing:Math.abs(p-c)<=1}}),[a,i,t.placeholder]),m=e.useCallback((()=>{const e=f();if(void 0===(t=e)||null===t||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const n=e.outerHeightStyle,r=u.current;p.current!==n&&(p.current=n,r.style.height=`${n}px`),r.style.overflow=e.overflowing?"hidden":""}),[f]);lf((()=>{const e=()=>{m()};let t;const n=xb(e),r=u.current,a=Tb(r);let i;return a.addEventListener("resize",n),"undefined"!==typeof ResizeObserver&&(i=new ResizeObserver(e),i.observe(r)),()=>{n.clear(),cancelAnimationFrame(t),a.removeEventListener("resize",n),i&&i.disconnect()}}),[f,m]),lf((()=>{m()}));return(0,Tl.jsxs)(e.Fragment,{children:[(0,Tl.jsx)("textarea",(0,wl.A)({value:s,onChange:e=>{c||m(),r&&r(e)},ref:d,rows:i,style:o},l)),(0,Tl.jsx)("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:(0,wl.A)({},uC,o,{paddingTop:0,paddingBottom:0})})]})})),pC=dC;function hC(e){let{props:t,states:n,muiFormControl:r}=e;return n.reduce(((e,n)=>(e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e)),{})}const fC=e.createContext(void 0);function mC(){return e.useContext(fC)}var gC=n(869);const vC=function(e){let{styles:t,themeId:n,defaultTheme:r={}}=e;const a=Hm(r),i="function"===typeof t?t(n&&a[n]||a):t;return(0,Tl.jsx)(gC.A,{styles:i})};const yC=function(e){return(0,Tl.jsx)(vC,(0,wl.A)({},e,{defaultTheme:Qh,themeId:Vl}))};function bC(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function xC(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(bC(e.value)&&""!==e.value||t&&bC(e.defaultValue)&&""!==e.defaultValue)}function wC(e){return Ff("MuiInputBase",e)}const SC=Bf("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),CC=["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"],AC=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${sm(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},kC=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},TC=nf("div",{name:"MuiInputBase",slot:"Root",overridesResolver:AC})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${SC.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},n.multiline&&(0,wl.A)({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"})})),jC=nf("input",{name:"MuiInputBase",slot:"Input",overridesResolver:kC})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode,a=(0,wl.A)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),i={opacity:"0 !important"},o=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return(0,wl.A)({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"},[`label[data-shrink=false] + .${SC.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${SC.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===n.size&&{paddingTop:1},n.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===n.type&&{MozAppearance:"textfield"})})),EC=(0,Tl.jsx)(yC,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),PC=e.forwardRef((function(t,n){var r;const a=rf({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:o,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:h,endAdornment:f,fullWidth:m=!1,id:g,inputComponent:v="input",inputProps:y={},inputRef:b,maxRows:x,minRows:w,multiline:S=!1,name:C,onBlur:A,onChange:k,onClick:T,onFocus:j,onKeyDown:E,onKeyUp:P,placeholder:N,readOnly:D,renderSuffix:M,rows:_,slotProps:I={},slots:R={},startAdornment:O,type:L="text",value:F}=a,B=(0,Sl.A)(a,CC),z=null!=y.value?y.value:F,{current:V}=e.useRef(null!=z),W=e.useRef(),U=e.useCallback((e=>{0}),[]),$=sf(W,b,y.ref,U),[H,q]=e.useState(!1),G=mC();const K=hC({props:a,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:H,e.useEffect((()=>{!G&&p&&H&&(q(!1),A&&A())}),[G,p,H,A]);const Y=G&&G.onFilled,X=G&&G.onEmpty,Z=e.useCallback((e=>{xC(e)?Y&&Y():X&&X()}),[Y,X]);Vb((()=>{V&&Z({value:z})}),[z,Z,V]);e.useEffect((()=>{Z(W.current)}),[]);let J=v,Q=y;S&&"input"===J&&(Q=_?(0,wl.A)({type:void 0,minRows:_,maxRows:_},Q):(0,wl.A)({type:void 0,maxRows:x,minRows:w},Q),J=pC);e.useEffect((()=>{G&&G.setAdornedStart(Boolean(O))}),[G,O]);const ee=(0,wl.A)({},a,{color:K.color||"primary",disabled:K.disabled,endAdornment:f,error:K.error,focused:K.focused,formControl:G,fullWidth:m,hiddenLabel:K.hiddenLabel,multiline:S,size:K.size,startAdornment:O,type:L}),te=(e=>{const{classes:t,color:n,disabled:r,error:a,endAdornment:i,focused:o,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:h,type:f}=e;return mh({root:["root",`color${sm(n)}`,r&&"disabled",a&&"error",l&&"fullWidth",o&&"focused",s&&"formControl",p&&"medium"!==p&&`size${sm(p)}`,u&&"multiline",h&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===f&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},wC,t)})(ee),ne=R.root||c.Root||TC,re=I.root||u.root||{},ae=R.input||c.Input||jC;return Q=(0,wl.A)({},Q,null!=(r=I.input)?r:u.input),(0,Tl.jsxs)(e.Fragment,{children:[!h&&EC,(0,Tl.jsxs)(ne,(0,wl.A)({},re,!Nx(ne)&&{ownerState:(0,wl.A)({},ee,re.ownerState)},{ref:n,onClick:e=>{W.current&&e.currentTarget===e.target&&W.current.focus(),T&&T(e)}},B,{className:fh(te.root,re.className,l,D&&"MuiInputBase-readOnly"),children:[O,(0,Tl.jsx)(fC.Provider,{value:null,children:(0,Tl.jsx)(ae,(0,wl.A)({ownerState:ee,"aria-invalid":K.error,"aria-describedby":i,autoComplete:o,autoFocus:s,defaultValue:d,disabled:K.disabled,id:g,onAnimationStart:e=>{Z("mui-auto-fill-cancel"===e.animationName?W.current:{value:"x"})},name:C,placeholder:N,readOnly:D,required:K.required,rows:_,value:z,onKeyDown:E,onKeyUp:P,type:L},Q,!Nx(ae)&&{as:J,ownerState:(0,wl.A)({},ee,Q.ownerState)},{ref:$,className:fh(te.input,Q.className,D&&"MuiInputBase-readOnly"),onBlur:e=>{A&&A(e),y.onBlur&&y.onBlur(e),G&&G.onBlur?G.onBlur(e):q(!1)},onChange:function(e){if(!V){const t=e.target||W.current;if(null==t)throw new Error((0,yh.A)(1));Z({value:t.value})}for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];y.onChange&&y.onChange(e,...n),k&&k(e,...n)},onFocus:e=>{K.disabled?e.stopPropagation():(j&&j(e),y.onFocus&&y.onFocus(e),G&&G.onFocus?G.onFocus(e):q(!0))}}))}),f,M?M((0,wl.A)({},K,{startAdornment:O})):null]}))]})})),NC=PC;function DC(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var MC=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"===typeof n.className?n.className=DC(n.className,r):n.setAttribute("class",DC(n.className&&n.className.baseVal||"",r)));var n,r}))},_C=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},e.onEnter=function(t,n){var r=e.resolveArguments(t,n),a=r[0],i=r[1];e.removeClasses(a,"exit"),e.addClass(a,i?"appear":"enter","base"),e.props.onEnter&&e.props.onEnter(t,n)},e.onEntering=function(t,n){var r=e.resolveArguments(t,n),a=r[0],i=r[1]?"appear":"enter";e.addClass(a,i,"active"),e.props.onEntering&&e.props.onEntering(t,n)},e.onEntered=function(t,n){var r=e.resolveArguments(t,n),a=r[0],i=r[1]?"appear":"enter";e.removeClasses(a,i),e.addClass(a,i,"done"),e.props.onEntered&&e.props.onEntered(t,n)},e.onExit=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"appear"),e.removeClasses(n,"enter"),e.addClass(n,"exit","base"),e.props.onExit&&e.props.onExit(t)},e.onExiting=function(t){var n=e.resolveArguments(t)[0];e.addClass(n,"exit","active"),e.props.onExiting&&e.props.onExiting(t)},e.onExited=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"exit"),e.addClass(n,"exit","done"),e.props.onExited&&e.props.onExited(t)},e.resolveArguments=function(t,n){return e.props.nodeRef?[e.props.nodeRef.current,t]:[t,n]},e.getClassNames=function(t){var n=e.props.classNames,r="string"===typeof n,a=r?""+(r&&n?n+"-":"")+t:n[t];return{baseClassName:a,activeClassName:r?a+"-active":n[t+"Active"],doneClassName:r?a+"-done":n[t+"Done"]}},e}Fc(n,t);var r=n.prototype;return r.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],a=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&a&&(r+=" "+a),"active"===n&&e&&db(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"===typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},r.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,a=n.active,i=n.done;this.appliedClasses[t]={},r&&MC(e,r),a&&MC(e,a),i&&MC(e,i)},r.render=function(){var t=this.props,n=(t.classNames,(0,Sl.A)(t,["classNames"]));return e.createElement(bb,(0,wl.A)({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(e.Component);_C.defaultProps={classNames:""},_C.propTypes={};const IC=_C,RC=e=>{var t=e.length%4;switch(!0){case t<=0:return"#DE7171";case t<=1:return"#DEA871";case t<=2:return"#DEDE71";case t<=3:return"#66896B";case t<=4:return"#71DEA8";default:return"#C2C2C2"}},OC=window.env,LC=()=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/client/getClientForBaseClient").then((e=>e.data)),FC=Op({name:"allClients",initialState:{value:[]},reducers:{updateClients:(e,t)=>{e.value=t.payload},removeClients:e=>{e.value=[]}}}),{updateClients:BC,removeClients:zC}=FC.actions,VC=e=>e.allClients.value,WC=FC.reducer,UC=Op({name:"selectedCareersClient",initialState:{value:[]},reducers:{updateCareersClient:(e,t)=>{e.value=t.payload},removeCareersClient:e=>{e.value=null}}}),{updateCareersClient:$C,removeCareersClient:HC}=UC.actions,qC=e=>e.selectedCareersClient.value,GC=UC.reducer,KC=Op({name:"userInformation",initialState:{value:{}},reducers:{updateInformation:(e,t)=>{e.value=t.payload},removeInformation:e=>{e.value={}}}}),{updateInformation:YC,removeInformation:XC}=KC.actions,ZC=e=>e.userInformation.value,JC=KC.reducer,QC=bm((0,Tl.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock"),eA=bm((0,Tl.jsx)("path",{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m0 12H6V10h12z"}),"LockOpen");function tA(e){function t(e,t){Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.message=e,this.code=t}return t.prototype=new Error,t.prototype.name=e,t.prototype.constructor=t,t}const nA=tA("LaunchDarklyUnexpectedResponseError"),rA=tA("LaunchDarklyInvalidEnvironmentIdError"),aA=tA("LaunchDarklyInvalidUserError"),iA=tA("LaunchDarklyInvalidEventKeyError"),oA=tA("LaunchDarklyInvalidArgumentError"),sA=tA("LaunchDarklyFlagFetchError");for(var lA={LDUnexpectedResponseError:nA,LDInvalidEnvironmentIdError:rA,LDInvalidUserError:aA,LDInvalidEventKeyError:iA,LDInvalidArgumentError:oA,LDInvalidDataError:tA("LaunchDarklyInvalidDataError"),LDFlagFetchError:sA,LDTimeoutError:tA("LaunchDarklyTimeoutError"),isHttpErrorRecoverable:function(e){return!(e>=400&&e<500)||400===e||408===e||429===e}},cA=[],uA=[],dA=("undefined"!=typeof Uint8Array&&Uint8Array,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),pA=0;pA<64;++pA)cA[pA]=dA[pA],uA[dA.charCodeAt(pA)]=pA;function hA(e,t,n){for(var r,a,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(cA[(a=r)>>18&63]+cA[a>>12&63]+cA[a>>6&63]+cA[63&a]);return i.join("")}uA["-".charCodeAt(0)]=62,uA["_".charCodeAt(0)]=63;var fA=function(e){for(var t,n=e.length,r=n%3,a=[],i=16383,o=0,s=n-r;o<s;o+=i)a.push(hA(e,o,o+i>s?s:o+i));return 1===r?(t=e[n-1],a.push(cA[t>>2]+cA[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],a.push(cA[t>>10]+cA[t>>4&63]+cA[t<<2&63]+"=")),a.join("")},mA=Array.isArray,gA=Object.keys,vA=Object.prototype.hasOwnProperty,yA=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,a,i,o=mA(t),s=mA(n);if(o&&s){if((a=t.length)!=n.length)return!1;for(r=a;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(o!=s)return!1;var l=t instanceof Date,c=n instanceof Date;if(l!=c)return!1;if(l&&c)return t.getTime()==n.getTime();var u=t instanceof RegExp,d=n instanceof RegExp;if(u!=d)return!1;if(u&&d)return t.toString()==n.toString();var p=gA(t);if((a=p.length)!==gA(n).length)return!1;for(r=a;0!=r--;)if(!vA.call(n,p[r]))return!1;for(r=a;0!=r--;)if(!e(t[i=p[r]],n[i]))return!1;return!0}return t!=t&&n!=n};const bA=["key","ip","country","email","firstName","lastName","avatar","name"];function xA(e){const t=unescape(encodeURIComponent(e));return fA(function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e.charCodeAt(n));return t}(t))}function wA(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var SA,CA={appendUrlPath:function(e,t){return(e.endsWith("/")?e.substring(0,e.length-1):e)+(t.startsWith("/")?"":"/")+t},base64URLEncode:function(e){return xA(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},btoa:xA,clone:function(e){return JSON.parse(JSON.stringify(e))},deepEquals:function(e,t){return yA(e,t)},extend:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(((e,t)=>({...e,...t})),{})},getLDUserAgentString:function(e){const t=e.version||"?";return e.userAgent+"/"+t},objectHasOwnProperty:wA,onNextTick:function(e){setTimeout(e,0)},sanitizeContext:function(e){if(!e)return e;let t;return null!==e.kind&&void 0!==e.kind||bA.forEach((n=>{const r=e[n];void 0!==r&&"string"!=typeof r&&(t=t||{...e},t[n]=String(r))})),t||e},transformValuesToVersionedValues:function(e){const t={};for(const n in e)wA(e,n)&&(t[n]={value:e[n],version:0});return t},transformVersionedValuesToValues:function(e){const t={};for(const n in e)wA(e,n)&&(t[n]=e[n].value);return t},wrapPromiseCallback:function(e,t){const n=e.then((e=>(t&&setTimeout((()=>{t(null,e)}),0),e)),(e=>{if(!t)return Promise.reject(e);setTimeout((()=>{t(e,null)}),0)}));return t?void 0:n}},AA=new Uint8Array(16);function kA(){if(!SA&&!(SA="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return SA(AA)}var TA=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function jA(e){return"string"==typeof e&&TA.test(e)}for(var EA,PA,NA=[],DA=0;DA<256;++DA)NA.push((DA+256).toString(16).substr(1));function MA(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(NA[e[t+0]]+NA[e[t+1]]+NA[e[t+2]]+NA[e[t+3]]+"-"+NA[e[t+4]]+NA[e[t+5]]+"-"+NA[e[t+6]]+NA[e[t+7]]+"-"+NA[e[t+8]]+NA[e[t+9]]+"-"+NA[e[t+10]]+NA[e[t+11]]+NA[e[t+12]]+NA[e[t+13]]+NA[e[t+14]]+NA[e[t+15]]).toLowerCase();if(!jA(n))throw TypeError("Stringified UUID is invalid");return n}var _A=0,IA=0;function RA(e){if(!jA(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function OA(e,t,n){function r(e,r,a,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=RA(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var o=new Uint8Array(16+e.length);if(o.set(r),o.set(e,r.length),(o=n(o))[6]=15&o[6]|t,o[8]=63&o[8]|128,a){i=i||0;for(var s=0;s<16;++s)a[i+s]=o[s];return a}return MA(o)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function LA(e){return 14+(e+64>>>9<<4)+1}function FA(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function BA(e,t,n,r,a,i){return FA((o=FA(FA(t,e),FA(r,i)))<<(s=a)|o>>>32-s,n);var o,s}function zA(e,t,n,r,a,i,o){return BA(t&n|~t&r,e,t,a,i,o)}function VA(e,t,n,r,a,i,o){return BA(t&r|n&~r,e,t,a,i,o)}function WA(e,t,n,r,a,i,o){return BA(t^n^r,e,t,a,i,o)}function UA(e,t,n,r,a,i,o){return BA(n^(t|~r),e,t,a,i,o)}var $A=OA("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",a=0;a<n;a+=8){var i=e[a>>5]>>>a%32&255,o=parseInt(r.charAt(i>>>4&15)+r.charAt(15&i),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[LA(t)-1]=t;for(var n=1732584193,r=-271733879,a=-1732584194,i=271733878,o=0;o<e.length;o+=16){var s=n,l=r,c=a,u=i;n=zA(n,r,a,i,e[o],7,-680876936),i=zA(i,n,r,a,e[o+1],12,-389564586),a=zA(a,i,n,r,e[o+2],17,606105819),r=zA(r,a,i,n,e[o+3],22,-1044525330),n=zA(n,r,a,i,e[o+4],7,-176418897),i=zA(i,n,r,a,e[o+5],12,1200080426),a=zA(a,i,n,r,e[o+6],17,-1473231341),r=zA(r,a,i,n,e[o+7],22,-45705983),n=zA(n,r,a,i,e[o+8],7,1770035416),i=zA(i,n,r,a,e[o+9],12,-1958414417),a=zA(a,i,n,r,e[o+10],17,-42063),r=zA(r,a,i,n,e[o+11],22,-1990404162),n=zA(n,r,a,i,e[o+12],7,1804603682),i=zA(i,n,r,a,e[o+13],12,-40341101),a=zA(a,i,n,r,e[o+14],17,-1502002290),n=VA(n,r=zA(r,a,i,n,e[o+15],22,1236535329),a,i,e[o+1],5,-165796510),i=VA(i,n,r,a,e[o+6],9,-1069501632),a=VA(a,i,n,r,e[o+11],14,643717713),r=VA(r,a,i,n,e[o],20,-373897302),n=VA(n,r,a,i,e[o+5],5,-701558691),i=VA(i,n,r,a,e[o+10],9,38016083),a=VA(a,i,n,r,e[o+15],14,-660478335),r=VA(r,a,i,n,e[o+4],20,-405537848),n=VA(n,r,a,i,e[o+9],5,568446438),i=VA(i,n,r,a,e[o+14],9,-1019803690),a=VA(a,i,n,r,e[o+3],14,-187363961),r=VA(r,a,i,n,e[o+8],20,1163531501),n=VA(n,r,a,i,e[o+13],5,-1444681467),i=VA(i,n,r,a,e[o+2],9,-51403784),a=VA(a,i,n,r,e[o+7],14,1735328473),n=WA(n,r=VA(r,a,i,n,e[o+12],20,-1926607734),a,i,e[o+5],4,-378558),i=WA(i,n,r,a,e[o+8],11,-2022574463),a=WA(a,i,n,r,e[o+11],16,1839030562),r=WA(r,a,i,n,e[o+14],23,-35309556),n=WA(n,r,a,i,e[o+1],4,-1530992060),i=WA(i,n,r,a,e[o+4],11,1272893353),a=WA(a,i,n,r,e[o+7],16,-155497632),r=WA(r,a,i,n,e[o+10],23,-1094730640),n=WA(n,r,a,i,e[o+13],4,681279174),i=WA(i,n,r,a,e[o],11,-358537222),a=WA(a,i,n,r,e[o+3],16,-722521979),r=WA(r,a,i,n,e[o+6],23,76029189),n=WA(n,r,a,i,e[o+9],4,-640364487),i=WA(i,n,r,a,e[o+12],11,-421815835),a=WA(a,i,n,r,e[o+15],16,530742520),n=UA(n,r=WA(r,a,i,n,e[o+2],23,-995338651),a,i,e[o],6,-198630844),i=UA(i,n,r,a,e[o+7],10,1126891415),a=UA(a,i,n,r,e[o+14],15,-1416354905),r=UA(r,a,i,n,e[o+5],21,-57434055),n=UA(n,r,a,i,e[o+12],6,1700485571),i=UA(i,n,r,a,e[o+3],10,-1894986606),a=UA(a,i,n,r,e[o+10],15,-1051523),r=UA(r,a,i,n,e[o+1],21,-2054922799),n=UA(n,r,a,i,e[o+8],6,1873313359),i=UA(i,n,r,a,e[o+15],10,-30611744),a=UA(a,i,n,r,e[o+6],15,-1560198380),r=UA(r,a,i,n,e[o+13],21,1309151649),n=UA(n,r,a,i,e[o+4],6,-145523070),i=UA(i,n,r,a,e[o+11],10,-1120210379),a=UA(a,i,n,r,e[o+2],15,718787259),r=UA(r,a,i,n,e[o+9],21,-343485551),n=FA(n,s),r=FA(r,l),a=FA(a,c),i=FA(i,u)}return[n,r,a,i]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(LA(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))})),HA=$A;function qA(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function GA(e,t){return e<<t|e>>>32-t}var KA=OA("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var a=0;a<r.length;++a)e.push(r.charCodeAt(a))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,o=Math.ceil(i/16),s=new Array(o),l=0;l<o;++l){for(var c=new Uint32Array(16),u=0;u<16;++u)c[u]=e[64*l+4*u]<<24|e[64*l+4*u+1]<<16|e[64*l+4*u+2]<<8|e[64*l+4*u+3];s[l]=c}s[o-1][14]=8*(e.length-1)/Math.pow(2,32),s[o-1][14]=Math.floor(s[o-1][14]),s[o-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<o;++d){for(var p=new Uint32Array(80),h=0;h<16;++h)p[h]=s[d][h];for(var f=16;f<80;++f)p[f]=GA(p[f-3]^p[f-8]^p[f-14]^p[f-16],1);for(var m=n[0],g=n[1],v=n[2],y=n[3],b=n[4],x=0;x<80;++x){var w=Math.floor(x/20),S=GA(m,5)+qA(w,g,v,y)+b+t[w]+p[x]>>>0;b=y,y=v,v=GA(g,30)>>>0,g=m,m=S}n[0]=n[0]+m>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]})),YA=KA,XA=Object.freeze({__proto__:null,v1:function(e,t,n){var r=t&&n||0,a=t||new Array(16),i=(e=e||{}).node||EA,o=void 0!==e.clockseq?e.clockseq:PA;if(null==i||null==o){var s=e.random||(e.rng||kA)();null==i&&(i=EA=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==o&&(o=PA=16383&(s[6]<<8|s[7]))}var l=void 0!==e.msecs?e.msecs:Date.now(),c=void 0!==e.nsecs?e.nsecs:IA+1,u=l-_A+(c-IA)/1e4;if(u<0&&void 0===e.clockseq&&(o=o+1&16383),(u<0||l>_A)&&void 0===e.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_A=l,IA=c,PA=o;var d=(1e4*(268435455&(l+=122192928e5))+c)%4294967296;a[r++]=d>>>24&255,a[r++]=d>>>16&255,a[r++]=d>>>8&255,a[r++]=255&d;var p=l/4294967296*1e4&268435455;a[r++]=p>>>8&255,a[r++]=255&p,a[r++]=p>>>24&15|16,a[r++]=p>>>16&255,a[r++]=o>>>8|128,a[r++]=255&o;for(var h=0;h<6;++h)a[r+h]=i[h];return t||MA(a)},v3:HA,v4:function(e,t,n){var r=(e=e||{}).random||(e.rng||kA)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=r[a];return t}return MA(r)},v5:YA,NIL:"00000000-0000-0000-0000-000000000000",version:function(e){if(!jA(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)},validate:jA,stringify:MA,parse:RA});const ZA=["debug","info","warn","error","none"];var JA={commonBasicLogger:function(e,t){if(e&&e.destination&&"function"!=typeof e.destination)throw new Error("destination for basicLogger was set to a non-function");function n(e){return function(t){console&&console[e]&&console[e].call(console,t)}}const r=e&&e.destination?[e.destination,e.destination,e.destination,e.destination]:[n("log"),n("info"),n("warn"),n("error")],a=!(!e||!e.destination),i=e&&void 0!==e.prefix&&null!==e.prefix?e.prefix:"[LaunchDarkly] ";let o=1;if(e&&e.level)for(let c=0;c<ZA.length;c++)ZA[c]===e.level&&(o=c);function s(e,n,o){if(o.length<1)return;let s;const l=a?n+": "+i:i;if(1!==o.length&&t){const e=[...o];e[0]=l+e[0],s=t(...e)}else s=l+o[0];try{r[e](s)}catch(e){console&&console.log&&console.log("[LaunchDarkly] Configured logger's "+n+" method threw an exception: "+e)}}const l={};for(let c=0;c<ZA.length;c++){const e=ZA[c];if("none"!==e)if(c<o)l[e]=()=>{};else{const t=c;l[e]=function(){s(t,e,arguments)}}}return l},validateLogger:function(e){ZA.forEach((t=>{if("none"!==t&&(!e[t]||"function"!=typeof e[t]))throw new Error("Provided logger instance must support logger."+t+"(...) method")}))}};function QA(e){return e&&e.message?e.message:"string"==typeof e||e instanceof String?e:JSON.stringify(e)}const ek=" Please see https://docs.launchdarkly.com/sdk/client-side/javascript#initialize-the-client for instructions on SDK initialization.";var tk={bootstrapInvalid:function(){return"LaunchDarkly bootstrap data is not available because the back end could not read the flags."},bootstrapOldFormat:function(){return"LaunchDarkly client was initialized with bootstrap data that did not include flag metadata. Events may not be sent correctly."+ek},clientInitialized:function(){return"LaunchDarkly client initialized"},clientNotReady:function(){return"LaunchDarkly client is not ready"},debugEnqueueingEvent:function(e){return'enqueueing "'+e+'" event'},debugPostingDiagnosticEvent:function(e){return"sending diagnostic event ("+e.kind+")"},debugPostingEvents:function(e){return"sending "+e+" events"},debugStreamDelete:function(e){return'received streaming deletion for flag "'+e+'"'},debugStreamDeleteIgnored:function(e){return'received streaming deletion for flag "'+e+'" but ignored due to version check'},debugStreamPatch:function(e){return'received streaming update for flag "'+e+'"'},debugStreamPatchIgnored:function(e){return'received streaming update for flag "'+e+'" but ignored due to version check'},debugStreamPing:function(){return"received ping message from stream"},debugPolling:function(e){return"polling for feature flags at "+e},debugStreamPut:function(){return"received streaming update for all flags"},deprecated:function(e,t){return t?'"'+e+'" is deprecated, please use "'+t+'"':'"'+e+'" is deprecated'},environmentNotFound:function(){return"Environment not found. Double check that you specified a valid environment/client-side ID."+ek},environmentNotSpecified:function(){return"No environment/client-side ID was specified."+ek},errorFetchingFlags:function(e){return"Error fetching flag settings: "+QA(e)},eventCapacityExceeded:function(){return"Exceeded event queue capacity. Increase capacity to avoid dropping events."},eventWithoutContext:function(){return"Be sure to call `identify` in the LaunchDarkly client: https://docs.launchdarkly.com/sdk/features/identify#javascript"},httpErrorMessage:function(e,t,n){return"Received error "+e+(401===e?" (invalid SDK key)":"")+" for "+t+" - "+(lA.isHttpErrorRecoverable(e)?n:"giving up permanently")},httpUnavailable:function(){return"Cannot make HTTP requests in this environment."+ek},identifyDisabled:function(){return"identify() has no effect here; it must be called on the main client instance"},inspectorMethodError:(e,t)=>`an inspector: "${t}" of type: "${e}" generated an exception`,invalidContentType:function(e){return'Expected application/json content type but got "'+e+'"'},invalidData:function(){return"Invalid data received from LaunchDarkly; connection may have been interrupted"},invalidInspector:(e,t)=>`an inspector: "${t}" of an invalid type (${e}) was configured`,invalidKey:function(){return"Event key must be a string"},invalidMetricValue:e=>`The track function was called with a non-numeric "metricValue" (${e}), only numeric metric values are supported.`,invalidContext:function(){return"Invalid context specified."+ek},invalidTagValue:e=>`Config option "${e}" must only contain letters, numbers, ., _ or -.`,localStorageUnavailable:function(e){return"local storage is unavailable: "+QA(e)},networkError:e=>"network error"+(e?" ("+e+")":""),optionBelowMinimum:(e,t,n)=>'Config option "'+e+'" was set to '+t+", changing to minimum value of "+n,streamClosing:function(){return"Closing stream connection"},streamConnecting:function(e){return"Opening stream connection to "+e},streamError:function(e,t){return"Error on stream connection: "+QA(e)+", will continue retrying after "+t+" milliseconds."},tagValueTooLong:e=>`Value of "${e}" was longer than 64 characters and was discarded.`,unknownCustomEventKey:function(e){return'Custom event "'+e+'" does not exist'},unknownOption:e=>'Ignoring unknown config option "'+e+'"',contextNotSpecified:function(){return"No context specified."+ek},unrecoverableStreamError:e=>`Error on stream connection ${QA(e)}, giving up permanently`,wrongOptionType:(e,t,n)=>'Config option "'+e+'" should be of type '+t+", got "+n+", using default value",wrongOptionTypeBoolean:(e,t)=>'Config option "'+e+'" should be a boolean, got '+t+", converting to boolean"};const{validateLogger:nk}=JA,rk={baseUrl:{default:"https://app.launchdarkly.com"},streamUrl:{default:"https://clientstream.launchdarkly.com"},eventsUrl:{default:"https://events.launchdarkly.com"},sendEvents:{default:!0},streaming:{type:"boolean"},sendLDHeaders:{default:!0},requestHeaderTransform:{type:"function"},sendEventsOnlyForVariation:{default:!1},useReport:{default:!1},evaluationReasons:{default:!1},eventCapacity:{default:100,minimum:1},flushInterval:{default:2e3,minimum:2e3},samplingInterval:{default:0,minimum:0},streamReconnectDelay:{default:1e3,minimum:0},allAttributesPrivate:{default:!1},privateAttributes:{default:[]},bootstrap:{type:"string|object"},diagnosticRecordingInterval:{default:9e5,minimum:2e3},diagnosticOptOut:{default:!1},wrapperName:{type:"string"},wrapperVersion:{type:"string"},stateProvider:{type:"object"},application:{validator:function(e,t,n){const r={};return t.id&&(r.id=ok(`${e}.id`,t.id,n)),t.version&&(r.version=ok(`${e}.version`,t.version,n)),r}},inspectors:{default:[]}},ak=/^(\w|\.|-)+$/;function ik(e){return e&&e.replace(/\/+$/,"")}function ok(e,t,n){if("string"==typeof t&&t.match(ak)){if(!(t.length>64))return t;n.warn(tk.tagValueTooLong(e))}else n.warn(tk.invalidTagValue(e))}var sk={baseOptionDefs:rk,validate:function(e,t,n,r){const a=CA.extend({logger:{default:r}},rk,n),i={};function o(e){CA.onNextTick((()=>{t&&t.maybeReportError(new lA.LDInvalidArgumentError(e))}))}let s=CA.extend({},e||{});return function(e){const t=e;Object.keys(i).forEach((e=>{if(void 0!==t[e]){const n=i[e];r&&r.warn(tk.deprecated(e,n)),n&&(void 0===t[n]&&(t[n]=t[e]),delete t[e])}}))}(s),s=function(e){const t=CA.extend({},e);return Object.keys(a).forEach((e=>{void 0!==t[e]&&null!==t[e]||(t[e]=a[e]&&a[e].default)})),t}(s),s=function(e){const t=CA.extend({},e),n=e=>{if(null===e)return"any";if(void 0===e)return;if(Array.isArray(e))return"array";const t=typeof e;return"boolean"===t||"string"===t||"number"===t||"function"===t?t:"object"};return Object.keys(e).forEach((i=>{const s=e[i];if(null!=s){const l=a[i];if(void 0===l)o(tk.unknownOption(i));else{const a=l.type||n(l.default),c=l.validator;if(c){const n=c(i,e[i],r);void 0!==n?t[i]=n:delete t[i]}else if("any"!==a){const e=a.split("|"),r=n(s);e.indexOf(r)<0?"boolean"===a?(t[i]=!!s,o(tk.wrongOptionTypeBoolean(i,r))):(o(tk.wrongOptionType(i,a,r)),t[i]=l.default):"number"===r&&void 0!==l.minimum&&s<l.minimum&&(o(tk.optionBelowMinimum(i,s,l.minimum)),t[i]=l.minimum)}}}})),t.baseUrl=ik(t.baseUrl),t.streamUrl=ik(t.streamUrl),t.eventsUrl=ik(t.eventsUrl),t}(s),nk(s.logger),s},getTags:function(e){const t={};return e&&(e.application&&void 0!==e.application.id&&null!==e.application.id&&(t["application-id"]=[e.application.id]),e.application&&void 0!==e.application.version&&null!==e.application.id&&(t["application-version"]=[e.application.version])),t}};const{getLDUserAgentString:lk}=CA;var ck={getLDHeaders:function(e,t){if(t&&!t.sendLDHeaders)return{};const n={};n[e.userAgentHeaderName||"User-Agent"]=lk(e),t&&t.wrapperName&&(n["X-LaunchDarkly-Wrapper"]=t.wrapperVersion?t.wrapperName+"/"+t.wrapperVersion:t.wrapperName);const r=sk.getTags(t),a=Object.keys(r);return a.length&&(n["x-launchdarkly-tags"]=a.sort().map((e=>Array.isArray(r[e])?r[e].sort().map((t=>`${e}/${t}`)):[`${e}/${r[e]}`])).reduce(((e,t)=>e.concat(t)),[]).join(" ")),n},transformHeaders:function(e,t){return t&&t.requestHeaderTransform?t.requestHeaderTransform({...e}):e}};const{v1:uk}=XA,{getLDHeaders:dk,transformHeaders:pk}=ck;var hk=function(e,t,n){const r=CA.extend({"Content-Type":"application/json"},dk(e,n)),a={sendEvents:(t,a,i)=>{if(!e.httpRequest)return Promise.resolve();const o=JSON.stringify(t),s=i?null:uk();return function t(l){const c=i?r:CA.extend({},r,{"X-LaunchDarkly-Event-Schema":"4","X-LaunchDarkly-Payload-ID":s});return e.httpRequest("POST",a,pk(c,n),o).promise.then((e=>{if(e)return e.status>=400&&lA.isHttpErrorRecoverable(e.status)&&l?t(!1):function(e){const t={status:e.status},n=e.header("date");if(n){const e=Date.parse(n);e&&(t.serverTime=e)}return t}(e)})).catch((()=>l?t(!1):Promise.reject()))}(!0).catch((()=>{}))}};return a};const{commonBasicLogger:fk}=JA;function mk(e){return"string"==typeof e&&"kind"!==e&&e.match(/^(\w|\.|-)+$/)}function gk(e){return e.includes("%")||e.includes(":")?e.replace(/%/g,"%25").replace(/:/g,"%3A"):e}var vk={checkContext:function(e,t){if(e){if(t&&(void 0===e.kind||null===e.kind))return void 0!==e.key&&null!==e.key;const n=e.key,r=void 0===e.kind?"user":e.kind,a=mk(r),i="multi"===r||null!=n&&""!==n;if("multi"===r){const t=Object.keys(e).filter((e=>"kind"!==e));return i&&t.every((e=>mk(e)))&&t.every((t=>{const n=e[t].key;return null!=n&&""!==n}))}return i&&a}return!1},getContextKeys:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fk();if(!e)return;const n={},{kind:r,key:a}=e;switch(r){case void 0:n.user=`${a}`;break;case"multi":Object.entries(e).filter((e=>{let[t]=e;return"kind"!==t})).forEach((e=>{let[t,r]=e;r&&r.key&&(n[t]=r.key)}));break;case null:t.warn(`null is not a valid context kind: ${e}`);break;case"":t.warn(`'' is not a valid context kind: ${e}`);break;default:n[r]=`${a}`}return n},getContextKinds:function(e){return e?null===e.kind||void 0===e.kind?["user"]:"multi"!==e.kind?[e.kind]:Object.keys(e).filter((e=>"kind"!==e)):[]},getCanonicalKey:function(e){if(e){if((void 0===e.kind||null===e.kind||"user"===e.kind)&&e.key)return e.key;if("multi"!==e.kind&&e.key)return`${e.kind}:${gk(e.key)}`;if("multi"===e.kind)return Object.keys(e).sort().filter((e=>"kind"!==e)).map((t=>`${t}:${gk(e[t].key)}`)).join(":")}}};const{getContextKinds:yk}=vk;function bk(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function xk(e){return(e.startsWith("/")?e.substring(1):e).split("/").map((e=>e.indexOf("~")>=0?e.replace(/~1/g,"/").replace(/~0/g,"~"):e))}function wk(e){return!e.startsWith("/")}function Sk(e,t){const n=wk(e),r=wk(t);if(n&&r)return e===t;if(n){const n=xk(t);return 1===n.length&&e===n[0]}if(r){const n=xk(e);return 1===n.length&&t===n[0]}return e===t}function Ck(e){return`/${bk(e)}`}var Ak={cloneExcluding:function(e,t){const n=[],r={},a=[];for(n.push(...Object.keys(e).map((t=>({key:t,ptr:Ck(t),source:e,parent:r,visited:[e]}))));n.length;){const e=n.pop();if(t.some((t=>Sk(t,e.ptr))))a.push(e.ptr);else{const t=e.source[e.key];if(null===t)e.parent[e.key]=t;else if(Array.isArray(t))e.parent[e.key]=[...t];else if("object"==typeof t){if(e.visited.includes(t))continue;e.parent[e.key]={},n.push(...Object.keys(t).map((n=>{return{key:n,ptr:(r=e.ptr,a=bk(n),`${r}/${a}`),source:t,parent:e.parent[e.key],visited:[...e.visited,t]};var r,a})))}else e.parent[e.key]=t}}return{cloned:r,excluded:a.sort()}},compare:Sk,literalToReference:Ck};const{getContextKeys:kk}=vk;var Tk=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;const i={},o=(arguments.length>5&&void 0!==arguments[5]?arguments[5]:null)||hk(e,0,t),s=CA.appendUrlPath(t.eventsUrl,"/events/bulk/"+n),l=function(){const e={};let t=0,n=0,r={},a={};return e.summarizeEvent=e=>{if("feature"===e.kind){const i=e.key+":"+(null!==e.variation&&void 0!==e.variation?e.variation:"")+":"+(null!==e.version&&void 0!==e.version?e.version:""),o=r[i];let s=a[e.key];s||(s=new Set,a[e.key]=s),function(e){return e.context?yk(e.context):e.contextKeys?Object.keys(e.contextKeys):[]}(e).forEach((e=>s.add(e))),o?o.count=o.count+1:r[i]={count:1,key:e.key,version:e.version,variation:e.variation,value:e.value,default:e.default},(0===t||e.creationDate<t)&&(t=e.creationDate),e.creationDate>n&&(n=e.creationDate)}},e.getSummary=()=>{const e={};let i=!0;for(const t of Object.values(r)){let n=e[t.key];n||(n={default:t.default,counters:[],contextKinds:[...a[t.key]]},e[t.key]=n);const r={value:t.value,count:t.count};void 0!==t.variation&&null!==t.variation&&(r.variation=t.variation),void 0!==t.version&&null!==t.version?r.version=t.version:r.unknown=!0,n.counters.push(r),i=!1}return i?null:{startDate:t,endDate:n,features:e}},e.clearSummary=()=>{t=0,n=0,r={},a={}},e}(),c=function(e){const t={},n=e.allAttributesPrivate,r=e.privateAttributes||[],a=["key","kind","_meta","anonymous"],i=["name","ip","firstName","lastName","email","avatar","country"],o=(e,t)=>{if("object"!=typeof e||null===e||Array.isArray(e))return;const{cloned:i,excluded:o}=Ak.cloneExcluding(e,((e,t)=>(n||t&&e.anonymous?Object.keys(e):[...r,...e._meta&&e._meta.privateAttributes||[]]).filter((e=>!a.some((t=>Ak.compare(e,t))))))(e,t));return i.key=String(i.key),o.length&&(i._meta||(i._meta={}),i._meta.redactedAttributes=o),i._meta&&(delete i._meta.privateAttributes,0===Object.keys(i._meta).length&&delete i._meta),void 0!==i.anonymous&&(i.anonymous=!!i.anonymous),i};return t.filter=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return void 0===e.kind||null===e.kind?o((e=>{const t={...e.custom||{},kind:"user",key:e.key};void 0!==e.anonymous&&(t.anonymous=!!e.anonymous);for(const n of i)delete t[n],void 0!==e[n]&&null!==e[n]&&(t[n]=String(e[n]));return void 0!==e.privateAttributeNames&&null!==e.privateAttributeNames&&(t._meta=t._meta||{},t._meta.privateAttributes=e.privateAttributeNames.map((e=>e.startsWith("/")?Ak.literalToReference(e):e))),t})(e),t):"multi"===e.kind?((e,t)=>{const n={kind:e.kind},r=Object.keys(e);for(const a of r)if("kind"!==a){const r=o(e[a],t);r&&(n[a]=r)}return n})(e,t):o(e,t)},t}(t),u=t.samplingInterval,d=t.eventCapacity,p=t.flushInterval,h=t.logger;let f,m=[],g=0,v=!1,y=!1;function b(){return 0===u||0===Math.floor(Math.random()*u)}function x(e){m.length<d?(m.push(e),y=!1):(y||(y=!0,h.warn(tk.eventCapacityExceeded())),r&&r.incrementDroppedEvents())}return i.enqueue=function(e){if(v)return;let t=!1,n=!1;var r;if(l.summarizeEvent(e),"feature"===e.kind?b()&&(t=!!e.trackEvents,n=!!(r=e).debugEventsUntilDate&&r.debugEventsUntilDate>g&&r.debugEventsUntilDate>(new Date).getTime()):t=b(),t&&x(function(e){const t=CA.extend({},e);return"identify"===e.kind?t.context=c.filter(e.context):"feature"===e.kind?t.context=c.filter(e.context,!0):(t.contextKeys=kk(e.context,h),delete t.context),"feature"===e.kind&&(delete t.trackEvents,delete t.debugEventsUntilDate),t}(e)),n){const t=CA.extend({},e,{kind:"debug"});t.context=c.filter(t.context),delete t.trackEvents,delete t.debugEventsUntilDate,x(t)}},i.flush=function(){if(v)return Promise.resolve();const e=m,t=l.getSummary();return l.clearSummary(),t&&(t.kind="summary",e.push(t)),r&&r.setEventsInLastBatch(e.length),0===e.length?Promise.resolve():(m=[],h.debug(tk.debugPostingEvents(e.length)),o.sendEvents(e,s).then((e=>{e&&(e.serverTime&&(g=e.serverTime),lA.isHttpErrorRecoverable(e.status)||(v=!0),e.status>=400&&CA.onNextTick((()=>{a.maybeReportError(new lA.LDUnexpectedResponseError(tk.httpErrorMessage(e.status,"event posting","some events were dropped")))})))})))},i.start=function(){const e=()=>{i.flush(),f=setTimeout(e,p)};f=setTimeout(e,p)},i.stop=function(){clearTimeout(f)},i};const jk="ready",Ek="initialized",Pk="failed";const{appendUrlPath:Nk,base64URLEncode:Dk,objectHasOwnProperty:Mk}=CA,{getLDHeaders:_k,transformHeaders:Ik}=ck,{isHttpErrorRecoverable:Rk}=lA;var Ok=function(e,t,n,r){const a=t.streamUrl,i=t.logger,o={},s=Nk(a,"/eval/"+n),l=t.useReport,c=t.evaluationReasons,u=t.streamReconnectDelay,d=_k(e,t);let p,h=!1,f=null,m=null,g=null,v=null,y=null,b=0;function x(e){if(e.status&&"number"==typeof e.status&&!Rk(e.status))return C(),i.error(tk.unrecoverableStreamError(e)),void(m&&(clearTimeout(m),m=null));const t=function(){const e=(t=function(){const e=u*Math.pow(2,b);return e>3e4?3e4:e}(),t-Math.trunc(.5*Math.random()*t));var t;return b+=1,e}();h||(i.warn(tk.streamError(e,t)),h=!0),A(!1),C(),w(t)}function w(e){m||(e?m=setTimeout(S,e):S())}function S(){let r;m=null;let o="";const u={headers:d,readTimeoutMillis:3e5};if(e.eventSourceFactory){null!=v&&(o="h="+v),l?e.eventSourceAllowsReport?(r=s,u.method="REPORT",u.headers["Content-Type"]="application/json",u.body=JSON.stringify(g)):(r=Nk(a,"/ping/"+n),o=""):r=s+"/"+Dk(JSON.stringify(g)),u.headers=Ik(u.headers,t),c&&(o=o+(o?"&":"")+"withReasons=true"),r=r+(o?"?":"")+o,C(),i.info(tk.streamConnecting(r)),p=(new Date).getTime(),f=e.eventSourceFactory(r,u);for(const e in y)Mk(y,e)&&f.addEventListener(e,y[e]);f.onerror=x,f.onopen=()=>{b=0}}}function C(){f&&(i.info(tk.streamClosing()),f.close(),f=null)}function A(e){p&&r&&r.recordStreamInit(p,!e,(new Date).getTime()-p),p=null}return o.connect=function(e,t,n){g=e,v=t,y={};for(const r in n||{})y[r]=function(e){h=!1,A(!0),n[r]&&n[r](e)};w()},o.disconnect=function(){clearTimeout(m),m=null,C()},o.isConnected=function(){return!!(f&&e.eventSourceIsActive&&e.eventSourceIsActive(f))},o};const{transformHeaders:Lk,getLDHeaders:Fk}=ck,Bk="application/json";var zk=function(e,t,n){const r=t.baseUrl,a=t.useReport,i=t.evaluationReasons,o=t.logger,s={},l={};function c(n,r){if(!e.httpRequest)return new Promise(((e,t)=>{t(new lA.LDFlagFetchError(tk.httpUnavailable()))}));const a=r?"REPORT":"GET",i=Fk(e,t);r&&(i["Content-Type"]=Bk);let o=l[n];o||(o=function(e){let t,n,r,a;const i={addPromise:(i,o)=>{t=i,n&&n(),n=o,i.then((n=>{t===i&&(r(n),e&&e())}),(n=>{t===i&&(a(n),e&&e())}))}};return i.resultPromise=new Promise(((e,t)=>{r=e,a=t})),i}((()=>{delete l[n]})),l[n]=o);const s=e.httpRequest(a,n,Lk(i,t),r),c=s.promise.then((e=>{if(200===e.status){if(e.header("content-type")&&e.header("content-type").substring(0,16)===Bk)return JSON.parse(e.body);{const t=tk.invalidContentType(e.header("content-type")||"");return Promise.reject(new lA.LDFlagFetchError(t))}}return Promise.reject(function(e){return 404===e.status?new lA.LDInvalidEnvironmentIdError(tk.environmentNotFound()):new lA.LDFlagFetchError(tk.errorFetchingFlags(e.statusText||String(e.status)))}(e))}),(e=>Promise.reject(new lA.LDFlagFetchError(tk.networkError(e)))));return o.addPromise(c,(()=>{s.cancel&&s.cancel()})),o.resultPromise}return s.fetchJSON=function(e){return c(CA.appendUrlPath(r,e),null)},s.fetchFlagSettings=function(e,t){let s,l,u,d="";return a?(l=[r,"/sdk/evalx/",n,"/context"].join(""),u=JSON.stringify(e)):(s=CA.base64URLEncode(JSON.stringify(e)),l=[r,"/sdk/evalx/",n,"/contexts/",s].join("")),t&&(d="h="+t),i&&(d=d+(d?"&":"")+"withReasons=true"),l=l+(d?"?":"")+d,o.debug(tk.debugPolling(l)),c(l,u)},s};const{v1:Vk}=XA,{getContextKinds:Wk}=vk;var Uk=function(e){function t(e){return null==e||"user"===e?"ld:$anonUserId":`ld:$contextKey:${e}`}function n(n,r){return null!==r.key&&void 0!==r.key?(r.key=r.key.toString(),Promise.resolve(r)):r.anonymous?function(n){return e.get(t(n))}(n).then((a=>{if(a)return r.key=a,r;{const a=Vk();return r.key=a,function(n,r){return e.set(t(r),n)}(a,n).then((()=>r))}})):Promise.reject(new lA.LDInvalidUserError(tk.invalidContext()))}this.processContext=e=>{if(!e)return Promise.reject(new lA.LDInvalidUserError(tk.contextNotSpecified()));const t=CA.clone(e);if("multi"===e.kind){const e=Wk(t);return Promise.all(e.map((e=>n(e,t[e])))).then((()=>t))}return n(e.kind,t)}};const{v1:$k}=XA,{baseOptionDefs:Hk}=sk,{appendUrlPath:qk}=CA;var Gk=function(e){const t={diagnosticId:$k()};return e&&(t.sdkKeySuffix=e.length>6?e.substring(e.length-6):e),t},Kk=function(e){let t,n,r,a;function i(e){t=e,n=0,r=0,a=[]}return i(e),{getProps:()=>({dataSinceDate:t,droppedEvents:n,eventsInLastBatch:r,streamInits:a}),setProps:e=>{t=e.dataSinceDate,n=e.droppedEvents||0,r=e.eventsInLastBatch||0,a=e.streamInits||[]},incrementDroppedEvents:()=>{n++},setEventsInLastBatch:e=>{r=e},recordStreamInit:(e,t,n)=>{const r={timestamp:e,failed:t,durationMillis:n};a.push(r)},reset:i}},Yk=function(e,t,n,r,a,i,o){const s=!!e.diagnosticUseCombinedEvent,l="ld:"+a+":$diagnostics",c=qk(i.eventsUrl,"/events/diagnostic/"+a),u=i.diagnosticRecordingInterval,d=n;let p,h,f=!!i.streaming;const m={};function g(){return{sdk:b(),configuration:{customBaseURI:i.baseUrl!==Hk.baseUrl.default,customStreamURI:i.streamUrl!==Hk.streamUrl.default,customEventsURI:i.eventsUrl!==Hk.eventsUrl.default,eventsCapacity:i.eventCapacity,eventsFlushIntervalMillis:i.flushInterval,reconnectTimeMillis:i.streamReconnectDelay,streamingDisabled:!f,allAttributesPrivate:!!i.allAttributesPrivate,diagnosticRecordingIntervalMillis:i.diagnosticRecordingInterval,usingSecureMode:!!i.hash,bootstrapMode:!!i.bootstrap,fetchGoalsDisabled:!i.fetchGoals,sendEventsOnlyForVariation:!!i.sendEventsOnlyForVariation},platform:e.diagnosticPlatformData}}function v(e){i.logger&&i.logger.debug(tk.debugPostingDiagnosticEvent(e)),r.sendEvents(e,c,!0).then((()=>{})).catch((()=>{}))}function y(){v(function(){const e=(new Date).getTime();let t={kind:s?"diagnostic-combined":"diagnostic",id:o,creationDate:e,...d.getProps()};return s&&(t={...t,...g()}),d.reset(e),t}()),h=setTimeout(y,u),p=(new Date).getTime(),s&&function(){if(t.isEnabled()){const e={...d.getProps()};t.set(l,JSON.stringify(e))}}()}function b(){const t={...e.diagnosticSdkData};return i.wrapperName&&(t.wrapperName=i.wrapperName),i.wrapperVersion&&(t.wrapperVersion=i.wrapperVersion),t}return m.start=()=>{s?function(e){if(!t.isEnabled())return e(!1);t.get(l).then((t=>{if(t)try{const e=JSON.parse(t);d.setProps(e),p=e.dataSinceDate}catch(e){}e(!0)})).catch((()=>{e(!1)}))}((e=>{if(e){const e=(p||0)+u,t=(new Date).getTime();t>=e?y():h=setTimeout(y,e-t)}else 0===Math.floor(4*Math.random())?y():h=setTimeout(y,u)})):(v({kind:"diagnostic-init",id:o,creationDate:d.getProps().dataSinceDate,...g()}),h=setTimeout(y,u))},m.stop=()=>{h&&clearTimeout(h)},m.setStreaming=e=>{f=e},m};const{onNextTick:Xk}=CA,Zk={flagUsed:"flag-used",flagDetailsChanged:"flag-details-changed",flagDetailChanged:"flag-detail-changed",clientIdentityChanged:"client-identity-changed"};Object.freeze(Zk);var Jk={InspectorTypes:Zk,InspectorManager:function(e,t){const n={},r={[Zk.flagUsed]:[],[Zk.flagDetailsChanged]:[],[Zk.flagDetailChanged]:[],[Zk.clientIdentityChanged]:[]},a={[Zk.flagUsed]:[],[Zk.flagDetailsChanged]:[],[Zk.flagDetailChanged]:[],[Zk.clientIdentityChanged]:[]},i=e&&e.map((e=>function(e,t){let n=!1;const r={type:e.type,name:e.name,synchronous:e.synchronous,method:function(){try{e.method(...arguments)}catch{n||(n=!0,t.warn(tk.inspectorMethodError(r.type,r.name)))}}};return r}(e,t)));return i&&i.forEach((e=>{Object.prototype.hasOwnProperty.call(r,e.type)&&!e.synchronous?r[e.type].push(e):Object.prototype.hasOwnProperty.call(a,e.type)&&e.synchronous?a[e.type].push(e):t.warn(tk.invalidInspector(e.type,e.name))})),n.hasListeners=e=>r[e]&&r[e].length||a[e]&&a[e].length,n.onFlagUsed=(e,t,n)=>{const i=Zk.flagUsed;a[i].length&&a[i].forEach((r=>r.method(e,t,n))),r[i].length&&Xk((()=>{r[i].forEach((r=>r.method(e,t,n)))}))},n.onFlags=e=>{const t=Zk.flagDetailsChanged;a[t].length&&a[t].forEach((t=>t.method(e))),r[t].length&&Xk((()=>{r[t].forEach((t=>t.method(e)))}))},n.onFlagChanged=(e,t)=>{const n=Zk.flagDetailChanged;a[n].length&&a[n].forEach((n=>n.method(e,t))),r[n].length&&Xk((()=>{r[n].forEach((n=>n.method(e,t)))}))},n.onIdentityChanged=e=>{const t=Zk.clientIdentityChanged;a[t].length&&a[t].forEach((t=>t.method(e))),r[t].length&&Xk((()=>{r[t].forEach((t=>t.method(e)))}))},n}};const{LDTimeoutError:Qk}=lA;const{commonBasicLogger:eT}=JA,{checkContext:tT,getContextKeys:nT}=vk,{InspectorTypes:rT,InspectorManager:aT}=Jk,iT="change",oT="internal-change";var sT={initialize:function(e,t,n,r,a){const i=n&&n.logger?n.logger:a&&a.logger&&a.logger.default||eT("warn"),o=function(e){const t={},n={};return t.on=function(e,t,r){n[e]=n[e]||[],n[e]=n[e].concat({handler:t,context:r})},t.off=function(e,t,r){if(n[e])for(let a=0;a<n[e].length;a++)n[e][a].handler===t&&n[e][a].context===r&&(n[e]=n[e].slice(0,a).concat(n[e].slice(a+1)))},t.emit=function(e){if(!n[e])return;const t=n[e].slice(0);for(let n=0;n<t.length;n++)t[n].handler.apply(t[n].context,Array.prototype.slice.call(arguments,1))},t.getEvents=function(){return Object.keys(n)},t.getEventListenerCount=function(e){return n[e]?n[e].length:0},t.maybeReportError=function(t){t&&(n.error?this.emit("error",t):(e||console).error(t.message))},t}(i),s=function(e){let t=!1,n=!1,r=null,a=null;const i=new Promise((t=>{const n=()=>{e.off(jk,n),t()};e.on(jk,n)})).catch((()=>{}));return{getInitializationPromise:()=>a||(t?Promise.resolve():n?Promise.reject(r):(a=new Promise(((t,n)=>{const r=()=>{e.off(Ek,r),t()},a=t=>{e.off(Pk,a),n(t)};e.on(Ek,r),e.on(Pk,a)})),a)),getReadyPromise:()=>i,signalSuccess:()=>{t||n||(t=!0,e.emit(Ek),e.emit(jk))},signalFailure:a=>{t||n||(n=!0,r=a,e.emit(Pk,a),e.emit(jk)),e.maybeReportError(a)}}}(o),l=sk.validate(n,o,a,i),c=aT(l.inspectors,i),u=l.sendEvents;let d=e,p=l.hash;const h=function(e,t){const n={};let r=!1;const a=e=>{r||(r=!0,t.warn(tk.localStorageUnavailable(e)))};return n.isEnabled=()=>!!e,n.get=t=>new Promise((n=>{e?e.get(t).then(n).catch((e=>{a(e),n(void 0)})):n(void 0)})),n.set=(t,n)=>new Promise((r=>{e?e.set(t,n).then((()=>r(!0))).catch((e=>{a(e),r(!1)})):r(!1)})),n.clear=t=>new Promise((n=>{e?e.clear(t).then((()=>n(!0))).catch((e=>{a(e),n(!1)})):n(!1)})),n}(r.localStorage,i),f=hk(r,0,l),m=l.sendEvents&&!l.diagnosticOptOut,g=m?Gk(d):null,v=m?Kk((new Date).getTime()):null,y=m?Yk(r,h,v,f,d,l,g):null,b=Ok(r,l,d,v),x=l.eventProcessor||Tk(r,l,d,v,o,f),w=zk(r,l,d);let S,C,A,k={},T=l.streaming,j=!1,E=!1,P=!0;const N=l.stateProvider,D=function(e,t){const n={};let r;return n.setContext=function(e){r=CA.sanitizeContext(e),r&&t&&t(CA.clone(r))},n.getContext=function(){return r?CA.clone(r):null},e&&n.setContext(e),n}(null,(function(e){(function(e){N||e&&I({kind:"identify",context:e,creationDate:(new Date).getTime()})})(e),c.hasListeners(rT.clientIdentityChanged)&&c.onIdentityChanged(D.getContext())})),M=new Uk(h),_=h.isEnabled()?function(e,t,n,r){const a={};function i(){let e="";const a=r.getContext();return a&&(e=n||CA.btoa(JSON.stringify(a))),"ld:"+t+":"+e}return a.loadFlags=()=>e.get(i()).then((e=>{if(null==e)return null;try{let t=JSON.parse(e);if(t){const e=t.$schema;void 0===e||e<1?t=CA.transformValuesToVersionedValues(t):delete t.$schema}return t}catch(e){return a.clearFlags().then((()=>null))}})),a.saveFlags=t=>{const n=CA.extend({},t,{$schema:1});return e.set(i(),JSON.stringify(n))},a.clearFlags=()=>e.clear(i()),a}(h,d,p,D):null;function I(e){d&&(N&&N.enqueueEvent&&N.enqueueEvent(e)||(e.context?(P=!1,!u||E||r.isDoNotTrack()||(i.debug(tk.debugEnqueueingEvent(e.kind)),x.enqueue(e))):P&&(i.warn(tk.eventWithoutContext()),P=!1)))}function R(e,t){c.hasListeners(rT.flagDetailChanged)&&c.onFlagChanged(e.key,z(t))}function O(){c.hasListeners(rT.flagDetailsChanged)&&c.onFlags(Object.entries(k).map((e=>{let[t,n]=e;return{key:t,detail:z(n)}})).reduce(((e,t)=>(e[t.key]=t.detail,e)),{}))}function L(e,t,n,r){const a=D.getContext(),i=new Date,o={kind:"feature",key:e,context:a,value:t?t.value:null,variation:t?t.variationIndex:null,default:n,creationDate:i.getTime()},s=k[e];s&&(o.version=s.flagVersion?s.flagVersion:s.version,o.trackEvents=s.trackEvents,o.debugEventsUntilDate=s.debugEventsUntilDate),(r||s&&s.trackReason)&&t&&(o.reason=t.reason),I(o)}function F(e){return tT(e,!1)?Promise.resolve(e):Promise.reject(new lA.LDInvalidUserError(tk.invalidContext()))}function B(e,t,n,r,a,i){let o,s;return k&&CA.objectHasOwnProperty(k,e)&&k[e]&&!k[e].deleted?(s=k[e],o=z(s),null!==s.value&&void 0!==s.value||(o.value=t)):o={value:t,variationIndex:null,reason:{kind:"ERROR",errorKind:"FLAG_NOT_FOUND"}},n&&(a||s?.prerequisites?.forEach((e=>{B(e,void 0,n,!1,!1,!1)})),L(e,o,t,r)),!a&&i&&function(e,t){c.hasListeners(rT.flagUsed)&&c.onFlagUsed(e,t,D.getContext())}(e,o),o}function z(e){return{value:e.value,variationIndex:void 0===e.variation?null:e.variation,reason:e.reason||null}}function V(){if(C=!0,!D.getContext())return;const e=e=>{try{return JSON.parse(e)}catch(e){return void o.maybeReportError(new lA.LDInvalidDataError(tk.invalidData()))}};b.connect(D.getContext(),p,{ping:function(){i.debug(tk.debugStreamPing());const e=D.getContext();w.fetchFlagSettings(e,p).then((t=>{CA.deepEquals(e,D.getContext())&&U(t||{})})).catch((e=>{o.maybeReportError(new lA.LDFlagFetchError(tk.errorFetchingFlags(e)))}))},put:function(t){const n=e(t.data);n&&(i.debug(tk.debugStreamPut()),U(n))},patch:function(t){const n=e(t.data);if(!n)return;const r=k[n.key];if(!r||!r.version||!n.version||r.version<n.version){i.debug(tk.debugStreamPatch(n.key));const e={},t=CA.extend({},n);delete t.key,k[n.key]=t;const a=z(t);e[n.key]=r?{previous:r.value,current:a}:{current:a},R(n,t),$(e)}else i.debug(tk.debugStreamPatchIgnored(n.key))},delete:function(t){const n=e(t.data);if(n)if(!k[n.key]||k[n.key].version<n.version){i.debug(tk.debugStreamDelete(n.key));const e={};k[n.key]&&!k[n.key].deleted&&(e[n.key]={previous:k[n.key].value}),k[n.key]={version:n.version,deleted:!0},R(n,k[n.key]),$(e)}else i.debug(tk.debugStreamDeleteIgnored(n.key))}})}function W(){C&&(b.disconnect(),C=!1)}function U(e){const t={};if(!e)return Promise.resolve();for(const n in k)CA.objectHasOwnProperty(k,n)&&k[n]&&(e[n]&&!CA.deepEquals(e[n].value,k[n].value)?t[n]={previous:k[n].value,current:z(e[n])}:e[n]&&!e[n].deleted||(t[n]={previous:k[n].value}));for(const n in e)CA.objectHasOwnProperty(e,n)&&e[n]&&(!k[n]||k[n].deleted)&&(t[n]={current:z(e[n])});return k={...e},O(),$(t).catch((()=>{}))}function $(e){const t=Object.keys(e);if(t.length>0){const n={};t.forEach((t=>{const r=e[t].current,a=r?r.value:void 0,i=e[t].previous;o.emit(iT+":"+t,a,i),n[t]=r?{current:a,previous:i}:{previous:i}})),o.emit(iT,n),o.emit(oT,k),l.sendEventsOnlyForVariation||N||t.forEach((t=>{L(t,e[t].current)}))}return S&&_?_.saveFlags(k):Promise.resolve()}function H(){const e=T||A&&void 0===T;e&&!C?V():!e&&C&&W(),y&&y.setStreaming(e)}function q(e){return e===iT||e.substr(0,7)===iT+":"}if("string"==typeof l.bootstrap&&"LOCALSTORAGE"===l.bootstrap.toUpperCase()&&(_?S=!0:i.warn(tk.localStorageUnavailable())),"object"==typeof l.bootstrap&&(k=function(e){const t=Object.keys(e),n="$flagsState",r="$valid",a=e[n];!a&&t.length&&i.warn(tk.bootstrapOldFormat()),!1===e[r]&&i.warn(tk.bootstrapInvalid());const o={};return t.forEach((t=>{if(t!==n&&t!==r){let n={value:e[t]};a&&a[t]?n=CA.extend(n,a[t]):n.version=0,o[t]=n}})),o}(l.bootstrap)),N){const e=N.getInitialState();e?G(e):N.on("init",G),N.on("update",(function(e){e.context&&D.setContext(e.context),e.flags&&U(e.flags)}))}else(e?M.processContext(t).then(F).then((e=>(D.setContext(e),"object"==typeof l.bootstrap?K():S?_.loadFlags().then((e=>null==e?(k={},w.fetchFlagSettings(D.getContext(),p).then((e=>U(e||{}))).then(K).catch((e=>{Y(new lA.LDFlagFetchError(tk.errorFetchingFlags(e)))}))):(k=e,CA.onNextTick(K),w.fetchFlagSettings(D.getContext(),p).then((e=>U(e))).catch((e=>o.maybeReportError(e)))))):w.fetchFlagSettings(D.getContext(),p).then((e=>{k=e||{},O(),K()})).catch((e=>{k={},Y(e)}))))):Promise.reject(new lA.LDInvalidEnvironmentIdError(tk.environmentNotSpecified()))).catch(Y);function G(e){d=e.environment,D.setContext(e.context),k={...e.flags},CA.onNextTick(K)}function K(){i.info(tk.clientInitialized()),j=!0,H(),s.signalSuccess()}function Y(e){s.signalFailure(e)}const X={waitForInitialization:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(null!=e){if("number"==typeof e)return function(e){e>5&&i.warn("The waitForInitialization function was called with a timeout greater than 5 seconds. We recommend a timeout of 5 seconds or less.");const t=s.getInitializationPromise(),n=function(e,t){return new Promise(((n,r)=>{setTimeout((()=>{r(new Qk(`${t} timed out after ${e} seconds.`))}),1e3*e)}))}(e,"waitForInitialization");return Promise.race([n,t]).catch((e=>{throw e instanceof lA.LDTimeoutError&&i.error(`waitForInitialization error: ${e}`),e}))}(e);i.warn("The waitForInitialization method was provided with a non-numeric timeout.")}return i.warn("The waitForInitialization function was called without a timeout specified. In a future version a default timeout will be applied."),s.getInitializationPromise()},waitUntilReady:()=>s.getReadyPromise(),identify:function(e,t,n){if(E)return CA.wrapPromiseCallback(Promise.resolve({}),n);if(N)return i.warn(tk.identifyDisabled()),CA.wrapPromiseCallback(Promise.resolve(CA.transformVersionedValuesToValues(k)),n);const r=S&&_?_.clearFlags():Promise.resolve();return CA.wrapPromiseCallback(r.then((()=>M.processContext(e))).then(F).then((e=>w.fetchFlagSettings(e,t).then((n=>{const r=CA.transformVersionedValuesToValues(n);return D.setContext(e),p=t,n?U(n).then((()=>r)):r})))).then((e=>(C&&V(),e))).catch((e=>(o.maybeReportError(e),Promise.reject(e)))),n)},getContext:function(){return D.getContext()},variation:function(e,t){return B(e,t,!0,!1,!1,!0).value},variationDetail:function(e,t){return B(e,t,!0,!0,!1,!0)},track:function(e,t,n){if("string"!=typeof e)return void o.maybeReportError(new lA.LDInvalidEventKeyError(tk.unknownCustomEventKey(e)));void 0!==n&&"number"!=typeof n&&i.warn(tk.invalidMetricValue(typeof n)),r.customEventFilter&&!r.customEventFilter(e)&&i.warn(tk.unknownCustomEventKey(e));const a=D.getContext(),s={kind:"custom",key:e,context:a,url:r.getCurrentUrl(),creationDate:(new Date).getTime()};a&&a.anonymous&&(s.contextKind=a.anonymous?"anonymousUser":"user"),null!=t&&(s.data=t),null!=n&&(s.metricValue=n),I(s)},on:function(e,t,n){q(e)?(A=!0,j&&H(),o.on(e,t,n)):o.on(...arguments)},off:function(e){if(o.off(...arguments),q(e)){let e=!1;o.getEvents().forEach((t=>{q(t)&&o.getEventListenerCount(t)>0&&(e=!0)})),e||(A=!1,C&&void 0===T&&W())}},setStreaming:function(e){const t=null===e?void 0:e;t!==T&&(T=t,H())},flush:function(e){return CA.wrapPromiseCallback(u?x.flush():Promise.resolve(),e)},allFlags:function(){const e={};if(!k)return e;for(const t in k)CA.objectHasOwnProperty(k,t)&&!k[t].deleted&&(e[t]=B(t,null,!l.sendEventsOnlyForVariation,!1,!0,!1).value);return e},close:function(e){if(E)return CA.wrapPromiseCallback(Promise.resolve(),e);const t=()=>{E=!0,k={}},n=Promise.resolve().then((()=>{if(W(),y&&y.stop(),u)return x.stop(),x.flush()})).then(t).catch(t);return CA.wrapPromiseCallback(n,e)}};return{client:X,options:l,emitter:o,ident:D,logger:i,requestor:w,start:function(){u&&(y&&y.start(),x.start())},enqueueEvent:I,getFlagsInternal:function(){return k},getEnvironmentId:()=>d,internalChangeEventName:oT}},commonBasicLogger:eT,errors:lA,messages:tk,utils:CA,getContextKeys:nT},lT=sT.initialize,cT=sT.errors;function uT(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dT(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 pT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dT(Object(n),!0).forEach((function(t){uT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hT={promise:Promise.resolve({status:200,header:function(){return null},body:null})};var fT=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};function mT(e,t,n,r){var a,i,o=("substring"!==e.kind&&"regex"!==e.kind||!r.includes("/")?t.replace(r,""):t).replace(n,"");switch(e.kind){case"exact":i=t,a=new RegExp("^"+fT(e.url)+"/?$");break;case"canonical":i=o,a=new RegExp("^"+fT(e.url)+"/?$");break;case"substring":i=o,a=new RegExp(".*"+fT(e.substring)+".*$");break;case"regex":i=o,a=new RegExp(e.pattern);break;default:return!1}return a.test(i)}function gT(e,t){for(var n={},r=null,a=[],i=0;i<e.length;i++)for(var o=e[i],s=o.urls||[],l=0;l<s.length;l++)if(mT(s[l],window.location.href,window.location.search,window.location.hash)){"pageview"===o.kind?t("pageview",o):(a.push(o),t("click_pageview",o));break}return a.length>0&&(r=function(e){for(var n=function(e,t){for(var n=[],r=0;r<t.length;r++)for(var a=e.target,i=t[r],o=i.selector,s=document.querySelectorAll(o);a&&s.length>0;){for(var l=0;l<s.length;l++)a===s[l]&&n.push(i);a=a.parentNode}return n}(e,a),r=0;r<n.length;r++)t("click",n[r])},document.addEventListener("click",r)),n.dispose=function(){document.removeEventListener("click",r)},n}var vT="goalsReady",yT={fetchGoals:{default:!0},hash:{type:"string"},eventProcessor:{type:"object"},eventUrlTransformer:{type:"function"},disableSyncEventPost:{default:!1}};function bT(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=function(e){var t,n={userAgentHeaderName:"X-LaunchDarkly-User-Agent",synchronousFlush:!1};if(window.XMLHttpRequest){var r=e&&e.disableSyncEventPost;n.httpRequest=function(e,t,a,i){var o=n.synchronousFlush&!r;return n.synchronousFlush=!1,function(e,t,n,r,a){if(a&&!function(){var e=window.navigator&&window.navigator.userAgent;if(e){var t=e.match(/Chrom(e|ium)\/([0-9]+)\./);if(t)return parseInt(t[2],10)<73}return!0}())return hT;var i=new window.XMLHttpRequest;for(var o in i.open(e,t,!a),n||{})Object.prototype.hasOwnProperty.call(n,o)&&i.setRequestHeader(o,n[o]);if(a){try{i.send(r)}catch(e){}return hT}var s,l=new Promise((function(e,t){i.addEventListener("load",(function(){s||e({status:i.status,header:function(e){return i.getResponseHeader(e)},body:i.responseText})})),i.addEventListener("error",(function(){s||t(new Error)})),i.send(r)}));return{promise:l,cancel:function(){s=!0,i.abort()}}}(e,t,a,i,o)}}n.httpAllowsPost=function(){return void 0===t&&(t=!!window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest),t},n.httpFallbackPing=function(e){(new window.Image).src=e};var a,i=e&&e.eventUrlTransformer;n.getCurrentUrl=function(){return i?i(window.location.href):window.location.href},n.isDoNotTrack=function(){var e;return 1===(e=window.navigator&&void 0!==window.navigator.doNotTrack?window.navigator.doNotTrack:window.navigator&&void 0!==window.navigator.msDoNotTrack?window.navigator.msDoNotTrack:window.doNotTrack)||!0===e||"1"===e||"yes"===e};try{window.localStorage&&(n.localStorage={get:function(e){return new Promise((function(t){t(window.localStorage.getItem(e))}))},set:function(e,t){return new Promise((function(n){window.localStorage.setItem(e,t),n()}))},clear:function(e){return new Promise((function(t){window.localStorage.removeItem(e),t()}))}})}catch(e){n.localStorage=null}if(e&&e.useReport&&"function"==typeof window.EventSourcePolyfill&&window.EventSourcePolyfill.supportedOptions&&window.EventSourcePolyfill.supportedOptions.method?(n.eventSourceAllowsReport=!0,a=window.EventSourcePolyfill):(n.eventSourceAllowsReport=!1,a=window.EventSource),window.EventSource){var o=3e5;n.eventSourceFactory=function(e,t){var n=pT(pT({},{heartbeatTimeout:o,silentTimeout:o,skipDefaultHeaders:!0}),t);return new a(e,n)},n.eventSourceIsActive=function(e){return e.readyState===window.EventSource.OPEN||e.readyState===window.EventSource.CONNECTING}}return n.userAgent="JSClient",n.version="3.5.0",n.diagnosticSdkData={name:"js-client-sdk",version:"3.5.0"},n.diagnosticPlatformData={name:"JS"},n.diagnosticUseCombinedEvent=!0,n}(n),a=lT(e,t,n,r,yT),i=a.client,o=a.options,s=a.emitter,l=new Promise((function(e){var t=s.on(vT,(function(){s.off(vT,t),e()}))}));i.waitUntilGoalsReady=function(){return l},o.fetchGoals?function(e,t){var n,r;function a(){r&&r.dispose(),n&&n.length&&(r=gT(n,i))}function i(t,n){var r=e.ident.getContext(),a={kind:t,key:n.key,data:null,url:window.location.href,creationDate:(new Date).getTime(),context:r};return"click"===t&&(a.selector=n.selector),e.enqueueEvent(a)}e.requestor.fetchJSON("/sdk/goals/"+e.getEnvironmentId()).then((function(e){e&&e.length>0&&(r=gT(n=e,i),function(e,t){var n,r=window.location.href;function a(){(n=window.location.href)!==r&&(r=n,t())}!function e(t,n){t(),setTimeout((function(){e(t,n)}),n)}(a,300),window.history&&window.history.pushState?window.addEventListener("popstate",a):window.addEventListener("hashchange",a)}(0,a)),t()})).catch((function(n){e.emitter.maybeReportError(new cT.LDUnexpectedResponseError((n&&n.message,n.message))),t()}))}(a,(function(){return s.emit(vT)})):s.emit(vT),"complete"!==document.readyState?window.addEventListener("load",a.start):a.start();var c=function(){r.synchronousFlush=!0,i.flush().catch((function(){})),r.synchronousFlush=!1};return document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&c()})),window.addEventListener("pagehide",c),i}var xT=n(7777),wT=n.n(xT);const ST={useCamelCaseFlagKeys:!0,sendEventsOnFlagRead:!0},CT=(0,e.createContext)({flags:{},flagKeyMap:{},ldClient:void 0}),{Provider:AT,Consumer:kT}=CT,TT=e=>{var t;return null!=(t=e.context)?t:e.user},jT=e=>{const t={};for(const n in e)0!==n.indexOf("$")&&(t[wT()(n)]=e[n]);return t},ET=(e,t)=>{const n={};for(const r in e)t&&void 0===t[r]||(n[r]=e[r].current);return n},PT=(e,t)=>{const n=e.allFlags();return t?Object.keys(t).reduce(((e,r)=>(e[r]=Object.prototype.hasOwnProperty.call(n,r)?n[r]:t[r],e)),{}):n};function NT(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ST;const r=function(e,t){return void 0===t?e:Object.keys(t).reduce(((t,n)=>(DT(e,n)&&(t[n]=e[n]),t)),{})}(t,arguments.length>3?arguments[3]:void 0),{useCamelCaseFlagKeys:a=!0}=n,[i,o={}]=a?function(e){const t={},n={};for(const r in e){if(0===r.indexOf("$"))continue;const a=wT()(r);t[a]=e[r],n[a]=r}return[t,n]}(r):[r];return{flags:n.sendEventsOnFlagRead?MT(e,i,o,a):i,flagKeyMap:o}}function DT(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function MT(e,t,n,r){return new Proxy(t,{get(t,a,i){const o=Reflect.get(t,a,i),s=r&&DT(n,a)||DT(t,a);if("symbol"==typeof a||!s)return o;if(void 0===o)return;const l=r?n[a]:a;return e.variation(l,o)}})}jT.camelCaseKeys=jT;const _T={wrapperName:"react-client-sdk",wrapperVersion:"3.5.0",sendEventsOnlyForVariation:!0};var IT=Object.defineProperty,RT=Object.defineProperties,OT=Object.getOwnPropertyDescriptors,LT=Object.getOwnPropertySymbols,FT=Object.prototype.hasOwnProperty,BT=Object.prototype.propertyIsEnumerable,zT=(e,t,n)=>t in e?IT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,VT=(e,t)=>{for(var n in t||(t={}))FT.call(t,n)&&zT(e,n,t[n]);if(LT)for(var n of LT(t))BT.call(t,n)&&zT(e,n,t[n]);return e},WT=(e,t)=>RT(e,OT(t)),UT=(e,t,n)=>new Promise(((r,a)=>{var i=e=>{try{s(n.next(e))}catch(e){a(e)}},o=e=>{try{s(n.throw(e))}catch(e){a(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,o);s((n=n.apply(e,t)).next())}));class $T extends e.Component{constructor(e){super(e),this.getReactOptions=()=>VT(VT({},ST),this.props.reactOptions),this.subscribeToChanges=e=>{const{flags:t}=this.props;e.on("change",(n=>{const r=this.getReactOptions(),a=ET(n,t),i=VT(VT({},this.state.unproxiedFlags),a);Object.keys(a).length>0&&this.setState((n=>VT(WT(VT({},n),{unproxiedFlags:i}),NT(e,i,r,t))))}))},this.onFailed=(e,t)=>{this.setState((e=>WT(VT({},e),{error:t})))},this.onReady=(e,t,n)=>{const r=PT(e,n);this.setState((a=>VT(WT(VT({},a),{unproxiedFlags:r}),NT(e,r,t,n))))},this.prepareLDClient=()=>UT(this,null,(function*(){var e;const{clientSideID:t,flags:n,options:r}=this.props;let a=yield this.props.ldClient;const i=this.getReactOptions();let o,s=this.state.unproxiedFlags;if(a)s=PT(a,n);else{const l=null!=(e=TT(this.props))?e:{anonymous:!0,kind:"user"};a=bT(t,l,VT(VT({},_T),r));try{yield a.waitForInitialization(this.props.timeout),s=PT(a,n)}catch(e){o=e,(null==o?void 0:o.name.toLowerCase().includes("timeout"))&&(a.on("failed",this.onFailed),a.on("ready",(()=>{this.onReady(a,i,n)})))}}this.setState((e=>WT(VT(WT(VT({},e),{unproxiedFlags:s}),NT(a,s,i,n)),{ldClient:a,error:o}))),this.subscribeToChanges(a)}));const{options:t}=e;if(this.state={flags:{},unproxiedFlags:{},flagKeyMap:{}},t){const{bootstrap:e}=t;if(e&&"localStorage"!==e){const{useCamelCaseFlagKeys:t}=this.getReactOptions();this.state={flags:t?jT(e):e,unproxiedFlags:e,flagKeyMap:{}}}}}componentDidMount(){return UT(this,null,(function*(){const{deferInitialization:e}=this.props;e&&!TT(this.props)||(yield this.prepareLDClient())}))}componentDidUpdate(e){return UT(this,null,(function*(){const{deferInitialization:t}=this.props,n=!TT(e)&&TT(this.props);t&&n&&(yield this.prepareLDClient())}))}render(){const{flags:t,flagKeyMap:n,ldClient:r,error:a}=this.state;return e.createElement(AT,{value:{flags:t,flagKeyMap:n,ldClient:r,error:a}},this.props.children)}}var HT=Object.defineProperty,qT=Object.defineProperties,GT=Object.getOwnPropertyDescriptors,KT=Object.getOwnPropertySymbols,YT=Object.prototype.hasOwnProperty,XT=Object.prototype.propertyIsEnumerable,ZT=(e,t,n)=>t in e?HT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,JT=(e,t)=>{for(var n in t||(t={}))YT.call(t,n)&&ZT(e,n,t[n]);if(KT)for(var n of KT(t))XT.call(t,n)&&ZT(e,n,t[n]);return e};Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const QT=()=>{const{flags:t}=(0,e.useContext)(CT);return t};const ej="undefined"===typeof window||"Deno"in window;function tj(){}function nj(e){return"number"===typeof e&&e>=0&&e!==1/0}function rj(e,t){return Math.max(e+(t||0)-Date.now(),0)}function aj(e,t,n){return vj(e)?"function"===typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function ij(e,t,n){return vj(e)?[{...t,queryKey:e},n]:[e||{},t]}function oj(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:o,stale:s}=e;if(vj(o))if(r){if(t.queryHash!==lj(o,t.options))return!1}else if(!uj(t.queryKey,o))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!==typeof s||t.isStale()===s)&&(("undefined"===typeof a||a===t.state.fetchStatus)&&!(i&&!i(t)))}function sj(e,t){const{exact:n,fetching:r,predicate:a,mutationKey:i}=e;if(vj(i)){if(!t.options.mutationKey)return!1;if(n){if(cj(t.options.mutationKey)!==cj(i))return!1}else if(!uj(t.options.mutationKey,i))return!1}return("boolean"!==typeof r||"loading"===t.state.status===r)&&!(a&&!a(t))}function lj(e,t){return((null==t?void 0:t.queryKeyHashFn)||cj)(e)}function cj(e){return JSON.stringify(e,((e,t)=>mj(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function uj(e,t){return dj(e,t)}function dj(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some((n=>!dj(e[n],t[n]))))}function pj(e,t){if(e===t)return e;const n=fj(e)&&fj(t);if(n||mj(e)&&mj(t)){const r=n?e.length:Object.keys(e).length,a=n?t:Object.keys(t),i=a.length,o=n?[]:{};let s=0;for(let l=0;l<i;l++){const r=n?l:a[l];o[r]=pj(e[r],t[r]),o[r]===e[r]&&s++}return r===i&&s===r?e:o}return t}function hj(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function fj(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function mj(e){if(!gj(e))return!1;const t=e.constructor;if("undefined"===typeof t)return!0;const n=t.prototype;return!!gj(n)&&!!n.hasOwnProperty("isPrototypeOf")}function gj(e){return"[object Object]"===Object.prototype.toString.call(e)}function vj(e){return Array.isArray(e)}function yj(e){return new Promise((t=>{setTimeout(t,e)}))}function bj(e){yj(0).then(e)}function xj(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"===typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?pj(e,t):t}const wj=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()};const a=r=>{t?e.push(r):bj((()=>{n(r)}))},i=()=>{const t=e;e=[],t.length&&bj((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||i()}return n},batchCalls:e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];a((()=>{e(...n)}))},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e}}}();class Sj{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Cj=new class extends Sj{constructor(){super(),this.setup=e=>{if(!ej&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"===typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach((e=>{let{listener:t}=e;t()}))}isFocused(){return"boolean"===typeof this.focused?this.focused:"undefined"===typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},Aj=["online","offline"];const kj=new class extends Sj{constructor(){super(),this.setup=e=>{if(!ej&&window.addEventListener){const t=()=>e();return Aj.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{Aj.forEach((e=>{window.removeEventListener(e,t)}))}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"===typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach((e=>{let{listener:t}=e;t()}))}isOnline(){return"boolean"===typeof this.online?this.online:"undefined"===typeof navigator||"undefined"===typeof navigator.onLine||navigator.onLine}};function Tj(e){return Math.min(1e3*2**e,3e4)}function jj(e){return"online"!==(null!=e?e:"online")||kj.isOnline()}class Ej{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function Pj(e){return e instanceof Ej}function Nj(e){let t,n,r,a=!1,i=0,o=!1;const s=new Promise(((e,t)=>{n=e,r=t})),l=()=>!Cj.isFocused()||"always"!==e.networkMode&&!kj.isOnline(),c=r=>{o||(o=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},u=n=>{o||(o=!0,null==e.onError||e.onError(n),null==t||t(),r(n))},d=()=>new Promise((n=>{t=e=>{const t=o||!l();return t&&n(e),t},null==e.onPause||e.onPause()})).then((()=>{t=void 0,o||null==e.onContinue||e.onContinue()})),p=()=>{if(o)return;let t;try{t=e.fn()}catch(n){t=Promise.reject(n)}Promise.resolve(t).then(c).catch((t=>{var n,r;if(o)return;const s=null!=(n=e.retry)?n:3,c=null!=(r=e.retryDelay)?r:Tj,h="function"===typeof c?c(i,t):c,f=!0===s||"number"===typeof s&&i<s||"function"===typeof s&&s(i,t);!a&&f?(i++,null==e.onFail||e.onFail(i,t),yj(h).then((()=>{if(l())return d()})).then((()=>{a?u(t):p()}))):u(t)}))};return jj(e.networkMode)?p():d().then(p),{promise:s,cancel:t=>{o||(u(new Ej(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{a=!0},continueRetry:()=>{a=!1}}}class Dj extends Sj{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),Mj(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return _j(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return _j(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),hj(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),"undefined"!==typeof this.options.enabled&&"boolean"!==typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const a=this.hasListeners();a&&Ij(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!a||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const i=this.computeRefetchInterval();!a||this.currentQuery===r&&this.options.enabled===n.enabled&&i===this.currentRefetchInterval||this.updateRefetchInterval(i)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){if(n.keepPreviousData)return!1;if(void 0!==n.placeholderData)return t.isPlaceholderData;if(!hj(e.getCurrentResult(),t))return!0;return!1}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach((n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})})),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch(){let{refetchPage:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then((()=>(this.updateResult(),this.currentResult)))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(tj)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),ej||this.currentResult.isStale||!nj(this.options.staleTime))return;const e=rj(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((()=>{this.currentResult.isStale||this.updateResult()}),e)}computeRefetchInterval(){var e;return"function"===typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!ej&&!1!==this.options.enabled&&nj(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||Cj.isFocused())&&this.executeFetch()}),this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,r=this.options,a=this.currentResult,i=this.currentResultState,o=this.currentResultOptions,s=e!==n,l=s?e.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,{state:u}=e;let d,{dataUpdatedAt:p,error:h,errorUpdatedAt:f,fetchStatus:m,status:g}=u,v=!1,y=!1;if(t._optimisticResults){const a=this.hasListeners(),i=!a&&Mj(e,t),o=a&&Ij(e,n,t,r);(i||o)&&(m=jj(e.options.networkMode)?"fetching":"paused",p||(g="loading")),"isRestoring"===t._optimisticResults&&(m="idle")}if(t.keepPreviousData&&!u.dataUpdatedAt&&null!=c&&c.isSuccess&&"error"!==g)d=c.data,p=c.dataUpdatedAt,g=c.status,v=!0;else if(t.select&&"undefined"!==typeof u.data)if(a&&u.data===(null==i?void 0:i.data)&&t.select===this.selectFn)d=this.selectResult;else try{this.selectFn=t.select,d=t.select(u.data),d=xj(null==a?void 0:a.data,d,t),this.selectResult=d,this.selectError=null}catch(S){0,this.selectError=S}else d=u.data;if("undefined"!==typeof t.placeholderData&&"undefined"===typeof d&&"loading"===g){let e;if(null!=a&&a.isPlaceholderData&&t.placeholderData===(null==o?void 0:o.placeholderData))e=a.data;else if(e="function"===typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&"undefined"!==typeof e)try{e=t.select(e),this.selectError=null}catch(S){0,this.selectError=S}"undefined"!==typeof e&&(g="success",d=xj(null==a?void 0:a.data,e,t),y=!0)}this.selectError&&(h=this.selectError,d=this.selectResult,f=Date.now(),g="error");const b="fetching"===m,x="loading"===g,w="error"===g;return{status:g,fetchStatus:m,isLoading:x,isSuccess:"success"===g,isError:w,isInitialLoading:x&&b,data:d,dataUpdatedAt:p,error:h,errorUpdatedAt:f,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:b,isRefetching:b&&!x,isLoadingError:w&&0===u.dataUpdatedAt,isPaused:"paused"===m,isPlaceholderData:y,isPreviousData:v,isRefetchError:w&&0!==u.dataUpdatedAt,isStale:Rj(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,hj(n,t))return;this.currentResult=n;const r={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"===typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const r=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some((e=>{const n=e;return this.currentResult[n]!==t[n]&&r.has(n)}))})()&&(r.listeners=!0),this.notify({...r,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||Pj(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){wj.batch((()=>{var t,n,r,a;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(r=(a=this.options).onSettled)||r.call(a,this.currentResult.data,null);else if(e.onError){var i,o,s,l;null==(i=(o=this.options).onError)||i.call(o,this.currentResult.error),null==(s=(l=this.options).onSettled)||s.call(l,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach((e=>{let{listener:t}=e;t(this.currentResult)})),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})}))}}function Mj(e,t){return function(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&_j(e,t,t.refetchOnMount)}function _j(e,t,n){if(!1!==t.enabled){const r="function"===typeof n?n(e):n;return"always"===r||!1!==r&&Rj(e,t)}return!1}function Ij(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&Rj(e,n)}function Rj(e,t){return e.isStaleByTime(t.staleTime)}const Oj=n(9461).useSyncExternalStore;function Lj(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const Fj=e.createContext(Lj()),Bj=e.createContext(void 0),zj=e.createContext(!1);function Vj(e,t){return e||(t&&"undefined"!==typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Bj),window.ReactQueryClientContext):Bj)}const Wj=function(){let{context:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=e.useContext(Vj(t,e.useContext(zj)));if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},Uj=t=>{let{client:n,children:r,context:a,contextSharing:i=!1}=t;e.useEffect((()=>(n.mount(),()=>{n.unmount()})),[n]);const o=Vj(a,i);return e.createElement(zj.Provider,{value:!a&&i},e.createElement(o.Provider,{value:n},r))},$j=e.createContext(!1);$j.Provider;function Hj(e,t){return"function"===typeof e?e(...t):!!e}function qj(t,n){const r=Wj({context:t.context}),a=e.useContext($j),i=e.useContext(Fj),o=r.defaultQueryOptions(t);o._optimisticResults=a?"isRestoring":"optimistic",o.onError&&(o.onError=wj.batchCalls(o.onError)),o.onSuccess&&(o.onSuccess=wj.batchCalls(o.onSuccess)),o.onSettled&&(o.onSettled=wj.batchCalls(o.onSettled)),(e=>{e.suspense&&"number"!==typeof e.staleTime&&(e.staleTime=1e3)})(o),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(o,i),(t=>{e.useEffect((()=>{t.clearReset()}),[t])})(i);const[s]=e.useState((()=>new n(r,o))),l=s.getOptimisticResult(o);if(Oj(e.useCallback((e=>{const t=a?()=>{}:s.subscribe(wj.batchCalls(e));return s.updateResult(),t}),[s,a]),(()=>s.getCurrentResult()),(()=>s.getCurrentResult())),e.useEffect((()=>{s.setOptions(o,{listeners:!1})}),[o,s]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(o,l,a))throw((e,t,n)=>t.fetchOptimistic(e).then((t=>{let{data:n}=t;null==e.onSuccess||e.onSuccess(n),null==e.onSettled||e.onSettled(n,null)})).catch((t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)})))(o,s,i);if((e=>{let{result:t,errorResetBoundary:n,useErrorBoundary:r,query:a}=e;return t.isError&&!n.isReset()&&!t.isFetching&&Hj(r,[t.error,a])})({result:l,errorResetBoundary:i,useErrorBoundary:o.useErrorBoundary,query:s.getCurrentQuery()}))throw l.error;return o.notifyOnChangeProps?l:s.trackResult(l)}function Gj(e,t,n){return qj(aj(e,t,n),Dj)}const Kj=console;class Yj{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),nj(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:ej?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class Xj extends Yj{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||Kj,this.observers=[],this.state=e.state||Zj(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter((t=>t!==e)),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=Nj({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,r,a,i,o,s,l,c;if(!t){var u,d,p,h;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(u=(d=this.mutationCache.config).onMutate)?void 0:u.call(d,this.state.variables,this));const e=await(null==(p=(h=this.options).onMutate)?void 0:p.call(h,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const f=await e();return await(null==(n=(r=this.mutationCache.config).onSuccess)?void 0:n.call(r,f,this.state.variables,this.state.context,this)),await(null==(a=(i=this.options).onSuccess)?void 0:a.call(i,f,this.state.variables,this.state.context)),await(null==(o=(s=this.mutationCache.config).onSettled)?void 0:o.call(s,f,null,this.state.variables,this.state.context,this)),await(null==(l=(c=this.options).onSettled)?void 0:l.call(c,f,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:f}),f}catch(S){try{var f,m,g,v,y,b,x,w;throw await(null==(f=(m=this.mutationCache.config).onError)?void 0:f.call(m,S,this.state.variables,this.state.context,this)),await(null==(g=(v=this.options).onError)?void 0:g.call(v,S,this.state.variables,this.state.context)),await(null==(y=(b=this.mutationCache.config).onSettled)?void 0:y.call(b,void 0,S,this.state.variables,this.state.context,this)),await(null==(x=(w=this.options).onSettled)?void 0:x.call(w,void 0,S,this.state.variables,this.state.context)),S}finally{this.dispatch({type:"error",error:S})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!jj(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),wj.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}function Zj(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class Jj extends Sj{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),hj(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.currentMutation)||e.removeObserver(this))}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:"undefined"!==typeof e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){wj.batch((()=>{var t,n,r,a;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(a=this.mutateOptions).onSettled)||r.call(a,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var i,o,s,l;null==(i=(o=this.mutateOptions).onError)||i.call(o,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(l=this.mutateOptions).onSettled)||s.call(l,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach((e=>{let{listener:t}=e;t(this.currentResult)}))}))}}function Qj(t,n,r){const a=function(e,t,n){return vj(e)?"function"===typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"===typeof e?{...t,mutationFn:e}:{...e}}(t,n,r),i=Wj({context:a.context}),[o]=e.useState((()=>new Jj(i,a)));e.useEffect((()=>{o.setOptions(a)}),[o,a]);const s=Oj(e.useCallback((e=>o.subscribe(wj.batchCalls(e))),[o]),(()=>o.getCurrentResult()),(()=>o.getCurrentResult())),l=e.useCallback(((e,t)=>{o.mutate(e,t).catch(eE)}),[o]);if(s.error&&Hj(o.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:l,mutateAsync:s.mutate}}function eE(){}const tE="FeaturesEnabledIcon",nE=async function(e){let t=OC.REACT_APP_ABAC_API;const n=tl().get(`${t}/api${e}`).catch((e=>{throw new Error(e.message)})).then((e=>e));return await n},rE=async function(e,t){let n=OC.REACT_APP_ABAC_API;const r=tl().post(`${n}/api${e}`,t).then((e=>e));return await r},aE=async function(e,t){let n=OC.REACT_APP_ABAC_API;const r=tl().put(`${n}/api${e}`,t).then((e=>e));return await r},iE="/App/",oE="/Feature/",sE="/Attribute/",lE="/FeatureAttribute/",cE="/UserClientAttribute/",uE="/User/";let dE=new Date;dE.setMonth(dE.getMonth()-1);const pE=Op({name:"reportDate",initialState:{value:{startDate:dE,endDate:new Date}},reducers:{updateStartDate:(e,t)=>{e.value.startDate=t.payload},updateEndDate:(e,t)=>{e.value.endDate=t.payload}}}),{updateStartDate:hE,updateEndDate:fE,resetDate:mE}=pE.actions,gE=e=>e.reportDate.value,vE=pE.reducer,yE={open:!1,type:"info",message:"",timeout:5e3},bE=Op({name:"notification",initialState:yE,reducers:{addNotification:(e,t)=>({...yE,...t.payload,open:!0}),clearNotification:e=>({...e,open:!1})}}),{addNotification:xE,clearNotification:wE}=bE.actions,SE=e=>e.notification,CE=bE.reducer;let AE=function(e){return e[e.General=0]="General",e[e.AttributeAssignment=1]="AttributeAssignment",e}({});const kE={open:!1,type:AE.General},TE=Op({name:"modal",initialState:kE,reducers:{open:(e,t)=>({...kE,...t.payload,open:!0}),close:e=>({...e,open:!1})}}),{open:jE,close:EE}=TE.actions,PE=e=>e.modal,NE=TE.reducer,DE=Op({name:"tabGroup",initialState:{currentTab:""},reducers:{updateCurrentTab:(e,t)=>({...e,currentTab:t.payload}),resetTab:e=>({...e,currentTab:""})}}),{updateCurrentTab:ME,resetTab:_E}=DE.actions,IE=e=>e.tabGroup,RE=DE.reducer,OE=Op({name:"abacUser",initialState:{currentUserId:""},reducers:{updateAbacUser:(e,t)=>({...e,currentUserId:t.payload}),resetAbacUser:e=>({...e,currentUserId:""})}}),{updateAbacUser:LE,resetAbacUser:FE}=OE.actions,BE=e=>e.abacUser,zE=OE.reducer,VE={adminClient:{}},WE=Op({name:"adminState",initialState:VE,reducers:{updateAdminState:(e,t)=>({...VE,...t.payload,adminClient:t.payload.adminClient}),resetAdminState:e=>({...e,adminClientId:{}})}}),{updateAdminState:UE,resetAdminState:$E}=WE.actions,HE=e=>e.adminState,qE=WE.reducer;let GE=function(e){return e[e.Category=1]="Category",e[e.Family=2]="Family",e[e.Industry=3]="Industry",e}({});const KE=Op({name:"dashboardSettings",initialState:{value:{groupType:GE.Category}},reducers:{updateSettings:(e,t)=>{e.value=t.payload}}}),{updateSettings:YE}=KE.actions,XE=e=>e.dashboardSettings.value,ZE=KE.reducer;var JE=n(8901),QE="persist:",eP="persist/FLUSH",tP="persist/REHYDRATE",nP="persist/PAUSE",rP="persist/PERSIST",aP="persist/PURGE",iP="persist/REGISTER";function oP(e){return oP="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},oP(e)}function sP(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 lP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cP(e,t,n,r){r.debug;var a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sP(n,!0).forEach((function(t){lP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sP(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n);return e&&"object"===oP(e)&&Object.keys(e).forEach((function(r){"_persist"!==r&&t[r]===n[r]&&(a[r]=e[r])})),a}function uP(e){var t,n=e.blacklist||null,r=e.whitelist||null,a=e.transforms||[],i=e.throttle||0,o="".concat(void 0!==e.keyPrefix?e.keyPrefix:QE).concat(e.key),s=e.storage;t=!1===e.serialize?function(e){return e}:"function"===typeof e.serialize?e.serialize:dP;var l=e.writeFailHandler||null,c={},u={},d=[],p=null,h=null;function f(){if(0===d.length)return p&&clearInterval(p),void(p=null);var e=d.shift(),n=a.reduce((function(t,n){return n.in(t,e,c)}),c[e]);if(void 0!==n)try{u[e]=t(n)}catch(r){console.error("redux-persist/createPersistoid: error serializing state",r)}else delete u[e];0===d.length&&(Object.keys(u).forEach((function(e){void 0===c[e]&&delete u[e]})),h=s.setItem(o,t(u)).catch(g))}function m(e){return(!r||-1!==r.indexOf(e)||"_persist"===e)&&(!n||-1===n.indexOf(e))}function g(e){l&&l(e)}return{update:function(e){Object.keys(e).forEach((function(t){m(t)&&c[t]!==e[t]&&-1===d.indexOf(t)&&d.push(t)})),Object.keys(c).forEach((function(t){void 0===e[t]&&m(t)&&-1===d.indexOf(t)&&void 0!==c[t]&&d.push(t)})),null===p&&(p=setInterval(f,i)),c=e},flush:function(){for(;0!==d.length;)f();return h||Promise.resolve()}}}function dP(e){return JSON.stringify(e)}function pP(e){var t,n=e.transforms||[],r="".concat(void 0!==e.keyPrefix?e.keyPrefix:QE).concat(e.key),a=e.storage;e.debug;return t=!1===e.deserialize?function(e){return e}:"function"===typeof e.deserialize?e.deserialize:hP,a.getItem(r).then((function(e){if(e)try{var r={},a=t(e);return Object.keys(a).forEach((function(e){r[e]=n.reduceRight((function(t,n){return n.out(t,e,a)}),t(a[e]))})),r}catch(i){throw i}}))}function hP(e){return JSON.parse(e)}function fP(e){0}function mP(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 gP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mP(n,!0).forEach((function(t){vP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mP(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yP(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function bP(e,t){var n=void 0!==e.version?e.version:-1,r=(e.debug,void 0===e.stateReconciler?cP:e.stateReconciler),a=e.getStoredState||pP,i=void 0!==e.timeout?e.timeout:5e3,o=null,s=!1,l=!0,c=function(e){return e._persist.rehydrated&&o&&!l&&o.update(e),e};return function(u,d){var p=u||{},h=p._persist,f=yP(p,["_persist"]);if(d.type===rP){var m=!1,g=function(t,n){m||(d.rehydrate(e.key,t,n),m=!0)};if(i&&setTimeout((function(){!m&&g(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))}),i),l=!1,o||(o=uP(e)),h)return gP({},t(f,d),{_persist:h});if("function"!==typeof d.rehydrate||"function"!==typeof d.register)throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return d.register(e.key),a(e).then((function(t){(e.migrate||function(e,t){return Promise.resolve(e)})(t,n).then((function(e){g(e)}),(function(e){g(void 0,e)}))}),(function(e){g(void 0,e)})),gP({},t(f,d),{_persist:{version:n,rehydrated:!1}})}if(d.type===aP)return s=!0,d.result(function(e){var t=e.storage,n="".concat(void 0!==e.keyPrefix?e.keyPrefix:QE).concat(e.key);return t.removeItem(n,fP)}(e)),gP({},t(f,d),{_persist:h});if(d.type===eP)return d.result(o&&o.flush()),gP({},t(f,d),{_persist:h});if(d.type===nP)l=!0;else if(d.type===tP){if(s)return gP({},f,{_persist:gP({},h,{rehydrated:!0})});if(d.key===e.key){var v=t(f,d),y=d.payload,b=gP({},!1!==r&&void 0!==y?r(y,u,v,e):v,{_persist:gP({},h,{rehydrated:!0})});return c(b)}}if(!h)return t(u,d);var x=t(f,d);return x===f?u:c(gP({},x,{_persist:h}))}}function xP(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function wP(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 SP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wP(n,!0).forEach((function(t){CP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wP(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function CP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var AP={registry:[],bootstrapped:!1},kP=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:AP,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case iP:return SP({},e,{registry:[].concat(xP(e.registry),[t.key])});case tP:var n=e.registry.indexOf(t.key),r=xP(e.registry);return r.splice(n,1),SP({},e,{registry:r,bootstrapped:0===r.length});default:return e}};const TP={key:"userPermissions",storage:JE.A},jP={key:"client",storage:JE.A},EP={key:"careersClient",storage:JE.A},PP={key:"abacUser",storage:JE.A},NP={key:"adminState",storage:JE.A},DP={key:"dashboardSettings",storage:JE.A},MP=bP(TP,th),_P=function(e){var t,n=Ip(),r=e||{},a=r.reducer,i=void 0===a?void 0:a,o=r.middleware,s=void 0===o?n():o,l=r.devTools,c=void 0===l||l,u=r.preloadedState,d=void 0===u?void 0:u,p=r.enhancers,h=void 0===p?void 0:p;if("function"===typeof i)t=i;else{if(!Pp(i))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=sp(i)}var f=s;"function"===typeof f&&(f=f(n));var m=dp.apply(void 0,f),g=up;c&&(g=Ep(kp({trace:!1},"object"===typeof c&&c)));var v=new Mp(m),y=v;return Array.isArray(h)?y=vp([m],h):"function"===typeof h&&(y=h(v)),op(t,d,g.apply(void 0,y))}({reducer:{selectedClient:bP(jP,Xp),selectedCareersClient:bP(EP,GC),userPermissions:MP,userInformation:JC,allClients:WC,reportDate:vE,notification:CE,modal:NE,tabGroup:RE,abacUser:bP(PP,zE),adminState:bP(NP,qE),dashboardSettings:bP(DP,ZE)},middleware:[fp]}),IP=function(e,t,n){var r=n||!1,a=op(kP,AP,t&&t.enhancer?t.enhancer:void 0),i=function(e){a.dispatch({type:iP,key:e})},o=function(t,n,i){var o={type:tP,payload:n,err:i,key:t};e.dispatch(o),a.dispatch(o),r&&s.getState().bootstrapped&&(r(),r=!1)},s=SP({},a,{purge:function(){var t=[];return e.dispatch({type:aP,result:function(e){t.push(e)}}),Promise.all(t)},flush:function(){var t=[];return e.dispatch({type:eP,result:function(e){t.push(e)}}),Promise.all(t)},pause:function(){e.dispatch({type:nP})},persist:function(){e.dispatch({type:rP,register:i,rehydrate:o})}});return t&&t.manualPersist||s.persist(),s}(_P),RP=Oc,OP=()=>{const e=Mc(),t=Oc(SE),n=t=>{e(xE(t))};return{currentNotification:t,clearNotification:()=>{e(wE())},displayNotification:n,displayError:e=>{n({message:e,type:"error"})},displaySuccess:e=>{n({message:e,type:"success"})},displayWarning:e=>{n({message:e,type:"warning"})},displayInfo:e=>{n({message:e})}}};function LP(){return Gj(["abacApps"],(async()=>(await nE(iE+"GetAllApps")).data.map(WP)),{refetchOnWindowFocus:!1})}function FP(e){return Gj(["abacAttributesForApp",{id:e}],(async()=>(await nE(sE+"GetAllAttributesForApp/"+e)).data.map(WP)),{enabled:!!e,refetchOnWindowFocus:!1})}const BP=e=>function(e,t){return Gj(["abacAllUserClientAttributes",{userId:e}],(async()=>(await nE(cE+"GetAllUserClientAttributes/"+e)).data.map(WP)),{select:t,refetchOnWindowFocus:!1})}(e,(e=>e.filter(((t,n)=>e.findIndex((e=>e.baseClientId===t.baseClientId))===n)).map((e=>e.baseClientId))));function zP(e){const t=Wj();return Qj((e=>async function(e){let t=OC.REACT_APP_ABAC_API;const n=tl().delete(`${t}/api${e}`).catch((e=>{throw new Error(e.message)})).then((e=>e));return await n}(cE+"DeleteUserClientAttribute/"+e)),{onSuccess:()=>{t.invalidateQueries({queryKey:["abacUserClientAttributesByClient",{userId:e}]}),t.invalidateQueries({queryKey:["abacAllUserClientAttributes",{userId:e}]})},mutationKey:["deleteUserClientAttribute"]})}function VP(e){return Gj(["abacUser",{id:e}],(async()=>WP((await nE(uE+"GetUser/"+e)).data)))}function WP(e){return{...e,createdDate:new Date(e.createdDate),updatedDate:new Date(e.updatedDate)}}function UP(e){let{children:t,featureName:n,fallback:r=null}=e;const{enableAbacFeatures:a}=QT(),{data:i}=function(){const{email:e}=RP(ZC),{id:t}=RP(Yp);return Gj(["userFeatures",{clientId:t,email:e}],(async()=>(await nE(`/Permission/GetUserFeatures/Amp/${t}/${e}`)).data),{enabled:!!t&&!!e,staleTime:3e5})}(),o=null===i||void 0===i?void 0:i.some((e=>e.includes(n)));return a&&o?(0,Tl.jsx)(Tl.Fragment,{children:t}):(0,Tl.jsx)(Tl.Fragment,{children:r})}function $P(){return(0,Tl.jsx)(UP,{featureName:tE,fallback:(0,Tl.jsx)(qP,{}),children:(0,Tl.jsx)(HP,{})})}function HP(){return(0,Tl.jsx)(FS,{title:"ABAC Auth Enabled",children:(0,Tl.jsx)(QC,{color:"primary",fontSize:"small"})})}function qP(){return(0,Tl.jsx)(FS,{title:"ABAC Auth Disabled",children:(0,Tl.jsx)(eA,{color:"warning",fontSize:"small"})})}const GP=function(){const t=cb((e=>({root:{position:"absolute",top:"2vh",right:"2%",zIndex:"5"},menuContainer:{position:"absolute",top:"0px",right:"0",width:280,display:"flex",flexDirection:"column",padding:2,backgroundColor:"transparent",overflow:"hidden",transition:"height 500ms ease",[e.breakpoints.down("md")]:{width:200,top:-18,right:-6}},subContainer:{position:"absolute",top:"70px",right:"0",width:280,display:"flex",flexDirection:"column",padding:2,backgroundColor:"transparent",overflow:"hidden",transition:"height 500ms ease",[e.breakpoints.down("md")]:{width:200,top:50,right:-6}},paperStyle:{[e.breakpoints.down("md")]:{overflowY:"scroll"},width:"100%",overflow:"visible",borderRadius:0},paperStyleScroll:{width:"100%",overflowY:"scroll",minHeight:"200px",maxHeight:"500px",borderRadius:0},mainText:{fontSize:"14px",display:"flex",flexDirection:"row",alignItems:"center",height:"70px"},subMainText:{display:"flex",flexDirection:"column",paddingLeft:"20px"},boldName:{fontWeight:"bold",backgroundColor:"rgba(0,0,0, .1)",minHeight:"50px"},profileButton:{display:"flex",alignItems:"center",textAlign:"center",transition:".2s","&:hover":{background:"rgba(0,0,0, .1)"}},icon:{minWidth:"30px"},searchBox:{width:"100%",minHeight:"50px",paddingLeft:"5px",backgroundColor:"rgba(0,0,0,.1)","&:hover":{backgroundColor:"rgba(0,0,0,.2)"}},searchBoxContainer:{display:"flex",justifyContent:"center"},menuItem:{minHeight:"50px"}}))),n=t(),r=Mc(),a=Oc(ZC),i=Oc(VC),o=Oc(Yp),[s,l]=(0,e.useState)(null),c=Boolean(s),[u,d]=(0,e.useState)("main"),p=(0,e.useRef)(null),h=a.nickname,{logout:f}=Qs(),[m,g]=(0,e.useState)("");return(0,e.useEffect)((()=>{function e(e){p.current&&!p.current.contains(e.target)&&(d("main"),g(""),l(null))}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[p]),(0,Tl.jsxs)("div",{className:n.root,children:[(0,Tl.jsx)(Xm,{className:n.menuContainer,ref:p,children:(0,Tl.jsx)(Bm,{className:n.paperStyle,children:(0,Tl.jsxs)(lx,{className:n.mainText,onClick:e=>{l(e.currentTarget)},children:[(0,Tl.jsx)(nC,{style:{width:40,height:40,backgroundColor:RC(h)},children:h.charAt(0)}),(0,Tl.jsxs)("div",{className:n.subMainText,children:[(0,Tl.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"0.5ch"},children:[h," ",(0,Tl.jsx)($P,{})]}),(0,Tl.jsx)("span",{style:{fontWeight:"bold"},children:o.clientName})]})]})})}),c?(0,Tl.jsxs)(Xm,{className:n.subContainer,ref:p,children:[(0,Tl.jsx)(IC,{in:"main"===u,timeout:500,classNames:"menu-primary",unmountOnExit:!0,children:(0,Tl.jsxs)(Bm,{className:n.paperStyle,children:[(0,Tl.jsx)(sC,{}),(0,Tl.jsx)(ch,{to:"/profile",style:{all:"unset"},children:(0,Tl.jsxs)(lx,{className:n.menuItem,children:[(0,Tl.jsx)(Px,{size:"large",className:n.icon,children:(0,Tl.jsx)(Nm,{fontSize:"small"})}),"Profile"]})}),i.length>1?(0,Tl.jsxs)(lx,{onClick:()=>d("clients"),className:n.menuItem,children:[(0,Tl.jsx)(Px,{size:"large",className:n.icon,children:(0,Tl.jsx)(VS,{fontSize:"small"})}),"Switch Tenant"]}):null,(0,Tl.jsx)(sC,{style:{marginBottom:"10px"}}),(0,Tl.jsxs)(lx,{onClick:()=>f({returnTo:window.location.origin}),className:n.menuItem,children:[(0,Tl.jsx)(Px,{size:"large",className:n.icon,children:(0,Tl.jsx)(WS,{fontSize:"small"})}),"Logout"]})]})}),(0,Tl.jsx)(IC,{in:"clients"===u,timeout:500,classNames:"menu-secondary",unmountOnExit:!0,children:(0,Tl.jsxs)(Bm,{className:n.paperStyleScroll,children:[(0,Tl.jsx)(sC,{}),(0,Tl.jsx)(lx,{onClick:()=>d("main"),children:(0,Tl.jsx)(Px,{size:"large",children:(0,Tl.jsx)(US,{fontSize:"small"})})}),(0,Tl.jsx)(sC,{}),(0,Tl.jsx)("div",{className:n.searchBoxContainer,children:(0,Tl.jsx)(NC,{className:n.searchBox,placeholder:"Search Tenant...",variant:"standard",fullWidth:!0,value:m,onChange:e=>g(e.target.value),endAdornment:(0,Tl.jsx)($S,{style:{opacity:".5"}})})}),(0,Tl.jsx)(sC,{}),i.filter((e=>e.clientName.toUpperCase().includes(m.toUpperCase())||""===m)).map(((e,t)=>(0,Tl.jsx)(lx,{onClick:()=>(e=>{tl().defaults.headers.common.baseClientId=e.id,e.hasCareers?LC().then((t=>{tl().defaults.headers.common.careersClientId=t.id,r(Gp(e)),r($C(t))})):(r(Gp(e)),r(HC()))})(e),className:o.id===e.id?n.boldName:n.menuItem,children:e.clientName},t)))]})})]}):null]})},KP=1,YP=2,XP=4,ZP=8,JP=16,QP=32,eN=64,tN=128,nN=512,rN=1024,aN=2048,iN=16384,oN=32768,sN=65536,lN={UserManagement:["/users","/users/usersdetailed"],ClientConfiguration:["/display","/emailapplylink","/trackingpixels","/trackingpixels/trackingpixeldetailed","/externalaccounts","/mastercache","/banner","/ancillary","/prefilteredlinks"],Search:["/forms","/eventsearch","/mapconfiguration","/customradius","/results"],Jobs:["/locations","/locations/locationdetailed","/featuredgroups","/featuredgroups/featuredgroupsdetailed","/featuredjobs","/jobgroups","/jobgroups/jobgroupdetailed"],Events:["/featuredevents","/eventvenues","/eventvenues/eventvenuedetailed","/eventsponsors","/eventsponsors/eventsponsordetailed","/eventtypes","/events","/events/eventdetailed"],Reports:["/jobalertsreport","/marketreport"],Profile:["/profile"]},cN=cb((e=>({root:{display:"flex",justifyContent:"center","& .MuiList-root":{overflowY:"auto",overflowX:"visible"}},paper:{background:e.palette.primary.main,overflowX:"hidden",zIndex:10,height:"100%",alignItems:"center",boxShadow:"0px 0px 5px darkgrey",display:"block",flexDirection:"row"},paperHidden:{[e.breakpoints.down("md")]:{display:"none"},background:e.palette.primary.main,overflowX:"hidden",zIndex:10,height:"100vh",alignItems:"center",boxShadow:"0px 0px 5px darkgrey",display:"block"},exitButton:{[e.breakpoints.down("md")]:{display:"block",padding:"20px",justifyContent:"center"},display:"none"},bottomButtons:{position:"absolute",bottom:"0px"},navBarArrow:{[e.breakpoints.down("md")]:{display:"none"},position:"absolute",top:"50vh",zIndex:"20",left:"75px"},subMenuArrow:{[e.breakpoints.down("md")]:{display:"none"},position:"absolute",top:"50vh",right:"-20px"},arrowButton:{"&:hover":{backgroundColor:"white",color:"#81c784"},transition:"0.5s",height:"40px",width:"40px",background:"white",boxShadow:"0px 0px 5px darkgrey"},navHamburger:{[e.breakpoints.down("md")]:{position:"absolute",left:"20px",top:"20px",zIndex:"10",display:"block"},display:"none"},itemIcon:{minWidth:"56px",color:"white",justifyContent:"center"}})));function uN(){const t=cN(),n=zu(),[r,a]=(0,e.useState)(0),[i,o]=(0,e.useState)(!0),[s,l]=(0,e.useState)(!1),[c,u]=(0,e.useState)(!1),{enableAbacApplicationManagement:d}=QT();function p(e){e!==r&&(l(!1),a(e))}function h(e){a(e),e!==r&&s||l(!s)}function f(){o(!i),i&&s&&l(!1)}return(0,e.useEffect)((()=>{u(n.pathname.includes("/admin"))}),[n.pathname]),(0,Tl.jsxs)(Tl.Fragment,{children:[c?(0,Tl.jsx)(xm,{sx:{width:"80px",height:"80px",position:"absolute",top:"2.25vh",right:"3%",zIndex:"5",color:"NAS.blue"}}):(0,Tl.jsx)(GP,{}),(0,Tl.jsxs)("div",{className:t.root,children:[(0,Tl.jsxs)(Bm,{square:!0,sx:i?{backgroundColor:c?"NAS.blue":"primary.main",overflowX:"hidden",zIndex:10,height:"100vh",alignItems:"center",boxShadow:"0px 0px 5px darkgrey",display:"block",flexDirection:"row"}:{display:{xs:"none",sm:"none",md:"block"},backgroundColor:c?"NAS.blue":"primary.main",overflowX:"hidden",zIndex:10,height:"100vh",alignItems:"center",boxShadow:"0px 0px 5px darkgrey"},children:[i?(0,Tl.jsx)(Xm,{sx:{display:{sm:"block",md:"none"}},children:(0,Tl.jsx)(zS,{icon:(0,Tl.jsx)(wm,{}),route:null,routeType:pl,clickEvent:()=>f(),selectedNavBarIndex:r,setSelectedNavBarIndex:a,routes:[]})}):null,(0,Tl.jsx)(zS,{icon:(0,Tl.jsx)(Sm,{}),clickEvent:()=>p(0),menuIndex:xx.Dashboard,selectedNavBarIndex:r,setSelectedNavBarIndex:a,tooltipText:"Dashboard",route:"/",routeType:pl,routes:[]}),(0,Tl.jsx)(zS,{icon:(0,Tl.jsx)(Cm,{}),clickEvent:()=>h(xx.UserManagement),menuIndex:xx.UserManagement,selectedNavBarIndex:r,setSelectedNavBarIndex:a,tooltipText:"User Management",route:null,routeType:yl,requiredPermissions:XP,routes:lN.UserManagement}),(0,Tl.jsx)(zS,{icon:(0,Tl.jsx)(Am,{}),clickEvent:()=>h(xx.ClientConfiguration),menuIndex:xx.ClientConfiguration,selectedNavBarIndex:r,setSelectedNavBarIndex:a,tooltipText:"Client Configuration",route:null,routeType:vl,requiredPermissions:[ZP,rN,XP],routes:lN.ClientConfiguration}),(0,Tl.jsx)(zS,{icon:(0,Tl.jsx)(km,{}),clickEvent:()=>h(xx.Search),menuIndex:xx.Search,selectedNavBarIndex:r,setSelectedNavBarIndex:a,tooltipText:"Search",route:null,routeType:vl,requiredPermissions:[ZP],routes:lN.Search}),(0,Tl.jsx)(zS,{icon:(0,Tl.jsx)(Tm,{}),clickEvent:()=>h(xx.Jobs),menuIndex:xx.Jobs,selectedNavBarIndex:r,setSelectedNavBarIndex:a,tooltipText:"Jobs",route:null,routeType:vl,requiredPermissions:[ZP,nN,iN],routes:lN.Jobs}),(0,Tl.jsx)(zS,{icon:(0,Tl.jsx)(jm,{}),clickEvent:()=>h(xx.Events),menuIndex:xx.Events,selectedNavBarIndex:r,setSelectedNavBarIndex:a,tooltipText:"Events",route:null,routeType:vl,requiredPermissions:[JP,eN,tN,QP],routes:lN.Events}),(0,Tl.jsx)(zS,{icon:(0,Tl.jsx)(Em,{}),clickEvent:()=>h(xx.Reports),menuIndex:xx.Reports,selectedNavBarIndex:r,setSelectedNavBarIndex:a,tooltipText:"Reports",route:null,routeType:vl,requiredPermissions:[aN],routes:lN.Reports}),(0,Tl.jsxs)("div",{className:t.bottomButtons,children:[d&&(0,Tl.jsx)(zS,{icon:(0,Tl.jsx)(xm,{}),clickEvent:()=>h(xx.CrossClient),menuIndex:xx.CrossClient,selectedNavBarIndex:r,setSelectedNavBarIndex:a,tooltipText:"Cross Client Management",route:null,routeType:fl,requiredPermissions:il,routes:[]}),(0,Tl.jsx)(zS,{icon:(0,Tl.jsx)(Pm,{}),clickEvent:()=>h(xx.MoreApps),menuIndex:xx.MoreApps,selectedNavBarIndex:r,setSelectedNavBarIndex:a,tooltipText:"More Apps",route:null,routeType:pl,routes:[]}),(0,Tl.jsx)(zS,{icon:(0,Tl.jsx)(Nm,{}),clickEvent:()=>p(xx.Profile),menuIndex:xx.Profile,selectedNavBarIndex:r,setSelectedNavBarIndex:a,tooltipText:"Profile",route:"/profile",routeType:pl,routes:lN.Profile})]})]}),(0,Tl.jsxs)(Xb,{open:s,selected:r,index:xx.UserManagement,routeType:yl,requiredPermissions:XP,children:[(0,Tl.jsx)(kx,{title:"User Management",navMenuSelection:r,menuCategory:xx.UserManagement,route:"/users",routeType:yl,requiredPermissions:XP}),d&&(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(kx,{title:"ABAC Management",navMenuSelection:r,menuCategory:xx.UserManagement,route:"/abac",routeType:fl,requiredPermissions:il}),(0,Tl.jsx)(kx,{title:"ABAC Users",navMenuSelection:r,menuCategory:xx.UserManagement,route:"/abacUsers",routeType:fl,requiredPermissions:il})]})]}),(0,Tl.jsxs)(Xb,{open:s,selected:r,index:xx.ClientConfiguration,routeType:vl,requiredPermissions:[ZP,rN,XP],children:[(0,Tl.jsx)(kx,{title:"Display",navMenuSelection:r,menuCategory:xx.ClientConfiguration,route:"/display",routeType:gl,requiredPermissions:ZP}),(0,Tl.jsx)(kx,{title:"Email Apply Link",navMenuSelection:r,menuCategory:xx.ClientConfiguration,route:"/emailapplylink",routeType:gl,requiredPermissions:ZP}),(0,Tl.jsx)(kx,{title:"Tracking Pixels",navMenuSelection:r,menuCategory:xx.ClientConfiguration,route:"/trackingpixels",routeType:fl,requiredPermissions:il}),(0,Tl.jsx)(kx,{title:"External Accounts",navMenuSelection:r,menuCategory:xx.ClientConfiguration,route:"/externalaccounts",routeType:fl,requiredPermissions:il}),(0,Tl.jsx)(kx,{title:"Master Cache",navMenuSelection:r,menuCategory:xx.ClientConfiguration,route:"/mastercache",routeType:gl,requiredPermissions:ZP}),(0,Tl.jsx)(kx,{title:"Banner",navMenuSelection:r,menuCategory:xx.ClientConfiguration,route:"/banner",routeType:fl,requiredPermissions:il}),(0,Tl.jsx)(kx,{title:"Job Details Ancillary",navMenuSelection:r,menuCategory:xx.ClientConfiguration,route:"/ancillary",routeType:gl,requiredPermissions:ZP}),(0,Tl.jsx)(kx,{title:"Prefiltered Links",navMenuSelection:r,menuCategory:xx.ClientConfiguration,route:"/prefilteredlinks",routeType:gl,requiredPermissions:rN}),(0,Tl.jsx)(kx,{icon:(0,Tl.jsx)(Am,{}),title:"Users",navMenuSelection:r,menuCategory:xx.Administration,route:"/users",routeType:gl,requiredPermissions:XP})]}),(0,Tl.jsxs)(Xb,{open:s,selected:r,index:xx.Search,routeType:vl,requiredPermissions:[ZP],children:[(0,Tl.jsx)(kx,{title:"Forms",navMenuSelection:r,menuCategory:xx.Search,route:"/forms",routeType:gl,requiredPermissions:ZP}),(0,Tl.jsx)(kx,{title:"Event Search",navMenuSelection:r,menuCategory:xx.Search,route:"/eventsearch",routeType:gl,requiredPermissions:ZP}),(0,Tl.jsx)(kx,{title:"Map Configuration",navMenuSelection:r,menuCategory:xx.Search,route:"/mapconfiguration",routeType:gl,requiredPermissions:ZP}),(0,Tl.jsx)(kx,{title:"Custom Radius",navMenuSelection:r,menuCategory:xx.Search,route:"/customradius",routeType:gl,requiredPermissions:ZP}),(0,Tl.jsx)(kx,{title:"Results",navMenuSelection:r,menuCategory:xx.Search,route:"/results",routeType:gl,requiredPermissions:ZP})]}),(0,Tl.jsxs)(Xb,{open:s,selected:r,index:xx.Jobs,routeType:vl,requiredPermissions:[ZP,nN,iN],children:[(0,Tl.jsx)(kx,{title:"Locations",navMenuSelection:r,menuCategory:xx.Jobs,route:"/locations",routeType:gl,requiredPermissions:iN}),(0,Tl.jsx)(kx,{title:"Featured Groups",navMenuSelection:r,menuCategory:xx.Jobs,route:"/featuredgroups",routeType:gl,requiredPermissions:nN}),(0,Tl.jsx)(kx,{title:"Featured Jobs",navMenuSelection:r,menuCategory:xx.Jobs,route:"/featuredjobs",routeType:gl,requiredPermissions:nN}),(0,Tl.jsx)(kx,{title:"Job Groups",navMenuSelection:r,menuCategory:xx.Jobs,route:"/jobgroups",routeType:gl,requiredPermissions:ZP})]}),(0,Tl.jsxs)(Xb,{open:s,selected:r,index:xx.Events,routeType:vl,requiredPermissions:[JP,eN,tN,QP],children:[(0,Tl.jsx)(kx,{title:"Featured Events",navMenuSelection:r,menuCategory:xx.Events,route:"/featuredevents",routeType:gl,requiredPermissions:JP}),(0,Tl.jsx)(kx,{title:"Event Venues",navMenuSelection:r,menuCategory:xx.Events,route:"/eventvenues",routeType:gl,requiredPermissions:eN}),(0,Tl.jsx)(kx,{title:"Event Sponsors",navMenuSelection:r,menuCategory:xx.Events,route:"/eventsponsors",routeType:gl,requiredPermissions:tN}),(0,Tl.jsx)(kx,{title:"Event Types",navMenuSelection:r,menuCategory:xx.Events,route:"/eventtypes",routeType:gl,requiredPermissions:QP}),(0,Tl.jsx)(kx,{title:"Events",navMenuSelection:r,menuCategory:xx.Events,route:"/events",routeType:gl,requiredPermissions:JP})]}),(0,Tl.jsxs)(Xb,{open:s,selected:r,index:xx.Reports,routeType:vl,requiredPermissions:[aN],children:[(0,Tl.jsx)(kx,{title:"Job Alerts Report",navMenuSelection:r,menuCategory:xx.Reports,route:"/jobalertsreport",routeType:gl,requiredPermissions:aN}),(0,Tl.jsx)(kx,{title:"Marketing Report",navMenuSelection:r,menuCategory:xx.Reports,route:"/marketreport",routeType:gl,requiredPermissions:aN})]}),d&&(0,Tl.jsx)(Xb,{open:s,selected:r,index:xx.CrossClient,routeType:hl,requiredPermissions:il,children:(0,Tl.jsx)(kx,{title:"User Management",navMenuSelection:r,menuCategory:xx.CrossClient,route:"/adminUserManagement",routeType:hl,requiredPermissions:il})}),(0,Tl.jsxs)(Xb,{open:s,selected:r,index:xx.MoreApps,routeType:pl,children:[(0,Tl.jsx)(kx,{title:"Activate CRM",navMenuSelection:r,menuCategory:xx.MoreApps,route:OC.REACT_APP_ACTIVATE_CRM,routeType:bl}),(0,Tl.jsx)(kx,{title:"NAS Management",navMenuSelection:r,menuCategory:xx.MoreApps,route:OC.REACT_APP_NAS_PORTAL,routeType:fl,requiredPermissions:il}),(0,Tl.jsx)(kx,{title:"Connect",navMenuSelection:r,menuCategory:xx.MoreApps,route:OC.REACT_APP_CONNECT,routeType:pl}),(0,Tl.jsx)(kx,{title:"Talentegy Analytics",navMenuSelection:r,menuCategory:xx.MoreApps,route:OC.REACT_APP_TALENTEGY,routeType:pl})]}),(0,Tl.jsx)("div",{className:t.navBarArrow,children:0!==r&&r!==xx.AccountSettings?(0,Tl.jsx)(hm,{size:"large",className:t.arrowButton,onClick:()=>h(r),children:s?(0,Tl.jsx)(Mm,{}):(0,Tl.jsx)(Dm,{})}):null}),i?null:(0,Tl.jsx)("div",{className:t.navHamburger,children:(0,Tl.jsx)(hm,{size:"large",className:t.arrowButton,onClick:()=>f(),children:(0,Tl.jsx)(_m,{})})})]})]})}var dN=n(9751);const pN=e.createContext();function hN(e){return Ff("MuiGrid",e)}const fN=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],mN=Bf("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...fN.map((e=>`grid-xs-${e}`)),...fN.map((e=>`grid-sm-${e}`)),...fN.map((e=>`grid-md-${e}`)),...fN.map((e=>`grid-lg-${e}`)),...fN.map((e=>`grid-xl-${e}`))]),gN=mN,vN=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function yN(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function bN(e){let{breakpoints:t,values:n}=e,r="";Object.keys(n).forEach((e=>{""===r&&0!==n[e]&&(r=e)}));const a=Object.keys(t).sort(((e,n)=>t[e]-t[n]));return a.slice(0,a.indexOf(r))}const xN=nf("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:a,item:i,spacing:o,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach((t=>{const a=e[t];Number(a)>0&&r.push(n[`spacing-${t}-${String(a)}`])})),r}(o,c,t));const d=[];return c.forEach((e=>{const r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])})),[t.root,r&&t.container,i&&t.item,l&&t.zeroMinWidth,...u,"row"!==a&&t[`direction-xs-${String(a)}`],"wrap"!==s&&t[`wrap-xs-${String(s)}`],...d]}})((e=>{let{ownerState:t}=e;return(0,wl.A)({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap})}),(function(e){let{theme:t,ownerState:n}=e;const r=(0,dN.kW)({values:n.direction,breakpoints:t.breakpoints.values});return(0,dN.NI)({theme:t},r,(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${gN.item}`]={maxWidth:"none"}),t}))}),(function(e){let{theme:t,ownerState:n}=e;const{container:r,rowSpacing:a}=n;let i={};if(r&&0!==a){const e=(0,dN.kW)({values:a,breakpoints:t.breakpoints.values});let n;"object"===typeof e&&(n=bN({breakpoints:t.breakpoints.values,values:e})),i=(0,dN.NI)({theme:t},e,((e,r)=>{var a;const i=t.spacing(e);return"0px"!==i?{marginTop:`-${yN(i)}`,[`& > .${gN.item}`]:{paddingTop:yN(i)}}:null!=(a=n)&&a.includes(r)?{}:{marginTop:0,[`& > .${gN.item}`]:{paddingTop:0}}}))}return i}),(function(e){let{theme:t,ownerState:n}=e;const{container:r,columnSpacing:a}=n;let i={};if(r&&0!==a){const e=(0,dN.kW)({values:a,breakpoints:t.breakpoints.values});let n;"object"===typeof e&&(n=bN({breakpoints:t.breakpoints.values,values:e})),i=(0,dN.NI)({theme:t},e,((e,r)=>{var a;const i=t.spacing(e);return"0px"!==i?{width:`calc(100% + ${yN(i)})`,marginLeft:`-${yN(i)}`,[`& > .${gN.item}`]:{paddingLeft:yN(i)}}:null!=(a=n)&&a.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${gN.item}`]:{paddingLeft:0}}}))}return i}),(function(e){let t,{theme:n,ownerState:r}=e;return n.breakpoints.keys.reduce(((e,a)=>{let i={};if(r[a]&&(t=r[a]),!t)return e;if(!0===t)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const o=(0,dN.kW)({values:r.columns,breakpoints:n.breakpoints.values}),s="object"===typeof o?o[a]:o;if(void 0===s||null===s)return e;const l=Math.round(t/s*1e8)/1e6+"%";let c={};if(r.container&&r.item&&0!==r.columnSpacing){const e=n.spacing(r.columnSpacing);if("0px"!==e){const t=`calc(${l} + ${yN(e)})`;c={flexBasis:t,maxWidth:t}}}i=(0,wl.A)({flexBasis:l,flexGrow:0,maxWidth:l},c)}return 0===n.breakpoints.values[a]?Object.assign(e,i):e[n.breakpoints.up(a)]=i,e}),{})}));const wN=e=>{const{classes:t,container:n,direction:r,item:a,spacing:i,wrap:o,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}})),n}(i,l));const u=[];l.forEach((t=>{const n=e[t];n&&u.push(`grid-${t}-${String(n)}`)}));return mh({root:["root",n&&"container",a&&"item",s&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==o&&`wrap-xs-${String(o)}`,...u]},hN,t)},SN=e.forwardRef((function(t,n){const r=rf({props:t,name:"MuiGrid"}),{breakpoints:a}=Sb(),i=(0,Um.A)(r),{className:o,columns:s,columnSpacing:l,component:c="div",container:u=!1,direction:d="row",item:p=!1,rowSpacing:h,spacing:f=0,wrap:m="wrap",zeroMinWidth:g=!1}=i,v=(0,Sl.A)(i,vN),y=h||f,b=l||f,x=e.useContext(pN),w=u?s||12:x,S={},C=(0,wl.A)({},v);a.keys.forEach((e=>{null!=v[e]&&(S[e]=v[e],delete C[e])}));const A=(0,wl.A)({},i,{columns:w,container:u,direction:d,item:p,rowSpacing:y,columnSpacing:b,wrap:m,zeroMinWidth:g,spacing:f},S,{breakpoints:a.keys}),k=wN(A);return(0,Tl.jsx)(pN.Provider,{value:w,children:(0,Tl.jsx)(xN,(0,wl.A)({ownerState:A,className:fh(k.root,o),as:c,ref:n},C))})}));const CN=SN;const AN=function(t,n){var r,a;return e.isValidElement(t)&&-1!==n.indexOf(null!=(r=t.type.muiName)?r:null==(a=t.type)||null==(a=a._payload)||null==(a=a.value)?void 0:a.muiName)};function kN(e){return Ff("MuiFormControl",e)}Bf("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const TN=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],jN=nf("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,wl.A)({},t.root,t[`margin${sm(n.margin)}`],n.fullWidth&&t.fullWidth)}})((e=>{let{ownerState:t}=e;return(0,wl.A)({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%"})})),EN=e.forwardRef((function(t,n){const r=rf({props:t,name:"MuiFormControl"}),{children:a,className:i,color:o="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:p=!1,margin:h="none",required:f=!1,size:m="medium",variant:g="outlined"}=r,v=(0,Sl.A)(r,TN),y=(0,wl.A)({},r,{color:o,component:s,disabled:l,error:c,fullWidth:d,hiddenLabel:p,margin:h,required:f,size:m,variant:g}),b=(e=>{const{classes:t,margin:n,fullWidth:r}=e;return mh({root:["root","none"!==n&&`margin${sm(n)}`,r&&"fullWidth"]},kN,t)})(y),[x,w]=e.useState((()=>{let t=!1;return a&&e.Children.forEach(a,(e=>{if(!AN(e,["Input","Select"]))return;const n=AN(e,["Select"])?e.props.input:e;n&&n.props.startAdornment&&(t=!0)})),t})),[S,C]=e.useState((()=>{let t=!1;return a&&e.Children.forEach(a,(e=>{AN(e,["Input","Select"])&&(xC(e.props,!0)||xC(e.props.inputProps,!0))&&(t=!0)})),t})),[A,k]=e.useState(!1);l&&A&&k(!1);const T=void 0===u||l?A:u;let j;const E=e.useMemo((()=>({adornedStart:x,setAdornedStart:w,color:o,disabled:l,error:c,filled:S,focused:T,fullWidth:d,hiddenLabel:p,size:m,onBlur:()=>{k(!1)},onEmpty:()=>{C(!1)},onFilled:()=>{C(!0)},onFocus:()=>{k(!0)},registerEffect:j,required:f,variant:g})),[x,o,l,c,S,T,d,p,j,f,m,g]);return(0,Tl.jsx)(fC.Provider,{value:E,children:(0,Tl.jsx)(jN,(0,wl.A)({as:s,ownerState:y,className:fh(b.root,i),ref:n},v,{children:a}))})})),PN=EN;function NN(e){return Ff("MuiFormLabel",e)}const DN=Bf("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),MN=["children","className","color","component","disabled","error","filled","focused","required"],_N=nf("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,wl.A)({},t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled)}})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${DN.focused}`]:{color:(t.vars||t).palette[n.color].main},[`&.${DN.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${DN.error}`]:{color:(t.vars||t).palette.error.main}})})),IN=nf("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{[`&.${DN.error}`]:{color:(t.vars||t).palette.error.main}}})),RN=e.forwardRef((function(e,t){const n=rf({props:e,name:"MuiFormLabel"}),{children:r,className:a,component:i="label"}=n,o=(0,Sl.A)(n,MN),s=hC({props:n,muiFormControl:mC(),states:["color","required","focused","disabled","error","filled"]}),l=(0,wl.A)({},n,{color:s.color||"primary",component:i,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),c=(e=>{const{classes:t,color:n,focused:r,disabled:a,error:i,filled:o,required:s}=e;return mh({root:["root",`color${sm(n)}`,a&&"disabled",i&&"error",o&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]},NN,t)})(l);return(0,Tl.jsxs)(_N,(0,wl.A)({as:i,ownerState:l,className:fh(c.root,a),ref:t},o,{children:[r,s.required&&(0,Tl.jsxs)(IN,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:["\u2009","*"]})]}))})),ON=RN;function LN(e){return Ff("MuiInputLabel",e)}Bf("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const FN=["disableAnimation","margin","shrink","variant","className"],BN=nf(ON,{shouldForwardProp:e=>tf(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${DN.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({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,wl.A)({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,wl.A)({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,wl.A)({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% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))})),zN=e.forwardRef((function(e,t){const n=rf({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,shrink:a,className:i}=n,o=(0,Sl.A)(n,FN),s=mC();let l=a;"undefined"===typeof l&&s&&(l=s.filled||s.focused||s.adornedStart);const c=hC({props:n,muiFormControl:s,states:["size","variant","required","focused"]}),u=(0,wl.A)({},n,{disableAnimation:r,formControl:s,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),d=(e=>{const{classes:t,formControl:n,size:r,shrink:a,disableAnimation:i,variant:o,required:s}=e,l=mh({root:["root",n&&"formControl",!i&&"animated",a&&"shrink",r&&"normal"!==r&&`size${sm(r)}`,o],asterisk:[s&&"asterisk"]},LN,t);return(0,wl.A)({},t,l)})(u);return(0,Tl.jsx)(BN,(0,wl.A)({"data-shrink":l,ownerState:u,ref:t,className:fh(d.root,i)},o,{classes:d}))})),VN=zN,WN=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function UN(e){const t=[],n=[];return Array.from(e.querySelectorAll(WN)).forEach(((e,r)=>{const a=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==a&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===a?t.push(e):n.push({documentOrder:r,tabIndex:a,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function $N(){return!0}const HN=function(t){const{children:n,disableAutoFocus:r=!1,disableEnforceFocus:a=!1,disableRestoreFocus:i=!1,getTabbable:o=UN,isEnabled:s=$N,open:l}=t,c=e.useRef(!1),u=e.useRef(null),d=e.useRef(null),p=e.useRef(null),h=e.useRef(null),f=e.useRef(!1),m=e.useRef(null),g=of(n.ref,m),v=e.useRef(null);e.useEffect((()=>{l&&m.current&&(f.current=!r)}),[r,l]),e.useEffect((()=>{if(!l||!m.current)return;const e=kb(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{i||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}}),[l]),e.useEffect((()=>{if(!l||!m.current)return;const e=kb(m.current),t=t=>{v.current=t,!a&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(c.current=!0,d.current&&d.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!s()||c.current)return void(c.current=!1);if(t.contains(e.activeElement))return;if(a&&e.activeElement!==u.current&&e.activeElement!==d.current)return;if(e.activeElement!==h.current)h.current=null;else if(null!==h.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==d.current||(n=o(m.current)),n.length>0){var r,i;const e=Boolean((null==(r=v.current)?void 0:r.shiftKey)&&"Tab"===(null==(i=v.current)?void 0:i.key)),t=n[0],a=n[n.length-1];"string"!==typeof t&&"string"!==typeof a&&(e?a.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const r=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[r,a,i,s,l,o]);const y=e=>{null===p.current&&(p.current=e.relatedTarget),f.current=!0};return(0,Tl.jsxs)(e.Fragment,{children:[(0,Tl.jsx)("div",{tabIndex:l?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),e.cloneElement(n,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),f.current=!0,h.current=e.target;const t=n.props.onFocus;t&&t(e)}}),(0,Tl.jsx)("div",{tabIndex:l?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})},qN=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],GN={entering:{opacity:1},entered:{opacity:1}},KN=e.forwardRef((function(t,n){const r=Sb(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:o=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:h,onExited:f,onExiting:m,style:g,timeout:v=a,TransitionComponent:y=bb}=t,b=(0,Sl.A)(t,qN),x=e.useRef(null),w=sf(x,s.ref,n),S=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=S(p),A=S(((e,t)=>{Cb(e);const n=Ab({style:g,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),k=S(d),T=S(m),j=S((e=>{const t=Ab({style:g,timeout:v,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),h&&h(e)})),E=S(f);return(0,Tl.jsx)(y,(0,wl.A)({appear:o,in:c,nodeRef:x,onEnter:A,onEntered:k,onEntering:C,onExit:j,onExited:E,onExiting:T,addEndListener:e=>{i&&i(x.current,e)},timeout:v},b,{children:(t,n)=>e.cloneElement(s,(0,wl.A)({style:(0,wl.A)({opacity:0,visibility:"exited"!==t||c?void 0:"hidden"},GN[t],g,s.props.style),ref:w},n))}))})),YN=KN;function XN(e){return Ff("MuiBackdrop",e)}Bf("MuiBackdrop",["root","invisible"]);const ZN=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],JN=nf("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((e=>{let{ownerState:t}=e;return(0,wl.A)({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"})})),QN=e.forwardRef((function(e,t){var n,r,a;const i=rf({props:e,name:"MuiBackdrop"}),{children:o,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:h={},slots:f={},TransitionComponent:m=YN,transitionDuration:g}=i,v=(0,Sl.A)(i,ZN),y=(0,wl.A)({},i,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e;return mh({root:["root",n&&"invisible"]},XN,t)})(y),x=null!=(n=h.root)?n:u.root;return(0,Tl.jsx)(m,(0,wl.A)({in:p,timeout:g},v,{children:(0,Tl.jsx)(JN,(0,wl.A)({"aria-hidden":!0},x,{as:null!=(r=null!=(a=f.root)?a:c.Root)?r:l,className:fh(b.root,s,null==x?void 0:x.className),ownerState:(0,wl.A)({},y,null==x?void 0:x.ownerState),classes:b,ref:t,children:o}))}))})),eD=QN;function tD(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(((e,t)=>null==t?e:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];e.apply(this,r),t.apply(this,r)}),(()=>{}))}function nD(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function rD(e){return parseInt(Tb(e).getComputedStyle(e).paddingRight,10)||0}function aD(e,t,n,r,a){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const 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&&nD(e,a)}))}function iD(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function oD(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=kb(e);return t.body===e?Tb(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Bb(kb(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${rD(r)+e}px`;const t=kb(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${rD(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=kb(r).body;else{const t=r.parentElement,n=Tb(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((e=>{let{value:t,el:n,property:r}=e;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}const sD=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&nD(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);aD(t,e.mount,e.modalRef,r,!0);const a=iD(this.containers,(e=>e.container===t));return-1!==a?(this.containers[a].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=iD(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=oD(r,t))}remove(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.modals.indexOf(e);if(-1===n)return n;const r=iD(this.containers,(t=>-1!==t.modals.indexOf(e))),a=this.containers[r];if(a.modals.splice(a.modals.indexOf(e),1),this.modals.splice(n,1),0===a.modals.length)a.restore&&a.restore(),e.modalRef&&nD(e.modalRef,t),aD(a.container,e.mount,e.modalRef,a.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=a.modals[a.modals.length-1];e.modalRef&&nD(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};const lD=function(t){const{container:n,disableEscapeKeyDown:r=!1,disableScrollLock:a=!1,manager:i=sD,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:l,children:c,onClose:u,open:d,rootRef:p}=t,h=e.useRef({}),f=e.useRef(null),m=e.useRef(null),g=of(m,p),[v,y]=e.useState(!d),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let x=!0;"false"!==t["aria-hidden"]&&!1!==t["aria-hidden"]||(x=!1);const w=()=>(h.current.modalRef=m.current,h.current.mount=f.current,h.current),S=()=>{i.mount(w(),{disableScrollLock:a}),m.current&&(m.current.scrollTop=0)},C=cf((()=>{const e=function(e){return"function"===typeof e?e():e}(n)||kb(f.current).body;i.add(w(),e),m.current&&S()})),A=e.useCallback((()=>i.isTopModal(w())),[i]),k=cf((e=>{f.current=e,e&&(d&&A()?S():m.current&&nD(m.current,x))})),T=e.useCallback((()=>{i.remove(w(),x)}),[x,i]);e.useEffect((()=>()=>{T()}),[T]),e.useEffect((()=>{d?C():b&&o||T()}),[d,T,b,o,C]);const j=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&A()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},E=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=nS(t);delete n.onTransitionEnter,delete n.onTransitionExited;const r=(0,wl.A)({},n,e);return(0,wl.A)({role:"presentation"},r,{onKeyDown:j(r),ref:g})},getBackdropProps:function(){const e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,wl.A)({"aria-hidden":!0},e,{onClick:E(e),open:d})},getTransitionProps:()=>({onEnter:tD((()=>{y(!1),s&&s()}),null==c?void 0:c.props.onEnter),onExited:tD((()=>{y(!0),l&&l(),o&&T()}),null==c?void 0:c.props.onExited)}),rootRef:g,portalRef:k,isTopModal:A,exited:v,hasTransition:b}};function cD(e){return Ff("MuiModal",e)}Bf("MuiModal",["root","hidden","backdrop"]);const uD=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],dD=nf("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"})})),pD=nf(eD,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),hD=e.forwardRef((function(t,n){var r,a,i,o,s,l;const c=rf({name:"MuiModal",props:t}),{BackdropComponent:u=pD,BackdropProps:d,className:p,closeAfterTransition:h=!1,children:f,container:m,component:g,components:v={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:w=!1,disablePortal:S=!1,disableRestoreFocus:C=!1,disableScrollLock:A=!1,hideBackdrop:k=!1,keepMounted:T=!1,onBackdropClick:j,open:E,slotProps:P,slots:N}=c,D=(0,Sl.A)(c,uD),M=(0,wl.A)({},c,{closeAfterTransition:h,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:w,disablePortal:S,disableRestoreFocus:C,disableScrollLock:A,hideBackdrop:k,keepMounted:T}),{getRootProps:_,getBackdropProps:I,getTransitionProps:R,portalRef:O,isTopModal:L,exited:F,hasTransition:B}=lD((0,wl.A)({},M,{rootRef:n})),z=(0,wl.A)({},M,{exited:F}),V=(e=>{const{open:t,exited:n,classes:r}=e;return mh({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},cD,r)})(z),W={};if(void 0===f.props.tabIndex&&(W.tabIndex="-1"),B){const{onEnter:e,onExited:t}=R();W.onEnter=e,W.onExited=t}const U=null!=(r=null!=(a=null==N?void 0:N.root)?a:v.Root)?r:dD,$=null!=(i=null!=(o=null==N?void 0:N.backdrop)?o:v.Backdrop)?i:u,H=null!=(s=null==P?void 0:P.root)?s:y.root,q=null!=(l=null==P?void 0:P.backdrop)?l:y.backdrop,G=sS({elementType:U,externalSlotProps:H,externalForwardedProps:D,getSlotProps:_,additionalProps:{ref:n,as:g},ownerState:z,className:fh(p,null==H?void 0:H.className,null==V?void 0:V.root,!z.open&&z.exited&&(null==V?void 0:V.hidden))}),K=sS({elementType:$,externalSlotProps:q,additionalProps:d,getSlotProps:e=>I((0,wl.A)({},e,{onClick:t=>{j&&j(t),null!=e&&e.onClick&&e.onClick(t)}})),className:fh(null==q?void 0:q.className,null==d?void 0:d.className,null==V?void 0:V.backdrop),ownerState:z});return T||E||B&&!F?(0,Tl.jsx)(lS,{ref:O,container:m,disablePortal:S,children:(0,Tl.jsxs)(U,(0,wl.A)({},G,{children:[!k&&u?(0,Tl.jsx)($,(0,wl.A)({},K)):null,(0,Tl.jsx)(HN,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:C,isEnabled:L,open:E,children:e.cloneElement(f,W)})]}))}):null})),fD=hD;function mD(e){return Ff("MuiPopover",e)}Bf("MuiPopover",["root","paper"]);const gD=["onEntering"],vD=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],yD=["slotProps"];function bD(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function xD(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function wD(e){return[e.horizontal,e.vertical].map((e=>"number"===typeof e?`${e}px`:e)).join(" ")}function SD(e){return"function"===typeof e?e():e}const CD=nf(fD,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),AD=nf(Bm,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),kD=e.forwardRef((function(t,n){var r,a,i;const o=rf({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:p,className:h,container:f,elevation:m=8,marginThreshold:g=16,open:v,PaperProps:y={},slots:b,slotProps:x,transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:S=Lx,transitionDuration:C="auto",TransitionProps:{onEntering:A}={},disableScrollLock:k=!1}=o,T=(0,Sl.A)(o.TransitionProps,gD),j=(0,Sl.A)(o,vD),E=null!=(r=null==x?void 0:x.paper)?r:y,P=e.useRef(),N=sf(P,E.ref),D=(0,wl.A)({},o,{anchorOrigin:c,anchorReference:d,elevation:m,marginThreshold:g,externalPaperSlotProps:E,transformOrigin:w,TransitionComponent:S,transitionDuration:C,TransitionProps:T}),M=(e=>{const{classes:t}=e;return mh({root:["root"],paper:["paper"]},mD,t)})(D),_=e.useCallback((()=>{if("anchorPosition"===d)return u;const e=SD(l),t=(e&&1===e.nodeType?e:Mb(P.current).body).getBoundingClientRect();return{top:t.top+bD(t,c.vertical),left:t.left+xD(t,c.horizontal)}}),[l,c.horizontal,c.vertical,u,d]),I=e.useCallback((e=>({vertical:bD(e,w.vertical),horizontal:xD(e,w.horizontal)})),[w.horizontal,w.vertical]),R=e.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=I(t);if("none"===d)return{top:null,left:null,transformOrigin:wD(n)};const r=_();let a=r.top-n.vertical,i=r.left-n.horizontal;const o=a+t.height,s=i+t.width,c=jb(SD(l)),u=c.innerHeight-g,p=c.innerWidth-g;if(null!==g&&a<g){const e=a-g;a-=e,n.vertical+=e}else if(null!==g&&o>u){const e=o-u;a-=e,n.vertical+=e}if(null!==g&&i<g){const e=i-g;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(i)}px`,transformOrigin:wD(n)}}),[l,d,_,I,g]),[O,L]=e.useState(v),F=e.useCallback((()=>{const e=P.current;if(!e)return;const t=R(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,L(!0)}),[R]);e.useEffect((()=>(k&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,k,F]);e.useEffect((()=>{v&&F()})),e.useImperativeHandle(s,(()=>v?{updatePosition:()=>{F()}}:null),[v,F]),e.useEffect((()=>{if(!v)return;const e=wb((()=>{F()})),t=jb(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,v,F]);let B=C;"auto"!==C||S.muiSupportAuto||(B=void 0);const z=f||(l?Mb(SD(l)).body:void 0),V=null!=(a=null==b?void 0:b.root)?a:CD,W=null!=(i=null==b?void 0:b.paper)?i:AD,U=sS({elementType:W,externalSlotProps:(0,wl.A)({},E,{style:O?E.style:(0,wl.A)({},E.style,{opacity:0})}),additionalProps:{elevation:m,ref:N},ownerState:D,className:fh(M.paper,null==E?void 0:E.className)}),$=sS({elementType:V,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:j,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:z,open:v},ownerState:D,className:fh(M.root,h)}),{slotProps:H}=$,q=(0,Sl.A)($,yD);return(0,Tl.jsx)(V,(0,wl.A)({},q,!Nx(V)&&{slotProps:H,disableScrollLock:k},{children:(0,Tl.jsx)(S,(0,wl.A)({appear:!0,in:v,onEntering:(e,t)=>{A&&A(e,t),F()},onExited:()=>{L(!1)},timeout:B},T,{children:(0,Tl.jsx)(W,(0,wl.A)({},U,{children:p}))}))}))})),TD=kD;function jD(e){return Ff("MuiMenu",e)}Bf("MuiMenu",["root","paper","list"]);const ED=["onEntering"],PD=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],ND={vertical:"top",horizontal:"right"},DD={vertical:"top",horizontal:"left"},MD=nf(TD,{shouldForwardProp:e=>tf(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_D=nf(AD,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ID=nf(Kb,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),RD=e.forwardRef((function(t,n){var r,a;const i=rf({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:d,open:p,PaperProps:h={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:g}={},variant:v="selectedMenu",slots:y={},slotProps:b={}}=i,x=(0,Sl.A)(i.TransitionProps,ED),w=(0,Sl.A)(i,PD),S=Ml(),C=(0,wl.A)({},i,{autoFocus:o,disableAutoFocusItem:c,MenuListProps:u,onEntering:g,PaperProps:h,transitionDuration:m,TransitionProps:x,variant:v}),A=(e=>{const{classes:t}=e;return mh({root:["root"],paper:["paper"],list:["list"]},jD,t)})(C),k=o&&!c&&p,T=e.useRef(null);let j=-1;e.Children.map(s,((t,n)=>{e.isValidElement(t)&&(t.props.disabled||("selectedMenu"===v&&t.props.selected||-1===j)&&(j=n))}));const E=null!=(r=y.paper)?r:_D,P=null!=(a=b.paper)?a:h,N=sS({elementType:y.root,externalSlotProps:b.root,ownerState:C,className:[A.root,l]}),D=sS({elementType:E,externalSlotProps:P,ownerState:C,className:A.paper});return(0,Tl.jsx)(MD,(0,wl.A)({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?ND:DD,slots:{paper:E,root:y.root},slotProps:{root:N,paper:D},open:p,ref:n,transitionDuration:m,TransitionProps:(0,wl.A)({onEntering:(e,t)=>{T.current&&T.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),g&&g(e,t)}},x),ownerState:C},w,{classes:f,children:(0,Tl.jsx)(ID,(0,wl.A)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:T,autoFocus:o&&(-1===j||c),autoFocusItem:k,variant:v},u,{className:fh(A.list,u.className),children:s}))}))})),OD=RD;function LD(e){return Ff("MuiNativeSelect",e)}const FD=Bf("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),BD=["className","disabled","error","IconComponent","inputRef","variant"],zD=e=>{let{ownerState:t,theme:n}=e;return(0,wl.A)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,wl.A)({},n.vars?{backgroundColor:`rgba(${n.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===n.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${FD.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(n.vars||n).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:(n.vars||n).shape.borderRadius,"&:focus":{borderRadius:(n.vars||n).shape.borderRadius},"&&&":{paddingRight:32}})},VD=nf("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:tf,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${FD.multiple}`]:t.multiple}]}})(zD),WD=e=>{let{ownerState:t,theme:n}=e;return(0,wl.A)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(n.vars||n).palette.action.active,[`&.${FD.disabled}`]:{color:(n.vars||n).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},UD=nf("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${sm(n.variant)}`],n.open&&t.iconOpen]}})(WD),$D=e.forwardRef((function(t,n){const{className:r,disabled:a,error:i,IconComponent:o,inputRef:s,variant:l="standard"}=t,c=(0,Sl.A)(t,BD),u=(0,wl.A)({},t,{disabled:a,variant:l,error:i}),d=(e=>{const{classes:t,variant:n,disabled:r,multiple:a,open:i,error:o}=e;return mh({select:["select",n,r&&"disabled",a&&"multiple",o&&"error"],icon:["icon",`icon${sm(n)}`,i&&"iconOpen",r&&"disabled"]},LD,t)})(u);return(0,Tl.jsxs)(e.Fragment,{children:[(0,Tl.jsx)(VD,(0,wl.A)({ownerState:u,className:fh(d.select,r),disabled:a,ref:s||n},c)),t.multiple?null:(0,Tl.jsx)(UD,{as:o,ownerState:u,className:d.icon})]})})),HD=$D;function qD(e){return Ff("MuiSelect",e)}const GD=Bf("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var KD;const YD=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],XD=nf("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${GD.select}`]:t.select},{[`&.${GD.select}`]:t[n.variant]},{[`&.${GD.error}`]:t.error},{[`&.${GD.multiple}`]:t.multiple}]}})(zD,{[`&.${GD.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ZD=nf("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${sm(n.variant)}`],n.open&&t.iconOpen]}})(WD),JD=nf("input",{shouldForwardProp:e=>ef(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function QD(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function eM(e){return null==e||"string"===typeof e&&!e.trim()}const tM=e.forwardRef((function(t,n){var r;const{"aria-describedby":a,"aria-label":i,autoFocus:o,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:d,disabled:p,displayEmpty:h,error:f=!1,IconComponent:m,inputRef:g,labelId:v,MenuProps:y={},multiple:b,name:x,onBlur:w,onChange:S,onClose:C,onFocus:A,onOpen:k,open:T,readOnly:j,renderValue:E,SelectDisplayProps:P={},tabIndex:N,value:D,variant:M="standard"}=t,_=(0,Sl.A)(t,YD),[I,R]=TS({controlled:D,default:d,name:"Select"}),[O,L]=TS({controlled:T,default:u,name:"Select"}),F=e.useRef(null),B=e.useRef(null),[z,V]=e.useState(null),{current:W}=e.useRef(null!=T),[U,$]=e.useState(),H=sf(n,g),q=e.useCallback((e=>{B.current=e,e&&V(e)}),[]),G=null==z?void 0:z.parentNode;e.useImperativeHandle(H,(()=>({focus:()=>{B.current.focus()},node:F.current,value:I})),[I]),e.useEffect((()=>{u&&O&&z&&!W&&($(s?null:G.clientWidth),B.current.focus())}),[z,s]),e.useEffect((()=>{o&&B.current.focus()}),[o]),e.useEffect((()=>{if(!v)return;const e=Mb(B.current).getElementById(v);if(e){const t=()=>{getSelection().isCollapsed&&B.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[v]);const K=(e,t)=>{e?k&&k(t):C&&C(t),W||($(s?null:G.clientWidth),L(e))},Y=e.Children.toArray(l),X=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(b){n=Array.isArray(I)?I.slice():[];const t=I.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),I!==n&&(R(n),S)){const r=t.nativeEvent||t,a=new r.constructor(r.type,r);Object.defineProperty(a,"target",{writable:!0,value:{value:n,name:x}}),S(a,e)}b||K(!1,t)}},Z=null!==z&&O;let J,Q;delete _["aria-invalid"];const ee=[];let te=!1,ne=!1;(xC({value:I})||h)&&(E?J=E(I):te=!0);const re=Y.map((t=>{if(!e.isValidElement(t))return null;let n;if(b){if(!Array.isArray(I))throw new Error((0,yh.A)(2));n=I.some((e=>QD(e,t.props.value))),n&&te&&ee.push(t.props.children)}else n=QD(I,t.props.value),n&&te&&(Q=t.props.children);return n&&(ne=!0),e.cloneElement(t,{"aria-selected":n?"true":"false",onClick:X(t),onKeyUp:e=>{" "===e.key&&e.preventDefault(),t.props.onKeyUp&&t.props.onKeyUp(e)},role:"option",selected:n,value:void 0,"data-value":t.props.value})}));te&&(J=b?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e)),[]):Q);let ae,ie=U;!s&&W&&z&&(ie=G.clientWidth),ae="undefined"!==typeof N?N:p?null:0;const oe=P.id||(x?`mui-component-select-${x}`:void 0),se=(0,wl.A)({},t,{variant:M,value:I,open:Z,error:f}),le=(e=>{const{classes:t,variant:n,disabled:r,multiple:a,open:i,error:o}=e;return mh({select:["select",n,r&&"disabled",a&&"multiple",o&&"error"],icon:["icon",`icon${sm(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},qD,t)})(se),ce=(0,wl.A)({},y.PaperProps,null==(r=y.slotProps)?void 0:r.paper),ue=CS();return(0,Tl.jsxs)(e.Fragment,{children:[(0,Tl.jsx)(XD,(0,wl.A)({ref:q,tabIndex:ae,role:"combobox","aria-controls":ue,"aria-disabled":p?"true":void 0,"aria-expanded":Z?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[v,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":a,onKeyDown:e=>{if(!j){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),K(!0,e))}},onMouseDown:p||j?null:e=>{0===e.button&&(e.preventDefault(),B.current.focus(),K(!0,e))},onBlur:e=>{!Z&&w&&(Object.defineProperty(e,"target",{writable:!0,value:{value:I,name:x}}),w(e))},onFocus:A},P,{ownerState:se,className:fh(P.className,le.select,c),id:oe,children:eM(J)?KD||(KD=(0,Tl.jsx)("span",{className:"notranslate",children:"\u200b"})):J})),(0,Tl.jsx)(JD,(0,wl.A)({"aria-invalid":f,value:Array.isArray(I)?I.join(","):I,name:x,ref:F,"aria-hidden":!0,onChange:e=>{const t=Y.find((t=>t.props.value===e.target.value));void 0!==t&&(R(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:p,className:le.nativeInput,autoFocus:o,ownerState:se},_)),(0,Tl.jsx)(ZD,{as:m,className:le.icon,ownerState:se}),(0,Tl.jsx)(OD,(0,wl.A)({id:`menu-${x||""}`,anchorEl:G,open:Z,onClose:e=>{K(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:(0,wl.A)({"aria-labelledby":v,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:ue},y.MenuListProps),slotProps:(0,wl.A)({},y.slotProps,{paper:(0,wl.A)({},ce,{style:(0,wl.A)({minWidth:ie},null!=ce?ce.style:null)})}),children:re}))]})})),nM=tM,rM=bm((0,Tl.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function aM(e){return Ff("MuiInput",e)}const iM=(0,wl.A)({},SC,Bf("MuiInput",["root","underline","input"])),oM=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],sM=nf(TC,{shouldForwardProp:e=>tf(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...AC(e,t),!n.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:n}=e;let r="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),(0,wl.A)({position:"relative"},n.formControl&&{"label + &":{marginTop:16}},!n.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[n.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${iM.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${iM.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${iM.disabled}, .${iM.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${iM.disabled}:before`]:{borderBottomStyle:"dotted"}})})),lM=nf(jC,{name:"MuiInput",slot:"Input",overridesResolver:kC})({}),cM=e.forwardRef((function(e,t){var n,r,a,i;const o=rf({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:p=!1,slotProps:h,slots:f={},type:m="text"}=o,g=(0,Sl.A)(o,oM),v=(e=>{const{classes:t,disableUnderline:n}=e,r=mh({root:["root",!n&&"underline"],input:["input"]},aM,t);return(0,wl.A)({},t,r)})(o),y={root:{ownerState:{disableUnderline:s}}},b=(null!=h?h:c)?(0,bh.A)(null!=h?h:c,y):y,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:sM,w=null!=(a=null!=(i=f.input)?i:l.Input)?a:lM;return(0,Tl.jsx)(NC,(0,wl.A)({slots:{root:x,input:w},slotProps:b,fullWidth:u,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:v}))}));cM.muiName="Input";const uM=cM;function dM(e){return Ff("MuiFilledInput",e)}const pM=(0,wl.A)({},SC,Bf("MuiFilledInput",["root","underline","input"])),hM=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],fM=nf(TC,{shouldForwardProp:e=>tf(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...AC(e,t),!n.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:n}=e;var r;const a="light"===t.palette.mode,i=a?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=a?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=a?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=a?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,wl.A)({position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:o}},[`&.${pM.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:o},[`&.${pM.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:l}},!n.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(t.vars||t).palette[n.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${pM.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${pM.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${pM.disabled}, .${pM.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${pM.disabled}:before`]:{borderBottomStyle:"dotted"}},n.startAdornment&&{paddingLeft:12},n.endAdornment&&{paddingRight:12},n.multiline&&(0,wl.A)({padding:"25px 12px 8px"},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9}))})),mM=nf(jC,{name:"MuiFilledInput",slot:"Input",overridesResolver:kC})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9},n.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})})),gM=e.forwardRef((function(e,t){var n,r,a,i;const o=rf({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:c=!1,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:h={},type:f="text"}=o,m=(0,Sl.A)(o,hM),g=(0,wl.A)({},o,{fullWidth:c,inputComponent:u,multiline:d,type:f}),v=(e=>{const{classes:t,disableUnderline:n}=e,r=mh({root:["root",!n&&"underline"],input:["input"]},dM,t);return(0,wl.A)({},t,r)})(o),y={root:{ownerState:g},input:{ownerState:g}},b=(null!=p?p:l)?(0,bh.A)(y,null!=p?p:l):y,x=null!=(n=null!=(r=h.root)?r:s.Root)?n:fM,w=null!=(a=null!=(i=h.input)?i:s.Input)?a:mM;return(0,Tl.jsx)(NC,(0,wl.A)({slots:{root:x,input:w},componentsProps:b,fullWidth:c,inputComponent:u,multiline:d,ref:t,type:f},m,{classes:v}))}));gM.muiName="Input";const vM=gM;var yM;const bM=["children","classes","className","label","notched"],xM=nf("fieldset",{shouldForwardProp:tf})({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%"}),wM=nf("legend",{shouldForwardProp:tf})((e=>{let{ownerState:t,theme:n}=e;return(0,wl.A)({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,wl.A)({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 SM(e){return Ff("MuiOutlinedInput",e)}const CM=(0,wl.A)({},SC,Bf("MuiOutlinedInput",["root","notchedOutline","input"])),AM=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],kM=nf(TC,{shouldForwardProp:e=>tf(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:AC})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,wl.A)({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${CM.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${CM.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${CM.focused} .${CM.notchedOutline}`]:{borderColor:(t.vars||t).palette[n.color].main,borderWidth:2},[`&.${CM.error} .${CM.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${CM.disabled} .${CM.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}},n.startAdornment&&{paddingLeft:14},n.endAdornment&&{paddingRight:14},n.multiline&&(0,wl.A)({padding:"16.5px 14px"},"small"===n.size&&{padding:"8.5px 14px"}))})),TM=nf((function(e){const{className:t,label:n,notched:r}=e,a=(0,Sl.A)(e,bM),i=null!=n&&""!==n,o=(0,wl.A)({},e,{notched:r,withLabel:i});return(0,Tl.jsx)(xM,(0,wl.A)({"aria-hidden":!0,className:t,ownerState:o},a,{children:(0,Tl.jsx)(wM,{ownerState:o,children:i?(0,Tl.jsx)("span",{children:n}):yM||(yM=(0,Tl.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((e=>{let{theme:t}=e;const n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:n}})),jM=nf(jC,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:kC})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{padding:"8.5px 14px"},n.multiline&&{padding:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0})})),EM=e.forwardRef((function(t,n){var r,a,i,o,s;const l=rf({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:d="input",label:p,multiline:h=!1,notched:f,slots:m={},type:g="text"}=l,v=(0,Sl.A)(l,AM),y=(e=>{const{classes:t}=e,n=mh({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},SM,t);return(0,wl.A)({},t,n)})(l),b=mC(),x=hC({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w=(0,wl.A)({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:b,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:h,size:x.size,type:g}),S=null!=(r=null!=(a=m.root)?a:c.Root)?r:kM,C=null!=(i=null!=(o=m.input)?o:c.Input)?i:jM;return(0,Tl.jsx)(NC,(0,wl.A)({slots:{root:S,input:C},renderSuffix:t=>(0,Tl.jsx)(TM,{ownerState:w,className:y.notchedOutline,label:null!=p&&""!==p&&x.required?s||(s=(0,Tl.jsxs)(e.Fragment,{children:[p,"\u2009","*"]})):p,notched:"undefined"!==typeof f?f:Boolean(t.startAdornment||t.filled||t.focused)}),fullWidth:u,inputComponent:d,multiline:h,ref:n,type:g},v,{classes:(0,wl.A)({},y,{notchedOutline:null})}))}));EM.muiName="Input";const PM=EM,NM=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],DM=["root"],MM={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>tf(e)&&"variant"!==e,slot:"Root"},_M=nf(uM,MM)(""),IM=nf(PM,MM)(""),RM=nf(vM,MM)(""),OM=e.forwardRef((function(t,n){const r=rf({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:i,classes:o={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=rM,id:d,input:p,inputProps:h,label:f,labelId:m,MenuProps:g,multiple:v=!1,native:y=!1,onClose:b,onOpen:x,open:w,renderValue:S,SelectDisplayProps:C,variant:A="outlined"}=r,k=(0,Sl.A)(r,NM),T=y?HD:nM,j=hC({props:r,muiFormControl:mC(),states:["variant","error"]}),E=j.variant||A,P=(0,wl.A)({},r,{variant:E,classes:o}),N=(e=>{const{classes:t}=e;return t})(P),D=(0,Sl.A)(N,DM),M=p||{standard:(0,Tl.jsx)(_M,{ownerState:P}),outlined:(0,Tl.jsx)(IM,{label:f,ownerState:P}),filled:(0,Tl.jsx)(RM,{ownerState:P})}[E],_=sf(n,M.ref);return(0,Tl.jsx)(e.Fragment,{children:e.cloneElement(M,(0,wl.A)({inputComponent:T,inputProps:(0,wl.A)({children:i,error:j.error,IconComponent:u,variant:E,type:void 0,multiple:v},y?{id:d}:{autoWidth:a,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:g,onClose:b,onOpen:x,open:w,renderValue:S,SelectDisplayProps:(0,wl.A)({id:d},C)},h,{classes:h?(0,bh.A)(D,h.classes):D},p?p.props.inputProps:{})},(v&&y||c)&&"outlined"===E?{notched:!0}:{},{ref:_,className:fh(M.props.className,s,N.root)},!p&&{variant:E},k))})}));OM.muiName="Select";const LM=OM;function FM(e){return Ff("MuiCard",e)}Bf("MuiCard",["root"]);const BM=["className","raised"],zM=nf(Bm,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"}))),VM=e.forwardRef((function(e,t){const n=rf({props:e,name:"MuiCard"}),{className:r,raised:a=!1}=n,i=(0,Sl.A)(n,BM),o=(0,wl.A)({},n,{raised:a}),s=(e=>{const{classes:t}=e;return mh({root:["root"]},FM,t)})(o);return(0,Tl.jsx)(zM,(0,wl.A)({className:fh(s.root,r),elevation:a?8:void 0,ref:t,ownerState:o},i))})),WM=VM,UM=["ownerState"],$M=["variants"],HM=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function qM(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const GM=(0,Sh.A)(),KM=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function YM(e){let{defaultTheme:t,theme:n,themeId:r}=e;return a=n,0===Object.keys(a).length?t:n[r]||n;var a}function XM(e){return e?(t,n)=>n[e]:null}function ZM(e,t){let{ownerState:n}=t,r=(0,Sl.A)(t,UM);const a="function"===typeof e?e((0,wl.A)({ownerState:n},r)):e;if(Array.isArray(a))return a.flatMap((e=>ZM(e,(0,wl.A)({ownerState:n},r))));if(a&&"object"===typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,Sl.A)(a,$M);return e.forEach((e=>{let a=!0;"function"===typeof e.props?a=e.props((0,wl.A)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(a=!1)})),a&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,wl.A)({ownerState:n},r,n)):e.style))})),t}return a}const JM=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=GM,rootShouldForwardProp:r=qM,slotShouldForwardProp:a=qM}=e,i=e=>(0,wh.A)((0,wl.A)({},e,{theme:YM((0,wl.A)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,Wm.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=XM(KM(l))}=o,p=(0,Sl.A)(o,HM),h=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,f=u||!1;let m=qM;"Root"===l||"root"===l?m=r:l?m=a:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,Wm.default)(e,(0,wl.A)({shouldForwardProp:m,label:undefined},p)),v=e=>"function"===typeof e&&e.__emotion_real!==e||(0,bh.Q)(e)?r=>ZM(e,(0,wl.A)({},r,{theme:YM({theme:r.theme,defaultTheme:n,themeId:t})})):e,y=function(r){let a=v(r);for(var o=arguments.length,l=new Array(o>1?o-1:0),c=1;c<o;c++)l[c-1]=arguments[c];const u=l?l.map(v):[];s&&d&&u.push((e=>{const r=YM((0,wl.A)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const a=r.components[s].styleOverrides,i={};return Object.entries(a).forEach((t=>{let[n,a]=t;i[n]=ZM(a,(0,wl.A)({},e,{theme:r}))})),d(e,i)})),s&&!h&&u.push((e=>{var r;const a=YM((0,wl.A)({},e,{defaultTheme:n,themeId:t}));return ZM({variants:null==a||null==(r=a.components)||null==(r=r[s])?void 0:r.variants},(0,wl.A)({},e,{theme:a}))})),f||u.push(i);const p=u.length-l.length;if(Array.isArray(r)&&p>0){const e=new Array(p).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const m=g(a,...u);return e.muiName&&(m.muiName=e.muiName),m};return g.withConfig&&(y.withConfig=g.withConfig),y}}(),QM=JM;function e_(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Il(t.components[n].defaultProps,r):r}function t_(e){let{props:t,name:n,defaultTheme:r,themeId:a}=e,i=Hm(r);a&&(i=i[a]||i);return e_({theme:i,name:n,props:t})}var n_=n(8604);const r_=["component","direction","spacing","divider","children","className","useFlexGap"],a_=(0,Sh.A)(),i_=QM("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function o_(e){return t_({props:e,name:"MuiStack",defaultTheme:a_})}function s_(t,n){const r=e.Children.toArray(t).filter(Boolean);return r.reduce(((t,a,i)=>(t.push(a),i<r.length-1&&t.push(e.cloneElement(n,{key:`separator-${i}`})),t)),[])}const l_=e=>{let{ownerState:t,theme:n}=e,r=(0,wl.A)({display:"flex",flexDirection:"column"},(0,dN.NI)({theme:n},(0,dN.kW)({values:t.direction,breakpoints:n.breakpoints.values}),(e=>({flexDirection:e}))));if(t.spacing){const e=(0,n_.LX)(n),a=Object.keys(n.breakpoints.values).reduce(((e,n)=>(("object"===typeof t.spacing&&null!=t.spacing[n]||"object"===typeof t.direction&&null!=t.direction[n])&&(e[n]=!0),e)),{}),i=(0,dN.kW)({values:t.direction,base:a}),o=(0,dN.kW)({values:t.spacing,base:a});"object"===typeof i&&Object.keys(i).forEach(((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}}));const s=(n,r)=>{return t.useFlexGap?{gap:(0,n_._W)(e,n)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${a=r?i[r]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[a]}`]:(0,n_._W)(e,n)}};var a};r=(0,bh.A)(r,(0,dN.NI)({theme:n},o,s))}return r=(0,dN.iZ)(n.breakpoints,r),r};const c_=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:n=i_,useThemeProps:r=o_,componentName:a="MuiStack"}=t,i=n(l_),o=e.forwardRef((function(e,t){const n=r(e),o=(0,Um.A)(n),{component:s="div",direction:l="column",spacing:c=0,divider:u,children:d,className:p,useFlexGap:h=!1}=o,f=(0,Sl.A)(o,r_),m={direction:l,spacing:c,useFlexGap:h},g=mh({root:["root"]},(e=>Ff(a,e)),{});return(0,Tl.jsx)(i,(0,wl.A)({as:s,ownerState:m,ref:t,className:Vm(g.root,p)},f,{children:u?s_(d,u):d}))}));return o}({createStyledComponent:nf("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>rf({props:e,name:"MuiStack"})}),u_=c_;function d_(){}const p_=function(){let e=0;return function(){return e++}}();function h_(e){return null===e||"undefined"===typeof e}function f_(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function m_(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}const g_=e=>("number"===typeof e||e instanceof Number)&&isFinite(+e);function v_(e,t){return g_(e)?e:t}function y_(e,t){return"undefined"===typeof e?t:e}const b_=(e,t)=>"string"===typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function x_(e,t,n){if(e&&"function"===typeof e.call)return e.apply(n,t)}function w_(e,t,n,r){let a,i,o;if(f_(e))if(i=e.length,r)for(a=i-1;a>=0;a--)t.call(n,e[a],a);else for(a=0;a<i;a++)t.call(n,e[a],a);else if(m_(e))for(o=Object.keys(e),i=o.length,a=0;a<i;a++)t.call(n,e[o[a]],o[a])}function S_(e,t){let n,r,a,i;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(a=e[n],i=t[n],a.datasetIndex!==i.datasetIndex||a.index!==i.index)return!1;return!0}function C_(e){if(f_(e))return e.map(C_);if(m_(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let a=0;for(;a<r;++a)t[n[a]]=C_(e[n[a]]);return t}return e}function A_(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function k_(e,t,n,r){if(!A_(e))return;const a=t[e],i=n[e];m_(a)&&m_(i)?T_(a,i,r):t[e]=C_(i)}function T_(e,t,n){const r=f_(t)?t:[t],a=r.length;if(!m_(e))return e;const i=(n=n||{}).merger||k_;for(let o=0;o<a;++o){if(!m_(t=r[o]))continue;const a=Object.keys(t);for(let r=0,o=a.length;r<o;++r)i(a[r],e,t,n)}return e}function j_(e,t){return T_(e,t,{merger:E_})}function E_(e,t,n){if(!A_(e))return;const r=t[e],a=n[e];m_(r)&&m_(a)?j_(r,a):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=C_(a))}const P_={"":e=>e,x:e=>e.x,y:e=>e.y};function N_(e,t){const n=P_[t]||(P_[t]=function(e){const t=function(e){const t=e.split("."),n=[];let r="";for(const a of t)r+=a,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(e);return e=>{for(const n of t){if(""===n)break;e=e&&e[n]}return e}}(t));return n(e)}function D_(e){return e.charAt(0).toUpperCase()+e.slice(1)}const M_=e=>"undefined"!==typeof e,__=e=>"function"===typeof e,I_=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};const R_=Math.PI,O_=2*R_,L_=O_+R_,F_=Number.POSITIVE_INFINITY,B_=R_/180,z_=R_/2,V_=R_/4,W_=2*R_/3,U_=Math.log10,$_=Math.sign;function H_(e){const t=Math.round(e);e=G_(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(U_(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function q_(e){return!isNaN(parseFloat(e))&&isFinite(e)}function G_(e,t,n){return Math.abs(e-t)<n}function K_(e,t,n){let r,a,i;for(r=0,a=e.length;r<a;r++)i=e[r][n],isNaN(i)||(t.min=Math.min(t.min,i),t.max=Math.max(t.max,i))}function Y_(e){return e*(R_/180)}function X_(e){return e*(180/R_)}function Z_(e){if(!g_(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function J_(e,t){const n=t.x-e.x,r=t.y-e.y,a=Math.sqrt(n*n+r*r);let i=Math.atan2(r,n);return i<-.5*R_&&(i+=O_),{angle:i,distance:a}}function Q_(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function eI(e,t){return(e-t+L_)%O_-R_}function tI(e){return(e%O_+O_)%O_}function nI(e,t,n,r){const a=tI(e),i=tI(t),o=tI(n),s=tI(i-a),l=tI(o-a),c=tI(a-i),u=tI(a-o);return a===i||a===o||r&&i===o||s>l&&c<u}function rI(e,t,n){return Math.max(t,Math.min(n,e))}function aI(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e-6;return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function iI(e,t,n){n=n||(n=>e[n]<t);let r,a=e.length-1,i=0;for(;a-i>1;)r=i+a>>1,n(r)?i=r:a=r;return{lo:i,hi:a}}const oI=(e,t,n,r)=>iI(e,n,r?r=>e[r][t]<=n:r=>e[r][t]<n),sI=(e,t,n)=>iI(e,n,(r=>e[r][t]>=n));const lI=["push","pop","shift","splice","unshift"];function cI(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,a=r.indexOf(t);-1!==a&&r.splice(a,1),r.length>0||(lI.forEach((t=>{delete e[t]})),delete e._chartjs)}function uI(e){const t=new Set;let n,r;for(n=0,r=e.length;n<r;++n)t.add(e[n]);return t.size===r?e:Array.from(t)}const dI="undefined"===typeof window?function(e){return e()}:window.requestAnimationFrame;function pI(e,t,n){const r=n||(e=>Array.prototype.slice.call(e));let a=!1,i=[];return function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];i=r(o),a||(a=!0,dI.call(window,(()=>{a=!1,e.apply(t,i)})))}}const hI=e=>"start"===e?"left":"end"===e?"right":"center",fI=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2;function mI(e,t,n){const r=t.length;let a=0,i=r;if(e._sorted){const{iScale:o,_parsed:s}=e,l=o.axis,{min:c,max:u,minDefined:d,maxDefined:p}=o.getUserBounds();d&&(a=rI(Math.min(oI(s,o.axis,c).lo,n?r:oI(t,l,o.getPixelForValue(c)).lo),0,r-1)),i=p?rI(Math.max(oI(s,o.axis,u,!0).hi+1,n?0:oI(t,l,o.getPixelForValue(u),!0).hi+1),a,r)-a:r-a}return{start:a,count:i}}function gI(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,a={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=a,!0;const i=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,a),i}const vI=e=>0===e||1===e,yI=(e,t,n)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*O_/n),bI=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*O_/n)+1,xI={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*z_),easeOutSine:e=>Math.sin(e*z_),easeInOutSine:e=>-.5*(Math.cos(R_*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>vI(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>vI(e)?e:yI(e,.075,.3),easeOutElastic:e=>vI(e)?e:bI(e,.075,.3),easeInOutElastic(e){const t=.1125;return vI(e)?e:e<.5?.5*yI(2*e,t,.45):.5+.5*bI(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-xI.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?.5*xI.easeInBounce(2*e):.5*xI.easeOutBounce(2*e-1)+.5};function wI(e){return e+.5|0}const SI=(e,t,n)=>Math.max(Math.min(e,n),t);function CI(e){return SI(wI(2.55*e),0,255)}function AI(e){return SI(wI(255*e),0,255)}function kI(e){return SI(wI(e/2.55)/100,0,1)}function TI(e){return SI(wI(100*e),0,100)}const jI={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},EI=[..."0123456789ABCDEF"],PI=e=>EI[15&e],NI=e=>EI[(240&e)>>4]+EI[15&e],DI=e=>(240&e)>>4===(15&e);function MI(e){var t=(e=>DI(e.r)&&DI(e.g)&&DI(e.b)&&DI(e.a))(e)?PI:NI;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const _I=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function II(e,t,n){const r=t*Math.min(n,1-n),a=function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+e/30)%12;return n-r*Math.max(Math.min(a-3,9-a,1),-1)};return[a(0),a(8),a(4)]}function RI(e,t,n){const r=function(r){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(r+e/60)%6;return n-n*t*Math.max(Math.min(a,4-a,1),0)};return[r(5),r(3),r(1)]}function OI(e,t,n){const r=II(e,1,.5);let a;for(t+n>1&&(a=1/(t+n),t*=a,n*=a),a=0;a<3;a++)r[a]*=1-t-n,r[a]+=t;return r}function LI(e){const t=e.r/255,n=e.g/255,r=e.b/255,a=Math.max(t,n,r),i=Math.min(t,n,r),o=(a+i)/2;let s,l,c;return a!==i&&(c=a-i,l=o>.5?c/(2-a-i):c/(a+i),s=function(e,t,n,r,a){return e===a?(t-n)/r+(t<n?6:0):t===a?(n-e)/r+2:(e-t)/r+4}(t,n,r,c,a),s=60*s+.5),[0|s,l||0,o]}function FI(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(AI)}function BI(e,t,n){return FI(II,e,t,n)}function zI(e){return(e%360+360)%360}function VI(e){const t=_I.exec(e);let n,r=255;if(!t)return;t[5]!==n&&(r=t[6]?CI(+t[5]):AI(+t[5]));const a=zI(+t[2]),i=+t[3]/100,o=+t[4]/100;return n="hwb"===t[1]?function(e,t,n){return FI(OI,e,t,n)}(a,i,o):"hsv"===t[1]?function(e,t,n){return FI(RI,e,t,n)}(a,i,o):BI(a,i,o),{r:n[0],g:n[1],b:n[2],a:r}}const WI={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},UI={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let $I;function HI(e){$I||($I=function(){const e={},t=Object.keys(UI),n=Object.keys(WI);let r,a,i,o,s;for(r=0;r<t.length;r++){for(o=s=t[r],a=0;a<n.length;a++)i=n[a],s=s.replace(i,WI[i]);i=parseInt(UI[o],16),e[s]=[i>>16&255,i>>8&255,255&i]}return e}(),$I.transparent=[0,0,0,0]);const t=$I[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const qI=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const GI=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,KI=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function YI(e,t,n){if(e){let r=LI(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=BI(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function XI(e,t){return e?Object.assign(t||{},e):e}function ZI(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=AI(e[3]))):(t=XI(e,{r:0,g:0,b:0,a:1})).a=AI(t.a),t}function JI(e){return"r"===e.charAt(0)?function(e){const t=qI.exec(e);let n,r,a,i=255;if(t){if(t[7]!==n){const e=+t[7];i=t[8]?CI(e):SI(255*e,0,255)}return n=+t[1],r=+t[3],a=+t[5],n=255&(t[2]?CI(n):SI(n,0,255)),r=255&(t[4]?CI(r):SI(r,0,255)),a=255&(t[6]?CI(a):SI(a,0,255)),{r:n,g:r,b:a,a:i}}}(e):VI(e)}class QI{constructor(e){if(e instanceof QI)return e;const t=typeof e;let n;"object"===t?n=ZI(e):"string"===t&&(n=function(e){var t,n=e.length;return"#"===e[0]&&(4===n||5===n?t={r:255&17*jI[e[1]],g:255&17*jI[e[2]],b:255&17*jI[e[3]],a:5===n?17*jI[e[4]]:255}:7!==n&&9!==n||(t={r:jI[e[1]]<<4|jI[e[2]],g:jI[e[3]]<<4|jI[e[4]],b:jI[e[5]]<<4|jI[e[6]],a:9===n?jI[e[7]]<<4|jI[e[8]]:255})),t}(e)||HI(e)||JI(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=XI(this._rgb);return e&&(e.a=kI(e.a)),e}set rgb(e){this._rgb=ZI(e)}rgbString(){return this._valid?function(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${kI(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}(this._rgb):void 0}hexString(){return this._valid?MI(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=LI(e),n=t[0],r=TI(t[1]),a=TI(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${a}%, ${kI(e.a)})`:`hsl(${n}, ${r}%, ${a}%)`}(this._rgb):void 0}mix(e,t){if(e){const n=this.rgb,r=e.rgb;let a;const i=t===a?.5:t,o=2*i-1,s=n.a-r.a,l=((o*s===-1?o:(o+s)/(1+o*s))+1)/2;a=1-l,n.r=255&l*n.r+a*r.r+.5,n.g=255&l*n.g+a*r.g+.5,n.b=255&l*n.b+a*r.b+.5,n.a=i*n.a+(1-i)*r.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){const r=KI(kI(e.r)),a=KI(kI(e.g)),i=KI(kI(e.b));return{r:AI(GI(r+n*(KI(kI(t.r))-r))),g:AI(GI(a+n*(KI(kI(t.g))-a))),b:AI(GI(i+n*(KI(kI(t.b))-i))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new QI(this.rgb)}alpha(e){return this._rgb.a=AI(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=wI(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return YI(this._rgb,2,e),this}darken(e){return YI(this._rgb,2,-e),this}saturate(e){return YI(this._rgb,1,e),this}desaturate(e){return YI(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=LI(e);n[0]=zI(n[0]+t),n=BI(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}function eR(e){return new QI(e)}function tR(e){if(e&&"object"===typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function nR(e){return tR(e)?e:eR(e)}function rR(e){return tR(e)?e:eR(e).saturate(.5).darken(.1).hexString()}const aR=Object.create(null),iR=Object.create(null);function oR(e,t){if(!t)return e;const n=t.split(".");for(let r=0,a=n.length;r<a;++r){const t=n[r];e=e[t]||(e[t]=Object.create(null))}return e}function sR(e,t,n){return"string"===typeof t?T_(oR(e,t),n):T_(oR(e,""),t)}var lR=new class{constructor(e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>rR(t.backgroundColor),this.hoverBorderColor=(e,t)=>rR(t.borderColor),this.hoverColor=(e,t)=>rR(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e)}set(e,t){return sR(this,e,t)}get(e){return oR(this,e)}describe(e,t){return sR(iR,e,t)}override(e,t){return sR(aR,e,t)}route(e,t,n,r){const a=oR(this,e),i=oR(this,n),o="_"+t;Object.defineProperties(a,{[o]:{value:a[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[o],t=i[r];return m_(e)?Object.assign({},t,e):y_(e,t)},set(e){this[o]=e}}})}}({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function cR(e,t,n,r,a){let i=t[a];return i||(i=t[a]=e.measureText(a).width,n.push(a)),i>r&&(r=i),r}function uR(e,t,n,r){let a=(r=r||{}).data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(a=r.data={},i=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let o=0;const s=n.length;let l,c,u,d,p;for(l=0;l<s;l++)if(d=n[l],void 0!==d&&null!==d&&!0!==f_(d))o=cR(e,a,i,o,d);else if(f_(d))for(c=0,u=d.length;c<u;c++)p=d[c],void 0===p||null===p||f_(p)||(o=cR(e,a,i,o,p));e.restore();const h=i.length/2;if(h>n.length){for(l=0;l<h;l++)delete a[i[l]];i.splice(0,h)}return o}function dR(e,t,n){const r=e.currentDevicePixelRatio,a=0!==n?Math.max(n/2,.5):0;return Math.round((t-a)*r)/r+a}function pR(e,t){(t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function hR(e,t,n,r){fR(e,t,n,r,null)}function fR(e,t,n,r,a){let i,o,s,l,c,u;const d=t.pointStyle,p=t.rotation,h=t.radius;let f=(p||0)*B_;if(d&&"object"===typeof d&&(i=d.toString(),"[object HTMLImageElement]"===i||"[object HTMLCanvasElement]"===i))return e.save(),e.translate(n,r),e.rotate(f),e.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),void e.restore();if(!(isNaN(h)||h<=0)){switch(e.beginPath(),d){default:a?e.ellipse(n,r,a/2,h,0,0,O_):e.arc(n,r,h,0,O_),e.closePath();break;case"triangle":e.moveTo(n+Math.sin(f)*h,r-Math.cos(f)*h),f+=W_,e.lineTo(n+Math.sin(f)*h,r-Math.cos(f)*h),f+=W_,e.lineTo(n+Math.sin(f)*h,r-Math.cos(f)*h),e.closePath();break;case"rectRounded":c=.516*h,l=h-c,o=Math.cos(f+V_)*l,s=Math.sin(f+V_)*l,e.arc(n-o,r-s,c,f-R_,f-z_),e.arc(n+s,r-o,c,f-z_,f),e.arc(n+o,r+s,c,f,f+z_),e.arc(n-s,r+o,c,f+z_,f+R_),e.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*h,u=a?a/2:l,e.rect(n-u,r-l,2*u,2*l);break}f+=V_;case"rectRot":o=Math.cos(f)*h,s=Math.sin(f)*h,e.moveTo(n-o,r-s),e.lineTo(n+s,r-o),e.lineTo(n+o,r+s),e.lineTo(n-s,r+o),e.closePath();break;case"crossRot":f+=V_;case"cross":o=Math.cos(f)*h,s=Math.sin(f)*h,e.moveTo(n-o,r-s),e.lineTo(n+o,r+s),e.moveTo(n+s,r-o),e.lineTo(n-s,r+o);break;case"star":o=Math.cos(f)*h,s=Math.sin(f)*h,e.moveTo(n-o,r-s),e.lineTo(n+o,r+s),e.moveTo(n+s,r-o),e.lineTo(n-s,r+o),f+=V_,o=Math.cos(f)*h,s=Math.sin(f)*h,e.moveTo(n-o,r-s),e.lineTo(n+o,r+s),e.moveTo(n+s,r-o),e.lineTo(n-s,r+o);break;case"line":o=a?a/2:Math.cos(f)*h,s=Math.sin(f)*h,e.moveTo(n-o,r-s),e.lineTo(n+o,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(f)*h,r+Math.sin(f)*h)}e.fill(),t.borderWidth>0&&e.stroke()}}function mR(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function gR(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function vR(e){e.restore()}function yR(e,t,n,r,a){if(!t)return e.lineTo(n.x,n.y);if("middle"===a){const r=(t.x+n.x)/2;e.lineTo(r,t.y),e.lineTo(r,n.y)}else"after"===a!==!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function bR(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function xR(e,t,n,r,a){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const o=f_(t)?t:[t],s=i.strokeWidth>0&&""!==i.strokeColor;let l,c;for(e.save(),e.font=a.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]);h_(t.rotation)||e.rotate(t.rotation);t.color&&(e.fillStyle=t.color);t.textAlign&&(e.textAlign=t.textAlign);t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,i),l=0;l<o.length;++l)c=o[l],s&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),h_(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(c,n,r,i.maxWidth)),e.fillText(c,n,r,i.maxWidth),wR(e,n,r,c,i),r+=a.lineHeight;e.restore()}function wR(e,t,n,r,a){if(a.strikethrough||a.underline){const i=e.measureText(r),o=t-i.actualBoundingBoxLeft,s=t+i.actualBoundingBoxRight,l=n-i.actualBoundingBoxAscent,c=n+i.actualBoundingBoxDescent,u=a.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=a.decorationWidth||2,e.moveTo(o,u),e.lineTo(s,u),e.stroke()}}function SR(e,t){const{x:n,y:r,w:a,h:i,radius:o}=t;e.arc(n+o.topLeft,r+o.topLeft,o.topLeft,-z_,R_,!0),e.lineTo(n,r+i-o.bottomLeft),e.arc(n+o.bottomLeft,r+i-o.bottomLeft,o.bottomLeft,R_,z_,!0),e.lineTo(n+a-o.bottomRight,r+i),e.arc(n+a-o.bottomRight,r+i-o.bottomRight,o.bottomRight,z_,0,!0),e.lineTo(n+a,r+o.topRight),e.arc(n+a-o.topRight,r+o.topRight,o.topRight,0,-z_,!0),e.lineTo(n+o.topLeft,r)}const CR=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),AR=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function kR(e,t){const n=(""+e).match(CR);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}const TR=e=>+e||0;function jR(e,t){const n={},r=m_(t),a=r?Object.keys(t):t,i=m_(e)?r?n=>y_(e[n],e[t[n]]):t=>e[t]:()=>e;for(const o of a)n[o]=TR(i(o));return n}function ER(e){return jR(e,{top:"y",right:"x",bottom:"y",left:"x"})}function PR(e){return jR(e,["topLeft","topRight","bottomLeft","bottomRight"])}function NR(e){const t=ER(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function DR(e,t){e=e||{},t=t||lR.font;let n=y_(e.size,t.size);"string"===typeof n&&(n=parseInt(n,10));let r=y_(e.style,t.style);r&&!(""+r).match(AR)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");const a={family:y_(e.family,t.family),lineHeight:kR(y_(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:y_(e.weight,t.weight),string:""};return a.string=function(e){return!e||h_(e.size)||h_(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(a),a}function MR(e,t,n,r){let a,i,o,s=!0;for(a=0,i=e.length;a<i;++a)if(o=e[a],void 0!==o&&(void 0!==t&&"function"===typeof o&&(o=o(t),s=!1),void 0!==n&&f_(o)&&(o=o[n%o.length],s=!1),void 0!==o))return r&&!s&&(r.cacheable=!1),o}function _R(e,t){return Object.assign(Object.create(e),t)}function IR(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[""],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>e[0];M_(r)||(r=HR("_fallback",e));const i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:r,_getTarget:a,override:a=>IR([a,...e],t,n,r)};return new Proxy(i,{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,r)=>BR(n,r,(()=>function(e,t,n,r){let a;for(const i of t)if(a=HR(LR(i,e),n),M_(a))return FR(e,a)?UR(n,r,e,a):a}(r,t,e,n))),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>qR(e).includes(t),ownKeys:e=>qR(e),set(e,t,n){const r=e._storage||(e._storage=a());return e[t]=r[t]=n,delete e._keys,!0}})}function RR(e,t,n,r){const a={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:OR(e,r),setContext:t=>RR(e,t,n,r),override:a=>RR(e.override(a),t,n,r)};return new Proxy(a,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,t,n)=>BR(e,t,(()=>function(e,t,n){const{_proxy:r,_context:a,_subProxy:i,_descriptors:o}=e;let s=r[t];__(s)&&o.isScriptable(t)&&(s=function(e,t,n,r){const{_proxy:a,_context:i,_subProxy:o,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e),t=t(i,o||r),s.delete(e),FR(e,t)&&(t=UR(a._scopes,a,e,t));return t}(t,s,e,n));f_(s)&&s.length&&(s=function(e,t,n,r){const{_proxy:a,_context:i,_subProxy:o,_descriptors:s}=n;if(M_(i.index)&&r(e))t=t[i.index%t.length];else if(m_(t[0])){const n=t,r=a._scopes.filter((e=>e!==n));t=[];for(const l of n){const n=UR(r,a,e,l);t.push(RR(n,i,o&&o[e],s))}}return t}(t,s,e,o.isIndexable));FR(t,s)&&(s=RR(s,a,i&&i[t],o));return s}(e,t,n))),getOwnPropertyDescriptor:(t,n)=>t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),set:(t,n,r)=>(e[n]=r,delete t[n],!0)})}function OR(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{scriptable:!0,indexable:!0};const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:a=t.allKeys}=e;return{allKeys:a,scriptable:n,indexable:r,isScriptable:__(n)?n:()=>n,isIndexable:__(r)?r:()=>r}}const LR=(e,t)=>e?e+D_(t):t,FR=(e,t)=>m_(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function BR(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function zR(e,t,n){return __(e)?e(t,n):e}const VR=(e,t)=>!0===e?t:"string"===typeof e?N_(t,e):void 0;function WR(e,t,n,r,a){for(const i of t){const t=VR(n,i);if(t){e.add(t);const i=zR(t._fallback,n,a);if(M_(i)&&i!==n&&i!==r)return i}else if(!1===t&&M_(r)&&n!==r)return null}return!1}function UR(e,t,n,r){const a=t._rootScopes,i=zR(t._fallback,n,r),o=[...e,...a],s=new Set;s.add(r);let l=$R(s,o,n,i||n,r);return null!==l&&((!M_(i)||i===n||(l=$R(s,o,i,l,r),null!==l))&&IR(Array.from(s),[""],a,i,(()=>function(e,t,n){const r=e._getTarget();t in r||(r[t]={});const a=r[t];if(f_(a)&&m_(n))return n;return a}(t,n,r))))}function $R(e,t,n,r,a){for(;n;)n=WR(e,t,n,r,a);return n}function HR(e,t){for(const n of t){if(!n)continue;const t=n[e];if(M_(t))return t}}function qR(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const n of e)for(const e of Object.keys(n).filter((e=>!e.startsWith("_"))))t.add(e);return Array.from(t)}(e._scopes)),t}function GR(e,t,n,r){const{iScale:a}=e,{key:i="r"}=this._parsing,o=new Array(r);let s,l,c,u;for(s=0,l=r;s<l;++s)c=s+n,u=t[c],o[s]={r:a.parse(N_(u,i),c)};return o}const KR=Number.EPSILON||1e-14,YR=(e,t)=>t<e.length&&!e[t].skip&&e[t],XR=e=>"x"===e?"y":"x";function ZR(e,t,n,r){const a=e.skip?t:e,i=t,o=n.skip?t:n,s=Q_(i,a),l=Q_(o,i);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=r*c,p=r*u;return{previous:{x:i.x-d*(o.x-a.x),y:i.y-d*(o.y-a.y)},next:{x:i.x+p*(o.x-a.x),y:i.y+p*(o.y-a.y)}}}function JR(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x";const n=XR(t),r=e.length,a=Array(r).fill(0),i=Array(r);let o,s,l,c=YR(e,0);for(o=0;o<r;++o)if(s=l,l=c,c=YR(e,o+1),l){if(c){const e=c[t]-l[t];a[o]=0!==e?(c[n]-l[n])/e:0}i[o]=s?c?$_(a[o-1])!==$_(a[o])?0:(a[o-1]+a[o])/2:a[o-1]:a[o]}!function(e,t,n){const r=e.length;let a,i,o,s,l,c=YR(e,0);for(let u=0;u<r-1;++u)l=c,c=YR(e,u+1),l&&c&&(G_(t[u],0,KR)?n[u]=n[u+1]=0:(a=n[u]/t[u],i=n[u+1]/t[u],s=Math.pow(a,2)+Math.pow(i,2),s<=9||(o=3/Math.sqrt(s),n[u]=a*o*t[u],n[u+1]=i*o*t[u])))}(e,a,i),function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"x";const r=XR(n),a=e.length;let i,o,s,l=YR(e,0);for(let c=0;c<a;++c){if(o=s,s=l,l=YR(e,c+1),!s)continue;const a=s[n],u=s[r];o&&(i=(a-o[n])/3,s[`cp1${n}`]=a-i,s[`cp1${r}`]=u-i*t[c]),l&&(i=(l[n]-a)/3,s[`cp2${n}`]=a+i,s[`cp2${r}`]=u+i*t[c])}}(e,i,t)}function QR(e,t,n){return Math.max(Math.min(e,n),t)}function eO(e,t,n,r,a){let i,o,s,l;if(t.spanGaps&&(e=e.filter((e=>!e.skip))),"monotone"===t.cubicInterpolationMode)JR(e,a);else{let n=r?e[e.length-1]:e[0];for(i=0,o=e.length;i<o;++i)s=e[i],l=ZR(n,s,e[Math.min(i+1,o-(r?0:1))%o],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,n=s}t.capBezierPoints&&function(e,t){let n,r,a,i,o,s=mR(e[0],t);for(n=0,r=e.length;n<r;++n)o=i,i=s,s=n<r-1&&mR(e[n+1],t),i&&(a=e[n],o&&(a.cp1x=QR(a.cp1x,t.left,t.right),a.cp1y=QR(a.cp1y,t.top,t.bottom)),s&&(a.cp2x=QR(a.cp2x,t.left,t.right),a.cp2y=QR(a.cp2y,t.top,t.bottom)))}(e,n)}function tO(){return"undefined"!==typeof window&&"undefined"!==typeof document}function nO(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function rO(e,t,n){let r;return"string"===typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}const aO=e=>window.getComputedStyle(e,null);const iO=["top","right","bottom","left"];function oO(e,t,n){const r={};n=n?"-"+n:"";for(let a=0;a<4;a++){const i=iO[a];r[i]=parseFloat(e[t+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function sO(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,a=aO(n),i="border-box"===a.boxSizing,o=oO(a,"padding"),s=oO(a,"border","width"),{x:l,y:c,box:u}=function(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:a,offsetY:i}=r;let o,s,l=!1;if(((e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot))(a,i,e.target))o=a,s=i;else{const e=t.getBoundingClientRect();o=r.clientX-e.left,s=r.clientY-e.top,l=!0}return{x:o,y:s,box:l}}(e,n),d=o.left+(u&&s.left),p=o.top+(u&&s.top);let{width:h,height:f}=t;return i&&(h-=o.width+s.width,f-=o.height+s.height),{x:Math.round((l-d)/h*n.width/r),y:Math.round((c-p)/f*n.height/r)}}const lO=e=>Math.round(10*e)/10;function cO(e,t,n,r){const a=aO(e),i=oO(a,"margin"),o=rO(a.maxWidth,e,"clientWidth")||F_,s=rO(a.maxHeight,e,"clientHeight")||F_,l=function(e,t,n){let r,a;if(void 0===t||void 0===n){const i=nO(e);if(i){const e=i.getBoundingClientRect(),o=aO(i),s=oO(o,"border","width"),l=oO(o,"padding");t=e.width-l.width-s.width,n=e.height-l.height-s.height,r=rO(o.maxWidth,i,"clientWidth"),a=rO(o.maxHeight,i,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||F_,maxHeight:a||F_}}(e,t,n);let{width:c,height:u}=l;if("content-box"===a.boxSizing){const e=oO(a,"border","width"),t=oO(a,"padding");c-=t.width+e.width,u-=t.height+e.height}return c=Math.max(0,c-i.width),u=Math.max(0,r?Math.floor(c/r):u-i.height),c=lO(Math.min(c,o,l.maxWidth)),u=lO(Math.min(u,s,l.maxHeight)),c&&!u&&(u=lO(c/2)),{width:c,height:u}}function uO(e,t,n){const r=t||1,a=Math.floor(e.height*r),i=Math.floor(e.width*r);e.height=a/r,e.width=i/r;const o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==r||o.height!==a||o.width!==i)&&(e.currentDevicePixelRatio=r,o.height=a,o.width=i,e.ctx.setTransform(r,0,0,r,0,0),!0)}const dO=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(Dpe){}return e}();function pO(e,t){const n=function(e,t){return aO(e).getPropertyValue(t)}(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function hO(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function fO(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function mO(e,t,n,r){const a={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},o=hO(e,a,n),s=hO(a,i,n),l=hO(i,t,n),c=hO(o,s,n),u=hO(s,l,n);return hO(c,u,n)}const gO=new Map;function vO(e,t,n){return function(e,t){t=t||{};const n=e+JSON.stringify(t);let r=gO.get(n);return r||(r=new Intl.NumberFormat(e,t),gO.set(n,r)),r}(t,n).format(e)}function yO(e,t,n){return e?function(e,t){return{x:n=>e+e+t-n,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}}(t,n):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function bO(e,t){let n,r;"ltr"!==t&&"rtl"!==t||(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function xO(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function wO(e){return"angle"===e?{between:nI,compare:eI,normalize:tI}:{between:aI,compare:(e,t)=>e-t,normalize:e=>e}}function SO(e){let{start:t,end:n,count:r,loop:a,style:i}=e;return{start:t%r,end:n%r,loop:a&&(n-t+1)%r===0,style:i}}function CO(e,t,n){if(!n)return[e];const{property:r,start:a,end:i}=n,o=t.length,{compare:s,between:l,normalize:c}=wO(r),{start:u,end:d,loop:p,style:h}=function(e,t,n){const{property:r,start:a,end:i}=n,{between:o,normalize:s}=wO(r),l=t.length;let c,u,{start:d,end:p,loop:h}=e;if(h){for(d+=l,p+=l,c=0,u=l;c<u&&o(s(t[d%l][r]),a,i);++c)d--,p--;d%=l,p%=l}return p<d&&(p+=l),{start:d,end:p,loop:h,style:e.style}}(e,t,n),f=[];let m,g,v,y=!1,b=null;const x=()=>y||l(a,v,m)&&0!==s(a,v),w=()=>!y||0===s(i,m)||l(i,v,m);for(let S=u,C=u;S<=d;++S)g=t[S%o],g.skip||(m=c(g[r]),m!==v&&(y=l(m,a,i),null===b&&x()&&(b=0===s(m,a)?S:C),null!==b&&w()&&(f.push(SO({start:b,end:S,loop:p,count:o,style:h})),b=null),C=S,v=m));return null!==b&&f.push(SO({start:b,end:d,loop:p,count:o,style:h})),f}function AO(e,t){const n=[],r=e.segments;for(let a=0;a<r.length;a++){const i=CO(r[a],e.points,t);i.length&&n.push(...i)}return n}function kO(e,t,n,r){return r&&r.setContext&&n?function(e,t,n,r){const a=e._chart.getContext(),i=TO(e.options),{_datasetIndex:o,options:{spanGaps:s}}=e,l=n.length,c=[];let u=i,d=t[0].start,p=d;function h(e,t,r,a){const i=s?-1:1;if(e!==t){for(e+=l;n[e%l].skip;)e-=i;for(;n[t%l].skip;)t+=i;e%l!==t%l&&(c.push({start:e%l,end:t%l,loop:r,style:a}),u=a,d=t%l)}}for(const f of t){d=s?d:f.start;let e,t=n[d%l];for(p=d+1;p<=f.end;p++){const i=n[p%l];e=TO(r.setContext(_R(a,{type:"segment",p0:t,p1:i,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:o}))),jO(e,u)&&h(d,p-1,f.loop,u),t=i,u=e}d<p-1&&h(d,p-1,f.loop,u)}return c}(e,t,n,r):t}function TO(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function jO(e,t){return t&&JSON.stringify(e)!==JSON.stringify(t)}var EO=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,r){const a=t.listeners[r],i=t.duration;a.forEach((r=>r({chart:e,initial:t.initial,numSteps:i,currentStep:Math.min(n-t.start,i)})))}_refresh(){this._request||(this._running=!0,this._request=dI.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),t=0;this._charts.forEach(((n,r)=>{if(!n.running||!n.items.length)return;const a=n.items;let i,o=a.length-1,s=!1;for(;o>=0;--o)i=a[o],i._active?(i._total>n.duration&&(n.duration=i._total),i.tick(e),s=!0):(a[o]=a[a.length-1],a.pop());s&&(r.draw(),this._notify(r,n,e,"progress")),a.length||(n.running=!1,this._notify(r,n,e,"complete"),n.initial=!1),t+=a.length})),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce(((e,t)=>Math.max(e,t._duration)),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const n=t.items;let r=n.length-1;for(;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}};const PO="transparent",NO={boolean:(e,t,n)=>n>.5?t:e,color(e,t,n){const r=nR(e||PO),a=r.valid&&nR(t||PO);return a&&a.valid?a.mix(r,n).hexString():t},number:(e,t,n)=>e+(t-e)*n};class DO{constructor(e,t,n,r){const a=t[n];r=MR([e.to,r,a,e.from]);const i=MR([e.from,a,r]);this._active=!0,this._fn=e.fn||NO[e.type||typeof i],this._easing=xI[e.easing]||xI.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=i,this._to=r,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);const r=this._target[this._prop],a=n-this._start,i=this._duration-a;this._start=n,this._duration=Math.floor(Math.max(i,e.duration)),this._total+=a,this._loop=!!e.loop,this._to=MR([e.to,t,r,e.from]),this._from=MR([e.from,r,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,n=this._duration,r=this._prop,a=this._from,i=this._loop,o=this._to;let s;if(this._active=a!==o&&(i||t<n),!this._active)return this._target[r]=o,void this._notify(!0);t<0?this._target[r]=a:(s=t/n%2,s=i&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[r]=this._fn(a,o,s))}wait(){const e=this._promises||(this._promises=[]);return new Promise(((t,n)=>{e.push({res:t,rej:n})}))}_notify(e){const t=e?"res":"rej",n=this._promises||[];for(let r=0;r<n.length;r++)n[r][t]()}}lR.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const MO=Object.keys(lR.animation);lR.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),lR.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),lR.describe("animations",{_fallback:"animation"}),lR.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}});class _O{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!m_(e))return;const t=this._properties;Object.getOwnPropertyNames(e).forEach((n=>{const r=e[n];if(!m_(r))return;const a={};for(const e of MO)a[e]=r[e];(f_(r.properties)&&r.properties||[n]).forEach((e=>{e!==n&&t.has(e)||t.set(e,a)}))}))}_animateOptions(e,t){const n=t.options,r=function(e,t){if(!t)return;let n=e.options;if(!n)return void(e.options=t);n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(e,n);if(!r)return[];const a=this._createAnimations(r,n);return n.$shared&&function(e,t){const n=[],r=Object.keys(t);for(let a=0;a<r.length;a++){const t=e[r[a]];t&&t.active()&&n.push(t.wait())}return Promise.all(n)}(e.options.$animations,n).then((()=>{e.options=n}),(()=>{})),a}_createAnimations(e,t){const n=this._properties,r=[],a=e.$animations||(e.$animations={}),i=Object.keys(t),o=Date.now();let s;for(s=i.length-1;s>=0;--s){const l=i[s];if("$"===l.charAt(0))continue;if("options"===l){r.push(...this._animateOptions(e,t));continue}const c=t[l];let u=a[l];const d=n.get(l);if(u){if(d&&u.active()){u.update(d,c,o);continue}u.cancel()}d&&d.duration?(a[l]=u=new DO(d,e,l,c),r.push(u)):e[l]=c}return r}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const n=this._createAnimations(e,t);return n.length?(EO.add(this._chart,n),!0):void 0}}function IO(e,t){const n=e&&e.options||{},r=n.reverse,a=void 0===n.min?t:0,i=void 0===n.max?t:0;return{start:r?i:a,end:r?a:i}}function RO(e,t){const n=[],r=e._getSortedDatasetMetas(t);let a,i;for(a=0,i=r.length;a<i;++a)n.push(r[a].index);return n}function OO(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const a=e.keys,i="single"===r.mode;let o,s,l,c;if(null!==t){for(o=0,s=a.length;o<s;++o){if(l=+a[o],l===n){if(r.all)continue;break}c=e.values[l],g_(c)&&(i||0===t||$_(t)===$_(c))&&(t+=c)}return t}}function LO(e,t){const n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function FO(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function BO(e,t,n,r){for(const a of t.getMatchingVisibleMetas(r).reverse()){const t=e[a.index];if(n&&t>0||!n&&t<0)return a.index}return null}function zO(e,t){const{chart:n,_cachedMeta:r}=e,a=n._stacks||(n._stacks={}),{iScale:i,vScale:o,index:s}=r,l=i.axis,c=o.axis,u=function(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}(i,o,r),d=t.length;let p;for(let h=0;h<d;++h){const e=t[h],{[l]:n,[c]:i}=e;p=(e._stacks||(e._stacks={}))[c]=FO(a,u,n),p[s]=i,p._top=BO(p,o,!0,r.type),p._bottom=BO(p,o,!1,r.type)}}function VO(e,t){const n=e.scales;return Object.keys(n).filter((e=>n[e].axis===t)).shift()}function WO(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[r]||void 0===t[r][n])return;delete t[r][n]}}}const UO=e=>"reset"===e||"none"===e,$O=(e,t)=>t?e:Object.assign({},e);class HO{constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=LO(e.vScale,e),this.addElements()}updateIndex(e){this.index!==e&&WO(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,n=this.getDataset(),r=(e,t,n,r)=>"x"===e?t:"r"===e?r:n,a=t.xAxisID=y_(n.xAxisID,VO(e,"x")),i=t.yAxisID=y_(n.yAxisID,VO(e,"y")),o=t.rAxisID=y_(n.rAxisID,VO(e,"r")),s=t.indexAxis,l=t.iAxisID=r(s,a,i,o),c=t.vAxisID=r(s,i,a,o);t.xScale=this.getScaleForId(a),t.yScale=this.getScaleForId(i),t.rScale=this.getScaleForId(o),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&cI(this._data,this),e._stacked&&WO(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(m_(t))this._data=function(e){const t=Object.keys(e),n=new Array(t.length);let r,a,i;for(r=0,a=t.length;r<a;++r)i=t[r],n[r]={x:i,y:e[i]};return n}(t);else if(n!==t){if(n){cI(n,this);const e=this._cachedMeta;WO(e),e._parsed=[]}t&&Object.isExtensible(t)&&function(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),lI.forEach((t=>{const n="_onData"+D_(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(){for(var t=arguments.length,a=new Array(t),i=0;i<t;i++)a[i]=arguments[i];const o=r.apply(this,a);return e._chartjs.listeners.forEach((e=>{"function"===typeof e[n]&&e[n](...a)})),o}})})))}(t,this),this._syncList=[],this._data=t}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,n=this.getDataset();let r=!1;this._dataCheck();const a=t._stacked;t._stacked=LO(t.vScale,t),t.stack!==n.stack&&(r=!0,WO(t),t.stack=n.stack),this._resyncElements(e),(r||a!==t._stacked)&&zO(this,t._parsed)}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:n,_data:r}=this,{iScale:a,_stacked:i}=n,o=a.axis;let s,l,c,u=0===e&&t===r.length||n._sorted,d=e>0&&n._parsed[e-1];if(!1===this._parsing)n._parsed=r,n._sorted=!0,c=r;else{c=f_(r[e])?this.parseArrayData(n,r,e,t):m_(r[e])?this.parseObjectData(n,r,e,t):this.parsePrimitiveData(n,r,e,t);const a=()=>null===l[o]||d&&l[o]<d[o];for(s=0;s<t;++s)n._parsed[s+e]=l=c[s],u&&(a()&&(u=!1),d=l);n._sorted=u}i&&zO(this,c)}parsePrimitiveData(e,t,n,r){const{iScale:a,vScale:i}=e,o=a.axis,s=i.axis,l=a.getLabels(),c=a===i,u=new Array(r);let d,p,h;for(d=0,p=r;d<p;++d)h=d+n,u[d]={[o]:c||a.parse(l[h],h),[s]:i.parse(t[h],h)};return u}parseArrayData(e,t,n,r){const{xScale:a,yScale:i}=e,o=new Array(r);let s,l,c,u;for(s=0,l=r;s<l;++s)c=s+n,u=t[c],o[s]={x:a.parse(u[0],c),y:i.parse(u[1],c)};return o}parseObjectData(e,t,n,r){const{xScale:a,yScale:i}=e,{xAxisKey:o="x",yAxisKey:s="y"}=this._parsing,l=new Array(r);let c,u,d,p;for(c=0,u=r;c<u;++c)d=c+n,p=t[d],l[c]={x:a.parse(N_(p,o),d),y:i.parse(N_(p,s),d)};return l}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,n){const r=this.chart,a=this._cachedMeta,i=t[e.axis];return OO({keys:RO(r,!0),values:t._stacks[e.axis]},i,a.index,{mode:n})}updateRangeFromParsed(e,t,n,r){const a=n[t.axis];let i=null===a?NaN:a;const o=r&&n._stacks[t.axis];r&&o&&(r.values=o,i=OO(r,a,this._cachedMeta.index)),e.min=Math.min(e.min,i),e.max=Math.max(e.max,i)}getMinMax(e,t){const n=this._cachedMeta,r=n._parsed,a=n._sorted&&e===n.iScale,i=r.length,o=this._getOtherScale(e),s=((e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:RO(n,!0),values:null})(t,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(e){const{min:t,max:n,minDefined:r,maxDefined:a}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:a?n:Number.POSITIVE_INFINITY}}(o);let d,p;function h(){p=r[d];const t=p[o.axis];return!g_(p[e.axis])||c>t||u<t}for(d=0;d<i&&(h()||(this.updateRangeFromParsed(l,e,p,s),!a));++d);if(a)for(d=i-1;d>=0;--d)if(!h()){this.updateRangeFromParsed(l,e,p,s);break}return l}getAllParsedValues(e){const t=this._cachedMeta._parsed,n=[];let r,a,i;for(r=0,a=t.length;r<a;++r)i=t[r][e.axis],g_(i)&&n.push(i);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,n=t.iScale,r=t.vScale,a=this.getParsed(e);return{label:n?""+n.getLabelForValue(a[n.axis]):"",value:r?""+r.getLabelForValue(a[r.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){let t,n,r,a;return m_(e)?(t=e.top,n=e.right,r=e.bottom,a=e.left):t=n=r=a=e,{top:t,right:n,bottom:r,left:a,disabled:!1===e}}(y_(this.options.clip,function(e,t,n){if(!1===n)return!1;const r=IO(e,n),a=IO(t,n);return{top:a.end,right:r.end,bottom:a.start,left:r.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,n=this._cachedMeta,r=n.data||[],a=t.chartArea,i=[],o=this._drawStart||0,s=this._drawCount||r.length-o,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(e,a,o,s),c=o;c<o+s;++c){const t=r[c];t.hidden||(t.active&&l?i.push(t):t.draw(e,a))}for(c=0;c<i.length;++c)i[c].draw(e,a)}getStyle(e,t){const n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,t,n){const r=this.getDataset();let a;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];a=t.$context||(t.$context=function(e,t,n){return _R(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(this.getContext(),e,t)),a.parsed=this.getParsed(e),a.raw=r.data[e],a.index=a.dataIndex=e}else a=this.$context||(this.$context=function(e,t){return _R(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),a.dataset=r,a.index=a.datasetIndex=this.index;return a.active=!!t,a.mode=n,a}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2?arguments[2]:void 0;const r="active"===t,a=this._cachedDataOpts,i=e+"-"+t,o=a[i],s=this.enableOptionSharing&&M_(n);if(o)return $O(o,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,e),u=r?[`${e}Hover`,"hover",e,""]:[e,""],d=l.getOptionScopes(this.getDataset(),c),p=Object.keys(lR.elements[e]),h=l.resolveNamedOptions(d,p,(()=>this.getContext(n,r)),u);return h.$shared&&(h.$shared=s,a[i]=Object.freeze($O(h,s))),h}_resolveAnimations(e,t,n){const r=this.chart,a=this._cachedDataOpts,i=`animation-${t}`,o=a[i];if(o)return o;let s;if(!1!==r.options.animation){const r=this.chart.config,a=r.datasetAnimationScopeKeys(this._type,t),i=r.getOptionScopes(this.getDataset(),a);s=r.createResolver(i,this.getContext(e,n,t))}const l=new _O(r,s&&s.animations);return s&&s._cacheable&&(a[i]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||UO(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const n=this.resolveDataElementOptions(e,t),r=this._sharedOptions,a=this.getSharedOptions(n),i=this.includeOptions(t,a)||a!==r;return this.updateSharedOptions(a,t,n),{sharedOptions:a,includeOptions:i}}updateElement(e,t,n,r){UO(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}updateSharedOptions(e,t,n){e&&!UO(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,r){e.active=r;const a=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(a)||a})}removeHoverStyle(e,t,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,t,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,n=this._cachedMeta.data;for(const[o,s,l]of this._syncList)this[o](s,l);this._syncList=[];const r=n.length,a=t.length,i=Math.min(a,r);i&&this.parse(0,i),a>r?this._insertElements(r,a-r,e):a<r&&this._removeElements(a,r-a)}_insertElements(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=this._cachedMeta,a=r.data,i=e+t;let o;const s=e=>{for(e.length+=t,o=e.length-1;o>=i;o--)e[o]=e[o-t]};for(s(a),o=e;o<i;++o)a[o]=new this.dataElementType;this._parsing&&s(r._parsed),this.parse(e,t),n&&this.updateElements(a,e,t,"reset")}updateElements(e,t,n,r){}_removeElements(e,t){const n=this._cachedMeta;if(this._parsing){const r=n._parsed.splice(e,t);n._stacked&&WO(n,r)}n.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,n,r]=e;this[t](n,r)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function qO(e){const t=e.iScale,n=function(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let t=0,a=n.length;t<a;t++)r=r.concat(n[t].controller.getAllParsedValues(e));e._cache.$bar=uI(r.sort(((e,t)=>e-t)))}return e._cache.$bar}(t,e.type);let r,a,i,o,s=t._length;const l=()=>{32767!==i&&-32768!==i&&(M_(o)&&(s=Math.min(s,Math.abs(i-o)||s)),o=i)};for(r=0,a=n.length;r<a;++r)i=t.getPixelForValue(n[r]),l();for(o=void 0,r=0,a=t.ticks.length;r<a;++r)i=t.getPixelForTick(r),l();return s}function GO(e,t,n,r){return f_(e)?function(e,t,n,r){const a=n.parse(e[0],r),i=n.parse(e[1],r),o=Math.min(a,i),s=Math.max(a,i);let l=o,c=s;Math.abs(o)>Math.abs(s)&&(l=s,c=o),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:a,end:i,min:o,max:s}}(e,t,n,r):t[n.axis]=n.parse(e,r),t}function KO(e,t,n,r){const a=e.iScale,i=e.vScale,o=a.getLabels(),s=a===i,l=[];let c,u,d,p;for(c=n,u=n+r;c<u;++c)p=t[c],d={},d[a.axis]=s||a.parse(o[c],c),l.push(GO(p,d,i,c));return l}function YO(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function XO(e,t,n,r){let a=t.borderSkipped;const i={};if(!a)return void(e.borderSkipped=i);if(!0===a)return void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:o,end:s,reverse:l,top:c,bottom:u}=function(e){let t,n,r,a,i;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(a="end",i="start"):(a="start",i="end"),{start:n,end:r,reverse:t,top:a,bottom:i}}(e);"middle"===a&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?a=c:(n._bottom||0)===r?a=u:(i[ZO(u,o,s,l)]=!0,a=c)),i[ZO(a,o,s,l)]=!0,e.borderSkipped=i}function ZO(e,t,n,r){var a,i,o;return r?(o=n,e=JO(e=(a=e)===(i=t)?o:a===o?i:a,n,t)):e=JO(e,t,n),e}function JO(e,t,n){return"start"===e?t:"end"===e?n:e}function QO(e,t,n){let{inflateAmount:r}=t;e.inflateAmount="auto"===r?1===n?.33:0:r}HO.defaults={},HO.prototype.datasetElementType=null,HO.prototype.dataElementType=null;class eL extends HO{parsePrimitiveData(e,t,n,r){return KO(e,t,n,r)}parseArrayData(e,t,n,r){return KO(e,t,n,r)}parseObjectData(e,t,n,r){const{iScale:a,vScale:i}=e,{xAxisKey:o="x",yAxisKey:s="y"}=this._parsing,l="x"===a.axis?o:s,c="x"===i.axis?o:s,u=[];let d,p,h,f;for(d=n,p=n+r;d<p;++d)f=t[d],h={},h[a.axis]=a.parse(N_(f,l),d),u.push(GO(N_(f,c),h,i,d));return u}updateRangeFromParsed(e,t,n,r){super.updateRangeFromParsed(e,t,n,r);const a=n._custom;a&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,a.min),e.max=Math.max(e.max,a.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:n,vScale:r}=t,a=this.getParsed(e),i=a._custom,o=YO(i)?"["+i.start+", "+i.end+"]":""+r.getLabelForValue(a[r.axis]);return{label:""+n.getLabelForValue(a[n.axis]),value:o}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,n,r){const a="reset"===r,{index:i,_cachedMeta:{vScale:o}}=this,s=o.getBasePixel(),l=o.isHorizontal(),c=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(t,r);for(let p=t;p<t+n;p++){const t=this.getParsed(p),n=a||h_(t[o.axis])?{base:s,head:s}:this._calculateBarValuePixels(p),h=this._calculateBarIndexPixels(p,c),f=(t._stacks||{})[o.axis],m={horizontal:l,base:n.base,enableBorderRadius:!f||YO(t._custom)||i===f._top||i===f._bottom,x:l?n.head:h.center,y:l?h.center:n.head,height:l?h.size:Math.abs(n.size),width:l?Math.abs(n.size):h.size};d&&(m.options=u||this.resolveDataElementOptions(p,e[p].active?"active":r));const g=m.options||e[p].options;XO(m,g,f,i),QO(m,g,c.ratio),this.updateElement(e[p],p,m,r)}}_getStacks(e,t){const{iScale:n}=this._cachedMeta,r=n.getMatchingVisibleMetas(this._type).filter((e=>e.controller.options.grouped)),a=n.options.stacked,i=[],o=e=>{const n=e.controller.getParsed(t),r=n&&n[e.vScale.axis];if(h_(r)||isNaN(r))return!0};for(const s of r)if((void 0===t||!o(s))&&((!1===a||-1===i.indexOf(s.stack)||void 0===a&&void 0===s.stack)&&i.push(s.stack),s.index===e))break;return i.length||i.push(void 0),i}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,n){const r=this._getStacks(e,n),a=void 0!==t?r.indexOf(t):-1;return-1===a?r.length-1:a}_getRuler(){const e=this.options,t=this._cachedMeta,n=t.iScale,r=[];let a,i;for(a=0,i=t.data.length;a<i;++a)r.push(n.getPixelForValue(this.getParsed(a)[n.axis],a));const o=e.barThickness;return{min:o||qO(t),pixels:r,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:e.grouped,ratio:o?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:n},options:{base:r,minBarLength:a}}=this,i=r||0,o=this.getParsed(e),s=o._custom,l=YO(s);let c,u,d=o[t.axis],p=0,h=n?this.applyStack(t,o,n):d;h!==d&&(p=h-d,h=d),l&&(d=s.barStart,h=s.barEnd-s.barStart,0!==d&&$_(d)!==$_(s.barEnd)&&(p=0),p+=d);const f=h_(r)||l?p:r;let m=t.getPixelForValue(f);if(c=this.chart.getDataVisibility(e)?t.getPixelForValue(p+h):m,u=c-m,Math.abs(u)<a){u=function(e,t,n){return 0!==e?$_(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(u,t,i)*a,d===i&&(m-=u/2);const e=t.getPixelForDecimal(0),n=t.getPixelForDecimal(1),r=Math.min(e,n),o=Math.max(e,n);m=Math.max(Math.min(m,o),r),c=m+u}if(m===t.getPixelForValue(i)){const e=$_(u)*t.getLineWidthForValue(i)/2;m+=e,u-=e}return{size:u,base:m,head:c,center:c+u/2}}_calculateBarIndexPixels(e,t){const n=t.scale,r=this.options,a=r.skipNull,i=y_(r.maxBarThickness,1/0);let o,s;if(t.grouped){const n=a?this._getStackCount(e):t.stackCount,l="flex"===r.barThickness?function(e,t,n,r){const a=t.pixels,i=a[e];let o=e>0?a[e-1]:null,s=e<a.length-1?a[e+1]:null;const l=n.categoryPercentage;null===o&&(o=i-(null===s?t.end-t.start:s-i)),null===s&&(s=i+i-o);const c=i-(i-Math.min(o,s))/2*l;return{chunk:Math.abs(s-o)/2*l/r,ratio:n.barPercentage,start:c}}(e,t,r,n):function(e,t,n,r){const a=n.barThickness;let i,o;return h_(a)?(i=t.min*n.categoryPercentage,o=n.barPercentage):(i=a*r,o=1),{chunk:i/r,ratio:o,start:t.pixels[e]-i/2}}(e,t,r,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,a?e:void 0);o=l.start+l.chunk*c+l.chunk/2,s=Math.min(i,l.chunk*l.ratio)}else o=n.getPixelForValue(this.getParsed(e)[n.axis],e),s=Math.min(i,t.min*t.ratio);return{base:o-s/2,head:o+s/2,center:o,size:s}}draw(){const e=this._cachedMeta,t=e.vScale,n=e.data,r=n.length;let a=0;for(;a<r;++a)null!==this.getParsed(a)[t.axis]&&n[a].draw(this._ctx)}}eL.id="bar",eL.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},eL.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class tL extends HO{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,t,n,r){const a=super.parsePrimitiveData(e,t,n,r);for(let i=0;i<a.length;i++)a[i]._custom=this.resolveDataElementOptions(i+n).radius;return a}parseArrayData(e,t,n,r){const a=super.parseArrayData(e,t,n,r);for(let i=0;i<a.length;i++){const e=t[n+i];a[i]._custom=y_(e[2],this.resolveDataElementOptions(i+n).radius)}return a}parseObjectData(e,t,n,r){const a=super.parseObjectData(e,t,n,r);for(let i=0;i<a.length;i++){const e=t[n+i];a[i]._custom=y_(e&&e.r&&+e.r,this.resolveDataElementOptions(i+n).radius)}return a}getMaxOverflow(){const e=this._cachedMeta.data;let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}getLabelAndValue(e){const t=this._cachedMeta,{xScale:n,yScale:r}=t,a=this.getParsed(e),i=n.getLabelForValue(a.x),o=r.getLabelForValue(a.y),s=a._custom;return{label:t.label,value:"("+i+", "+o+(s?", "+s:"")+")"}}update(e){const t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,n,r){const a="reset"===r,{iScale:i,vScale:o}=this._cachedMeta,{sharedOptions:s,includeOptions:l}=this._getSharedOptions(t,r),c=i.axis,u=o.axis;for(let d=t;d<t+n;d++){const t=e[d],n=!a&&this.getParsed(d),p={},h=p[c]=a?i.getPixelForDecimal(.5):i.getPixelForValue(n[c]),f=p[u]=a?o.getBasePixel():o.getPixelForValue(n[u]);p.skip=isNaN(h)||isNaN(f),l&&(p.options=s||this.resolveDataElementOptions(d,t.active?"active":r),a&&(p.options.radius=0)),this.updateElement(t,d,p,r)}}resolveDataElementOptions(e,t){const n=this.getParsed(e);let r=super.resolveDataElementOptions(e,t);r.$shared&&(r=Object.assign({},r,{$shared:!1}));const a=r.radius;return"active"!==t&&(r.radius=0),r.radius+=y_(n&&n._custom,a),r}}tL.id="bubble",tL.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},tL.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class nL extends HO{constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const n=this.getDataset().data,r=this._cachedMeta;if(!1===this._parsing)r._parsed=n;else{let a,i,o=e=>+n[e];if(m_(n[e])){const{key:e="value"}=this._parsing;o=t=>+N_(n[t],e)}for(a=e,i=e+t;a<i;++a)r._parsed[a]=o(a)}}_getRotation(){return Y_(this.options.rotation-90)}_getCircumference(){return Y_(this.options.circumference)}_getRotationExtents(){let e=O_,t=-O_;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)){const r=this.chart.getDatasetMeta(n).controller,a=r._getRotation(),i=r._getCircumference();e=Math.min(e,a),t=Math.max(t,a+i)}return{rotation:e,circumference:t-e}}update(e){const t=this.chart,{chartArea:n}=t,r=this._cachedMeta,a=r.data,i=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,o=Math.max((Math.min(n.width,n.height)-i)/2,0),s=Math.min((l=this.options.cutout,c=o,"string"===typeof l&&l.endsWith("%")?parseFloat(l)/100:l/c),1);var l,c;const u=this._getRingWeight(this.index),{circumference:d,rotation:p}=this._getRotationExtents(),{ratioX:h,ratioY:f,offsetX:m,offsetY:g}=function(e,t,n){let r=1,a=1,i=0,o=0;if(t<O_){const s=e,l=s+t,c=Math.cos(s),u=Math.sin(s),d=Math.cos(l),p=Math.sin(l),h=(e,t,r)=>nI(e,s,l,!0)?1:Math.max(t,t*n,r,r*n),f=(e,t,r)=>nI(e,s,l,!0)?-1:Math.min(t,t*n,r,r*n),m=h(0,c,d),g=h(z_,u,p),v=f(R_,c,d),y=f(R_+z_,u,p);r=(m-v)/2,a=(g-y)/2,i=-(m+v)/2,o=-(g+y)/2}return{ratioX:r,ratioY:a,offsetX:i,offsetY:o}}(p,d,s),v=(n.width-i)/h,y=(n.height-i)/f,b=Math.max(Math.min(v,y)/2,0),x=b_(this.options.radius,b),w=(x-Math.max(x*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=m*x,this.offsetY=g*x,r.total=this.calculateTotal(),this.outerRadius=x-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*u,0),this.updateElements(a,0,a.length,e)}_circumference(e,t){const n=this.options,r=this._cachedMeta,a=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||null===r._parsed[e]||r.data[e].hidden?0:this.calculateCircumference(r._parsed[e]*a/O_)}updateElements(e,t,n,r){const a="reset"===r,i=this.chart,o=i.chartArea,s=i.options.animation,l=(o.left+o.right)/2,c=(o.top+o.bottom)/2,u=a&&s.animateScale,d=u?0:this.innerRadius,p=u?0:this.outerRadius,{sharedOptions:h,includeOptions:f}=this._getSharedOptions(t,r);let m,g=this._getRotation();for(m=0;m<t;++m)g+=this._circumference(m,a);for(m=t;m<t+n;++m){const t=this._circumference(m,a),n=e[m],i={x:l+this.offsetX,y:c+this.offsetY,startAngle:g,endAngle:g+t,circumference:t,outerRadius:p,innerRadius:d};f&&(i.options=h||this.resolveDataElementOptions(m,n.active?"active":r)),g+=t,this.updateElement(n,m,i,r)}}calculateTotal(){const e=this._cachedMeta,t=e.data;let n,r=0;for(n=0;n<t.length;n++){const a=e._parsed[n];null===a||isNaN(a)||!this.chart.getDataVisibility(n)||t[n].hidden||(r+=Math.abs(a))}return r}calculateCircumference(e){const t=this._cachedMeta.total;return t>0&&!isNaN(e)?O_*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,r=n.data.labels||[],a=vO(t._parsed[e],n.options.locale);return{label:r[e]||"",value:a}}getMaxBorderWidth(e){let t=0;const n=this.chart;let r,a,i,o,s;if(!e)for(r=0,a=n.data.datasets.length;r<a;++r)if(n.isDatasetVisible(r)){i=n.getDatasetMeta(r),e=i.data,o=i.controller;break}if(!e)return 0;for(r=0,a=e.length;r<a;++r)s=o.resolveDataElementOptions(r),"inner"!==s.borderAlign&&(t=Math.max(t,s.borderWidth||0,s.hoverBorderWidth||0));return t}getMaxOffset(e){let t=0;for(let n=0,r=e.length;n<r;++n){const e=this.resolveDataElementOptions(n);t=Math.max(t,e.offset||0,e.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}_getRingWeight(e){return Math.max(y_(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}nL.id="doughnut",nL.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},nL.descriptors={_scriptable:e=>"spacing"!==e,_indexable:e=>"spacing"!==e},nL.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n}}=e.legend.options;return t.labels.map(((t,r)=>{const a=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(e){let t=e.label;const n=": "+e.formattedValue;return f_(t)?(t=t.slice(),t[0]+=n):t+=n,t}}}}};class rL extends HO{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:n,data:r=[],_dataset:a}=t,i=this.chart._animationsDisabled;let{start:o,count:s}=mI(t,r,i);this._drawStart=o,this._drawCount=s,gI(t)&&(o=0,s=r.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!a._decimated,n.points=r;const l=this.resolveDatasetElementOptions(e);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!i,options:l},e),this.updateElements(r,o,s,e)}updateElements(e,t,n,r){const a="reset"===r,{iScale:i,vScale:o,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(t,r),d=i.axis,p=o.axis,{spanGaps:h,segment:f}=this.options,m=q_(h)?h:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||a||"none"===r;let v=t>0&&this.getParsed(t-1);for(let y=t;y<t+n;++y){const t=e[y],n=this.getParsed(y),h=g?t:{},b=h_(n[p]),x=h[d]=i.getPixelForValue(n[d],y),w=h[p]=a||b?o.getBasePixel():o.getPixelForValue(s?this.applyStack(o,n,s):n[p],y);h.skip=isNaN(x)||isNaN(w)||b,h.stop=y>0&&Math.abs(n[d]-v[d])>m,f&&(h.parsed=n,h.raw=l.data[y]),u&&(h.options=c||this.resolveDataElementOptions(y,t.active?"active":r)),g||this.updateElement(t,y,h,r),v=n}}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,r=e.data||[];if(!r.length)return n;const a=r[0].size(this.resolveDataElementOptions(0)),i=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,a,i)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}rL.id="line",rL.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},rL.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class aL extends HO{constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,r=n.data.labels||[],a=vO(t._parsed[e].r,n.options.locale);return{label:r[e]||"",value:a}}parseObjectData(e,t,n,r){return GR.bind(this)(e,t,n,r)}update(e){const t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}getMinMax(){const e=this._cachedMeta,t={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach(((e,n)=>{const r=this.getParsed(n).r;!isNaN(r)&&this.chart.getDataVisibility(n)&&(r<t.min&&(t.min=r),r>t.max&&(t.max=r))})),t}_updateRadius(){const e=this.chart,t=e.chartArea,n=e.options,r=Math.min(t.right-t.left,t.bottom-t.top),a=Math.max(r/2,0),i=(a-Math.max(n.cutoutPercentage?a/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=a-i*this.index,this.innerRadius=this.outerRadius-i}updateElements(e,t,n,r){const a="reset"===r,i=this.chart,o=i.options.animation,s=this._cachedMeta.rScale,l=s.xCenter,c=s.yCenter,u=s.getIndexAngle(0)-.5*R_;let d,p=u;const h=360/this.countVisibleElements();for(d=0;d<t;++d)p+=this._computeAngle(d,r,h);for(d=t;d<t+n;d++){const t=e[d];let n=p,f=p+this._computeAngle(d,r,h),m=i.getDataVisibility(d)?s.getDistanceFromCenterForValue(this.getParsed(d).r):0;p=f,a&&(o.animateScale&&(m=0),o.animateRotate&&(n=f=u));const g={x:l,y:c,innerRadius:0,outerRadius:m,startAngle:n,endAngle:f,options:this.resolveDataElementOptions(d,t.active?"active":r)};this.updateElement(t,d,g,r)}}countVisibleElements(){const e=this._cachedMeta;let t=0;return e.data.forEach(((e,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&t++})),t}_computeAngle(e,t,n){return this.chart.getDataVisibility(e)?Y_(this.resolveDataElementOptions(e,t).angle||n):0}}aL.id="polarArea",aL.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},aL.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n}}=e.legend.options;return t.labels.map(((t,r)=>{const a=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:e=>e.chart.data.labels[e.dataIndex]+": "+e.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class iL extends nL{}iL.id="pie",iL.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class oL extends HO{getLabelAndValue(e){const t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(n[t.axis])}}parseObjectData(e,t,n,r){return GR.bind(this)(e,t,n,r)}update(e){const t=this._cachedMeta,n=t.dataset,r=t.data||[],a=t.iScale.getLabels();if(n.points=r,"resize"!==e){const t=this.resolveDatasetElementOptions(e);this.options.showLine||(t.borderWidth=0);const i={_loop:!0,_fullLoop:a.length===r.length,options:t};this.updateElement(n,void 0,i,e)}this.updateElements(r,0,r.length,e)}updateElements(e,t,n,r){const a=this._cachedMeta.rScale,i="reset"===r;for(let o=t;o<t+n;o++){const t=e[o],n=this.resolveDataElementOptions(o,t.active?"active":r),s=a.getPointPositionForValue(o,this.getParsed(o).r),l=i?a.xCenter:s.x,c=i?a.yCenter:s.y,u={x:l,y:c,angle:s.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(t,o,u,r)}}}oL.id="radar",oL.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},oL.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class sL{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}hasValue(){return q_(this.x)&&q_(this.y)}getProps(e,t){const n=this.$animations;if(!t||!n)return this;const r={};return e.forEach((e=>{r[e]=n[e]&&n[e].active()?n[e]._to:this[e]})),r}}sL.defaults={},sL.defaultRoutes=void 0;const lL={values:e=>f_(e)?e:""+e,numeric(e,t,n){if(0===e)return"0";const r=this.chart.options.locale;let a,i=e;if(n.length>1){const t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>1e15)&&(a="scientific"),i=function(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e));return n}(e,n)}const o=U_(Math.abs(i)),s=Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:a,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),vO(e,r,l)},logarithmic(e,t,n){if(0===e)return"0";const r=e/Math.pow(10,Math.floor(U_(e)));return 1===r||2===r||5===r?lL.numeric.call(this,e,t,n):""}};var cL={formatters:lL};function uL(e,t){const n=e.options.ticks,r=n.maxTicksLimit||function(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),a=e._maxLength/n;return Math.floor(Math.min(r,a))}(e),a=n.major.enabled?function(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}(t):[],i=a.length,o=a[0],s=a[i-1],l=[];if(i>r)return function(e,t,n,r){let a,i=0,o=n[0];for(r=Math.ceil(r),a=0;a<e.length;a++)a===o&&(t.push(e[a]),i++,o=n[i*r])}(t,l,a,i/r),l;const c=function(e,t,n){const r=function(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}(e),a=t.length/n;if(!r)return Math.max(a,1);const i=function(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(0|n)&&t.push(n),t.sort(((e,t)=>e-t)).pop(),t}(r);for(let o=0,s=i.length-1;o<s;o++){const e=i[o];if(e>a)return e}return Math.max(a,1)}(a,t,r);if(i>0){let e,n;const r=i>1?Math.round((s-o)/(i-1)):null;for(dL(t,l,c,h_(r)?0:o-r,o),e=0,n=i-1;e<n;e++)dL(t,l,c,a[e],a[e+1]);return dL(t,l,c,s,h_(r)?t.length:s+r),l}return dL(t,l,c),l}function dL(e,t,n,r,a){const i=y_(r,0),o=Math.min(y_(a,e.length),e.length);let s,l,c,u=0;for(n=Math.ceil(n),a&&(s=a-r,n=s/Math.floor(s/n)),c=i;c<0;)u++,c=Math.round(i+u*n);for(l=Math.max(i,0);l<o;l++)l===c&&(t.push(e[l]),u++,c=Math.round(i+u*n))}lR.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:cL.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),lR.route("scale.ticks","color","","color"),lR.route("scale.grid","color","","borderColor"),lR.route("scale.grid","borderColor","","borderColor"),lR.route("scale.title","color","","color"),lR.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e}),lR.describe("scales",{_fallback:"scale"}),lR.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e});const pL=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n;function hL(e,t){const n=[],r=e.length/t,a=e.length;let i=0;for(;i<a;i+=r)n.push(e[Math.floor(i)]);return n}function fL(e,t,n){const r=e.ticks.length,a=Math.min(t,r-1),i=e._startPixel,o=e._endPixel,s=1e-6;let l,c=e.getPixelForTick(a);if(!(n&&(l=1===r?Math.max(c-i,o-c):0===t?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(a-1))/2,c+=a<t?l:-l,c<i-s||c>o+s)))return c}function mL(e){return e.drawTicks?e.tickLength:0}function gL(e,t){if(!e.display)return 0;const n=DR(e.font,t),r=NR(e.padding);return(f_(e.text)?e.text.length:1)*n.lineHeight+r.height}function vL(e,t,n){let r=hI(e);return(n&&"right"!==t||!n&&"right"===t)&&(r=(e=>"left"===e?"right":"right"===e?"left":e)(r)),r}class yL extends sL{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:r}=this;return e=v_(e,Number.POSITIVE_INFINITY),t=v_(t,Number.NEGATIVE_INFINITY),n=v_(n,Number.POSITIVE_INFINITY),r=v_(r,Number.NEGATIVE_INFINITY),{min:v_(e,n),max:v_(t,r),minDefined:g_(e),maxDefined:g_(t)}}getMinMax(e){let t,{min:n,max:r,minDefined:a,maxDefined:i}=this.getUserBounds();if(a&&i)return{min:n,max:r};const o=this.getMatchingVisibleMetas();for(let s=0,l=o.length;s<l;++s)t=o[s].controller.getMinMax(this,e),a||(n=Math.min(n,t.min)),i||(r=Math.max(r,t.max));return n=i&&n>r?r:n,r=a&&n>r?n:r,{min:v_(n,v_(r,n)),max:v_(r,v_(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){x_(this.options.beforeUpdate,[this])}update(e,t,n){const{beginAtZero:r,grace:a,ticks:i}=this.options,o=i.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,n){const{min:r,max:a}=e,i=b_(t,(a-r)/2),o=(e,t)=>n&&0===e?0:e+t;return{min:o(r,-Math.abs(i)),max:o(a,i)}}(this,a,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=o<this.ticks.length;this._convertTicksToLabels(s?hL(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(this.ticks=uL(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,t,n=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,n=!n),this._startPixel=e,this._endPixel=t,this._reversePixels=n,this._length=t-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){x_(this.options.afterUpdate,[this])}beforeSetDimensions(){x_(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){x_(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),x_(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){x_(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let n,r,a;for(n=0,r=e.length;n<r;n++)a=e[n],a.label=x_(t.callback,[a.value,n,e],this)}afterTickToLabelConversion(){x_(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){x_(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,n=this.ticks.length,r=t.minRotation||0,a=t.maxRotation;let i,o,s,l=r;if(!this._isVisible()||!t.display||r>=a||n<=1||!this.isHorizontal())return void(this.labelRotation=r);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,p=rI(this.chart.width-u,0,this.maxWidth);i=e.offset?this.maxWidth/n:p/(n-1),u+6>i&&(i=p/(n-(e.offset?.5:1)),o=this.maxHeight-mL(e.grid)-t.padding-gL(e.title,this.chart.options.font),s=Math.sqrt(u*u+d*d),l=X_(Math.min(Math.asin(rI((c.highest.height+6)/i,-1,1)),Math.asin(rI(o/s,-1,1))-Math.asin(rI(d/s,-1,1)))),l=Math.max(r,Math.min(a,l))),this.labelRotation=l}afterCalculateLabelRotation(){x_(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){x_(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:n,title:r,grid:a}}=this,i=this._isVisible(),o=this.isHorizontal();if(i){const i=gL(r,t.options.font);if(o?(e.width=this.maxWidth,e.height=mL(a)+i):(e.height=this.maxHeight,e.width=mL(a)+i),n.display&&this.ticks.length){const{first:t,last:r,widest:a,highest:i}=this._getLabelSizes(),s=2*n.padding,l=Y_(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(o){const t=n.mirror?0:u*a.width+c*i.height;e.height=Math.min(this.maxHeight,e.height+t+s)}else{const t=n.mirror?0:c*a.width+u*i.height;e.width=Math.min(this.maxWidth,e.width+t+s)}this._calculatePadding(t,r,u,c)}}this._handleMargins(),o?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,r){const{ticks:{align:a,padding:i},position:o}=this.options,s=0!==this.labelRotation,l="top"!==o&&"x"===this.axis;if(this.isHorizontal()){const o=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;s?l?(u=r*e.width,d=n*t.height):(u=n*e.height,d=r*t.width):"start"===a?d=t.width:"end"===a?u=e.width:"inner"!==a&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-o+i)*this.width/(this.width-o),0),this.paddingRight=Math.max((d-c+i)*this.width/(this.width-c),0)}else{let n=t.height/2,r=e.height/2;"start"===a?(n=0,r=e.height):"end"===a&&(n=t.height,r=0),this.paddingTop=n+i,this.paddingBottom=r+i}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){x_(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)h_(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let n=this.ticks;t<n.length&&(n=hL(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length)}return e}_computeLabelSizes(e,t){const{ctx:n,_longestTextCache:r}=this,a=[],i=[];let o,s,l,c,u,d,p,h,f,m,g,v=0,y=0;for(o=0;o<t;++o){if(c=e[o].label,u=this._resolveTickFontOptions(o),n.font=d=u.string,p=r[d]=r[d]||{data:{},gc:[]},h=u.lineHeight,f=m=0,h_(c)||f_(c)){if(f_(c))for(s=0,l=c.length;s<l;++s)g=c[s],h_(g)||f_(g)||(f=cR(n,p.data,p.gc,f,g),m+=h)}else f=cR(n,p.data,p.gc,f,c),m=h;a.push(f),i.push(m),v=Math.max(f,v),y=Math.max(m,y)}!function(e,t){w_(e,(e=>{const n=e.gc,r=n.length/2;let a;if(r>t){for(a=0;a<r;++a)delete e.data[n[a]];n.splice(0,r)}}))}(r,t);const b=a.indexOf(v),x=i.indexOf(y),w=e=>({width:a[e]||0,height:i[e]||0});return{first:w(0),last:w(t-1),widest:w(b),highest:w(x),widths:a,heights:i}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return rI(this._alignToPixels?dR(this.chart,t,0):t,-32768,32767)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const n=t[e];return n.$context||(n.$context=function(e,t,n){return _R(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=_R(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const e=this.options.ticks,t=Y_(this.labelRotation),n=Math.abs(Math.cos(t)),r=Math.abs(Math.sin(t)),a=this._getLabelSizes(),i=e.autoSkipPadding||0,o=a?a.widest.width+i:0,s=a?a.highest.height+i:0;return this.isHorizontal()?s*n>o*r?o/n:s/r:s*r<o*n?s/n:o/r}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,n=this.chart,r=this.options,{grid:a,position:i}=r,o=a.offset,s=this.isHorizontal(),l=this.ticks.length+(o?1:0),c=mL(a),u=[],d=a.setContext(this.getContext()),p=d.drawBorder?d.borderWidth:0,h=p/2,f=function(e){return dR(n,e,p)};let m,g,v,y,b,x,w,S,C,A,k,T;if("top"===i)m=f(this.bottom),x=this.bottom-c,S=m-h,A=f(e.top)+h,T=e.bottom;else if("bottom"===i)m=f(this.top),A=e.top,T=f(e.bottom)-h,x=m+h,S=this.top+c;else if("left"===i)m=f(this.right),b=this.right-c,w=m-h,C=f(e.left)+h,k=e.right;else if("right"===i)m=f(this.left),C=e.left,k=f(e.right)-h,b=m+h,w=this.left+c;else if("x"===t){if("center"===i)m=f((e.top+e.bottom)/2+.5);else if(m_(i)){const e=Object.keys(i)[0],t=i[e];m=f(this.chart.scales[e].getPixelForValue(t))}A=e.top,T=e.bottom,x=m+h,S=x+c}else if("y"===t){if("center"===i)m=f((e.left+e.right)/2);else if(m_(i)){const e=Object.keys(i)[0],t=i[e];m=f(this.chart.scales[e].getPixelForValue(t))}b=m-h,w=b-c,C=e.left,k=e.right}const j=y_(r.ticks.maxTicksLimit,l),E=Math.max(1,Math.ceil(l/j));for(g=0;g<l;g+=E){const e=a.setContext(this.getContext(g)),t=e.lineWidth,r=e.color,i=e.borderDash||[],l=e.borderDashOffset,c=e.tickWidth,d=e.tickColor,p=e.tickBorderDash||[],h=e.tickBorderDashOffset;v=fL(this,g,o),void 0!==v&&(y=dR(n,v,t),s?b=w=C=k=y:x=S=A=T=y,u.push({tx1:b,ty1:x,tx2:w,ty2:S,x1:C,y1:A,x2:k,y2:T,width:t,color:r,borderDash:i,borderDashOffset:l,tickWidth:c,tickColor:d,tickBorderDash:p,tickBorderDashOffset:h}))}return this._ticksLength=l,this._borderValue=m,u}_computeLabelItems(e){const t=this.axis,n=this.options,{position:r,ticks:a}=n,i=this.isHorizontal(),o=this.ticks,{align:s,crossAlign:l,padding:c,mirror:u}=a,d=mL(n.grid),p=d+c,h=u?-c:p,f=-Y_(this.labelRotation),m=[];let g,v,y,b,x,w,S,C,A,k,T,j,E="middle";if("top"===r)w=this.bottom-h,S=this._getXAxisLabelAlignment();else if("bottom"===r)w=this.top+h,S=this._getXAxisLabelAlignment();else if("left"===r){const e=this._getYAxisLabelAlignment(d);S=e.textAlign,x=e.x}else if("right"===r){const e=this._getYAxisLabelAlignment(d);S=e.textAlign,x=e.x}else if("x"===t){if("center"===r)w=(e.top+e.bottom)/2+p;else if(m_(r)){const e=Object.keys(r)[0],t=r[e];w=this.chart.scales[e].getPixelForValue(t)+p}S=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===r)x=(e.left+e.right)/2-p;else if(m_(r)){const e=Object.keys(r)[0],t=r[e];x=this.chart.scales[e].getPixelForValue(t)}S=this._getYAxisLabelAlignment(d).textAlign}"y"===t&&("start"===s?E="top":"end"===s&&(E="bottom"));const P=this._getLabelSizes();for(g=0,v=o.length;g<v;++g){y=o[g],b=y.label;const e=a.setContext(this.getContext(g));C=this.getPixelForTick(g)+a.labelOffset,A=this._resolveTickFontOptions(g),k=A.lineHeight,T=f_(b)?b.length:1;const t=T/2,n=e.color,s=e.textStrokeColor,c=e.textStrokeWidth;let d,p=S;if(i?(x=C,"inner"===S&&(p=g===v-1?this.options.reverse?"left":"right":0===g?this.options.reverse?"right":"left":"center"),j="top"===r?"near"===l||0!==f?-T*k+k/2:"center"===l?-P.highest.height/2-t*k+k:-P.highest.height+k/2:"near"===l||0!==f?k/2:"center"===l?P.highest.height/2-t*k:P.highest.height-T*k,u&&(j*=-1)):(w=C,j=(1-T)*k/2),e.showLabelBackdrop){const t=NR(e.backdropPadding),n=P.heights[g],r=P.widths[g];let a=w+j-t.top,i=x-t.left;switch(E){case"middle":a-=n/2;break;case"bottom":a-=n}switch(S){case"center":i-=r/2;break;case"right":i-=r}d={left:i,top:a,width:r+t.width,height:n+t.height,color:e.backdropColor}}m.push({rotation:f,label:b,font:A,color:n,strokeColor:s,strokeWidth:c,textOffset:j,textAlign:p,textBaseline:E,translation:[x,w],backdrop:d})}return m}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-Y_(this.labelRotation))return"top"===e?"left":"right";let n="center";return"start"===t.align?n="left":"end"===t.align?n="right":"inner"===t.align&&(n="inner"),n}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:n,mirror:r,padding:a}}=this.options,i=e+a,o=this._getLabelSizes().widest.width;let s,l;return"left"===t?r?(l=this.right+a,"near"===n?s="left":"center"===n?(s="center",l+=o/2):(s="right",l+=o)):(l=this.right-i,"near"===n?s="right":"center"===n?(s="center",l-=o/2):(s="left",l=this.left)):"right"===t?r?(l=this.left+a,"near"===n?s="right":"center"===n?(s="center",l-=o/2):(s="left",l-=o)):(l=this.left+i,"near"===n?s="left":"center"===n?(s="center",l+=o/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:n,top:r,width:a,height:i}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,r,a,i),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const n=this.ticks.findIndex((t=>t.value===e));if(n>=0){return t.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(e){const t=this.options.grid,n=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let a,i;const o=(e,t,r)=>{r.width&&r.color&&(n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.setLineDash(r.borderDash||[]),n.lineDashOffset=r.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(a=0,i=r.length;a<i;++a){const e=r[a];t.drawOnChartArea&&o({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&o({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{grid:n}}=this,r=n.setContext(this.getContext()),a=n.drawBorder?r.borderWidth:0;if(!a)return;const i=n.setContext(this.getContext(0)).lineWidth,o=this._borderValue;let s,l,c,u;this.isHorizontal()?(s=dR(e,this.left,a)-a/2,l=dR(e,this.right,i)+i/2,c=u=o):(c=dR(e,this.top,a)-a/2,u=dR(e,this.bottom,i)+i/2,s=l=o),t.save(),t.lineWidth=r.borderWidth,t.strokeStyle=r.borderColor,t.beginPath(),t.moveTo(s,c),t.lineTo(l,u),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const t=this.ctx,n=this._computeLabelArea();n&&gR(t,n);const r=this._labelItems||(this._labelItems=this._computeLabelItems(e));let a,i;for(a=0,i=r.length;a<i;++a){const e=r[a],n=e.font,i=e.label;e.backdrop&&(t.fillStyle=e.backdrop.color,t.fillRect(e.backdrop.left,e.backdrop.top,e.backdrop.width,e.backdrop.height)),xR(t,i,0,e.textOffset,n,e)}n&&vR(t)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:r}}=this;if(!n.display)return;const a=DR(n.font),i=NR(n.padding),o=n.align;let s=a.lineHeight/2;"bottom"===t||"center"===t||m_(t)?(s+=i.bottom,f_(n.text)&&(s+=a.lineHeight*(n.text.length-1))):s+=i.top;const{titleX:l,titleY:c,maxWidth:u,rotation:d}=function(e,t,n,r){const{top:a,left:i,bottom:o,right:s,chart:l}=e,{chartArea:c,scales:u}=l;let d,p,h,f=0;const m=o-a,g=s-i;if(e.isHorizontal()){if(p=fI(r,i,s),m_(n)){const e=Object.keys(n)[0],r=n[e];h=u[e].getPixelForValue(r)+m-t}else h="center"===n?(c.bottom+c.top)/2+m-t:pL(e,n,t);d=s-i}else{if(m_(n)){const e=Object.keys(n)[0],r=n[e];p=u[e].getPixelForValue(r)-g+t}else p="center"===n?(c.left+c.right)/2-g+t:pL(e,n,t);h=fI(r,o,a),f="left"===n?-z_:z_}return{titleX:p,titleY:h,maxWidth:d,rotation:f}}(this,s,t,o);xR(e,n.text,0,0,a,{color:n.color,maxWidth:u,rotation:d,textAlign:vL(o,t,r),textBaseline:"middle",translation:[l,c]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,n=y_(e.grid&&e.grid.z,-1);return this._isVisible()&&this.draw===yL.prototype.draw?[{z:n,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",r=[];let a,i;for(a=0,i=t.length;a<i;++a){const i=t[a];i[n]!==this.id||e&&i.type!==e||r.push(i)}return r}_resolveTickFontOptions(e){return DR(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class bL{constructor(e,t,n){this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let n;(function(e){return"id"in e&&"defaults"in e})(t)&&(n=this.register(t));const r=this.items,a=e.id,i=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+e);return a in r||(r[a]=e,function(e,t,n){const r=T_(Object.create(null),[n?lR.get(n):{},lR.get(t),e.defaults]);lR.set(t,r),e.defaultRoutes&&function(e,t){Object.keys(t).forEach((n=>{const r=n.split("."),a=r.pop(),i=[e].concat(r).join("."),o=t[n].split("."),s=o.pop(),l=o.join(".");lR.route(i,a,l,s)}))}(t,e.defaultRoutes);e.descriptors&&lR.describe(t,e.descriptors)}(e,i,n),this.override&&lR.override(e.id,e.overrides)),i}get(e){return this.items[e]}unregister(e){const t=this.items,n=e.id,r=this.scope;n in t&&delete t[n],r&&n in lR[r]&&(delete lR[r][n],this.override&&delete aR[n])}}var xL=new class{constructor(){this.controllers=new bL(HO,"datasets",!0),this.elements=new bL(sL,"elements"),this.plugins=new bL(Object,"plugins"),this.scales=new bL(yL,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t)}remove(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t)}addControllers(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.controllers)}addElements(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.elements)}addPlugins(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.plugins)}addScales(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.controllers)}removeElements(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.elements)}removePlugins(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.plugins)}removeScales(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.scales)}_each(e,t,n){[...t].forEach((t=>{const r=n||this._getRegistryForType(t);n||r.isForType(t)||r===this.plugins&&t.id?this._exec(e,r,t):w_(t,(t=>{const r=n||this._getRegistryForType(t);this._exec(e,r,t)}))}))}_exec(e,t,n){const r=D_(e);x_(n["before"+r],[],n),t[e](n),x_(n["after"+r],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(e,t,n){const r=t.get(e);if(void 0===r)throw new Error('"'+e+'" is not a registered '+n+".");return r}};class wL extends HO{update(e){const t=this._cachedMeta,{data:n=[]}=t,r=this.chart._animationsDisabled;let{start:a,count:i}=mI(t,n,r);if(this._drawStart=a,this._drawCount=i,gI(t)&&(a=0,i=n.length),this.options.showLine){const{dataset:a,_dataset:i}=t;a._chart=this.chart,a._datasetIndex=this.index,a._decimated=!!i._decimated,a.points=n;const o=this.resolveDatasetElementOptions(e);o.segment=this.options.segment,this.updateElement(a,void 0,{animated:!r,options:o},e)}this.updateElements(n,a,i,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=xL.getElement("line")),super.addElements()}updateElements(e,t,n,r){const a="reset"===r,{iScale:i,vScale:o,_stacked:s,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(t,r),u=this.getSharedOptions(c),d=this.includeOptions(r,u),p=i.axis,h=o.axis,{spanGaps:f,segment:m}=this.options,g=q_(f)?f:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||a||"none"===r;let y=t>0&&this.getParsed(t-1);for(let b=t;b<t+n;++b){const t=e[b],n=this.getParsed(b),c=v?t:{},f=h_(n[h]),x=c[p]=i.getPixelForValue(n[p],b),w=c[h]=a||f?o.getBasePixel():o.getPixelForValue(s?this.applyStack(o,n,s):n[h],b);c.skip=isNaN(x)||isNaN(w)||f,c.stop=b>0&&Math.abs(n[p]-y[p])>g,m&&(c.parsed=n,c.raw=l.data[b]),d&&(c.options=u||this.resolveDataElementOptions(b,t.active?"active":r)),v||this.updateElement(t,b,c,r),y=n}this.updateSharedOptions(u,r,c)}getMaxOverflow(){const e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}const n=e.dataset,r=n.options&&n.options.borderWidth||0;if(!t.length)return r;const a=t[0].size(this.resolveDataElementOptions(0)),i=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(r,a,i)/2}}wL.id="scatter",wL.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},wL.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:e=>"("+e.label+", "+e.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var SL=Object.freeze({__proto__:null,BarController:eL,BubbleController:tL,DoughnutController:nL,LineController:rL,PolarAreaController:aL,PieController:iL,RadarController:oL,ScatterController:wL});function CL(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class AL{constructor(e){this.options=e||{}}init(e){}formats(){return CL()}parse(e,t){return CL()}format(e,t){return CL()}add(e,t,n){return CL()}diff(e,t,n){return CL()}startOf(e,t,n){return CL()}endOf(e,t){return CL()}}AL.override=function(e){Object.assign(AL.prototype,e)};var kL={_date:AL};function TL(e,t,n,r){const{controller:a,data:i,_sorted:o}=e,s=a._cachedMeta.iScale;if(s&&t===s.axis&&"r"!==t&&o&&i.length){const e=s._reversePixels?sI:oI;if(!r)return e(i,t,n);if(a._sharedOptions){const r=i[0],a="function"===typeof r.getRange&&r.getRange(t);if(a){const r=e(i,t,n-a),o=e(i,t,n+a);return{lo:r.lo,hi:o.hi}}}}return{lo:0,hi:i.length-1}}function jL(e,t,n,r,a){const i=e.getSortedVisibleDatasetMetas(),o=n[t];for(let s=0,l=i.length;s<l;++s){const{index:e,data:n}=i[s],{lo:l,hi:c}=TL(i[s],t,o,a);for(let t=l;t<=c;++t){const a=n[t];a.skip||r(a,e,t)}}}function EL(e,t,n,r,a){const i=[];if(!a&&!e.isPointInArea(t))return i;return jL(e,n,t,(function(n,o,s){(a||mR(n,e.chartArea,0))&&n.inRange(t.x,t.y,r)&&i.push({element:n,datasetIndex:o,index:s})}),!0),i}function PL(e,t,n,r,a,i){let o=[];const s=function(e){const t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){const a=t?Math.abs(e.x-r.x):0,i=n?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(i,2))}}(n);let l=Number.POSITIVE_INFINITY;return jL(e,n,t,(function(n,c,u){const d=n.inRange(t.x,t.y,a);if(r&&!d)return;const p=n.getCenterPoint(a);if(!(!!i||e.isPointInArea(p))&&!d)return;const h=s(t,p);h<l?(o=[{element:n,datasetIndex:c,index:u}],l=h):h===l&&o.push({element:n,datasetIndex:c,index:u})})),o}function NL(e,t,n,r,a,i){return i||e.isPointInArea(t)?"r"!==n||r?PL(e,t,n,r,a,i):function(e,t,n,r){let a=[];return jL(e,n,t,(function(e,n,i){const{startAngle:o,endAngle:s}=e.getProps(["startAngle","endAngle"],r),{angle:l}=J_(e,{x:t.x,y:t.y});nI(l,o,s)&&a.push({element:e,datasetIndex:n,index:i})})),a}(e,t,n,a):[]}function DL(e,t,n,r,a){const i=[],o="x"===n?"inXRange":"inYRange";let s=!1;return jL(e,n,t,((e,r,l)=>{e[o](t[n],a)&&(i.push({element:e,datasetIndex:r,index:l}),s=s||e.inRange(t.x,t.y,a))})),r&&!s?[]:i}var ML={evaluateInteractionItems:jL,modes:{index(e,t,n,r){const a=sO(t,e),i=n.axis||"x",o=n.includeInvisible||!1,s=n.intersect?EL(e,a,i,r,o):NL(e,a,i,!1,r,o),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach((e=>{const t=s[0].index,n=e.data[t];n&&!n.skip&&l.push({element:n,datasetIndex:e.index,index:t})})),l):[]},dataset(e,t,n,r){const a=sO(t,e),i=n.axis||"xy",o=n.includeInvisible||!1;let s=n.intersect?EL(e,a,i,r,o):NL(e,a,i,!1,r,o);if(s.length>0){const t=s[0].datasetIndex,n=e.getDatasetMeta(t).data;s=[];for(let e=0;e<n.length;++e)s.push({element:n[e],datasetIndex:t,index:e})}return s},point:(e,t,n,r)=>EL(e,sO(t,e),n.axis||"xy",r,n.includeInvisible||!1),nearest(e,t,n,r){const a=sO(t,e),i=n.axis||"xy",o=n.includeInvisible||!1;return NL(e,a,i,n.intersect,r,o)},x:(e,t,n,r)=>DL(e,sO(t,e),"x",n.intersect,r),y:(e,t,n,r)=>DL(e,sO(t,e),"y",n.intersect,r)}};const _L=["left","top","right","bottom"];function IL(e,t){return e.filter((e=>e.pos===t))}function RL(e,t){return e.filter((e=>-1===_L.indexOf(e.pos)&&e.box.axis===t))}function OL(e,t){return e.sort(((e,n)=>{const r=t?n:e,a=t?e:n;return r.weight===a.weight?r.index-a.index:r.weight-a.weight}))}function LL(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:r,stackWeight:a}=n;if(!e||!_L.includes(r))continue;const i=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=a}return t}(e),{vBoxMaxWidth:r,hBoxMaxHeight:a}=t;let i,o,s;for(i=0,o=e.length;i<o;++i){s=e[i];const{fullSize:o}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*r:o&&t.availableWidth,s.height=a):(s.width=r,s.height=c?c*a:o&&t.availableHeight)}return n}function FL(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function BL(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function zL(e,t,n,r){const{pos:a,box:i}=n,o=e.maxPadding;if(!m_(a)){n.size&&(e[a]-=n.size);const t=r[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?i.height:i.width),n.size=t.size/t.count,e[a]+=n.size}i.getPadding&&BL(o,i.getPadding());const s=Math.max(0,t.outerWidth-FL(o,e,"left","right")),l=Math.max(0,t.outerHeight-FL(o,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function VL(e,t){const n=t.maxPadding;function r(e){const r={left:0,top:0,right:0,bottom:0};return e.forEach((e=>{r[e]=Math.max(t[e],n[e])})),r}return r(e?["left","right"]:["top","bottom"])}function WL(e,t,n,r){const a=[];let i,o,s,l,c,u;for(i=0,o=e.length,c=0;i<o;++i){s=e[i],l=s.box,l.update(s.width||t.w,s.height||t.h,VL(s.horizontal,t));const{same:o,other:d}=zL(t,n,s,r);c|=o&&a.length,u=u||d,l.fullSize||a.push(s)}return c&&WL(a,t,n,r)||u}function UL(e,t,n,r,a){e.top=n,e.left=t,e.right=t+r,e.bottom=n+a,e.width=r,e.height=a}function $L(e,t,n,r){const a=n.padding;let{x:i,y:o}=t;for(const s of e){const e=s.box,l=r[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const r=t.w*c,i=l.size||e.height;M_(l.start)&&(o=l.start),e.fullSize?UL(e,a.left,o,n.outerWidth-a.right-a.left,i):UL(e,t.left+l.placed,o,r,i),l.start=o,l.placed+=r,o=e.bottom}else{const r=t.h*c,o=l.size||e.width;M_(l.start)&&(i=l.start),e.fullSize?UL(e,i,a.top,o,n.outerHeight-a.bottom-a.top):UL(e,i,t.top+l.placed,o,r),l.start=i,l.placed+=r,i=e.right}}t.x=i,t.y=o}lR.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var HL={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const a=NR(e.options.layout.padding),i=Math.max(t-a.width,0),o=Math.max(n-a.height,0),s=function(e){const t=function(e){const t=[];let n,r,a,i,o,s;for(n=0,r=(e||[]).length;n<r;++n)a=e[n],({position:i,options:{stack:o,stackWeight:s=1}}=a),t.push({index:n,box:a,pos:i,horizontal:a.isHorizontal(),weight:a.weight,stack:o&&i+o,stackWeight:s});return t}(e),n=OL(t.filter((e=>e.box.fullSize)),!0),r=OL(IL(t,"left"),!0),a=OL(IL(t,"right")),i=OL(IL(t,"top"),!0),o=OL(IL(t,"bottom")),s=RL(t,"x"),l=RL(t,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:a.concat(l).concat(o).concat(s),chartArea:IL(t,"chartArea"),vertical:r.concat(a).concat(l),horizontal:i.concat(o).concat(s)}}(e.boxes),l=s.vertical,c=s.horizontal;w_(e.boxes,(e=>{"function"===typeof e.beforeLayout&&e.beforeLayout()}));const u=l.reduce(((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1),0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:a,availableWidth:i,availableHeight:o,vBoxMaxWidth:i/2/u,hBoxMaxHeight:o/2}),p=Object.assign({},a);BL(p,NR(r));const h=Object.assign({maxPadding:p,w:i,h:o,x:a.left,y:a.top},a),f=LL(l.concat(c),d);WL(s.fullSize,h,d,f),WL(l,h,d,f),WL(c,h,d,f)&&WL(l,h,d,f),function(e){const t=e.maxPadding;function n(n){const r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(h),$L(s.leftAndTop,h,d,f),h.x+=h.w,h.y+=h.h,$L(s.rightAndBottom,h,d,f),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},w_(s.chartArea,(t=>{const n=t.box;Object.assign(n,e.chartArea),n.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})}))}};class qL{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,r){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}isAttached(e){return!0}updateConfig(e){}}class GL extends qL{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const KL="$chartjs",YL={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},XL=e=>null===e||""===e;const ZL=!!dO&&{passive:!0};function JL(e,t,n){e.canvas.removeEventListener(t,n,ZL)}function QL(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function eF(e,t,n){const r=e.canvas,a=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||QL(n.addedNodes,r),t=t&&!QL(n.removedNodes,r);t&&n()}));return a.observe(document,{childList:!0,subtree:!0}),a}function tF(e,t,n){const r=e.canvas,a=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||QL(n.removedNodes,r),t=t&&!QL(n.addedNodes,r);t&&n()}));return a.observe(document,{childList:!0,subtree:!0}),a}const nF=new Map;let rF=0;function aF(){const e=window.devicePixelRatio;e!==rF&&(rF=e,nF.forEach(((t,n)=>{n.currentDevicePixelRatio!==e&&t()})))}function iF(e,t,n){const r=e.canvas,a=r&&nO(r);if(!a)return;const i=pI(((e,t)=>{const r=a.clientWidth;n(e,t),r<a.clientWidth&&n()}),window),o=new ResizeObserver((e=>{const t=e[0],n=t.contentRect.width,r=t.contentRect.height;0===n&&0===r||i(n,r)}));return o.observe(a),function(e,t){nF.size||window.addEventListener("resize",aF),nF.set(e,t)}(e,i),o}function oF(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){nF.delete(e),nF.size||window.removeEventListener("resize",aF)}(e)}function sF(e,t,n){const r=e.canvas,a=pI((t=>{null!==e.ctx&&n(function(e,t){const n=YL[e.type]||e.type,{x:r,y:a}=sO(e,t);return{type:n,chart:t,native:e,x:void 0!==r?r:null,y:void 0!==a?a:null}}(t,e))}),e,(e=>{const t=e[0];return[t,t.offsetX,t.offsetY]}));return function(e,t,n){e.addEventListener(t,n,ZL)}(r,t,a),a}class lF extends qL{acquireContext(e,t){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){const n=e.style,r=e.getAttribute("height"),a=e.getAttribute("width");if(e[KL]={initial:{height:r,width:a,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",XL(a)){const t=pO(e,"width");void 0!==t&&(e.width=t)}if(XL(r))if(""===e.style.height)e.height=e.width/(t||2);else{const t=pO(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[KL])return!1;const n=t[KL].initial;["height","width"].forEach((e=>{const r=n[e];h_(r)?t.removeAttribute(e):t.setAttribute(e,r)}));const r=n.style||{};return Object.keys(r).forEach((e=>{t.style[e]=r[e]})),t.width=t.width,delete t[KL],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const r=e.$proxies||(e.$proxies={}),a={attach:eF,detach:tF,resize:iF}[t]||sF;r[t]=a(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),r=n[t];if(!r)return;({attach:oF,detach:oF,resize:oF}[t]||JL)(e,t,r),n[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,r){return cO(e,t,n,r)}isAttached(e){const t=nO(e);return!(!t||!t.isConnected)}}class cF{constructor(){this._init=[]}notify(e,t,n,r){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const a=r?this._descriptors(e).filter(r):this._descriptors(e),i=this._notify(a,e,t,n);return"afterDestroy"===t&&(this._notify(a,e,"stop"),this._notify(this._init,e,"uninstall")),i}_notify(e,t,n,r){r=r||{};for(const a of e){const e=a.plugin;if(!1===x_(e[n],[t,r,a.options],e)&&r.cancelable)return!1}return!0}invalidate(){h_(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const n=e&&e.config,r=y_(n.options&&n.options.plugins,{}),a=function(e){const t={},n=[],r=Object.keys(xL.plugins.items);for(let i=0;i<r.length;i++)n.push(xL.getPlugin(r[i]));const a=e.plugins||[];for(let i=0;i<a.length;i++){const e=a[i];-1===n.indexOf(e)&&(n.push(e),t[e.id]=!0)}return{plugins:n,localIds:t}}(n);return!1!==r||t?function(e,t,n,r){let{plugins:a,localIds:i}=t;const o=[],s=e.getContext();for(const l of a){const t=l.id,a=uF(n[t],r);null!==a&&o.push({plugin:l,options:dF(e.config,{plugin:l,local:i[t]},a,s)})}return o}(e,a,r,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],n=this._cache,r=(e,t)=>e.filter((e=>!t.some((t=>e.plugin.id===t.plugin.id))));this._notify(r(t,n),e,"stop"),this._notify(r(n,t),e,"start")}}function uF(e,t){return t||!1!==e?!0===e?{}:e:null}function dF(e,t,n,r){let{plugin:a,local:i}=t;const o=e.pluginScopeKeys(a),s=e.getOptionScopes(n,o);return i&&a.defaults&&s.push(a.defaults),e.createResolver(s,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function pF(e,t){const n=lR.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function hF(e,t){return"x"===e||"y"===e?e:t.axis||function(e){return"top"===e||"bottom"===e?"x":"left"===e||"right"===e?"y":void 0}(t.position)||e.charAt(0).toLowerCase()}function fF(e){const t=e.options||(e.options={});t.plugins=y_(t.plugins,{}),t.scales=function(e,t){const n=aR[e.type]||{scales:{}},r=t.scales||{},a=pF(e.type,t),i=Object.create(null),o=Object.create(null);return Object.keys(r).forEach((e=>{const t=r[e];if(!m_(t))return console.error(`Invalid scale configuration for scale: ${e}`);if(t._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const s=hF(e,t),l=function(e,t){return e===t?"_index_":"_value_"}(s,a),c=n.scales||{};i[s]=i[s]||e,o[e]=j_(Object.create(null),[{axis:s},t,c[s],c[l]])})),e.data.datasets.forEach((n=>{const a=n.type||e.type,s=n.indexAxis||pF(a,t),l=(aR[a]||{}).scales||{};Object.keys(l).forEach((e=>{const t=function(e,t){let n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,s),a=n[t+"AxisID"]||i[t]||t;o[a]=o[a]||Object.create(null),j_(o[a],[{axis:t},r[a],l[e]])}))})),Object.keys(o).forEach((e=>{const t=o[e];j_(t,[lR.scales[t.type],lR.scale])})),o}(e,t)}function mF(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const gF=new Map,vF=new Set;function yF(e,t){let n=gF.get(e);return n||(n=t(),gF.set(e,n),vF.add(n)),n}const bF=(e,t,n)=>{const r=N_(t,n);void 0!==r&&e.add(r)};class xF{constructor(e){this._config=function(e){return(e=e||{}).data=mF(e.data),fF(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=mF(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),fF(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return yF(e,(()=>[[`datasets.${e}`,""]]))}datasetAnimationScopeKeys(e,t){return yF(`${e}.transition.${t}`,(()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]]))}datasetElementScopeKeys(e,t){return yF(`${e}-${t}`,(()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]]))}pluginScopeKeys(e){const t=e.id;return yF(`${this.type}-plugin-${t}`,(()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]]))}_cachedScopes(e,t){const n=this._scopeCache;let r=n.get(e);return r&&!t||(r=new Map,n.set(e,r)),r}getOptionScopes(e,t,n){const{options:r,type:a}=this,i=this._cachedScopes(e,n),o=i.get(t);if(o)return o;const s=new Set;t.forEach((t=>{e&&(s.add(e),t.forEach((t=>bF(s,e,t)))),t.forEach((e=>bF(s,r,e))),t.forEach((e=>bF(s,aR[a]||{},e))),t.forEach((e=>bF(s,lR,e))),t.forEach((e=>bF(s,iR,e)))}));const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),vF.has(t)&&i.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,aR[t]||{},lR.datasets[t]||{},{type:t},lR,iR]}resolveNamedOptions(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""];const a={$shared:!0},{resolver:i,subPrefixes:o}=wF(this._resolverCache,e,r);let s=i;if(function(e,t){const{isScriptable:n,isIndexable:r}=OR(e);for(const a of t){const t=n(a),i=r(a),o=(i||t)&&e[a];if(t&&(__(o)||SF(o))||i&&f_(o))return!0}return!1}(i,t)){a.$shared=!1;s=RR(i,n=__(n)?n():n,this.createResolver(e,n,o))}for(const l of t)a[l]=s[l];return a}createResolver(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[""],r=arguments.length>3?arguments[3]:void 0;const{resolver:a}=wF(this._resolverCache,e,n);return m_(t)?RR(a,t,void 0,r):a}}function wF(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const a=n.join();let i=r.get(a);if(!i){i={resolver:IR(t,n),subPrefixes:n.filter((e=>!e.toLowerCase().includes("hover")))},r.set(a,i)}return i}const SF=e=>m_(e)&&Object.getOwnPropertyNames(e).reduce(((t,n)=>t||__(e[n])),!1);const CF=["top","bottom","left","right","chartArea"];function AF(e,t){return"top"===e||"bottom"===e||-1===CF.indexOf(e)&&"x"===t}function kF(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function TF(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),x_(n&&n.onComplete,[e],t)}function jF(e){const t=e.chart,n=t.options.animation;x_(n&&n.onProgress,[e],t)}function EF(e){return tO()&&"string"===typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const PF={},NF=e=>{const t=EF(e);return Object.values(PF).filter((e=>e.canvas===t)).pop()};function DF(e,t,n){const r=Object.keys(e);for(const a of r){const r=+a;if(r>=t){const i=e[a];delete e[a],(n>0||r>t)&&(e[r+n]=i)}}}class MF{constructor(e,t){const n=this.config=new xF(t),r=EF(e),a=NF(r);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const i=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(e){return!tO()||"undefined"!==typeof OffscreenCanvas&&e instanceof OffscreenCanvas?GL:lF}(r)),this.platform.updateConfig(n);const o=this.platform.acquireContext(r,i.aspectRatio),s=o&&o.canvas,l=s&&s.height,c=s&&s.width;this.id=p_(),this.ctx=o,this.canvas=s,this.width=c,this.height=l,this._options=i,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new cF,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){let n;return function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return t?(clearTimeout(n),n=setTimeout(e,t,a)):e.apply(this,a),t}}((e=>this.update(e)),i.resizeDelay||0),this._dataChanges=[],PF[this.id]=this,o&&s?(EO.listen(this,"complete",TF),EO.listen(this,"progress",jF),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:r,_aspectRatio:a}=this;return h_(e)?t&&a?a:r?n/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():uO(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return pR(this.canvas,this.ctx),this}stop(){return EO.stop(this),this}resize(e,t){EO.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this.options,r=this.canvas,a=n.maintainAspectRatio&&this.aspectRatio,i=this.platform.getMaximumSize(r,e,t,a),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,uO(this,o,!0)&&(this.notifyPlugins("resize",{size:i}),x_(n.onResize,[this,i],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){w_(this.options.scales||{},((e,t)=>{e.id=t}))}buildOrUpdateScales(){const e=this.options,t=e.scales,n=this.scales,r=Object.keys(n).reduce(((e,t)=>(e[t]=!1,e)),{});let a=[];t&&(a=a.concat(Object.keys(t).map((e=>{const n=t[e],r=hF(e,n),a="r"===r,i="x"===r;return{options:n,dposition:a?"chartArea":i?"bottom":"left",dtype:a?"radialLinear":i?"category":"linear"}})))),w_(a,(t=>{const a=t.options,i=a.id,o=hF(i,a),s=y_(a.type,t.dtype);void 0!==a.position&&AF(a.position,o)===AF(t.dposition)||(a.position=t.dposition),r[i]=!0;let l=null;if(i in n&&n[i].type===s)l=n[i];else{l=new(xL.getScale(s))({id:i,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(a,e)})),w_(r,((e,t)=>{e||delete n[t]})),w_(n,(e=>{HL.configure(this,e,e.options),HL.addBox(this,e)}))}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort(((e,t)=>e.index-t.index)),n>t){for(let e=t;e<n;++e)this._destroyDatasetMeta(e);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(kF("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach(((e,n)=>{0===t.filter((t=>t===e._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let n,r;for(this._removeUnreferencedMetasets(),n=0,r=t.length;n<r;n++){const r=t[n];let a=this.getDatasetMeta(n);const i=r.type||this.config.type;if(a.type&&a.type!==i&&(this._destroyDatasetMeta(n),a=this.getDatasetMeta(n)),a.type=i,a.indexAxis=r.indexAxis||pF(i,this.options),a.order=r.order||0,a.index=n,a.label=""+r.label,a.visible=this.isDatasetVisible(n),a.controller)a.controller.updateIndex(n),a.controller.linkScales();else{const t=xL.getController(i),{datasetElementType:r,dataElementType:o}=lR.datasets[i];Object.assign(t.prototype,{dataElementType:xL.getElement(o),datasetElementType:r&&xL.getElement(r)}),a.controller=new t(this,n),e.push(a.controller)}}return this._updateMetasets(),e}_resetElements(){w_(this.data.datasets,((e,t)=>{this.getDatasetMeta(t).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let i=0;for(let l=0,c=this.data.datasets.length;l<c;l++){const{controller:e}=this.getDatasetMeta(l),t=!r&&-1===a.indexOf(e);e.buildOrUpdateElements(t),i=Math.max(+e.getMaxOverflow(),i)}i=this._minPadding=n.layout.autoPadding?i:0,this._updateLayout(i),r||w_(a,(e=>{e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(kF("z","_idx"));const{_active:o,_lastEvent:s}=this;s?this._eventHandler(s,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){w_(this.scales,(e=>{HL.removeBox(this,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);I_(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:n,start:r,count:a}of t){DF(e,r,"_removeElements"===n?-a:a)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=t=>new Set(e.filter((e=>e[0]===t)).map(((e,t)=>t+","+e.splice(1).join(",")))),r=n(0);for(let a=1;a<t;a++)if(!I_(r,n(a)))return;return Array.from(r).map((e=>e.split(","))).map((e=>({method:e[1],start:+e[2],count:+e[3]})))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;HL.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],w_(this.boxes,(e=>{n&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))}),this),this._layers.forEach(((e,t)=>{e._idx=t})),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,__(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const n=this.getDatasetMeta(e),r={meta:n,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(n.controller._update(t),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(EO.has(this)?this.attached&&!EO.running(this)&&EO.start(this):(this.draw(),TF({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:e,height:t}=this._resizeBeforeDraw;this._resize(e,t),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,n=[];let r,a;for(r=0,a=t.length;r<a;++r){const a=t[r];e&&!a.visible||n.push(a)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,n=e._clip,r=!n.disabled,a=this.chartArea,i={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(r&&gR(t,{left:!1===n.left?0:a.left-n.left,right:!1===n.right?this.width:a.right+n.right,top:!1===n.top?0:a.top-n.top,bottom:!1===n.bottom?this.height:a.bottom+n.bottom}),e.controller.draw(),r&&vR(t),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(e){return mR(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,r){const a=ML.modes[t];return"function"===typeof a?a(this,e,n,r):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let r=n.filter((e=>e&&e._dataset===t)).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||(this.$context=_R(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return"boolean"===typeof n.hidden?!n.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const r=n?"show":"hide",a=this.getDatasetMeta(e),i=a.controller._resolveAnimations(void 0,r);M_(t)?(a.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),i.update(a,{visible:n}),this.update((t=>t.datasetIndex===e?r:void 0)))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),EO.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),pR(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete PF[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(){return this.canvas.toDataURL(...arguments)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};w_(this.options.events,(e=>n(e,r)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(n,r)=>{e[n]&&(t.removeEventListener(this,n,r),delete e[n])},a=(e,t)=>{this.canvas&&this.resize(e,t)};let i;const o=()=>{r("attach",o),this.attached=!0,this.resize(),n("resize",a),n("detach",i)};i=()=>{this.attached=!1,r("resize",a),this._stop(),this._resize(0,0),n("attach",o)},t.isAttached(this.canvas)?o():i()}unbindEvents(){w_(this._listeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._listeners={},w_(this._responsiveListeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){const r=n?"set":"remove";let a,i,o,s;for("dataset"===t&&(a=this.getDatasetMeta(e[0].datasetIndex),a.controller["_"+r+"DatasetHoverStyle"]()),o=0,s=e.length;o<s;++o){i=e[o];const t=i&&this.getDatasetMeta(i.datasetIndex).controller;t&&t[r+"HoverStyle"](i.element,i.datasetIndex,i.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],n=e.map((e=>{let{datasetIndex:t,index:n}=e;const r=this.getDatasetMeta(t);if(!r)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:r.data[n],index:n}}));!S_(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}_updateHoverStyles(e,t,n){const r=this.options.hover,a=(e,t)=>e.filter((e=>!t.some((t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)))),i=a(t,e),o=n?e:a(e,t);i.length&&this.updateHoverStyle(i,r.mode,!1),o.length&&r.mode&&this.updateHoverStyle(o,r.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},r=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",n,r))return;const a=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(a||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:r=[],options:a}=this,i=t,o=this._getActiveElements(e,r,n,i),s=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),l=function(e,t,n,r){return n&&"mouseout"!==e.type?r?t:e:null}(e,this._lastEvent,n,s);n&&(this._lastEvent=null,x_(a.onHover,[e,o,this],this),s&&x_(a.onClick,[e,o,this],this));const c=!S_(o,r);return(c||t)&&(this._active=o,this._updateHoverStyles(o,r,t)),this._lastEvent=l,c}_getActiveElements(e,t,n,r){if("mouseout"===e.type)return[];if(!n)return t;const a=this.options.hover;return this.getElementsAtEventForMode(e,a.mode,a,r)}}const _F=()=>w_(MF.instances,(e=>e._plugins.invalidate())),IF=!0;function RF(e,t,n){const{startAngle:r,pixelMargin:a,x:i,y:o,outerRadius:s,innerRadius:l}=t;let c=a/s;e.beginPath(),e.arc(i,o,s,r-c,n+c),l>a?(c=a/l,e.arc(i,o,l,n+c,r-c,!0)):e.arc(i,o,a,n+z_,r-z_),e.closePath(),e.clip()}function OF(e,t,n,r){const a=jR(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const i=(n-t)/2,o=Math.min(i,r*t/2),s=e=>{const t=(n-Math.min(i,e))*r/2;return rI(e,0,Math.min(i,t))};return{outerStart:s(a.outerStart),outerEnd:s(a.outerEnd),innerStart:rI(a.innerStart,0,o),innerEnd:rI(a.innerEnd,0,o)}}function LF(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function FF(e,t,n,r,a,i){const{x:o,y:s,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+r+n-c,0),p=u>0?u+r+n+c:0;let h=0;const f=a-l;if(r){const e=((u>0?u-r:0)+(d>0?d-r:0))/2;h=(f-(0!==e?f*e/(e+r):f))/2}const m=(f-Math.max(.001,f*d-n/R_)/d)/2,g=l+m+h,v=a-m-h,{outerStart:y,outerEnd:b,innerStart:x,innerEnd:w}=OF(t,p,d,v-g),S=d-y,C=d-b,A=g+y/S,k=v-b/C,T=p+x,j=p+w,E=g+x/T,P=v-w/j;if(e.beginPath(),i){if(e.arc(o,s,d,A,k),b>0){const t=LF(C,k,o,s);e.arc(t.x,t.y,b,k,v+z_)}const t=LF(j,v,o,s);if(e.lineTo(t.x,t.y),w>0){const t=LF(j,P,o,s);e.arc(t.x,t.y,w,v+z_,P+Math.PI)}if(e.arc(o,s,p,v-w/p,g+x/p,!0),x>0){const t=LF(T,E,o,s);e.arc(t.x,t.y,x,E+Math.PI,g-z_)}const n=LF(S,g,o,s);if(e.lineTo(n.x,n.y),y>0){const t=LF(S,A,o,s);e.arc(t.x,t.y,y,g-z_,A)}}else{e.moveTo(o,s);const t=Math.cos(A)*d+o,n=Math.sin(A)*d+s;e.lineTo(t,n);const r=Math.cos(k)*d+o,a=Math.sin(k)*d+s;e.lineTo(r,a)}e.closePath()}function BF(e,t,n,r,a,i){const{options:o}=t,{borderWidth:s,borderJoinStyle:l}=o,c="inner"===o.borderAlign;s&&(c?(e.lineWidth=2*s,e.lineJoin=l||"round"):(e.lineWidth=s,e.lineJoin=l||"bevel"),t.fullCircles&&function(e,t,n){const{x:r,y:a,startAngle:i,pixelMargin:o,fullCircles:s}=t,l=Math.max(t.outerRadius-o,0),c=t.innerRadius+o;let u;for(n&&RF(e,t,i+O_),e.beginPath(),e.arc(r,a,c,i+O_,i,!0),u=0;u<s;++u)e.stroke();for(e.beginPath(),e.arc(r,a,l,i,i+O_),u=0;u<s;++u)e.stroke()}(e,t,c),c&&RF(e,t,a),FF(e,t,n,r,a,i),e.stroke())}Object.defineProperties(MF,{defaults:{enumerable:IF,value:lR},instances:{enumerable:IF,value:PF},overrides:{enumerable:IF,value:aR},registry:{enumerable:IF,value:xL},version:{enumerable:IF,value:"3.9.1"},getChart:{enumerable:IF,value:NF},register:{enumerable:IF,value:function(){xL.add(...arguments),_F()}},unregister:{enumerable:IF,value:function(){xL.remove(...arguments),_F()}}});class zF extends sL{constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){const r=this.getProps(["x","y"],n),{angle:a,distance:i}=J_(r,{x:e,y:t}),{startAngle:o,endAngle:s,innerRadius:l,outerRadius:c,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=this.options.spacing/2,p=y_(u,s-o)>=O_||nI(a,o,s),h=aI(i,l+d,c+d);return p&&h}getCenterPoint(e){const{x:t,y:n,startAngle:r,endAngle:a,innerRadius:i,outerRadius:o}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],e),{offset:s,spacing:l}=this.options,c=(r+a)/2,u=(i+o+l+s)/2;return{x:t+Math.cos(c)*u,y:n+Math.sin(c)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:n}=this,r=(t.offset||0)/2,a=(t.spacing||0)/2,i=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n>O_?Math.floor(n/O_):0,0===n||this.innerRadius<0||this.outerRadius<0)return;e.save();let o=0;if(r){o=r/2;const t=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(t)*o,Math.sin(t)*o),this.circumference>=R_&&(o=r)}e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor;const s=function(e,t,n,r,a){const{fullCircles:i,startAngle:o,circumference:s}=t;let l=t.endAngle;if(i){FF(e,t,n,r,o+O_,a);for(let t=0;t<i;++t)e.fill();isNaN(s)||(l=o+s%O_,s%O_===0&&(l+=O_))}return FF(e,t,n,r,l,a),e.fill(),l}(e,this,o,a,i);BF(e,this,o,a,s,i),e.restore()}}function VF(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;e.lineCap=y_(n.borderCapStyle,t.borderCapStyle),e.setLineDash(y_(n.borderDash,t.borderDash)),e.lineDashOffset=y_(n.borderDashOffset,t.borderDashOffset),e.lineJoin=y_(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=y_(n.borderWidth,t.borderWidth),e.strokeStyle=y_(n.borderColor,t.borderColor)}function WF(e,t,n){e.lineTo(n.x,n.y)}function UF(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=e.length,{start:a=0,end:i=r-1}=n,{start:o,end:s}=t,l=Math.max(a,o),c=Math.min(i,s),u=a<o&&i<o||a>s&&i>s;return{count:r,start:l,loop:t.loop,ilen:c<l&&!u?r+c-l:c-l}}function $F(e,t,n,r){const{points:a,options:i}=t,{count:o,start:s,loop:l,ilen:c}=UF(a,n,r),u=function(e){return e.stepped?yR:e.tension||"monotone"===e.cubicInterpolationMode?bR:WF}(i);let d,p,h,{move:f=!0,reverse:m}=r||{};for(d=0;d<=c;++d)p=a[(s+(m?c-d:d))%o],p.skip||(f?(e.moveTo(p.x,p.y),f=!1):u(e,h,p,m,i.stepped),h=p);return l&&(p=a[(s+(m?c:0))%o],u(e,h,p,m,i.stepped)),!!l}function HF(e,t,n,r){const a=t.points,{count:i,start:o,ilen:s}=UF(a,n,r),{move:l=!0,reverse:c}=r||{};let u,d,p,h,f,m,g=0,v=0;const y=e=>(o+(c?s-e:e))%i,b=()=>{h!==f&&(e.lineTo(g,f),e.lineTo(g,h),e.lineTo(g,m))};for(l&&(d=a[y(0)],e.moveTo(d.x,d.y)),u=0;u<=s;++u){if(d=a[y(u)],d.skip)continue;const t=d.x,n=d.y,r=0|t;r===p?(n<h?h=n:n>f&&(f=n),g=(v*g+t)/++v):(b(),e.lineTo(t,n),p=r,v=0,h=f=n),m=n}b()}function qF(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&"monotone"!==t.cubicInterpolationMode&&!t.stepped&&!n?HF:$F}zF.id="arc",zF.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},zF.defaultRoutes={backgroundColor:"backgroundColor"};const GF="function"===typeof Path2D;function KF(e,t,n,r){GF&&!t.options.segment?function(e,t,n,r){let a=t._path;a||(a=t._path=new Path2D,t.path(a,n,r)&&a.closePath()),VF(e,t.options),e.stroke(a)}(e,t,n,r):function(e,t,n,r){const{segments:a,options:i}=t,o=qF(t);for(const s of a)VF(e,i,s.style),e.beginPath(),o(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}(e,t,n,r)}class YF extends sL{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const r=n.spanGaps?this._loop:this._fullLoop;eO(this._points,n,e,r,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(e,t){const n=e.points,r=e.options.spanGaps,a=n.length;if(!a)return[];const i=!!e._loop,{start:o,end:s}=function(e,t,n,r){let a=0,i=t-1;if(n&&!r)for(;a<t&&!e[a].skip;)a++;for(;a<t&&e[a].skip;)a++;for(a%=t,n&&(i+=a);i>a&&e[i%t].skip;)i--;return i%=t,{start:a,end:i}}(n,a,i,r);return kO(e,!0===r?[{start:o,end:s,loop:i}]:function(e,t,n,r){const a=e.length,i=[];let o,s=t,l=e[t];for(o=t+1;o<=n;++o){const n=e[o%a];n.skip||n.stop?l.skip||(r=!1,i.push({start:t%a,end:(o-1)%a,loop:r}),t=s=n.stop?o:null):(s=o,l.skip&&(t=o)),l=n}return null!==s&&i.push({start:t%a,end:s%a,loop:r}),i}(n,o,s<o?s+a:s,!!e._fullLoop&&0===o&&s===a-1),n,t)}(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){const n=this.options,r=e[t],a=this.points,i=AO(this,{property:t,start:r,end:r});if(!i.length)return;const o=[],s=function(e){return e.stepped?fO:e.tension||"monotone"===e.cubicInterpolationMode?mO:hO}(n);let l,c;for(l=0,c=i.length;l<c;++l){const{start:c,end:u}=i[l],d=a[c],p=a[u];if(d===p){o.push(d);continue}const h=s(d,p,Math.abs((r-d[t])/(p[t]-d[t])),n.stepped);h[t]=e[t],o.push(h)}return 1===o.length?o[0]:o}pathSegment(e,t,n){return qF(this)(e,this,t,n)}path(e,t,n){const r=this.segments,a=qF(this);let i=this._loop;t=t||0,n=n||this.points.length-t;for(const o of r)i&=a(e,this,o,{start:t,end:t+n-1});return!!i}draw(e,t,n,r){const a=this.options||{};(this.points||[]).length&&a.borderWidth&&(e.save(),KF(e,this,n,r),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function XF(e,t,n,r){const a=e.options,{[n]:i}=e.getProps([n],r);return Math.abs(t-i)<a.radius+a.hitRadius}YF.id="line",YF.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},YF.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},YF.descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!==e};class ZF extends sL{constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,n){const r=this.options,{x:a,y:i}=this.getProps(["x","y"],n);return Math.pow(e-a,2)+Math.pow(t-i,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(e,t){return XF(this,e,"x",t)}inYRange(e,t){return XF(this,e,"y",t)}getCenterPoint(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}size(e){let t=(e=e||this.options||{}).radius||0;t=Math.max(t,t&&e.hoverRadius||0);return 2*(t+(t&&e.borderWidth||0))}draw(e,t){const n=this.options;this.skip||n.radius<.1||!mR(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,hR(e,n,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}function JF(e,t){const{x:n,y:r,base:a,width:i,height:o}=e.getProps(["x","y","base","width","height"],t);let s,l,c,u,d;return e.horizontal?(d=o/2,s=Math.min(n,a),l=Math.max(n,a),c=r-d,u=r+d):(d=i/2,s=n-d,l=n+d,c=Math.min(r,a),u=Math.max(r,a)),{left:s,top:c,right:l,bottom:u}}function QF(e,t,n,r){return e?0:rI(t,n,r)}function eB(e){const t=JF(e),n=t.right-t.left,r=t.bottom-t.top,a=function(e,t,n){const r=e.options.borderWidth,a=e.borderSkipped,i=ER(r);return{t:QF(a.top,i.top,0,n),r:QF(a.right,i.right,0,t),b:QF(a.bottom,i.bottom,0,n),l:QF(a.left,i.left,0,t)}}(e,n/2,r/2),i=function(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),a=e.options.borderRadius,i=PR(a),o=Math.min(t,n),s=e.borderSkipped,l=r||m_(a);return{topLeft:QF(!l||s.top||s.left,i.topLeft,0,o),topRight:QF(!l||s.top||s.right,i.topRight,0,o),bottomLeft:QF(!l||s.bottom||s.left,i.bottomLeft,0,o),bottomRight:QF(!l||s.bottom||s.right,i.bottomRight,0,o)}}(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:i},inner:{x:t.left+a.l,y:t.top+a.t,w:n-a.l-a.r,h:r-a.t-a.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(a.t,a.l)),topRight:Math.max(0,i.topRight-Math.max(a.t,a.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(a.b,a.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(a.b,a.r))}}}}function tB(e,t,n,r){const a=null===t,i=null===n,o=e&&!(a&&i)&&JF(e,r);return o&&(a||aI(t,o.left,o.right))&&(i||aI(n,o.top,o.bottom))}function nB(e,t){e.rect(t.x,t.y,t.w,t.h)}function rB(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=e.x!==n.x?-t:0,a=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-r,o=(e.y+e.h!==n.y+n.h?t:0)-a;return{x:e.x+r,y:e.y+a,w:e.w+i,h:e.h+o,radius:e.radius}}ZF.id="point",ZF.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},ZF.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class aB extends sL{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:n,backgroundColor:r}}=this,{inner:a,outer:i}=eB(this),o=(s=i.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?SR:nB;var s;e.save(),i.w===a.w&&i.h===a.h||(e.beginPath(),o(e,rB(i,t,a)),e.clip(),o(e,rB(a,-t,i)),e.fillStyle=n,e.fill("evenodd")),e.beginPath(),o(e,rB(a,t)),e.fillStyle=r,e.fill(),e.restore()}inRange(e,t,n){return tB(this,e,t,n)}inXRange(e,t){return tB(this,e,null,t)}inYRange(e,t){return tB(this,null,e,t)}getCenterPoint(e){const{x:t,y:n,base:r,horizontal:a}=this.getProps(["x","y","base","horizontal"],e);return{x:a?(t+r)/2:t,y:a?n:(n+r)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}}aB.id="bar",aB.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},aB.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var iB=Object.freeze({__proto__:null,ArcElement:zF,LineElement:YF,PointElement:ZF,BarElement:aB});function oB(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{value:t})}}function sB(e){e.data.datasets.forEach((e=>{oB(e)}))}var lB={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled)return void sB(e);const r=e.width;e.data.datasets.forEach(((t,a)=>{const{_data:i,indexAxis:o}=t,s=e.getDatasetMeta(a),l=i||t.data;if("y"===MR([o,e.options.indexAxis]))return;if(!s.controller.supportsDecimation)return;const c=e.scales[s.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(e.options.parsing)return;let{start:u,count:d}=function(e,t){const n=t.length;let r,a=0;const{iScale:i}=e,{min:o,max:s,minDefined:l,maxDefined:c}=i.getUserBounds();return l&&(a=rI(oI(t,i.axis,o).lo,0,n-1)),r=c?rI(oI(t,i.axis,s).hi+1,a,n)-a:n-a,{start:a,count:r}}(s,l);if(d<=(n.threshold||4*r))return void oB(t);let p;switch(h_(i)&&(t._data=l,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}})),n.algorithm){case"lttb":p=function(e,t,n,r,a){const i=a.samples||r;if(i>=n)return e.slice(t,t+n);const o=[],s=(n-2)/(i-2);let l=0;const c=t+n-1;let u,d,p,h,f,m=t;for(o[l++]=e[m],u=0;u<i-2;u++){let r,a=0,i=0;const c=Math.floor((u+1)*s)+1+t,g=Math.min(Math.floor((u+2)*s)+1,n)+t,v=g-c;for(r=c;r<g;r++)a+=e[r].x,i+=e[r].y;a/=v,i/=v;const y=Math.floor(u*s)+1+t,b=Math.min(Math.floor((u+1)*s)+1,n)+t,{x:x,y:w}=e[m];for(p=h=-1,r=y;r<b;r++)h=.5*Math.abs((x-a)*(e[r].y-w)-(x-e[r].x)*(i-w)),h>p&&(p=h,d=e[r],f=r);o[l++]=d,m=f}return o[l++]=e[c],o}(l,u,d,r,n);break;case"min-max":p=function(e,t,n,r){let a,i,o,s,l,c,u,d,p,h,f=0,m=0;const g=[],v=t+n-1,y=e[t].x,b=e[v].x-y;for(a=t;a<t+n;++a){i=e[a],o=(i.x-y)/b*r,s=i.y;const t=0|o;if(t===l)s<p?(p=s,c=a):s>h&&(h=s,u=a),f=(m*f+i.x)/++m;else{const n=a-1;if(!h_(c)&&!h_(u)){const t=Math.min(c,u),r=Math.max(c,u);t!==d&&t!==n&&g.push({...e[t],x:f}),r!==d&&r!==n&&g.push({...e[r],x:f})}a>0&&n!==d&&g.push(e[n]),g.push(i),l=t,m=0,p=h=s,c=u=d=a}}return g}(l,u,d,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}t._decimated=p}))},destroy(e){sB(e)}};function cB(e,t,n,r){if(r)return;let a=t[e],i=n[e];return"angle"===e&&(a=tI(a),i=tI(i)),{property:e,start:a,end:i}}function uB(e,t,n){for(;t>e;t--){const e=n[t];if(!isNaN(e.x)&&!isNaN(e.y))break}return t}function dB(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function pB(e,t){let n=[],r=!1;return f_(e)?(r=!0,n=e):n=function(e,t){const{x:n=null,y:r=null}=e||{},a=t.points,i=[];return t.segments.forEach((e=>{let{start:t,end:o}=e;o=uB(t,o,a);const s=a[t],l=a[o];null!==r?(i.push({x:s.x,y:r}),i.push({x:l.x,y:r})):null!==n&&(i.push({x:n,y:s.y}),i.push({x:n,y:l.y}))})),i}(e,t),n.length?new YF({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function hB(e){return e&&!1!==e.fill}function fB(e,t,n){let r=e[t].fill;const a=[t];let i;if(!n)return r;for(;!1!==r&&-1===a.indexOf(r);){if(!g_(r))return r;if(i=e[r],!i)return!1;if(i.visible)return r;a.push(r),r=i.fill}return!1}function mB(e,t,n){const r=function(e){const t=e.options,n=t.fill;let r=y_(n&&n.target,n);void 0===r&&(r=!!t.backgroundColor);if(!1===r||null===r)return!1;if(!0===r)return"origin";return r}(e);if(m_(r))return!isNaN(r.value)&&r;let a=parseFloat(r);return g_(a)&&Math.floor(a)===a?function(e,t,n,r){"-"!==e&&"+"!==e||(n=t+n);if(n===t||n<0||n>=r)return!1;return n}(r[0],t,a,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function gB(e,t,n){const r=[];for(let a=0;a<n.length;a++){const i=n[a],{first:o,last:s,point:l}=vB(i,t,"x");if(!(!l||o&&s))if(o)r.unshift(l);else if(e.push(l),!s)break}e.push(...r)}function vB(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const a=r[n],i=e.segments,o=e.points;let s=!1,l=!1;for(let c=0;c<i.length;c++){const e=i[c],t=o[e.start][n],r=o[e.end][n];if(aI(a,t,r)){s=a===t,l=a===r;break}}return{first:s,last:l,point:r}}class yB{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,t,n){const{x:r,y:a,radius:i}=this;return t=t||{start:0,end:O_},e.arc(r,a,i,t.end,t.start,!0),!n.bounds}interpolate(e){const{x:t,y:n,radius:r}=this,a=e.angle;return{x:t+Math.cos(a)*r,y:n+Math.sin(a)*r,angle:a}}}function bB(e){const{chart:t,fill:n,line:r}=e;if(g_(n))return function(e,t){const n=e.getDatasetMeta(t),r=n&&e.isDatasetVisible(t);return r?n.dataset:null}(t,n);if("stack"===n)return function(e){const{scale:t,index:n,line:r}=e,a=[],i=r.segments,o=r.points,s=function(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let a=0;a<r.length;a++){const e=r[a];if(e.index===t)break;e.hidden||n.unshift(e.dataset)}return n}(t,n);s.push(pB({x:null,y:t.bottom},r));for(let l=0;l<i.length;l++){const e=i[l];for(let t=e.start;t<=e.end;t++)gB(a,o[t],s)}return new YF({points:a,options:{}})}(e);if("shape"===n)return!0;const a=function(e){const t=e.scale||{};if(t.getPointPositionForValue)return function(e){const{scale:t,fill:n}=e,r=t.options,a=t.getLabels().length,i=r.reverse?t.max:t.min,o=function(e,t,n){let r;return r="start"===e?n:"end"===e?t.options.reverse?t.min:t.max:m_(e)?e.value:t.getBaseValue(),r}(n,t,i),s=[];if(r.grid.circular){const e=t.getPointPositionForValue(0,i);return new yB({x:e.x,y:e.y,radius:t.getDistanceFromCenterForValue(o)})}for(let l=0;l<a;++l)s.push(t.getPointPositionForValue(l,o));return s}(e);return function(e){const{scale:t={},fill:n}=e,r=function(e,t){let n=null;return"start"===e?n=t.bottom:"end"===e?n=t.top:m_(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}(n,t);if(g_(r)){const e=t.isHorizontal();return{x:e?r:null,y:e?null:r}}return null}(e)}(e);return a instanceof yB?a:pB(a,r)}function xB(e,t,n){const r=bB(t),{line:a,scale:i,axis:o}=t,s=a.options,l=s.fill,c=s.backgroundColor,{above:u=c,below:d=c}=l||{};r&&a.points.length&&(gR(e,n),function(e,t){const{line:n,target:r,above:a,below:i,area:o,scale:s}=t,l=n._loop?"angle":t.axis;e.save(),"x"===l&&i!==a&&(wB(e,r,o.top),SB(e,{line:n,target:r,color:a,scale:s,property:l}),e.restore(),e.save(),wB(e,r,o.bottom));SB(e,{line:n,target:r,color:i,scale:s,property:l}),e.restore()}(e,{line:a,target:r,above:u,below:d,area:n,scale:i,axis:o}),vR(e))}function wB(e,t,n){const{segments:r,points:a}=t;let i=!0,o=!1;e.beginPath();for(const s of r){const{start:r,end:l}=s,c=a[r],u=a[uB(r,l,a)];i?(e.moveTo(c.x,c.y),i=!1):(e.lineTo(c.x,n),e.lineTo(c.x,c.y)),o=!!t.pathSegment(e,s,{move:o}),o?e.closePath():e.lineTo(u.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function SB(e,t){const{line:n,target:r,property:a,color:i,scale:o}=t,s=function(e,t,n){const r=e.segments,a=e.points,i=t.points,o=[];for(const s of r){let{start:e,end:r}=s;r=uB(e,r,a);const l=cB(n,a[e],a[r],s.loop);if(!t.segments){o.push({source:s,target:l,start:a[e],end:a[r]});continue}const c=AO(t,l);for(const t of c){const e=cB(n,i[t.start],i[t.end],t.loop),r=CO(s,a,e);for(const a of r)o.push({source:a,target:t,start:{[n]:dB(l,e,"start",Math.max)},end:{[n]:dB(l,e,"end",Math.min)}})}}return o}(n,r,a);for(const{source:l,target:c,start:u,end:d}of s){const{style:{backgroundColor:t=i}={}}=l,s=!0!==r;e.save(),e.fillStyle=t,CB(e,o,s&&cB(a,u,d)),e.beginPath();const p=!!n.pathSegment(e,l);let h;if(s){p?e.closePath():AB(e,r,d,a);const t=!!r.pathSegment(e,c,{move:p,reverse:!0});h=p&&t,h||AB(e,r,u,a)}e.closePath(),e.fill(h?"evenodd":"nonzero"),e.restore()}}function CB(e,t,n){const{top:r,bottom:a}=t.chart.chartArea,{property:i,start:o,end:s}=n||{};"x"===i&&(e.beginPath(),e.rect(o,r,s-o,a-r),e.clip())}function AB(e,t,n,r){const a=t.interpolate(n,r);a&&e.lineTo(a.x,a.y)}var kB={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,a=[];let i,o,s,l;for(o=0;o<r;++o)i=e.getDatasetMeta(o),s=i.dataset,l=null,s&&s.options&&s instanceof YF&&(l={visible:e.isDatasetVisible(o),index:o,fill:mB(s,o,r),chart:e,axis:i.controller.options.indexAxis,scale:i.vScale,line:s}),i.$filler=l,a.push(l);for(o=0;o<r;++o)l=a[o],l&&!1!==l.fill&&(l.fill=fB(a,o,n.propagate))},beforeDraw(e,t,n){const r="beforeDraw"===n.drawTime,a=e.getSortedVisibleDatasetMetas(),i=e.chartArea;for(let o=a.length-1;o>=0;--o){const t=a[o].$filler;t&&(t.line.updateControlPoints(i,t.axis),r&&t.fill&&xB(e.ctx,t,i))}},beforeDatasetsDraw(e,t,n){if("beforeDatasetsDraw"!==n.drawTime)return;const r=e.getSortedVisibleDatasetMetas();for(let a=r.length-1;a>=0;--a){const t=r[a].$filler;hB(t)&&xB(e.ctx,t,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;hB(r)&&"beforeDatasetDraw"===n.drawTime&&xB(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const TB=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}};class jB extends sL{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=x_(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter((t=>e.filter(t,this.chart.data)))),e.sort&&(t=t.sort(((t,n)=>e.sort(t,n,this.chart.data)))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const n=e.labels,r=DR(n.font),a=r.size,i=this._computeTitleHeight(),{boxWidth:o,itemHeight:s}=TB(n,a);let l,c;t.font=r.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(i,a,o,s)+10):(c=this.maxHeight,l=this._fitCols(i,a,o,s)+10),this.width=Math.min(l,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,r){const{ctx:a,maxWidth:i,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=r+o;let u=e;a.textAlign="left",a.textBaseline="middle";let d=-1,p=-c;return this.legendItems.forEach(((e,h)=>{const f=n+t/2+a.measureText(e.text).width;(0===h||l[l.length-1]+f+2*o>i)&&(u+=c,l[l.length-(h>0?0:1)]=0,p+=c,d++),s[h]={left:0,top:p,row:d,width:f,height:r},l[l.length-1]+=f+o})),u}_fitCols(e,t,n,r){const{ctx:a,maxHeight:i,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=i-e;let u=o,d=0,p=0,h=0,f=0;return this.legendItems.forEach(((e,i)=>{const m=n+t/2+a.measureText(e.text).width;i>0&&p+r+2*o>c&&(u+=d+o,l.push({width:d,height:p}),h+=d+o,f++,d=p=0),s[i]={left:h,top:p,col:f,width:m,height:r},d=Math.max(d,m),p+=r+o})),u+=d,l.push({width:d,height:p}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:r},rtl:a}}=this,i=yO(a,this.left,this.width);if(this.isHorizontal()){let a=0,o=fI(n,this.left+r,this.right-this.lineWidths[a]);for(const s of t)a!==s.row&&(a=s.row,o=fI(n,this.left+r,this.right-this.lineWidths[a])),s.top+=this.top+e+r,s.left=i.leftForLtr(i.x(o),s.width),o+=s.width+r}else{let a=0,o=fI(n,this.top+e+r,this.bottom-this.columnSizes[a].height);for(const s of t)s.col!==a&&(a=s.col,o=fI(n,this.top+e+r,this.bottom-this.columnSizes[a].height)),s.top=o,s.left+=this.left+r,s.left=i.leftForLtr(i.x(s.left),s.width),o+=s.height+r}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;gR(e,this),this._draw(),vR(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:n,ctx:r}=this,{align:a,labels:i}=e,o=lR.color,s=yO(e.rtl,this.left,this.width),l=DR(i.font),{color:c,padding:u}=i,d=l.size,p=d/2;let h;this.drawTitle(),r.textAlign=s.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=l.string;const{boxWidth:f,boxHeight:m,itemHeight:g}=TB(i,d),v=this.isHorizontal(),y=this._computeTitleHeight();h=v?{x:fI(a,this.left+u,this.right-n[0]),y:this.top+u+y,line:0}:{x:this.left+u,y:fI(a,this.top+y+u,this.bottom-t[0].height),line:0},bO(this.ctx,e.textDirection);const b=g+u;this.legendItems.forEach(((x,w)=>{r.strokeStyle=x.fontColor||c,r.fillStyle=x.fontColor||c;const S=r.measureText(x.text).width,C=s.textAlign(x.textAlign||(x.textAlign=i.textAlign)),A=f+p+S;let k=h.x,T=h.y;s.setWidth(this.width),v?w>0&&k+A+u>this.right&&(T=h.y+=b,h.line++,k=h.x=fI(a,this.left+u,this.right-n[h.line])):w>0&&T+b>this.bottom&&(k=h.x=k+t[h.line].width+u,h.line++,T=h.y=fI(a,this.top+y+u,this.bottom-t[h.line].height));!function(e,t,n){if(isNaN(f)||f<=0||isNaN(m)||m<0)return;r.save();const a=y_(n.lineWidth,1);if(r.fillStyle=y_(n.fillStyle,o),r.lineCap=y_(n.lineCap,"butt"),r.lineDashOffset=y_(n.lineDashOffset,0),r.lineJoin=y_(n.lineJoin,"miter"),r.lineWidth=a,r.strokeStyle=y_(n.strokeStyle,o),r.setLineDash(y_(n.lineDash,[])),i.usePointStyle){const o={radius:m*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:a},l=s.xPlus(e,f/2);fR(r,o,l,t+p,i.pointStyleWidth&&f)}else{const i=t+Math.max((d-m)/2,0),o=s.leftForLtr(e,f),l=PR(n.borderRadius);r.beginPath(),Object.values(l).some((e=>0!==e))?SR(r,{x:o,y:i,w:f,h:m,radius:l}):r.rect(o,i,f,m),r.fill(),0!==a&&r.stroke()}r.restore()}(s.x(k),T,x),k=((e,t,n,r)=>e===(r?"left":"right")?n:"center"===e?(t+n)/2:t)(C,k+f+p,v?k+A:this.right,e.rtl),function(e,t,n){xR(r,n.text,e,t+g/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(k),T,x),v?h.x+=A+u:h.y+=b})),xO(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,n=DR(t.font),r=NR(t.padding);if(!t.display)return;const a=yO(e.rtl,this.left,this.width),i=this.ctx,o=t.position,s=n.size/2,l=r.top+s;let c,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+l,u=fI(e.align,u,this.right-d);else{const t=this.columnSizes.reduce(((e,t)=>Math.max(e,t.height)),0);c=l+fI(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const p=fI(o,u,u+d);i.textAlign=a.textAlign(hI(o)),i.textBaseline="middle",i.strokeStyle=t.color,i.fillStyle=t.color,i.font=n.string,xR(i,t.text,p,c,n)}_computeTitleHeight(){const e=this.options.title,t=DR(e.font),n=NR(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,r,a;if(aI(e,this.left,this.right)&&aI(t,this.top,this.bottom))for(a=this.legendHitBoxes,n=0;n<a.length;++n)if(r=a[n],aI(e,r.left,r.left+r.width)&&aI(t,r.top,r.top+r.height))return this.legendItems[n];return null}handleEvent(e){const t=this.options;if(!function(e,t){if(("mousemove"===e||"mouseout"===e)&&(t.onHover||t.onLeave))return!0;if(t.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,t))return;const n=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type||"mouseout"===e.type){const r=this._hoveredItem,a=((e,t)=>null!==e&&null!==t&&e.datasetIndex===t.datasetIndex&&e.index===t.index)(r,n);r&&!a&&x_(t.onLeave,[e,r,this],this),this._hoveredItem=n,n&&!a&&x_(t.onHover,[e,n,this],this)}else n&&x_(t.onClick,[e,n,this],this)}}var EB={id:"legend",_element:jB,start(e,t,n){const r=e.legend=new jB({ctx:e.ctx,options:n,chart:e});HL.configure(e,r,n),HL.addBox(e,r)},stop(e){HL.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;HL.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,a=n.chart;a.isDatasetVisible(r)?(a.hide(r),t.hidden=!0):(a.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:a,color:i}}=e.legend.options;return e._getSortedDatasetMetas().map((e=>{const o=e.controller.getStyle(n?0:void 0),s=NR(o.borderWidth);return{text:t[e.index].label,fillStyle:o.backgroundColor,fontColor:i,hidden:!e.visible,lineCap:o.borderCapStyle,lineDash:o.borderDash,lineDashOffset:o.borderDashOffset,lineJoin:o.borderJoinStyle,lineWidth:(s.width+s.height)/4,strokeStyle:o.borderColor,pointStyle:r||o.pointStyle,rotation:o.rotation,textAlign:a||o.textAlign,borderRadius:0,datasetIndex:e.index}}),this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class PB extends sL{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.height=this.bottom=t;const r=f_(n.text)?n.text.length:1;this._padding=NR(n.padding);const a=r*DR(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=a:this.width=a}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:n,bottom:r,right:a,options:i}=this,o=i.align;let s,l,c,u=0;return this.isHorizontal()?(l=fI(o,n,a),c=t+e,s=a-n):("left"===i.position?(l=n+e,c=fI(o,r,t),u=-.5*R_):(l=a-e,c=fI(o,t,r),u=.5*R_),s=r-t),{titleX:l,titleY:c,maxWidth:s,rotation:u}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const n=DR(t.font),r=n.lineHeight/2+this._padding.top,{titleX:a,titleY:i,maxWidth:o,rotation:s}=this._drawArgs(r);xR(e,t.text,0,0,n,{color:t.color,maxWidth:o,rotation:s,textAlign:hI(t.align),textBaseline:"middle",translation:[a,i]})}}var NB={id:"title",_element:PB,start(e,t,n){!function(e,t){const n=new PB({ctx:e.ctx,options:t,chart:e});HL.configure(e,n,t),HL.addBox(e,n),e.titleBlock=n}(e,n)},stop(e){const t=e.titleBlock;HL.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;HL.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const DB=new WeakMap;var MB={id:"subtitle",start(e,t,n){const r=new PB({ctx:e.ctx,options:n,chart:e});HL.configure(e,r,n),HL.addBox(e,r),DB.set(e,r)},stop(e){HL.removeBox(e,DB.get(e)),DB.delete(e)},beforeUpdate(e,t,n){const r=DB.get(e);HL.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const _B={average(e){if(!e.length)return!1;let t,n,r=0,a=0,i=0;for(t=0,n=e.length;t<n;++t){const n=e[t].element;if(n&&n.hasValue()){const e=n.tooltipPosition();r+=e.x,a+=e.y,++i}}return{x:r/i,y:a/i}},nearest(e,t){if(!e.length)return!1;let n,r,a,i=t.x,o=t.y,s=Number.POSITIVE_INFINITY;for(n=0,r=e.length;n<r;++n){const r=e[n].element;if(r&&r.hasValue()){const e=Q_(t,r.getCenterPoint());e<s&&(s=e,a=r)}}if(a){const e=a.tooltipPosition();i=e.x,o=e.y}return{x:i,y:o}}};function IB(e,t){return t&&(f_(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function RB(e){return("string"===typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function OB(e,t){const{element:n,datasetIndex:r,index:a}=t,i=e.getDatasetMeta(r).controller,{label:o,value:s}=i.getLabelAndValue(a);return{chart:e,label:o,parsed:i.getParsed(a),raw:e.data.datasets[r].data[a],formattedValue:s,dataset:i.getDataset(),dataIndex:a,datasetIndex:r,element:n}}function LB(e,t){const n=e.chart.ctx,{body:r,footer:a,title:i}=e,{boxWidth:o,boxHeight:s}=t,l=DR(t.bodyFont),c=DR(t.titleFont),u=DR(t.footerFont),d=i.length,p=a.length,h=r.length,f=NR(t.padding);let m=f.height,g=0,v=r.reduce(((e,t)=>e+t.before.length+t.lines.length+t.after.length),0);if(v+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),v){m+=h*(t.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(v-h)*l.lineHeight+(v-1)*t.bodySpacing}p&&(m+=t.footerMarginTop+p*u.lineHeight+(p-1)*t.footerSpacing);let y=0;const b=function(e){g=Math.max(g,n.measureText(e).width+y)};return n.save(),n.font=c.string,w_(e.title,b),n.font=l.string,w_(e.beforeBody.concat(e.afterBody),b),y=t.displayColors?o+2+t.boxPadding:0,w_(r,(e=>{w_(e.before,b),w_(e.lines,b),w_(e.after,b)})),y=0,n.font=u.string,w_(e.footer,b),n.restore(),g+=f.width,{width:g,height:m}}function FB(e,t,n,r){const{x:a,width:i}=n,{width:o,chartArea:{left:s,right:l}}=e;let c="center";return"center"===r?c=a<=(s+l)/2?"left":"right":a<=i/2?c="left":a>=o-i/2&&(c="right"),function(e,t,n,r){const{x:a,width:i}=r,o=n.caretSize+n.caretPadding;return"left"===e&&a+i+o>t.width||"right"===e&&a-i-o<0||void 0}(c,e,t,n)&&(c="center"),c}function BB(e,t,n){const r=n.yAlign||t.yAlign||function(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||FB(e,t,n,r),yAlign:r}}function zB(e,t,n,r){const{caretSize:a,caretPadding:i,cornerRadius:o}=e,{xAlign:s,yAlign:l}=n,c=a+i,{topLeft:u,topRight:d,bottomLeft:p,bottomRight:h}=PR(o);let f=function(e,t){let{x:n,width:r}=e;return"right"===t?n-=r:"center"===t&&(n-=r/2),n}(t,s);const m=function(e,t,n){let{y:r,height:a}=e;return"top"===t?r+=n:r-="bottom"===t?a+n:a/2,r}(t,l,c);return"center"===l?"left"===s?f+=c:"right"===s&&(f-=c):"left"===s?f-=Math.max(u,p)+a:"right"===s&&(f+=Math.max(d,h)+a),{x:rI(f,0,r.width-t.width),y:rI(m,0,r.height-t.height)}}function VB(e,t,n){const r=NR(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-r.right:e.x+r.left}function WB(e){return IB([],RB(e))}function UB(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}class $B extends sL{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart||e._chart,this._chart=this.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&t.options.animation&&n.animations,a=new _O(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=(e=this.chart.getContext(),t=this,n=this._tooltipItems,_R(e,{tooltip:t,tooltipItems:n,type:"tooltip"})));var e,t,n}getTitle(e,t){const{callbacks:n}=t,r=n.beforeTitle.apply(this,[e]),a=n.title.apply(this,[e]),i=n.afterTitle.apply(this,[e]);let o=[];return o=IB(o,RB(r)),o=IB(o,RB(a)),o=IB(o,RB(i)),o}getBeforeBody(e,t){return WB(t.callbacks.beforeBody.apply(this,[e]))}getBody(e,t){const{callbacks:n}=t,r=[];return w_(e,(e=>{const t={before:[],lines:[],after:[]},a=UB(n,e);IB(t.before,RB(a.beforeLabel.call(this,e))),IB(t.lines,a.label.call(this,e)),IB(t.after,RB(a.afterLabel.call(this,e))),r.push(t)})),r}getAfterBody(e,t){return WB(t.callbacks.afterBody.apply(this,[e]))}getFooter(e,t){const{callbacks:n}=t,r=n.beforeFooter.apply(this,[e]),a=n.footer.apply(this,[e]),i=n.afterFooter.apply(this,[e]);let o=[];return o=IB(o,RB(r)),o=IB(o,RB(a)),o=IB(o,RB(i)),o}_createItems(e){const t=this._active,n=this.chart.data,r=[],a=[],i=[];let o,s,l=[];for(o=0,s=t.length;o<s;++o)l.push(OB(this.chart,t[o]));return e.filter&&(l=l.filter(((t,r,a)=>e.filter(t,r,a,n)))),e.itemSort&&(l=l.sort(((t,r)=>e.itemSort(t,r,n)))),w_(l,(t=>{const n=UB(e.callbacks,t);r.push(n.labelColor.call(this,t)),a.push(n.labelPointStyle.call(this,t)),i.push(n.labelTextColor.call(this,t))})),this.labelColors=r,this.labelPointStyles=a,this.labelTextColors=i,this.dataPoints=l,l}update(e,t){const n=this.options.setContext(this.getContext()),r=this._active;let a,i=[];if(r.length){const e=_B[n.position].call(this,r,this._eventPosition);i=this._createItems(n),this.title=this.getTitle(i,n),this.beforeBody=this.getBeforeBody(i,n),this.body=this.getBody(i,n),this.afterBody=this.getAfterBody(i,n),this.footer=this.getFooter(i,n);const t=this._size=LB(this,n),o=Object.assign({},e,t),s=BB(this.chart,n,o),l=zB(n,o,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,a={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(a={opacity:0});this._tooltipItems=i,this.$context=void 0,a&&this._resolveAnimations().update(this,a),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,r){const a=this.getCaretPosition(e,n,r);t.lineTo(a.x1,a.y1),t.lineTo(a.x2,a.y2),t.lineTo(a.x3,a.y3)}getCaretPosition(e,t,n){const{xAlign:r,yAlign:a}=this,{caretSize:i,cornerRadius:o}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:u}=PR(o),{x:d,y:p}=e,{width:h,height:f}=t;let m,g,v,y,b,x;return"center"===a?(b=p+f/2,"left"===r?(m=d,g=m-i,y=b+i,x=b-i):(m=d+h,g=m+i,y=b-i,x=b+i),v=m):(g="left"===r?d+Math.max(s,c)+i:"right"===r?d+h-Math.max(l,u)-i:this.caretX,"top"===a?(y=p,b=y-i,m=g-i,v=g+i):(y=p+f,b=y+i,m=g+i,v=g-i),x=y),{x1:m,x2:g,x3:v,y1:y,y2:b,y3:x}}drawTitle(e,t,n){const r=this.title,a=r.length;let i,o,s;if(a){const l=yO(n.rtl,this.x,this.width);for(e.x=VB(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",i=DR(n.titleFont),o=n.titleSpacing,t.fillStyle=n.titleColor,t.font=i.string,s=0;s<a;++s)t.fillText(r[s],l.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+o,s+1===a&&(e.y+=n.titleMarginBottom-o)}}_drawColorBox(e,t,n,r,a){const i=this.labelColors[n],o=this.labelPointStyles[n],{boxHeight:s,boxWidth:l,boxPadding:c}=a,u=DR(a.bodyFont),d=VB(this,"left",a),p=r.x(d),h=s<u.lineHeight?(u.lineHeight-s)/2:0,f=t.y+h;if(a.usePointStyle){const t={radius:Math.min(l,s)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},n=r.leftForLtr(p,l)+l/2,c=f+s/2;e.strokeStyle=a.multiKeyBackground,e.fillStyle=a.multiKeyBackground,hR(e,t,n,c),e.strokeStyle=i.borderColor,e.fillStyle=i.backgroundColor,hR(e,t,n,c)}else{e.lineWidth=m_(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,e.strokeStyle=i.borderColor,e.setLineDash(i.borderDash||[]),e.lineDashOffset=i.borderDashOffset||0;const t=r.leftForLtr(p,l-c),n=r.leftForLtr(r.xPlus(p,1),l-c-2),o=PR(i.borderRadius);Object.values(o).some((e=>0!==e))?(e.beginPath(),e.fillStyle=a.multiKeyBackground,SR(e,{x:t,y:f,w:l,h:s,radius:o}),e.fill(),e.stroke(),e.fillStyle=i.backgroundColor,e.beginPath(),SR(e,{x:n,y:f+1,w:l-2,h:s-2,radius:o}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(t,f,l,s),e.strokeRect(t,f,l,s),e.fillStyle=i.backgroundColor,e.fillRect(n,f+1,l-2,s-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){const{body:r}=this,{bodySpacing:a,bodyAlign:i,displayColors:o,boxHeight:s,boxWidth:l,boxPadding:c}=n,u=DR(n.bodyFont);let d=u.lineHeight,p=0;const h=yO(n.rtl,this.x,this.width),f=function(n){t.fillText(n,h.x(e.x+p),e.y+d/2),e.y+=d+a},m=h.textAlign(i);let g,v,y,b,x,w,S;for(t.textAlign=i,t.textBaseline="middle",t.font=u.string,e.x=VB(this,m,n),t.fillStyle=n.bodyColor,w_(this.beforeBody,f),p=o&&"right"!==m?"center"===i?l/2+c:l+2+c:0,b=0,w=r.length;b<w;++b){for(g=r[b],v=this.labelTextColors[b],t.fillStyle=v,w_(g.before,f),y=g.lines,o&&y.length&&(this._drawColorBox(t,e,b,h,n),d=Math.max(u.lineHeight,s)),x=0,S=y.length;x<S;++x)f(y[x]),d=u.lineHeight;w_(g.after,f)}p=0,d=u.lineHeight,w_(this.afterBody,f),e.y-=a}drawFooter(e,t,n){const r=this.footer,a=r.length;let i,o;if(a){const s=yO(n.rtl,this.x,this.width);for(e.x=VB(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline="middle",i=DR(n.footerFont),t.fillStyle=n.footerColor,t.font=i.string,o=0;o<a;++o)t.fillText(r[o],s.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+n.footerSpacing}}drawBackground(e,t,n,r){const{xAlign:a,yAlign:i}=this,{x:o,y:s}=e,{width:l,height:c}=n,{topLeft:u,topRight:d,bottomLeft:p,bottomRight:h}=PR(r.cornerRadius);t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.beginPath(),t.moveTo(o+u,s),"top"===i&&this.drawCaret(e,t,n,r),t.lineTo(o+l-d,s),t.quadraticCurveTo(o+l,s,o+l,s+d),"center"===i&&"right"===a&&this.drawCaret(e,t,n,r),t.lineTo(o+l,s+c-h),t.quadraticCurveTo(o+l,s+c,o+l-h,s+c),"bottom"===i&&this.drawCaret(e,t,n,r),t.lineTo(o+p,s+c),t.quadraticCurveTo(o,s+c,o,s+c-p),"center"===i&&"left"===a&&this.drawCaret(e,t,n,r),t.lineTo(o,s+u),t.quadraticCurveTo(o,s,o+u,s),t.closePath(),t.fill(),r.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,n=this.$animations,r=n&&n.x,a=n&&n.y;if(r||a){const n=_B[e.position].call(this,this._active,this._eventPosition);if(!n)return;const i=this._size=LB(this,e),o=Object.assign({},n,this._size),s=BB(t,e,o),l=zB(e,o,s,t);r._to===l.x&&a._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=i.width,this.height=i.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(t);const r={width:this.width,height:this.height},a={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const i=NR(t.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&o&&(e.save(),e.globalAlpha=n,this.drawBackground(a,e,r,t),bO(e,t.textDirection),a.y+=i.top,this.drawTitle(a,e,t),this.drawBody(a,e,t),this.drawFooter(a,e,t),xO(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const n=this._active,r=e.map((e=>{let{datasetIndex:t,index:n}=e;const r=this.chart.getDatasetMeta(t);if(!r)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:r.data[n],index:n}})),a=!S_(n,r),i=this._positionChanged(r,t);(a||i)&&(this._active=r,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,a=this._active||[],i=this._getActiveElements(e,a,t,n),o=this._positionChanged(i,e),s=t||!S_(i,a)||o;return s&&(this._active=i,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,n,r){const a=this.options;if("mouseout"===e.type)return[];if(!r)return t;const i=this.chart.getElementsAtEventForMode(e,a.mode,a,n);return a.reverse&&i.reverse(),i}_positionChanged(e,t){const{caretX:n,caretY:r,options:a}=this,i=_B[a.position].call(this,e,t);return!1!==i&&(n!==i.x||r!==i.y)}}$B.positioners=_B;var HB={id:"tooltip",_element:$B,positioners:_B,afterInit(e,t,n){n&&(e.tooltip=new $B({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",n))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:d_,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:d_,beforeBody:d_,beforeLabel:d_,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return h_(n)||(t+=n),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:d_,afterBody:d_,beforeFooter:d_,footer:d_,afterFooter:d_}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},qB=Object.freeze({__proto__:null,Decimation:lB,Filler:kB,Legend:EB,SubTitle:MB,Title:NB,Tooltip:HB});function GB(e,t,n,r){const a=e.indexOf(t);if(-1===a)return((e,t,n,r)=>("string"===typeof t?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n))(e,t,n,r);return a!==e.lastIndexOf(t)?n:a}class KB extends yL{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:n,label:r}of t)e[n]===r&&e.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(h_(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:rI(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:GB(n,e,y_(t,e),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:n,max:r}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(n=0),t||(r=this.getLabels().length-1)),this.min=n,this.max=r}buildTicks(){const e=this.min,t=this.max,n=this.options.offset,r=[];let a=this.getLabels();a=0===e&&t===a.length-1?a:a.slice(e,t+1),this._valueRange=Math.max(a.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let i=e;i<=t;i++)r.push({value:i});return r}getLabelForValue(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!==typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function YB(e,t){const n=[],{bounds:r,step:a,min:i,max:o,precision:s,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=e,p=a||1,h=c-1,{min:f,max:m}=t,g=!h_(i),v=!h_(o),y=!h_(l),b=(m-f)/(u+1);let x,w,S,C,A=H_((m-f)/h/p)*p;if(A<1e-14&&!g&&!v)return[{value:f},{value:m}];C=Math.ceil(m/A)-Math.floor(f/A),C>h&&(A=H_(C*A/h/p)*p),h_(s)||(x=Math.pow(10,s),A=Math.ceil(A*x)/x),"ticks"===r?(w=Math.floor(f/A)*A,S=Math.ceil(m/A)*A):(w=f,S=m),g&&v&&a&&function(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}((o-i)/a,A/1e3)?(C=Math.round(Math.min((o-i)/A,c)),A=(o-i)/C,w=i,S=o):y?(w=g?i:w,S=v?o:S,C=l-1,A=(S-w)/C):(C=(S-w)/A,C=G_(C,Math.round(C),A/1e3)?Math.round(C):Math.ceil(C));const k=Math.max(Z_(A),Z_(w));x=Math.pow(10,h_(s)?k:s),w=Math.round(w*x)/x,S=Math.round(S*x)/x;let T=0;for(g&&(d&&w!==i?(n.push({value:i}),w<i&&T++,G_(Math.round((w+T*A)*x)/x,i,XB(i,b,e))&&T++):w<i&&T++);T<C;++T)n.push({value:Math.round((w+T*A)*x)/x});return v&&d&&S!==o?n.length&&G_(n[n.length-1].value,o,XB(o,b,e))?n[n.length-1].value=o:n.push({value:o}):v&&S!==o||n.push({value:S}),n}function XB(e,t,n){let{horizontal:r,minRotation:a}=n;const i=Y_(a),o=(r?Math.sin(i):Math.cos(i))||.001,s=.75*t*(""+e).length;return Math.min(t/o,s)}KB.id="category",KB.defaults={ticks:{callback:KB.prototype.getLabelForValue}};class ZB extends yL{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return h_(e)||("number"===typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:a}=this;const i=e=>r=t?r:e,o=e=>a=n?a:e;if(e){const e=$_(r),t=$_(a);e<0&&t<0?o(0):e>0&&t>0&&i(0)}if(r===a){let t=1;(a>=Number.MAX_SAFE_INTEGER||r<=Number.MIN_SAFE_INTEGER)&&(t=Math.abs(.05*a)),o(a+t),e||i(r-t)}this.min=r,this.max=a}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:n,stepSize:r}=e;return r?(t=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,t>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3)):(t=this.computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let n=this.getTickLimit();n=Math.max(2,n);const r=YB({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&K_(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const e=this.ticks;let t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){const r=(n-t)/Math.max(e.length-1,1)/2;t-=r,n+=r}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return vO(e,this.chart.options.locale,this.options.ticks.format)}}class JB extends ZB{determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=g_(e)?e:0,this.max=g_(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,n=Y_(this.options.ticks.minRotation),r=(e?Math.sin(n):Math.cos(n))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,a.lineHeight/r))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}function QB(e){return 1===e/Math.pow(10,Math.floor(U_(e)))}JB.id="linear",JB.defaults={ticks:{callback:cL.formatters.numeric}};class ez extends yL{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){const n=ZB.prototype.parse.apply(this,[e,t]);if(0!==n)return g_(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=g_(e)?Math.max(0,e):null,this.max=g_(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let n=this.min,r=this.max;const a=t=>n=e?n:t,i=e=>r=t?r:e,o=(e,t)=>Math.pow(10,Math.floor(U_(e))+t);n===r&&(n<=0?(a(1),i(10)):(a(o(n,-1)),i(o(r,1)))),n<=0&&a(o(r,-1)),r<=0&&i(o(n,1)),this._zero&&this.min!==this._suggestedMin&&n===o(this.min,0)&&a(o(n,-1)),this.min=n,this.max=r}buildTicks(){const e=this.options,t=function(e,t){const n=Math.floor(U_(t.max)),r=Math.ceil(t.max/Math.pow(10,n)),a=[];let i=v_(e.min,Math.pow(10,Math.floor(U_(t.min)))),o=Math.floor(U_(i)),s=Math.floor(i/Math.pow(10,o)),l=o<0?Math.pow(10,Math.abs(o)):1;do{a.push({value:i,major:QB(i)}),++s,10===s&&(s=1,++o,l=o>=0?1:l),i=Math.round(s*Math.pow(10,o)*l)/l}while(o<n||o===n&&s<r);const c=v_(e.max,i);return a.push({value:c,major:QB(i)}),a}({min:this._userMin,max:this._userMax},this);return"ticks"===e.bounds&&K_(t,this,"value"),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return void 0===e?"0":vO(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=U_(e),this._valueRange=U_(this.max)-U_(e)}getPixelForValue(e){return void 0!==e&&0!==e||(e=this.min),null===e||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(U_(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const t=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+t*this._valueRange)}}function tz(e){const t=e.ticks;if(t.display&&e.display){const e=NR(t.backdropPadding);return y_(t.font&&t.font.size,lR.font.size)+e.height}return 0}function nz(e,t,n,r,a){return e===r||e===a?{start:t-n/2,end:t+n/2}:e<r||e>a?{start:t-n,end:t}:{start:t,end:t+n}}function rz(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],a=[],i=e._pointLabels.length,o=e.options.pointLabels,s=o.centerPointLabels?R_/i:0;for(let d=0;d<i;d++){const i=o.setContext(e.getPointLabelContext(d));a[d]=i.padding;const p=e.getPointPosition(d,e.drawingArea+a[d],s),h=DR(i.font),f=(l=e.ctx,c=h,u=f_(u=e._pointLabels[d])?u:[u],{w:uR(l,c.string,u),h:u.length*c.lineHeight});r[d]=f;const m=tI(e.getIndexAngle(d)+s),g=Math.round(X_(m));az(n,t,m,nz(g,p.x,f.w,0,180),nz(g,p.y,f.h,90,270))}var l,c,u;e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=function(e,t,n){const r=[],a=e._pointLabels.length,i=e.options,o=tz(i)/2,s=e.drawingArea,l=i.pointLabels.centerPointLabels?R_/a:0;for(let c=0;c<a;c++){const a=e.getPointPosition(c,s+o+n[c],l),i=Math.round(X_(tI(a.angle+z_))),u=t[c],d=sz(a.y,u.h,i),p=iz(i),h=oz(a.x,u.w,p);r.push({x:a.x,y:d,textAlign:p,left:h,top:d,right:h+u.w,bottom:d+u.h})}return r}(e,r,a)}function az(e,t,n,r,a){const i=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n));let s=0,l=0;r.start<t.l?(s=(t.l-r.start)/i,e.l=Math.min(e.l,t.l-s)):r.end>t.r&&(s=(r.end-t.r)/i,e.r=Math.max(e.r,t.r+s)),a.start<t.t?(l=(t.t-a.start)/o,e.t=Math.min(e.t,t.t-l)):a.end>t.b&&(l=(a.end-t.b)/o,e.b=Math.max(e.b,t.b+l))}function iz(e){return 0===e||180===e?"center":e<180?"left":"right"}function oz(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function sz(e,t,n){return 90===n||270===n?e-=t/2:(n>270||n<90)&&(e-=t),e}function lz(e,t,n,r){const{ctx:a}=e;if(n)a.arc(e.xCenter,e.yCenter,t,0,O_);else{let n=e.getPointPosition(0,t);a.moveTo(n.x,n.y);for(let i=1;i<r;i++)n=e.getPointPosition(i,t),a.lineTo(n.x,n.y)}}ez.id="logarithmic",ez.defaults={ticks:{callback:cL.formatters.logarithmic,major:{enabled:!0}}};class cz extends ZB{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=NR(tz(this.options)/2),t=this.width=this.maxWidth-e.width,n=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+n/2+e.top),this.drawingArea=Math.floor(Math.min(t,n)/2)}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!1);this.min=g_(e)&&!isNaN(e)?e:0,this.max=g_(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/tz(this.options))}generateTickLabels(e){ZB.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map(((e,t)=>{const n=x_(this.options.pointLabels.callback,[e,t],this);return n||0===n?n:""})).filter(((e,t)=>this.chart.getDataVisibility(t)))}fit(){const e=this.options;e.display&&e.pointLabels.display?rz(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,n,r){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,r))}getIndexAngle(e){return tI(e*(O_/(this._pointLabels.length||1))+Y_(this.options.startAngle||0))}getDistanceFromCenterForValue(e){if(h_(e))return NaN;const t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(h_(e))return NaN;const t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){const t=this._pointLabels||[];if(e>=0&&e<t.length){const n=t[e];return function(e,t,n){return _R(e,{label:n,index:t,type:"pointLabel"})}(this.getContext(),e,n)}}getPointPosition(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=this.getIndexAngle(e)-z_+n;return{x:Math.cos(r)*t+this.xCenter,y:Math.sin(r)*t+this.yCenter,angle:r}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:t,top:n,right:r,bottom:a}=this._pointLabelItems[e];return{left:t,top:n,right:r,bottom:a}}drawBackground(){const{backgroundColor:e,grid:{circular:t}}=this.options;if(e){const n=this.ctx;n.save(),n.beginPath(),lz(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),n.closePath(),n.fillStyle=e,n.fill(),n.restore()}}drawGrid(){const e=this.ctx,t=this.options,{angleLines:n,grid:r}=t,a=this._pointLabels.length;let i,o,s;if(t.pointLabels.display&&function(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let a=t-1;a>=0;a--){const t=r.setContext(e.getPointLabelContext(a)),i=DR(t.font),{x:o,y:s,textAlign:l,left:c,top:u,right:d,bottom:p}=e._pointLabelItems[a],{backdropColor:h}=t;if(!h_(h)){const e=PR(t.borderRadius),r=NR(t.backdropPadding);n.fillStyle=h;const a=c-r.left,i=u-r.top,o=d-c+r.width,s=p-u+r.height;Object.values(e).some((e=>0!==e))?(n.beginPath(),SR(n,{x:a,y:i,w:o,h:s,radius:e}),n.fill()):n.fillRect(a,i,o,s)}xR(n,e._pointLabels[a],o,s+i.lineHeight/2,i,{color:t.color,textAlign:l,textBaseline:"middle"})}}(this,a),r.display&&this.ticks.forEach(((e,t)=>{if(0!==t){o=this.getDistanceFromCenterForValue(e.value);!function(e,t,n,r){const a=e.ctx,i=t.circular,{color:o,lineWidth:s}=t;!i&&!r||!o||!s||n<0||(a.save(),a.strokeStyle=o,a.lineWidth=s,a.setLineDash(t.borderDash),a.lineDashOffset=t.borderDashOffset,a.beginPath(),lz(e,n,i,r),a.closePath(),a.stroke(),a.restore())}(this,r.setContext(this.getContext(t-1)),o,a)}})),n.display){for(e.save(),i=a-1;i>=0;i--){const r=n.setContext(this.getPointLabelContext(i)),{color:a,lineWidth:l}=r;l&&a&&(e.lineWidth=l,e.strokeStyle=a,e.setLineDash(r.borderDash),e.lineDashOffset=r.borderDashOffset,o=this.getDistanceFromCenterForValue(t.ticks.reverse?this.min:this.max),s=this.getPointPosition(i,o),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(s.x,s.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;const r=this.getIndexAngle(0);let a,i;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(r),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach(((r,o)=>{if(0===o&&!t.reverse)return;const s=n.setContext(this.getContext(o)),l=DR(s.font);if(a=this.getDistanceFromCenterForValue(this.ticks[o].value),s.showLabelBackdrop){e.font=l.string,i=e.measureText(r.label).width,e.fillStyle=s.backdropColor;const t=NR(s.backdropPadding);e.fillRect(-i/2-t.left,-a-l.size/2-t.top,i+t.width,l.size+t.height)}xR(e,r.label,0,-a,l,{color:s.color})})),e.restore()}drawTitle(){}}cz.id="radialLinear",cz.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:cL.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:e=>e,padding:5,centerPointLabels:!1}},cz.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},cz.descriptors={angleLines:{_fallback:"grid"}};const uz={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},dz=Object.keys(uz);function pz(e,t){return e-t}function hz(e,t){if(h_(t))return null;const n=e._adapter,{parser:r,round:a,isoWeekday:i}=e._parseOpts;let o=t;return"function"===typeof r&&(o=r(o)),g_(o)||(o="string"===typeof r?n.parse(o,r):n.parse(o)),null===o?null:(a&&(o="week"!==a||!q_(i)&&!0!==i?n.startOf(o,a):n.startOf(o,"isoWeek",i)),+o)}function fz(e,t,n,r){const a=dz.length;for(let i=dz.indexOf(e);i<a-1;++i){const e=uz[dz[i]],a=e.steps?e.steps:Number.MAX_SAFE_INTEGER;if(e.common&&Math.ceil((n-t)/(a*e.size))<=r)return dz[i]}return dz[a-1]}function mz(e,t,n){if(n){if(n.length){const{lo:r,hi:a}=iI(n,t);e[n[r]>=t?n[r]:n[a]]=!0}}else e[t]=!0}function gz(e,t,n){const r=[],a={},i=t.length;let o,s;for(o=0;o<i;++o)s=t[o],a[s]=o,r.push({value:s,major:!1});return 0!==i&&n?function(e,t,n,r){const a=e._adapter,i=+a.startOf(t[0].value,r),o=t[t.length-1].value;let s,l;for(s=i;s<=o;s=+a.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}(e,r,a,n):r}class vz extends yL{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t){const n=e.time||(e.time={}),r=this._adapter=new kL._date(e.adapters.date);r.init(t),j_(n.displayFormats,r.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return void 0===e?null:hz(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,t=this._adapter,n=e.time.unit||"day";let{min:r,max:a,minDefined:i,maxDefined:o}=this.getUserBounds();function s(e){i||isNaN(e.min)||(r=Math.min(r,e.min)),o||isNaN(e.max)||(a=Math.max(a,e.max))}i&&o||(s(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||s(this.getMinMax(!1))),r=g_(r)&&!isNaN(r)?r:+t.startOf(Date.now(),n),a=g_(a)&&!isNaN(a)?a:+t.endOf(Date.now(),n)+1,this.min=Math.min(r,a-1),this.max=Math.max(r+1,a)}_getLabelBounds(){const e=this.getLabelTimestamps();let t=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}buildTicks(){const e=this.options,t=e.time,n=e.ticks,r="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const a=this.min,i=function(e,t,n){let r=0,a=e.length;for(;r<a&&e[r]<t;)r++;for(;a>r&&e[a-1]>n;)a--;return r>0||a<e.length?e.slice(r,a):e}(r,a,this.max);return this._unit=t.unit||(n.autoSkip?fz(t.minUnit,this.min,this.max,this._getLabelCapacity(a)):function(e,t,n,r,a){for(let i=dz.length-1;i>=dz.indexOf(n);i--){const n=dz[i];if(uz[n].common&&e._adapter.diff(a,r,n)>=t-1)return n}return dz[n?dz.indexOf(n):0]}(this,i.length,t.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(e){for(let t=dz.indexOf(e)+1,n=dz.length;t<n;++t)if(uz[dz[t]].common)return dz[t]}(this._unit):void 0,this.initOffsets(r),e.reverse&&i.reverse(),gz(this,i,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((e=>+e.value)))}initOffsets(e){let t,n,r=0,a=0;this.options.offset&&e.length&&(t=this.getDecimalForValue(e[0]),r=1===e.length?1-t:(this.getDecimalForValue(e[1])-t)/2,n=this.getDecimalForValue(e[e.length-1]),a=1===e.length?n:(n-this.getDecimalForValue(e[e.length-2]))/2);const i=e.length<3?.5:.25;r=rI(r,0,i),a=rI(a,0,i),this._offsets={start:r,end:a,factor:1/(r+1+a)}}_generate(){const e=this._adapter,t=this.min,n=this.max,r=this.options,a=r.time,i=a.unit||fz(a.minUnit,t,n,this._getLabelCapacity(t)),o=y_(a.stepSize,1),s="week"===i&&a.isoWeekday,l=q_(s)||!0===s,c={};let u,d,p=t;if(l&&(p=+e.startOf(p,"isoWeek",s)),p=+e.startOf(p,l?"day":i),e.diff(n,t,i)>1e5*o)throw new Error(t+" and "+n+" are too far apart with stepSize of "+o+" "+i);const h="data"===r.ticks.source&&this.getDataTimestamps();for(u=p,d=0;u<n;u=+e.add(u,o,i),d++)mz(c,u,h);return u!==n&&"ticks"!==r.bounds&&1!==d||mz(c,u,h),Object.keys(c).sort(((e,t)=>e-t)).map((e=>+e))}getLabelForValue(e){const t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}_tickFormatFunction(e,t,n,r){const a=this.options,i=a.time.displayFormats,o=this._unit,s=this._majorUnit,l=o&&i[o],c=s&&i[s],u=n[t],d=s&&c&&u&&u.major,p=this._adapter.format(e,r||(d?c:l)),h=a.ticks.callback;return h?x_(h,[p,t,n],this):p}generateTickLabels(e){let t,n,r;for(t=0,n=e.length;t<n;++t)r=e[t],r.label=this._tickFormatFunction(r.value,t,e)}getDecimalForValue(e){return null===e?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const t=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+n)*t.factor)}getValueForPixel(e){const t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+n*(this.max-this.min)}_getLabelSize(e){const t=this.options.ticks,n=this.ctx.measureText(e).width,r=Y_(this.isHorizontal()?t.maxRotation:t.minRotation),a=Math.cos(r),i=Math.sin(r),o=this._resolveTickFontOptions(0).size;return{w:n*a+o*i,h:n*i+o*a}}_getLabelCapacity(e){const t=this.options.time,n=t.displayFormats,r=n[t.unit]||n.millisecond,a=this._tickFormatFunction(e,0,gz(this,[e],this._majorUnit),r),i=this._getLabelSize(a),o=Math.floor(this.isHorizontal()?this.width/i.w:this.height/i.h)-1;return o>0?o:1}getDataTimestamps(){let e,t,n=this._cache.data||[];if(n.length)return n;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(e=0,t=r.length;e<t;++e)n=n.concat(r[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const e=this._cache.labels||[];let t,n;if(e.length)return e;const r=this.getLabels();for(t=0,n=r.length;t<n;++t)e.push(hz(this,r[t]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return uI(e.sort(pz))}}function yz(e,t,n){let r,a,i,o,s=0,l=e.length-1;n?(t>=e[s].pos&&t<=e[l].pos&&({lo:s,hi:l}=oI(e,"pos",t)),({pos:r,time:i}=e[s]),({pos:a,time:o}=e[l])):(t>=e[s].time&&t<=e[l].time&&({lo:s,hi:l}=oI(e,"time",t)),({time:r,pos:i}=e[s]),({time:a,pos:o}=e[l]));const c=a-r;return c?i+(o-i)*(t-r)/c:i}vz.id="time",vz.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class bz extends vz{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=yz(t,this.min),this._tableRange=yz(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:t,max:n}=this,r=[],a=[];let i,o,s,l,c;for(i=0,o=e.length;i<o;++i)l=e[i],l>=t&&l<=n&&r.push(l);if(r.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(i=0,o=r.length;i<o;++i)c=r[i+1],s=r[i-1],l=r[i],Math.round((c+s)/2)!==l&&a.push({time:l,pos:i/(o-1)});return a}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?this.normalize(t.concat(n)):t.length?t:n,e=this._cache.all=e,e}getDecimalForValue(e){return(yz(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return yz(this._table,n*this._tableRange+this._minPos,!0)}}bz.id="timeseries",bz.defaults=vz.defaults;const xz=[SL,iB,qB,Object.freeze({__proto__:null,CategoryScale:KB,LinearScale:JB,LogarithmicScale:ez,RadialLinearScale:cz,TimeScale:vz,TimeSeriesScale:bz})],wz="label";function Sz(e,t){"function"===typeof e?e(t):e&&(e.current=t)}function Cz(e,t){e.labels=t}function Az(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:wz;const r=[];e.datasets=t.map((t=>{const a=e.datasets.find((e=>e[n]===t[n]));return a&&t.data&&!r.includes(a)?(r.push(a),Object.assign(a,t),a):{...t}}))}function kz(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wz;const n={labels:[],datasets:[]};return Cz(n,e.labels),Az(n,e.datasets,t),n}function Tz(t,n){let{height:r=150,width:a=300,redraw:i=!1,datasetIdKey:o,type:s,data:l,options:c,plugins:u=[],fallbackContent:d,updateMode:p,...h}=t;const f=(0,e.useRef)(null),m=(0,e.useRef)(),g=()=>{f.current&&(m.current=new MF(f.current,{type:s,data:kz(l,o),options:c&&{...c},plugins:u}),Sz(n,m.current))},v=()=>{Sz(n,null),m.current&&(m.current.destroy(),m.current=null)};return(0,e.useEffect)((()=>{var e,t;!i&&m.current&&c&&(e=m.current,t=c,Object.assign(e.options,t))}),[i,c]),(0,e.useEffect)((()=>{!i&&m.current&&Cz(m.current.config.data,l.labels)}),[i,l.labels]),(0,e.useEffect)((()=>{!i&&m.current&&l.datasets&&Az(m.current.config.data,l.datasets,o)}),[i,l.datasets]),(0,e.useEffect)((()=>{m.current&&(i?(v(),setTimeout(g)):m.current.update(p))}),[i,c,l.labels,l.datasets,p]),(0,e.useEffect)((()=>{m.current&&(v(),setTimeout(g))}),[s]),(0,e.useEffect)((()=>(g(),()=>v())),[]),e.createElement("canvas",Object.assign({ref:f,role:"img",height:r,width:a},h),d)}const jz=(0,e.forwardRef)(Tz);function Ez(t,n){return MF.register(n),(0,e.forwardRef)(((n,r)=>e.createElement(jz,Object.assign({},n,{ref:r,type:t}))))}const Pz=Ez("line",rL),Nz=Ez("bar",eL),Dz=Ez("pie",iL);function Mz(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function _z(e){return parseFloat(e)}var Iz=n(1188);function Rz(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,Iz.A)(e,t,n)}function Oz(e){if(e.type)return e;if("#"===e.charAt(0))return Oz(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,yh.A)(9,e));let r,a=e.substring(t+1,e.length-1);if("color"===n){if(a=a.split(" "),r=a.shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,yh.A)(10,r))}else a=a.split(",");return a=a.map((e=>parseFloat(e))),{type:n,values:a,colorSpace:r}}function Lz(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Fz(e,t){return e=Oz(e),t=Rz(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Lz(e)}function Bz(e){return Ff("MuiSkeleton",e)}Bf("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const zz=["animation","className","component","height","style","variant","width"];let Vz,Wz,Uz,$z,Hz=e=>e;const qz=(0,_f.i7)(Vz||(Vz=Hz`
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
`)),Gz=(0,_f.i7)(Wz||(Wz=Hz`
  0% {
    transform: translateX(-100%);
  }

  50% {
    /* +0.5s of delay between each loop */
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
`)),Kz=nf("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})((e=>{let{theme:t,ownerState:n}=e;const r=Mz(t.shape.borderRadius)||"px",a=_z(t.shape.borderRadius);return(0,wl.A)({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:Fz(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:`${a}${r}/${Math.round(a/.6*10)/10}${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"})}),(e=>{let{ownerState:t}=e;return"pulse"===t.animation&&(0,_f.AH)(Uz||(Uz=Hz`
      animation: ${0} 2s ease-in-out 0.5s infinite;
    `),qz)}),(e=>{let{ownerState:t,theme:n}=e;return"wave"===t.animation&&(0,_f.AH)($z||($z=Hz`
      position: relative;
      overflow: hidden;

      /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
      -webkit-mask-image: -webkit-radial-gradient(white, black);

      &::after {
        animation: ${0} 2s linear 0.5s infinite;
        background: linear-gradient(
          90deg,
          transparent,
          ${0},
          transparent
        );
        content: '';
        position: absolute;
        transform: translateX(-100%); /* Avoid flash during server-side hydration */
        bottom: 0;
        left: 0;
        right: 0;
        top: 0;
      }
    `),Gz,(n.vars||n).palette.action.hover)})),Yz=e.forwardRef((function(e,t){const n=rf({props:e,name:"MuiSkeleton"}),{animation:r="pulse",className:a,component:i="span",height:o,style:s,variant:l="text",width:c}=n,u=(0,Sl.A)(n,zz),d=(0,wl.A)({},n,{animation:r,component:i,variant:l,hasChildren:Boolean(u.children)}),p=(e=>{const{classes:t,variant:n,animation:r,hasChildren:a,width:i,height:o}=e;return mh({root:["root",n,r,a&&"withChildren",a&&!i&&"fitContent",a&&!o&&"heightAuto"]},Bz,t)})(d);return(0,Tl.jsx)(Kz,(0,wl.A)({as:i,ref:t,className:fh(p.root,a),ownerState:d},u,{style:(0,wl.A)({width:c,height:o},s)}))})),Xz=Yz;function Zz(){return(0,Tl.jsx)(Xz,{animation:"wave",height:"100%"})}MF.register(...xz);const Jz=cb({root:{height:"100%"}});const Qz=function(e){let{data:t,title:n,loading:r}=e;const a=Jz();return(0,Tl.jsx)("div",{className:a.root,children:r?(0,Tl.jsx)(Zz,{}):(0,Tl.jsx)(Pz,{data:t,options:{maintainAspectRatio:!1,plugins:{legend:{display:!1},title:{display:!0,text:n,color:"#58595b",font:{size:16,family:"Arial"}}},scales:{y:{min:0}}}})})},eV=e=>new Date(e).toLocaleDateString("en-US"),tV=e=>new Date(e).toLocaleDateString("en-US")+" "+new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),nV=e=>new Date(e).toLocaleDateString("en-US",{month:"numeric",day:"numeric"});var rV=function(){if("undefined"!==typeof window){if(window.devicePixelRatio)return window.devicePixelRatio;var e=window.screen;if(e)return(e.deviceXDPI||1)/(e.logicalXDPI||1)}return 1}(),aV=function(e){var t,n=[];for(e=[].concat(e);e.length;)"string"===typeof(t=e.pop())?n.unshift.apply(n,t.split("\n")):Array.isArray(t)?e.push.apply(e,t):h_(e)||n.unshift(""+t);return n},iV=function(e,t,n){var r,a=[].concat(t),i=a.length,o=e.font,s=0;for(e.font=n.string,r=0;r<i;++r)s=Math.max(e.measureText(a[r]).width,s);return e.font=o,{height:i*n.lineHeight,width:s}},oV=function(e,t,n){return Math.max(e,Math.min(t,n))},sV=function(e,t){var n,r,a,i,o=e.slice(),s=[];for(n=0,a=t.length;n<a;++n)i=t[n],-1===(r=o.indexOf(i))?s.push([i,1]):o.splice(r,1);for(n=0,a=o.length;n<a;++n)s.push([o[n],-1]);return s},lV=function(e){return Math.round(e*rV)/rV};function cV(e,t){var n=t.x,r=t.y;if(null===n)return{x:0,y:-1};if(null===r)return{x:1,y:0};var a=e.x-n,i=e.y-r,o=Math.sqrt(a*a+i*i);return{x:o?a/o:0,y:o?i/o:-1}}function uV(e,t,n){var r=0;return e<n.left?r|=1:e>n.right&&(r|=2),t<n.top?r|=8:t>n.bottom&&(r|=4),r}function dV(e,t){var n,r,a=t.anchor,i=e;return t.clamp&&(i=function(e,t){for(var n,r,a,i=e.x0,o=e.y0,s=e.x1,l=e.y1,c=uV(i,o,t),u=uV(s,l,t);c|u&&!(c&u);)8&(n=c||u)?(r=i+(s-i)*(t.top-o)/(l-o),a=t.top):4&n?(r=i+(s-i)*(t.bottom-o)/(l-o),a=t.bottom):2&n?(a=o+(l-o)*(t.right-i)/(s-i),r=t.right):1&n&&(a=o+(l-o)*(t.left-i)/(s-i),r=t.left),n===c?c=uV(i=r,o=a,t):u=uV(s=r,l=a,t);return{x0:i,x1:s,y0:o,y1:l}}(i,t.area)),"start"===a?(n=i.x0,r=i.y0):"end"===a?(n=i.x1,r=i.y1):(n=(i.x0+i.x1)/2,r=(i.y0+i.y1)/2),function(e,t,n,r,a){switch(a){case"center":n=r=0;break;case"bottom":n=0,r=1;break;case"right":n=1,r=0;break;case"left":n=-1,r=0;break;case"top":n=0,r=-1;break;case"start":n=-n,r=-r;break;case"end":break;default:a*=Math.PI/180,n=Math.cos(a),r=Math.sin(a)}return{x:e,y:t,vx:n,vy:r}}(n,r,e.vx,e.vy,t.align)}var pV=function(e,t){var n=(e.startAngle+e.endAngle)/2,r=Math.cos(n),a=Math.sin(n),i=e.innerRadius,o=e.outerRadius;return dV({x0:e.x+r*i,y0:e.y+a*i,x1:e.x+r*o,y1:e.y+a*o,vx:r,vy:a},t)},hV=function(e,t){var n=cV(e,t.origin),r=n.x*e.options.radius,a=n.y*e.options.radius;return dV({x0:e.x-r,y0:e.y-a,x1:e.x+r,y1:e.y+a,vx:n.x,vy:n.y},t)},fV=function(e,t){var n=cV(e,t.origin),r=e.x,a=e.y,i=0,o=0;return e.horizontal?(r=Math.min(e.x,e.base),i=Math.abs(e.base-e.x)):(a=Math.min(e.y,e.base),o=Math.abs(e.base-e.y)),dV({x0:r,y0:a+o,x1:r+i,y1:a,vx:n.x,vy:n.y},t)},mV=function(e,t){var n=cV(e,t.origin);return dV({x0:e.x,y0:e.y,x1:e.x+(e.width||0),y1:e.y+(e.height||0),vx:n.x,vy:n.y},t)},gV=lV;function vV(e,t){var n=t.chart.getDatasetMeta(t.datasetIndex).vScale;if(!n)return null;if(void 0!==n.xCenter&&void 0!==n.yCenter)return{x:n.xCenter,y:n.yCenter};var r=n.getBasePixel();return e.horizontal?{x:r,y:null}:{x:null,y:r}}function yV(e){return e instanceof zF?pV:e instanceof ZF?hV:e instanceof aB?fV:mV}function bV(e,t,n){var r=n.backgroundColor,a=n.borderColor,i=n.borderWidth;(r||a&&i)&&(e.beginPath(),function(e,t,n,r,a,i){var o=Math.PI/2;if(i){var s=Math.min(i,a/2,r/2),l=t+s,c=n+s,u=t+r-s,d=n+a-s;e.moveTo(t,c),l<u&&c<d?(e.arc(l,c,s,-Math.PI,-o),e.arc(u,c,s,-o,0),e.arc(u,d,s,0,o),e.arc(l,d,s,o,Math.PI)):l<u?(e.moveTo(l,n),e.arc(u,c,s,-o,o),e.arc(l,c,s,o,Math.PI+o)):c<d?(e.arc(l,c,s,-Math.PI,0),e.arc(l,d,s,0,Math.PI)):e.arc(l,c,s,-Math.PI,Math.PI),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,r,a)}(e,gV(t.x)+i/2,gV(t.y)+i/2,gV(t.w)-i,gV(t.h)-i,n.borderRadius),e.closePath(),r&&(e.fillStyle=r,e.fill()),a&&i&&(e.strokeStyle=a,e.lineWidth=i,e.lineJoin="miter",e.stroke()))}function xV(e,t,n){var r=e.shadowBlur,a=n.stroked,i=gV(n.x),o=gV(n.y),s=gV(n.w);a&&e.strokeText(t,i,o,s),n.filled&&(r&&a&&(e.shadowBlur=0),e.fillText(t,i,o,s),r&&a&&(e.shadowBlur=r))}var wV=function(e,t,n,r){var a=this;a._config=e,a._index=r,a._model=null,a._rects=null,a._ctx=t,a._el=n};T_(wV.prototype,{_modelize:function(e,t,n,r){var a=this,i=a._index,o=DR(MR([n.font,{}],r,i)),s=MR([n.color,lR.color],r,i);return{align:MR([n.align,"center"],r,i),anchor:MR([n.anchor,"center"],r,i),area:r.chart.chartArea,backgroundColor:MR([n.backgroundColor,null],r,i),borderColor:MR([n.borderColor,null],r,i),borderRadius:MR([n.borderRadius,0],r,i),borderWidth:MR([n.borderWidth,0],r,i),clamp:MR([n.clamp,!1],r,i),clip:MR([n.clip,!1],r,i),color:s,display:e,font:o,lines:t,offset:MR([n.offset,4],r,i),opacity:MR([n.opacity,1],r,i),origin:vV(a._el,r),padding:NR(MR([n.padding,4],r,i)),positioner:yV(a._el),rotation:MR([n.rotation,0],r,i)*(Math.PI/180),size:iV(a._ctx,t,o),textAlign:MR([n.textAlign,"start"],r,i),textShadowBlur:MR([n.textShadowBlur,0],r,i),textShadowColor:MR([n.textShadowColor,s],r,i),textStrokeColor:MR([n.textStrokeColor,s],r,i),textStrokeWidth:MR([n.textStrokeWidth,0],r,i)}},update:function(e){var t,n,r,a=this,i=null,o=null,s=a._index,l=a._config,c=MR([l.display,!0],e,s);c&&(t=e.dataset.data[s],(r=h_(n=y_(x_(l.formatter,[t,e]),t))?[]:aV(n)).length&&(o=function(e){var t=e.borderWidth||0,n=e.padding,r=e.size.height,a=e.size.width,i=-a/2,o=-r/2;return{frame:{x:i-n.left-t,y:o-n.top-t,w:a+n.width+2*t,h:r+n.height+2*t},text:{x:i,y:o,w:a,h:r}}}(i=a._modelize(c,r,l,e)))),a._model=i,a._rects=o},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(e,t){var n,r=e.ctx,a=this._model,i=this._rects;this.visible()&&(r.save(),a.clip&&(n=a.area,r.beginPath(),r.rect(n.left,n.top,n.right-n.left,n.bottom-n.top),r.clip()),r.globalAlpha=oV(0,a.opacity,1),r.translate(gV(t.x),gV(t.y)),r.rotate(a.rotation),bV(r,i.frame,a),function(e,t,n,r){var a,i=r.textAlign,o=r.color,s=!!o,l=r.font,c=t.length,u=r.textStrokeColor,d=r.textStrokeWidth,p=u&&d;if(c&&(s||p))for(n=function(e,t,n){var r=n.lineHeight,a=e.w,i=e.x;return"center"===t?i+=a/2:"end"!==t&&"right"!==t||(i+=a),{h:r,w:a,x:i,y:e.y+r/2}}(n,i,l),e.font=l.string,e.textAlign=i,e.textBaseline="middle",e.shadowBlur=r.textShadowBlur,e.shadowColor=r.textShadowColor,s&&(e.fillStyle=o),p&&(e.lineJoin="round",e.lineWidth=d,e.strokeStyle=u),a=0,c=t.length;a<c;++a)xV(e,t[a],{stroked:p,filled:s,w:n.w,x:n.x,y:n.y+n.h*a})}(r,a.lines,i.text,a),r.restore())}});var SV=Number.MIN_SAFE_INTEGER||-9007199254740991,CV=Number.MAX_SAFE_INTEGER||9007199254740991;function AV(e,t,n){var r=Math.cos(n),a=Math.sin(n),i=t.x,o=t.y;return{x:i+r*(e.x-i)-a*(e.y-o),y:o+a*(e.x-i)+r*(e.y-o)}}function kV(e,t){var n,r,a,i,o,s=CV,l=SV,c=t.origin;for(n=0;n<e.length;++n)a=(r=e[n]).x-c.x,i=r.y-c.y,o=t.vx*a+t.vy*i,s=Math.min(s,o),l=Math.max(l,o);return{min:s,max:l}}function TV(e,t){var n=t.x-e.x,r=t.y-e.y,a=Math.sqrt(n*n+r*r);return{vx:(t.x-e.x)/a,vy:(t.y-e.y)/a,origin:e,ln:a}}var jV=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};function EV(e,t,n){var r=t.positioner(e,t),a=r.vx,i=r.vy;if(!a&&!i)return{x:r.x,y:r.y};var o=n.w,s=n.h,l=t.rotation,c=Math.abs(o/2*Math.cos(l))+Math.abs(s/2*Math.sin(l)),u=Math.abs(o/2*Math.sin(l))+Math.abs(s/2*Math.cos(l)),d=1/Math.max(Math.abs(a),Math.abs(i));return c*=a*d,u*=i*d,c+=t.offset*a,u+=t.offset*i,{x:r.x+c,y:r.y+u}}T_(jV.prototype,{center:function(){var e=this._rect;return{x:e.x+e.w/2,y:e.y+e.h/2}},update:function(e,t,n){this._rotation=n,this._rect={x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},contains:function(e){var t=this,n=t._rect;return!((e=AV(e,t.center(),-t._rotation)).x<n.x-1||e.y<n.y-1||e.x>n.x+n.w+2||e.y>n.y+n.h+2)},intersects:function(e){var t,n,r,a=this._points(),i=e._points(),o=[TV(a[0],a[1]),TV(a[0],a[3])];for(this._rotation!==e._rotation&&o.push(TV(i[0],i[1]),TV(i[0],i[3])),t=0;t<o.length;++t)if(n=kV(a,o[t]),r=kV(i,o[t]),n.max<r.min||r.max<n.min)return!1;return!0},_points:function(){var e=this,t=e._rect,n=e._rotation,r=e.center();return[AV({x:t.x,y:t.y},r,n),AV({x:t.x+t.w,y:t.y},r,n),AV({x:t.x+t.w,y:t.y+t.h},r,n),AV({x:t.x,y:t.y+t.h},r,n)]}});var PV={prepare:function(e){var t,n,r,a,i,o=[];for(t=0,r=e.length;t<r;++t)for(n=0,a=e[t].length;n<a;++n)i=e[t][n],o.push(i),i.$layout={_box:new jV,_hidable:!1,_visible:!0,_set:t,_idx:i._index};return o.sort((function(e,t){var n=e.$layout,r=t.$layout;return n._idx===r._idx?r._set-n._set:r._idx-n._idx})),this.update(o),o},update:function(e){var t,n,r,a,i,o=!1;for(t=0,n=e.length;t<n;++t)a=(r=e[t]).model(),(i=r.$layout)._hidable=a&&"auto"===a.display,i._visible=r.visible(),o|=i._hidable;o&&function(e){var t,n,r,a,i,o,s;for(t=0,n=e.length;t<n;++t)(a=(r=e[t]).$layout)._visible&&(s=new Proxy(r._el,{get:(e,t)=>e.getProps([t],!0)[t]}),i=r.geometry(),o=EV(s,r.model(),i),a._box.update(o,i,r.rotation()));(function(e,t){var n,r,a,i;for(n=e.length-1;n>=0;--n)for(a=e[n].$layout,r=n-1;r>=0&&a._visible;--r)(i=e[r].$layout)._visible&&a._box.intersects(i._box)&&t(a,i)})(e,(function(e,t){var n=e._hidable,r=t._hidable;n&&r||r?t._visible=!1:n&&(e._visible=!1)}))}(e)},lookup:function(e,t){var n,r;for(n=e.length-1;n>=0;--n)if((r=e[n].$layout)&&r._visible&&r._box.contains(t))return e[n];return null},draw:function(e,t){var n,r,a,i,o,s;for(n=0,r=t.length;n<r;++n)(i=(a=t[n]).$layout)._visible&&(o=a.geometry(),s=EV(a._el,a.model(),o),i._box.update(s,o,a.rotation()),a.draw(e,s))}},NV={align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:function(e){if(h_(e))return null;var t,n,r,a=e;if(m_(e))if(h_(e.label))if(h_(e.r))for(a="",r=0,n=(t=Object.keys(e)).length;r<n;++r)a+=(0!==r?", ":"")+t[r]+": "+e[t[r]];else a=e.r;else a=e.label;return""+a},labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},DV="$datalabels",MV="$default";function _V(e,t,n,r){if(t){var a,i=n.$context,o=n.$groups;t[o._set]&&(a=t[o._set][o._key])&&!0===x_(a,[i,r])&&(e[DV]._dirty=!0,n.update(i))}}function IV(e,t){var n,r,a=e[DV],i=a._listeners;if(i.enter||i.leave){if("mousemove"===t.type)r=PV.lookup(a._labels,t);else if("mouseout"!==t.type)return;n=a._hovered,a._hovered=r,function(e,t,n,r,a){var i,o;(n||r)&&(n?r?n!==r&&(o=i=!0):o=!0:i=!0,o&&_V(e,t.leave,n,a),i&&_V(e,t.enter,r,a))}(e,i,n,r,t)}}var RV={id:"datalabels",defaults:NV,beforeInit:function(e){e[DV]={_actives:[]}},beforeUpdate:function(e){var t=e[DV];t._listened=!1,t._listeners={},t._datasets=[],t._labels=[]},afterDatasetUpdate:function(e,t,n){var r,a,i,o,s,l,c,u,d=t.index,p=e[DV],h=p._datasets[d]=[],f=e.isDatasetVisible(d),m=e.data.datasets[d],g=function(e,t){var n,r,a,i=e.datalabels,o=[];return!1===i?null:(!0===i&&(i={}),t=T_({},[t,i]),r=t.labels||{},a=Object.keys(r),delete t.labels,a.length?a.forEach((function(e){r[e]&&o.push(T_({},[t,r[e],{_key:e}]))})):o.push(t),n=o.reduce((function(e,t){return w_(t.listeners||{},(function(n,r){e[r]=e[r]||{},e[r][t._key||MV]=n})),delete t.listeners,e}),{}),{labels:o,listeners:n})}(m,n),v=t.meta.data||[],y=e.ctx;for(y.save(),r=0,i=v.length;r<i;++r)if((c=v[r])[DV]=[],f&&c&&e.getDataVisibility(r)&&!c.skip)for(a=0,o=g.labels.length;a<o;++a)l=(s=g.labels[a])._key,(u=new wV(s,y,c,r)).$groups={_set:d,_key:l||MV},u.$context={active:!1,chart:e,dataIndex:r,dataset:m,datasetIndex:d},u.update(u.$context),c[DV].push(u),h.push(u);y.restore(),T_(p._listeners,g.listeners,{merger:function(e,n,r){n[e]=n[e]||{},n[e][t.index]=r[e],p._listened=!0}})},afterUpdate:function(e){e[DV]._labels=PV.prepare(e[DV]._datasets)},afterDatasetsDraw:function(e){PV.draw(e,e[DV]._labels)},beforeEvent:function(e,t){if(e[DV]._listened){var n=t.event;switch(n.type){case"mousemove":case"mouseout":IV(e,n);break;case"click":!function(e,t){var n=e[DV],r=n._listeners.click,a=r&&PV.lookup(n._labels,t);a&&_V(e,r,a,t)}(e,n)}}},afterEvent:function(e){var t,n,r,a,i,o,s,l=e[DV],c=l._actives,u=l._actives=e.getActiveElements(),d=sV(c,u);for(t=0,n=d.length;t<n;++t)if((i=d[t])[1])for(r=0,a=(s=i[0].element[DV]||[]).length;r<a;++r)(o=s[r]).$context.active=1===i[1],o.update(o.$context);(l._dirty||d.length)&&(PV.update(l._labels),e.render()),delete l._dirty}};MF.register(...xz),MF.register(RV);const OV=cb({root:{height:"100%"}});MF.register({id:"NoData",afterDraw:function(e){if(e.data.datasets[0].data.includes(-1)){let t=e.ctx,n=e.width,r=e.height;t.save(),t.textAlign="center",t.textBaseline="middle",t.font="20px Arial",t.fillStyle="white",t.fillText("No data to display",n/2,r/2),t.restore()}}});const LV=function(e){let{data:t,title:r,loading:a}=e;const i=OV();var o=n(3536);return t.datasets.forEach((e=>{e.data.every((e=>0===e))&&(e.backgroundColor=["rgba(155,155,155,.8)"],e.hoverBackgroundColor=["rgba(155,155,155,.6)"],e.data=[-1],t.labels=[""])})),(0,Tl.jsx)("div",{className:i.root,children:a?(0,Tl.jsx)(Zz,{}):(0,Tl.jsx)(Dz,{data:t,options:{elements:{arc:{borderWidth:-1===t.datasets[0].data[0]?0:4}},maintainAspectRatio:!1,plugins:{tooltip:{enabled:!1},datalabels:{display:!1},legend:{display:!0,position:"bottom",labels:{font:{size:16,family:"Arial"},filter:(e,t)=>{const n=e.text,r=o.findIndex(t.labels,(e=>e===n)),a=t.datasets[0].data[r];return e.text=`${e.text} : ${a}`,a>0&&" : 1"!==e.text}}},title:{display:!0,text:r,color:"#58595b",font:{size:16,family:"Arial"}}}}})})};const FV=function(e){let{Action:t,testId:n}=e;const r=cb((e=>({container:{height:"80%",width:"100%",marginTop:"0px",marginLeft:"10px",marginRight:"10px",paddingLeft:"10px",paddingRight:"10px",paddingTop:"10px",transition:".3s",[e.breakpoints.down("md")]:{width:"90%",height:"unset",marginBottom:10,padding:10},color:e.palette.primary.copy,"&:hover":{backgroundColor:"#BFBFBF",color:"white"}},emptyContainer:{height:"80%",width:"100%",marginTop:"10px",marginLeft:"10px",marginRight:"10px",paddingLeft:"10px",paddingRight:"10px",paddingTop:"10px",transition:".2s",[e.breakpoints.down("md")]:{width:"90%",height:"unset"},backgroundColor:"rgba(192,192,192,.5)",borderStyle:"dotted",borderWidth:"thin"},pageTitle:{fontWeight:"bold",fontSize:"22px"}}))),a=r(),i=Bu(),o=(e=>{switch(e){case"View Banner Configuration":return{PageTitle:"Banner",MenuTitle:"Configuration",Path:"/banner"};case"View Bing Configuration":return{PageTitle:"Bing Account",MenuTitle:"Configuration",Path:"/externalaccounts"};case"View Custom Radius Configuration":return{PageTitle:"Custom Radius",MenuTitle:"Search",Path:"/customradius"};case"View Email Apply Link Configuration":return{PageTitle:"Email Apply Link",MenuTitle:"Configuration",Path:"/emailapplylink"};case"List Events":return{PageTitle:"Events",MenuTitle:"Events",Path:"/events"};case"View Events Search Configuration":return{PageTitle:"Event Search",MenuTitle:"Search",Path:"/eventsearch"};case"View Event Sponsors":return{PageTitle:"Event Sponsors",MenuTitle:"Events",Path:"/eventsponsors"};case"View Event Types":return{PageTitle:"Event Types",MenuTitle:"Events",Path:"/eventtypes"};case"View Event Venues":return{PageTitle:"Event Venues",MenuTitle:"Events",Path:"/eventvenues"};case"View Featured Job in Search Configuration":return{PageTitle:"Results",MenuTitle:"Search",Path:"/results"};case"List Featured Events":return{PageTitle:"Featured Events",MenuTitle:"Events",Path:"/featuredevents"};case"List Featured Groups":return{PageTitle:"Featured Groups",MenuTitle:"Jobs",Path:"/featuredjobs"};case"View Featured Jobs Configuration":return{PageTitle:"Featured Jobs Display",MenuTitle:"Configuration",Path:"/featuredjobsdisplay"};case"View Featured Jobs":return{PageTitle:"Featured Jobs",MenuTitle:"Jobs",Path:"/featuredjobs"};case"View Google Accounts Configuration":return{PageTitle:"Google Account",MenuTitle:"Configuration",Path:"/externalaccounts"};case"View Job Details Configuration":return{PageTitle:"Job Details Display",MenuTitle:"Configuration",Path:"/jobdetailsdisplay"};case"List Job Groups":return{PageTitle:"Featured Groups",MenuTitle:"Jobs",Path:"/featuredgroups"};case"View Jobs Ancillary Configuration":return{PageTitle:"Job Details Ancillary",MenuTitle:"Configuration",Path:"/ancillary"};case"List Locations":return{PageTitle:"Locations",MenuTitle:"Jobs",Path:"/locations"};case"View Map Configuration":return{PageTitle:"Map Configuration",MenuTitle:"Search",Path:"/mapconfiguration"};case"View Map Search Configuration":return{PageTitle:"Map Search Form",MenuTitle:"Search",Path:"/mapsearchform"};case"View Master Cache Configuration":return{PageTitle:"Master Cache",MenuTitle:"Configuration",Path:"/mastercache"};case"View Tracking Pixels List":return{PageTitle:"Tracking Pixels",MenuTitle:"Configuration",Path:"/trackingpixels"};case"View Prefiltered Links":return{PageTitle:"Prefiltered Links",MenuTitle:"Configuration",Path:"/prefilteredlinks"};case"View Report":return{PageTitle:"Report",MenuTitle:"Reports",Path:"/marketreport"};case"View Results Table Configuration":return{PageTitle:"Results Table",MenuTitle:"Search",Path:"/results"};case"View Search Configuration":return{PageTitle:"Search Form",MenuTitle:"Search",Path:"/forms"};case"View Talent Network Configuration":return{PageTitle:"Talent Network Form",MenuTitle:"Search",Path:"/talentnetworkdisplay"};case"List Users":return{PageTitle:"Users",MenuTitle:"Configuration",Path:"/users"};default:return{PageTitle:"Home",MenuTitle:"Home",Path:"/"}}})(t);return""!==t?(0,Tl.jsxs)(WM,{className:a.container,onClick:()=>i.push(o.Path),"data-test":n,children:[(0,Tl.jsx)(mx,{variant:"h6",component:"h3",style:{fontWeight:600},children:o.PageTitle}),(0,Tl.jsx)(mx,{variant:"h8",component:"h4",style:{fontWeight:200},children:o.MenuTitle})]}):(0,Tl.jsx)(WM,{className:a.emptyContainer,"data-test":n})};const BV=async function(e){let t=OC.REACT_APP_ACTIVATE_BACKEND_API;const n=tl().get(`${t}/${e}`).catch((e=>{throw new Error(e.message)})).then((e=>e));return await n};function zV(){var t,n,r,a,i,o,s,l;const c=Mc(),u=Oc(qC),d=Oc(XE),p=mv(),h=Bu(),{data:f,isLoading:m}=Gj(["dashboard",g=null===u||void 0===u?void 0:u.id],(async()=>(await BV(`api/Dashboard/${g}`)).data),{enabled:!!g});var g;const[v,y]=(0,e.useState)([]),[b,x]=(0,e.useState)([]),[w,S]=(0,e.useState)([]),[C,A]=(0,e.useState)([]),[k,T]=(0,e.useState)(!1),j=(0,e.useMemo)((()=>null===f||void 0===f?void 0:f.jobAlerts.map((e=>nV(e.item1)))),[f]),E=(0,e.useMemo)((()=>Object.keys(GE).filter((e=>!isNaN(Number(e)))).filter((e=>{var t;const n=Number(e);return WV(null!==(t=null===f||void 0===f?void 0:f.jobAlertCategories)&&void 0!==t?t:[],n)>0})).map((e=>Number(e)))),[f]),P=(0,e.useMemo)((()=>null===f||void 0===f?void 0:f.jobAlertCategories.filter((e=>e.adGroupType===d.groupType)).flatMap((e=>e.categories.map((e=>e.item1))))),[f,d.groupType]),N={labels:j,datasets:[{data:null===f||void 0===f?void 0:f.marketing.map((e=>e.item2)),fill:!0,lineTension:.4,backgroundColor:p.palette.primary.graph,borderColor:p.palette.primary.main}]},D={labels:j,datasets:[{data:null===f||void 0===f?void 0:f.jobAlerts.map((e=>e.item2)),fill:!0,lineTension:.4,backgroundColor:p.palette.primary.graph,borderColor:"rgba(102,137,107,1)"}]},M={labels:P,datasets:[{backgroundColor:w,hoverBackgroundColor:C,data:null===f||void 0===f?void 0:f.marketingCategories.filter((e=>e.adGroupType===d.groupType)).flatMap((e=>e.categories.map((e=>e.item2))))}]},_={labels:P,datasets:[{backgroundColor:v,hoverBackgroundColor:b,data:null===f||void 0===f?void 0:f.jobAlertCategories.filter((e=>e.adGroupType===d.groupType)).flatMap((e=>e.categories.map((e=>e.item2))))}]};async function I(e,t,n){for(var r=[],a=[],i=["#0a6e33","#2f8754","#00af4a"],o=["#1E8247","#439B68","#14C35E"],s=0;s<n.length;s++)if(n[s]>0&&i.length>0){var l=i.pop(),c=o.pop();r.push(l),a.push(c)}else{var u=Math.floor(200*Math.random()),d=Math.floor(200*Math.random()),p=Math.floor(200*Math.random()),h="rgb("+u+", "+d+", "+p+")",f="rgb("+(u+20)+", "+(d+20)+", "+(p+20)+")";r.push(h),a.push(f)}e(r),t(a)}return(0,e.useEffect)((()=>{var e,t;f&&!m&&(I(y,x,null!==(e=null===f||void 0===f?void 0:f.jobAlertCategories.filter((e=>e.adGroupType===d.groupType)).flatMap((e=>e.categories.map((e=>e.item2)))))&&void 0!==e?e:[]),I(S,A,null!==(t=null===f||void 0===f?void 0:f.marketingCategories.filter((e=>e.adGroupType===d.groupType)).flatMap((e=>e.categories.map((e=>e.item2)))))&&void 0!==t?t:[]))}),[f,m,d.groupType]),(0,e.useEffect)((()=>{u||T(!0)}),[u]),(0,Tl.jsx)(Xm,{sx:{p:3,width:"100%",mt:12,height:"calc(100vh - 140px)",overflowY:"auto"},children:(0,Tl.jsxs)(CN,{container:!0,columnSpacing:4,rowSpacing:2,sx:{minHeight:"100%"},children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,md:12,lg:10,children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,children:(0,Tl.jsxs)(PN,{fullWidth:!0,children:[(0,Tl.jsx)(VN,{id:"adgroup-type-dropdown-label",children:"Group Type"}),E.length>0&&(0,Tl.jsx)(LM,{labelId:"adgroup-type-dropdown-label",id:"adgroup-type-dropdown",value:E.includes(d.groupType)?d.groupType:E[0],label:"Group Type","data-test":"group-type-dropdown",onChange:e=>c(YE({groupType:parseInt(e.target.value.toString())})),children:E.map((e=>(0,Tl.jsx)(lx,{value:Number(e),children:GE[e].toString()},`category-${e}`)))})]})}),(null!==(t=null===P||void 0===P?void 0:P.length)&&void 0!==t?t:0)>0?(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(WM,{sx:{height:650,display:"flex",justifyContent:"center",alignItems:"center"},onClick:()=>h.push("/jobalertsreport"),"data-test":"monthly-job-alert-signups-pie",children:(0,Tl.jsx)(Xm,{sx:{height:"90%",width:"90%",minHeight:200,minWidth:200},children:(0,Tl.jsx)(LV,{data:_,title:"Monthly Job Alert Signups",loading:m})})})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(WM,{sx:{height:650,display:"flex",justifyContent:"center",alignItems:"center"},onClick:()=>h.push("/marketreport"),"data-test":"monthly-signups-pie",children:(0,Tl.jsx)(Xm,{sx:{height:"90%",width:"90%",minHeight:200,minWidth:200},children:(0,Tl.jsx)(LV,{data:M,title:"Monthly Marketing Signups",loading:m})})})})]}):(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(CN,{item:!0,xs:12,children:(0,Tl.jsx)(WM,{sx:{height:350},onClick:()=>h.push("/marketreport"),children:(0,Tl.jsx)(Qz,{data:N,title:"Marketing Signups",loading:m})})}),(0,Tl.jsx)(CN,{item:!0,xs:12,children:(0,Tl.jsx)(WM,{sx:{height:350},onClick:()=>h.push("/jobalertsreport"),children:(0,Tl.jsx)(Qz,{data:D,title:"Job Alert Signups",loading:m})})})]})]})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,md:12,lg:2,children:(0,Tl.jsxs)(u_,{direction:{md:"row",lg:"column"},spacing:{md:0,lg:2},columnGap:1,flexWrap:"wrap",rowGap:1,justifyContent:"flex-start",children:[(0,Tl.jsx)(VV,{title:"Featured Jobs",action:()=>h.push("/featuredjobs"),number:null!==(n=null===f||void 0===f?void 0:f.featuredJobs)&&void 0!==n?n:0,theme:p,testId:"featured-jobs-card"}),(0,Tl.jsx)(VV,{title:"Featured Job Groups",action:()=>h.push("/featuredgroups"),number:null!==(r=null===f||void 0===f?void 0:f.featuredJobGroups)&&void 0!==r?r:0,theme:p,testId:"featured-job-groups-card"}),(0,Tl.jsx)(VV,{title:"Upcoming Events",action:()=>h.push("/events"),number:null!==(a=null===f||void 0===f?void 0:f.events)&&void 0!==a?a:0,theme:p,testId:"upcoming-events-card"}),(0,Tl.jsx)(VV,{title:"Monthly Job Alerts",action:()=>h.push("/jobalertsreport"),number:null!==(i=null===f||void 0===f?void 0:f.totalJobAlerts)&&void 0!==i?i:0,theme:p,testId:"monthly-job-alerts-card"}),(0,Tl.jsx)(VV,{title:"Monthly Marketing",action:()=>h.push("/marketreport"),number:null!==(o=null===f||void 0===f?void 0:f.totalMarketing)&&void 0!==o?o:0,theme:p,testId:"monthly-marketing-card"})]})}),(0,Tl.jsx)(CN,{item:!0,xs:12,children:!k&&(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(mx,{variant:"h5",component:"h2",sx:{m:1,color:p.palette.primary.copy,fontWeight:600},children:"Frequently Visited"}),(0,Tl.jsxs)(u_,{direction:"row",sx:{height:125},children:[null===f||void 0===f?void 0:f.frequentlyUsed.map(((e,t)=>(0,Tl.jsx)(FV,{Action:e,testId:`visited-card-${t}`},t))),(null!==(s=null===f||void 0===f?void 0:f.frequentlyUsed.length)&&void 0!==s?s:0)<5&&[...Array(5-(null!==(l=null===f||void 0===f?void 0:f.frequentlyUsed.length)&&void 0!==l?l:0))].map(((e,t)=>(0,Tl.jsx)(FV,{Action:"",testId:`empty-visited-card-${t}`},t)))]})]})})]})})}function VV(e){let{title:t,number:n,action:r,theme:a,testId:i}=e;return(0,Tl.jsxs)(WM,{"data-test":i,sx:{display:"flex",flexDirection:"column",justifyContent:"space-evenly",height:126,alignItems:"center",fontSize:{xs:"22px",md:"18px",xl:"22px"},backgroundColor:a.palette.primary.main,color:"white",minWidth:200,transition:".2s",md:{width:"90%",padding:1,minHeight:80},"&:hover":{background:a.palette.primary.greenHighlight}},onClick:()=>r(),children:[(0,Tl.jsx)("span",{children:t}),(0,Tl.jsx)(mx,{sx:{fontWeight:"bold",fontSize:"34px"},children:n})]})}const WV=(e,t)=>{var n,r;return null!==(n=null===(r=e.find((e=>e.adGroupType===t)))||void 0===r?void 0:r.categories.length)&&void 0!==n?n:0},UV=bm((0,Tl.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),$V=["slots","slotProps"],HV=nf(im)((e=>{let{theme:t}=e;return(0,wl.A)({display:"flex",marginLeft:`calc(${t.spacing(1)} * 0.5)`,marginRight:`calc(${t.spacing(1)} * 0.5)`},"light"===t.palette.mode?{backgroundColor:t.palette.grey[100],color:t.palette.grey[700]}:{backgroundColor:t.palette.grey[700],color:t.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":(0,wl.A)({},"light"===t.palette.mode?{backgroundColor:t.palette.grey[200]}:{backgroundColor:t.palette.grey[600]}),"&:active":(0,wl.A)({boxShadow:t.shadows[0]},"light"===t.palette.mode?{backgroundColor:(0,gh.tL)(t.palette.grey[200],.12)}:{backgroundColor:(0,gh.tL)(t.palette.grey[600],.12)})})})),qV=nf(UV)({width:24,height:16});const GV=function(e){const{slots:t={},slotProps:n={}}=e,r=(0,Sl.A)(e,$V),a=e;return(0,Tl.jsx)("li",{children:(0,Tl.jsx)(HV,(0,wl.A)({focusRipple:!0},r,{ownerState:a,children:(0,Tl.jsx)(qV,(0,wl.A)({as:t.CollapsedIcon,ownerState:a},n.collapsedIcon))}))})};function KV(e){return Ff("MuiBreadcrumbs",e)}const YV=Bf("MuiBreadcrumbs",["root","ol","li","separator"]),XV=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],ZV=nf(mx,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${YV.li}`]:t.li},t.root]})({}),JV=nf("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),QV=nf("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function eW(e,t,n,r){return e.reduce(((a,i,o)=>(o<e.length-1?a=a.concat(i,(0,Tl.jsx)(QV,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${o}`)):a.push(i),a)),[])}const tW=e.forwardRef((function(t,n){const r=rf({props:t,name:"MuiBreadcrumbs"}),{children:a,className:i,component:o="nav",slots:s={},slotProps:l={},expandText:c="Show path",itemsAfterCollapse:u=1,itemsBeforeCollapse:d=1,maxItems:p=8,separator:h="/"}=r,f=(0,Sl.A)(r,XV),[m,g]=e.useState(!1),v=(0,wl.A)({},r,{component:o,expanded:m,expandText:c,itemsAfterCollapse:u,itemsBeforeCollapse:d,maxItems:p,separator:h}),y=(e=>{const{classes:t}=e;return mh({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},KV,t)})(v),b=sS({elementType:s.CollapsedIcon,externalSlotProps:l.collapsedIcon,ownerState:v}),x=e.useRef(null),w=e.Children.toArray(a).filter((t=>e.isValidElement(t))).map(((e,t)=>(0,Tl.jsx)("li",{className:y.li,children:e},`child-${t}`)));return(0,Tl.jsx)(ZV,(0,wl.A)({ref:n,component:o,color:"text.secondary",className:fh(y.root,i),ownerState:v},f,{children:(0,Tl.jsx)(JV,{className:y.ol,ref:x,ownerState:v,children:eW(m||p&&w.length<=p?w:(e=>d+u>=e.length?e:[...e.slice(0,d),(0,Tl.jsx)(GV,{"aria-label":c,slots:{CollapsedIcon:s.CollapsedIcon},slotProps:{collapsedIcon:b},onClick:()=>{g(!0);const e=x.current.querySelector("a[href],button,[tabindex]");e&&e.focus()}},"ellipsis"),...e.slice(e.length-u,e.length)])(w),y.separator,h,v)})}))})),nW=tW,rW=e=>{switch(e){case"users":return"Users";case"usersdetailed":return"User Information";case"display":return"Display";case"forms":return"Forms";case"results":return"Results";case"locations":return"Locations";case"locationdetailed":return"Location Information";case"featuredgroups":return"Featured Groups";case"featuredgroupsdetailed":return"Featured Group Detailed";case"eventsponsors":return"Event Sponsors";case"eventsponsordetailed":return"Event Sponsor Detailed";case"eventvenuedetailed":return"Event Venue Information";case"eventdetailed":return"Event Information";case"jobgroups":return"Job Groups";case"jobgroupdetailed":return"Job Group Detailed";case"managelocations":return"Manage Locations";case"locatondetailed":return"Manage Location Detailed";case"trackingpixels":return"Tracking Pixels";case"trackingpixeldetailed":return"Tracking Pixel Detailed";case"talentnetworkdisplay":return"Talent Network Configuration";case"customradius":return"Custom Radius";case"resultstable":return"Results Table";case"mapsearchform":return"Map Search Form";case"featuredadresults":return"Featured Ad Results";case"featuredjobs":return"Featured Jobs";case"emailapplylink":return"Email Apply Link";case"externalaccounts":return"External Accounts";case"eventvenues":return"Event Venues";case"featuredevents":return"Featured Events";case"eventtypes":return"Event Types";case"mastercache":return"Master Cache";case"eventsearch":return"Event Search";case"uploadlocations":return"Upload Locations";case"jobdetailsdisplay":return"Job Details Display";case"events":return"Events";case"prefilteredlinks":return"Prefiltered Links";case"banner":return"Banner";case"mapconfiguration":return"Map Configuration";case"ancillary":return"Ancillary";case"featuredjobsdisplay":return"Featured Jobs Display";case"floatingsearchform":return"Floating Search Form";case"staticsearchform":return"Static Search Form";case"jobalertsreport":return"Job Alerts Report";case"reportuser":return"User Report";case"marketreport":return"Marketing Report";case"abac":return"ABAC Apps";default:return e}};function aW(e){let{sx:t}=e;return(0,Tl.jsx)(Xz,{sx:{width:`${Math.floor(21*Math.random())+5}ch`,...t}})}const iW=cb((e=>({link:{textDecoration:"none",color:"dimgray",cursor:"pointer"},activeLink:{textDecoration:"none",color:"black",fontWeight:"600"}})));function oW(e){let{pageTitle:t,isLoading:n=!1,customBreadcrumbs:r=[]}=e;const a=iW(),i=window.location.pathname.split("/");return r.length>0?(0,Tl.jsxs)(nW,{className:a.root,children:[r.map(((e,t)=>(0,Tl.jsx)(ch,{className:a.link,to:()=>(e=>{var t="";return t+"/"+e})(e.route),children:e.breadCrumbName},t))),(0,Tl.jsx)("span",{className:a.activeLink,children:t},r.length)]}):(0,Tl.jsx)(Tl.Fragment,{children:n?(0,Tl.jsx)(aW,{}):(0,Tl.jsx)(nW,{className:a.root,children:i.map(((e,n)=>0!==n?n!==i.length-1?(0,Tl.jsx)(ch,{className:a.link,to:()=>(e=>{for(var t="",n=1;n<=e;n++)t+="/"+i[n];return t})(n),children:rW(e)},n):(0,Tl.jsx)("span",{className:a.activeLink,children:null!==t&&void 0!==t?t:rW(e)},n):null))})})}function sW(e){return Ff("MuiButton",e)}const lW=Bf("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);const cW=e.createContext({});const uW=e.createContext(void 0),dW=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],pW=e=>(0,wl.A)({},"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}}),hW=nf(im,{shouldForwardProp:e=>tf(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${sm(n.color)}`],t[`size${sm(n.size)}`],t[`${n.variant}Size${sm(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((e=>{let{theme:t,ownerState:n}=e;var r,a;const i="light"===t.palette.mode?t.palette.grey[300]:t.palette.grey[800],o="light"===t.palette.mode?t.palette.grey.A100:t.palette.grey[700];return(0,wl.A)({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":(0,wl.A)({textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,gh.X4)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===n.variant&&"inherit"!==n.color&&{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,gh.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===n.variant&&"inherit"!==n.color&&{border:`1px solid ${(t.vars||t).palette[n.color].main}`,backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,gh.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===n.variant&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===n.variant&&"inherit"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[n.color].main}}),"&:active":(0,wl.A)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[8]}),[`&.${lW.focusVisible}`]:(0,wl.A)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[6]}),[`&.${lW.disabled}`]:(0,wl.A)({color:(t.vars||t).palette.action.disabled},"outlined"===n.variant&&{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"contained"===n.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===n.variant&&{padding:"6px 8px"},"text"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main},"outlined"===n.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main,border:t.vars?`1px solid rgba(${t.vars.palette[n.color].mainChannel} / 0.5)`:`1px solid ${(0,gh.X4)(t.palette[n.color].main,.5)}`},"contained"===n.variant&&{color:t.vars?t.vars.palette.text.primary:null==(r=(a=t.palette).getContrastText)?void 0:r.call(a,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:i,boxShadow:(t.vars||t).shadows[2]},"contained"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].contrastText,backgroundColor:(t.vars||t).palette[n.color].main},"inherit"===n.color&&{color:"inherit",borderColor:"currentColor"},"small"===n.size&&"text"===n.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"text"===n.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"outlined"===n.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"outlined"===n.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"contained"===n.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"contained"===n.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},n.fullWidth&&{width:"100%"})}),(e=>{let{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${lW.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${lW.disabled}`]:{boxShadow:"none"}}})),fW=nf("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${sm(n.size)}`]]}})((e=>{let{ownerState:t}=e;return(0,wl.A)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},pW(t))})),mW=nf("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${sm(n.size)}`]]}})((e=>{let{ownerState:t}=e;return(0,wl.A)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},pW(t))})),gW=e.forwardRef((function(t,n){const r=e.useContext(cW),a=e.useContext(uW),i=rf({props:Il(r,t),name:"MuiButton"}),{children:o,color:s="primary",component:l="button",className:c,disabled:u=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:h,focusVisibleClassName:f,fullWidth:m=!1,size:g="medium",startIcon:v,type:y,variant:b="text"}=i,x=(0,Sl.A)(i,dW),w=(0,wl.A)({},i,{color:s,component:l,disabled:u,disableElevation:d,disableFocusRipple:p,fullWidth:m,size:g,type:y,variant:b}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:a,variant:i,classes:o}=e,s=mh({root:["root",i,`${i}${sm(t)}`,`size${sm(a)}`,`${i}Size${sm(a)}`,`color${sm(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${sm(a)}`],endIcon:["icon","endIcon",`iconSize${sm(a)}`]},sW,o);return(0,wl.A)({},o,s)})(w),C=v&&(0,Tl.jsx)(fW,{className:S.startIcon,ownerState:w,children:v}),A=h&&(0,Tl.jsx)(mW,{className:S.endIcon,ownerState:w,children:h}),k=a||"";return(0,Tl.jsxs)(hW,(0,wl.A)({ownerState:w,className:fh(r.className,S.root,c,k),component:l,disabled:u,focusRipple:!p,focusVisibleClassName:fh(S.focusVisible,f),ref:n,type:y},x,{classes:S,children:[C,o,A]}))})),vW=gW;function yW(e){return Ff("MuiDialog",e)}const bW=Bf("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);const xW=e.createContext({}),wW=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],SW=nf(eD,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),CW=nf(fD,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),AW=nf("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${sm(n.scroll)}`]]}})((e=>{let{ownerState:t}=e;return(0,wl.A)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),kW=nf(Bm,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${sm(n.scroll)}`],t[`paperWidth${sm(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===n.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===n.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!n.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===n.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${bW.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},n.maxWidth&&"xs"!==n.maxWidth&&{maxWidth:`${t.breakpoints.values[n.maxWidth]}${t.breakpoints.unit}`,[`&.${bW.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[n.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},n.fullWidth&&{width:"calc(100% - 64px)"},n.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${bW.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})})),TW=e.forwardRef((function(t,n){const r=rf({props:t,name:"MuiDialog"}),a=Sb(),i={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":o,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:d,disableEscapeKeyDown:p=!1,fullScreen:h=!1,fullWidth:f=!1,maxWidth:m="sm",onBackdropClick:g,onClick:v,onClose:y,open:b,PaperComponent:x=Bm,PaperProps:w={},scroll:S="paper",TransitionComponent:C=YN,transitionDuration:A=i,TransitionProps:k}=r,T=(0,Sl.A)(r,wW),j=(0,wl.A)({},r,{disableEscapeKeyDown:p,fullScreen:h,fullWidth:f,maxWidth:m,scroll:S}),E=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:a,fullScreen:i}=e;return mh({root:["root"],container:["container",`scroll${sm(n)}`],paper:["paper",`paperScroll${sm(n)}`,`paperWidth${sm(String(r))}`,a&&"paperFullWidth",i&&"paperFullScreen"]},yW,t)})(j),P=e.useRef(),N=CS(s),D=e.useMemo((()=>({titleId:N})),[N]);return(0,Tl.jsx)(CW,(0,wl.A)({className:fh(E.root,d),closeAfterTransition:!0,components:{Backdrop:SW},componentsProps:{backdrop:(0,wl.A)({transitionDuration:A,as:l},c)},disableEscapeKeyDown:p,onClose:y,open:b,ref:n,onClick:e=>{v&&v(e),P.current&&(P.current=null,g&&g(e),y&&y(e,"backdropClick"))},ownerState:j},T,{children:(0,Tl.jsx)(C,(0,wl.A)({appear:!0,in:b,timeout:A,role:"presentation"},k,{children:(0,Tl.jsx)(AW,{className:fh(E.container),onMouseDown:e=>{P.current=e.target===e.currentTarget},ownerState:j,children:(0,Tl.jsx)(kW,(0,wl.A)({as:x,elevation:24,role:"dialog","aria-describedby":o,"aria-labelledby":N},w,{className:fh(E.paper,w.className),ownerState:j,children:(0,Tl.jsx)(xW.Provider,{value:D,children:u})}))})}))}))})),jW=TW,EW=e=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/featuredgroups/getGroups/"+e).then((e=>e.data)),PW=e=>tl().delete(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/featuredgroups/deleteGroup/"+e).then((e=>e)),NW=(e,t)=>tl().put(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/featuredgroups/updateOrder/"+e,t).then((e=>e.data));const DW=e.createContext();function MW(e){return Ff("MuiTableRow",e)}const _W=Bf("MuiTableRow",["root","selected","hover","head","footer"]),IW=["className","component","hover","selected"],RW=nf("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})((e=>{let{theme:t}=e;return{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${_W.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${_W.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,gh.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,gh.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}})),OW="tr",LW=e.forwardRef((function(t,n){const r=rf({props:t,name:"MuiTableRow"}),{className:a,component:i=OW,hover:o=!1,selected:s=!1}=r,l=(0,Sl.A)(r,IW),c=e.useContext(DW),u=(0,wl.A)({},r,{component:i,hover:o,selected:s,head:c&&"head"===c.variant,footer:c&&"footer"===c.variant}),d=(e=>{const{classes:t,selected:n,hover:r,head:a,footer:i}=e;return mh({root:["root",n&&"selected",r&&"hover",a&&"head",i&&"footer"]},MW,t)})(u);return(0,Tl.jsx)(RW,(0,wl.A)({as:i,ref:n,className:fh(d.root,a),role:i===OW?null:"row",ownerState:u},l))})),FW=LW;const BW=e.createContext();function zW(e){return Ff("MuiTableCell",e)}const VW=Bf("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),WW=["align","className","component","padding","scope","size","sortDirection","variant"],UW=nf("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${sm(n.size)}`],"normal"!==n.padding&&t[`padding${sm(n.padding)}`],"inherit"!==n.align&&t[`align${sm(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid\n    ${"light"===t.palette.mode?(0,gh.a)((0,gh.X4)(t.palette.divider,1),.88):(0,gh.e$)((0,gh.X4)(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&&{padding:"6px 16px",[`&.${VW.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})})),$W=e.forwardRef((function(t,n){const r=rf({props:t,name:"MuiTableCell"}),{align:a="inherit",className:i,component:o,padding:s,scope:l,size:c,sortDirection:u,variant:d}=r,p=(0,Sl.A)(r,WW),h=e.useContext(BW),f=e.useContext(DW),m=f&&"head"===f.variant;let g;g=o||(m?"th":"td");let v=l;"td"===g?v=void 0:!v&&m&&(v="col");const y=d||f&&f.variant,b=(0,wl.A)({},r,{align:a,component:g,padding:s||(h&&h.padding?h.padding:"normal"),size:c||(h&&h.size?h.size:"medium"),sortDirection:u,stickyHeader:"head"===y&&h&&h.stickyHeader,variant:y}),x=(e=>{const{classes:t,variant:n,align:r,padding:a,size:i,stickyHeader:o}=e;return mh({root:["root",n,o&&"stickyHeader","inherit"!==r&&`align${sm(r)}`,"normal"!==a&&`padding${sm(a)}`,`size${sm(i)}`]},zW,t)})(b);let w=null;return u&&(w="asc"===u?"ascending":"descending"),(0,Tl.jsx)(UW,(0,wl.A)({as:g,ref:n,className:fh(x.root,i),"aria-sort":w,scope:v,ownerState:b},p))})),HW=$W,qW=bm((0,Tl.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),GW=bm((0,Tl.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Create");function KW(e){return Ff("MuiLinearProgress",e)}Bf("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const YW=["className","color","value","valueBuffer","variant"];let XW,ZW,JW,QW,eU,tU,nU=e=>e;const rU=(0,_f.i7)(XW||(XW=nU`
  0% {
    left: -35%;
    right: 100%;
  }

  60% {
    left: 100%;
    right: -90%;
  }

  100% {
    left: 100%;
    right: -90%;
  }
`)),aU=(0,_f.i7)(ZW||(ZW=nU`
  0% {
    left: -200%;
    right: 100%;
  }

  60% {
    left: 107%;
    right: -8%;
  }

  100% {
    left: 107%;
    right: -8%;
  }
`)),iU=(0,_f.i7)(JW||(JW=nU`
  0% {
    opacity: 1;
    background-position: 0 -23px;
  }

  60% {
    opacity: 0;
    background-position: 0 -23px;
  }

  100% {
    opacity: 1;
    background-position: -200px -23px;
  }
`)),oU=(e,t)=>"inherit"===t?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:"light"===e.palette.mode?(0,gh.a)(e.palette[t].main,.62):(0,gh.e$)(e.palette[t].main,.5),sU=nf("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${sm(n.color)}`],t[n.variant]]}})((e=>{let{ownerState:t,theme:n}=e;return(0,wl.A)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:oU(n,t.color)},"inherit"===t.color&&"buffer"!==t.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===t.variant&&{backgroundColor:"transparent"},"query"===t.variant&&{transform:"rotate(180deg)"})})),lU=nf("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${sm(n.color)}`]]}})((e=>{let{ownerState:t,theme:n}=e;const r=oU(n,t.color);return(0,wl.A)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===t.color&&{opacity:.3},{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})}),(0,_f.AH)(QW||(QW=nU`
    animation: ${0} 3s infinite linear;
  `),iU)),cU=nf("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${sm(n.color)}`],("indeterminate"===n.variant||"query"===n.variant)&&t.bar1Indeterminate,"determinate"===n.variant&&t.bar1Determinate,"buffer"===n.variant&&t.bar1Buffer]}})((e=>{let{ownerState:t,theme:n}=e;return(0,wl.A)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===t.color?"currentColor":(n.vars||n).palette[t.color].main},"determinate"===t.variant&&{transition:"transform .4s linear"},"buffer"===t.variant&&{zIndex:1,transition:"transform .4s linear"})}),(e=>{let{ownerState:t}=e;return("indeterminate"===t.variant||"query"===t.variant)&&(0,_f.AH)(eU||(eU=nU`
      width: auto;
      animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
    `),rU)})),uU=nf("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${sm(n.color)}`],("indeterminate"===n.variant||"query"===n.variant)&&t.bar2Indeterminate,"buffer"===n.variant&&t.bar2Buffer]}})((e=>{let{ownerState:t,theme:n}=e;return(0,wl.A)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==t.variant&&{backgroundColor:"inherit"===t.color?"currentColor":(n.vars||n).palette[t.color].main},"inherit"===t.color&&{opacity:.3},"buffer"===t.variant&&{backgroundColor:oU(n,t.color),transition:"transform .4s linear"})}),(e=>{let{ownerState:t}=e;return("indeterminate"===t.variant||"query"===t.variant)&&(0,_f.AH)(tU||(tU=nU`
      width: auto;
      animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
    `),aU)})),dU=e.forwardRef((function(e,t){const n=rf({props:e,name:"MuiLinearProgress"}),{className:r,color:a="primary",value:i,valueBuffer:o,variant:s="indeterminate"}=n,l=(0,Sl.A)(n,YW),c=(0,wl.A)({},n,{color:a,variant:s}),u=(e=>{const{classes:t,variant:n,color:r}=e;return mh({root:["root",`color${sm(r)}`,n],dashed:["dashed",`dashedColor${sm(r)}`],bar1:["bar",`barColor${sm(r)}`,("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","buffer"!==n&&`barColor${sm(r)}`,"buffer"===n&&`color${sm(r)}`,("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]},KW,t)})(c),d=Ml(),p={},h={bar1:{},bar2:{}};if("determinate"===s||"buffer"===s)if(void 0!==i){p["aria-valuenow"]=Math.round(i),p["aria-valuemin"]=0,p["aria-valuemax"]=100;let e=i-100;d&&(e=-e),h.bar1.transform=`translateX(${e}%)`}else 0;if("buffer"===s)if(void 0!==o){let e=(o||0)-100;d&&(e=-e),h.bar2.transform=`translateX(${e}%)`}else 0;return(0,Tl.jsxs)(sU,(0,wl.A)({className:fh(u.root,r),ownerState:c,role:"progressbar"},p,{ref:t},l,{children:["buffer"===s?(0,Tl.jsx)(lU,{className:u.dashed,ownerState:c}):null,(0,Tl.jsx)(cU,{className:u.bar1,ownerState:c,style:h.bar1}),"determinate"===s?null:(0,Tl.jsx)(uU,{className:u.bar2,ownerState:c,style:h.bar2})]}))})),pU=dU,hU=cb((e=>({colorPrimary:{background:e.palette.primary.main},barColorPrimary:{background:e.palette.secondary.main}})));function fU(e){let{loading:t}=e;const n=hU();return(0,Tl.jsx)(Tl.Fragment,{children:t?(0,Tl.jsx)(Xm,{sx:{width:"100%"},children:(0,Tl.jsx)(pU,{classes:{colorPrimary:n.colorPrimary,barColorPrimary:n.barColorPrimary}})}):null})}const mU=cb((e=>({root:{[e.breakpoints.down("md")]:{width:"90%"},justifyContent:"space-between",width:"30%",height:"20%",position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",display:"flex",flexDirection:"column",alignItems:"center"},title:{[e.breakpoints.down("md")]:{fontSize:"18px",paddingLeft:"10px"},fontSize:"24px",paddingTop:"5%",paddingLeft:"15px"},buttonSection:{display:"flex",justifyContent:"space-around",alignItems:"center",height:"50%",width:"100%"},button:{[e.breakpoints.down("md")]:{minWidth:"unset",minHeight:"unset",width:"30%"},minWidth:"200px",minHeight:"50px"}})));function gU(e){let{question:t,func:n,closeModal:r,processing:a}=e;const i=mU();return(0,Tl.jsxs)(WM,{className:i.root,children:[(0,Tl.jsx)(fU,{loading:a}),(0,Tl.jsx)("span",{className:i.title,children:t}),(0,Tl.jsxs)("div",{className:i.buttonSection,children:[(0,Tl.jsx)(vW,{className:i.button,style:{backgroundColor:"#E45E42"},type:"",variant:"contained",color:"primary",disabled:a,onClick:()=>((e,t)=>{e(),t()})(n,r),children:"Yes"}),(0,Tl.jsx)(vW,{className:i.button,style:{backgroundColor:"#82B288"},type:"",variant:"contained",color:"primary",disabled:a,onClick:()=>r(),children:"No"})]})]})}async function vU(e,t,n,r,a,i){i(!0),await e.then((e=>{n(!0),e?(r(t),a(!1)):a(!0),i(!1)}))}function yU(e){return Ff("MuiCardContent",e)}Bf("MuiCardContent",["root"]);const bU=["className","component"],xU=nf("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({padding:16,"&:last-child":{paddingBottom:24}}))),wU=e.forwardRef((function(e,t){const n=rf({props:e,name:"MuiCardContent"}),{className:r,component:a="div"}=n,i=(0,Sl.A)(n,bU),o=(0,wl.A)({},n,{component:a}),s=(e=>{const{classes:t}=e;return mh({root:["root"]},yU,t)})(o);return(0,Tl.jsx)(xU,(0,wl.A)({as:a,className:fh(s.root,r),ownerState:o,ref:t},i))})),SU=wU,CU=cb((e=>({signifierContainer:{position:"absolute",top:50,left:"50%",transform:"translate(-50%, 0)",zIndex:2,animation:"$scrollIn 4000ms forwards",display:"flex",alignItems:"center",justifyContent:"center"},root:{[e.breakpoints.down("md")]:{minWidth:"80vw",maxHeight:"20px"},minWidth:600,minHeight:60,maxHeight:"100px",position:"relative",left:"50%",transform:"translate(-50%, 0)",display:"flex",alignItems:"center"},hidden:{display:"none"},title:{fontSize:26,animation:"none !important"},"@keyframes scrollIn":{"0%":{top:-200},"20%":{top:50},"80%":{top:50},"100%":{top:-200}}})));function AU(e){var t;const n=CU(),r=e.error?null!==(t=e.errorMessage)&&void 0!==t?t:"Something went wrong":e.message;return(0,Tl.jsx)("span",{className:e.showSignifier?n.signifierContainer:n.hidden,onAnimationEnd:()=>e.setShowSignifier(!1),children:(0,Tl.jsx)(WM,{className:e.showSignifier?n.root:n.hidden,variant:"outlined",children:(0,Tl.jsx)(SU,{className:n.root,children:(0,Tl.jsx)("span",{className:n.title,children:r})})})})}const kU=(e,t)=>void 0===e?1:void 0===t||e<t?-1:e>t?1:0;function TU(e){return Ff("MuiFormHelperText",e)}const jU=Bf("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var EU;const PU=["children","className","component","disabled","error","filled","focused","margin","required","variant"],NU=nf("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${sm(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${jU.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${jU.error}`]:{color:(t.vars||t).palette.error.main}},"small"===n.size&&{marginTop:4},n.contained&&{marginLeft:14,marginRight:14})})),DU=e.forwardRef((function(e,t){const n=rf({props:e,name:"MuiFormHelperText"}),{children:r,className:a,component:i="p"}=n,o=(0,Sl.A)(n,PU),s=hC({props:n,muiFormControl:mC(),states:["variant","size","disabled","error","filled","focused","required"]}),l=(0,wl.A)({},n,{component:i,contained:"filled"===s.variant||"outlined"===s.variant,variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),c=(e=>{const{classes:t,contained:n,size:r,disabled:a,error:i,filled:o,focused:s,required:l}=e;return mh({root:["root",a&&"disabled",i&&"error",r&&`size${sm(r)}`,n&&"contained",s&&"focused",o&&"filled",l&&"required"]},TU,t)})(l);return(0,Tl.jsx)(NU,(0,wl.A)({as:i,ownerState:l,className:fh(c.root,a),ref:t},o,{children:" "===r?EU||(EU=(0,Tl.jsx)("span",{className:"notranslate",children:"\u200b"})):r}))})),MU=DU;function _U(e){return Ff("MuiTextField",e)}Bf("MuiTextField",["root"]);const IU=["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"],RU={standard:uM,filled:vM,outlined:PM},OU=nf(PN,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),LU=e.forwardRef((function(e,t){const n=rf({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:a=!1,children:i,className:o,color:s="primary",defaultValue:l,disabled:c=!1,error:u=!1,FormHelperTextProps:d,fullWidth:p=!1,helperText:h,id:f,InputLabelProps:m,inputProps:g,InputProps:v,inputRef:y,label:b,maxRows:x,minRows:w,multiline:S=!1,name:C,onBlur:A,onChange:k,onFocus:T,placeholder:j,required:E=!1,rows:P,select:N=!1,SelectProps:D,type:M,value:_,variant:I="outlined"}=n,R=(0,Sl.A)(n,IU),O=(0,wl.A)({},n,{autoFocus:a,color:s,disabled:c,error:u,fullWidth:p,multiline:S,required:E,select:N,variant:I}),L=(e=>{const{classes:t}=e;return mh({root:["root"]},_U,t)})(O);const F={};"outlined"===I&&(m&&"undefined"!==typeof m.shrink&&(F.notched=m.shrink),F.label=b),N&&(D&&D.native||(F.id=void 0),F["aria-describedby"]=void 0);const B=CS(f),z=h&&B?`${B}-helper-text`:void 0,V=b&&B?`${B}-label`:void 0,W=RU[I],U=(0,Tl.jsx)(W,(0,wl.A)({"aria-describedby":z,autoComplete:r,autoFocus:a,defaultValue:l,fullWidth:p,multiline:S,name:C,rows:P,maxRows:x,minRows:w,type:M,value:_,id:B,inputRef:y,onBlur:A,onChange:k,onFocus:T,placeholder:j,inputProps:g},F,v));return(0,Tl.jsxs)(OU,(0,wl.A)({className:fh(L.root,o),disabled:c,error:u,fullWidth:p,ref:t,required:E,color:s,variant:I,ownerState:O},R,{children:[null!=b&&""!==b&&(0,Tl.jsx)(VN,(0,wl.A)({htmlFor:B,id:V},m,{children:b})),N?(0,Tl.jsx)(LM,(0,wl.A)({"aria-describedby":z,id:B,labelId:V,value:_,input:U},D,{children:i})):U,h&&(0,Tl.jsx)(MU,(0,wl.A)({id:z},d,{children:h}))]}))})),FU=LU,BU=cb((e=>({root:{[e.breakpoints.down("md")]:{width:"100%"},justifyContent:"space-between",width:"100%",display:"flex",flexDirection:"column"}})));function zU(t){let{openModal:n,groupId:r,groupName:a,func:i}=t;const o=BU(),[s,l]=(0,e.useState)(a),[c,u]=(0,e.useState)(!1),[d,p]=(0,e.useState)(!1),h={Id:r,Name:s},f=e=>{""!==s?i(e).then((()=>{n(!1)})):p(!0)};return(0,Tl.jsxs)("div",{className:o.root,children:[(0,Tl.jsx)(fU,{loading:c}),(0,Tl.jsx)(CN,{children:(0,Tl.jsx)(WM,{children:(0,Tl.jsxs)(SU,{children:[(0,Tl.jsx)(MU,{style:{fontWeight:"bold"},children:"Edit Group Name"}),(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:12,children:[(0,Tl.jsx)(FU,{placeholder:"Edit Group Name",label:"Edit Group Name",variant:"standard",fullWidth:!0,required:!0,error:d&&""===s,value:s,onChange:e=>l(e.target.value)}),d&&""===s&&(0,Tl.jsx)(MU,{className:o.error,children:"Group Name Required"})]}),(0,Tl.jsxs)(CN,{container:!0,justifyContent:"flex-end",direction:"row",style:{marginRight:"10px"},children:[(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{color:"#82B288",marginTop:"20px"},type:"submit",variant:"outlined",fullWidth:!0,onClick:()=>n(!1),children:"Cancel"})}),(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginLeft:"10px"},type:"submit",variant:"contained",color:"primary",fullWidth:!0,onClick:()=>f(h),children:"Save"})})]})]})]})})})]})}const VU=cb((e=>({rowCell:{cursor:"pointer !important",background:e.palette.primary.blue,textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},rowCellOdd:{cursor:"pointer !important",background:"white",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},itemIcon:{cursor:"grab"},tableCell:{[e.breakpoints.down("md")]:{width:"auto"},width:"300px",color:e.palette.primary.copy}})));function WU(t){const n=VU(t),[r,a]=(0,e.useState)(!1),[i,o]=(0,e.useState)(!1),[s,l]=(0,e.useState)(!1),[c,u]=(0,e.useState)(""),[d,p]=(0,e.useState)(!1),[h,f]=(0,e.useState)(!1);return(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:s,setShowSignifier:l,message:c,error:d}),(0,Tl.jsx)(FW,{hover:!0,className:t.index%2?n.rowCell:n.rowCellOdd,component:ch,to:{pathname:"/featuredgroups/featuredgroupsdetailed",state:t.element},ref:t.innerRef,...t,children:t.columns.map(((e,r)=>(0,Tl.jsx)(HW,{align:"left",className:n.tableCell,children:"Delete"===e.label?(0,Tl.jsx)(FS,{title:"Delete Group",children:(0,Tl.jsx)(hm,{onClick:e=>function(e){e.preventDefault(),a(!0)}(e),size:"large",children:(0,Tl.jsx)(qW,{})})}):"Edit"===e.label?(0,Tl.jsx)(FS,{title:"Edit Group Name",children:(0,Tl.jsx)(hm,{onClick:e=>function(e){e.preventDefault(),o(!0)}(e),size:"large",children:(0,Tl.jsx)(GW,{})})}):""===e.label?(0,Tl.jsx)(Px,{size:"large",className:n.itemIcon,children:(0,Tl.jsx)(_m,{})}):t.element[e.propName]},r)))},t.index),(0,Tl.jsx)(jW,{open:r,onClose:()=>a(!1),children:(0,Tl.jsx)(gU,{question:"Delete this group? This will also delete all featured jobs belonging to this group",func:()=>{vU(PW(t.element.id),"Group Deleted",l,u,p,f).then((()=>{EW(t.element.clientId).then((e=>{e.sort(((e,t)=>{const n=kU(e.order,t.order);return 0!==n?n:e[1]-t[1]})),e.forEach((e=>e.featureAdsLength=e.featureAds.length)),t.setTableData(e)}))}))},closeModal:()=>a(!1)})}),(0,Tl.jsx)(jW,{open:i,onClose:()=>o(!1),children:(0,Tl.jsx)(zU,{openModal:o,groupId:t.element.id,groupName:t.element.name,func:async function(e){vU((e=>tl().put(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/featuredgroups/editGroup",e).then((e=>e.data)))(e),"Group Name Saved",l,u,p,f).then((()=>{EW(t.element.clientId).then((e=>{e.sort(((e,t)=>{const n=kU(e.order,t.order);return 0!==n?n:e[1]-t[1]})),e.forEach((e=>e.featureAdsLength=e.featureAds.length)),t.setTableData(e)}))}))}})})]})}const UU=cb((e=>({root:{[e.breakpoints.down("md")]:{width:"100%"},justifyContent:"space-between",width:"100%",display:"flex",flexDirection:"column"}})));function $U(t){let{openModal:n,client:r,setShowSignifier:a,setResponseMessage:i,setShowError:o,setTableData:s}=t;const l=UU(),[c,u]=(0,e.useState)(""),[d,p]=(0,e.useState)(!1);function h(){vU((e=>tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/featuredgroups/addGroup",e).then((e=>e.data)))({ClientId:r.id,Name:c}),"Group Added",a,i,o,p).then((()=>{EW(r.id).then((e=>{e.forEach((e=>e.featureAdsLength=e.featureAds.length)),s(e),n(!1)}))}))}return(0,Tl.jsxs)("div",{className:l.root,children:[(0,Tl.jsx)(fU,{loading:d}),(0,Tl.jsx)(CN,{children:(0,Tl.jsx)(WM,{children:(0,Tl.jsxs)(SU,{children:[(0,Tl.jsx)(MU,{style:{fontWeight:"bold"},children:"Add Featured Group"}),(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(FU,{placeholder:"Add Group Name",label:"Add Group Name",variant:"standard",fullWidth:!0,required:!0,value:c,onChange:e=>u(e.target.value)})}),(0,Tl.jsxs)(CN,{container:!0,justifyContent:"flex-end",direction:"row",style:{marginRight:"10px"},children:[(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{color:"#82B288",marginTop:"20px"},type:"submit",variant:"outlined",fullWidth:!0,onClick:()=>n(!1),children:"Cancel"})}),(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginLeft:"10px"},type:"submit",variant:"contained",color:"primary",fullWidth:!0,onClick:()=>h(),children:"Save"})})]})]})]})})})]})}function HU(e){return Ff("MuiTable",e)}Bf("MuiTable",["root","stickyHeader"]);const qU=["className","component","padding","size","stickyHeader"],GU=nf("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,wl.A)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},n.stickyHeader&&{borderCollapse:"separate"})})),KU="table",YU=e.forwardRef((function(t,n){const r=rf({props:t,name:"MuiTable"}),{className:a,component:i=KU,padding:o="normal",size:s="medium",stickyHeader:l=!1}=r,c=(0,Sl.A)(r,qU),u=(0,wl.A)({},r,{component:i,padding:o,size:s,stickyHeader:l}),d=(e=>{const{classes:t,stickyHeader:n}=e;return mh({root:["root",n&&"stickyHeader"]},HU,t)})(u),p=e.useMemo((()=>({padding:o,size:s,stickyHeader:l})),[o,s,l]);return(0,Tl.jsx)(BW.Provider,{value:p,children:(0,Tl.jsx)(GU,(0,wl.A)({as:i,role:i===KU?null:"table",ref:n,className:fh(d.root,a),ownerState:u},c))})})),XU=YU;function ZU(e){return Ff("MuiTableBody",e)}Bf("MuiTableBody",["root"]);const JU=["className","component"],QU=nf("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),e$={variant:"body"},t$="tbody",n$=e.forwardRef((function(e,t){const n=rf({props:e,name:"MuiTableBody"}),{className:r,component:a=t$}=n,i=(0,Sl.A)(n,JU),o=(0,wl.A)({},n,{component:a}),s=(e=>{const{classes:t}=e;return mh({root:["root"]},ZU,t)})(o);return(0,Tl.jsx)(DW.Provider,{value:e$,children:(0,Tl.jsx)(QU,(0,wl.A)({className:fh(s.root,r),as:a,ref:t,role:a===t$?null:"rowgroup",ownerState:o},i))})})),r$=n$;function a$(e){return Ff("MuiTableContainer",e)}Bf("MuiTableContainer",["root"]);const i$=["className","component"],o$=nf("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),s$=e.forwardRef((function(e,t){const n=rf({props:e,name:"MuiTableContainer"}),{className:r,component:a="div"}=n,i=(0,Sl.A)(n,i$),o=(0,wl.A)({},n,{component:a}),s=(e=>{const{classes:t}=e;return mh({root:["root"]},a$,t)})(o);return(0,Tl.jsx)(o$,(0,wl.A)({ref:t,as:a,className:fh(s.root,r),ownerState:o},i))})),l$=s$;function c$(e){return Ff("MuiTableHead",e)}Bf("MuiTableHead",["root"]);const u$=["className","component"],d$=nf("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),p$={variant:"head"},h$="thead",f$=e.forwardRef((function(e,t){const n=rf({props:e,name:"MuiTableHead"}),{className:r,component:a=h$}=n,i=(0,Sl.A)(n,u$),o=(0,wl.A)({},n,{component:a}),s=(e=>{const{classes:t}=e;return mh({root:["root"]},c$,t)})(o);return(0,Tl.jsx)(DW.Provider,{value:p$,children:(0,Tl.jsx)(d$,(0,wl.A)({as:a,className:fh(s.root,r),ref:t,role:a===h$?null:"rowgroup",ownerState:o},i))})})),m$=f$,g$=cb((e=>({root:{marginLeft:"2%",marginRight:"2%",width:"95%",display:"flex",flexDirection:"column",justifyContent:"space-between",[e.breakpoints.down("md")]:{width:"100%"}}})));function v$(e){let{numRows:t}=e;const n=g$();for(var r=[],a=0;a<t;a++)r.push((0,Tl.jsx)(Xz,{animation:"wave",height:100*t,height:50},a));return(0,Tl.jsx)("div",{className:n.root,children:r})}function y$(t,n){var r=(0,e.useState)((function(){return{inputs:n,result:t()}}))[0],a=(0,e.useRef)(!0),i=(0,e.useRef)(r),o=a.current||Boolean(n&&i.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(n,i.current.inputs))?i.current:{inputs:n,result:t()};return(0,e.useEffect)((function(){a.current=!1,i.current=o}),[o]),o.result}var b$=y$,x$=function(e,t){return y$((function(){return e}),t)},w$=function(e){var t=e.top,n=e.right,r=e.bottom,a=e.left;return{top:t,right:n,bottom:r,left:a,width:n-a,height:r-t,x:a,y:t,center:{x:(n+a)/2,y:(r+t)/2}}},S$=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},C$=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},A$={top:0,right:0,bottom:0,left:0},k$=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?A$:n,a=e.border,i=void 0===a?A$:a,o=e.padding,s=void 0===o?A$:o,l=w$(S$(t,r)),c=w$(C$(t,i)),u=w$(C$(c,s));return{marginBox:l,borderBox:w$(t),paddingBox:c,contentBox:u,margin:r,border:i,padding:s}},T$=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&Gc(!1),n},j$=function(e,t){var n,r,a=e.borderBox,i=e.border,o=e.margin,s=e.padding,l=(r=t,{top:(n=a).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return k$({borderBox:l,border:i,margin:o,padding:s})},E$=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),j$(e,t)},P$=function(e,t){var n={top:T$(t.marginTop),right:T$(t.marginRight),bottom:T$(t.marginBottom),left:T$(t.marginLeft)},r={top:T$(t.paddingTop),right:T$(t.paddingRight),bottom:T$(t.paddingBottom),left:T$(t.paddingLeft)},a={top:T$(t.borderTopWidth),right:T$(t.borderRightWidth),bottom:T$(t.borderBottomWidth),left:T$(t.borderLeftWidth)};return k$({borderBox:e,margin:n,padding:r,border:a})},N$=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return P$(t,n)},D$=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function M$(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],a=t[n],!(r===a||D$(r)&&D$(a)))return!1;var r,a;return!0}const _$=function(e,t){var n;void 0===t&&(t=M$);var r,a=[],i=!1;return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return i&&n===this&&t(o,a)||(r=e.apply(this,o),i=!0,n=this,a=o),r}};const I$=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];t=a,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function R$(e,t){}R$.bind(null,"warn"),R$.bind(null,"error");function O$(){}function L$(e,t,n){var r=t.map((function(t){var r=function(e,t){return(0,wl.A)({},e,{},t)}(n,t.options);return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}}));return function(){r.forEach((function(e){e()}))}}var F$="Invariant failed";function B$(e){this.message=e}function z$(e,t){if(!e)throw new B$(F$)}B$.prototype.toString=function(){return this.message};var V$=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=O$,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof B$&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}Fc(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=L$(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof B$))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(e.Component),W$=function(e){return e+1},U$=function(e,t){var n=e.droppableId===t.droppableId,r=W$(e.index),a=W$(t.index);return n?"\n      You have moved the item from position "+r+"\n      to position "+a+"\n    ":"\n    You have moved the item from position "+r+"\n    in list "+e.droppableId+"\n    to list "+t.droppableId+"\n    in position "+a+"\n  "},$$=function(e,t,n){return t.droppableId===n.droppableId?"\n      The item "+e+"\n      has been combined with "+n.draggableId:"\n      The item "+e+"\n      in list "+t.droppableId+"\n      has been combined with "+n.draggableId+"\n      in list "+n.droppableId+"\n    "},H$=function(e){return"\n  The item has returned to its starting position\n  of "+W$(e.index)+"\n"},q$="\n  Press space bar to start a drag.\n  When dragging you can use the arrow keys to move the item around and escape to cancel.\n  Some screen readers may require you to be in focus mode or to use your pass through key\n",G$=function(e){return"\n  You have lifted an item in position "+W$(e.source.index)+"\n"},K$=function(e){var t=e.destination;if(t)return U$(e.source,t);var n=e.combine;return n?$$(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},Y$=function(e){if("CANCEL"===e.reason)return"\n      Movement cancelled.\n      "+H$(e.source)+"\n    ";var t=e.destination,n=e.combine;return t?"\n      You have dropped the item.\n      "+U$(e.source,t)+"\n    ":n?"\n      You have dropped the item.\n      "+$$(e.draggableId,e.source,n)+"\n    ":"\n    The item has been dropped while not over a drop area.\n    "+H$(e.source)+"\n  "},X$={x:0,y:0},Z$=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},J$=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Q$=function(e,t){return e.x===t.x&&e.y===t.y},eH=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},tH=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},nH=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},rH=function(e,t){return Math.min.apply(Math,t.map((function(t){return nH(e,t)})))},aH=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},iH=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},oH=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},sH=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=w$({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):w$(e)},lH=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,a=e.frame,i=function(e,t){return t?iH(e,t.scroll.diff.displacement):e}(t.marginBox,a),o=function(e,t,n){var r;return n&&n.increasedBy?(0,wl.A)({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(i,r,n);return{page:t,withPlaceholder:n,active:sH(o,a)}},cH=function(e,t){e.frame||z$(!1);var n=e.frame,r=J$(t,n.scroll.initial),a=eH(r),i=(0,wl.A)({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:a},max:n.scroll.max}}),o=lH({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return(0,wl.A)({},e,{frame:i,subject:o})};function uH(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function dH(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function pH(e,t){if(e.find)return e.find(t);var n=dH(e,t);return-1!==n?e[n]:void 0}function hH(e){return Array.prototype.slice.call(e)}var fH=_$((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),mH=_$((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),gH=_$((function(e){return uH(e)})),vH=_$((function(e){return uH(e)})),yH=_$((function(e,t){var n=vH(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return n}));function bH(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function xH(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var wH=_$((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),SH=function(e,t){return e.descriptor.droppableId===t.descriptor.id},CH={point:X$,value:0},AH={invisible:{},visible:{},all:[]},kH={displaced:AH,displacedBy:CH,at:null},TH=function(e,t){return function(n){return e<=n&&n<=t}},jH=function(e){var t=TH(e.top,e.bottom),n=TH(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var a=t(r.top)||t(r.bottom),i=n(r.left)||n(r.right);if(a&&i)return!0;var o=r.top<e.top&&r.bottom>e.bottom,s=r.left<e.left&&r.right>e.right;return!(!o||!s)||(o&&i||s&&a)}},EH=function(e){var t=TH(e.top,e.bottom),n=TH(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},PH={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},NH={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},DH=function(e){var t=e.target,n=e.destination,r=e.viewport,a=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,o=a?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:X$;return iH(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(o,n,i)&&function(e,t,n){return n(t)(e)}(o,r,i)},MH=function(e){return DH((0,wl.A)({},e,{isVisibleThroughFrameFn:jH}))},_H=function(e){return DH((0,wl.A)({},e,{isVisibleThroughFrameFn:EH}))};function IH(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,a=e.viewport,i=e.forceShouldAnimate,o=e.last;return t.reduce((function(e,t){var s=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return w$(S$(n,r))}(t,r),l=t.descriptor.id;if(e.all.push(l),!MH({target:s,destination:n,viewport:a,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var c=function(e,t,n){if("boolean"===typeof n)return n;if(!t)return!0;var r=t.invisible,a=t.visible;if(r[e])return!1;var i=a[e];return!i||i.shouldAnimate}(l,o,i),u={draggableId:l,shouldAnimate:c};return e.visible[l]=u,e}),{all:[],visible:{},invisible:{}})}function RH(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,a=e.destination,i=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:AH,displacedBy:r,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:i}}}}function OH(e){var t=e.draggable,n=e.insideDestination,r=e.destination,a=e.viewport,i=e.displacedBy,o=e.last,s=e.index,l=e.forceShouldAnimate,c=SH(t,r);if(null==s)return RH({insideDestination:n,inHomeList:c,displacedBy:i,destination:r});var u=pH(n,(function(e){return e.descriptor.index===s}));if(!u)return RH({insideDestination:n,inHomeList:c,displacedBy:i,destination:r});var d=wH(t,n),p=n.indexOf(u);return{displaced:IH({afterDragging:d.slice(p),destination:r,displacedBy:i,last:o,viewport:a.frame,forceShouldAnimate:l}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:s}}}}function LH(e,t){return Boolean(t.effected[e])}var FH=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,a=e.draggables,i=e.destination,o=e.insideDestination,s=e.previousImpact,l=e.viewport,c=e.afterCritical,u=s.at;if(u||z$(!1),"REORDER"===u.type){var d=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,a=e.location;if(!r.length)return null;var i=a.index,o=t?i+1:i-1,s=r[0].descriptor.index,l=r[r.length-1].descriptor.index;return o<s||o>(n?l:l+1)?null:o}({isMovingForward:t,isInHomeList:n,location:u.destination,insideDestination:o});return null==d?null:OH({draggable:r,insideDestination:o,destination:i,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:d})}var p=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,a=e.combine,i=e.afterCritical;if(!n.isCombineEnabled)return null;var o=a.draggableId,s=r[o].descriptor.index;return LH(o,i)?t?s:s-1:t?s+1:s}({isMovingForward:t,destination:i,displaced:s.displaced,draggables:a,combine:u.combine,afterCritical:c});return null==p?null:OH({draggable:r,insideDestination:o,destination:i,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:p})},BH=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,a=xH(n);a||z$(!1);var i=a.draggableId,o=r[i].page.borderBox.center,s=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,a=e.displacedBy,i=Boolean(t.visible[r]||t.invisible[r]);return LH(r,n)?i?X$:eH(a.point):i?a.point:X$}({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return Z$(o,s)},zH=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},VH=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},WH=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return tH(t.line,n.marginBox[t.end]+zH(t,r),VH(t,n.marginBox,r))},UH=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return tH(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),VH(t,n.marginBox,r))},$H=function(e){var t=e.impact,n=e.draggable,r=e.draggables,a=e.droppable,i=e.afterCritical,o=yH(a.descriptor.id,r),s=n.page,l=a.axis;if(!o.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return tH(t.line,n.contentBox[t.start]+zH(t,r),VH(t,n.contentBox,r))}({axis:l,moveInto:a.page,isMoving:s});var c=t.displaced,u=t.displacedBy,d=c.all[0];if(d){var p=r[d];if(LH(d,i))return UH({axis:l,moveRelativeTo:p.page,isMoving:s});var h=j$(p.page,u.point);return UH({axis:l,moveRelativeTo:h,isMoving:s})}var f=o[o.length-1];if(f.descriptor.id===n.descriptor.id)return s.borderBox.center;if(LH(f.descriptor.id,i)){var m=j$(f.page,eH(i.displacedBy.point));return WH({axis:l,moveRelativeTo:m,isMoving:s})}return WH({axis:l,moveRelativeTo:f.page,isMoving:s})},HH=function(e,t){var n=e.frame;return n?Z$(t,n.scroll.diff.displacement):t},qH=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,a=e.draggables,i=e.afterCritical,o=n.page.borderBox.center,s=t.at;return r&&s?"REORDER"===s.type?$H({impact:t,draggable:n,draggables:a,droppable:r,afterCritical:i}):BH({impact:t,draggables:a,afterCritical:i}):o}(e),n=e.droppable;return n?HH(n,t):t},GH=function(e,t){var n=J$(t,e.scroll.initial),r=eH(n);return{frame:w$({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function KH(e,t){return e.map((function(e){return t[e]}))}var YH=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return Z$(e.scroll.diff.displacement,t)}(e.viewport,t),a=J$(r,n.page.borderBox.center);return Z$(n.client.borderBox.center,a)},XH=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,a=e.viewport,i=e.withDroppableDisplacement,o=e.onlyOnMainAxis,s=void 0!==o&&o,l=J$(r,t.page.borderBox.center),c={target:iH(t.page.borderBox,l),destination:n,withDroppableDisplacement:i,viewport:a};return s?function(e){return DH((0,wl.A)({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=TH(e.top,e.bottom),r=TH(e.left,e.right);return function(e){return t===PH?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(c):_H(c)},ZH=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,a=e.draggables,i=e.previousImpact,o=e.viewport,s=e.previousPageBorderBoxCenter,l=e.previousClientSelection,c=e.afterCritical;if(!r.isEnabled)return null;var u=yH(r.descriptor.id,a),d=SH(n,r),p=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,a=e.insideDestination,i=e.previousImpact;if(!r.isCombineEnabled)return null;if(!bH(i))return null;function o(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return(0,wl.A)({},i,{at:t})}var s=i.displaced.all,l=s.length?s[0]:null;if(t)return l?o(l):null;var c=wH(n,a);if(!l)return c.length?o(c[c.length-1].descriptor.id):null;var u=dH(c,(function(e){return e.descriptor.id===l}));-1===u&&z$(!1);var d=u-1;return d<0?null:o(c[d].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:u,previousImpact:i})||FH({isMovingForward:t,isInHomeList:d,draggable:n,draggables:a,destination:r,insideDestination:u,previousImpact:i,viewport:o,afterCritical:c});if(!p)return null;var h=qH({impact:p,draggable:n,droppable:r,draggables:a,afterCritical:c});if(XH({draggable:n,destination:r,newPageBorderBoxCenter:h,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:YH({pageBorderBoxCenter:h,draggable:n,viewport:o}),impact:p,scrollJumpRequest:null};var f=J$(h,s),m=function(e){var t=e.impact,n=e.viewport,r=e.destination,a=e.draggables,i=e.maxScrollChange,o=GH(n,Z$(n.scroll.current,i)),s=r.frame?cH(r,Z$(r.frame.scroll.current,i)):r,l=t.displaced,c=IH({afterDragging:KH(l.all,a),destination:r,displacedBy:t.displacedBy,viewport:o.frame,last:l,forceShouldAnimate:!1}),u=IH({afterDragging:KH(l.all,a),destination:s,displacedBy:t.displacedBy,viewport:n.frame,last:l,forceShouldAnimate:!1}),d={},p={},h=[l,c,u];return l.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,h);t?p[e]=t:d[e]=!0})),(0,wl.A)({},t,{displaced:{all:l.all,invisible:d,visible:p}})}({impact:p,viewport:o,destination:r,draggables:a,maxScrollChange:f});return{clientSelection:l,impact:m,scrollJumpRequest:f}},JH=function(e){var t=e.subject.active;return t||z$(!1),t},QH=function(e,t){var n=e.page.borderBox.center;return LH(e.descriptor.id,t)?J$(n,t.displacedBy.point):n},eq=function(e,t){var n=e.page.borderBox;return LH(e.descriptor.id,t)?iH(n,eH(t.displacedBy.point)):n},tq=_$((function(e,t){var n=t[e.line];return{value:n,point:tH(e.line,n)}})),nq=function(e,t){return(0,wl.A)({},e,{scroll:(0,wl.A)({},e.scroll,{max:t})})},rq=function(e,t,n){var r=e.frame;SH(t,e)&&z$(!1),e.subject.withPlaceholder&&z$(!1);var a=tq(e.axis,t.displaceBy).point,i=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return tH(r.line,t[r.line]);var a=e.subject.page.contentBox[r.size],i=yH(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-a;return i<=0?null:tH(r.line,i)}(e,a,n),o={placeholderSize:a,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){var s=lH({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:e.frame});return(0,wl.A)({},e,{subject:s})}var l=i?Z$(r.scroll.max,i):r.scroll.max,c=nq(r,l),u=lH({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:c});return(0,wl.A)({},e,{subject:u,frame:c})},aq=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,a=e.isOver,i=e.draggables,o=e.droppables,s=e.viewport,l=e.afterCritical,c=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,a=e.droppables,i=e.viewport,o=r.subject.active;if(!o)return null;var s=r.axis,l=TH(o[s.start],o[s.end]),c=gH(a).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return jH(i.frame)(JH(e))})).filter((function(e){var n=JH(e);return t?o[s.crossAxisEnd]<n[s.crossAxisEnd]:n[s.crossAxisStart]<o[s.crossAxisStart]})).filter((function(e){var t=JH(e),n=TH(t[s.start],t[s.end]);return l(t[s.start])||l(t[s.end])||n(o[s.start])||n(o[s.end])})).sort((function(e,n){var r=JH(e)[s.crossAxisStart],a=JH(n)[s.crossAxisStart];return t?r-a:a-r})).filter((function(e,t,n){return JH(e)[s.crossAxisStart]===JH(n[0])[s.crossAxisStart]}));if(!c.length)return null;if(1===c.length)return c[0];var u=c.filter((function(e){return TH(JH(e)[s.start],JH(e)[s.end])(n[s.line])}));return 1===u.length?u[0]:u.length>1?u.sort((function(e,t){return JH(e)[s.start]-JH(t)[s.start]}))[0]:c.sort((function(e,t){var r=rH(n,oH(JH(e))),a=rH(n,oH(JH(t)));return r!==a?r-a:JH(e)[s.start]-JH(t)[s.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:a,droppables:o,viewport:s});if(!c)return null;var u=yH(c.descriptor.id,i),d=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,a=e.insideDestination,i=e.afterCritical,o=a.filter((function(e){return _H({target:eq(e,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var a=nH(t,HH(r,QH(e,i))),o=nH(t,HH(r,QH(n,i)));return a<o?-1:o<a?1:e.descriptor.index-n.descriptor.index}));return o[0]||null}({pageBorderBoxCenter:n,viewport:s,destination:c,insideDestination:u,afterCritical:l}),p=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,a=e.draggable,i=e.draggables,o=e.destination,s=e.viewport,l=e.afterCritical;if(!n){if(r.length)return null;var c={displaced:AH,displacedBy:CH,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:0}}},u=qH({impact:c,draggable:a,droppable:o,draggables:i,afterCritical:l}),d=SH(a,o)?o:rq(o,a,i);return XH({draggable:a,destination:d,newPageBorderBoxCenter:u,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var p=Boolean(t[o.axis.line]<=n.page.borderBox.center[o.axis.line]),h=function(){var e=n.descriptor.index;return n.descriptor.id===a.descriptor.id||p?e:e+1}(),f=tq(o.axis,a.displaceBy);return OH({draggable:a,insideDestination:r,destination:o,viewport:s,displacedBy:f,last:AH,index:h})}({previousPageBorderBoxCenter:n,destination:c,draggable:r,draggables:i,moveRelativeTo:d,insideDestination:u,viewport:s,afterCritical:l});if(!p)return null;var h=qH({impact:p,draggable:r,droppable:c,draggables:i,afterCritical:l});return{clientSelection:YH({pageBorderBoxCenter:h,draggable:r,viewport:s}),impact:p,scrollJumpRequest:null}},iq=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},oq=function(e){var t=e.state,n=e.type,r=function(e,t){var n=iq(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),a=Boolean(r),i=t.dimensions.droppables[t.critical.droppable.id],o=r||i,s=o.axis.direction,l="vertical"===s&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===s&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(l&&!a)return null;var c="MOVE_DOWN"===n||"MOVE_RIGHT"===n,u=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,p=t.dimensions,h=p.draggables,f=p.droppables;return l?ZH({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,destination:o,draggables:h,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):aq({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,isOver:o,draggables:h,droppables:f,viewport:t.viewport,afterCritical:t.afterCritical})};function sq(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function lq(e){var t=TH(e.top,e.bottom),n=TH(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function cq(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,a=gH(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,a=e.subject.active;if(!a)return!1;if(r=a,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(lq(a)(t.center))return!0;var i=e.axis,o=a.center[i.crossAxisLine],s=t[i.crossAxisStart],l=t[i.crossAxisEnd],c=TH(a[i.crossAxisStart],a[i.crossAxisEnd]),u=c(s),d=c(l);return!u&&!d||(u?s<o:l>o)}));return a.length?1===a.length?a[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,a=n.page.borderBox.center,i=r.map((function(e){var n=e.axis,r=tH(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:nH(a,r)}})).sort((function(e,t){return t.distance-e.distance}));return i[0]?i[0].id:null}({pageBorderBox:t,draggable:n,candidates:a}):null}var uq=function(e,t){return w$(iH(e,t))};function dq(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var pq=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,a=e.droppables,i=e.previousImpact,o=e.viewport,s=e.afterCritical,l=uq(n.page.borderBox,t),c=cq({pageBorderBox:l,draggable:n,droppables:a});if(!c)return kH;var u=a[c],d=yH(u.descriptor.id,r),p=function(e,t){var n=e.frame;return n?uq(t,n.scroll.diff.value):t}(u,l);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,a=e.destination,i=e.insideDestination,o=e.afterCritical;if(!a.isCombineEnabled)return null;var s=a.axis,l=tq(a.axis,t.displaceBy),c=l.value,u=n[s.start],d=n[s.end],p=pH(wH(t,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox,a=n[s.size]/4,i=LH(t,o),l=dq({displaced:r.displaced,id:t});return i?l?d>n[s.start]+a&&d<n[s.end]-a:u>n[s.start]-c+a&&u<n[s.end]-c-a:l?d>n[s.start]+c+a&&d<n[s.end]+c-a:u>n[s.start]+a&&u<n[s.end]-a}));return p?{displacedBy:l,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:a.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:p,draggable:n,previousImpact:i,destination:u,insideDestination:d,afterCritical:s})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,a=e.insideDestination,i=e.last,o=e.viewport,s=e.afterCritical,l=r.axis,c=tq(r.axis,n.displaceBy),u=c.value,d=t[l.start],p=t[l.end],h=function(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:pH(wH(n,a),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[l.line],r=LH(t,s),a=dq({displaced:i,id:t});return r?a?p<=n:d<n-u:a?p<=n+u:d<n})),inHomeList:SH(n,r)});return OH({draggable:n,insideDestination:a,destination:r,viewport:o,last:i,displacedBy:c,index:h})}({pageBorderBoxWithDroppableScroll:p,draggable:n,destination:u,insideDestination:d,last:i.displaced,viewport:o,afterCritical:s})},hq=function(e,t){var n;return(0,wl.A)({},e,((n={})[t.descriptor.id]=t,n))},fq=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,a=iq(t),i=iq(n);if(!a)return r;if(a===i)return r;var o=r[a];if(!o.subject.withPlaceholder)return r;var s=function(e){var t=e.subject.withPlaceholder;t||z$(!1);var n=e.frame;if(!n){var r=lH({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return(0,wl.A)({},e,{subject:r})}var a=t.oldFrameMaxScroll;a||z$(!1);var i=nq(n,a),o=lH({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null});return(0,wl.A)({},e,{subject:o,frame:i})}(o);return hq(r,s)},mq=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,a=e.viewport,i=e.impact,o=e.scrollJumpRequest,s=a||t.viewport,l=r||t.dimensions,c=n||t.current.client.selection,u=J$(c,t.initial.client.selection),d={offset:u,selection:c,borderBoxCenter:Z$(t.initial.client.borderBoxCenter,u)},p={selection:Z$(d.selection,s.scroll.current),borderBoxCenter:Z$(d.borderBoxCenter,s.scroll.current),offset:Z$(d.offset,s.scroll.diff.value)},h={client:d,page:p};if("COLLECTING"===t.phase)return(0,wl.A)({phase:"COLLECTING"},t,{dimensions:l,viewport:s,current:h});var f=l.draggables[t.critical.draggable.id],m=i||pq({pageOffset:p.offset,draggable:f,draggables:l.draggables,droppables:l.droppables,previousImpact:t.impact,viewport:s,afterCritical:t.afterCritical}),g=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,a=e.previousImpact,i=e.impact,o=fq({previousImpact:a,impact:i,droppables:r}),s=iq(i);if(!s)return o;var l=r[s];if(SH(t,l))return o;if(l.subject.withPlaceholder)return o;var c=rq(l,t,n);return hq(o,c)}({draggable:f,impact:m,previousImpact:t.impact,draggables:l.draggables,droppables:l.droppables});return(0,wl.A)({},t,{current:h,dimensions:{draggables:l.draggables,droppables:g},impact:m,viewport:s,scrollJumpRequest:o||null,forceShouldAnimate:!o&&null})};var gq=function(e){var t=e.impact,n=e.viewport,r=e.draggables,a=e.destination,i=e.forceShouldAnimate,o=t.displaced,s=function(e,t){return e.map((function(e){return t[e]}))}(o.all,r),l=IH({afterDragging:s,destination:a,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:i,last:o});return(0,wl.A)({},t,{displaced:l})},vq=function(e){var t=e.impact,n=e.draggable,r=e.droppable,a=e.draggables,i=e.viewport,o=e.afterCritical,s=qH({impact:t,draggable:n,draggables:a,droppable:r,afterCritical:o});return YH({pageBorderBoxCenter:s,draggable:n,viewport:i})},yq=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&z$(!1);var a=t.impact,i=r||t.viewport,o=n||t.dimensions,s=o.draggables,l=o.droppables,c=s[t.critical.draggable.id],u=iq(a);u||z$(!1);var d=l[u],p=gq({impact:a,viewport:i,destination:d,draggables:s}),h=vq({impact:p,draggable:c,droppable:d,draggables:s,viewport:i,afterCritical:t.afterCritical});return mq({impact:p,clientSelection:h,state:t,dimensions:o,viewport:i})},bq=function(e){var t=e.draggable,n=e.home,r=e.draggables,a=e.viewport,i=tq(n.axis,t.displaceBy),o=yH(n.descriptor.id,r),s=o.indexOf(t);-1===s&&z$(!1);var l,c=o.slice(s+1),u=c.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),d={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:u};return{impact:{displaced:IH({afterDragging:c,destination:n,displacedBy:i,last:null,viewport:a.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(l=t.descriptor,{index:l.index,droppableId:l.droppableId})}},afterCritical:d}},xq=function(e){0},wq=function(e){0},Sq=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,a=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,i=function(e){var t=e.frame;return t||z$(!1),t}(n[t]),o=i.scroll.diff.value,s=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,a=j$(t.client,n),i=E$(a,r);return(0,wl.A)({},t,{placeholder:(0,wl.A)({},t.placeholder,{client:a}),client:a,page:i})}({draggable:e,offset:Z$(a,o),initialWindowScroll:r.scroll.initial});return s}))},Cq=function(e){return"SNAP"===e.movementMode},Aq=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:hq(e.droppables,t)}}(e.dimensions,t);return!Cq(e)||n?mq({state:e,dimensions:r}):yq({state:e,dimensions:r})};function kq(e){return e.isDragging&&"SNAP"===e.movementMode?(0,wl.A)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var Tq={phase:"IDLE",completed:null,shouldFlush:!1},jq=function(e,t){if(void 0===e&&(e=Tq),"FLUSH"===t.type)return(0,wl.A)({},Tq,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&z$(!1);var n=t.payload,r=n.critical,a=n.clientSelection,i=n.viewport,o=n.dimensions,s=n.movementMode,l=o.draggables[r.draggable.id],c=o.droppables[r.droppable.id],u={selection:a,borderBoxCenter:l.client.borderBox.center,offset:X$},d={client:u,page:{selection:Z$(u.selection,i.scroll.initial),borderBoxCenter:Z$(u.selection,i.scroll.initial),offset:Z$(u.selection,i.scroll.diff.value)}},p=gH(o.droppables).every((function(e){return!e.isFixedOnPage})),h=bq({draggable:l,home:c,draggables:o.draggables,viewport:i}),f=h.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:s,dimensions:o,initial:d,current:d,isWindowScrollAllowed:p,impact:f,afterCritical:h.afterCritical,onLiftImpact:f,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&z$(!1),(0,wl.A)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&z$(!1),function(e){var t=e.state,n=e.published;xq();var r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return cH(n,e.scroll)})),a=(0,wl.A)({},t.dimensions.droppables,{},fH(r)),i=mH(Sq({additions:n.additions,updatedDroppables:a,viewport:t.viewport})),o=(0,wl.A)({},t.dimensions.draggables,{},i);n.removals.forEach((function(e){delete o[e]}));var s={droppables:a,draggables:o},l=iq(t.impact),c=l?s.droppables[l]:null,u=s.draggables[t.critical.draggable.id],d=s.droppables[t.critical.droppable.id],p=bq({draggable:u,home:d,draggables:o,viewport:t.viewport}),h=p.impact,f=p.afterCritical,m=c&&c.isCombineEnabled?t.impact:h,g=pq({pageOffset:t.current.page.offset,draggable:s.draggables[t.critical.draggable.id],draggables:s.draggables,droppables:s.droppables,previousImpact:m,viewport:t.viewport,afterCritical:f});wq();var v=(0,wl.A)({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:g,onLiftImpact:h,dimensions:s,afterCritical:f,forceShouldAnimate:!1});return"COLLECTING"===t.phase?v:(0,wl.A)({phase:"DROP_PENDING"},v,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;sq(e)||z$(!1);var m=t.payload.client;return Q$(m,e.current.client.selection)?e:mq({state:e,clientSelection:m,impact:Cq(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return kq(e);if("COLLECTING"===e.phase)return kq(e);sq(e)||z$(!1);var g=t.payload,v=g.id,y=g.newScroll,b=e.dimensions.droppables[v];if(!b)return e;var x=cH(b,y);return Aq(e,x,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;sq(e)||z$(!1);var w=t.payload,S=w.id,C=w.isEnabled,A=e.dimensions.droppables[S];A||z$(!1),A.isEnabled===C&&z$(!1);var k=(0,wl.A)({},A,{isEnabled:C});return Aq(e,k,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;sq(e)||z$(!1);var T=t.payload,j=T.id,E=T.isCombineEnabled,P=e.dimensions.droppables[j];P||z$(!1),P.isCombineEnabled===E&&z$(!1);var N=(0,wl.A)({},P,{isCombineEnabled:E});return Aq(e,N,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;sq(e)||z$(!1),e.isWindowScrollAllowed||z$(!1);var D=t.payload.newScroll;if(Q$(e.viewport.scroll.current,D))return kq(e);var M=GH(e.viewport,D);return Cq(e)?yq({state:e,viewport:M}):mq({state:e,viewport:M})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!sq(e))return e;var _=t.payload.maxScroll;if(Q$(_,e.viewport.scroll.max))return e;var I=(0,wl.A)({},e.viewport,{scroll:(0,wl.A)({},e.viewport.scroll,{max:_})});return(0,wl.A)({phase:"DRAGGING"},e,{viewport:I})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&z$(!1);var R=oq({state:e,type:t.type});return R?mq({state:e,impact:R.impact,clientSelection:R.clientSelection,scrollJumpRequest:R.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var O=t.payload.reason;return"COLLECTING"!==e.phase&&z$(!1),(0,wl.A)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:O})}if("DROP_ANIMATE"===t.type){var L=t.payload,F=L.completed,B=L.dropDuration,z=L.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&z$(!1),{phase:"DROP_ANIMATING",completed:F,dropDuration:B,newHomeClientOffset:z,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},Eq=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},Pq=function(){return{type:"COLLECTION_STARTING",payload:null}},Nq=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},Dq=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},Mq=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},_q=function(e){return{type:"MOVE",payload:e}},Iq=function(){return{type:"MOVE_UP",payload:null}},Rq=function(){return{type:"MOVE_DOWN",payload:null}},Oq=function(){return{type:"MOVE_RIGHT",payload:null}},Lq=function(){return{type:"MOVE_LEFT",payload:null}},Fq=function(e){return{type:"DROP_COMPLETE",payload:e}},Bq=function(e){return{type:"DROP",payload:e}},zq=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var Vq="cubic-bezier(.2,1,.1,1)",Wq={drop:0,combining:.7},Uq={drop:.75},$q=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",Hq={fluid:"opacity "+$q,snap:"transform "+$q+", opacity "+$q,drop:function(e){var t=e+"s "+Vq;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+$q,placeholder:"height "+$q+", width "+$q+", margin "+$q},qq=function(e){return Q$(e,X$)?null:"translate("+e.x+"px, "+e.y+"px)"},Gq=qq,Kq=function(e,t){var n=qq(e);return n?t?n+" scale("+Uq.drop+")":n:null},Yq=.33,Xq=.55,Zq=Xq-Yq,Jq=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var a=t(),i=r.payload.reason;if("COLLECTING"!==a.phase){if("IDLE"!==a.phase){"DROP_PENDING"===a.phase&&a.isWaiting&&z$(!1),"DRAGGING"!==a.phase&&"DROP_PENDING"!==a.phase&&z$(!1);var o=a.critical,s=a.dimensions,l=s.draggables[a.critical.draggable.id],c=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,a=e.home,i=e.viewport,o=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:(0,wl.A)({},r,{displaced:AH}),didDropInsideDroppable:!0}:{impact:gq({draggables:t,impact:o,destination:a,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:i,lastImpact:a.impact,afterCritical:a.afterCritical,onLiftImpact:a.onLiftImpact,home:a.dimensions.droppables[a.critical.droppable.id],viewport:a.viewport,draggables:a.dimensions.draggables}),u=c.impact,d=c.didDropInsideDroppable,p=d?bH(u):null,h=d?xH(u):null,f={index:o.draggable.index,droppableId:o.droppable.id},m={draggableId:l.descriptor.id,type:l.descriptor.type,source:f,reason:i,mode:a.movementMode,destination:p,combine:h},g=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,a=e.viewport,i=e.afterCritical,o=r.draggables,s=r.droppables,l=iq(t),c=l?s[l]:null,u=s[n.descriptor.droppableId],d=vq({impact:t,draggable:n,draggables:o,afterCritical:i,droppable:c||u,viewport:a});return J$(d,n.client.borderBox.center)}({impact:u,draggable:l,dimensions:s,viewport:a.viewport,afterCritical:a.afterCritical}),v={critical:a.critical,afterCritical:a.afterCritical,result:m,impact:u};if(!Q$(a.current.client.offset,g)||Boolean(m.combine)){var y=function(e){var t=e.current,n=e.destination,r=e.reason,a=nH(t,n);if(a<=0)return Yq;if(a>=1500)return Xq;var i=Yq+Zq*(a/1500);return Number(("CANCEL"===r?.6*i:i).toFixed(2))}({current:a.current.client.offset,destination:g,reason:i});n(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:g,dropDuration:y,completed:v}))}else n(Fq({completed:v}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:i}))}else e(r)}}},Qq=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function eG(e){var t=e.onWindowScroll;var n=I$((function(){t(Qq())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),a=O$;function i(){return a!==O$}return{start:function(){i()&&z$(!1),a=L$(window,[r])},stop:function(){i()||z$(!1),n.cancel(),a(),a=O$},isActive:i}}var tG=function(e){var t=eG({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},nG=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=dH(e,(function(e){return e.timerId===t}));-1===n&&z$(!1),e.splice(n,1)[0].callback()}(n)})),r={timerId:n,callback:t};e.push(r)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},rG=function(e,t){xq(),t(),wq()},aG=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},iG=function(e,t,n,r){if(e){var a=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),a=function(a){t||n||(t=!0,e(a),clearTimeout(r))};return a.wasCalled=function(){return t},a}(n);e(t,{announce:a}),a.wasCalled()||n(r(t))}else n(r(t))},oG=function(e,t){var n=function(e,t){var n=nG(),r=null,a=function(n){r||z$(!1),r=null,rG(0,(function(){return iG(e().onDragEnd,n,t,Y$)}))};return{beforeCapture:function(t,n){r&&z$(!1),rG(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&z$(!1),rG(0,(function(){var r=e().onBeforeDragStart;r&&r(aG(t,n))}))},start:function(a,i){r&&z$(!1);var o=aG(a,i);r={mode:i,lastCritical:a,lastLocation:o.source,lastCombine:null},n.add((function(){rG(0,(function(){return iG(e().onDragStart,o,t,G$)}))}))},update:function(a,i){var o=bH(i),s=xH(i);r||z$(!1);var l=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(a,r.lastCritical);l&&(r.lastCritical=a);var c,u,d=(u=o,!(null==(c=r.lastLocation)&&null==u||null!=c&&null!=u&&c.droppableId===u.droppableId&&c.index===u.index));d&&(r.lastLocation=o);var p=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(r.lastCombine,s);if(p&&(r.lastCombine=s),l||d||p){var h=(0,wl.A)({},aG(a,r.mode),{combine:s,destination:o});n.add((function(){rG(0,(function(){return iG(e().onDragUpdate,h,t,K$)}))}))}},flush:function(){r||z$(!1),n.flush()},drop:a,abort:function(){if(r){var e=(0,wl.A)({},aG(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});a(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var a=r.payload.critical;return n.beforeStart(a,r.payload.movementMode),t(r),void n.start(a,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var i=r.payload.completed.result;return n.flush(),t(r),void n.drop(i)}if(t(r),"FLUSH"!==r.type){var o=e.getState();"DRAGGING"===o.phase&&n.update(o.critical,o.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},sG=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&z$(!1),e.dispatch(Fq({completed:r.completed}))}else t(n)}}},lG=function(e){var t=null,n=null;return function(r){return function(a){if("FLUSH"!==a.type&&"DROP_COMPLETE"!==a.type&&"DROP_ANIMATION_FINISHED"!==a.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(a),"DROP_ANIMATE"===a.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=L$(window,[i])}))}}}},cG=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(Bq({reason:r.reason})))}}}},uG=up,dG=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,a=e.styleMarshal,i=e.getResponders,o=e.announce,s=e.autoScroller;return op(jq,uG(dp((t=a,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(a){if("LIFT"===a.type){var i=a.payload,o=i.id,s=i.clientSelection,l=i.movementMode,c=n();"DROP_ANIMATING"===c.phase&&r(Fq({completed:c.completed})),"IDLE"!==n().phase&&z$(!1),r({type:"FLUSH",payload:null}),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:o,movementMode:l}});var u={draggableId:o,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},d=e.startPublishing(u),p=d.critical,h=d.dimensions,f=d.viewport;r({type:"INITIAL_PUBLISH",payload:{critical:p,dimensions:h,clientSelection:s,movementMode:l,viewport:f}})}else t(a)}}}}(n),Jq,sG,lG,cG,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var a=t.getState();return"DRAGGING"!==a.phase&&z$(!1),void e.start(a)}n(r),e.scroll(t.getState())}}}}(s),tG,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var a=r.payload.completed.result;a.combine&&e.tryShiftRecord(a.draggableId,a.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),oG(i,o))))};var pG=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,a=e.width,i=J$({x:n,y:t},{x:a,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},hG=function(){var e=document.documentElement;return e||z$(!1),e},fG=function(){var e=hG();return pG({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},mG=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry;xq();var a=function(){var e=Qq(),t=fG(),n=e.y,r=e.x,a=hG(),i=a.clientWidth,o=a.clientHeight;return{frame:w$({top:n,left:r,right:r+i,bottom:n+o}),scroll:{initial:e,current:e,max:t,diff:{value:X$,displacement:X$}}}}(),i=a.scroll.current,o=t.droppable,s=r.droppable.getAllByType(o.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(i,n)})),l=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(i)})),c={draggables:mH(l),droppables:fH(s)};return wq(),{dimensions:c,critical:t,viewport:a}};function gG(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var vG=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},a=null,i=function(){a||(n.collectionStarting(),a=requestAnimationFrame((function(){a=null,xq();var e=r,i=e.additions,o=e.removals,s=e.modified,l=Object.keys(i).map((function(e){return t.draggable.getById(e).getDimension(X$)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),c=Object.keys(s).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),u={additions:l,removals:Object.keys(o),modified:c};r={additions:{},removals:{},modified:{}},wq(),n.publish(u)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],i()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],i()},stop:function(){a&&(cancelAnimationFrame(a),a=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),a=function(t){n||z$(!1);var a=n.critical.draggable;"ADDITION"===t.type&&gG(e,a,t.value)&&r.add(t.value),"REMOVAL"===t.type&&gG(e,a,t.value)&&r.remove(t.value)},i={updateDroppableIsEnabled:function(r,a){e.droppable.exists(r)||z$(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:a})},updateDroppableIsCombineEnabled:function(r,a){n&&(e.droppable.exists(r)||z$(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:a}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,a){n&&(e.droppable.exists(r)||z$(!1),t.updateDroppableScroll({id:r,newScroll:a}))},startPublishing:function(t){n&&z$(!1);var r=e.draggable.getById(t.draggableId),i=e.droppable.getById(r.descriptor.droppableId),o={draggable:r.descriptor,droppable:i.descriptor},s=e.subscribe(a);return n={critical:o,unsubscribe:s},mG({critical:o,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}};return i},yG=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},bG=function(e){window.scrollBy(e.x,e.y)},xG=_$((function(e){return gH(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),wG=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var a=r[n];return a.frame?a:null}var i=function(e,t){var n=pH(xG(t),(function(t){return t.frame||z$(!1),lq(t.frame.pageMarginBox)(e)}));return n}(t,r);return i},SG=.25,CG=.05,AG=28,kG=function(e){return Math.pow(e,2)},TG={stopDampeningAt:1200,accelerateAt:360},jG=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,a=n-t;return 0===a?0:(r-t)/a},EG=TG.accelerateAt,PG=TG.stopDampeningAt,NG=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,a=e.shouldUseTimeDampening,i=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return AG;if(e===t.startScrollingFrom)return 1;var n=jG({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=AG*kG(1-n);return Math.ceil(r)}(t,n);return 0===i?0:a?Math.max(function(e,t){var n=t,r=PG,a=Date.now()-n;if(a>=PG)return e;if(a<EG)return 1;var i=jG({startOfRange:EG,endOfRange:r,current:a}),o=e*kG(i);return Math.ceil(o)}(i,r),1):i},DG=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,a=e.axis,i=e.shouldUseTimeDampening,o=function(e,t){return{startScrollingFrom:e[t.size]*SG,maxScrollValueAt:e[t.size]*CG}}(t,a);return n[a.end]<n[a.start]?NG({distanceToEdge:n[a.end],thresholds:o,dragStartTime:r,shouldUseTimeDampening:i}):-1*NG({distanceToEdge:n[a.start],thresholds:o,dragStartTime:r,shouldUseTimeDampening:i})},MG=aH((function(e){return 0===e?0:e})),_G=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,a=e.center,i=e.shouldUseTimeDampening,o={top:a.y-n.top,right:n.right-a.x,bottom:n.bottom-a.y,left:a.x-n.left},s=DG({container:n,distanceToEdges:o,dragStartTime:t,axis:PH,shouldUseTimeDampening:i}),l=DG({container:n,distanceToEdges:o,dragStartTime:t,axis:NH,shouldUseTimeDampening:i}),c=MG({x:l,y:s});if(Q$(c,X$))return null;var u=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,a=n.height>t.height,i=n.width>t.width;return i||a?i&&a?null:{x:i?0:r.x,y:a?0:r.y}:r}({container:n,subject:r,proposedScroll:c});return u?Q$(u,X$)?null:u:null},IG=aH((function(e){return 0===e?0:e>0?1:-1})),RG=function(){var e=function(e,t){return e<0?e:e>t?e-t:0};return function(t){var n=t.current,r=t.max,a=t.change,i=Z$(n,a),o={x:e(i.x,r.x),y:e(i.y,r.y)};return Q$(o,X$)?null:o}}(),OG=function(e){var t=e.max,n=e.current,r=e.change,a={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=IG(r),o=RG({max:a,current:n,change:i});return!o||(0!==i.x&&0===o.x||0!==i.y&&0===o.y)},LG=function(e,t){return OG({current:e.scroll.current,max:e.scroll.max,change:t})},FG=function(e,t){var n=e.frame;return!!n&&OG({current:n.scroll.current,max:n.scroll.max,change:t})},BG=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,a=e.scrollWindow,i=e.scrollDroppable,o=t.current.page.borderBoxCenter,s=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var l=function(e){var t=e.viewport,n=e.subject,r=e.center,a=e.dragStartTime,i=e.shouldUseTimeDampening,o=_G({dragStartTime:a,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i});return o&&LG(t,o)?o:null}({dragStartTime:n,viewport:t.viewport,subject:s,center:o,shouldUseTimeDampening:r});if(l)return void a(l)}var c=wG({center:o,destination:iq(t.impact),droppables:t.dimensions.droppables});if(c){var u=function(e){var t=e.droppable,n=e.subject,r=e.center,a=e.dragStartTime,i=e.shouldUseTimeDampening,o=t.frame;if(!o)return null;var s=_G({dragStartTime:a,container:o.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return s&&FG(t,s)?s:null}({dragStartTime:n,droppable:c,subject:s,center:o,shouldUseTimeDampening:r});u&&i(c.descriptor.id,u)}},zG=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,a=function(e,t){if(!FG(e,t))return t;var r=function(e,t){var n=e.frame;return n&&FG(e,t)?RG({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var a=J$(t,r);return n(e.descriptor.id,a),J$(t,a)},i=function(e,t,n){if(!e)return n;if(!LG(t,n))return n;var a=function(e,t){if(!LG(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return RG({current:r,max:n,change:t})}(t,n);if(!a)return r(n),null;var i=J$(n,a);return r(i),J$(n,i)};return function(e){var n=e.scrollJumpRequest;if(n){var r=iq(e.impact);r||z$(!1);var o=a(e.dimensions.droppables[r],n);if(o){var s=e.viewport,l=i(e.isWindowScrollAllowed,s,o);l&&function(e,n){var r=Z$(e.current.client.selection,n);t({client:r})}(e,l)}}}},VG=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,a=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=I$(t),a=I$(n),i=null,o=function(e){i||z$(!1);var t=i,n=t.shouldUseTimeDampening,o=t.dragStartTime;BG({state:e,scrollWindow:r,scrollDroppable:a,dragStartTime:o,shouldUseTimeDampening:n})};return{start:function(e){xq(),i&&z$(!1);var t=Date.now(),n=!1,r=function(){n=!0};BG({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),i={dragStartTime:t,shouldUseTimeDampening:n},wq(),n&&o(e)},stop:function(){i&&(r.cancel(),a.cancel(),i=null)},scroll:o}}({scrollWindow:n,scrollDroppable:t}),i=zG({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):a.scroll(e))},start:a.start,stop:a.stop}},WG="data-rbd",UG=function(){var e=WG+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),$G=function(){var e=WG+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),HG=function(){var e=WG+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),qG={contextId:WG+"-scroll-container-context-id"},GG=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},KG="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?e.useLayoutEffect:e.useEffect,YG=function(){var e=document.querySelector("head");return e||z$(!1),e},XG=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function ZG(t,n){var r=b$((function(){return function(e){var t=function(e){return function(t){return"["+t+'="'+e+'"]'}}(e),n=function(){var e="\n      cursor: -webkit-grab;\n      cursor: grab;\n    ";return{selector:t(UG.contextId),styles:{always:"\n          -webkit-touch-callout: none;\n          -webkit-tap-highlight-color: rgba(0,0,0,0);\n          touch-action: manipulation;\n        ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}}(),r=function(){var e="\n      transition: "+Hq.outOfTheWay+";\n    ";return{selector:t($G.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}}(),a=[r,n,{selector:t(HG.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n        cursor: grabbing;\n        cursor: -webkit-grabbing;\n        user-select: none;\n        -webkit-user-select: none;\n        -moz-user-select: none;\n        -ms-user-select: none;\n        overflow-anchor: none;\n      "}}];return{always:GG(a,"always"),resting:GG(a,"resting"),dragging:GG(a,"dragging"),dropAnimating:GG(a,"dropAnimating"),userCancel:GG(a,"userCancel")}}(t)}),[t]),a=(0,e.useRef)(null),i=(0,e.useRef)(null),o=x$(_$((function(e){var t=i.current;t||z$(!1),t.textContent=e})),[]),s=x$((function(e){var t=a.current;t||z$(!1),t.textContent=e}),[]);KG((function(){(a.current||i.current)&&z$(!1);var e=XG(n),l=XG(n);return a.current=e,i.current=l,e.setAttribute(WG+"-always",t),l.setAttribute(WG+"-dynamic",t),YG().appendChild(e),YG().appendChild(l),s(r.always),o(r.resting),function(){var e=function(e){var t=e.current;t||z$(!1),YG().removeChild(t),e.current=null};e(a),e(i)}}),[n,s,o,r.always,r.resting,t]);var l=x$((function(){return o(r.dragging)}),[o,r.dragging]),c=x$((function(e){o("DROP"!==e?r.userCancel:r.dropAnimating)}),[o,r.dropAnimating,r.userCancel]),u=x$((function(){i.current&&o(r.resting)}),[o,r.resting]);return b$((function(){return{dragging:l,dropping:c,resting:u}}),[l,c,u])}var JG=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function QG(e){return e instanceof JG(e).HTMLElement}function eK(e,t){var n="["+UG.contextId+'="'+e+'"]',r=hH(document.querySelectorAll(n));if(!r.length)return null;var a=pH(r,(function(e){return e.getAttribute(UG.draggableId)===t}));return a&&QG(a)?a:null}function tK(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function a(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var a=t.descriptor.id,i=r(a);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[a],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||z$(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return uH(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=a(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=a(e);return t||z$(!1),t},findById:a,exists:function(e){return Boolean(a(e))},getAllByType:function(t){return uH(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var nK=e.createContext(null),rK=function(){var e=document.body;return e||z$(!1),e},aK={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var iK=0,oK={separator:"::"};function sK(e,t){return void 0===t&&(t=oK),b$((function(){return""+e+t.separator+iK++}),[t.separator,e])}var lK=e.createContext(null);function cK(e){0}function uK(e,t){cK()}function dK(){uK()}function pK(t){var n=(0,e.useRef)(t);return(0,e.useEffect)((function(){n.current=t})),n}var hK,fK=((hK={})[13]=!0,hK[9]=!0,hK),mK=function(e){fK[e.keyCode]&&e.preventDefault()},gK=function(){var e="visibilitychange";return"undefined"===typeof document?e:pH([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var vK,yK={type:"IDLE"};function bK(e){var t=e.cancel,n=e.completed,r=e.getPhase,a=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,i=e.clientY;if(0===t){var o={x:n,y:i},s=r();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(o);if("PENDING"!==s.type&&z$(!1),function(e,t){return Math.abs(t.x-e.x)>=5||Math.abs(t.y-e.y)>=5}(s.point,o)){e.preventDefault();var l=s.actions.fluidLift(o);a({type:"DRAGGING",actions:l})}}}},{eventName:"mouseup",fn:function(e){var a=r();"DRAGGING"===a.type?(e.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void mK(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&z$(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:gK,fn:t}]}function xK(){}var wK=((vK={})[34]=!0,vK[33]=!0,vK[36]=!0,vK[35]=!0,vK);function SK(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(wK[r.keyCode]?r.preventDefault():mK(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:gK,fn:n}]}var CK={type:"IDLE"};var AK={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function kK(e,t){if(null==t)return!1;if(Boolean(AK[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&kK(e,t.parentElement)}function TK(e,t){var n=t.target;return!!QG(n)&&kK(e,n)}var jK=function(e){return w$(e.getBoundingClientRect()).center};var EK=function(){var e="matches";return"undefined"===typeof document?e:pH([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function PK(e,t){return null==e?null:e[EK](t)?e:PK(e.parentElement,t)}function NK(e,t){return e.closest?e.closest(t):PK(e,t)}function DK(e,t){var n=t.target;if(!function(e){return e instanceof JG(e).Element}(n))return null;var r=function(e){return"["+UG.contextId+'="'+e+'"]'}(e),a=NK(n,r);return a&&QG(a)?a:null}function MK(e){e.preventDefault()}function _K(e){var t=e.expected,n=e.phase,r=e.isLockActive;e.shouldWarn;return!!r()&&t===n}function IK(e){var t=e.lockAPI,n=e.store,r=e.registry,a=e.draggableId;if(t.isClaimed())return!1;var i=r.draggable.findById(a);return!!i&&(!!i.options.isEnabled&&!!yG(n.getState(),a))}function RK(e){var t=e.lockAPI,n=e.contextId,r=e.store,a=e.registry,i=e.draggableId,o=e.forceSensorStop,s=e.sourceEvent;if(!IK({lockAPI:t,store:r,registry:a,draggableId:i}))return null;var l=a.draggable.getById(i),c=function(e,t){var n="["+$G.contextId+'="'+e+'"]',r=pH(hH(document.querySelectorAll(n)),(function(e){return e.getAttribute($G.id)===t}));return r&&QG(r)?r:null}(n,l.descriptor.id);if(!c)return null;if(s&&!l.options.canDragInteractiveElements&&TK(c,s))return null;var u=t.claim(o||O$),d="PRE_DRAG";function p(){return l.options.shouldRespectForcePress}function h(){return t.isActive(u)}var f=function(e,t){_K({expected:e,phase:d,isLockActive:h,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function m(e){function n(){t.release(),d="COMPLETED"}function a(t,a){if(void 0===a&&(a={shouldBlockNextClick:!1}),e.cleanup(),a.shouldBlockNextClick){var i=L$(window,[{eventName:"click",fn:MK,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch(Bq({reason:t}))}return"PRE_DRAG"!==d&&(n(),"PRE_DRAG"!==d&&z$(!1)),r.dispatch(function(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),d="DRAGGING",(0,wl.A)({isActive:function(){return _K({expected:"DRAGGING",phase:d,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(e){return a("DROP",e)},cancel:function(e){return a("CANCEL",e)}},e.actions)}return{isActive:function(){return _K({expected:"PRE_DRAG",phase:d,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,fluidLift:function(e){var t=I$((function(e){f((function(){return _q({client:e})}))})),n=m({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}});return(0,wl.A)({},n,{move:t})},snapLift:function(){var e={moveUp:function(){return f(Iq)},moveRight:function(){return f(Oq)},moveDown:function(){return f(Rq)},moveLeft:function(){return f(Lq)}};return m({liftActionArgs:{id:i,clientSelection:jK(c),movementMode:"SNAP"},cleanup:O$,actions:e})},abort:function(){_K({expected:"PRE_DRAG",phase:d,isLockActive:h,shouldWarn:!0})&&t.release()}}}var OK=[function(t){var n=(0,e.useRef)(yK),r=(0,e.useRef)(O$),a=b$((function(){return{eventName:"mousedown",fn:function(e){if(!e.defaultPrevented&&0===e.button&&!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)){var n=t.findClosestDraggableId(e);if(n){var a=t.tryGetLock(n,s,{sourceEvent:e});if(a){e.preventDefault();var i={x:e.clientX,y:e.clientY};r.current(),u(a,i)}}}}}}),[t]),i=b$((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(e){if(!e.defaultPrevented){var n=t.findClosestDraggableId(e);if(n){var r=t.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||t.canGetLock(n)&&e.preventDefault())}}}}}),[t]),o=x$((function(){r.current=L$(window,[i,a],{passive:!1,capture:!0})}),[i,a]),s=x$((function(){"IDLE"!==n.current.type&&(n.current=yK,r.current(),o())}),[o]),l=x$((function(){var e=n.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),c=x$((function(){var e=bK({cancel:l,completed:s,getPhase:function(){return n.current},setPhase:function(e){n.current=e}});r.current=L$(window,e,{capture:!0,passive:!1})}),[l,s]),u=x$((function(e,t){"IDLE"!==n.current.type&&z$(!1),n.current={type:"PENDING",point:t,actions:e},c()}),[c]);KG((function(){return o(),function(){r.current()}}),[o])},function(t){var n=(0,e.useRef)(xK),r=b$((function(){return{eventName:"keydown",fn:function(e){if(!e.defaultPrevented&&32===e.keyCode){var r=t.findClosestDraggableId(e);if(r){var i=t.tryGetLock(r,l,{sourceEvent:e});if(i){e.preventDefault();var o=!0,s=i.snapLift();n.current(),n.current=L$(window,SK(s,l),{capture:!0,passive:!1})}}}function l(){o||z$(!1),o=!1,n.current(),a()}}}}),[t]),a=x$((function(){n.current=L$(window,[r],{passive:!1,capture:!0})}),[r]);KG((function(){return a(),function(){n.current()}}),[a])},function(t){var n=(0,e.useRef)(CK),r=(0,e.useRef)(O$),a=x$((function(){return n.current}),[]),i=x$((function(e){n.current=e}),[]),o=b$((function(){return{eventName:"touchstart",fn:function(e){if(!e.defaultPrevented){var n=t.findClosestDraggableId(e);if(n){var a=t.tryGetLock(n,l,{sourceEvent:e});if(a){var i=e.touches[0],o={x:i.clientX,y:i.clientY};r.current(),p(a,o)}}}}}}),[t]),s=x$((function(){r.current=L$(window,[o],{capture:!0,passive:!1})}),[o]),l=x$((function(){var e=n.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(CK),r.current(),s())}),[s,i]),c=x$((function(){var e=n.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),u=x$((function(){var e={capture:!0,passive:!1},t={cancel:c,completed:l,getPhase:a},n=L$(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var a=e.touches[0],i={x:a.clientX,y:a.clientY};e.preventDefault(),n.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var a=r();"DRAGGING"===a.type?(e.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&z$(!1);var a=e.touches[0];if(a&&a.force>=.15){var i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:gK,fn:t}]}(t),e),i=L$(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:gK,fn:t}]}(t),e);r.current=function(){n(),i()}}),[c,a,l]),d=x$((function(){var e=a();"PENDING"!==e.type&&z$(!1);var t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[a,i]),p=x$((function(e,t){"IDLE"!==a().type&&z$(!1);var n=setTimeout(d,120);i({type:"PENDING",point:t,actions:e,longPressTimerId:n}),u()}),[u,a,i,d]);KG((function(){return s(),function(){r.current();var e=a();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(CK))}}),[a,s,i]),KG((function(){return L$(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function LK(t){var n=t.contextId,r=t.store,a=t.registry,i=t.customSensors,o=t.enableDefaultSensors,s=[].concat(o?OK:[],i||[]),l=(0,e.useState)((function(){return function(){var e=null;function t(){e||z$(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&z$(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],c=x$((function(e,t){e.isDragging&&!t.isDragging&&l.tryAbandon()}),[l]);KG((function(){var e=r.getState();return r.subscribe((function(){var t=r.getState();c(e,t),e=t}))}),[l,r,c]),KG((function(){return l.tryAbandon}),[l.tryAbandon]);var u=x$((function(e){return IK({lockAPI:l,registry:a,store:r,draggableId:e})}),[l,a,r]),d=x$((function(e,t,i){return RK({lockAPI:l,registry:a,contextId:n,store:r,draggableId:e,forceSensorStop:t,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[n,l,a,r]),p=x$((function(e){return function(e,t){var n=DK(e,t);return n?n.getAttribute(UG.draggableId):null}(n,e)}),[n]),h=x$((function(e){var t=a.draggable.findById(e);return t?t.options:null}),[a.draggable]),f=x$((function(){l.isClaimed()&&(l.tryAbandon(),"IDLE"!==r.getState().phase&&r.dispatch({type:"FLUSH",payload:null}))}),[l,r]),m=x$(l.isClaimed,[l]),g=b$((function(){return{canGetLock:u,tryGetLock:d,findClosestDraggableId:p,findOptionsForDraggable:h,tryReleaseLock:f,isLockClaimed:m}}),[u,d,p,h,f,m]);cK();for(var v=0;v<s.length;v++)s[v](g)}function FK(e){return e.current||z$(!1),e.current}function BK(t){var n=t.contextId,r=t.setCallbacks,a=t.sensors,i=t.nonce,o=t.dragHandleUsageInstructions,s=(0,e.useRef)(null);dK();var l=pK(t),c=x$((function(){return function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}}(l.current)}),[l]),u=function(t){var n=b$((function(){return function(e){return"rbd-announcement-"+e}(t)}),[t]),r=(0,e.useRef)(null);(0,e.useEffect)((function(){var e=document.createElement("div");return r.current=e,e.id=n,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,wl.A)(e.style,aK),rK().appendChild(e),function(){setTimeout((function(){var t=rK();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)}))}}),[n]);var a=x$((function(e){var t=r.current;t&&(t.textContent=e)}),[]);return a}(n),d=function(t){var n=t.contextId,r=t.text,a=sK("hidden-text",{separator:"-"}),i=b$((function(){return"rbd-hidden-text-"+(e={contextId:n,uniqueId:a}).contextId+"-"+e.uniqueId;var e}),[a,n]);return(0,e.useEffect)((function(){var e=document.createElement("div");return e.id=i,e.textContent=r,e.style.display="none",rK().appendChild(e),function(){var t=rK();t.contains(e)&&t.removeChild(e)}}),[i,r]),i}({contextId:n,text:o}),p=ZG(n,i),h=x$((function(e){FK(s).dispatch(e)}),[]),f=b$((function(){return cp({publishWhileDragging:Eq,updateDroppableScroll:Nq,updateDroppableIsEnabled:Dq,updateDroppableIsCombineEnabled:Mq,collectionStarting:Pq},h)}),[h]),m=function(){var t=b$(tK,[]);return(0,e.useEffect)((function(){return function(){requestAnimationFrame(t.clean)}}),[t]),t}(),g=b$((function(){return vG(m,f)}),[m,f]),v=b$((function(){return VG((0,wl.A)({scrollWindow:bG,scrollDroppable:g.scrollDroppable},cp({move:_q},h)))}),[g.scrollDroppable,h]),y=function(t){var n=(0,e.useRef)({}),r=(0,e.useRef)(null),a=(0,e.useRef)(null),i=(0,e.useRef)(!1),o=x$((function(e,t){var r={id:e,focus:t};return n.current[e]=r,function(){var t=n.current;t[e]!==r&&delete t[e]}}),[]),s=x$((function(e){var n=eK(t,e);n&&n!==document.activeElement&&n.focus()}),[t]),l=x$((function(e,t){r.current===e&&(r.current=t)}),[]),c=x$((function(){a.current||i.current&&(a.current=requestAnimationFrame((function(){a.current=null;var e=r.current;e&&s(e)})))}),[s]),u=x$((function(e){r.current=null;var t=document.activeElement;t&&t.getAttribute(UG.draggableId)===e&&(r.current=e)}),[]);return KG((function(){return i.current=!0,function(){i.current=!1;var e=a.current;e&&cancelAnimationFrame(e)}}),[]),b$((function(){return{register:o,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:l}}),[o,u,c,l])}(n),b=b$((function(){return dG({announce:u,autoScroller:v,dimensionMarshal:g,focusMarshal:y,getResponders:c,styleMarshal:p})}),[u,v,g,y,c,p]);s.current=b;var x=x$((function(){var e=FK(s);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})}),[]),w=x$((function(){var e=FK(s).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);r(b$((function(){return{isDragging:w,tryAbort:x}}),[w,x]));var S=x$((function(e){return yG(FK(s).getState(),e)}),[]),C=x$((function(){return sq(FK(s).getState())}),[]),A=b$((function(){return{marshal:g,focus:y,contextId:n,canLift:S,isMovementAllowed:C,dragHandleUsageInstructionsId:d,registry:m}}),[n,g,d,y,S,C,m]);return LK({contextId:n,store:b,registry:m,customSensors:a,enableDefaultSensors:!1!==t.enableDefaultSensors}),(0,e.useEffect)((function(){return x}),[x]),e.createElement(lK.Provider,{value:A},e.createElement(Xl,{context:nK,store:b},t.children))}var zK=0;function VK(t){var n=b$((function(){return""+zK++}),[]),r=t.dragHandleUsageInstructions||q$;return e.createElement(V$,null,(function(a){return e.createElement(BK,{nonce:t.nonce,contextId:n,setCallbacks:a,dragHandleUsageInstructions:r,enableDefaultSensors:t.enableDefaultSensors,sensors:t.sensors,onBeforeCapture:t.onBeforeCapture,onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragUpdate:t.onDragUpdate,onDragEnd:t.onDragEnd},t.children)}))}var WK=function(e){return function(t){return e===t}},UK=WK("scroll"),$K=WK("auto"),HK=(WK("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),qK=function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return HK(n,UK)||HK(n,$K)},GK=function e(t){return null==t||t===document.body||t===document.documentElement?null:qK(t)?t:e(t.parentElement)},KK=function(e){return{x:e.scrollLeft,y:e.scrollTop}},YK=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},XK=function(e){return{closestScrollable:GK(e),isFixedOnPage:YK(e)}},ZK=function(e){var t=e.ref,n=e.descriptor,r=e.env,a=e.windowScroll,i=e.direction,o=e.isDropDisabled,s=e.isCombineEnabled,l=e.shouldClipSubject,c=r.closestScrollable,u=function(e,t){var n=N$(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,a=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,o=a+t.scrollWidth,s=S$({top:r,right:o,bottom:i,left:a},n.border);return k$({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})}(t,c),d=E$(u,a),p=function(){if(!c)return null;var e=N$(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:E$(e,a),scroll:KK(c),scrollSize:t,shouldClipSubject:l}}(),h=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,a=e.isFixedOnPage,i=e.direction,o=e.client,s=e.page,l=e.closest,c=function(){if(!l)return null;var e=l.scrollSize,t=l.client,n=pG({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:n,diff:{value:X$,displacement:X$}}}}(),u="vertical"===i?PH:NH;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:a,axis:u,isEnabled:n,client:o,page:s,frame:c,subject:lH({page:s,withPlaceholder:null,axis:u,frame:c})}}({descriptor:n,isEnabled:!o,isCombineEnabled:s,isFixedOnPage:r.isFixedOnPage,direction:i,client:u,page:d,closest:p});return h},JK={passive:!1},QK={passive:!0},eY=function(e){return e.shouldPublishImmediately?JK:QK};function tY(t){var n=(0,e.useContext)(t);return n||z$(!1),n}var nY=function(e){return e&&e.env.closestScrollable||null};function rY(){}var aY={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},iY=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,a=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate;return t||"close"===r?aY:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:a.width,height:a.height,marginTop:a.margin.top,marginRight:a.margin.right,marginBottom:a.margin.bottom,marginLeft:a.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?Hq.placeholder:null}};var oY=e.memo((function(t){var n=(0,e.useRef)(null),r=x$((function(){n.current&&(clearTimeout(n.current),n.current=null)}),[]),a=t.animate,i=t.onTransitionEnd,o=t.onClose,s=t.contextId,l=(0,e.useState)("open"===t.animate),c=l[0],u=l[1];(0,e.useEffect)((function(){return c?"open"!==a?(r(),u(!1),rY):n.current?rY:(n.current=setTimeout((function(){n.current=null,u(!1)})),r):rY}),[a,c,r]);var d=x$((function(e){"height"===e.propertyName&&(i(),"close"===a&&o())}),[a,o,i]),p=iY({isAnimatingOpenOnMount:c,animate:t.animate,placeholder:t.placeholder});return e.createElement(t.placeholder.tagName,{style:p,"data-rbd-placeholder-context-id":s,onTransitionEnd:d,ref:t.innerRef})})),sY=e.createContext(null);var lY=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return Fc(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(e.PureComponent),cY=5e3,uY=4500,dY=function(e,t){return t?Hq.drop(t.duration):e?Hq.snap:Hq.fluid},pY=function(e,t){return e?t?Wq.drop:Wq.combining:null};function hY(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,a=e.dropping,i=Boolean(r),o=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),s=Boolean(a),l=s?Kq(n,i):Gq(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:dY(o,a),transform:l,opacity:pY(i,s),zIndex:s?uY:cY,pointerEvents:"none"}}(e):{transform:Gq((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t}function fY(t){var n=sK("draggable"),r=t.descriptor,a=t.registry,i=t.getDraggableRef,o=t.canDragInteractiveElements,s=t.shouldRespectForcePress,l=t.isEnabled,c=b$((function(){return{canDragInteractiveElements:o,shouldRespectForcePress:s,isEnabled:l}}),[o,l,s]),u=x$((function(e){var t=i();return t||z$(!1),function(e,t,n){void 0===n&&(n=X$);var r=window.getComputedStyle(t),a=t.getBoundingClientRect(),i=P$(a,r),o=E$(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:o}}(r,t,e)}),[r,i]),d=b$((function(){return{uniqueId:n,descriptor:r,options:c,getDimension:u}}),[r,u,c,n]),p=(0,e.useRef)(d),h=(0,e.useRef)(!0);KG((function(){return a.draggable.register(p.current),function(){return a.draggable.unregister(p.current)}}),[a.draggable]),KG((function(){if(h.current)h.current=!1;else{var e=p.current;p.current=d,a.draggable.update(d,e)}}),[d,a.draggable])}function mY(e,t,n){uK()}function gY(e){e.preventDefault()}var vY=function(e,t){return e===t},yY=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function bY(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var xY={mapped:{type:"SECONDARY",offset:X$,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:bY(null)}};var wY=jc((function(){var e=function(){var e=_$((function(e,t){return{x:e,y:t}})),t=_$((function(e,t,n,r,a){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(a),dropAnimation:a,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=_$((function(e,n,r,a,i,o,s){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:o,mode:n,offset:e,dimension:r,forceShouldAnimate:s,snapshot:t(n,a,i,o,null)}}}));return function(r,a){if(r.isDragging){if(r.critical.draggable.id!==a.draggableId)return null;var i=r.current.client.offset,o=r.dimensions.draggables[a.draggableId],s=iq(r.impact),l=(u=r.impact).at&&"COMBINE"===u.at.type?u.at.combine.draggableId:null,c=r.forceShouldAnimate;return n(e(i.x,i.y),r.movementMode,o,a.isClone,s,l,c)}var u;if("DROP_ANIMATING"===r.phase){var d=r.completed;if(d.result.draggableId!==a.draggableId)return null;var p=a.isClone,h=r.dimensions.draggables[a.draggableId],f=d.result,m=f.mode,g=yY(f),v=function(e){return e.combine?e.combine.draggableId:null}(f),y={duration:r.dropDuration,curve:Vq,moveTo:r.newHomeClientOffset,opacity:v?Wq.drop:null,scale:v?Uq.drop:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:h,dropping:y,draggingOver:g,combineWith:v,mode:m,forceShouldAnimate:null,snapshot:t(m,p,g,v,y)}}}return null}}(),t=function(){var e=_$((function(e,t){return{x:e,y:t}})),t=_$(bY),n=_$((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(X$,e,!0):null},a=function(t,a,i,o){var s=i.displaced.visible[t],l=Boolean(o.inVirtualList&&o.effected[t]),c=xH(i),u=c&&c.draggableId===t?a:null;if(!s){if(!l)return r(u);if(i.displaced.invisible[t])return null;var d=eH(o.displacedBy.point),p=e(d.x,d.y);return n(p,u,!0)}if(l)return r(u);var h=i.displacedBy.point,f=e(h.x,h.y);return n(f,u,s.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:a(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:a(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(n,r){return e(n,r)||t(n,r)||xY}}),{dropAnimationFinished:zq},null,{context:nK,pure:!0,areStatePropsEqual:vY})((function(t){var n=(0,e.useRef)(null),r=x$((function(e){n.current=e}),[]),a=x$((function(){return n.current}),[]),i=tY(lK),o=i.contextId,s=i.dragHandleUsageInstructionsId,l=i.registry,c=tY(sY),u=c.type,d=c.droppableId,p=b$((function(){return{id:t.draggableId,index:t.index,type:u,droppableId:d}}),[t.draggableId,t.index,u,d]),h=t.children,f=t.draggableId,m=t.isEnabled,g=t.shouldRespectForcePress,v=t.canDragInteractiveElements,y=t.isClone,b=t.mapped,x=t.dropAnimationFinished;mY(),cK(),y||fY(b$((function(){return{descriptor:p,registry:l,getDraggableRef:a,canDragInteractiveElements:v,shouldRespectForcePress:g,isEnabled:m}}),[p,l,a,v,g,m]));var w=b$((function(){return m?{tabIndex:0,role:"button","aria-describedby":s,"data-rbd-drag-handle-draggable-id":f,"data-rbd-drag-handle-context-id":o,draggable:!1,onDragStart:gY}:null}),[o,s,f,m]),S=x$((function(e){"DRAGGING"===b.type&&b.dropping&&"transform"===e.propertyName&&x()}),[x,b]),C=b$((function(){var e=hY(b),t="DRAGGING"===b.type&&b.dropping?S:null;return{innerRef:r,draggableProps:{"data-rbd-draggable-context-id":o,"data-rbd-draggable-id":f,style:e,onTransitionEnd:t},dragHandleProps:w}}),[o,w,f,b,S,r]),A=b$((function(){return{draggableId:p.id,type:p.type,source:{index:p.index,droppableId:p.droppableId}}}),[p.droppableId,p.id,p.index,p.type]);return h(C,b.snapshot,A)}));function SY(t){return tY(sY).isUsingCloneFor!==t.draggableId||t.isClone?e.createElement(wY,t):null}function CY(t){var n="boolean"!==typeof t.isDragDisabled||!t.isDragDisabled,r=Boolean(t.disableInteractiveElementBlocking),a=Boolean(t.shouldRespectForcePress);return e.createElement(SY,(0,wl.A)({},t,{isClone:!1,isEnabled:n,canDragInteractiveElements:r,shouldRespectForcePress:a}))}var AY=function(e,t){return e===t.droppable.type},kY=function(e,t){return t.draggables[e.draggable.id]},TY={updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}};var jY={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||z$(!1),document.body}},EY=jc((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=(0,wl.A)({},e,{shouldAnimatePlaceholder:!1}),n=_$((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=_$((function(r,a,i,o,s,l){var c=s.descriptor.id;if(s.descriptor.droppableId===r){var u=l?{render:l,dragging:n(s.descriptor)}:null,d={isDraggingOver:i,draggingOverWith:i?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:u}}if(!a)return t;if(!o)return e;var p={isDraggingOver:i,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}}));return function(n,a){var i=a.droppableId,o=a.type,s=!a.isDropDisabled,l=a.renderClone;if(n.isDragging){var c=n.critical;if(!AY(o,c))return t;var u=kY(c,n.dimensions),d=iq(n.impact)===i;return r(i,s,d,d,u,l)}if("DROP_ANIMATING"===n.phase){var p=n.completed;if(!AY(o,p.critical))return t;var h=kY(p.critical,n.dimensions);return r(i,s,yY(p.result)===i,iq(p.impact)===i,h,l)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var f=n.completed;if(!AY(o,f.critical))return t;var m=iq(f.impact)===i,g=Boolean(f.impact.at&&"COMBINE"===f.impact.at.type),v=f.critical.droppable.id===i;return m?g?e:t:v?e:t}return t}}),TY,null,{context:nK,pure:!0,areStatePropsEqual:vY})((function(t){var n=(0,e.useContext)(lK);n||z$(!1);var a=n.contextId,i=n.isMovementAllowed,o=(0,e.useRef)(null),s=(0,e.useRef)(null),l=t.children,c=t.droppableId,u=t.type,d=t.mode,p=t.direction,h=t.ignoreContainerClipping,f=t.isDropDisabled,m=t.isCombineEnabled,g=t.snapshot,v=t.useClone,y=t.updateViewportMaxScroll,b=t.getContainerForClone,x=x$((function(){return o.current}),[]),w=x$((function(e){o.current=e}),[]),S=(x$((function(){return s.current}),[]),x$((function(e){s.current=e}),[]));uK();var C=x$((function(){i()&&y({maxScroll:fG()})}),[i,y]);!function(t){var n=(0,e.useRef)(null),r=tY(lK),a=sK("droppable"),i=r.registry,o=r.marshal,s=pK(t),l=b$((function(){return{id:t.droppableId,type:t.type,mode:t.mode}}),[t.droppableId,t.mode,t.type]),c=(0,e.useRef)(l),u=b$((function(){return _$((function(e,t){n.current||z$(!1);var r={x:e,y:t};o.updateDroppableScroll(l.id,r)}))}),[l.id,o]),d=x$((function(){var e=n.current;return e&&e.env.closestScrollable?KK(e.env.closestScrollable):X$}),[]),p=x$((function(){var e=d();u(e.x,e.y)}),[d,u]),h=b$((function(){return I$(p)}),[p]),f=x$((function(){var e=n.current,t=nY(e);e&&t||z$(!1),e.scrollOptions.shouldPublishImmediately?p():h()}),[h,p]),m=x$((function(e,t){n.current&&z$(!1);var a=s.current,i=a.getDroppableRef();i||z$(!1);var o=XK(i),c={ref:i,descriptor:l,env:o,scrollOptions:t};n.current=c;var u=ZK({ref:i,descriptor:l,env:o,windowScroll:e,direction:a.direction,isDropDisabled:a.isDropDisabled,isCombineEnabled:a.isCombineEnabled,shouldClipSubject:!a.ignoreContainerClipping}),d=o.closestScrollable;return d&&(d.setAttribute(qG.contextId,r.contextId),d.addEventListener("scroll",f,eY(c.scrollOptions))),u}),[r.contextId,l,f,s]),g=x$((function(){var e=n.current,t=nY(e);return e&&t||z$(!1),KK(t)}),[]),v=x$((function(){var e=n.current;e||z$(!1);var t=nY(e);n.current=null,t&&(h.cancel(),t.removeAttribute(qG.contextId),t.removeEventListener("scroll",f,eY(e.scrollOptions)))}),[f,h]),y=x$((function(e){var t=n.current;t||z$(!1);var r=nY(t);r||z$(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),b=b$((function(){return{getDimensionAndWatchScroll:m,getScrollWhileDragging:g,dragStopped:v,scroll:y}}),[v,m,g,y]),x=b$((function(){return{uniqueId:a,descriptor:l,callbacks:b}}),[b,l,a]);KG((function(){return c.current=x.descriptor,i.droppable.register(x),function(){n.current&&v(),i.droppable.unregister(x)}}),[b,l,v,x,o,i.droppable]),KG((function(){n.current&&o.updateDroppableIsEnabled(c.current.id,!t.isDropDisabled)}),[t.isDropDisabled,o]),KG((function(){n.current&&o.updateDroppableIsCombineEnabled(c.current.id,t.isCombineEnabled)}),[t.isCombineEnabled,o])}({droppableId:c,type:u,mode:d,direction:p,isDropDisabled:f,isCombineEnabled:m,ignoreContainerClipping:h,getDroppableRef:x});var A=e.createElement(lY,{on:t.placeholder,shouldAnimate:t.shouldAnimatePlaceholder},(function(t){var n=t.onClose,r=t.data,i=t.animate;return e.createElement(oY,{placeholder:r,onClose:n,innerRef:S,animate:i,contextId:a,onTransitionEnd:C})})),k=b$((function(){return{innerRef:w,placeholder:A,droppableProps:{"data-rbd-droppable-id":c,"data-rbd-droppable-context-id":a}}}),[a,c,A,w]),T=v?v.dragging.draggableId:null,j=b$((function(){return{droppableId:c,type:u,isUsingCloneFor:T}}),[c,T,u]);return e.createElement(sY.Provider,{value:j},l(k,g),function(){if(!v)return null;var t=v.dragging,n=v.render,a=e.createElement(SY,{draggableId:t.draggableId,index:t.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(e,r){return n(e,r,t)}));return r.createPortal(a,b())}())}));EY.defaultProps=jY;const PY=cb((e=>({paper:{width:"98%",background:"#F7F7F7"},table:{width:"98%",height:"100%",maxHeight:"70vh",[e.breakpoints.down("md")]:{maxHeight:"60vh"}}})));function NY(e){let{columns:t,tableData:n,setTableData:r,rowComponent:a,loading:i}=e;const o=PY(),s=a;return(0,Tl.jsx)(l$,{className:o.table,component:Bm,children:i?(0,Tl.jsx)(v$,{numRows:10}):(0,Tl.jsx)(XU,{stickyHeader:!0,"aria-label":"sticky table",children:(0,Tl.jsxs)(VK,{onDragEnd:function(e){if(!e.destination)return;const t=Array.from(n),[a]=t.splice(e.source.index,1);t.splice(e.destination.index,0,a),r(t)},children:[(0,Tl.jsx)(m$,{children:(0,Tl.jsx)(FW,{children:t.map((e=>(0,Tl.jsx)(HW,{align:"left",style:{fontWeight:"bold"},children:e.label})))})}),(0,Tl.jsx)(EY,{droppableId:"items",children:e=>(0,Tl.jsxs)(r$,{style:{paddingLeft:"0px",listStyleType:"none"},...e.droppableProps,ref:e.innerRef,children:[n.map(((e,a)=>(0,Tl.jsx)(CY,{draggableId:a.toString(),index:a,children:(i,o)=>(0,Tl.jsx)(s,{...i.dragHandleProps,...i.draggableProps,isDragging:o.isDragging,innerRef:i.innerRef,columns:t,element:e,index:a,setTableData:r,tableData:n})},a))),e.placeholder]})})]})})})}const DY=function(){const t=cb((e=>({root:{width:"50%",[e.breakpoints.down("md")]:{width:"100%"}},autocomplete:{width:"35%",paddingBottom:"20px",[e.breakpoints.down("md")]:{width:"100%"}},hint:{position:"absolute",left:0,right:0,top:0,bottom:0,marginTop:"auto",marginBottom:"auto",marginLeft:"auto",marginRight:"auto",width:"300px",height:"300px",fontSize:"32px",textAlign:"center",color:"rgba(0,0,0,.6)"}}))),n=t(),r=Oc(qC),[a,i]=(0,e.useState)([]),[o,s]=(0,e.useState)(!0),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(""),[f,m]=(0,e.useState)(!1),[g,v]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{if(a.length>0&&!o){var e=[...a];e.forEach(((e,t)=>e.order=t+1)),NW(r.id,e)}}),[a]),(0,e.useEffect)((()=>{null!==r&&(s(!0),EW(r.id).then((e=>{e.sort(((e,t)=>{const n=kU(e.order,t.order);return 0!==n?n:e[1]-t[1]})),e.forEach((e=>e.featureAdsLength=e.featureAds.length)),e.forEach((e=>e.featureAds.sort(((e,t)=>{const n=kU(e.order,t.order);return 0!==n?n:e[1]-t[1]})))),i(e),s(!1)})))}),[r]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:u,setShowSignifier:d,message:p,error:f}),(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[r.shortName," Featured Groups"]}),(0,Tl.jsx)("div",{className:n.root,children:null===r?(0,Tl.jsx)("div",{className:n.hint,children:(0,Tl.jsx)("span",{children:"Select a client"})}):(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:12,children:[(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginBottom:"20px",marginRight:"20px"},type:"submit",variant:"contained",color:"primary",onClick:()=>function(){var e=[...a];e.sort(((e,t)=>{const n=kU(null===e||void 0===e?void 0:e.name.toUpperCase(),null===t||void 0===t?void 0:t.name.toUpperCase());return 0!==n?n:e[1]-t[1]})),i(e),e.forEach(((e,t)=>e.order=t+1)),vU(NW(r.id,e),"Order Updated",d,h,m,v)}(),children:"Order Alphabetically"}),(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginBottom:"20px"},type:"submit",variant:"contained",color:"primary",onClick:()=>c(!l),children:"Add Group"})]}),(0,Tl.jsx)(NY,{columns:[{label:"Name",propName:"name"},{label:"# Of Jobs",propName:"featureAdsLength"},{label:"Edit",propName:""},{label:"Delete",propName:""},{label:"",propName:""}],tableData:a,setTableData:i,rowComponent:WU,loading:o})]})})]}),(0,Tl.jsx)(jW,{open:l,onClose:()=>c(!1),children:(0,Tl.jsx)($U,{openModal:c,client:r,setShowSignifier:d,setResponseMessage:h,setShowError:m,setTableData:i})})]})},MY=(e,t)=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/featuredjobs/getJobsByGroup/"+e+(void 0!==t?"/?groupId="+t:"")).then((e=>e.data)),_Y=(e,t,n)=>tl().put(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/featuredjobs/updateOrder/"+e+(void 0!==t?"/?groupId="+t:""),n).then((e=>e.data)),IY=(e,t,n)=>tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/featuredjobs/addJobs/"+e+(void 0!==t?"/?groupId="+t:""),n).then((e=>e.data)),RY=e=>tl().delete(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/featuredjobs/deleteJob/"+e).then((e=>e)),OY=cb((e=>({rowCell:{cursor:"default !important",background:e.palette.primary.blue,textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},rowCellOdd:{cursor:"default !important",background:"white",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},itemIcon:{cursor:"grab"},tableCell:{[e.breakpoints.down("md")]:{width:"auto"},width:"800px",color:e.palette.primary.copy}})));function LY(t){const n=OY(),[r,a]=(0,e.useState)(!1),[i,o]=(0,e.useState)(!1),[s,l]=(0,e.useState)(""),[c,u]=(0,e.useState)(!1),[d,p]=(0,e.useState)(!1);return(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:i,setShowSignifier:o,message:s,error:c}),(0,Tl.jsx)(FW,{hover:!0,className:t.index%2?n.rowCell:n.rowCellOdd,component:ch,to:{pathname:"/featuredgroups/featuredgroupsdetailed",state:t.element},ref:t.innerRef,...t,children:t.columns.map(((e,r)=>(0,Tl.jsx)(HW,{align:"left",className:n.tableCell,children:"Delete"===e.label?(0,Tl.jsx)(FS,{title:"Delete Featured Job",children:(0,Tl.jsx)(hm,{onClick:e=>function(e){e.preventDefault(),a(!0)}(e),size:"large",children:(0,Tl.jsx)(qW,{})})}):""===e.label?(0,Tl.jsx)(Px,{className:n.itemIcon,children:(0,Tl.jsx)(_m,{})}):t.element.ad[e.propName]},r)))},t.index),(0,Tl.jsx)(jW,{open:r,onClose:()=>a(!1),children:(0,Tl.jsx)(gU,{question:"Delete this featured job?",func:()=>{vU(RY(t.element.id),"Job Deleted",o,l,u,p).then((()=>{MY(t.element.clientId,t.element.featureAdGroupId).then((e=>{e.sort(((e,t)=>{const n=kU(e.order,t.order);return 0!==n?n:e[1]-t[1]})),t.setTableData(e)}))}))},closeModal:()=>a(!1)})})]})}function FY(e){return Ff("MuiFormControlLabel",e)}const BY=Bf("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),zY=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],VY=nf("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${BY.label}`]:t.label},t.root,t[`labelPlacement${sm(n.labelPlacement)}`]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${BY.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},{[`& .${BY.label}`]:{[`&.${BY.disabled}`]:{color:(t.vars||t).palette.text.disabled}}})})),WY=nf("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{[`&.${BY.error}`]:{color:(t.vars||t).palette.error.main}}})),UY=e.forwardRef((function(t,n){var r,a;const i=rf({props:t,name:"MuiFormControlLabel"}),{className:o,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:d,labelPlacement:p="end",required:h,slotProps:f={}}=i,m=(0,Sl.A)(i,zY),g=mC(),v=null!=(r=null!=c?c:l.props.disabled)?r:null==g?void 0:g.disabled,y=null!=h?h:l.props.required,b={disabled:v,required:y};["checked","name","onChange","value","inputRef"].forEach((e=>{"undefined"===typeof l.props[e]&&"undefined"!==typeof i[e]&&(b[e]=i[e])}));const x=hC({props:i,muiFormControl:g,states:["error"]}),w=(0,wl.A)({},i,{disabled:v,labelPlacement:p,required:y,error:x.error}),S=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:a,required:i}=e;return mh({root:["root",n&&"disabled",`labelPlacement${sm(r)}`,a&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",a&&"error"]},FY,t)})(w),C=null!=(a=f.typography)?a:s.typography;let A=d;return null==A||A.type===mx||u||(A=(0,Tl.jsx)(mx,(0,wl.A)({component:"span"},C,{className:fh(S.label,null==C?void 0:C.className),children:A}))),(0,Tl.jsxs)(VY,(0,wl.A)({className:fh(S.root,o),ownerState:w,ref:n},m,{children:[e.cloneElement(l,b),y?(0,Tl.jsxs)(u_,{display:"block",children:[A,(0,Tl.jsxs)(WY,{ownerState:w,"aria-hidden":!0,className:S.asterisk,children:["\u2009","*"]})]}):A]}))})),$Y=UY;function HY(e){return Ff("PrivateSwitchBase",e)}Bf("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const qY=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],GY=nf(im)((e=>{let{ownerState:t}=e;return(0,wl.A)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),KY=nf("input",{shouldForwardProp:tf})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),YY=e.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:a,className:i,defaultChecked:o,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:h,name:f,onBlur:m,onChange:g,onFocus:v,readOnly:y,required:b=!1,tabIndex:x,type:w,value:S}=e,C=(0,Sl.A)(e,qY),[A,k]=TS({controlled:r,default:Boolean(o),name:"SwitchBase",state:"checked"}),T=mC();let j=s;T&&"undefined"===typeof j&&(j=T.disabled);const E="checkbox"===w||"radio"===w,P=(0,wl.A)({},e,{checked:A,disabled:j,disableFocusRipple:l,edge:c}),N=(e=>{const{classes:t,checked:n,disabled:r,edge:a}=e;return mh({root:["root",n&&"checked",r&&"disabled",a&&`edge${sm(a)}`],input:["input"]},HY,t)})(P);return(0,Tl.jsxs)(GY,(0,wl.A)({component:"span",className:fh(N.root,i),centerRipple:!0,focusRipple:!l,disabled:j,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),T&&T.onFocus&&T.onFocus(e)},onBlur:e=>{m&&m(e),T&&T.onBlur&&T.onBlur(e)},ownerState:P,ref:t},C,{children:[(0,Tl.jsx)(KY,(0,wl.A)({autoFocus:n,checked:r,defaultChecked:o,className:N.input,disabled:j,id:E?d:void 0,name:f,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;k(t),g&&g(e,t)},readOnly:y,ref:h,required:b,ownerState:P,tabIndex:x,type:w},"checkbox"===w&&void 0===S?{}:{value:S},p)),A?a:u]}))})),XY=YY,ZY=bm((0,Tl.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"),JY=bm((0,Tl.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"),QY=bm((0,Tl.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 eX(e){return Ff("MuiCheckbox",e)}const tX=Bf("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),nX=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],rX=nf(XY,{shouldForwardProp:e=>tf(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${sm(n.size)}`],"default"!==n.color&&t[`color${sm(n.color)}`]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({color:(t.vars||t).palette.text.secondary},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${"default"===n.color?t.vars.palette.action.activeChannel:t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,gh.X4)("default"===n.color?t.palette.action.active:t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{[`&.${tX.checked}, &.${tX.indeterminate}`]:{color:(t.vars||t).palette[n.color].main},[`&.${tX.disabled}`]:{color:(t.vars||t).palette.action.disabled}})})),aX=(0,Tl.jsx)(JY,{}),iX=(0,Tl.jsx)(ZY,{}),oX=(0,Tl.jsx)(QY,{}),sX=e.forwardRef((function(t,n){var r,a;const i=rf({props:t,name:"MuiCheckbox"}),{checkedIcon:o=aX,color:s="primary",icon:l=iX,indeterminate:c=!1,indeterminateIcon:u=oX,inputProps:d,size:p="medium",className:h}=i,f=(0,Sl.A)(i,nX),m=c?u:l,g=c?u:o,v=(0,wl.A)({},i,{color:s,indeterminate:c,size:p}),y=(e=>{const{classes:t,indeterminate:n,color:r,size:a}=e,i=mh({root:["root",n&&"indeterminate",`color${sm(r)}`,`size${sm(a)}`]},eX,t);return(0,wl.A)({},t,i)})(v);return(0,Tl.jsx)(rX,(0,wl.A)({type:"checkbox",inputProps:(0,wl.A)({"data-indeterminate":c},d),icon:e.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:p}),checkedIcon:e.cloneElement(g,{fontSize:null!=(a=g.props.fontSize)?a:p}),ownerState:v,ref:n,className:fh(y.root,h)},f,{classes:y}))})),lX=sX,cX=(e,t)=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/jobs/searchJobs/"+e+"?refNumbers="+t).then((e=>e.data)),uX=cb((e=>({root:{[e.breakpoints.down("md")]:{width:"100%"},justifyContent:"space-between",minWidth:"20vw",display:"flex",flexDirection:"column"},search:{position:"relative",paddingLeft:"5px",borderRadius:e.shape.borderRadius,backgroundColor:"rgba(0,0,0,.1)","&:hover":{backgroundColor:"rgba(0,0,0,.2)"},marginBottom:"20px",width:"80%","&.Mui-focused":{width:"100%",transition:"width 0.3s"},transition:"width 0.3s",[e.breakpoints.down("md")]:{width:"50%","&.Mui-focused":{width:"100%",transition:"width 0.3s"}}},searchButton:{marginTop:"15px",marginLeft:"10px",[e.breakpoints.down("md")]:{marginLeft:0}}})));function dX(t){let{openModal:n,data:r,setData:a,groupId:i,setShowSignifier:o,setResponseMessage:s,setShowError:l,clientId:c}=t;const u=uX(),[d,p]=(0,e.useState)([]),[h,f]=(0,e.useState)(""),[m,g]=(0,e.useState)(!1);return(0,Tl.jsxs)("div",{className:u.root,children:[(0,Tl.jsx)(fU,{loading:m}),(0,Tl.jsx)(CN,{children:(0,Tl.jsx)(WM,{children:(0,Tl.jsxs)(SU,{children:[(0,Tl.jsx)(MU,{style:{fontWeight:"bold"},children:"Add Featured Jobs"}),(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:9,children:(0,Tl.jsx)(FU,{placeholder:"Ref. Numbers ( ; delimited)",label:"Ref. Numbers ( ; delimited)",variant:"standard",fullWidth:!0,required:!0,value:h,onChange:e=>f(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:3,children:(0,Tl.jsx)(vW,{className:u.searchButton,type:"submit",variant:"contained",color:"primary",fullWidth:!0,onClick:()=>{cX(c,h).then((e=>{e.forEach((e=>e.add=!1)),p(e)}))},children:"Search"})}),d.map(((e,t)=>(0,Tl.jsxs)(FW,{style:{width:"100%"},children:[(0,Tl.jsx)(HW,{align:"left",style:{width:"50%"},children:e.title}),(0,Tl.jsx)(HW,{align:"middle",style:{width:"50%"},children:e.referenceNumber}),(0,Tl.jsx)(HW,{align:"right",style:{width:"50%"},children:(0,Tl.jsx)($Y,{control:(0,Tl.jsx)(lX,{color:"primary",checked:e.add,onChange:()=>(e=>{var t=[...d];t[e].add=!t[e].add,p(t)})(t)}),label:""})})]},t))),d.length>0?(0,Tl.jsxs)(CN,{container:!0,justifyContent:"flex-end",direction:"row",style:{marginRight:"10px"},children:[(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{color:"#82B288",marginTop:"20px"},type:"submit",variant:"outlined",fullWidth:!0,onClick:()=>n(!1),children:"Cancel"})}),(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginLeft:"10px"},type:"submit",variant:"contained",color:"primary",fullWidth:!0,onClick:()=>(()=>{var e=[];for(var t in d)d[t].add&&e.push(d[t]);vU(IY(c,i,e),"Jobs Added",o,s,l,g).then((()=>{MY(c,i).then((e=>{e.sort(((e,t)=>{const n=kU(e.order,t.order);return 0!==n?n:e[1]-t[1]})),a(e),n(!1)}))}))})(),children:"Add"})})]}):null]})]})})})]})}const pX=function(){const t=cb((e=>({root:{width:"50%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},cardContainer:{[e.breakpoints.down("md")]:{width:"100%",overflowY:"scroll"},display:"flex",flexDirection:"column",marginBottom:"20px",width:"50%"},sensitiveSection:{width:"100%",height:"25%",display:"flex",flexDirection:"column",justifyContent:"space-between",paddingTop:"20px"},sensitiveButton:{[e.breakpoints.down("md")]:{maxWidth:"none",width:"100%"},width:"200px",color:"white",backgroundColor:e.palette.error.main},error:{color:e.palette.error.main}}))),n=t();let r=zu();const[a,i]=(0,e.useState)(!1),[o,s]=(0,e.useState)(""),[l,c]=(0,e.useState)(!1),u=Oc(qC),[d,p]=(0,e.useState)(r.state.featureAds),[h,f]=(0,e.useState)(!1),[m,g]=(0,e.useState)(!1),[v,y]=(0,e.useState)(""),[b,x]=(0,e.useState)(""),[w,S]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{if(d.length>0){var e=[...d];e.forEach(((e,t)=>e.order=t+1)),_Y(v,b,e)}}),[d]),(0,e.useEffect)((()=>{null!==r.state&&void 0!=r.state&&(x(r.state.id),y(r.state.clientId))}),[]),null===r.state||void 0===r.state||u.id!==v&&""!==v?(0,Tl.jsx)(ju,{to:"/featuredgroups"}):(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:a,setShowSignifier:i,message:o,error:l}),(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[u.shortName," Featured Group Detailed"]}),(0,Tl.jsx)("div",{className:n.root,children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(MU,{style:{fontWeight:"bold",fontSize:"24px"},children:"Featured Jobs"})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(vW,{style:{marginBottom:"20px",marginRight:"10px"},type:"submit",variant:"contained",color:"primary",onClick:()=>f(!h),children:"Add Jobs"})}),(0,Tl.jsx)(NY,{columns:[{label:"Title",propName:"title"},{label:"Ref. Number",propName:"referenceNumber"},{label:"Delete",propName:""},{label:"",propName:""}],tableData:d,setTableData:p,rowComponent:LY,loading:!1}),(0,Tl.jsx)("div",{className:n.sensitiveSection,children:(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,container:!0,justifyContent:"space-between",children:(0,Tl.jsx)(vW,{className:n.sensitiveButton,type:"submit",variant:"contained",color:"secondary",onClick:()=>g(!m),children:"Delete Group"})})})]})})]}),(0,Tl.jsx)(jW,{open:h,onClose:()=>f(!1),children:(0,Tl.jsx)(dX,{openModal:f,data:d,setData:p,groupId:b,setShowSignifier:i,setResponseMessage:s,setShowError:c,clientId:v})}),(0,Tl.jsx)(jW,{open:m,onClose:()=>g(!1),children:(0,Tl.jsx)(gU,{question:"Delete this group? This will also delete all featured jobs belonging to this group",func:()=>{vU(PW(b),"Group Deleted",i,s,c,S)},closeModal:()=>g(!1)})})]})},hX=e=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/featuredevents/getevents/"+e).then((e=>e.data)),fX=e=>tl().delete(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/featuredevents/deleteevent/"+e).then((e=>e)),mX=cb((e=>({rowCell:{cursor:"pointer !important",background:e.palette.primary.blue,textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},rowCellOdd:{cursor:"pointer !important",background:"white",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},tableCell:{color:e.palette.primary.copy}})));function gX(t){let{columns:n,element:r,index:a,setTableData:i}=t;const o=mX(),[s,l]=(0,e.useState)(!1),[c,u]=(0,e.useState)(!1),[d,p]=(0,e.useState)(""),[h,f]=(0,e.useState)(!1),[m,g]=(0,e.useState)(!1);return(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:c,setShowSignifier:u,message:d,error:h}),(0,Tl.jsx)(FW,{hover:!0,className:a%2?o.rowCell:o.rowCellOdd,style:{background:a%2?"rgba(0,0,0,.08)":"white"},children:n.map(((e,t)=>(0,Tl.jsx)(HW,{align:"left",className:o.tableCell,children:"Delete"===e.label?(0,Tl.jsx)(FS,{title:"Delete Featured Event",children:(0,Tl.jsx)(hm,{onClick:e=>function(e){e.preventDefault(),l(!0)}(e),size:"large",children:(0,Tl.jsx)(qW,{})})}):r[e.propName.split(".")[0]][e.propName.split(".")[1]]},t)))},a),(0,Tl.jsx)(jW,{open:s,onClose:()=>l(!1),children:(0,Tl.jsx)(gU,{question:"Delete this featured event?",func:()=>{vU(fX(r.id),"Event Deleted",u,p,f,g).then((()=>{hX(r.clientId).then((e=>{e.sort(((e,t)=>{const n=kU(e.order,t.order);return 0!==n?n:e[1]-t[1]})),e.forEach((e=>e.event.startDate=eV(e.event.startDate))),e.forEach((e=>e.event.endDate=eV(e.event.endDate))),i(e)}))}))},closeModal:()=>l(!1)})})]})}function vX(e){return Ff("MuiToolbar",e)}Bf("MuiToolbar",["root","gutters","regular","dense"]);const yX=["className","component","disableGutters","variant"],bX=nf("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({position:"relative",display:"flex",alignItems:"center"},!n.disableGutters&&{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})}),(e=>{let{theme:t,ownerState:n}=e;return"regular"===n.variant&&t.mixins.toolbar})),xX=e.forwardRef((function(e,t){const n=rf({props:e,name:"MuiToolbar"}),{className:r,component:a="div",disableGutters:i=!1,variant:o="regular"}=n,s=(0,Sl.A)(n,yX),l=(0,wl.A)({},n,{component:a,disableGutters:i,variant:o}),c=(e=>{const{classes:t,disableGutters:n,variant:r}=e;return mh({root:["root",!n&&"gutters",r]},vX,t)})(l);return(0,Tl.jsx)(bX,(0,wl.A)({as:a,className:fh(c.root,r),ref:t,ownerState:l},s))})),wX=xX,SX=bm((0,Tl.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),CX=bm((0,Tl.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),AX=bm((0,Tl.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),kX=bm((0,Tl.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),TX=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],jX=e.forwardRef((function(e,t){var n,r,a,i,o,s,l,c;const{backIconButtonProps:u,count:d,disabled:p=!1,getItemAriaLabel:h,nextIconButtonProps:f,onPageChange:m,page:g,rowsPerPage:v,showFirstButton:y,showLastButton:b,slots:x={},slotProps:w={}}=e,S=(0,Sl.A)(e,TX),C=Ml(),A=null!=(n=x.firstButton)?n:hm,k=null!=(r=x.lastButton)?r:hm,T=null!=(a=x.nextButton)?a:hm,j=null!=(i=x.previousButton)?i:hm,E=null!=(o=x.firstButtonIcon)?o:kX,P=null!=(s=x.lastButtonIcon)?s:AX,N=null!=(l=x.nextButtonIcon)?l:CX,D=null!=(c=x.previousButtonIcon)?c:SX,M=C?k:A,_=C?T:j,I=C?j:T,R=C?A:k,O=C?w.lastButton:w.firstButton,L=C?w.nextButton:w.previousButton,F=C?w.previousButton:w.nextButton,B=C?w.firstButton:w.lastButton;return(0,Tl.jsxs)("div",(0,wl.A)({ref:t},S,{children:[y&&(0,Tl.jsx)(M,(0,wl.A)({onClick:e=>{m(e,0)},disabled:p||0===g,"aria-label":h("first",g),title:h("first",g)},O,{children:C?(0,Tl.jsx)(P,(0,wl.A)({},w.lastButtonIcon)):(0,Tl.jsx)(E,(0,wl.A)({},w.firstButtonIcon))})),(0,Tl.jsx)(_,(0,wl.A)({onClick:e=>{m(e,g-1)},disabled:p||0===g,color:"inherit","aria-label":h("previous",g),title:h("previous",g)},null!=L?L:u,{children:C?(0,Tl.jsx)(N,(0,wl.A)({},w.nextButtonIcon)):(0,Tl.jsx)(D,(0,wl.A)({},w.previousButtonIcon))})),(0,Tl.jsx)(I,(0,wl.A)({onClick:e=>{m(e,g+1)},disabled:p||-1!==d&&g>=Math.ceil(d/v)-1,color:"inherit","aria-label":h("next",g),title:h("next",g)},null!=F?F:f,{children:C?(0,Tl.jsx)(D,(0,wl.A)({},w.previousButtonIcon)):(0,Tl.jsx)(N,(0,wl.A)({},w.nextButtonIcon))})),b&&(0,Tl.jsx)(R,(0,wl.A)({onClick:e=>{m(e,Math.max(0,Math.ceil(d/v)-1))},disabled:p||g>=Math.ceil(d/v)-1,"aria-label":h("last",g),title:h("last",g)},B,{children:C?(0,Tl.jsx)(E,(0,wl.A)({},w.firstButtonIcon)):(0,Tl.jsx)(P,(0,wl.A)({},w.lastButtonIcon))}))]}))})),EX=jX;function PX(e){return Ff("MuiTablePagination",e)}const NX=Bf("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var DX;const MX=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],_X=nf(HW,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}}})),IX=nf(wX,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>(0,wl.A)({[`& .${NX.actions}`]:t.actions},t.toolbar)})((e=>{let{theme:t}=e;return{minHeight:52,paddingRight:2,[`${t.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[t.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${NX.actions}`]:{flexShrink:0,marginLeft:20}}})),RX=nf("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),OX=nf("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})((e=>{let{theme:t}=e;return(0,wl.A)({},t.typography.body2,{flexShrink:0})})),LX=nf(LM,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>(0,wl.A)({[`& .${NX.selectIcon}`]:t.selectIcon,[`& .${NX.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${NX.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),FX=nf(lx,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),BX=nf("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})((e=>{let{theme:t}=e;return(0,wl.A)({},t.typography.body2,{flexShrink:0})}));function zX(e){let{from:t,to:n,count:r}=e;return`${t}\u2013${n} of ${-1!==r?r:`more than ${n}`}`}function VX(e){return`Go to ${e} page`}const WX=e.forwardRef((function(t,n){var r;const a=rf({props:t,name:"MuiTablePagination"}),{ActionsComponent:i=EX,backIconButtonProps:o,className:s,colSpan:l,component:c=HW,count:u,disabled:d=!1,getItemAriaLabel:p=VX,labelDisplayedRows:h=zX,labelRowsPerPage:f="Rows per page:",nextIconButtonProps:m,onPageChange:g,onRowsPerPageChange:v,page:y,rowsPerPage:b,rowsPerPageOptions:x=[10,25,50,100],SelectProps:w={},showFirstButton:S=!1,showLastButton:C=!1,slotProps:A={},slots:k={}}=a,T=(0,Sl.A)(a,MX),j=a,E=(e=>{const{classes:t}=e;return mh({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},PX,t)})(j),P=null!=(r=null==A?void 0:A.select)?r:w,N=P.native?"option":FX;let D;c!==HW&&"td"!==c||(D=l||1e3);const M=AS(P.id),_=AS(P.labelId);return(0,Tl.jsx)(_X,(0,wl.A)({colSpan:D,ref:n,as:c,ownerState:j,className:fh(E.root,s)},T,{children:(0,Tl.jsxs)(IX,{className:E.toolbar,children:[(0,Tl.jsx)(RX,{className:E.spacer}),x.length>1&&(0,Tl.jsx)(OX,{className:E.selectLabel,id:_,children:f}),x.length>1&&(0,Tl.jsx)(LX,(0,wl.A)({variant:"standard"},!P.variant&&{input:DX||(DX=(0,Tl.jsx)(NC,{}))},{value:b,onChange:v,id:M,labelId:_},P,{classes:(0,wl.A)({},P.classes,{root:fh(E.input,E.selectRoot,(P.classes||{}).root),select:fh(E.select,(P.classes||{}).select),icon:fh(E.selectIcon,(P.classes||{}).icon)}),disabled:d,children:x.map((t=>(0,e.createElement)(N,(0,wl.A)({},!Nx(N)&&{ownerState:j},{className:E.menuItem,key:t.label?t.label:t,value:t.value?t.value:t}),t.label?t.label:t)))})),(0,Tl.jsx)(BX,{className:E.displayedRows,children:h({from:0===u?0:y*b+1,to:-1===u?(y+1)*b:-1===b?u:Math.min(u,(y+1)*b),count:-1===u?-1:u,page:y})}),(0,Tl.jsx)(i,{className:E.actions,backIconButtonProps:o,count:u,nextIconButtonProps:m,onPageChange:g,page:y,rowsPerPage:b,showFirstButton:S,showLastButton:C,slotProps:A.actions,slots:k.actions,getItemAriaLabel:p,disabled:d})]})}))})),UX=WX,$X=bm((0,Tl.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),HX=bm((0,Tl.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),qX=cb((e=>({paper:{width:"98%",background:"#F7F7F7"},table:{width:"100%",height:"100%",maxHeight:"70vh",[e.breakpoints.down("md")]:{maxHeight:"60vh"}},search:{position:"relative",paddingLeft:"5px",borderRadius:e.shape.borderRadius,backgroundColor:"rgba(0,0,0,.1)","&:hover":{backgroundColor:"rgba(0,0,0,.2)"},marginBottom:"20px",width:"20%","&.Mui-focused":{width:"30%",transition:"width 0.3s"},transition:"width 0.3s",[e.breakpoints.down("sm")]:{width:"98%","&.Mui-focused":{width:"98%",transition:"width 0.3s"}}}})));function GX(t){let{columns:r,tableData:a,rowComponent:i,loading:o,hideSearch:s,defaultSortIndex:l,setTableData:c,reverse:u,customProps:d,pagination:p={}}=t;const[h,f]=(0,e.useState)(a),[m,g]=(0,e.useState)(a),[v,y]=(0,e.useState)(0),[b,x]=(0,e.useState)(10),[w,S]=(0,e.useState)(),[C,A]=(0,e.useState)(u),k=qX();var T=n(3536);const j=i;function E(e,t){return function(n,r){const a=T.get(n,e),i=T.get(r,e),o=new Date(a),s=new Date(i);let l=0;return!isNaN(o.getTime())&&!isNaN(s.getTime())?l=o.getTime()-s.getTime():"string"===typeof a&&"string"===typeof i?(a.toLowerCase()<i.toLowerCase()&&(l=-1),a.toLowerCase()>i.toLowerCase()&&(l=1)):(a<i&&(l=-1),a>i&&(l=1)),t?l:-l}}function P(e,t,n){let r=[...h];!1===n&&(r=[...m]),r.sort(E(e,t)),g(r)}return(0,e.useEffect)((()=>{f(a),g(a),S(r[0].propName)}),[a,r]),(0,e.useEffect)((()=>{void 0!==l&&P(r[l].propName,!u,!0)}),[h,r]),(0,Tl.jsxs)(Tl.Fragment,{children:[s?null:(0,Tl.jsx)(NC,{className:k.search,placeholder:"Search...",onChange:function(e){let t=[];t=function(e){return h.filter((t=>Object.keys(t).some((n=>{for(var a in r){var i,o=T.get(t,r[a].propName),s=new Date(o).getTime();if(isNaN(s)||(o=new Date(o).toLocaleDateString("en-US")),"string"!==typeof o&&(o=String(o)),null!==(i=o)&&void 0!==i&&i.toLowerCase().includes(e))return t[n]}return!1}))))}(e.target.value.toLowerCase()),t.sort(E(w,!C)),g(t)}}),(0,Tl.jsx)(l$,{className:k.table,component:Bm,children:o?(0,Tl.jsx)(v$,{numRows:10}):(0,Tl.jsxs)(XU,{stickyHeader:!0,"aria-label":"sticky table",children:[(0,Tl.jsx)(m$,{children:(0,Tl.jsx)(FW,{children:r.map((e=>(0,Tl.jsxs)(HW,{sx:{backgroundColor:"#f0f0f0",p:"0px 16px"},align:"left",onClick:()=>function(e){e.propName===w?(P(e.propName,C,!1),A(!C)):(S(e.propName),P(e.propName,!0,!1),A(!1))}(e),style:{fontWeight:"bold"},children:[e.label,""!==e.propName?(0,Tl.jsx)(hm,{size:"large",children:w===e.propName&&!0===C?(0,Tl.jsx)($X,{}):(0,Tl.jsx)(HX,{})}):null]},e.propName)))})}),(0,Tl.jsx)(r$,{children:p.enabled?m.map(((e,t)=>(0,Tl.jsx)(j,{columns:r,element:e,index:t,setTableData:c,customProps:d},t))).slice(v*b,v*b+b):m.map(((e,t)=>(0,Tl.jsx)(j,{columns:r,element:e,index:t,setTableData:c,customProps:d},t)))})]})}),p.enabled&&(0,Tl.jsx)(UX,{rowsPerPageOptions:p.rowsPerPage,component:"div",count:a.length,rowsPerPage:b,page:v,onPageChange:(e,t)=>{y(t)},onRowsPerPageChange:e=>{x(parseInt(e.target.value,10)),y(0)},"data-test":"tablePagination"})]})}const KX=cb((e=>({root:{[e.breakpoints.down("md")]:{width:"100%"},justifyContent:"space-between",width:"100%",minWidth:"400px",display:"flex",flexDirection:"column"},error:{color:e.palette.error.main},search:{position:"relative",paddingLeft:"5px",borderRadius:e.shape.borderRadius,backgroundColor:"rgba(0,0,0,.1)","&:hover":{backgroundColor:"rgba(0,0,0,.2)"},marginTop:"10px",width:"50%","&.Mui-focused":{width:"90%",transition:"width 0.3s"},transition:"width 0.3s",[e.breakpoints.down("md")]:{width:"50%","&.Mui-focused":{width:"100%",transition:"width 0.3s"}}}})));function YX(t){let{openModal:n,client:r,setShowSignifier:a,setResponseMessage:i,setShowError:o,setTableData:s}=t;const l=KX(),[c,u]=(0,e.useState)(!1),[d,p]=(0,e.useState)([]),[h,f]=(0,e.useState)(!1),[m,g]=(0,e.useState)("");function v(){if((()=>{for(var e in d)if(d[e].add)return!0;return!1})()){var e=[];for(var t in d)d[t].add&&e.push(d[t]);vU(((e,t)=>tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/featuredevents/addevents/"+e,t).then((e=>e.data)))(r.id,e),"Events Added",a,i,o,u).then((()=>{hX(r.id).then((e=>{e.sort(((e,t)=>{const n=kU(e.order,t.order);return 0!==n?n:e[1]-t[1]})),e.forEach((e=>e.event.startDate=eV(e.event.startDate))),e.forEach((e=>e.event.endDate=eV(e.event.endDate))),s(e),n(!1)}))}))}else f(!0)}return(0,e.useEffect)((()=>{var e;null!==r&&(e=r.id,tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/featuredevents/geteventsnotfeatured/"+e).then((e=>e.data))).then((e=>{let t=e.filter((e=>e.isActive));t.forEach((e=>e.add=!1)),t.forEach((e=>e.startDate=eV(e.startDate))),t.forEach((e=>e.endDate=eV(e.endDate))),p(t)}))}),[]),(0,Tl.jsxs)("div",{className:l.root,children:[(0,Tl.jsx)(fU,{loading:c}),(0,Tl.jsx)(CN,{children:(0,Tl.jsx)(WM,{children:(0,Tl.jsxs)(SU,{children:[(0,Tl.jsx)(MU,{style:{fontWeight:"bold"},children:"Add Featured Events"}),(0,Tl.jsx)(NC,{className:l.search,placeholder:"Search...",onChange:e=>g(e.target.value)}),(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[h&&(0,Tl.jsx)(MU,{className:l.error,children:"At least one event required"}),d.filter((e=>e.title.toLowerCase().includes(m.toLowerCase()))).map(((e,t)=>(0,Tl.jsxs)(FW,{style:{width:"100%"},children:[(0,Tl.jsx)(HW,{align:"left",style:{width:"70%"},children:e.title}),(0,Tl.jsx)(HW,{align:"middle",style:{width:"50%"},children:e.startDate}),(0,Tl.jsx)(HW,{align:"middle",style:{width:"50%"},children:e.endDate}),(0,Tl.jsx)(HW,{align:"right",style:{width:"50%"},children:(0,Tl.jsx)($Y,{control:(0,Tl.jsx)(lX,{color:"primary",checked:e.add,onChange:()=>(e=>{var t=[...d];for(var n in t)t[n].id===e&&(t[n].add=!t[n].add);p(t)})(e.id)}),label:""})})]},t))),(0,Tl.jsxs)(CN,{container:!0,justifyContent:"flex-end",direction:"row",style:{marginRight:"10px"},children:[(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{color:"#82B288",marginTop:"20px"},type:"submit",variant:"outlined",fullWidth:!0,onClick:()=>n(!1),children:"Cancel"})}),(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginLeft:"10px"},type:"submit",variant:"contained",color:"primary",fullWidth:!0,onClick:()=>v(),children:"Add"})})]})]})]})})})]})}const XX=function(){const t=cb((e=>({root:{width:"100%",[e.breakpoints.down("md")]:{width:"100%"}},autocomplete:{width:"35%",paddingBottom:"20px",[e.breakpoints.down("md")]:{width:"100%"}},hint:{position:"absolute",left:0,right:0,top:0,bottom:0,marginTop:"auto",marginBottom:"auto",marginLeft:"auto",marginRight:"auto",width:"300px",height:"300px",fontSize:"32px",textAlign:"center",color:"rgba(0,0,0,.6)"}}))),n=t(),r=Oc(qC),[a,i]=(0,e.useState)([]),[o,s]=(0,e.useState)(!0),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(""),[f,m]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{null!==r&&(s(!0),hX(r.id).then((e=>{e.sort(((e,t)=>{const n=kU(e.order,t.order);return 0!==n?n:e[1]-t[1]})),e.forEach((e=>e.event.startDate=eV(e.event.startDate))),e.forEach((e=>e.event.endDate=eV(e.event.endDate))),i(e),s(!1)})))}),[r]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:u,setShowSignifier:d,message:p,error:f}),(0,Tl.jsx)("div",{className:n.root,children:null===r?(0,Tl.jsx)("div",{className:n.hint,children:(0,Tl.jsx)("span",{children:"Select a client"})}):(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(vW,{style:{marginTop:"0px",marginBottom:"20px"},type:"submit",variant:"contained",color:"primary",onClick:()=>c(!l),children:"Add Event"})}),(0,Tl.jsx)(GX,{columns:[{label:"Title",propName:"event.title"},{label:"Start Date",propName:"event.startDate"},{label:"End Date",propName:"event.endDate"},{label:"Delete",propName:""}],tableData:a,rowComponent:gX,loading:o,setTableData:i,defaultSortIndex:1})]})}),(0,Tl.jsx)(jW,{open:l,onClose:()=>c(!1),children:(0,Tl.jsx)(YX,{openModal:c,client:r,setShowSignifier:d,setResponseMessage:h,setShowError:m,setTableData:i})})]})};function ZX(e){return Ff("MuiAppBar",e)}Bf("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const JX=["className","color","enableColorOnDark","position"],QX=(e,t)=>e?`${null==e?void 0:e.replace(")","")}, ${t})`:t,eZ=nf(Bm,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${sm(n.position)}`],t[`color${sm(n.color)}`]]}})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[900];return(0,wl.A)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===n.position&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===n.position&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===n.position&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"static"===n.position&&{position:"static"},"relative"===n.position&&{position:"relative"},!t.vars&&(0,wl.A)({},"default"===n.color&&{backgroundColor:r,color:t.palette.getContrastText(r)},n.color&&"default"!==n.color&&"inherit"!==n.color&&"transparent"!==n.color&&{backgroundColor:t.palette[n.color].main,color:t.palette[n.color].contrastText},"inherit"===n.color&&{color:"inherit"},"dark"===t.palette.mode&&!n.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===n.color&&(0,wl.A)({backgroundColor:"transparent",color:"inherit"},"dark"===t.palette.mode&&{backgroundImage:"none"})),t.vars&&(0,wl.A)({},"default"===n.color&&{"--AppBar-background":n.enableColorOnDark?t.vars.palette.AppBar.defaultBg:QX(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":n.enableColorOnDark?t.vars.palette.text.primary:QX(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},n.color&&!n.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":n.enableColorOnDark?t.vars.palette[n.color].main:QX(t.vars.palette.AppBar.darkBg,t.vars.palette[n.color].main),"--AppBar-color":n.enableColorOnDark?t.vars.palette[n.color].contrastText:QX(t.vars.palette.AppBar.darkColor,t.vars.palette[n.color].contrastText)},!["inherit","transparent"].includes(n.color)&&{backgroundColor:"var(--AppBar-background)"},{color:"inherit"===n.color?"inherit":"var(--AppBar-color)"},"transparent"===n.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))})),tZ=e.forwardRef((function(e,t){const n=rf({props:e,name:"MuiAppBar"}),{className:r,color:a="primary",enableColorOnDark:i=!1,position:o="fixed"}=n,s=(0,Sl.A)(n,JX),l=(0,wl.A)({},n,{color:a,position:o,enableColorOnDark:i}),c=(e=>{const{color:t,position:n,classes:r}=e;return mh({root:["root",`color${sm(t)}`,`position${sm(n)}`]},ZX,r)})(l);return(0,Tl.jsx)(eZ,(0,wl.A)({square:!0,component:"header",ownerState:l,elevation:4,className:fh(c.root,r,"fixed"===o&&"mui-fixed"),ref:t},s))})),nZ=tZ;let rZ;function aZ(){if(rZ)return rZ;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),rZ="reverse",e.scrollLeft>0?rZ="default":(e.scrollLeft=1,0===e.scrollLeft&&(rZ="negative")),document.body.removeChild(e),rZ}function iZ(e,t){const n=e.scrollLeft;if("rtl"!==t)return n;switch(aZ()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function oZ(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const sZ=["onChange"],lZ={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function cZ(e){return Ff("MuiTabScrollButton",e)}const uZ=Bf("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),dZ=["className","slots","slotProps","direction","orientation","disabled"],pZ=nf(im,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})((e=>{let{ownerState:t}=e;return(0,wl.A)({width:40,flexShrink:0,opacity:.8,[`&.${uZ.disabled}`]:{opacity:0}},"vertical"===t.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})})),hZ=e.forwardRef((function(e,t){var n,r;const a=rf({props:e,name:"MuiTabScrollButton"}),{className:i,slots:o={},slotProps:s={},direction:l}=a,c=(0,Sl.A)(a,dZ),u=Ml(),d=(0,wl.A)({isRtl:u},a),p=(e=>{const{classes:t,orientation:n,disabled:r}=e;return mh({root:["root",n,r&&"disabled"]},cZ,t)})(d),h=null!=(n=o.StartScrollButtonIcon)?n:SX,f=null!=(r=o.EndScrollButtonIcon)?r:CX,m=sS({elementType:h,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d}),g=sS({elementType:f,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d});return(0,Tl.jsx)(pZ,(0,wl.A)({component:"div",className:fh(p.root,i),ref:t,role:null,ownerState:d,tabIndex:null},c,{children:"left"===l?(0,Tl.jsx)(h,(0,wl.A)({},m)):(0,Tl.jsx)(f,(0,wl.A)({},g))}))})),fZ=hZ;function mZ(e){return Ff("MuiTabs",e)}const gZ=Bf("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),vZ=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],yZ=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,bZ=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,xZ=(e,t,n)=>{let r=!1,a=n(e,t);for(;a;){if(a===e.firstChild){if(r)return;r=!0}const t=a.disabled||"true"===a.getAttribute("aria-disabled");if(a.hasAttribute("tabindex")&&!t)return void a.focus();a=n(e,a)}},wZ=nf("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${gZ.scrollButtons}`]:t.scrollButtons},{[`& .${gZ.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})((e=>{let{ownerState:t,theme:n}=e;return(0,wl.A)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${gZ.scrollButtons}`]:{[n.breakpoints.down("sm")]:{display:"none"}}})})),SZ=nf("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})((e=>{let{ownerState:t}=e;return(0,wl.A)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})})),CZ=nf("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})((e=>{let{ownerState:t}=e;return(0,wl.A)({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})})),AZ=nf("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((e=>{let{ownerState:t,theme:n}=e;return(0,wl.A)({position:"absolute",height:2,bottom:0,width:"100%",transition:n.transitions.create()},"primary"===t.indicatorColor&&{backgroundColor:(n.vars||n).palette.primary.main},"secondary"===t.indicatorColor&&{backgroundColor:(n.vars||n).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})})),kZ=nf((function(t){const{onChange:n}=t,r=(0,Sl.A)(t,sZ),a=e.useRef(),i=e.useRef(null),o=()=>{a.current=i.current.offsetHeight-i.current.clientHeight};return Vb((()=>{const e=wb((()=>{const e=a.current;o(),e!==a.current&&n(a.current)})),t=jb(i.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[n]),e.useEffect((()=>{o(),n(a.current)}),[n]),(0,Tl.jsx)("div",(0,wl.A)({style:lZ,ref:i},r))}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),TZ={};const jZ=e.forwardRef((function(t,n){const r=rf({props:t,name:"MuiTabs"}),a=Sb(),i=Ml(),{"aria-label":o,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:d,component:p="div",allowScrollButtonsMobile:h=!1,indicatorColor:f="primary",onChange:m,orientation:g="horizontal",ScrollButtonComponent:v=fZ,scrollButtons:y="auto",selectionFollowsFocus:b,slots:x={},slotProps:w={},TabIndicatorProps:S={},TabScrollButtonProps:C={},textColor:A="primary",value:k,variant:T="standard",visibleScrollbar:j=!1}=r,E=(0,Sl.A)(r,vZ),P="scrollable"===T,N="vertical"===g,D=N?"scrollTop":"scrollLeft",M=N?"top":"left",_=N?"bottom":"right",I=N?"clientHeight":"clientWidth",R=N?"height":"width",O=(0,wl.A)({},r,{component:p,allowScrollButtonsMobile:h,indicatorColor:f,orientation:g,vertical:N,scrollButtons:y,textColor:A,variant:T,visibleScrollbar:j,fixed:!P,hideScrollbar:P&&!j,scrollableX:P&&!N,scrollableY:P&&N,centered:c&&!P,scrollButtonsHideMobile:!h}),L=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:a,scrollableY:i,centered:o,scrollButtonsHideMobile:s,classes:l}=e;return mh({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",a&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",o&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[a&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},mZ,l)})(O),F=sS({elementType:x.StartScrollButtonIcon,externalSlotProps:w.startScrollButtonIcon,ownerState:O}),B=sS({elementType:x.EndScrollButtonIcon,externalSlotProps:w.endScrollButtonIcon,ownerState:O});const[z,V]=e.useState(!1),[W,U]=e.useState(TZ),[$,H]=e.useState(!1),[q,G]=e.useState(!1),[K,Y]=e.useState(!1),[X,Z]=e.useState({overflow:"hidden",scrollbarWidth:0}),J=new Map,Q=e.useRef(null),ee=e.useRef(null),te=()=>{const e=Q.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:iZ(e,i?"rtl":"ltr"),scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==k){const e=ee.current.children;if(e.length>0){const t=e[J.get(k)];0,n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},ne=uf((()=>{const{tabsMeta:e,tabMeta:t}=te();let n,r=0;if(N)n="top",t&&e&&(r=t.top-e.top+e.scrollTop);else if(n=i?"right":"left",t&&e){const a=i?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;r=(i?-1:1)*(t[n]-e[n]+a)}const a={[n]:r,[R]:t?t[R]:0};if(isNaN(W[n])||isNaN(W[R]))U(a);else{const e=Math.abs(W[n]-a[n]),t=Math.abs(W[R]-a[R]);(e>=1||t>=1)&&U(a)}})),re=function(e){let{animation:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t?function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>{};const{ease:i=oZ,duration:o=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},d=r=>{if(c)return void a(new Error("Animation cancelled"));null===s&&(s=r);const u=Math.min(1,(r-s)/o);t[e]=i(u)*(n-l)+l,u>=1?requestAnimationFrame((()=>{a(null)})):requestAnimationFrame(d)};l===n?a(new Error("Element already at target position")):requestAnimationFrame(d)}(D,Q.current,e,{duration:a.transitions.duration.standard}):Q.current[D]=e},ae=e=>{let t=Q.current[D];N?t+=e:(t+=e*(i?-1:1),t*=i&&"reverse"===aZ()?-1:1),re(t)},ie=()=>{const e=Q.current[I];let t=0;const n=Array.from(ee.current.children);for(let r=0;r<n.length;r+=1){const a=n[r];if(t+a[I]>e){0===r&&(t=e);break}t+=a[I]}return t},oe=()=>{ae(-1*ie())},se=()=>{ae(ie())},le=e.useCallback((e=>{Z({overflow:null,scrollbarWidth:e})}),[]),ce=uf((e=>{const{tabsMeta:t,tabMeta:n}=te();if(n&&t)if(n[M]<t[M]){const r=t[D]+(n[M]-t[M]);re(r,{animation:e})}else if(n[_]>t[_]){const r=t[D]+(n[_]-t[_]);re(r,{animation:e})}})),ue=uf((()=>{P&&!1!==y&&Y(!K)}));e.useEffect((()=>{const e=wb((()=>{Q.current&&ne()}));let t;const n=n=>{n.forEach((e=>{e.removedNodes.forEach((e=>{var n;null==(n=t)||n.unobserve(e)})),e.addedNodes.forEach((e=>{var n;null==(n=t)||n.observe(e)}))})),e(),ue()},r=jb(Q.current);let a;return r.addEventListener("resize",e),"undefined"!==typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(ee.current.children).forEach((e=>{t.observe(e)}))),"undefined"!==typeof MutationObserver&&(a=new MutationObserver(n),a.observe(ee.current,{childList:!0})),()=>{var n,i;e.clear(),r.removeEventListener("resize",e),null==(n=a)||n.disconnect(),null==(i=t)||i.disconnect()}}),[ne,ue]),e.useEffect((()=>{const e=Array.from(ee.current.children),t=e.length;if("undefined"!==typeof IntersectionObserver&&t>0&&P&&!1!==y){const n=e[0],r=e[t-1],a={root:Q.current,threshold:.99},i=new IntersectionObserver((e=>{H(!e[0].isIntersecting)}),a);i.observe(n);const o=new IntersectionObserver((e=>{G(!e[0].isIntersecting)}),a);return o.observe(r),()=>{i.disconnect(),o.disconnect()}}}),[P,y,K,null==u?void 0:u.length]),e.useEffect((()=>{V(!0)}),[]),e.useEffect((()=>{ne()})),e.useEffect((()=>{ce(TZ!==W)}),[ce,W]),e.useImperativeHandle(l,(()=>({updateIndicator:ne,updateScrollButtons:ue})),[ne,ue]);const de=(0,Tl.jsx)(AZ,(0,wl.A)({},S,{className:fh(L.indicator,S.className),ownerState:O,style:(0,wl.A)({},W,S.style)}));let pe=0;const he=e.Children.map(u,(t=>{if(!e.isValidElement(t))return null;const n=void 0===t.props.value?pe:t.props.value;J.set(n,pe);const r=n===k;return pe+=1,e.cloneElement(t,(0,wl.A)({fullWidth:"fullWidth"===T,indicator:r&&!z&&de,selected:r,selectionFollowsFocus:b,onChange:m,textColor:A,value:n},1!==pe||!1!==k||t.props.tabIndex?{}:{tabIndex:0}))})),fe=(()=>{const e={};e.scrollbarSizeListener=P?(0,Tl.jsx)(kZ,{onChange:le,className:fh(L.scrollableX,L.hideScrollbar)}):null;const t=P&&("auto"===y&&($||q)||!0===y);return e.scrollButtonStart=t?(0,Tl.jsx)(v,(0,wl.A)({slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:F},orientation:g,direction:i?"right":"left",onClick:oe,disabled:!$},C,{className:fh(L.scrollButtons,C.className)})):null,e.scrollButtonEnd=t?(0,Tl.jsx)(v,(0,wl.A)({slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:B},orientation:g,direction:i?"left":"right",onClick:se,disabled:!q},C,{className:fh(L.scrollButtons,C.className)})):null,e})();return(0,Tl.jsxs)(wZ,(0,wl.A)({className:fh(L.root,d),ownerState:O,ref:n,as:p},E,{children:[fe.scrollButtonStart,fe.scrollbarSizeListener,(0,Tl.jsxs)(SZ,{className:L.scroller,ownerState:O,style:{overflow:X.overflow,[N?"margin"+(i?"Left":"Right"):"marginBottom"]:j?void 0:-X.scrollbarWidth},ref:Q,children:[(0,Tl.jsx)(CZ,{"aria-label":o,"aria-labelledby":s,"aria-orientation":"vertical"===g?"vertical":null,className:L.flexContainer,ownerState:O,onKeyDown:e=>{const t=ee.current,n=Mb(t).activeElement;if("tab"!==n.getAttribute("role"))return;let r="horizontal"===g?"ArrowLeft":"ArrowUp",a="horizontal"===g?"ArrowRight":"ArrowDown";switch("horizontal"===g&&i&&(r="ArrowRight",a="ArrowLeft"),e.key){case r:e.preventDefault(),xZ(t,n,bZ);break;case a:e.preventDefault(),xZ(t,n,yZ);break;case"Home":e.preventDefault(),xZ(t,null,yZ);break;case"End":e.preventDefault(),xZ(t,null,bZ)}},ref:ee,role:"tablist",children:he}),z&&de]}),fe.scrollButtonEnd]}))})),EZ=jZ;function PZ(e){return Ff("MuiTab",e)}const NZ=Bf("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),DZ=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],MZ=nf(im,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${sm(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${NZ.iconWrapper}`]:t.iconWrapper}]}})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},n.label&&{flexDirection:"top"===n.iconPosition||"bottom"===n.iconPosition?"column":"row"},{lineHeight:1.25},n.icon&&n.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${NZ.iconWrapper}`]:(0,wl.A)({},"top"===n.iconPosition&&{marginBottom:6},"bottom"===n.iconPosition&&{marginTop:6},"start"===n.iconPosition&&{marginRight:t.spacing(1)},"end"===n.iconPosition&&{marginLeft:t.spacing(1)})},"inherit"===n.textColor&&{color:"inherit",opacity:.6,[`&.${NZ.selected}`]:{opacity:1},[`&.${NZ.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"primary"===n.textColor&&{color:(t.vars||t).palette.text.secondary,[`&.${NZ.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${NZ.disabled}`]:{color:(t.vars||t).palette.text.disabled}},"secondary"===n.textColor&&{color:(t.vars||t).palette.text.secondary,[`&.${NZ.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${NZ.disabled}`]:{color:(t.vars||t).palette.text.disabled}},n.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},n.wrapped&&{fontSize:t.typography.pxToRem(12)})})),_Z=e.forwardRef((function(t,n){const r=rf({props:t,name:"MuiTab"}),{className:a,disabled:i=!1,disableFocusRipple:o=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:d,onChange:p,onClick:h,onFocus:f,selected:m,selectionFollowsFocus:g,textColor:v="inherit",value:y,wrapped:b=!1}=r,x=(0,Sl.A)(r,DZ),w=(0,wl.A)({},r,{disabled:i,disableFocusRipple:o,selected:m,icon:!!l,iconPosition:c,label:!!d,fullWidth:s,textColor:v,wrapped:b}),S=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:a,icon:i,label:o,selected:s,disabled:l}=e;return mh({root:["root",i&&o&&"labelIcon",`textColor${sm(n)}`,r&&"fullWidth",a&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]},PZ,t)})(w),C=l&&d&&e.isValidElement(l)?e.cloneElement(l,{className:fh(S.iconWrapper,l.props.className)}):l;return(0,Tl.jsxs)(MZ,(0,wl.A)({focusRipple:!o,className:fh(S.root,a),ref:n,role:"tab","aria-selected":m,disabled:i,onClick:e=>{!m&&p&&p(e,y),h&&h(e)},onFocus:e=>{g&&!m&&p&&p(e,y),f&&f(e)},ownerState:w,tabIndex:m?0:-1},x,{children:["top"===c||"start"===c?(0,Tl.jsxs)(e.Fragment,{children:[C,d]}):(0,Tl.jsxs)(e.Fragment,{children:[d,C]}),u]}))})),IZ=_Z;function RZ(e){const{children:t,value:n,index:r,...a}=e;return(0,Tl.jsx)("div",{role:"tabpanel",hidden:n!==r,id:`simple-tabpanel-${r}`,"aria-labelledby":`simple-tab-${r}`,...a,children:n===r&&(0,Tl.jsx)(Xm,{p:3,children:(0,Tl.jsx)(mx,{component:"span",children:t})})})}function OZ(e){return{id:`simple-tab-${e}`,"aria-controls":`simple-tabpanel-${e}`}}const LZ=cb((e=>({root:{[e.breakpoints.down("md")]:{width:"100%"},backgroundColor:"transparent",boxShadow:"none",color:e.palette.primary.main,fontWeight:"bold",width:"85%",zIndex:0},tab:{fontWeight:"bold",[e.breakpoints.down("md")]:{"& .MuiBox-root":{padding:"0px"}},color:e.palette.primary.main},largeIcon:{color:e.palette.primary.main,margin:"auto",position:"absolute",top:0,left:0,bottom:0,right:0},tabContainer:{marginLeft:"24px"},primary:{backgroundColor:e.palette.primary.main}})));function FZ(t){let{tabs:n}=t;const r=LZ(),[a,i]=e.useState(0);return(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(nZ,{position:"static",className:r.root,children:(0,Tl.jsx)(EZ,{value:a,onChange:(e,t)=>{i(t)},classes:{indicator:r.primary},className:r.tabContainer,variant:"scrollable",allowScrollButtonsMobile:!0,children:n.map(((e,t)=>(0,Tl.jsx)(IZ,{label:e.title,...OZ(t),className:r.tab})))})}),n.map(((e,t)=>(0,Tl.jsx)(RZ,{value:a,index:t,className:r.tab,children:e.component})))]})}const BZ=function(){const t=cb((e=>({root:{width:"90%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},copy:{color:e.palette.primary.copy}}))),n=t(),[r,a]=(0,e.useState)(!1),[i,o]=(0,e.useState)(!1),[s,l]=(0,e.useState)(0),[c,u]=(0,e.useState)(""),d=Oc(qC),[p,h]=(0,e.useState)(!1),[f,m]=(0,e.useState)(""),[g,v]=(0,e.useState)(!1),[y,b]=(0,e.useState)(!1),x=()=>{let e={ClientId:d.id,UseRealTimeData:r,MaxDisplayCount:s,NoCountMessage:c,HideSection:i};var t;vU((t=e,tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/featuredevents/addeventsettings",t).then((e=>e))),"Settings Saved",h,m,v,b)};return(0,e.useEffect)((()=>{var e;null!==d&&(e=d.id,tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/featuredevents/geteventsettings/"+e).then((e=>e.data))).then((e=>{a(e.useRealTimeData),o(e.hideSection),l(e.maxDisplayCount),u(e.noCountMessage)}))}),[d]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:p,setShowSignifier:h,message:f,error:g}),(0,Tl.jsx)("div",{className:n.root,children:(0,Tl.jsx)(CN,{className:n.cardContainer,children:(0,Tl.jsx)(WM,{className:n.card,children:(0,Tl.jsx)(SU,{children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{xs:12,sm:6,item:!0,children:(0,Tl.jsx)($Y,{className:n.copy,control:(0,Tl.jsx)(lX,{color:"primary",checked:r,onChange:()=>a(!r)}),label:"Use Real Time Data"})}),(0,Tl.jsx)(CN,{xs:12,sm:6,item:!0,children:(0,Tl.jsx)($Y,{className:n.copy,control:(0,Tl.jsx)(lX,{color:"primary",checked:i,onChange:()=>o(!i)}),label:"Hide section if none available"})}),(0,Tl.jsx)(CN,{xs:12,sm:12,item:!0,children:(0,Tl.jsx)(FU,{placeholder:"Total number of events to display (max: 10)",label:"Total number of events to display (max: 10)",variant:"standard",type:"number",fullWidth:!0,required:!0,InputProps:{className:n.copy},value:s,onChange:e=>l(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(FU,{placeholder:"No events message",label:"No events message",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:n.copy},value:c,onChange:e=>u(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,container:!0,justifyContent:"flex-end",children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginRight:"8px"},className:n.sensitiveButton,type:"submit",variant:"contained",color:"primary",onClick:()=>x(),children:"Save Information"})})]})})})})})]})};const zZ=function(){const e=cb((e=>({root:{width:"50%",[e.breakpoints.down("md")]:{width:"100%"}},autocomplete:{width:"35%",paddingBottom:"20px",[e.breakpoints.down("md")]:{width:"100%"}},hint:{position:"absolute",left:0,right:0,top:0,bottom:0,marginTop:"auto",marginBottom:"auto",marginLeft:"auto",marginRight:"auto",width:"300px",height:"300px",fontSize:"32px",textAlign:"center",color:"rgba(0,0,0,.6)"}}))),t=e(),n=Oc(qC),r=[{title:"Events",component:(0,Tl.jsx)(XX,{})},{title:"Settings",component:(0,Tl.jsx)(BZ,{})}];return(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[n.shortName," Featured Events"]}),(0,Tl.jsx)("div",{className:t.root,children:null===n?(0,Tl.jsx)("div",{className:t.hint,children:(0,Tl.jsx)("span",{children:"Select a client"})}):(0,Tl.jsx)(FZ,{tabs:r})})]})})},VZ=cb((e=>({rowCell:{cursor:"default !important",background:"rgba(0,0,0,.08)",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},rowCellOdd:{cursor:"default !important",background:"white",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},itemIcon:{cursor:"grab"},tableCell:{[e.breakpoints.down("md")]:{width:"auto"},width:"800px",color:e.palette.primary.copy}})));function WZ(t){const n=VZ(),[r,a]=(0,e.useState)(!1),[i,o]=(0,e.useState)(!1),[s,l]=(0,e.useState)(""),[c,u]=(0,e.useState)(!1),[d,p]=(0,e.useState)(!1);return(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:i,setShowSignifier:o,message:s,error:c}),(0,Tl.jsx)(FW,{hover:!0,className:t.index%2?n.rowCell:n.rowCellOdd,ref:t.innerRef,...t,children:t.columns.map(((e,r)=>(0,Tl.jsx)(HW,{align:"left",className:n.tableCell,children:"Delete"===e.label?(0,Tl.jsx)(FS,{title:"Delete Featured Job",children:(0,Tl.jsx)(hm,{onClick:e=>function(e){e.preventDefault(),a(!0)}(e),size:"large",children:(0,Tl.jsx)(qW,{})})}):""===e.label?(0,Tl.jsx)(Px,{size:"large",className:n.itemIcon,children:(0,Tl.jsx)(_m,{})}):t.element.ad[e.propName]},r)))},t.index),(0,Tl.jsx)(jW,{open:r,onClose:()=>a(!1),children:(0,Tl.jsx)(gU,{question:"Delete this featured job?",func:()=>{vU(RY(t.element.id),"Job Deleted",o,l,u,p).then((()=>{MY(t.element.clientId).then((e=>{e.sort(((e,t)=>{const n=kU(e.order,t.order);return 0!==n?n:e[1]-t[1]})),t.setTableData(e)}))}))},closeModal:()=>a(!1)})})]})}const UZ=cb((e=>({root:{[e.breakpoints.down("md")]:{width:"100%"},justifyContent:"space-between",minWidth:"20vw",display:"flex",flexDirection:"column"},search:{position:"relative",paddingLeft:"5px",borderRadius:e.shape.borderRadius,backgroundColor:"rgba(0,0,0,.1)","&:hover":{backgroundColor:"rgba(0,0,0,.2)"},marginBottom:"20px",width:"80%","&.Mui-focused":{width:"100%",transition:"width 0.3s"},transition:"width 0.3s",[e.breakpoints.down("md")]:{width:"50%","&.Mui-focused":{width:"100%",transition:"width 0.3s"}}},copy:{color:e.palette.primary.copy},searchButton:{marginTop:"15px",marginLeft:"10px",[e.breakpoints.down("md")]:{marginLeft:0}}})));function $Z(t){let{openModal:n,setTableData:r,setShowSignifier:a,setResponseMessage:i,setShowError:o,client:s}=t;const l=UZ(),[c,u]=(0,e.useState)([]),[d,p]=(0,e.useState)(""),[h,f]=(0,e.useState)(!1);return(0,Tl.jsxs)("div",{className:l.root,children:[(0,Tl.jsx)(fU,{loading:h}),(0,Tl.jsx)(CN,{children:(0,Tl.jsx)(WM,{children:(0,Tl.jsxs)(SU,{children:[(0,Tl.jsx)(MU,{style:{fontWeight:"bold"},children:"Add Featured Jobs"}),(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:9,children:(0,Tl.jsx)(FU,{placeholder:"Ref. Numbers ( ; delimited - no spaces)",label:"Ref. Numbers ( ; delimited - no spaces)",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:l.copy},value:d,onChange:e=>p(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:3,children:(0,Tl.jsx)(vW,{className:l.searchButton,type:"submit",variant:"contained",color:"primary",fullWidth:!0,onClick:()=>{cX(s.id,d).then((e=>{e.forEach((e=>e.add=!1)),u(e)}))},children:"Search"})}),c.map(((e,t)=>(0,Tl.jsxs)(FW,{style:{width:"100%"},children:[(0,Tl.jsx)(HW,{align:"left",style:{width:"50%"},children:e.title}),(0,Tl.jsx)(HW,{align:"middle",style:{width:"50%"},children:e.referenceNumber}),(0,Tl.jsx)(HW,{align:"right",style:{width:"50%"},children:(0,Tl.jsx)($Y,{control:(0,Tl.jsx)(lX,{color:"primary",checked:e.add,onChange:()=>(e=>{var t=[...c];t[e].add=!t[e].add,u(t)})(t)}),label:""})})]},t))),c.length>0?(0,Tl.jsxs)(CN,{container:!0,justifyContent:"flex-end",direction:"row",style:{marginRight:"10px"},children:[(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{color:"#82B288",marginTop:"20px"},type:"submit",variant:"outlined",fullWidth:!0,onClick:()=>n(!1),children:"Cancel"})}),(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginLeft:"10px"},type:"submit",variant:"contained",color:"primary",fullWidth:!0,onClick:()=>(()=>{var e=[];for(var t in c)c[t].add&&e.push(c[t]);vU(IY(s.id,void 0,e),"Jobs Added",a,i,o,f).then((()=>{MY(s.id).then((e=>{e.sort(((e,t)=>{const n=kU(e.order,t.order);return 0!==n?n:e[1]-t[1]})),r(e),n(!1)}))}))})(),children:"Add"})})]}):null]})]})})})]})}const HZ=function(){const t=cb((e=>({root:{width:"50%",[e.breakpoints.down("md")]:{width:"100%"}},autocomplete:{width:"35%",paddingBottom:"20px",[e.breakpoints.down("md")]:{width:"100%"}},hint:{position:"absolute",left:0,right:0,top:0,bottom:0,marginTop:"auto",marginBottom:"auto",marginLeft:"auto",marginRight:"auto",width:"300px",height:"300px",fontSize:"32px",textAlign:"center",color:"rgba(0,0,0,.6)"}}))),n=t(),r=Oc(qC),[a,i]=(0,e.useState)([]),[o,s]=(0,e.useState)(!0),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(""),[f,m]=(0,e.useState)(!1),[g,v]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{if(a.length>0&&!o){var e=[...a];e.forEach(((e,t)=>e.order=t+1)),_Y(r.id,void 0,e)}}),[a]),(0,e.useEffect)((()=>{null!==r&&(s(!0),MY(r.id).then((e=>{e.sort(((e,t)=>{const n=kU(e.order,t.order);return 0!==n?n:e[1]-t[1]})),i(e),s(!1)})))}),[r]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:u,setShowSignifier:d,message:p,error:f}),(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[r.shortName," Featured Jobs"]}),(0,Tl.jsx)("div",{className:n.root,children:null===r?(0,Tl.jsx)("div",{className:n.hint,children:(0,Tl.jsx)("span",{children:"Select a client"})}):(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:12,children:[(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginBottom:"20px",marginRight:"20px"},type:"submit",variant:"contained",color:"primary",onClick:()=>function(){var e=[...a];e.sort(((e,t)=>{var n,r;const a=kU(null===e||void 0===e||null===(n=e.ad)||void 0===n?void 0:n.title.toUpperCase(),null===t||void 0===t||null===(r=t.ad)||void 0===r?void 0:r.title.toUpperCase());return 0!==a?a:e[1]-t[1]})),i(e),e.forEach(((e,t)=>e.order=t+1)),vU(_Y(r.id,void 0,e),"Order Updated",d,h,m,v)}(),children:"Order Alphabetically"}),(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginBottom:"20px"},type:"submit",variant:"contained",color:"primary",onClick:()=>c(!l),children:"Add Job"})]}),(0,Tl.jsx)(NY,{columns:[{label:"Name",propName:"title"},{label:"Ref. Number",propName:"referenceNumber"},{label:"Delete",propName:""},{label:"",propName:""}],tableData:a,setTableData:i,rowComponent:WZ,loading:o})]})})]}),(0,Tl.jsx)(jW,{open:l,onClose:()=>c(!1),fullWidth:!0,maxWidth:"sm",children:(0,Tl.jsx)($Z,{openModal:c,client:r,setShowSignifier:d,setResponseMessage:h,setShowError:m,setTableData:i})})]})},qZ=e=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/eventsponsor/"+e).then((e=>e.data)),GZ=cb((e=>({rowCell:{cursor:"pointer !important",background:e.palette.primary.blue,textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},rowCellOdd:{cursor:"pointer !important",background:"white",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},image:{maxWidth:"100px",height:"auto"},tableCell:{color:e.palette.primary.copy}})));function KZ(t){let{columns:n,element:r,index:a,setTableData:i}=t;const o=GZ(),[s,l]=(0,e.useState)(!1),[c,u]=(0,e.useState)(!1),[d,p]=(0,e.useState)(""),[h,f]=(0,e.useState)(!1),[m,g]=(0,e.useState)(!1),v=()=>{var e;vU((e=r.id,tl().delete(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/eventsponsor/deleteEventSponsor/"+e).then((e=>e))),"Sponsor Deleted",u,p,f,g).then((()=>{qZ(r.clientId).then((e=>{e.forEach((e=>e.imagePath="data:"+e.contentType+";base64,"+e.logo)),i(e)}))}))};return(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:c,setShowSignifier:u,message:d,error:h}),(0,Tl.jsx)(FW,{hover:!0,className:a%2?o.rowCell:o.rowCellOdd,component:ch,to:{pathname:"/eventsponsors/eventsponsordetailed",state:r},children:n.map(((e,t)=>(0,Tl.jsx)(HW,{align:"left",className:o.tableCell,children:"Delete"===e.label?(0,Tl.jsx)(FS,{title:"Delete Featured Event",children:(0,Tl.jsx)(hm,{onClick:e=>function(e){e.preventDefault(),l(!0)}(e),size:"large",children:(0,Tl.jsx)(qW,{})})}):"Logo"===e.label?(0,Tl.jsx)("img",{className:o.image,src:r[e.propName]}):r[e.propName]},t)))},a),(0,Tl.jsx)(jW,{open:s,onClose:()=>l(!1),children:(0,Tl.jsx)(gU,{question:"Delete this event sponsor?",func:()=>v(),closeModal:()=>l(!1)})})]})}function YZ(e,t){let n=new FileReader;n.readAsDataURL(e),n.onload=function(){t(n.result)},n.onerror=function(e){console.log("Error: ",e)}}const XZ=cb((e=>({root:{[e.breakpoints.down("md")]:{width:"100%"},justifyContent:"space-between",width:"100%",display:"flex",flexDirection:"column"},copy:{color:e.palette.primary.copy}})));function ZZ(t){let{openModal:n,client:r,setShowSignifier:a,setResponseMessage:i,setShowError:o,setTableData:s}=t;const l=XZ(),[c,u]=(0,e.useState)(!1),[d,p]=(0,e.useState)(""),[h,f]=(0,e.useState)(""),[m,g]=(0,e.useState)([]),[v,y]=(0,e.useState)(""),[b,x]=(0,e.useState)(""),[w,S]=(0,e.useState)(!1);function C(){if(!A())return void S(!0);let e={ClientId:r.id,Name:v,Link:b,base64:m,ContentType:h};var t;vU((t=e,tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/eventsponsor/addEventSponsor",t).then((e=>e.data))),"Sponsor Added",a,i,o,u).then((()=>{qZ(r.id).then((e=>{e.forEach((e=>e.imagePath="data:"+e.contentType+";base64,"+e.logo)),s(e),n(!1)}))}))}const A=()=>""!==d&&""!==b&&""!==v;return(0,Tl.jsxs)("div",{className:l.root,children:[(0,Tl.jsx)(fU,{loading:c}),(0,Tl.jsx)(CN,{children:(0,Tl.jsx)(WM,{children:(0,Tl.jsxs)(SU,{children:[(0,Tl.jsx)(MU,{style:{fontWeight:"bold"},children:"Add Event Sponsor"}),(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:6,children:[(0,Tl.jsx)(FU,{placeholder:"Name",label:"Name",variant:"standard",fullWidth:!0,required:!0,error:w&&""===v,InputProps:{className:l.copy},value:v,onChange:e=>y(e.target.value)}),w&&""===v&&(0,Tl.jsx)(MU,{className:l.error,children:"Name Required"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:6,children:[(0,Tl.jsx)(FU,{placeholder:"Link",label:"Link",variant:"standard",fullWidth:!0,required:!0,error:w&&""===b,InputProps:{className:l.copy},value:b,onChange:e=>x(e.target.value)}),w&&""===b&&(0,Tl.jsx)(MU,{className:l.error,children:"Link Required"})]}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:2,children:(0,Tl.jsxs)("label",{htmlFor:"contained-button-file",children:[(0,Tl.jsx)(uM,{accept:"image/*",id:"contained-button-file",multiple:!0,type:"file",style:{display:"none"},onChange:e=>(e=>{var t=e.target.files[0].type;"image/png"===t||"image/jpeg"===t?YZ(e.target.files[0],(t=>{g(t.split("base64,")[1]),p(e.target.files[0].name),f(e.target.files[0].type)})):S(!0)})(e)}),(0,Tl.jsx)(vW,{variant:"contained",color:"primary",component:"span",style:{marginTop:"10px"},children:"Upload"})]})}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:10,children:[(0,Tl.jsx)(FU,{placeholder:"File Name",label:"File Name",variant:"standard",fullWidth:!0,required:!0,disabled:!0,error:w,InputProps:{className:l.copy},value:d}),w&&(0,Tl.jsx)(MU,{className:l.error,children:"Image Required"})]}),(0,Tl.jsxs)(CN,{container:!0,justifyContent:"flex-end",direction:"row",style:{marginRight:"10px"},children:[(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{color:"#82B288",marginTop:"20px"},type:"submit",variant:"outlined",fullWidth:!0,onClick:()=>n(!1),children:"Cancel"})}),(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginLeft:"10px"},type:"submit",variant:"contained",color:"primary",fullWidth:!0,onClick:()=>C(),children:"Save"})})]})]})]})})})]})}const JZ=function(){const t=cb((e=>({root:{width:"50%",[e.breakpoints.down("md")]:{width:"100%"}},autocomplete:{width:"35%",paddingBottom:"20px",[e.breakpoints.down("md")]:{width:"100%"}},hint:{position:"absolute",left:0,right:0,top:0,bottom:0,marginTop:"auto",marginBottom:"auto",marginLeft:"auto",marginRight:"auto",width:"300px",height:"300px",fontSize:"32px",textAlign:"center",color:"rgba(0,0,0,.6)"}}))),n=t(),r=Oc(qC),[a,i]=(0,e.useState)([]),[o,s]=(0,e.useState)(!0),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(""),[f,m]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{null!==r&&(s(!0),qZ(r.id).then((e=>{e.forEach((e=>e.imagePath="data:"+e.contentType+";base64,"+e.logo)),i(e),s(!1)})))}),[r]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:u,setShowSignifier:d,message:p,error:f}),(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[r.shortName," Event Sponsors"]}),(0,Tl.jsx)("div",{className:n.root,children:null===r?(0,Tl.jsx)("div",{className:n.hint,children:(0,Tl.jsx)("span",{children:"Select a client"})}):(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginBottom:"20px"},type:"submit",variant:"contained",color:"primary",onClick:()=>c(!l),children:"Add Event Sponsor"})}),(0,Tl.jsx)(GX,{columns:[{label:"Name",propName:"name"},{label:"Logo",propName:"imagePath"},{label:"Delete",propName:""}],tableData:a,rowComponent:KZ,loading:o,setTableData:i,defaultSortIndex:1})]})}),(0,Tl.jsx)(jW,{open:l,onClose:()=>c(!1),children:(0,Tl.jsx)(ZZ,{openModal:c,client:r,setShowSignifier:d,setResponseMessage:h,setShowError:m,setTableData:i})})]})]})};const QZ=function(){const t=cb((e=>({root:{width:"50%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},card:{marginTop:"20px"},cardContainer:{[e.breakpoints.down("md")]:{width:"100%",overflowY:"scroll"},display:"flex",flexDirection:"column",marginBottom:"20px",width:"50%"},error:{color:e.palette.error.main},image:{maxWidth:"100px",height:"auto"},copy:{color:e.palette.primary.copy}}))),n=t();let r=zu();const[a,i]=(0,e.useState)(!1),[o,s]=(0,e.useState)(""),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(""),[p,h]=(0,e.useState)(!1),f=Oc(qC),[m,g]=(0,e.useState)(""),[v,y]=(0,e.useState)(""),[b,x]=(0,e.useState)([]),[w,S]=(0,e.useState)(""),[C,A]=(0,e.useState)(""),[k,T]=(0,e.useState)(!1),[j,E]=(0,e.useState)(""),[P,N]=(0,e.useState)("");function D(){if(!M())return void T(!0);var e;vU((e={Id:P,ClientId:u,Name:w,Link:C,base64:b,ContentType:v},tl().put(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/eventsponsor/editeventsponsor",e).then((e=>e))),"Sponsor Saved",i,s,c,h)}const M=()=>""!==C&&""!==w;return(0,e.useEffect)((()=>{null!==r.state&&void 0!==r.state&&(S(r.state.name),A(r.state.link),E(r.state.imagePath),d(r.state.clientId),N(r.state.id),x(r.state.imagePath.split("base64,")[1]))}),[]),null===r.state||void 0===r.state||f.id!==u&&""!==u?(0,Tl.jsx)(ju,{to:"/eventsponsors"}):(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:a,setShowSignifier:i,message:o,error:l}),(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsxs)("h1",{className:"page-title",children:[f.shortName," Event Sponsor Detailed"]}),(0,Tl.jsx)(oW,{}),(0,Tl.jsx)("div",{className:n.root,children:(0,Tl.jsx)(CN,{container:!0,spacing:1,children:(0,Tl.jsx)(WM,{className:n.card,children:(0,Tl.jsx)(SU,{children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsxs)(CN,{xs:12,sm:6,item:!0,children:[(0,Tl.jsx)(FU,{placeholder:"Name",label:"Name",variant:"standard",fullWidth:!0,required:!0,error:k&&""===w,InputProps:{className:n.copy},value:w,onChange:e=>S(e.target.value)}),k&&""===w&&(0,Tl.jsx)(MU,{className:n.error,children:"Name Required"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:6,children:[(0,Tl.jsx)(FU,{placeholder:"Link",label:"Link",variant:"standard",fullWidth:!0,required:!0,error:k&&""===C,InputProps:{className:n.copy},value:C,onChange:e=>A(e.target.value)}),k&&""===C&&(0,Tl.jsx)(MU,{className:n.error,children:"Link Required"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:2,children:[(0,Tl.jsxs)("label",{htmlFor:"contained-button-file",children:[(0,Tl.jsx)(uM,{accept:"image/*",id:"contained-button-file",multiple:!0,type:"file",style:{display:"none"},onChange:e=>(e=>{var t=e.target.files[0].type;"image/png"===t||"image/jpeg"===t?YZ(e.target.files[0],(t=>{x(t.split("base64,")[1]),g(e.target.files[0].name),y(e.target.files[0].type)})):T(!0)})(e)}),(0,Tl.jsx)(vW,{variant:"contained",color:"primary",component:"span",style:{marginTop:"10px"},children:"Upload"})]}),k&&(0,Tl.jsx)(MU,{className:n.error,children:"Image Required"})]}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:8,children:(0,Tl.jsx)(FU,{placeholder:"File Name",label:"File Name",variant:"standard",fullWidth:!0,required:!0,disabled:!0,InputProps:{className:n.copy},value:m})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:2,children:(0,Tl.jsx)("img",{className:n.image,src:j})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,container:!0,justifyContent:"flex-end",children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginRight:"8px"},className:n.sensitiveButton,type:"submit",variant:"contained",color:"primary",onClick:()=>D(),children:"Save Information"})})]})})})})})]})]})},eJ=1,tJ=2,nJ=3,rJ=cb((e=>({rowCell:{cursor:"pointer",background:e.palette.primary.blue,textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},rowCellOdd:{cursor:"default !important",background:"white",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},tableCell:{color:e.palette.primary.copy}})));function aJ(e){let{columns:t,element:n,index:r,setTableData:a}=e;const i=rJ();return(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsx)(FW,{hover:!0,className:i.rowCell,component:ch,to:{pathname:"/jobgroups/jobgroupdetailed",state:n},className:r%2?i.rowCell:i.rowCellOdd,children:t.map(((e,t)=>(0,Tl.jsx)(HW,{align:"left",className:i.tableCell,children:n[e.propName]},t)))},r)})}const iJ=function(t){let{jobType:n}=t;const r=cb((e=>({root:{width:"100%",[e.breakpoints.down("md")]:{width:"100%"}},autocomplete:{width:"35%",paddingBottom:"20px",[e.breakpoints.down("md")]:{width:"100%"}},hint:{position:"absolute",left:0,right:0,top:0,bottom:0,marginTop:"auto",marginBottom:"auto",marginLeft:"auto",marginRight:"auto",width:"300px",height:"300px",fontSize:"32px",textAlign:"center",color:"rgba(0,0,0,.6)"}}))),a=r(),i=Oc(qC),[o,s]=(0,e.useState)([]),[l,c]=(0,e.useState)(!0);return(0,e.useEffect)((()=>{null!==i&&((e,t)=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/jobgroups/"+e+"/"+t).then((e=>e.data)))(i.id,n).then((e=>{s(e),c(!1)}))}),[i]),(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsx)("div",{className:a.root,children:null===i?(0,Tl.jsx)("div",{className:a.hint,children:(0,Tl.jsx)("span",{children:"Select a client"})}):(0,Tl.jsx)(CN,{container:!0,spacing:1,children:(0,Tl.jsx)(GX,{columns:[{label:"Name",propName:"name"},{label:"ATS Name",propName:"atsname"}],tableData:o,rowComponent:aJ,loading:l,setTableData:s,defaultSortIndex:1})})})})};const oJ=function(){const e=cb((e=>({root:{width:"50%",[e.breakpoints.down("md")]:{width:"100%"}},autocomplete:{width:"35%",paddingBottom:"20px",[e.breakpoints.down("md")]:{width:"100%"}},hint:{position:"absolute",left:0,right:0,top:0,bottom:0,marginTop:"auto",marginBottom:"auto",marginLeft:"auto",marginRight:"auto",width:"300px",height:"300px",fontSize:"32px",textAlign:"center",color:"rgba(0,0,0,.6)"}}))),t=e(),n=Oc(qC),r=[{title:"Industries",component:(0,Tl.jsx)(iJ,{jobType:nJ})},{title:"Families",component:(0,Tl.jsx)(iJ,{jobType:tJ})},{title:"Categories",component:(0,Tl.jsx)(iJ,{jobType:eJ})}];return(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[n.shortName," Job Groups"]}),(0,Tl.jsx)("div",{className:t.root,children:null===n?(0,Tl.jsx)("div",{className:t.hint,children:(0,Tl.jsx)("span",{children:"Select a client"})}):(0,Tl.jsx)(FZ,{tabs:r})})]})})};const sJ=function(){const t=cb((e=>({root:{width:"90%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},cardContainer:{[e.breakpoints.down("md")]:{width:"100%",overflowY:"scroll"},display:"flex",flexDirection:"column",marginBottom:"20px",width:"50%"},error:{color:e.palette.error.main},header:{[e.breakpoints.down("md")]:{flexDirection:"column",marginTop:"10px"},display:"flex"},descBlock:{display:"flex"},descLabel:{margin:"0px",fontWeight:"700",marginBottom:"10px"},descValue:{margin:"0px",marginLeft:"5px",marginRight:"20px"},copy:{color:e.palette.primary.copy}}))),n=t();let r=zu();const[a,i]=(0,e.useState)(!1),[o,s]=(0,e.useState)(""),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(!1),p=Oc(qC),[h,f]=(0,e.useState)(""),[m,g]=(0,e.useState)(""),[v,y]=(0,e.useState)(""),[b,x]=(0,e.useState)(""),[w,S]=(0,e.useState)("");function C(){vU(((e,t)=>tl().put(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/jobgroups/editjobgroup/"+e,t).then((e=>e.data)))(w,{Id:w,Name:m,remarketingCode:v}),"Group Saved",i,s,c,d)}return(0,e.useEffect)((()=>{null!==r.state&&void 0!==r.state&&(f(r.state.clientId),g(r.state.name),y(r.state.remarketingCode),x(r.state.atsname),S(r.state.id))}),[]),null===r.state||void 0===r.state||p.id!==h&&""!==h?(0,Tl.jsx)(ju,{to:"/jobgroups"}):(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:a,setShowSignifier:i,message:o,error:l}),(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[p.shortName," Job Group Detailed"]}),(0,Tl.jsxs)("div",{className:n.root,children:[(0,Tl.jsx)("div",{className:n.header,children:(0,Tl.jsxs)("div",{className:n.descBlock,children:[(0,Tl.jsx)("p",{className:n.descLabel,children:"INDUSTRY ATS NAME: "}),(0,Tl.jsx)("p",{className:n.descValue,children:b})]})}),(0,Tl.jsx)(CN,{className:n.cardContainer,children:(0,Tl.jsx)(WM,{className:n.card,children:(0,Tl.jsx)(SU,{children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{xs:12,sm:6,item:!0,children:(0,Tl.jsx)(FU,{placeholder:"Industry Name",label:"Industry Name",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:n.copy},value:m,onChange:e=>g(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(FU,{placeholder:"Remarketing Code",label:"Remarketing Code",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:n.copy},value:v,onChange:e=>y(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,container:!0,justifyContent:"flex-end",children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginRight:"8px"},className:n.sensitiveButton,type:"submit",variant:"contained",color:"primary",onClick:()=>C(),children:"Save Information"})})]})})})})]})]})]})},lJ=e=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/emailapplylink/"+e).then((e=>e.data));const cJ=function(){const t=cb((e=>({root:{width:"100%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},cardContainer:{[e.breakpoints.down("md")]:{width:"100%",overflowY:"scroll"},display:"flex",flexDirection:"column",marginBottom:"20px",width:"50%"},error:{color:e.palette.error.main},copy:{color:e.palette.primary.copy}}))),n=t(),r=Oc(qC),[a,i]=(0,e.useState)(!1),[o,s]=(0,e.useState)(""),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(!1),[f,m]=(0,e.useState)(!1),[g,v]=(0,e.useState)(0),[y,b]=(0,e.useState)(""),[x,w]=(0,e.useState)("");function S(){vU((e=>tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/emailapplylink/editemailapplylink",e).then((e=>e.data)))({ClientId:r.id,HasEmailApply:p,UseApplyLink:f,PreText:y,PostText:x,ActivateResolution:g}),"Email Apply Link Saved",i,s,c,d).then((()=>{lJ(r.id).then((e=>{h(e.hasEmailApply),m(e.useApplyLink),v(e.activateResolution),b(null===e.preText?"":e.preText),w(null===e.postText?"":e.postText)}))}))}return(0,e.useEffect)((()=>{null!==r&&lJ(r.id).then((e=>{h(e.hasEmailApply),m(e.useApplyLink),v(e.activateResolution),b(null===e.preText?"":e.preText),w(null===e.postText?"":e.postText)}))}),[r]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:a,setShowSignifier:i,message:o,error:l}),(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[r.shortName," Email Apply Link"]}),(0,Tl.jsx)("div",{className:n.root,children:(0,Tl.jsx)(CN,{className:n.cardContainer,children:(0,Tl.jsx)(WM,{className:n.card,children:(0,Tl.jsx)(SU,{children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{xs:12,sm:4,item:!0,children:(0,Tl.jsx)($Y,{style:{marginTop:"10px"},className:n.copy,control:(0,Tl.jsx)(lX,{color:"primary",checked:p,onChange:()=>h(!p)}),label:"Use Email Apply Link"})}),(0,Tl.jsx)(CN,{xs:12,sm:8,item:!0,children:(0,Tl.jsx)($Y,{style:{marginTop:"10px"},className:n.copy,control:(0,Tl.jsx)(lX,{color:"primary",checked:f,onChange:()=>m(!f)}),label:"Apply Link (Checked) - Job Description (Unchecked)"})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Activate Screen Width",label:"Activate Screen Width",variant:"standard",fullWidth:!0,required:!0,type:"number",InputProps:{className:n.copy},value:g,onChange:e=>v(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Modal Pre Text",label:"Modal Pre Text",variant:"standard",fullWidth:!0,required:!0,value:y,onChange:e=>b(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Modal Post Text",label:"Modal Post Text",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:n.copy},value:x,onChange:e=>w(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,container:!0,justifyContent:"flex-end",children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginRight:"8px"},className:n.sensitiveButton,type:"submit",variant:"contained",color:"primary",onClick:()=>S(),children:"Save Information"})})]})})})})})]})]})},uJ=e=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/pixels/"+e).then((e=>e.data)),dJ=e=>tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/pixels/editpixel",e).then((e=>e.data)),pJ={MiQUniversal:{name:"MiQ Universal",val:1},MiQLandingPage:{name:"MiQ Landing Page",val:2},MiQConversion:{name:"MiQ Conversion",val:3}},hJ=cb((e=>({rowCell:{cursor:"pointer !important",background:e.palette.primary.blue,textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},rowCellOdd:{cursor:"pointer !important",background:"white",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},itemIcon:{cursor:"grab"},tableCell:{[e.breakpoints.down("md")]:{width:"auto"},width:"300px"}})));function fJ(t){const n=hJ(t),[r,a]=(0,e.useState)(!1),[i,o]=(0,e.useState)(!1),[s,l]=(0,e.useState)(""),[c,u]=(0,e.useState)(!1),[d,p]=(0,e.useState)(!1);function h(){var e;vU((e=t.element.id,tl().delete(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/pixels/deletepixel/"+e).then((e=>e))),"Pixel Deleted",o,l,u,p).then((()=>{uJ(t.element.clientId).then((e=>{e.forEach((e=>e.typeName=pJ[Object.keys(pJ).find((t=>{var n;return(null===(n=pJ[t])||void 0===n?void 0:n.val)===e.type}))].name)),t.setTableData(e)}))}))}return(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:i,setShowSignifier:o,message:s,error:c}),(0,Tl.jsx)(FW,{hover:!0,className:t.index%2?n.rowCell:n.rowCellOdd,component:ch,to:{pathname:"/trackingpixels/trackingpixeldetailed",state:t.element},ref:t.innerRef,...t,children:t.columns.map(((e,r)=>(0,Tl.jsx)(HW,{align:"left",className:n.tableCell,children:"Delete"===e.label?(0,Tl.jsx)(FS,{title:"Delete Pixel",children:(0,Tl.jsx)(hm,{onClick:e=>function(e){e.preventDefault(),a(!0)}(e),size:"large",children:(0,Tl.jsx)(qW,{})})}):t.element[e.propName]},r)))},t.index),(0,Tl.jsx)(jW,{open:r,onClose:()=>a(!1),children:(0,Tl.jsx)(gU,{question:"Delete this tracking pixel?",func:()=>h(),closeModal:()=>a(!1)})})]})}const mJ=cb((e=>({formControl:{width:"100%"},formTitle:{color:e.palette.primary.main},formTitleError:{color:e.palette.error.main},select:{color:e.palette.primary.copy,"&:before":{borderColor:e.palette.primary.main},"&:after":{borderColor:e.palette.primary.main}},selectError:{"&:before":{borderColor:e.palette.error.main},"&:after":{borderColor:e.palette.error.main}},copy:{color:e.palette.primary.copy}})));function gJ(e){let{currValue:t,items:n,handleChange:r,property:a,title:i,multi:o,error:s,emptyRow:l}=e;const c=mJ();return(0,Tl.jsxs)(PN,{variant:"standard",className:c.formControl,children:[(0,Tl.jsx)(VN,{className:s?c.formTitleError:c.formTitle,children:i}),(0,Tl.jsxs)(LM,{variant:"standard",value:t,onChange:e=>{r(e.target.value)},className:s?c.selectError:c.select,multiple:void 0!==o&&o,children:[l?(0,Tl.jsx)(lx,{value:"",children:"\xa0"}):null,n.map(((e,t)=>(0,Tl.jsx)(lx,{value:e,className:c.copy,children:e[a]},t)))]})]})}const vJ=cb((e=>({root:{[e.breakpoints.down("md")]:{width:"100%"},justifyContent:"space-between",width:"100%",display:"flex",flexDirection:"column"},error:{color:e.palette.error.main}})));function yJ(t){let{openModal:n,client:r,setShowSignifier:a,setResponseMessage:i,setShowError:o,setTableData:s}=t;const l=vJ(),[c,u]=(0,e.useState)(!1),[d,p]=(0,e.useState)(!1),[h,f]=(0,e.useState)(!1),[m,g]=(0,e.useState)(""),[v,y]=(0,e.useState)(""),[b,x]=(0,e.useState)(""),[w,S]=(0,e.useState)([{name:"MiQ Universal",val:1},{name:"MiQ Landing Page",val:2},{name:"MiQ Conversion",val:3}]);function C(){if(""===m||""===v)return void p(!0);let e={ClientId:r.id,Name:m,Type:b.val,Endpoint:v,IsActive:h};vU(dJ(e),"Pixel Added",a,i,o,u).then((()=>{uJ(r.id).then((e=>{e.forEach((e=>e.typeName=pJ[Object.keys(pJ).find((t=>{var n;return(null===(n=pJ[t])||void 0===n?void 0:n.val)===e.type}))].name)),s(e),n(!1)}))}))}return(0,Tl.jsxs)("div",{className:l.root,children:[(0,Tl.jsx)(fU,{loading:c}),(0,Tl.jsx)(CN,{children:(0,Tl.jsx)(WM,{children:(0,Tl.jsxs)(SU,{children:[(0,Tl.jsx)(MU,{style:{fontWeight:"bold"},children:"Add Tracking Pixel"}),(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(gJ,{currValue:b,items:w,property:"name",title:"Type",handleChange:e=>x(e)})}),(0,Tl.jsx)(CN,{xs:12,sm:12,item:!0,children:(0,Tl.jsx)($Y,{control:(0,Tl.jsx)(lX,{color:"primary",checked:h,onChange:()=>f(!h)}),label:"Is Active?"})}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:6,children:[(0,Tl.jsx)(FU,{placeholder:"Name",label:"Name",variant:"standard",fullWidth:!0,required:!0,error:d&&""===m,value:m,onChange:e=>g(e.target.value)}),d&&""===m&&(0,Tl.jsx)(MU,{className:l.error,children:"Name Required"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:6,children:[(0,Tl.jsx)(FU,{placeholder:"Endpoint",label:"Endpoint",variant:"standard",fullWidth:!0,required:!0,error:d&&""===v,value:v,onChange:e=>y(e.target.value)}),d&&""===v&&(0,Tl.jsx)(MU,{className:l.error,children:"Endpoint Required"})]}),(0,Tl.jsxs)(CN,{container:!0,justifyContent:"flex-end",direction:"row",style:{marginRight:"10px"},children:[(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{color:"#82B288",marginTop:"20px"},type:"submit",variant:"outlined",fullWidth:!0,onClick:()=>n(!1),children:"Cancel"})}),(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginLeft:"10px"},type:"submit",variant:"contained",color:"primary",fullWidth:!0,onClick:()=>C(),children:"Save"})})]})]})]})})})]})}const bJ=function(){const t=cb((e=>({root:{width:"50%",[e.breakpoints.down("md")]:{width:"100%"}},autocomplete:{width:"35%",paddingBottom:"20px",[e.breakpoints.down("md")]:{width:"100%"}},hint:{position:"absolute",left:0,right:0,top:0,bottom:0,marginTop:"auto",marginBottom:"auto",marginLeft:"auto",marginRight:"auto",width:"300px",height:"300px",fontSize:"32px",textAlign:"center",color:"rgba(0,0,0,.6)"}}))),n=t(),r=Oc(qC),[a,i]=(0,e.useState)([]),[o,s]=(0,e.useState)(!0),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(""),[f,m]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{null!==r&&(s(!0),uJ(r.id).then((e=>{e.forEach((e=>{var t;return e.typeName=null===(t=pJ[Object.keys(pJ).find((t=>pJ[t].val===e.type))])||void 0===t?void 0:t.name})),i(e),s(!1)})))}),[r]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:u,setShowSignifier:d,message:p,error:f}),(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[r.shortName," Tracking Pixels"]}),(0,Tl.jsx)("div",{className:n.root,children:null===r?(0,Tl.jsx)("div",{className:n.hint,children:(0,Tl.jsx)("span",{children:"Select a client"})}):(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginBottom:"20px"},type:"submit",variant:"contained",color:"primary",onClick:()=>c(!l),children:"Add Pixel"})}),(0,Tl.jsx)(GX,{columns:[{label:"ID",propName:"id"},{label:"Name",propName:"name"},{label:"Type",propName:"typeName"},{label:"Delete",propName:""}],tableData:a,setTableData:i,rowComponent:fJ,loading:o,defaultSortIndex:1})]})})]}),(0,Tl.jsx)(jW,{open:l,onClose:()=>c(!1),children:(0,Tl.jsx)(yJ,{openModal:c,client:r,setShowSignifier:d,setResponseMessage:h,setShowError:m,setTableData:i})})]})};const xJ=function(){const t=cb((e=>({root:{width:"90%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},cardContainer:{[e.breakpoints.down("md")]:{width:"100%",overflowY:"scroll"},display:"flex",flexDirection:"column",marginBottom:"20px",width:"50%"},error:{color:e.palette.error.main},copy:{color:e.palette.primary.copy}}))),n=t();let r=zu();const[a,i]=(0,e.useState)(!1),[o,s]=(0,e.useState)(""),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(!1),f=Oc(qC),[m,g]=(0,e.useState)(""),[v,y]=(0,e.useState)(""),[b,x]=(0,e.useState)(!1),[w,S]=(0,e.useState)(""),[C,A]=(0,e.useState)(""),[k,T]=(0,e.useState)(""),[j,E]=(0,e.useState)([{name:"MiQ Universal",val:1},{name:"MiQ Landing Page",val:2},{name:"MiQ Conversion",val:3}]);function P(){if(""===w||""===C)return void d(!0);let e={Id:m,ClientId:v,Name:w,Type:k.val,Endpoint:C,IsActive:b};vU(dJ(e),"Pixel Saved",i,s,c,h)}return(0,e.useEffect)((()=>{if(null!==r.state&&void 0!==r.state)for(var e in y(r.state.clientId),x(r.state.isActive),S(r.state.name),A(r.state.endpoint),g(r.state.id),j)j[e].val===r.state.type&&T(j[e])}),[]),null===r.state||void 0===r.state||f.id!==v&&""!==v?(0,Tl.jsx)(ju,{to:"/trackingpixels"}):(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:a,setShowSignifier:i,message:o,error:l}),(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[f.shortName," Tracking Pixel Detailed"]}),(0,Tl.jsx)("div",{className:n.root,children:(0,Tl.jsx)(CN,{className:n.cardContainer,children:(0,Tl.jsx)(WM,{className:n.card,children:(0,Tl.jsx)(SU,{children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(gJ,{currValue:k,items:j,property:"name",title:"Type",handleChange:e=>T(e)})}),(0,Tl.jsx)(CN,{xs:12,sm:12,item:!0,children:(0,Tl.jsx)($Y,{className:n.copy,control:(0,Tl.jsx)(lX,{color:"primary",checked:b,onChange:()=>x(!b)}),label:"Is Active?"})}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:6,children:[(0,Tl.jsx)(FU,{placeholder:"Name",label:"Name",variant:"standard",fullWidth:!0,required:!0,error:u&&""===w,InputProps:{className:n.copy},value:w,onChange:e=>S(e.target.value)}),u&&""===w&&(0,Tl.jsx)(MU,{className:n.error,children:"Name Required"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:6,children:[(0,Tl.jsx)(FU,{placeholder:"Endpoint",label:"Endpoint",variant:"standard",fullWidth:!0,required:!0,error:u&&""===C,InputProps:{className:n.copy},value:C,onChange:e=>A(e.target.value)}),u&&""===C&&(0,Tl.jsx)(MU,{className:n.error,children:"Endpoint Required"})]}),(0,Tl.jsxs)(CN,{container:!0,justifyContent:"flex-end",direction:"row",style:{marginRight:"10px"},children:[(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3}),(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginLeft:"10px"},type:"submit",variant:"contained",color:"primary",fullWidth:!0,onClick:()=>P(),children:"Save"})})]})]})})})})})]})]})},wJ=e=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/bingaccount/getBingAccount/"+e).then((e=>e.data));const SJ=function(t){let{bingAccount:n,setBingAccount:r}=t;const a=cb((e=>({root:{width:"100%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},cardContainer:{[e.breakpoints.down("md")]:{width:"100%",overflowY:"scroll"},display:"flex",flexDirection:"column",marginBottom:"20px",width:"50%"},error:{color:e.palette.error.main},copy:{color:e.palette.primary.copy}}))),i=a(),o=Oc(qC),[s,l]=(0,e.useState)(!1),[c,u]=(0,e.useState)(""),[d,p]=(0,e.useState)(!1),[h,f]=(0,e.useState)(!1),[m,g]=(0,e.useState)(!1),[v,y]=(0,e.useState)(""),[b,x]=(0,e.useState)(!1),[w,S]=(0,e.useState)(!1),[C,A]=(0,e.useState)("");function k(){vU((e=>tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/bingaccount/editBingAccount",e).then((e=>e.data)))({ClientId:o.id,HasBingAutoSuggest:m,HasBingMapSearch:b,HasBingMaps:w,BingAutoSuggestKey:v,BingMapsKey:C}),"Bing Account Saved",l,u,p,f).then((()=>{wJ(o.id).then((e=>{r(e)}))}))}return(0,e.useEffect)((()=>{g(n.hasBingAutoSuggest),y(n.bingAutoSuggestKey),x(n.hasBingMapSearch),S(n.hasBingMaps),A(n.bingMapsKey)}),[n]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:s,setShowSignifier:l,message:c,error:d}),(0,Tl.jsx)("div",{className:i.root,children:(0,Tl.jsx)(CN,{className:i.cardContainer,children:(0,Tl.jsx)(WM,{className:i.card,children:(0,Tl.jsx)(SU,{children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{xs:12,sm:12,item:!0,children:(0,Tl.jsx)($Y,{className:i.copy,style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:m,onChange:()=>g(!m)}),label:"Use AutoSuggest"})}),(0,Tl.jsx)(CN,{xs:12,sm:12,item:!0,children:(0,Tl.jsx)(FU,{placeholder:"AutoSuggest Key",label:"AutoSuggest Key",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:i.copy},value:v,onChange:e=>y(e.target.value)})}),(0,Tl.jsx)(CN,{xs:12,sm:6,item:!0,children:(0,Tl.jsx)($Y,{className:i.copy,style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:b,onChange:()=>x(!b)}),label:"Use Map Search"})}),(0,Tl.jsx)(CN,{xs:12,sm:6,item:!0,children:(0,Tl.jsx)($Y,{className:i.copy,style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:w,onChange:()=>S(!w)}),label:"Use Maps"})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(FU,{placeholder:"Maps Key",label:"Maps Key",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:i.copy},value:C,onChange:e=>A(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,container:!0,justifyContent:"flex-end",children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginRight:"8px"},className:i.sensitiveButton,type:"submit",variant:"contained",color:"primary",onClick:()=>k(),children:"Save Information"})})]})})})})})]})},CJ=e=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/googleaccount/getGoogleAccount/"+e).then((e=>e.data));const AJ=function(t){let{googleAccount:n,setGoogleAccount:r,geoKeys:a,reCaptchaKeys:i}=t;const o=cb((e=>({root:{width:"100%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},cardContainer:{[e.breakpoints.down("md")]:{width:"100%",overflowY:"scroll"},display:"flex",flexDirection:"column",marginBottom:"20px",width:"50%"},error:{color:e.palette.error.main},error:{color:e.palette.error.main},copy:{color:e.palette.primary.copy}}))),s=o(),l=Oc(qC),[c,u]=(0,e.useState)(!1),[d,p]=(0,e.useState)(""),[h,f]=(0,e.useState)(!1),[m,g]=(0,e.useState)(!1),[v,y]=(0,e.useState)(!1),[b,x]=(0,e.useState)({}),[w,S]=(0,e.useState)(!1),[C,A]=(0,e.useState)({});function k(){if(null===b.id||void 0===b.id||""===b.id)return void y(!0);vU((e=>tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/googleAccount/editGoogleAccount",e).then((e=>e.data)))({ClientId:l.id,RecaptchaKeyId:b.id,PlacesKeyId:C.id,HasGooglePlaces:w}),"Google Account Saved",u,p,f,g).then((()=>{CJ(l.id).then((e=>{r(e)}))}))}return(0,e.useEffect)((()=>{x({}),A({}),i.forEach((e=>{e.id===n.recaptchaKeyId&&x(e)})),a.forEach((e=>{e.id===n.placesKeyId&&A(e)})),S(n.hasGooglePlaces)}),[n,a,i]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:c,setShowSignifier:u,message:d,error:h}),(0,Tl.jsx)("div",{className:s.root,children:(0,Tl.jsx)(CN,{className:s.cardContainer,children:(0,Tl.jsx)(WM,{className:s.card,children:(0,Tl.jsx)(SU,{children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsxs)(CN,{xs:12,sm:12,item:!0,children:[(0,Tl.jsx)(gJ,{currValue:b,items:i,property:"name",title:"reCaptcha Key",handleChange:e=>x(e),error:v}),v&&void 0===b.id&&(0,Tl.jsx)(MU,{className:s.error,children:"reCaptchaKey Required"})]}),(0,Tl.jsx)(CN,{xs:12,sm:12,item:!0,children:(0,Tl.jsx)($Y,{className:s.copy,style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:w,onChange:()=>S(!w)}),label:"Use Google Geolocation"})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(gJ,{currValue:C,items:a,property:"name",title:"Places Geolocation Key",handleChange:e=>A(e)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,container:!0,justifyContent:"flex-end",children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginRight:"8px"},className:s.sensitiveButton,type:"submit",variant:"contained",color:"primary",onClick:()=>k(),children:"Save Information"})})]})})})})})]})};const kJ=function(){const t=cb((e=>({root:{width:"80%",[e.breakpoints.down("md")]:{width:"100%"}},autocomplete:{width:"35%",paddingBottom:"20px",[e.breakpoints.down("md")]:{width:"100%"}},hint:{position:"absolute",left:0,right:0,top:0,bottom:0,marginTop:"auto",marginBottom:"auto",marginLeft:"auto",marginRight:"auto",width:"300px",height:"300px",fontSize:"32px",textAlign:"center",color:"rgba(0,0,0,.6)"}}))),n=t(),r=Oc(qC),[a,i]=(0,e.useState)({}),[o,s]=(0,e.useState)({}),[l,c]=(0,e.useState)([]),[u,d]=(0,e.useState)([]);(0,e.useEffect)((()=>{null!==r&&(wJ(r.id).then((e=>{i(e)})),CJ(r.id).then((e=>{s(e)})),tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/googleaccount/getKeys").then((e=>e.data)).then((e=>{var t=[],n=[];e.forEach((e=>{1===e.googleTypeId?n.push(e):2===e.googleTypeId&&t.push(e)})),c(n),d(t)})))}),[r]);const p=[{title:"Google",component:(0,Tl.jsx)(AJ,{googleAccount:o,setGoogleAccount:s,geoKeys:u,reCaptchaKeys:l})},{title:"Bing",component:(0,Tl.jsx)(SJ,{bingAccount:a,setBingAccount:i})}];return(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[r.clientName," External Accounts"]}),(0,Tl.jsx)("div",{className:n.root,children:null===r?(0,Tl.jsx)("div",{className:n.hint,children:(0,Tl.jsx)("span",{children:"Select a client"})}):(0,Tl.jsx)(FZ,{tabs:p})})]})})},TJ=e=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/eventvenues/"+e).then((e=>e.data)),jJ=cb((e=>({rowCell:{cursor:"pointer !important",background:e.palette.primary.blue,textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},rowCellOdd:{cursor:"pointer !important",background:"white",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},image:{maxWidth:"100px",height:"auto"},tableCell:{color:e.palette.primary.copy}})));function EJ(t){let{columns:n,element:r,index:a,setTableData:i}=t;const o=jJ(),[s,l]=(0,e.useState)(!1),[c,u]=(0,e.useState)(!1),[d,p]=(0,e.useState)(""),[h,f]=(0,e.useState)(!1),[m,g]=(0,e.useState)(!1),v=()=>{var e;vU((e=r.id,tl().delete(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/eventvenues/deleteeventvenue/"+e).then((e=>e))),"Venue Deleted",u,p,f,g).then((()=>{TJ(r.clientId).then((e=>{i(e)}))}))};return(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:c,setShowSignifier:u,message:d,error:h}),(0,Tl.jsx)(FW,{hover:!0,className:a%2?o.rowCell:o.rowCellOdd,component:ch,to:{pathname:"/eventvenues/eventvenuedetailed",state:r},children:n.map(((e,t)=>(0,Tl.jsx)(HW,{align:"left",className:o.tableCell,children:"Delete"===e.label?(0,Tl.jsx)(FS,{title:"Delete Featured Event",children:(0,Tl.jsx)(hm,{onClick:e=>function(e){e.preventDefault(),l(!0)}(e),size:"large",children:(0,Tl.jsx)(qW,{})})}):"Logo"===e.label?(0,Tl.jsx)("img",{className:o.image,src:r[e.propName]}):r[e.propName]},t)))},a),(0,Tl.jsx)(jW,{open:s,onClose:()=>l(!1),children:(0,Tl.jsx)(gU,{question:"Delete this event venue?",func:()=>v(),closeModal:()=>l(!1)})})]})}const PJ=cb((e=>({root:{[e.breakpoints.down("md")]:{width:"100%"},justifyContent:"space-between",width:"100%",display:"flex",flexDirection:"column"},copy:{color:e.palette.primary.copy}})));function NJ(t){let{openModal:n,client:r,setShowSignifier:a,setResponseMessage:i,setShowError:o,setTableData:s}=t;const l=PJ(),[c,u]=(0,e.useState)(!1),[d,p]=(0,e.useState)(!1),[h,f]=(0,e.useState)(""),[m,g]=(0,e.useState)(""),[v,y]=(0,e.useState)(""),[b,x]=(0,e.useState)(""),[w,S]=(0,e.useState)(""),[C,A]=(0,e.useState)(""),[k,T]=(0,e.useState)(""),[j,E]=(0,e.useState)(""),[P,N]=(0,e.useState)("");function D(){if(!M())return void p(!0);vU((e=>tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/eventvenues/addeventvenue",e).then((e=>e.data)))({ClientId:r.id,Name:h,Address:w,City:C,Division:k,Zipcode:j,Country:P,Website:m,PhoneNumber:b,EmailAddress:v}),"Venue Added",a,i,o,u).then((()=>{TJ(r.id).then((e=>{s(e),n(!1)}))}))}const M=()=>""!==h&&""!==w&&""!==C&&""!==k&&""!==j&&""!==P;return(0,Tl.jsxs)("div",{className:l.root,children:[(0,Tl.jsx)(fU,{loading:c}),(0,Tl.jsx)(CN,{children:(0,Tl.jsx)(WM,{children:(0,Tl.jsxs)(SU,{children:[(0,Tl.jsx)(MU,{style:{fontWeight:"bold"},children:"Add Event Venue"}),(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:6,children:[(0,Tl.jsx)(FU,{placeholder:"Name",label:"Name",variant:"standard",fullWidth:!0,required:!0,error:d&&""===h,InputProps:{className:l.copy},value:h,onChange:e=>f(e.target.value)}),d&&""===h&&(0,Tl.jsx)(MU,{className:l.error,children:"Name Required"})]}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(FU,{placeholder:"Website",label:"Website",variant:"standard",fullWidth:!0,InputProps:{className:l.copy},value:m,onChange:e=>g(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(FU,{placeholder:"Email Address",label:"Email Address",variant:"standard",fullWidth:!0,InputProps:{className:l.copy},value:v,onChange:e=>y(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(FU,{placeholder:"Phone Number",label:"Phone Number",variant:"standard",fullWidth:!0,InputProps:{className:l.copy},value:b,onChange:e=>x(e.target.value)})}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:12,children:[(0,Tl.jsx)(FU,{placeholder:"Address",label:"Address",variant:"standard",fullWidth:!0,required:!0,error:d&&""===w,InputProps:{className:l.copy},value:w,onChange:e=>S(e.target.value)}),d&&""===w&&(0,Tl.jsx)(MU,{className:l.error,children:"Address Required"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:6,children:[(0,Tl.jsx)(FU,{placeholder:"City",label:"City",variant:"standard",fullWidth:!0,required:!0,error:d&&""===C,InputProps:{className:l.copy},value:C,onChange:e=>A(e.target.value)}),d&&""===C&&(0,Tl.jsx)(MU,{className:l.error,children:"City Required"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:6,children:[(0,Tl.jsx)(FU,{placeholder:"State/Division",label:"State/Division",variant:"standard",fullWidth:!0,required:!0,error:d&&""===k,InputProps:{className:l.copy},value:k,onChange:e=>T(e.target.value)}),d&&""===k&&(0,Tl.jsx)(MU,{className:l.error,children:"State/Division Required"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:6,children:[(0,Tl.jsx)(FU,{placeholder:"Zip Code",label:"Zip Code",variant:"standard",fullWidth:!0,required:!0,error:d&&""===j,InputProps:{className:l.copy},value:j,onChange:e=>E(e.target.value)}),d&&""===j&&(0,Tl.jsx)(MU,{className:l.error,children:"Zip Code Required"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:6,children:[(0,Tl.jsx)(FU,{placeholder:"Country",label:"Country",variant:"standard",fullWidth:!0,required:!0,error:d&&""===P,InputProps:{className:l.copy},value:P,onChange:e=>N(e.target.value)}),d&&""===P&&(0,Tl.jsx)(MU,{className:l.error,children:"Country Required"})]}),(0,Tl.jsxs)(CN,{container:!0,justifyContent:"flex-end",direction:"row",style:{marginRight:"10px"},children:[(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{color:"#82B288",marginTop:"20px"},type:"submit",variant:"outlined",fullWidth:!0,onClick:()=>n(!1),children:"Cancel"})}),(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginLeft:"10px"},type:"submit",variant:"contained",color:"primary",fullWidth:!0,onClick:()=>D(),children:"Save"})})]})]})]})})})]})}const DJ=function(){const t=cb((e=>({root:{width:"50%",[e.breakpoints.down("md")]:{width:"100%"}},autocomplete:{width:"35%",paddingBottom:"20px",[e.breakpoints.down("md")]:{width:"100%"}},hint:{position:"absolute",left:0,right:0,top:0,bottom:0,marginTop:"auto",marginBottom:"auto",marginLeft:"auto",marginRight:"auto",width:"300px",height:"300px",fontSize:"32px",textAlign:"center",color:"rgba(0,0,0,.6)"}}))),n=t(),r=Oc(qC),[a,i]=(0,e.useState)([]),[o,s]=(0,e.useState)(!0),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(""),[f,m]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{null!==r&&(s(!0),TJ(r.id).then((e=>{i(e),s(!1)})))}),[r]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:u,setShowSignifier:d,message:p,error:f}),(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[r.shortName," Event Venues"]}),(0,Tl.jsx)("div",{className:n.root,children:null===r?(0,Tl.jsx)("div",{className:n.hint,children:(0,Tl.jsx)("span",{children:"Select a client"})}):(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginBottom:"20px"},type:"submit",variant:"contained",color:"primary",onClick:()=>c(!l),children:"Add Event Venue"})}),(0,Tl.jsx)(GX,{columns:[{label:"Name",propName:"name"},{label:"Address",propName:"address"},{label:"City",propName:"city"},{label:"Delete",propName:""}],tableData:a,rowComponent:EJ,loading:o,setTableData:i})]})}),(0,Tl.jsx)(jW,{open:l,onClose:()=>c(!1),children:(0,Tl.jsx)(NJ,{openModal:c,client:r,setShowSignifier:d,setResponseMessage:h,setShowError:m,setTableData:i})})]})]})};const MJ=function(){const t=cb((e=>({root:{width:"50%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},card:{marginTop:"20px"},cardContainer:{[e.breakpoints.down("md")]:{width:"100%",overflowY:"scroll"},display:"flex",flexDirection:"column",marginBottom:"20px",width:"50%"},error:{color:e.palette.error.main},image:{maxWidth:"100px",height:"auto"},copy:{color:e.palette.primary.copy}}))),n=t();let r=zu();const[a,i]=(0,e.useState)(!1),[o,s]=(0,e.useState)(""),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(""),[p,h]=(0,e.useState)(!1),[f,m]=(0,e.useState)(!1),g=Oc(qC),[v,y]=(0,e.useState)(""),[b,x]=(0,e.useState)(""),[w,S]=(0,e.useState)(""),[C,A]=(0,e.useState)(""),[k,T]=(0,e.useState)(""),[j,E]=(0,e.useState)(""),[P,N]=(0,e.useState)(""),[D,M]=(0,e.useState)(""),[_,I]=(0,e.useState)(""),[R,O]=(0,e.useState)("");function L(){if(!F())return void m(!0);var e;vU((e={Id:R,ClientId:u,Name:v,Address:k,City:j,Division:P,ZipCode:D,Country:_,Website:b,PhoneNumber:C,EmailAddress:w},tl().put(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/eventvenues/editeventvenue",e).then((e=>e))),"Venue Saved",i,s,c,h)}const F=()=>""!==v&&""!==k&&""!==j&&""!==P&&""!==D&&""!==_;return(0,e.useEffect)((()=>{null!==r.state&&void 0!==r.state&&(y(r.state.name),x(r.state.website),S(r.state.emailAddress),A(r.state.phoneNumber),T(r.state.address),E(r.state.city),N(r.state.division),M(r.state.zipCode),I(r.state.country),d(r.state.clientId),O(r.state.id))}),[]),null===r.state||void 0===r.state||g.id!==u&&""!==u?(0,Tl.jsx)(ju,{to:"/eventvenues"}):(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:a,setShowSignifier:i,message:o,error:l}),(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsxs)("h1",{className:"page-title",children:[g.shortName," Event Venue Detailed"]}),(0,Tl.jsx)(oW,{}),(0,Tl.jsx)("div",{className:n.root,children:(0,Tl.jsx)(CN,{container:!0,spacing:1,children:(0,Tl.jsx)(WM,{className:n.card,children:(0,Tl.jsx)(SU,{children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:6,children:[(0,Tl.jsx)(FU,{placeholder:"Name",label:"Name",variant:"standard",fullWidth:!0,required:!0,error:f&&""===v,InputProps:{className:n.copy},value:v,onChange:e=>y(e.target.value)}),f&&""===v&&(0,Tl.jsx)(MU,{className:n.error,children:"Name Required"})]}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(FU,{placeholder:"Website",label:"Website",variant:"standard",fullWidth:!0,InputProps:{className:n.copy},value:b,onChange:e=>x(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(FU,{placeholder:"Email Address",label:"Email Address",variant:"standard",fullWidth:!0,InputProps:{className:n.copy},value:w,onChange:e=>S(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(FU,{placeholder:"Phone Number",label:"Phone Number",variant:"standard",fullWidth:!0,InputProps:{className:n.copy},value:C,onChange:e=>A(e.target.value)})}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:12,children:[(0,Tl.jsx)(FU,{placeholder:"Address",label:"Address",variant:"standard",fullWidth:!0,required:!0,error:f&&""===k,InputProps:{className:n.copy},value:k,onChange:e=>T(e.target.value)}),f&&""===k&&(0,Tl.jsx)(MU,{className:n.error,children:"Address Required"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:6,children:[(0,Tl.jsx)(FU,{placeholder:"City",label:"City",variant:"standard",fullWidth:!0,required:!0,error:f&&""===j,InputProps:{className:n.copy},value:j,onChange:e=>E(e.target.value)}),f&&""===j&&(0,Tl.jsx)(MU,{className:n.error,children:"City Required"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:6,children:[(0,Tl.jsx)(FU,{placeholder:"State/Division",label:"State/Division",variant:"standard",fullWidth:!0,required:!0,error:f&&""===P,InputProps:{className:n.copy},value:P,onChange:e=>N(e.target.value)}),f&&""===P&&(0,Tl.jsx)(MU,{className:n.error,children:"State/Division Required"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:6,children:[(0,Tl.jsx)(FU,{placeholder:"Zip Code",label:"Zip Code",variant:"standard",fullWidth:!0,required:!0,error:f&&""===D,InputProps:{className:n.copy},value:D,onChange:e=>M(e.target.value)}),f&&""===D&&(0,Tl.jsx)(MU,{className:n.error,children:"Zip Code Required"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:6,children:[(0,Tl.jsx)(FU,{placeholder:"Country",label:"Country",variant:"standard",fullWidth:!0,required:!0,error:f&&""===_,InputProps:{className:n.copy},value:_,onChange:e=>I(e.target.value)}),f&&""===_&&(0,Tl.jsx)(MU,{className:n.error,children:"Country Required"})]}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,container:!0,justifyContent:"flex-end",children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginRight:"8px"},className:n.sensitiveButton,type:"submit",variant:"contained",color:"primary",onClick:()=>L(),children:"Save Information"})})]})})})})})]})]})},_J=e=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/eventtypes/"+e).then((e=>e.data)),IJ=cb((e=>({root:{[e.breakpoints.down("md")]:{width:"100%"},justifyContent:"space-between",width:"100%",display:"flex",flexDirection:"column"},copy:{color:e.palette.primary.copy}})));function RJ(t){let{openModal:n,typeId:r,typeName:a,func:i,clientId:o}=t;const s=IJ(),[l,c]=(0,e.useState)(a),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(!1),f={Id:r,ClientId:o,Name:l},m=e=>{""!==l?i(e).then((()=>{n(!1)})):h(!0)};return(0,Tl.jsxs)("div",{className:s.root,children:[(0,Tl.jsx)(fU,{loading:u}),(0,Tl.jsx)(CN,{children:(0,Tl.jsx)(WM,{children:(0,Tl.jsxs)(SU,{children:[(0,Tl.jsx)(MU,{style:{fontWeight:"bold"},children:"Edit Event Type"}),(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:6,children:[(0,Tl.jsx)(FU,{placeholder:"Add Name",label:"Add Name",variant:"standard",fullWidth:!0,required:!0,error:p,InputProps:{className:s.copy},value:l,onChange:e=>c(e.target.value)}),p&&(0,Tl.jsx)(MU,{className:s.error,children:"Name Required"})]}),(0,Tl.jsxs)(CN,{container:!0,justifyContent:"flex-end",direction:"row",style:{marginRight:"10px"},children:[(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{color:"#82B288",marginTop:"20px"},type:"submit",variant:"outlined",fullWidth:!0,onClick:()=>n(!1),children:"Cancel"})}),(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginLeft:"10px"},type:"submit",variant:"contained",color:"primary",fullWidth:!0,onClick:()=>m(f),children:"Save"})})]})]})]})})})]})}const OJ=cb((e=>({rowCell:{cursor:"pointer !important",background:e.palette.primary.blue,textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},rowCellOdd:{cursor:"pointer !important",background:"white",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},tableCell:{color:e.palette.primary.copy}})));function LJ(t){let{columns:n,element:r,index:a,setTableData:i}=t;const o=OJ(),[s,l]=(0,e.useState)(!1),[c,u]=(0,e.useState)(!1),[d,p]=(0,e.useState)(!1),[h,f]=(0,e.useState)(""),[m,g]=(0,e.useState)(!1),[v,y]=(0,e.useState)(!1),b=()=>{var e;vU((e=r.id,tl().delete(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/eventtypes/deleteeventtype/"+e).then((e=>e.data))),"Type Deleted",p,f,g,y).then((()=>{_J(r.clientId).then((e=>{i(e)}))}))};return(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:d,setShowSignifier:p,message:h,error:m}),(0,Tl.jsx)(FW,{hover:!0,className:a%2?o.rowCell:o.rowCellOdd,children:n.map(((e,t)=>(0,Tl.jsx)(HW,{align:"left",className:o.tableCell,children:"Delete"===e.label?(0,Tl.jsx)(FS,{title:"Delete Featured Event",children:(0,Tl.jsx)(hm,{onClick:e=>function(e){e.preventDefault(),l(!0)}(e),size:"large",children:(0,Tl.jsx)(qW,{})})}):"Edit"===e.label?(0,Tl.jsx)(FS,{title:"Edit Type Name",children:(0,Tl.jsx)(hm,{onClick:e=>function(e){e.preventDefault(),u(!0)}(e),size:"large",children:(0,Tl.jsx)(GW,{})})}):r[e.propName]},t)))},a),(0,Tl.jsx)(jW,{open:s,onClose:()=>l(!1),children:(0,Tl.jsx)(gU,{question:"Delete this event type?",func:()=>b(),closeModal:()=>l(!1)})}),(0,Tl.jsx)(jW,{open:c,onClose:()=>u(!1),children:(0,Tl.jsx)(RJ,{openModal:u,typeName:r.name,typeId:r.id,clientId:r.clientId,func:async function(e){var t;vU((t=e,tl().put(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/eventtypes/editeventtype",t).then((e=>e.data))),"Type Edited",p,f,g,y).then((()=>{_J(r.clientId).then((e=>{i(e)}))}))}})})]})}const FJ=cb((e=>({root:{[e.breakpoints.down("md")]:{width:"100%"},justifyContent:"space-between",width:"100%",display:"flex",flexDirection:"column"},copy:{color:e.palette.primary.copy}})));function BJ(t){let{openModal:n,client:r,setShowSignifier:a,setResponseMessage:i,setShowError:o,setTableData:s}=t;const l=FJ(),[c,u]=(0,e.useState)(""),[d,p]=(0,e.useState)(!1);function h(){let e={ClientId:r.id,Name:c};var t;vU((t=e,tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/eventtypes/addEventType",t).then((e=>e.data))),"Type Added",a,i,o,p).then((()=>{_J(r.id).then((e=>{s(e),n(!1)}))}))}return(0,Tl.jsxs)("div",{className:l.root,children:[(0,Tl.jsx)(fU,{loading:d}),(0,Tl.jsx)(CN,{children:(0,Tl.jsx)(WM,{children:(0,Tl.jsxs)(SU,{children:[(0,Tl.jsx)(MU,{style:{fontWeight:"bold"},children:"Add Event Type"}),(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(FU,{placeholder:"Add Name",label:"Add Name",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:l.copy},value:c,onChange:e=>u(e.target.value)})}),(0,Tl.jsxs)(CN,{container:!0,justifyContent:"flex-end",direction:"row",style:{marginRight:"10px"},children:[(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{color:"#82B288",marginTop:"20px"},type:"submit",variant:"outlined",fullWidth:!0,onClick:()=>n(!1),children:"Cancel"})}),(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginLeft:"10px"},type:"submit",variant:"contained",color:"primary",fullWidth:!0,onClick:()=>h(),children:"Save"})})]})]})]})})})]})}const zJ=function(){const t=cb((e=>({root:{width:"50%",[e.breakpoints.down("md")]:{width:"100%"}},autocomplete:{width:"35%",paddingBottom:"20px",[e.breakpoints.down("md")]:{width:"100%"}},hint:{position:"absolute",left:0,right:0,top:0,bottom:0,marginTop:"auto",marginBottom:"auto",marginLeft:"auto",marginRight:"auto",width:"300px",height:"300px",fontSize:"32px",textAlign:"center",color:"rgba(0,0,0,.6)"}}))),n=t(),r=Oc(qC),[a,i]=(0,e.useState)([]),[o,s]=(0,e.useState)(!0),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(""),[f,m]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{null!==r&&(s(!0),_J(r.id).then((e=>{i(e),s(!1)})))}),[r]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:u,setShowSignifier:d,message:p,error:f}),(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[r.shortName," Event Types"]}),(0,Tl.jsx)("div",{className:n.root,children:null===r?(0,Tl.jsx)("div",{className:n.hint,children:(0,Tl.jsx)("span",{children:"Select a client"})}):(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginBottom:"20px"},type:"submit",variant:"contained",color:"primary",onClick:()=>c(!l),children:"Add Event Type"})}),(0,Tl.jsx)(GX,{columns:[{label:"Name",propName:"name"},{label:"Edit",propName:""},{label:"Delete",propName:""}],tableData:a,rowComponent:LJ,loading:o,setTableData:i,defaultSortIndex:0})]})})]}),(0,Tl.jsx)(jW,{open:l,onClose:()=>c(!1),children:(0,Tl.jsx)(BJ,{openModal:c,client:r,setShowSignifier:d,setResponseMessage:h,setShowError:m,setTableData:i})})]})},VJ=e=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/mastercache/"+e).then((e=>e.data));const WJ=function(){const t=cb((e=>({root:{width:"50%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},cardContainer:{[e.breakpoints.down("md")]:{width:"100%",overflowY:"scroll"},display:"flex",flexDirection:"column",marginBottom:"20px",width:"50%"},error:{color:e.palette.error.main},copy:{color:e.palette.primary.copy}}))),n=t(),r=Oc(qC),[a,i]=(0,e.useState)(!1),[o,s]=(0,e.useState)(""),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(!1),[f,m]=(0,e.useState)("");function g(){vU((e=>tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/mastercache/editmastercache",e).then((e=>e.data)))({ClientId:r.id,IsDataCached:p,CacheTime:f}),"Master Cache Saved",i,s,c,d).then((()=>{VJ(r.id).then((e=>{m(null===e.cacheTime?"":e.cacheTime),h(e.isDataCached)}))}))}return(0,e.useEffect)((()=>{null!==r&&VJ(r.id).then((e=>{m(null===e.cacheTime?"":e.cacheTime),h(e.isDataCached)}))}),[r]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:a,setShowSignifier:i,message:o,error:l}),(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[r.shortName," Master Cache"]}),(0,Tl.jsx)("div",{className:n.root,children:(0,Tl.jsx)(CN,{className:n.cardContainer,children:(0,Tl.jsx)(WM,{className:n.card,children:(0,Tl.jsx)(SU,{children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{xs:12,sm:12,item:!0,children:(0,Tl.jsx)($Y,{style:{marginTop:"10px"},className:n.copy,control:(0,Tl.jsx)(lX,{color:"primary",checked:p,onChange:()=>h(!p)}),label:"Cache Data"})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(FU,{placeholder:"Cache Time in Minutes",label:"Cache Time in Minutes",variant:"standard",fullWidth:!0,required:!0,type:"number",InputProps:{className:n.copy},value:f,onChange:e=>m(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,container:!0,justifyContent:"flex-end",children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginRight:"8px"},className:n.sensitiveButton,type:"submit",variant:"contained",color:"primary",onClick:()=>g(),children:"Save Information"})})]})})})})})]})]})},UJ=e=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/eventsearch/"+e).then((e=>e.data));const $J=function(){var t;const n=cb((e=>({root:{width:"50%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},cardContainer:{[e.breakpoints.down("md")]:{width:"100%",overflowY:"scroll"},display:"flex",flexDirection:"column",marginBottom:"20px",width:"50%"},error:{color:e.palette.error.main},copy:{color:e.palette.primary.copy}}))),r=n(),a=Oc(qC),i=Oc(eh),[o,s]=(0,e.useState)(!1),[l,c]=(0,e.useState)(""),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(!1),[f,m]=(0,e.useState)([]),[g,v]=(0,e.useState)(""),[y,b]=(0,e.useState)(!1);function x(){vU((e=>tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/eventsearch/editeventsearch",e).then((e=>e.data)))({ClientId:a.id,templateId:g.id,IsDisplayed:y}),"Event Search Saved",s,c,d,h).then((()=>{UJ(a.id).then((e=>{m(e.templates),b(e.isDisplayed)}))}))}return(0,e.useEffect)((()=>{null!==a&&UJ(a.id).then((e=>{e.templates.push({name:"None",id:""}),m(e.templates),b(e.isDisplayed)}))}),[a]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:o,setShowSignifier:s,message:l,error:u}),(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[a.shortName," Event Search"]}),(0,Tl.jsx)("div",{className:r.root,children:(0,Tl.jsx)(CN,{className:r.cardContainer,children:(0,Tl.jsx)(WM,{className:r.card,children:(0,Tl.jsx)(SU,{children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[Hu(i,null===(t=a.id)||void 0===t?void 0:t.toUpperCase(),il)?(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(gJ,{currValue:g,items:f,property:"name",title:"Assign To Template",handleChange:e=>v(e)})}):null,(0,Tl.jsx)(CN,{xs:12,sm:12,item:!0,children:(0,Tl.jsx)($Y,{className:r.copy,style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:y,onChange:()=>b(!y)}),label:"Display Search Form"})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,container:!0,justifyContent:"flex-end",children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginRight:"8px"},className:r.sensitiveButton,type:"submit",variant:"contained",color:"primary",onClick:()=>x(),children:"Save Information"})})]})})})})})]})]})},HJ=e=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/customradius/"+e).then((e=>e.data)),qJ=bm((0,Tl.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"LocationOn"),GJ=cb((e=>({root:{[e.breakpoints.down("md")]:{width:"100%"},justifyContent:"space-between",width:"100%",display:"flex",flexDirection:"column"},error:{color:e.palette.error.main},card:{display:"flex",alignItems:"center",padding:"8px"},icon:{fontSize:"35px"},divider:{background:e.palette.primary.main},text:{paddingLeft:"10px",whiteSpace:"nowrap",color:e.palette.primary.copy}})));function KJ(t){let{openModal:n,baseClient:r,setShowSignifier:a,setResponseMessage:i,setShowError:o,setTableData:s,tableData:l}=t;const c=GJ(),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(!1),[f,m]=(0,e.useState)(""),[g,v]=(0,e.useState)([...l]);function y(){var e,t;vU((e=r.id,t=g,tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/customradius/editcustomradiuscollection/"+e,t).then((e=>e.data))),"Radius Collection Updated",a,i,o,d).then((()=>{HJ(r.id).then((e=>{s(e),n(!1)}))}))}return(0,Tl.jsxs)("div",{className:c.root,children:[(0,Tl.jsx)(fU,{loading:u}),(0,Tl.jsx)(CN,{children:(0,Tl.jsx)(WM,{children:(0,Tl.jsxs)(SU,{children:[(0,Tl.jsx)(MU,{style:{fontWeight:"bold"},children:"Edit Custom Radius Collection"}),(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:9,children:[(0,Tl.jsx)(FU,{placeholder:"Add Radius",label:"Add Radius",variant:"standard",fullWidth:!0,required:!0,type:"number",error:p&&""===f,value:f,onChange:e=>m(parseInt(e.target.value))}),p&&(0,Tl.jsx)(MU,{className:c.error,children:"Radius Required"})]}),(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{marginTop:"10px"},type:"submit",variant:"contained",color:"primary",fullWidth:!0,onClick:()=>(()=>{if(""!==f){var e=[...g],t={clientId:r.id,value:f};e.push(t),e.sort(((e,t)=>{const n=kU(e.value,t.value);return 0!==n?n:e[1]-t[1]})),v(e),m("")}else h(!0)})(),children:"Add"})}),g.map(((e,t)=>(0,Tl.jsxs)("div",{hover:!0,style:{width:"100%",background:t%2?"rgba(0,0,0,.08)":"white",padding:"10px",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:11,children:(0,Tl.jsxs)("div",{className:c.card,children:[(0,Tl.jsx)(qJ,{className:c.icon,color:"primary"}),(0,Tl.jsx)(sC,{orientation:"vertical",flexItem:!0,className:c.divider}),(0,Tl.jsxs)("span",{className:c.text,children:[(0,Tl.jsx)("strong",{children:e.value})," Miles"]})]})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:1,children:(0,Tl.jsx)(FS,{title:"Delete Featured Event",children:(0,Tl.jsx)(hm,{onClick:()=>(e=>{var t=[...g];t.splice(e,1),v(t)})(t),size:"large",children:(0,Tl.jsx)(qW,{})})})})]},t))),(0,Tl.jsxs)(CN,{container:!0,justifyContent:"flex-end",direction:"row",style:{marginRight:"10px"},children:[(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{color:"#82B288",marginTop:"20px"},type:"submit",variant:"outlined",fullWidth:!0,onClick:()=>n(!1),children:"Cancel"})}),(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginLeft:"10px"},type:"submit",variant:"contained",color:"primary",fullWidth:!0,onClick:()=>y(),children:"Save"})})]})]})]})})})]})}const YJ=function(){const t=cb((e=>({root:{width:"30%",[e.breakpoints.down("md")]:{width:"100%",paddingBottom:"100px"}},hint:{position:"absolute",left:0,right:0,top:0,bottom:0,marginTop:"auto",marginBottom:"auto",marginLeft:"auto",marginRight:"auto",width:"300px",height:"300px",fontSize:"32px",textAlign:"center",color:"rgba(0,0,0,.6)"},card:{display:"flex",justifyContent:"space-around",alignItems:"center",padding:"8px"},icon:{fontSize:"35px"},divider:{background:e.palette.primary.main},text:{whiteSpace:"nowrap",color:e.palette.primary.copy},container:{backgroundColor:"rgba(0,0,0,.1)",borderRadius:"10px",padding:"15px",overflowY:"scroll"}}))),n=t(),r=Oc(qC),[a,i]=(0,e.useState)([]),[o,s]=(0,e.useState)(!0),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(""),[f,m]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{null!==r&&(s(!0),HJ(r.id).then((e=>{i(e),s(!1)})))}),[r]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:u,setShowSignifier:d,message:p,error:f}),(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[r.shortName," Custom Radius Collection"]}),(0,Tl.jsx)("div",{className:n.root,children:null===r?(0,Tl.jsx)("div",{className:n.hint,children:(0,Tl.jsx)("span",{children:"Select a client"})}):(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(CN,{container:!0,spacing:1,children:(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginBottom:"20px"},type:"submit",variant:"contained",color:"primary",onClick:()=>c(!l),children:"Edit Collection"})})}),(0,Tl.jsx)(CN,{container:!0,spacing:1,className:n.container,children:a.map(((e,t)=>(0,Tl.jsx)(CN,{item:!0,xs:12,sm:3,children:(0,Tl.jsxs)(WM,{className:n.card,children:[(0,Tl.jsx)(qJ,{className:n.icon,color:"primary"}),(0,Tl.jsx)(sC,{orientation:"vertical",flexItem:!0,className:n.divider}),(0,Tl.jsxs)("span",{className:n.text,children:[(0,Tl.jsx)("strong",{children:e.value})," Miles"]})]})})))})]})}),(0,Tl.jsx)(jW,{open:l,onClose:()=>c(!1),children:(0,Tl.jsx)(KJ,{openModal:c,baseClient:r,setShowSignifier:d,setResponseMessage:h,setShowError:m,setTableData:i,tableData:a})})]})]})},XJ=(e,t)=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/events/"+e+"/"+t).then((e=>e.data)),ZJ=e=>tl().delete(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/events/deleteevent/"+e).then((e=>e.status)),JJ=e=>tl().put(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/events/saveEvent",e).then((e=>e.status)),QJ=bm((0,Tl.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear"),eQ=cb((e=>({rowCell:{cursor:"pointer !important",background:e.palette.primary.blue,textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},rowCellOdd:{cursor:"pointer !important",background:"white",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},image:{maxWidth:"100px",height:"auto"},tableCell:{color:e.palette.primary.copy}})));function tQ(t){let{columns:n,element:r,index:a,setTableData:i}=t;const o=eQ(),[s,l]=(0,e.useState)(!1),[c,u]=(0,e.useState)(""),[d,p]=(0,e.useState)(!1),[h,f]=(0,e.useState)(""),[m,g]=(0,e.useState)(!1),[v,y]=(0,e.useState)(!1),[b,x]=(0,e.useState)(""),w=()=>{vU(fX(b),"Featured Event Deleted",p,f,g,y)};return(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:d,setShowSignifier:p,message:h,error:m}),(0,Tl.jsx)(FW,{hover:!0,className:a%2?o.rowCell:o.rowCellOdd,component:ch,to:{pathname:"/events/eventdetailed",state:r},children:n.map(((e,t)=>(0,Tl.jsx)(HW,{align:"left",className:o.tableCell,children:"Deactivate"===e.label?r.isActive?(0,Tl.jsx)(FS,{title:"Deactivate Event",children:(0,Tl.jsx)(hm,{onClick:e=>function(e){e.preventDefault(),hX(r.clientId).then((e=>{const t=e.find((e=>e.eventId===r.id));void 0!==t&&x(null===t||void 0===t?void 0:t.id),u(void 0!==t?"Deactivating this event will also delete it from featured events. Continue?":"Deactivate this event?")})),l(!0)}(e),size:"large",children:(0,Tl.jsx)(QJ,{})})}):null:"Logo"===e.label?(0,Tl.jsx)("img",{className:o.image,src:r[e.propName],alt:"logo"}):r[e.propName]},t)))},a),(0,Tl.jsx)(jW,{open:s,onClose:()=>l(!1),children:(0,Tl.jsx)(gU,{question:c,func:()=>(vU(ZJ(r.id),"Event Deactivated",p,f,g,y).then((()=>{XJ(r.clientId,!1).then((e=>{var t;e.eventSponsors.forEach((e=>e.imagePath="data:"+e.contentType+";base64,"+e.logo)),null===(t=e.events)||void 0===t||t.forEach((t=>{t.displayIsActive=t.isActive?"Yes":"No",t.startDate=tV(t.startDate),t.endDate=tV(t.endDate),t.sponsors=e.eventSponsors,t.types=e.eventTypes,t.venues=e.eventVenues,t.timeZones=e.timeZonesCollection})),i(e.events)}))})),void(""!==b&&w())),closeModal:()=>(x(""),void l(!1))})})]})}function nQ(e){let{props:t,name:n}=e;return t_({props:t,name:n,defaultTheme:Qh,themeId:Vl})}const rQ=["localeText"],aQ=e.createContext(null);const iQ=function(t){var n;const{localeText:r}=t,a=(0,Sl.A)(t,rQ),{utils:i,localeText:o}=null!=(n=e.useContext(aQ))?n:{utils:void 0,localeText:void 0},s=nQ({props:a,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:p,localeText:h}=s,f=e.useMemo((()=>(0,wl.A)({},h,o,r)),[h,o,r]),m=e.useMemo((()=>{if(!c)return i||null;const e=new c({locale:p,formats:u,instance:d});if(!e.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join("\n"));return e}),[c,p,u,d,i]),g=e.useMemo((()=>m?{minDate:m.date("1900-01-01T00:00:00.000"),maxDate:m.date("2099-12-31T00:00:00.000")}:null),[m]),v=e.useMemo((()=>({utils:m,defaultDates:g,localeText:f})),[g,m,f]);return(0,Tl.jsx)(aQ.Provider,{value:v,children:l})};function oQ(t,n,r,a,i){const[o,s]=e.useState((()=>i&&r?r(t).matches:a?a(t).matches:n));return lf((()=>{let e=!0;if(!r)return;const n=r(t),a=()=>{e&&s(n.matches)};return a(),n.addListener(a),()=>{e=!1,n.removeListener(a)}}),[t,r]),o}const sQ=t.useSyncExternalStore;function lQ(t,n,r,a,i){const o=e.useCallback((()=>n),[n]),s=e.useMemo((()=>{if(i&&r)return()=>r(t).matches;if(null!==a){const{matches:e}=a(t);return()=>e}return o}),[o,t,a,i,r]),[l,c]=e.useMemo((()=>{if(null===r)return[o,()=>()=>{}];const e=r(t);return[()=>e.matches,t=>(e.addListener(t),()=>{e.removeListener(t)})]}),[o,r,t]);return sQ(c,l,s)}function cQ(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Pl(),r="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,{defaultMatches:a=!1,matchMedia:i=(r?window.matchMedia:null),ssrMatchMedia:o=null,noSsr:s=!1}=e_({name:"MuiUseMediaQuery",props:t,theme:n});let l="function"===typeof e?e(n):e;l=l.replace(/^@media( ?)/m,"");return(void 0!==sQ?lQ:oQ)(l,a,i,o,s)}function uQ(e,t,n){return"function"===typeof e?e(t,n):e}const dQ=zc().oneOfType([zc().func,zc().object]),pQ=(e,t)=>e.length===t.length&&t.every((t=>e.includes(t))),hQ=e=>{let{openTo:t,defaultOpenTo:n,views:r,defaultViews:a}=e;const i=null!=r?r:a;let o;if(null!=t)o=t;else if(i.includes(n))o=n;else{if(!(i.length>0))throw new Error("MUI: The `views` prop must contain at least one view");o=i[0]}return{views:i,openTo:o}},fQ=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},mQ=e=>{let{date:t,disableFuture:n,disablePast:r,maxDate:a,minDate:i,isDateDisabled:o,utils:s,timezone:l}=e;const c=fQ(s,s.dateWithTimezone(void 0,l),t);r&&s.isBefore(i,c)&&(i=c),n&&s.isAfter(a,c)&&(a=c);let u=t,d=t;for(s.isBefore(t,i)&&(u=i,d=null),s.isAfter(t,a)&&(d&&(d=a),u=null);u||d;){if(u&&s.isAfter(u,a)&&(u=null),d&&s.isBefore(d,i)&&(d=null),u){if(!o(u))return u;u=s.addDays(u,1)}if(d){if(!o(d))return d;d=s.addDays(d,-1)}}return null},gQ=(e,t,n)=>null!=t&&e.isValid(t)?t:n,vQ=(e,t)=>{const n=[e.startOfYear(t)];for(;n.length<12;){const t=n[n.length-1];n.push(e.addMonths(t,1))}return n},yQ=(e,t,n)=>"date"===n?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),bQ=(e,t)=>{const n=e.setHours(e.date(),"am"===t?2:14);return e.format(n,"meridiem")},xQ=["year","month","day"],wQ=e=>xQ.includes(e),SQ=(e,t,n)=>{let{format:r,views:a}=t;if(null!=r)return r;const i=e.formats;return pQ(a,["year"])?i.year:pQ(a,["month"])?i.month:pQ(a,["day"])?i.dayOfMonth:pQ(a,["month","year"])?`${i.month} ${i.year}`:pQ(a,["day","month"])?`${i.month} ${i.dayOfMonth}`:n?/en/.test(e.getCurrentLocaleCode())?i.normalDateWithWeekday:i.normalDate:i.keyboardDate},CQ=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map((t=>e.addDays(n,t)))},AQ=["hours","minutes","seconds"],kQ=e=>AQ.includes(e),TQ=e=>AQ.includes(e)||"meridiem"===e,jQ=(e,t,n)=>{if(n){if((e>=12?"pm":"am")!==t)return"am"===t?e-12:e+12}return e},EQ=(e,t)=>3600*t.getHours(e)+60*t.getMinutes(e)+t.getSeconds(e),PQ=(e,t)=>(n,r)=>e?t.isAfter(n,r):EQ(n,t)>EQ(r,t),NQ=(e,t)=>{let{format:n,views:r,ampm:a}=t;if(null!=n)return n;const i=e.formats;return pQ(r,["hours"])?a?`${i.hours12h} ${i.meridiem}`:i.hours24h:pQ(r,["minutes"])?i.minutes:pQ(r,["seconds"])?i.seconds:pQ(r,["minutes","seconds"])?`${i.minutes}:${i.seconds}`:pQ(r,["hours","minutes","seconds"])?a?`${i.hours12h}:${i.minutes}:${i.seconds} ${i.meridiem}`:`${i.hours24h}:${i.minutes}:${i.seconds}`:a?`${i.hours12h}:${i.minutes} ${i.meridiem}`:`${i.hours24h}:${i.minutes}`},DQ={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},MQ=(e,t,n)=>{if(t===DQ.year)return e.startOfYear(n);if(t===DQ.month)return e.startOfMonth(n);if(t===DQ.day)return e.startOfDay(n);let r=n;return t<DQ.minutes&&(r=e.setMinutes(r,0)),t<DQ.seconds&&(r=e.setSeconds(r,0)),t<DQ.milliseconds&&(r=e.setMilliseconds(r,0)),r},_Q=(e,t)=>{const n=e.formatTokenMap[t];if(null==n)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join("\n"));return"string"===typeof n?{type:n,contentType:"meridiem"===n?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},IQ=(e,t,n)=>{const r=[],a=e.dateWithTimezone(void 0,t),i=e.startOfWeek(a),o=e.endOfWeek(a);let s=i;for(;e.isBefore(s,o);)r.push(s),s=e.addDays(s,1);return r.map((t=>e.formatByString(t,n)))},RQ=(e,t,n,r)=>{switch(n){case"month":return vQ(e,e.dateWithTimezone(void 0,t)).map((t=>e.formatByString(t,r)));case"weekDay":return IQ(e,t,r);case"meridiem":{const n=e.dateWithTimezone(void 0,t);return[e.startOfDay(n),e.endOfDay(n)].map((t=>e.formatByString(t,r)))}default:return[]}},OQ=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length<n;)r=`0${r}`;return r},LQ=(e,t,n,r,a)=>{if("day"===a.type&&"digit-with-letter"===a.contentType){const t=e.setDate(r.longestMonth,n);return e.formatByString(t,a.format)}const i=n.toString();return a.hasLeadingZerosInInput?OQ(0,i,a.maxLength):i},FQ=(e,t,n,r,a,i,o)=>{const s=(e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}})(r),l="Home"===r,c="End"===r,u=""===n.value||l||c;return"digit"===n.contentType||"digit-with-letter"===n.contentType?(()=>{const r=a[n.type]({currentDate:i,format:n.format,contentType:n.contentType}),d=t=>LQ(e,0,t,r,n),p="minutes"===n.type&&null!=o&&o.minutesStep?o.minutesStep:1;let h=parseInt(n.value,10)+s*p;if(u){if("year"===n.type&&!c&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);h=s>0||l?r.minimum:r.maximum}return h%p!==0&&((s<0||l)&&(h+=p-(p+h)%p),(s>0||c)&&(h-=h%p)),h>r.maximum?d(r.minimum+(h-r.maximum-1)%(r.maximum-r.minimum+1)):h<r.minimum?d(r.maximum-(r.minimum-h-1)%(r.maximum-r.minimum+1)):d(h)})():(()=>{const r=RQ(e,t,n.type,n.format);if(0===r.length)return n.value;if(u)return s>0||l?r[0]:r[r.length-1];const a=r.indexOf(n.value);return r[(a+r.length+s)%r.length]})()},BQ=(e,t)=>{let n=e.value||e.placeholder;const r="non-input"===t?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;"non-input"===t&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString());return["input-rtl","input-ltr"].includes(t)&&"digit"===e.contentType&&!r&&1===n.length&&(n=`${n}\u200e`),"input-rtl"===t&&(n=`\u2068${n}\u2069`),n},zQ=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),VQ=(e,t)=>{let n=0,r=t?1:0;const a=[];for(let i=0;i<e.length;i+=1){const o=e[i],s=BQ(o,t?"input-rtl":"input-ltr"),l=`${o.startSeparator}${s}${o.endSeparator}`,c=zQ(l).length,u=l.length,d=zQ(s),p=r+s.indexOf(d[0])+o.startSeparator.length,h=p+d.length;a.push((0,wl.A)({},o,{start:n,end:n+c,startInInput:p,endInInput:h})),n+=c,r+=u}return a},WQ=(e,t,n,r,a)=>{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),a).length,format:a});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType,format:a});case"day":return n.fieldDayPlaceholder({format:a});case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType,format:a});case"hours":return n.fieldHoursPlaceholder({format:a});case"minutes":return n.fieldMinutesPlaceholder({format:a});case"seconds":return n.fieldSecondsPlaceholder({format:a});case"meridiem":return n.fieldMeridiemPlaceholder({format:a});default:return a}},UQ=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),$Q=(e,t,n)=>4===e.formatByString(e.dateWithTimezone(void 0,t),n).length,HQ=(e,t,n,r,a)=>{if("digit"!==n)return!1;const i=e.dateWithTimezone(void 0,t);switch(r){case"year":if($Q(e,t,a)){return"0001"===e.formatByString(e.setYear(i,1),a)}return"01"===e.formatByString(e.setYear(i,2001),a);case"month":return e.formatByString(e.startOfYear(i),a).length>1;case"day":return e.formatByString(e.startOfMonth(i),a).length>1;case"weekDay":return e.formatByString(e.startOfWeek(i),a).length>1;case"hours":return e.formatByString(e.setHours(i,1),a).length>1;case"minutes":return e.formatByString(e.setMinutes(i,1),a).length>1;case"seconds":return e.formatByString(e.setSeconds(i,1),a).length>1;default:throw new Error("Invalid section type")}},qQ=(e,t,n,r,a,i,o,s)=>{let l="";const c=[],u=e.date(),d=r=>{if(""===r)return null;const i=_Q(e,r),s=HQ(e,t,i.contentType,i.type,r),d=o?s:"digit"===i.contentType,p=null!=a&&e.isValid(a);let h=p?e.formatByString(a,r):"",f=null;if(d)if(s)f=""===h?e.formatByString(u,r).length:h.length;else{if(null==i.maxLength)throw new Error(`MUI: The token ${r} should have a 'maxDigitNumber' property on it's adapter`);f=i.maxLength,p&&(h=OQ(0,h,f))}return c.push((0,wl.A)({},i,{format:r,maxLength:f,value:h,placeholder:WQ(e,t,n,i,r),hasLeadingZeros:s,hasLeadingZerosInFormat:s,hasLeadingZerosInInput:d,startSeparator:0===c.length?l:"",endSeparator:"",modified:!1})),null};let p=10,h=r,f=e.expandFormat(r);for(;f!==h;)if(h=f,f=e.expandFormat(h),p-=1,p<0)throw new Error("MUI: The format expansion seems to be  enter in an infinite loop. Please open an issue with the format passed to the picker component");const m=f,g=((e,t)=>{const n=[],{start:r,end:a}=e.escapedCharacters,i=new RegExp(`(\\${r}[^\\${a}]*\\${a})+`,"g");let o=null;for(;o=i.exec(t);)n.push({start:o.index,end:i.lastIndex-1});return n})(e,m),v=new RegExp(`^(${Object.keys(e.formatTokenMap).sort(((e,t)=>t.length-e.length)).join("|")})`,"g");let y="";for(let b=0;b<m.length;b+=1){const e=g.find((e=>e.start<=b&&e.end>=b)),t=m[b],n=null!=e,r=`${y}${m.slice(b)}`,a=v.test(r);if(!n&&t.match(/([A-Za-z]+)/)&&a)y=r.slice(0,v.lastIndex),b+=v.lastIndex-1;else{n&&(null==e?void 0:e.start)===b||(null==e?void 0:e.end)===b||(d(y),y="",0===c.length?l+=t:c[c.length-1].endSeparator+=t)}}return d(y),c.map((e=>{const t=e=>{let t=e;return s&&null!==t&&t.includes(" ")&&(t=`\u2069${t}\u2066`),"spacious"===i&&["/",".","-"].includes(t)&&(t=` ${t} `),t};return e.startSeparator=t(e.startSeparator),e.endSeparator=t(e.endSeparator),e}))};const GQ=(e,t)=>{0},KQ={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},YQ=(e,t,n,r,a,i)=>[...r].sort(((e,t)=>KQ[e.type]-KQ[t.type])).reduce(((r,a)=>!i||a.modified?((e,t,n,r,a)=>{switch(n.type){case"year":return e.setYear(a,e.getYear(r));case"month":return e.setMonth(a,e.getMonth(r));case"weekDay":{const a=IQ(e,t,n.format),i=e.formatByString(r,n.format),o=a.indexOf(i),s=a.indexOf(n.value)-o;return e.addDays(r,s)}case"day":return e.setDate(a,e.getDate(r));case"meridiem":{const t=e.getHours(r)<12,n=e.getHours(a);return t&&n>=12?e.addHours(a,-12):!t&&n<12?e.addHours(a,12):a}case"hours":return e.setHours(a,e.getHours(r));case"minutes":return e.setMinutes(a,e.getMinutes(r));case"seconds":return e.setSeconds(a,e.getSeconds(r));default:return a}})(e,t,a,n,r):r),a),XQ=["value","referenceDate"],ZQ={emptyValue:null,getTodayValue:yQ,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=(0,Sl.A)(e,XQ);return null!=t&&r.utils.isValid(t)?t:null!=n?n:(e=>{let{props:t,utils:n,granularity:r,timezone:a,getTodayDate:i}=e;var o;let s=i?i():MQ(n,r,yQ(n,a));null!=t.minDate&&n.isAfterDay(t.minDate,s)&&(s=MQ(n,r,t.minDate)),null!=t.maxDate&&n.isBeforeDay(t.maxDate,s)&&(s=MQ(n,r,t.maxDate));const l=PQ(null!=(o=t.disableIgnoringDatePartForTimeValidation)&&o,n);return null!=t.minTime&&l(t.minTime,s)&&(s=MQ(n,r,t.disableIgnoringDatePartForTimeValidation?t.minTime:fQ(n,s,t.minTime))),null!=t.maxTime&&l(s,t.maxTime)&&(s=MQ(n,r,t.disableIgnoringDatePartForTimeValidation?t.maxTime:fQ(n,s,t.maxTime))),s})(r)},cleanValue:(e,t)=>null!=t&&e.isValid(t)?t:null,areValuesEqual:(e,t,n)=>!e.isValid(t)&&null!=t&&!e.isValid(n)&&null!=n||e.isEqual(t,n),isSameError:(e,t)=>e===t,hasError:e=>null!=e,defaultErrorState:null,getTimezone:(e,t)=>null!=t&&e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>null==n?null:e.setTimezone(n,t)},JQ={updateReferenceValue:(e,t,n)=>null!=t&&e.isValid(t)?t:n,getSectionsFromValue:(e,t,n,r,a)=>!e.isValid(t)&&!!n?n:VQ(a(t),r),getValueStrFromSections:(e,t)=>{const n=e.map((e=>{const n=BQ(e,t?"input-rtl":"input-ltr");return`${e.startSeparator}${n}${e.endSeparator}`})).join("");return t?`\u2066${n}\u2069`:n},getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:e=>e,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:null!=n&&e.isValid(n)?n:t.referenceValue})}),parseValueStr:(e,t,n)=>n(e.trim(),t)};function QQ(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=QQ(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const e0=function(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=QQ(e))&&(r&&(r+=" "),r+=t);return r};function t0(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"===typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function n0(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:i}=e;if(!t){const e=e0(null==n?void 0:n.className,i,null==a?void 0:a.className,null==r?void 0:r.className),t=(0,wl.A)({},null==n?void 0:n.style,null==a?void 0:a.style,null==r?void 0:r.style),o=(0,wl.A)({},n,a,r);return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}const o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"===typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}((0,wl.A)({},a,r)),s=t0(r),l=t0(a),c=t(o),u=e0(null==c?void 0:c.className,null==n?void 0:n.className,i,null==a?void 0:a.className,null==r?void 0:r.className),d=(0,wl.A)({},null==c?void 0:c.style,null==n?void 0:n.style,null==a?void 0:a.style,null==r?void 0:r.style),p=(0,wl.A)({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}const r0=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function a0(e){var t;const{elementType:n,externalSlotProps:r,ownerState:a,skipResolvingSlotProps:i=!1}=e,o=(0,Sl.A)(e,r0),s=i?{}:uQ(r,a),{props:l,internalRef:c}=n0((0,wl.A)({},o,{externalSlotProps:s})),u=of(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref),d=function(e,t,n){return void 0===e||"string"===typeof e?t:(0,wl.A)({},t,{ownerState:(0,wl.A)({},t.ownerState,n)})}(n,(0,wl.A)({},l,{ref:u}),a);return d}const i0={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>"year"===e?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${null===t?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>null!==e&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>null!==e&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>"letter"===e.contentType?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>"letter"===e.contentType?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},o0=i0;s0=i0,(0,wl.A)({},s0);var s0;const l0=()=>{const t=e.useContext(aQ);if(null===t)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join("\n"));if(null===t.utils)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join("\n"));const n=e.useMemo((()=>(0,wl.A)({},o0,t.localeText)),[t.localeText]);return e.useMemo((()=>(0,wl.A)({},t,{localeText:n})),[t,n])},c0=()=>l0().utils,u0=()=>l0().defaultDates,d0=()=>l0().localeText,p0=t=>{const n=c0(),r=e.useRef();return void 0===r.current&&(r.current=n.dateWithTimezone(void 0,t)),r.current};function h0(t,n,r,a){const{value:i,onError:o}=t,s=l0(),l=e.useRef(a),c=n({adapter:s,value:i,props:t});return e.useEffect((()=>{o&&!r(c,l.current)&&o(c,i),l.current=c}),[r,o,l,c,i]),c}const f0=t=>{let{timezone:n,value:r,defaultValue:a,onChange:i,valueManager:o}=t;var s,l;const c=c0(),u=e.useRef(a),d=null!=(s=null!=r?r:u.current)?s:o.emptyValue,p=e.useMemo((()=>o.getTimezone(c,d)),[c,o,d]),h=cf((e=>null==p?e:o.setTimezone(c,p,e))),f=null!=(l=null!=n?n:p)?l:"default";return{value:e.useMemo((()=>o.setTimezone(c,f,d)),[o,c,f,d]),handleValueChange:cf((function(e){const t=h(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];null==i||i(t,...r)})),timezone:f}},m0=e=>{let{name:t,timezone:n,value:r,defaultValue:a,onChange:i,valueManager:o}=e;const[s,l]=kS({name:t,state:"value",controlled:r,default:null!=a?a:o.emptyValue}),c=cf((function(e){l(e);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];null==i||i(e,...n)}));return f0({timezone:n,value:s,defaultValue:void 0,onChange:c,valueManager:o})},g0=t=>{const n=c0(),r=d0(),a=l0(),i="rtl"===Sb().direction,{valueManager:o,fieldValueManager:s,valueType:l,validator:c,internalProps:u,internalProps:{value:d,defaultValue:p,referenceDate:h,onChange:f,format:m,formatDensity:g="dense",selectedSections:v,onSelectedSectionsChange:y,shouldRespectLeadingZeros:b=!1,timezone:x}}=t,{timezone:w,value:S,handleValueChange:C}=f0({timezone:x,value:d,defaultValue:p,onChange:f,valueManager:o}),A=e.useMemo((()=>((e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),a=e.endOfDay(n),{maxDaysInMonth:i,longestMonth:o}=vQ(e,n).reduce(((t,n)=>{const r=e.getDaysInMonth(n);return r>t.maxDaysInMonth?{maxDaysInMonth:r,longestMonth:n}:t}),{maxDaysInMonth:0,longestMonth:null});return{year:n=>{let{format:r}=n;return{minimum:0,maximum:$Q(e,t,r)?9999:99}},month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:t=>{let{currentDate:n}=t;return{minimum:1,maximum:null!=n&&e.isValid(n)?e.getDaysInMonth(n):i,longestMonth:o}},weekDay:n=>{let{format:r,contentType:a}=n;if("digit"===a){const n=IQ(e,t,r).map(Number);return{minimum:Math.min(...n),maximum:Math.max(...n)}}return{minimum:1,maximum:7}},hours:t=>{let{format:r}=t;const i=e.getHours(a);return e.formatByString(e.endOfDay(n),r)!==i.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),r))}:{minimum:0,maximum:i}},minutes:()=>({minimum:0,maximum:e.getMinutes(a)}),seconds:()=>({minimum:0,maximum:e.getSeconds(a)}),meridiem:()=>({minimum:0,maximum:0})}})(n,w)),[n,w]),k=e.useCallback((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return s.getSectionsFromValue(n,e,t,i,(e=>qQ(n,w,r,m,e,g,b,i)))}),[s,m,r,i,b,n,g,w]),T=e.useMemo((()=>s.getValueStrFromSections(k(o.emptyValue),i)),[s,k,o.emptyValue,i]),[j,E]=e.useState((()=>{const e=k(S);GQ();const t={sections:e,value:S,referenceValue:o.emptyValue,tempValueStrAndroid:null},r=(e=>Math.max(...e.map((e=>{var t;return null!=(t=DQ[e.type])?t:1}))))(e),a=o.getInitialReferenceValue({referenceDate:h,value:S,utils:n,props:u,granularity:r,timezone:w});return(0,wl.A)({},t,{referenceValue:a})})),[P,N]=kS({controlled:v,default:null,name:"useField",state:"selectedSectionIndexes"}),D=e=>{N(e),null==y||y(e),E((e=>(0,wl.A)({},e,{selectedSectionQuery:null})))},M=e.useMemo((()=>{if(null==P)return null;if("all"===P)return{startIndex:0,endIndex:j.sections.length-1,shouldSelectBoundarySelectors:!0};if("number"===typeof P)return{startIndex:P,endIndex:P};if("string"===typeof P){const e=j.sections.findIndex((e=>e.type===P));return{startIndex:e,endIndex:e}}return P}),[P,j.sections]),_=e=>{let{value:t,referenceValue:r,sections:i}=e;if(E((e=>(0,wl.A)({},e,{sections:i,value:t,referenceValue:r,tempValueStrAndroid:null}))),o.areValuesEqual(n,j.value,t))return;const s={validationError:c({adapter:a,value:t,props:(0,wl.A)({},u,{value:t,timezone:w})})};C(t,s)},I=(e,t)=>{const n=[...j.sections];return n[e]=(0,wl.A)({},n[e],{value:t,modified:!0}),VQ(n,i)};return e.useEffect((()=>{const e=k(j.value);GQ(),E((t=>(0,wl.A)({},t,{sections:e})))}),[m,n.locale]),e.useEffect((()=>{let e=!1;e=!o.areValuesEqual(n,j.value,S)||o.getTimezone(n,j.value)!==o.getTimezone(n,S),e&&E((e=>(0,wl.A)({},e,{value:S,referenceValue:s.updateReferenceValue(n,S,e.referenceValue),sections:k(S)})))}),[S]),{state:j,selectedSectionIndexes:M,setSelectedSections:D,clearValue:()=>{_({value:o.emptyValue,referenceValue:j.referenceValue,sections:k(o.emptyValue)})},clearActiveSection:()=>{if(null==M)return;const e=j.sections[M.startIndex],t=s.getActiveDateManager(n,j,e),r=t.getSections(j.sections).filter((e=>""!==e.value)).length===(""===e.value?0:1),a=I(M.startIndex,""),i=r?null:n.date(new Date("")),o=t.getNewValuesFromNewActiveDate(i);(null!=i&&!n.isValid(i))!==(null!=t.date&&!n.isValid(t.date))?_((0,wl.A)({},o,{sections:a})):E((e=>(0,wl.A)({},e,o,{sections:a,tempValueStrAndroid:null})))},updateSectionValue:e=>{let{activeSection:t,newSectionValue:r,shouldGoToNextSection:a}=e;a&&M&&M.startIndex<j.sections.length-1?D(M.startIndex+1):M&&M.startIndex!==M.endIndex&&D(M.startIndex);const i=s.getActiveDateManager(n,j,t),o=I(M.startIndex,r),l=i.getSections(o),c=((e,t)=>{const n=t.some((e=>"day"===e.type)),r=[],a=[];for(let s=0;s<t.length;s+=1){const e=t[s];n&&"weekDay"===e.type||(r.push(e.format),a.push(BQ(e,"non-input")))}const i=r.join(" "),o=a.join(" ");return e.parse(o,i)})(n,l);let u,d;if(null!=c&&n.isValid(c)){const e=YQ(n,w,c,l,i.referenceDate,!0);u=i.getNewValuesFromNewActiveDate(e),d=!0}else u=i.getNewValuesFromNewActiveDate(c),d=(null!=c&&!n.isValid(c))!==(null!=i.date&&!n.isValid(i.date));return d?_((0,wl.A)({},u,{sections:o})):E((e=>(0,wl.A)({},e,u,{sections:o,tempValueStrAndroid:null})))},updateValueFromValueStr:e=>{const t=s.parseValueStr(e,j.referenceValue,((e,t)=>{const a=n.parse(e,m);if(null==a||!n.isValid(a))return null;const o=qQ(n,w,r,m,a,g,b,i);return YQ(n,w,a,o,t,!1)})),a=s.updateReferenceValue(n,t,j.referenceValue);_({value:t,referenceValue:a,sections:k(t,j.sections)})},setTempAndroidValueStr:e=>E((t=>(0,wl.A)({},t,{tempValueStrAndroid:e}))),sectionsValueBoundaries:A,placeholder:T,timezone:w}},v0=e=>null!=e.saveQuery,y0=t=>{let{sections:n,updateSectionValue:r,sectionsValueBoundaries:a,setTempAndroidValueStr:i,timezone:o}=t;const s=c0(),[l,c]=e.useState(null),u=cf((()=>c(null)));e.useEffect((()=>{var e;null!=l&&(null==(e=n[l.sectionIndex])?void 0:e.type)!==l.sectionType&&u()}),[n,l,u]),e.useEffect((()=>{if(null!=l){const e=setTimeout((()=>u()),5e3);return()=>{window.clearTimeout(e)}}return()=>{}}),[l,u]);const d=(e,t,r)=>{let{keyPressed:a,sectionIndex:i}=e;const o=a.toLowerCase(),s=n[i];if(null!=l&&(!r||r(l.value))&&l.sectionIndex===i){const e=`${l.value}${o}`,n=t(e,s);if(!v0(n))return c({sectionIndex:i,value:e,sectionType:s.type}),n}const d=t(o,s);return v0(d)&&!d.saveQuery?(u(),null):(c({sectionIndex:i,value:o,sectionType:s.type}),v0(d)?null:d)},p=cf((e=>{const t=n[e.sectionIndex],l=" "!==e.keyPressed&&!Number.isNaN(Number(e.keyPressed))?(e=>{const t=(e,t)=>{const n=Number(`${e}`),r=a[t.type]({currentDate:null,format:t.format,contentType:t.contentType});if(n>r.maximum)return{saveQuery:!1};if(n<r.minimum)return{saveQuery:!0};const i=Number(`${e}0`)>r.maximum||e.length===r.maximum.toString().length;return{sectionValue:LQ(s,0,n,r,t),shouldGoToNextSection:i}};return d(e,((e,n)=>{if("digit"===n.contentType||"digit-with-letter"===n.contentType)return t(e,n);if("month"===n.type){const r=HQ(s,o,"digit","month","MM"),a=t(e,{type:n.type,format:"MM",hasLeadingZerosInFormat:r,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(v0(a))return a;const i=UQ(s,a.sectionValue,"MM",n.format);return(0,wl.A)({},a,{sectionValue:i})}if("weekDay"===n.type){const r=t(e,n);if(v0(r))return r;const a=IQ(s,o,n.format)[Number(r.sectionValue)-1];return(0,wl.A)({},r,{sectionValue:a})}return{saveQuery:!1}}),(e=>!Number.isNaN(Number(e))))})(e):(e=>{const t=(e,t,n)=>{const r=t.filter((e=>e.toLowerCase().startsWith(n)));return 0===r.length?{saveQuery:!1}:{sectionValue:r[0],shouldGoToNextSection:1===r.length}},n=(e,n,r,a)=>{const i=e=>RQ(s,o,n.type,e);if("letter"===n.contentType)return t(n.format,i(n.format),e);if(r&&null!=a&&"letter"===_Q(s,r).contentType){const n=i(r),o=t(0,n,e);return v0(o)?{saveQuery:!1}:(0,wl.A)({},o,{sectionValue:a(o.sectionValue,n)})}return{saveQuery:!1}};return d(e,((e,t)=>{switch(t.type){case"month":{const r=e=>UQ(s,e,s.formats.month,t.format);return n(e,t,s.formats.month,r)}case"weekDay":{const r=(e,t)=>t.indexOf(e).toString();return n(e,t,s.formats.weekday,r)}case"meridiem":return n(e,t);default:return{saveQuery:!1}}}))})(e);null==l?i(null):r({activeSection:t,newSectionValue:l.sectionValue,shouldGoToNextSection:l.shouldGoToNextSection})}));return{applyCharacterEditing:p,resetCharacterQuery:u}};const b0=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).activeElement;return e?e.shadowRoot?b0(e.shadowRoot):e:null},x0="@media (pointer: fine)",w0=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],S0=t=>{const n=c0(),{state:r,selectedSectionIndexes:a,setSelectedSections:i,clearValue:o,clearActiveSection:s,updateSectionValue:l,updateValueFromValueStr:c,setTempAndroidValueStr:u,sectionsValueBoundaries:d,placeholder:p,timezone:h}=g0(t),{inputRef:f,internalProps:m,internalProps:{readOnly:g=!1,unstableFieldRef:v,minutesStep:y},forwardedProps:{onClick:b,onKeyDown:x,onFocus:w,onBlur:S,onMouseUp:C,onPaste:A,error:k,clearable:T,onClear:j,disabled:E},fieldValueManager:P,valueManager:N,validator:D}=t,M=(0,Sl.A)(t.forwardedProps,w0),{applyCharacterEditing:_,resetCharacterQuery:I}=y0({sections:r.sections,updateSectionValue:l,sectionsValueBoundaries:d,setTempAndroidValueStr:u,timezone:h}),R=e.useRef(null),O=of(f,R),L=e.useRef(void 0),F="rtl"===Sb().direction,B=e.useMemo((()=>((e,t)=>{const n={};if(!t)return e.forEach(((t,r)=>{const a=0===r?null:r-1,i=r===e.length-1?null:r+1;n[r]={leftIndex:a,rightIndex:i}})),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},a={};let i=0,o=0,s=e.length-1;for(;s>=0;){o=e.findIndex(((e,t)=>{var n;return t>=i&&(null==(n=e.endSeparator)?void 0:n.includes(" "))&&" / "!==e.endSeparator})),-1===o&&(o=e.length-1);for(let e=o;e>=i;e-=1)a[e]=s,r[s]=e,s-=1;i=o+1}return e.forEach(((t,i)=>{const o=a[i],s=0===o?null:r[o-1],l=o===e.length-1?null:r[o+1];n[i]={leftIndex:s,rightIndex:l}})),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}})(r.sections,F)),[r.sections,F]),z=()=>{var e;if(g)return void i(null);const t=null!=(e=R.current.selectionStart)?e:0;let n;n=t<=r.sections[0].startInInput||t>=r.sections[r.sections.length-1].endInInput?1:r.sections.findIndex((e=>e.startInInput-e.startSeparator.length>t));const a=-1===n?r.sections.length-1:n-1;i(a)},V=cf((function(e){if(!e.isDefaultPrevented()){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];null==b||b(e,...n),z()}})),W=cf((e=>{null==C||C(e),e.preventDefault()})),U=cf((function(){null==w||w(...arguments);const e=R.current;window.clearTimeout(L.current),L.current=setTimeout((()=>{e&&e===R.current&&(null!=a||g||(e.value.length&&Number(e.selectionEnd)-Number(e.selectionStart)===e.value.length?i("all"):z()))}))})),$=cf((function(){null==S||S(...arguments),i(null)})),H=cf((e=>{if(null==A||A(e),g)return void e.preventDefault();const t=e.clipboardData.getData("text");if(a&&a.startIndex===a.endIndex){const n=r.sections[a.startIndex],i=/^[a-zA-Z]+$/.test(t),o=/^[0-9]+$/.test(t),s=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(t);if("letter"===n.contentType&&i||"digit"===n.contentType&&o||"digit-with-letter"===n.contentType&&s)return I(),l({activeSection:n,newSectionValue:t,shouldGoToNextSection:!0}),void e.preventDefault();if(i||o)return void e.preventDefault()}e.preventDefault(),I(),c(t)})),q=cf((e=>{if(g)return;const t=e.target.value;if(""===t)return I(),void o();const n=e.nativeEvent.data,i=n&&n.length>1,l=i?n:t,d=zQ(l);if(null==a||i)return void c(i?n:d);let p;if(0===a.startIndex&&a.endIndex===r.sections.length-1&&1===d.length)p=d;else{const e=zQ(P.getValueStrFromSections(r.sections,F));let t=-1,n=-1;for(let r=0;r<e.length;r+=1)-1===t&&e[r]!==d[r]&&(t=r),-1===n&&e[e.length-r-1]!==d[d.length-r-1]&&(n=r);const i=r.sections[a.startIndex];if(t<i.start||e.length-n-1>i.end)return;const o=d.length-e.length+i.end-zQ(i.endSeparator||"").length;p=d.slice(i.start+zQ(i.startSeparator||"").length,o)}0!==p.length?_({keyPressed:p,sectionIndex:a.startIndex}):navigator.userAgent.toLowerCase().indexOf("android")>-1?u(l):(I(),s())})),G=cf((e=>{switch(null==x||x(e),!0){case"a"===e.key&&(e.ctrlKey||e.metaKey):e.preventDefault(),i("all");break;case"ArrowRight"===e.key:if(e.preventDefault(),null==a)i(B.startIndex);else if(a.startIndex!==a.endIndex)i(a.endIndex);else{const e=B.neighbors[a.startIndex].rightIndex;null!==e&&i(e)}break;case"ArrowLeft"===e.key:if(e.preventDefault(),null==a)i(B.endIndex);else if(a.startIndex!==a.endIndex)i(a.startIndex);else{const e=B.neighbors[a.startIndex].leftIndex;null!==e&&i(e)}break;case"Delete"===e.key:if(e.preventDefault(),g)break;null==a||0===a.startIndex&&a.endIndex===r.sections.length-1?o():s(),I();break;case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(e.key):{if(e.preventDefault(),g||null==a)break;const t=r.sections[a.startIndex],i=P.getActiveDateManager(n,r,t),o=FQ(n,h,t,e.key,d,i.date,{minutesStep:y});l({activeSection:t,newSectionValue:o,shouldGoToNextSection:!1});break}}}));lf((()=>{if(!R.current)return;if(null==a)return void(R.current.scrollLeft&&(R.current.scrollLeft=0));const e=r.sections[a.startIndex],t=r.sections[a.endIndex];let n=e.startInInput,i=t.endInInput;if(a.shouldSelectBoundarySelectors&&(n-=e.startSeparator.length,i+=t.endSeparator.length),n!==R.current.selectionStart||i!==R.current.selectionEnd){const e=R.current.scrollTop;R.current===b0(document)&&R.current.setSelectionRange(n,i),R.current.scrollTop=e}}));const K=h0((0,wl.A)({},m,{value:r.value,timezone:h}),D,N.isSameError,N.defaultErrorState),Y=e.useMemo((()=>void 0!==k?k:N.hasError(K)),[N,K,k]);e.useEffect((()=>{Y||a||I()}),[r.referenceValue,a,Y]),e.useEffect((()=>(R.current&&R.current===document.activeElement&&i("all"),()=>window.clearTimeout(L.current))),[]),e.useEffect((()=>{null!=r.tempValueStrAndroid&&null!=a&&(I(),s())}),[r.tempValueStrAndroid]);const X=e.useMemo((()=>{var e;return null!=(e=r.tempValueStrAndroid)?e:P.getValueStrFromSections(r.sections,F)}),[r.sections,P,r.tempValueStrAndroid,F]),Z=e.useMemo((()=>null==a||"letter"===r.sections[a.startIndex].contentType?"text":"numeric"),[a,r.sections]),J=R.current&&R.current===b0(document),Q=N.areValuesEqual(n,r.value,N.emptyValue),ee=!J&&Q;e.useImperativeHandle(v,(()=>({getSections:()=>r.sections,getActiveSectionIndex:()=>{var e,t,n;const a=null!=(e=R.current.selectionStart)?e:0,i=null!=(t=R.current.selectionEnd)?t:0,o=!(null==(n=R.current)||!n.readOnly);if(0===a&&0===i||o)return null;const s=a<=r.sections[0].startInInput?1:r.sections.findIndex((e=>e.startInInput-e.startSeparator.length>a));return-1===s?r.sections.length-1:s-1},setSelectedSections:e=>i(e)})));const te=cf((function(e){var t;e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];null==j||j(e,...r),o(),null==R||null==(t=R.current)||t.focus(),i(0)}));return(0,wl.A)({placeholder:p,autoComplete:"off",disabled:Boolean(E)},M,{value:ee?"":X,inputMode:Z,readOnly:g,onClick:V,onFocus:U,onBlur:$,onPaste:H,onChange:q,onKeyDown:G,onMouseUp:W,onClear:te,error:Y,ref:O,clearable:Boolean(T&&!Q&&!g&&!E)})},C0=e=>{let{props:t,value:n,adapter:r}=e;if(null===n)return null;const{shouldDisableDate:a,shouldDisableMonth:i,shouldDisableYear:o,disablePast:s,disableFuture:l,timezone:c}=t,u=r.utils.dateWithTimezone(void 0,c),d=gQ(r.utils,t.minDate,r.defaultDates.minDate),p=gQ(r.utils,t.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(n):return"invalidDate";case Boolean(a&&a(n)):return"shouldDisableDate";case Boolean(i&&i(n)):return"shouldDisableMonth";case Boolean(o&&o(n)):return"shouldDisableYear";case Boolean(l&&r.utils.isAfterDay(n,u)):return"disableFuture";case Boolean(s&&r.utils.isBeforeDay(n,u)):return"disablePast";case Boolean(d&&r.utils.isBeforeDay(n,d)):return"minDate";case Boolean(p&&r.utils.isAfterDay(n,p)):return"maxDate";default:return null}},A0=e=>{let{props:t,value:n,adapter:r}=e;const a=C0({adapter:r,value:n,props:t});return null!==a?a:(e=>{let{adapter:t,value:n,props:r}=e;if(null===n)return null;const{minTime:a,maxTime:i,minutesStep:o,shouldDisableClock:s,shouldDisableTime:l,disableIgnoringDatePartForTimeValidation:c=!1,disablePast:u,disableFuture:d,timezone:p}=r,h=t.utils.dateWithTimezone(void 0,p),f=PQ(c,t.utils);switch(!0){case!t.utils.isValid(n):return"invalidDate";case Boolean(a&&f(a,n)):return"minTime";case Boolean(i&&f(n,i)):return"maxTime";case Boolean(d&&t.utils.isAfter(n,h)):return"disableFuture";case Boolean(u&&t.utils.isBefore(n,h)):return"disablePast";case Boolean(l&&l(n,"hours")):return"shouldDisableTime-hours";case Boolean(l&&l(n,"minutes")):return"shouldDisableTime-minutes";case Boolean(l&&l(n,"seconds")):return"shouldDisableTime-seconds";case Boolean(s&&s(t.utils.getHours(n),"hours")):return"shouldDisableClock-hours";case Boolean(s&&s(t.utils.getMinutes(n),"minutes")):return"shouldDisableClock-minutes";case Boolean(s&&s(t.utils.getSeconds(n),"seconds")):return"shouldDisableClock-seconds";case Boolean(o&&t.utils.getMinutes(n)%o!==0):return"minutesStep";default:return null}})({adapter:r,value:n,props:t})},k0=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],T0=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],j0=["minDateTime","maxDateTime"],E0=[...k0,...T0,...j0],P0=e=>E0.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{}),N0=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],D0=(e,t)=>{const n=(0,wl.A)({},e),r={},a=e=>{n.hasOwnProperty(e)&&(r[e]=n[e],delete n[e])};return N0.forEach(a),"date"===t?k0.forEach(a):"time"===t?T0.forEach(a):"date-time"===t&&(k0.forEach(a),T0.forEach(a),j0.forEach(a)),{forwardedProps:n,internalProps:r}},M0=e=>{let{props:t,inputRef:n}=e;const r=(e=>{var t,n,r,a,i,o,s,l;const c=c0(),u=u0(),d=(null!=(t=e.ampm)?t:c.is12HourCycleInCurrentLocale())?c.formats.keyboardDateTime12h:c.formats.keyboardDateTime24h;return(0,wl.A)({},e,{disablePast:null!=(n=e.disablePast)&&n,disableFuture:null!=(r=e.disableFuture)&&r,format:null!=(a=e.format)?a:d,disableIgnoringDatePartForTimeValidation:Boolean(e.minDateTime||e.maxDateTime),minDate:gQ(c,null!=(i=e.minDateTime)?i:e.minDate,u.minDate),maxDate:gQ(c,null!=(o=e.maxDateTime)?o:e.maxDate,u.maxDate),minTime:null!=(s=e.minDateTime)?s:e.minTime,maxTime:null!=(l=e.maxDateTime)?l:e.maxTime})})(t),{forwardedProps:a,internalProps:i}=D0(r,"date-time");return S0({inputRef:n,forwardedProps:a,internalProps:i,valueManager:ZQ,fieldValueManager:JQ,validator:A0,valueType:"date-time"})};function _0(e){return Ff("MuiInputAdornment",e)}const I0=Bf("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var R0;const O0=["children","className","component","disablePointerEvents","disableTypography","position","variant"],L0=nf("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${sm(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===n.variant&&{[`&.${I0.positionStart}&:not(.${I0.hiddenLabel})`]:{marginTop:16}},"start"===n.position&&{marginRight:8},"end"===n.position&&{marginLeft:8},!0===n.disablePointerEvents&&{pointerEvents:"none"})})),F0=e.forwardRef((function(t,n){const r=rf({props:t,name:"MuiInputAdornment"}),{children:a,className:i,component:o="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=r,d=(0,Sl.A)(r,O0),p=mC()||{};let h=u;u&&p.variant,p&&!h&&(h=p.variant);const f=(0,wl.A)({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:c,variant:h}),m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:a,size:i,variant:o}=e;return mh({root:["root",n&&"disablePointerEvents",a&&`position${sm(a)}`,o,r&&"hiddenLabel",i&&`size${sm(i)}`]},_0,t)})(f);return(0,Tl.jsx)(fC.Provider,{value:null,children:(0,Tl.jsx)(L0,(0,wl.A)({as:o,ownerState:f,className:fh(m.root,i),ref:n},d,{children:"string"!==typeof a||l?(0,Tl.jsxs)(e.Fragment,{children:["start"===c?R0||(R0=(0,Tl.jsx)("span",{className:"notranslate",children:"\u200b"})):null,a]}):(0,Tl.jsx)(mx,{color:"text.secondary",children:a})}))})})),B0=F0,z0=bm((0,Tl.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),V0=bm((0,Tl.jsx)("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),W0=bm((0,Tl.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),U0=bm((0,Tl.jsx)("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),$0=(bm((0,Tl.jsxs)(e.Fragment,{children:[(0,Tl.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,Tl.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),bm((0,Tl.jsx)("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange")),H0=bm((0,Tl.jsxs)(e.Fragment,{children:[(0,Tl.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,Tl.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),q0=bm((0,Tl.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear"),G0=["ownerState"],K0=t=>{let{clearable:n,fieldProps:r,InputProps:a,onClear:i,slots:o,slotProps:s,components:l,componentsProps:c}=t;var u,d,p,h,f,m;const g=d0(),v=null!=(u=null!=(d=null==o?void 0:o.clearButton)?d:null==l?void 0:l.ClearButton)?u:hm,y=a0({elementType:v,externalSlotProps:null!=(p=null==s?void 0:s.clearButton)?p:null==c?void 0:c.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:g.fieldClearLabel}}),b=(0,Sl.A)(y,G0),x=null!=(h=null!=(f=null==o?void 0:o.clearIcon)?f:null==l?void 0:l.ClearIcon)?h:q0,w=a0({elementType:x,externalSlotProps:null!=(m=null==s?void 0:s.clearIcon)?m:null==c?void 0:c.clearIcon,ownerState:{}});return{InputProps:(0,wl.A)({},a,{endAdornment:(0,Tl.jsxs)(e.Fragment,{children:[n&&(0,Tl.jsx)(B0,{position:"end",sx:{marginRight:null!=a&&a.endAdornment?-1:-1.5},children:(0,Tl.jsx)(v,(0,wl.A)({},b,{onClick:i,children:(0,Tl.jsx)(x,(0,wl.A)({fontSize:"small"},w))}))}),null==a?void 0:a.endAdornment]})}),fieldProps:(0,wl.A)({},r,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(r.sx)?r.sx:[r.sx]]})}},Y0=["components","componentsProps","slots","slotProps","InputProps","inputProps"],X0=["inputRef"],Z0=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],J0=e.forwardRef((function(e,t){var n,r,a;const i=nQ({props:e,name:"MuiDateTimeField"}),{components:o,componentsProps:s,slots:l,slotProps:c,InputProps:u,inputProps:d}=i,p=(0,Sl.A)(i,Y0),h=i,f=null!=(n=null!=(r=null==l?void 0:l.textField)?r:null==o?void 0:o.TextField)?n:FU,m=a0({elementType:f,externalSlotProps:null!=(a=null==c?void 0:c.textField)?a:null==s?void 0:s.textField,externalForwardedProps:p,ownerState:h}),{inputRef:g}=m,v=(0,Sl.A)(m,X0);v.inputProps=(0,wl.A)({},d,v.inputProps),v.InputProps=(0,wl.A)({},u,v.InputProps);const y=M0({props:v,inputRef:g}),{ref:b,onPaste:x,onKeyDown:w,inputMode:S,readOnly:C,clearable:A,onClear:k}=y,T=(0,Sl.A)(y,Z0),{InputProps:j,fieldProps:E}=K0({onClear:k,clearable:A,fieldProps:T,InputProps:T.InputProps,slots:l,slotProps:c,components:o,componentsProps:s});return(0,Tl.jsx)(f,(0,wl.A)({ref:t},E,{InputProps:(0,wl.A)({},j,{readOnly:C}),inputProps:(0,wl.A)({},T.inputProps,{inputMode:S,onPaste:x,onKeyDown:w,ref:b})}))}));function Q0(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=Q0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const e1=function(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=Q0(e))&&(r&&(r+=" "),r+=t);return r};function t1(e){return Ff("MuiDateTimePickerTabs",e)}Bf("MuiDateTimePickerTabs",["root"]);const n1=e=>wQ(e)?"date":"time",r1=nf(EZ,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{boxShadow:`0 -1px 0 0 inset ${(t.vars||t).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(t.vars||t).palette.divider}`,[`& .${gZ.indicator}`]:{bottom:"auto",top:0}}}})),a1=function(t){const n=nQ({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=(0,Tl.jsx)($0,{}),onViewChange:a,timeIcon:i=(0,Tl.jsx)(H0,{}),view:o,hidden:s="undefined"===typeof window||window.innerHeight<667,className:l,sx:c}=n,u=d0(),d=(e=>{const{classes:t}=e;return mh({root:["root"]},t1,t)})(n);return s?null:(0,Tl.jsxs)(r1,{ownerState:n,variant:"fullWidth",value:n1(o),onChange:(e,t)=>{a((e=>"date"===e?"day":"hours")(t))},className:e1(l,d.root),sx:c,children:[(0,Tl.jsx)(IZ,{value:"date","aria-label":u.dateTableLabel,icon:(0,Tl.jsx)(e.Fragment,{children:r})}),(0,Tl.jsx)(IZ,{value:"time","aria-label":u.timeTableLabel,icon:(0,Tl.jsx)(e.Fragment,{children:i})})]})};function i1(e){return Ff("MuiPickersToolbarText",e)}const o1=Bf("MuiPickersToolbarText",["root","selected"]),s1=["className","selected","value"],l1=nf(mx,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${o1.selected}`]:t.selected}]})((e=>{let{theme:t}=e;return{transition:t.transitions.create("color"),color:(t.vars||t).palette.text.secondary,[`&.${o1.selected}`]:{color:(t.vars||t).palette.text.primary}}})),c1=e.forwardRef((function(e,t){const n=nQ({props:e,name:"MuiPickersToolbarText"}),{className:r,value:a}=n,i=(0,Sl.A)(n,s1),o=(e=>{const{classes:t,selected:n}=e;return mh({root:["root",n&&"selected"]},i1,t)})(n);return(0,Tl.jsx)(l1,(0,wl.A)({ref:t,className:e1(r,o.root),component:"span"},i,{children:a}))}));function u1(e){return Ff("MuiPickersToolbar",e)}Bf("MuiPickersToolbar",["root","content"]);const d1=nf("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:t.spacing(2,3)},n.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})})),p1=nf("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})((e=>{let{ownerState:t}=e;var n;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:t.isLandscape?"flex-start":"space-between",flexDirection:t.isLandscape?null!=(n=t.landscapeDirection)?n:"column":"row",flex:1,alignItems:t.isLandscape?"flex-start":"center"}})),h1=e.forwardRef((function(e,t){const n=nQ({props:e,name:"MuiPickersToolbar"}),{children:r,className:a,toolbarTitle:i,hidden:o,titleId:s}=n,l=n,c=(e=>{const{classes:t,isLandscape:n}=e;return mh({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},u1,t)})(l);return o?null:(0,Tl.jsxs)(d1,{ref:t,className:e1(c.root,a),ownerState:l,children:[(0,Tl.jsx)(mx,{color:"text.secondary",variant:"overline",id:s,children:i}),(0,Tl.jsx)(p1,{className:c.content,ownerState:l,children:r})]})})),f1=["align","className","selected","typographyClassName","value","variant","width"],m1=nf(vW,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),g1=e.forwardRef((function(e,t){const n=nQ({props:e,name:"MuiPickersToolbarButton"}),{align:r,className:a,selected:i,typographyClassName:o,value:s,variant:l,width:c}=n,u=(0,Sl.A)(n,f1),d=(e=>{const{classes:t}=e;return mh({root:["root"]},u1,t)})(n);return(0,Tl.jsx)(m1,(0,wl.A)({variant:"text",ref:t,className:e1(a,d.root)},c?{sx:{width:c}}:{},u,{children:(0,Tl.jsx)(c1,{align:r,className:o,variant:l,value:s,selected:i})}))}));function v1(e){return Ff("MuiDateTimePickerToolbar",e)}const y1=Bf("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]);function b1(t,n,r,a){const i=c0(),o=((e,t)=>e?t.getHours(e)>=12?"pm":"am":null)(t,i),s=e.useCallback((e=>{const o=null==t?null:((e,t,n,r)=>{const a=jQ(r.getHours(e),t,n);return r.setHours(e,a)})(t,e,Boolean(n),i);r(o,null!=a?a:"partial")}),[n,t,r,a,i]);return{meridiemMode:o,handleMeridiemChange:s}}const x1=320,w1=334,S1=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],C1=nf(h1,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t,ownerState:n}=e;return{paddingLeft:"desktop"!==n.toolbarVariant||n.isLandscape?16:24,paddingRight:"desktop"!==n.toolbarVariant||n.isLandscape?16:0,borderBottom:"desktop"===n.toolbarVariant?`1px solid ${(t.vars||t).palette.divider}`:void 0,borderRight:"desktop"===n.toolbarVariant&&n.isLandscape?`1px solid ${(t.vars||t).palette.divider}`:void 0,justifyContent:"space-around",position:"relative"}}));C1.propTypes={as:zc().elementType,classes:zc().object,className:zc().string,isLandscape:zc().bool.isRequired,isMobileKeyboardViewOpen:zc().bool,landscapeDirection:zc().oneOf(["column","row"]),ownerState:zc().object.isRequired,sx:zc().oneOfType([zc().arrayOf(zc().oneOfType([zc().func,zc().object,zc().bool])),zc().func,zc().object]),toggleMobileKeyboardView:zc().func,toolbarTitle:zc().node,viewType:zc().oneOf(["date","time"])};const A1=nf("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),k1=nf("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})((e=>{let{theme:t,ownerState:n}=e;const r=n.isLandscape&&"desktop"!==n.toolbarVariant?"column":"row";return(0,wl.A)({display:"flex",flexDirection:r},"desktop"===n.toolbarVariant&&(0,wl.A)({},!n.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),"rtl"===t.direction&&{flexDirection:`${r}-reverse`})})),T1=nf("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({display:"flex"},"desktop"===n.toolbarVariant&&{gap:1.5},"rtl"===t.direction&&{flexDirection:"row-reverse"})}));k1.propTypes={as:zc().elementType,ownerState:zc().object.isRequired,sx:zc().oneOfType([zc().arrayOf(zc().oneOfType([zc().func,zc().object,zc().bool])),zc().func,zc().object])};const j1=nf(c1,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})((e=>{let{ownerState:t}=e;return{margin:"desktop"===t.toolbarVariant?0:"0 4px 0 2px",cursor:"default"}})),E1=nf("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${y1.ampmLabel}`]:t.ampmLabel},{[`&.${y1.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})((e=>{let{ownerState:t}=e;return(0,wl.A)({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},t.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${y1.ampmLabel}`]:{fontSize:17}})}));function P1(t){const n=nQ({props:t,name:"MuiDateTimePickerToolbar"}),{ampm:r,ampmInClock:a,value:i,onChange:o,view:s,isLandscape:l,onViewChange:c,toolbarFormat:u,toolbarPlaceholder:d="\u2013\u2013",views:p,disabled:h,readOnly:f,toolbarVariant:m="mobile"}=n,g=(0,Sl.A)(n,S1),v=n,y=c0(),{meridiemMode:b,handleMeridiemChange:x}=b1(i,r,o),w=Boolean(r&&!a),S="desktop"===m,C=d0(),A=Sb(),k=(e=>{const{classes:t,theme:n,isLandscape:r}=e;return mh({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer","rtl"===n.direction&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer","rtl"===n.direction&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]},v1,t)})((0,wl.A)({},v,{theme:A})),T=e.useMemo((()=>i?u?y.formatByString(i,u):y.format(i,"shortDate"):d),[i,u,d,y]);return(0,Tl.jsxs)(C1,(0,wl.A)({toolbarTitle:C.dateTimePickerToolbarTitle,isLandscape:l,className:k.root},g,{ownerState:v,children:[(0,Tl.jsxs)(A1,{className:k.dateContainer,ownerState:v,children:[p.includes("year")&&(0,Tl.jsx)(g1,{tabIndex:-1,variant:"subtitle1",onClick:()=>c("year"),selected:"year"===s,value:i?y.format(i,"year"):"\u2013"}),p.includes("day")&&(0,Tl.jsx)(g1,{tabIndex:-1,variant:S?"h5":"h4",onClick:()=>c("day"),selected:"day"===s,value:T})]}),(0,Tl.jsxs)(k1,{className:k.timeContainer,ownerState:v,children:[(0,Tl.jsxs)(T1,{className:k.timeDigitsContainer,ownerState:v,children:[p.includes("hours")&&(0,Tl.jsx)(g1,{variant:S?"h5":"h3",width:S&&!l?48:void 0,onClick:()=>c("hours"),selected:"hours"===s,value:i?(j=i,r?y.format(j,"hours12h"):y.format(j,"hours24h")):"--"}),p.includes("minutes")&&(0,Tl.jsxs)(e.Fragment,{children:[(0,Tl.jsx)(j1,{variant:S?"h5":"h3",value:":",className:k.separator,ownerState:v}),(0,Tl.jsx)(g1,{variant:S?"h5":"h3",width:S&&!l?48:void 0,onClick:()=>c("minutes"),selected:"minutes"===s,value:i?y.format(i,"minutes"):"--"})]}),p.includes("seconds")&&(0,Tl.jsxs)(e.Fragment,{children:[(0,Tl.jsx)(j1,{variant:S?"h5":"h3",value:":",className:k.separator,ownerState:v}),(0,Tl.jsx)(g1,{variant:S?"h5":"h3",width:S&&!l?48:void 0,onClick:()=>c("seconds"),selected:"seconds"===s,value:i?y.format(i,"seconds"):"--"})]})]}),w&&!S&&(0,Tl.jsxs)(E1,{className:k.ampmSelection,ownerState:v,children:[(0,Tl.jsx)(g1,{variant:"subtitle2",selected:"am"===b,typographyClassName:k.ampmLabel,value:bQ(y,"am"),onClick:f?void 0:()=>x("am"),disabled:h}),(0,Tl.jsx)(g1,{variant:"subtitle2",selected:"pm"===b,typographyClassName:k.ampmLabel,value:bQ(y,"pm"),onClick:f?void 0:()=>x("pm"),disabled:h})]}),r&&S&&(0,Tl.jsx)(g1,{variant:"h5",onClick:()=>c("meridiem"),selected:"meridiem"===s,value:i&&b?bQ(y,b):"--",width:48})]})]}));var j}const N1=e=>{if(void 0!==e)return Object.keys(e).reduce(((t,n)=>(0,wl.A)({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]})),{})};function D1(t,n){var r,a,i,o,s,l,c,u,d,p,h;const f=c0(),m=u0(),g=nQ({props:t,name:n}),v=null!=(r=g.ampm)?r:f.is12HourCycleInCurrentLocale(),y=e.useMemo((()=>{var e;return null==(null==(e=g.localeText)?void 0:e.toolbarTitle)?g.localeText:(0,wl.A)({},g.localeText,{dateTimePickerToolbarTitle:g.localeText.toolbarTitle})}),[g.localeText]),b=null!=(a=g.slots)?a:N1(g.components),x=null!=(i=g.slotProps)?i:g.componentsProps;return(0,wl.A)({},g,hQ({views:g.views,openTo:g.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:v,localeText:y,orientation:null!=(o=g.orientation)?o:"portrait",disableIgnoringDatePartForTimeValidation:null!=(s=g.disableIgnoringDatePartForTimeValidation)?s:Boolean(g.minDateTime||g.maxDateTime||g.disablePast||g.disableFuture),disableFuture:null!=(l=g.disableFuture)&&l,disablePast:null!=(c=g.disablePast)&&c,minDate:gQ(f,null!=(u=g.minDateTime)?u:g.minDate,m.minDate),maxDate:gQ(f,null!=(d=g.maxDateTime)?d:g.maxDate,m.maxDate),minTime:null!=(p=g.minDateTime)?p:g.minTime,maxTime:null!=(h=g.maxDateTime)?h:g.maxTime,slots:(0,wl.A)({toolbar:P1,tabs:a1},b),slotProps:(0,wl.A)({},x,{toolbar:(0,wl.A)({ampm:v},null==x?void 0:x.toolbar)})})}const M1=t=>{let{shouldDisableDate:n,shouldDisableMonth:r,shouldDisableYear:a,minDate:i,maxDate:o,disableFuture:s,disablePast:l,timezone:c}=t;const u=l0();return e.useCallback((e=>null!==C0({adapter:u,value:e,props:{shouldDisableDate:n,shouldDisableMonth:r,shouldDisableYear:a,minDate:i,maxDate:o,disableFuture:s,disablePast:l,timezone:c}})),[u,n,r,a,i,o,s,l,c])},_1=t=>{const{value:n,referenceDate:r,defaultCalendarMonth:a,disableFuture:i,disablePast:o,disableSwitchToMonthOnDayFocus:s=!1,maxDate:l,minDate:c,onMonthChange:u,reduceAnimations:d,shouldDisableDate:p,timezone:h}=t,f=c0(),m=e.useRef(((e,t,n)=>(r,a)=>{switch(a.type){case"changeMonth":return(0,wl.A)({},r,{slideDirection:a.direction,currentMonth:a.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return(0,wl.A)({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(null!=r.focusedDay&&null!=a.focusedDay&&n.isSameDay(a.focusedDay,r.focusedDay))return r;const i=null!=a.focusedDay&&!t&&!n.isSameMonth(r.currentMonth,a.focusedDay);return(0,wl.A)({},r,{focusedDay:a.focusedDay,isMonthSwitchingAnimating:i&&!e&&!a.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(a.focusedDay):r.currentMonth,slideDirection:null!=a.focusedDay&&n.isAfterDay(a.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}})(Boolean(d),s,f)).current,g=e.useMemo((()=>{let e=null;return r?e=r:a&&(e=f.startOfMonth(a)),ZQ.getInitialReferenceValue({value:n,utils:f,timezone:h,props:t,referenceDate:e,granularity:DQ.day})}),[]),[v,y]=e.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:g,currentMonth:f.startOfMonth(g),slideDirection:"left"}),b=e.useCallback((e=>{y((0,wl.A)({type:"changeMonth"},e)),u&&u(e.newMonth)}),[u]),x=e.useCallback((e=>{const t=e;f.isSameMonth(t,v.currentMonth)||b({newMonth:f.startOfMonth(t),direction:f.isAfterDay(t,v.currentMonth)?"left":"right"})}),[v.currentMonth,b,f]),w=M1({shouldDisableDate:p,minDate:c,maxDate:l,disableFuture:i,disablePast:o,timezone:h}),S=e.useCallback((()=>{y({type:"finishMonthSwitchingAnimation"})}),[]),C=cf(((e,t)=>{w(e)||y({type:"changeFocusedDay",focusedDay:e,withoutMonthSwitchingAnimation:t})}));return{referenceDate:g,calendarState:v,changeMonth:x,changeFocusedDay:C,isDateDisabled:w,onMonthSwitchingAnimationEnd:S,handleChangeMonth:b}},I1=e=>Ff("MuiPickersFadeTransitionGroup",e),R1=(Bf("MuiPickersFadeTransitionGroup",["root"]),nf(Mf,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"}));function O1(e){const t=nQ({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:a,transKey:i}=t,o=(e=>{const{classes:t}=e;return mh({root:["root"]},I1,t)})(t),s=Sb();return a?n:(0,Tl.jsx)(R1,{className:e1(o.root,r),children:(0,Tl.jsx)(YN,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},i)})}function L1(e){return Ff("MuiPickersDay",e)}const F1=Bf("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),B1=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],z1=e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({},t.typography.caption,{width:36,height:36,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:t.transitions.create("background-color",{duration:t.transitions.duration.short}),color:(t.vars||t).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Fz(t.palette.primary.main,t.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.focusOpacity})`:Fz(t.palette.primary.main,t.palette.action.focusOpacity),[`&.${F1.selected}`]:{willChange:"background-color",backgroundColor:(t.vars||t).palette.primary.dark}},[`&.${F1.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,fontWeight:t.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(t.vars||t).palette.primary.dark}},[`&.${F1.disabled}:not(.${F1.selected})`]:{color:(t.vars||t).palette.text.disabled},[`&.${F1.disabled}&.${F1.selected}`]:{opacity:.6}},!n.disableMargin&&{margin:"0 2px"},n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&{color:(t.vars||t).palette.text.secondary},!n.disableHighlightToday&&n.today&&{[`&:not(.${F1.selected})`]:{border:`1px solid ${(t.vars||t).palette.text.secondary}`}})},V1=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},W1=nf(im,{name:"MuiPickersDay",slot:"Root",overridesResolver:V1})(z1),U1=nf("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:V1})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({},z1({theme:t,ownerState:n}),{opacity:0,pointerEvents:"none"})})),$1=()=>{},H1=e.forwardRef((function(t,n){const r=nQ({props:t,name:"MuiPickersDay"}),{autoFocus:a=!1,className:i,day:o,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:d,onDaySelect:p,onFocus:h=$1,onBlur:f=$1,onKeyDown:m=$1,onMouseDown:g=$1,onMouseEnter:v=$1,outsideCurrentMonth:y,selected:b=!1,showDaysOutsideCurrentMonth:x=!1,children:w,today:S=!1}=r,C=(0,Sl.A)(r,B1),A=(0,wl.A)({},r,{autoFocus:a,disabled:s,disableHighlightToday:l,disableMargin:c,selected:b,showDaysOutsideCurrentMonth:x,today:S}),k=(e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:a,disabled:i,outsideCurrentMonth:o,showDaysOutsideCurrentMonth:s,classes:l}=e,c=o&&!s;return mh({root:["root",t&&!c&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&a&&"today",o&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},L1,l)})(A),T=c0(),j=e.useRef(null),E=of(j,n);lf((()=>{!a||s||u||y||j.current.focus()}),[a,s,u,y]);return y&&!x?(0,Tl.jsx)(U1,{className:e1(k.root,k.hiddenDaySpacingFiller,i),ownerState:A,role:C.role}):(0,Tl.jsx)(W1,(0,wl.A)({className:e1(k.root,i),ref:E,centerRipple:!0,disabled:s,tabIndex:b?0:-1,onKeyDown:e=>m(e,o),onFocus:e=>h(e,o),onBlur:e=>f(e,o),onMouseEnter:e=>v(e,o),onClick:e=>{s||p(o),y&&e.currentTarget.focus(),d&&d(e)},onMouseDown:e=>{g(e),y&&e.preventDefault()}},C,{ownerState:A,children:w||T.format(o,"dayOfMonth")}))})),q1=e.memo(H1),G1=e=>Ff("MuiPickersSlideTransition",e),K1=Bf("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Y1=["children","className","reduceAnimations","slideDirection","transKey","classes"],X1=nf(Mf,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${K1["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${K1["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${K1.slideEnterActive}`]:t.slideEnterActive},{[`.${K1.slideExit}`]:t.slideExit},{[`.${K1["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${K1["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})((e=>{let{theme:t}=e;const n=t.transitions.create("transform",{duration:t.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${K1["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${K1["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${K1.slideEnterActive}`]:{transform:"translate(0%)",transition:n},[`& .${K1.slideExit}`]:{transform:"translate(0%)"},[`& .${K1["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:n,zIndex:0},[`& .${K1["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:n,zIndex:0}}}));const Z1=e=>Ff("MuiDayCalendar",e),J1=(Bf("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]),["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"]),Q1=["ownerState"],e2=nf("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),t2=nf("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),n2=nf(mx,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})((e=>{let{theme:t}=e;return{width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(t.vars||t).palette.text.secondary}})),r2=nf(mx,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})((e=>{let{theme:t}=e;return{width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:t.palette.text.disabled}})),a2=nf(mx,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})((e=>{let{theme:t}=e;return(0,wl.A)({},t.typography.caption,{width:36,height:36,padding:0,margin:"0 2px",color:t.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})})),i2=nf("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:240}),o2=nf((function(t){const n=nQ({props:t,name:"MuiPickersSlideTransition"}),{children:r,className:a,reduceAnimations:i,transKey:o}=n,s=(0,Sl.A)(n,Y1),l=(e=>{const{classes:t,slideDirection:n}=e;return mh({root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]},G1,t)})(n),c=Sb();if(i)return(0,Tl.jsx)("div",{className:e1(l.root,a),children:r});const u={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return(0,Tl.jsx)(X1,{className:e1(l.root,a),childFactory:t=>e.cloneElement(t,{classNames:u}),role:"presentation",children:(0,Tl.jsx)(IC,(0,wl.A)({mountOnEnter:!0,unmountOnExit:!0,timeout:c.transitions.duration.complex,classNames:u},s,{children:r}),o)})}),{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:240}),s2=nf("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),l2=nf("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:"2px 0",display:"flex",justifyContent:"center"});function c2(t){var n,r,a;let{parentProps:i,day:o,focusableDay:s,selectedDays:l,isDateDisabled:c,currentMonthNumber:u,isViewFocused:d}=t,p=(0,Sl.A)(t,J1);const{disabled:h,disableHighlightToday:f,isMonthSwitchingAnimating:m,showDaysOutsideCurrentMonth:g,components:v,componentsProps:y,slots:b,slotProps:x,timezone:w}=i,S=c0(),C=p0(w),A=null!==s&&S.isSameDay(o,s),k=l.some((e=>S.isSameDay(e,o))),T=S.isSameDay(o,C),j=null!=(n=null!=(r=null==b?void 0:b.day)?r:null==v?void 0:v.Day)?n:q1,E=a0({elementType:j,externalSlotProps:null!=(a=null==x?void 0:x.day)?a:null==y?void 0:y.day,additionalProps:(0,wl.A)({disableHighlightToday:f,showDaysOutsideCurrentMonth:g,role:"gridcell",isAnimating:m,"data-timestamp":S.toJsDate(o).valueOf()},p),ownerState:(0,wl.A)({},i,{day:o,selected:k})}),P=(0,Sl.A)(E,Q1),N=e.useMemo((()=>h||c(o)),[h,c,o]),D=e.useMemo((()=>S.getMonth(o)!==u),[S,o,u]),M=e.useMemo((()=>{const e=S.startOfMonth(S.setMonth(o,u));return g?S.isSameDay(o,S.startOfWeek(e)):S.isSameDay(o,e)}),[u,o,g,S]),_=e.useMemo((()=>{const e=S.endOfMonth(S.setMonth(o,u));return g?S.isSameDay(o,S.endOfWeek(e)):S.isSameDay(o,e)}),[u,o,g,S]);return(0,Tl.jsx)(j,(0,wl.A)({},P,{day:o,disabled:N,autoFocus:d&&A,today:T,outsideCurrentMonth:D,isFirstVisibleCell:M,isLastVisibleCell:_,selected:k,tabIndex:A?0:-1,"aria-selected":k,"aria-current":T?"date":void 0}))}function u2(t){const n=nQ({props:t,name:"MuiDayCalendar"}),{onFocusedDayChange:r,className:a,currentMonth:i,selectedDays:o,focusedDay:s,loading:l,onSelectedDaysChange:c,onMonthSwitchingAnimationEnd:u,readOnly:d,reduceAnimations:p,renderLoading:h=()=>(0,Tl.jsx)("span",{children:"..."}),slideDirection:f,TransitionProps:m,disablePast:g,disableFuture:v,minDate:y,maxDate:b,shouldDisableDate:x,shouldDisableMonth:w,shouldDisableYear:S,dayOfWeekFormatter:C,hasFocus:A,onFocusedViewChange:k,gridLabelId:T,displayWeekNumber:j,fixedWeekNumber:E,autoFocus:P,timezone:N}=n,D=p0(N),M=c0(),_=(e=>{const{classes:t}=e;return mh({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},Z1,t)})(n),I="rtl"===Sb().direction,R=C||((e,t)=>M.format(t,"weekdayShort").charAt(0).toUpperCase()),O=M1({shouldDisableDate:x,shouldDisableMonth:w,shouldDisableYear:S,minDate:y,maxDate:b,disablePast:g,disableFuture:v,timezone:N}),L=d0(),[F,B]=kS({name:"DayCalendar",state:"hasFocus",controlled:A,default:null!=P&&P}),[z,V]=e.useState((()=>s||D)),W=cf((e=>{d||c(e)})),U=e=>{O(e)||(r(e),V(e),null==k||k(!0),B(!0))},$=cf(((e,t)=>{switch(e.key){case"ArrowUp":U(M.addDays(t,-7)),e.preventDefault();break;case"ArrowDown":U(M.addDays(t,7)),e.preventDefault();break;case"ArrowLeft":{const n=M.addDays(t,I?1:-1),r=M.addMonths(t,I?1:-1),a=mQ({utils:M,date:n,minDate:I?n:M.startOfMonth(r),maxDate:I?M.endOfMonth(r):n,isDateDisabled:O,timezone:N});U(a||n),e.preventDefault();break}case"ArrowRight":{const n=M.addDays(t,I?-1:1),r=M.addMonths(t,I?-1:1),a=mQ({utils:M,date:n,minDate:I?M.startOfMonth(r):n,maxDate:I?n:M.endOfMonth(r),isDateDisabled:O,timezone:N});U(a||n),e.preventDefault();break}case"Home":U(M.startOfWeek(t)),e.preventDefault();break;case"End":U(M.endOfWeek(t)),e.preventDefault();break;case"PageUp":U(M.addMonths(t,1)),e.preventDefault();break;case"PageDown":U(M.addMonths(t,-1)),e.preventDefault()}})),H=cf(((e,t)=>U(t))),q=cf(((e,t)=>{F&&M.isSameDay(z,t)&&(null==k||k(!1))})),G=M.getMonth(i),K=e.useMemo((()=>o.filter((e=>!!e)).map((e=>M.startOfDay(e)))),[M,o]),Y=G,X=e.useMemo((()=>e.createRef()),[Y]),Z=M.startOfWeek(D),J=e.useMemo((()=>{const e=M.startOfMonth(i),t=M.endOfMonth(i);return O(z)||M.isAfterDay(z,t)||M.isBeforeDay(z,e)?mQ({utils:M,date:z,minDate:e,maxDate:t,disablePast:g,disableFuture:v,isDateDisabled:O,timezone:N}):z}),[i,v,g,z,O,M,N]),Q=e.useMemo((()=>{const e=M.setTimezone(i,N),t=M.getWeekArray(e);let n=M.addMonths(e,1);for(;E&&t.length<E;){const e=M.getWeekArray(n),r=M.isSameDay(t[t.length-1][0],e[0][0]);e.slice(r?1:0).forEach((e=>{t.length<E&&t.push(e)})),n=M.addMonths(n,1)}return t}),[i,E,M,N]);return(0,Tl.jsxs)(e2,{role:"grid","aria-labelledby":T,className:_.root,children:[(0,Tl.jsxs)(t2,{role:"row",className:_.header,children:[j&&(0,Tl.jsx)(r2,{variant:"caption",role:"columnheader","aria-label":L.calendarWeekNumberHeaderLabel,className:_.weekNumberLabel,children:L.calendarWeekNumberHeaderText}),CQ(M,D).map(((e,t)=>{var n;const r=M.format(e,"weekdayShort");return(0,Tl.jsx)(n2,{variant:"caption",role:"columnheader","aria-label":M.format(M.addDays(Z,t),"weekday"),className:_.weekDayLabel,children:null!=(n=null==R?void 0:R(r,e))?n:r},r+t.toString())}))]}),l?(0,Tl.jsx)(i2,{className:_.loadingContainer,children:h()}):(0,Tl.jsx)(o2,(0,wl.A)({transKey:Y,onExited:u,reduceAnimations:p,slideDirection:f,className:e1(a,_.slideTransition)},m,{nodeRef:X,children:(0,Tl.jsx)(s2,{ref:X,role:"rowgroup",className:_.monthContainer,children:Q.map(((e,t)=>(0,Tl.jsxs)(l2,{role:"row",className:_.weekContainer,"aria-rowindex":t+1,children:[j&&(0,Tl.jsx)(a2,{className:_.weekNumber,role:"rowheader","aria-label":L.calendarWeekNumberAriaLabelText(M.getWeekNumber(e[0])),children:L.calendarWeekNumberText(M.getWeekNumber(e[0]))}),e.map(((e,t)=>(0,Tl.jsx)(c2,{parentProps:n,day:e,selectedDays:K,focusableDay:J,onKeyDown:$,onFocus:H,onBlur:q,onDaySelect:W,isDateDisabled:O,currentMonthNumber:G,isViewFocused:F,"aria-colindex":t+1},e.toString())))]},`week-${e[0]}`)))})}))]})}function d2(e){return Ff("MuiPickersMonth",e)}const p2=Bf("MuiPickersMonth",["root","monthButton","disabled","selected"]),h2=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],f2=nf("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})((e=>{let{ownerState:t}=e;return{flexBasis:3===t.monthsPerRow?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"}})),m2=nf("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${p2.disabled}`]:t.disabled},{[`&.${p2.selected}`]:t.selected}]})((e=>{let{theme:t}=e;return(0,wl.A)({color:"unset",backgroundColor:"transparent",border:0,outline:0},t.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Fz(t.palette.action.active,t.palette.action.hoverOpacity)},"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Fz(t.palette.action.active,t.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${p2.disabled}`]:{color:(t.vars||t).palette.text.secondary},[`&.${p2.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,"&:focus, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}}})})),g2=e.memo((function(t){const n=nQ({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:a,disabled:i,selected:o,value:s,tabIndex:l,onClick:c,onKeyDown:u,onFocus:d,onBlur:p,"aria-current":h,"aria-label":f}=n,m=(0,Sl.A)(n,h2),g=e.useRef(null),v=(e=>{const{disabled:t,selected:n,classes:r}=e;return mh({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},d2,r)})(n);return lf((()=>{var e;r&&(null==(e=g.current)||e.focus())}),[r]),(0,Tl.jsx)(f2,(0,wl.A)({className:v.root,ownerState:n},m,{children:(0,Tl.jsx)(m2,{ref:g,disabled:i,type:"button",role:"radio",tabIndex:i?-1:l,"aria-current":h,"aria-checked":o,"aria-label":f,onClick:e=>c(e,s),onKeyDown:e=>u(e,s),onFocus:e=>d(e,s),onBlur:e=>p(e,s),className:v.monthButton,ownerState:n,children:a})}))}));function v2(e){return Ff("MuiMonthCalendar",e)}Bf("MuiMonthCalendar",["root"]);const y2=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"];const b2=nf("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:x1,boxSizing:"border-box"}),x2=e.forwardRef((function(t,n){const r=function(e,t){const n=c0(),r=u0(),a=nQ({props:e,name:t});return(0,wl.A)({disableFuture:!1,disablePast:!1},a,{minDate:gQ(n,a.minDate,r.minDate),maxDate:gQ(n,a.maxDate,r.maxDate)})}(t,"MuiMonthCalendar"),{className:a,value:i,defaultValue:o,referenceDate:s,disabled:l,disableFuture:c,disablePast:u,maxDate:d,minDate:p,onChange:h,shouldDisableMonth:f,readOnly:m,disableHighlightToday:g,autoFocus:v=!1,onMonthFocus:y,hasFocus:b,onFocusedViewChange:x,monthsPerRow:w=3,timezone:S,gridLabelId:C}=r,A=(0,Sl.A)(r,y2),{value:k,handleValueChange:T,timezone:j}=m0({name:"MonthCalendar",timezone:S,value:i,defaultValue:o,onChange:h,valueManager:ZQ}),E=p0(j),P=Hm(),N=c0(),D=e.useMemo((()=>ZQ.getInitialReferenceValue({value:k,utils:N,props:r,timezone:j,referenceDate:s,granularity:DQ.month})),[]),M=r,_=(e=>{const{classes:t}=e;return mh({root:["root"]},v2,t)})(M),I=e.useMemo((()=>N.getMonth(E)),[N,E]),R=e.useMemo((()=>null!=k?N.getMonth(k):g?null:N.getMonth(D)),[k,N,g,D]),[O,L]=e.useState((()=>R||I)),[F,B]=kS({name:"MonthCalendar",state:"hasFocus",controlled:b,default:null!=v&&v}),z=cf((e=>{B(e),x&&x(e)})),V=e.useCallback((e=>{const t=N.startOfMonth(u&&N.isAfter(E,p)?E:p),n=N.startOfMonth(c&&N.isBefore(E,d)?E:d),r=N.startOfMonth(e);return!!N.isBefore(r,t)||(!!N.isAfter(r,n)||!!f&&f(r))}),[c,u,d,p,E,f,N]),W=cf(((e,t)=>{if(m)return;const n=N.setMonth(null!=k?k:D,t);T(n)})),U=cf((e=>{V(N.setMonth(null!=k?k:D,e))||(L(e),z(!0),y&&y(e))}));e.useEffect((()=>{L((e=>null!==R&&e!==R?R:e))}),[R]);const $=cf(((e,t)=>{const n=12;switch(e.key){case"ArrowUp":U((n+t-3)%n),e.preventDefault();break;case"ArrowDown":U((n+t+3)%n),e.preventDefault();break;case"ArrowLeft":U((n+t+("ltr"===P.direction?-1:1))%n),e.preventDefault();break;case"ArrowRight":U((n+t+("ltr"===P.direction?1:-1))%n),e.preventDefault()}})),H=cf(((e,t)=>{U(t)})),q=cf(((e,t)=>{O===t&&z(!1)}));return(0,Tl.jsx)(b2,(0,wl.A)({ref:n,className:e1(_.root,a),ownerState:M,role:"radiogroup","aria-labelledby":C},A,{children:vQ(N,null!=k?k:D).map((e=>{const t=N.getMonth(e),n=N.format(e,"monthShort"),r=N.format(e,"month"),a=t===R,i=l||V(e);return(0,Tl.jsx)(g2,{selected:a,value:t,onClick:W,onKeyDown:$,autoFocus:F&&t===O,disabled:i,tabIndex:t===O?0:-1,onFocus:H,onBlur:q,"aria-current":I===t?"date":void 0,"aria-label":r,monthsPerRow:w,children:n},n)}))}))}));function w2(e){return Ff("MuiPickersYear",e)}const S2=Bf("MuiPickersYear",["root","yearButton","selected","disabled"]),C2=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],A2=nf("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})((e=>{let{ownerState:t}=e;return{flexBasis:3===t.yearsPerRow?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"}})),k2=nf("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${S2.disabled}`]:t.disabled},{[`&.${S2.selected}`]:t.selected}]})((e=>{let{theme:t}=e;return(0,wl.A)({color:"unset",backgroundColor:"transparent",border:0,outline:0},t.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.focusOpacity})`:Fz(t.palette.action.active,t.palette.action.focusOpacity)},"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Fz(t.palette.action.active,t.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${S2.disabled}`]:{color:(t.vars||t).palette.text.secondary},[`&.${S2.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,"&:focus, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}}})})),T2=e.memo((function(t){const n=nQ({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:a,children:i,disabled:o,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:p,onBlur:h,"aria-current":f}=n,m=(0,Sl.A)(n,C2),g=e.useRef(null),v=(e=>{const{disabled:t,selected:n,classes:r}=e;return mh({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},w2,r)})(n);return e.useEffect((()=>{r&&g.current.focus()}),[r]),(0,Tl.jsx)(A2,(0,wl.A)({className:e1(v.root,a),ownerState:n},m,{children:(0,Tl.jsx)(k2,{ref:g,disabled:o,type:"button",role:"radio",tabIndex:o?-1:c,"aria-current":f,"aria-checked":s,onClick:e=>u(e,l),onKeyDown:e=>d(e,l),onFocus:e=>p(e,l),onBlur:e=>h(e,l),className:v.yearButton,ownerState:n,children:i})}))}));function j2(e){return Ff("MuiYearCalendar",e)}Bf("MuiYearCalendar",["root"]);const E2=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"];const P2=nf("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:x1,maxHeight:280,boxSizing:"border-box",position:"relative"}),N2=e.forwardRef((function(t,n){const r=function(e,t){var n;const r=c0(),a=u0(),i=nQ({props:e,name:t});return(0,wl.A)({disablePast:!1,disableFuture:!1},i,{yearsPerRow:null!=(n=i.yearsPerRow)?n:3,minDate:gQ(r,i.minDate,a.minDate),maxDate:gQ(r,i.maxDate,a.maxDate)})}(t,"MuiYearCalendar"),{autoFocus:a,className:i,value:o,defaultValue:s,referenceDate:l,disabled:c,disableFuture:u,disablePast:d,maxDate:p,minDate:h,onChange:f,readOnly:m,shouldDisableYear:g,disableHighlightToday:v,onYearFocus:y,hasFocus:b,onFocusedViewChange:x,yearsPerRow:w,timezone:S,gridLabelId:C}=r,A=(0,Sl.A)(r,E2),{value:k,handleValueChange:T,timezone:j}=m0({name:"YearCalendar",timezone:S,value:o,defaultValue:s,onChange:f,valueManager:ZQ}),E=p0(j),P=Hm(),N=c0(),D=e.useMemo((()=>ZQ.getInitialReferenceValue({value:k,utils:N,props:r,timezone:j,referenceDate:l,granularity:DQ.year})),[]),M=r,_=(e=>{const{classes:t}=e;return mh({root:["root"]},j2,t)})(M),I=e.useMemo((()=>N.getYear(E)),[N,E]),R=e.useMemo((()=>null!=k?N.getYear(k):v?null:N.getYear(D)),[k,N,v,D]),[O,L]=e.useState((()=>R||I)),[F,B]=kS({name:"YearCalendar",state:"hasFocus",controlled:b,default:null!=a&&a}),z=cf((e=>{B(e),x&&x(e)})),V=e.useCallback((e=>{if(d&&N.isBeforeYear(e,E))return!0;if(u&&N.isAfterYear(e,E))return!0;if(h&&N.isBeforeYear(e,h))return!0;if(p&&N.isAfterYear(e,p))return!0;if(!g)return!1;const t=N.startOfYear(e);return g(t)}),[u,d,p,h,E,g,N]),W=cf(((e,t)=>{if(m)return;const n=N.setYear(null!=k?k:D,t);T(n)})),U=cf((e=>{V(N.setYear(null!=k?k:D,e))||(L(e),z(!0),null==y||y(e))}));e.useEffect((()=>{L((e=>null!==R&&e!==R?R:e))}),[R]);const $=cf(((e,t)=>{switch(e.key){case"ArrowUp":U(t-w),e.preventDefault();break;case"ArrowDown":U(t+w),e.preventDefault();break;case"ArrowLeft":U(t+("ltr"===P.direction?-1:1)),e.preventDefault();break;case"ArrowRight":U(t+("ltr"===P.direction?1:-1)),e.preventDefault()}})),H=cf(((e,t)=>{U(t)})),q=cf(((e,t)=>{O===t&&z(!1)})),G=e.useRef(null),K=of(n,G);return e.useEffect((()=>{if(a||null===G.current)return;const e=G.current.querySelector('[tabindex="0"]');if(!e)return;const t=e.offsetHeight,n=e.offsetTop,r=G.current.clientHeight,i=G.current.scrollTop,o=n+t;t>r||n<i||(G.current.scrollTop=o-r/2-t/2)}),[a]),(0,Tl.jsx)(P2,(0,wl.A)({ref:K,className:e1(_.root,i),ownerState:M,role:"radiogroup","aria-labelledby":C},A,{children:N.getYearRange(h,p).map((e=>{const t=N.getYear(e),n=t===R,r=c||V(e);return(0,Tl.jsx)(T2,{selected:n,value:t,onClick:W,onKeyDown:$,autoFocus:F&&t===O,disabled:r,tabIndex:t===O?0:-1,onFocus:H,onBlur:q,"aria-current":I===t?"date":void 0,yearsPerRow:w,children:N.format(e,"year")},N.format(e,"year"))}))}))}));function D2(t){let{onChange:n,onViewChange:r,openTo:a,view:i,views:o,autoFocus:s,focusedView:l,onFocusedViewChange:c}=t;var u,d;const p=e.useRef(a),h=e.useRef(o),f=e.useRef(o.includes(a)?a:o[0]),[m,g]=kS({name:"useViews",state:"view",controlled:i,default:f.current}),v=e.useRef(s?m:null),[y,b]=kS({name:"useViews",state:"focusedView",controlled:l,default:v.current});e.useEffect((()=>{(p.current&&p.current!==a||h.current&&h.current.some((e=>!o.includes(e))))&&(g(o.includes(a)?a:o[0]),h.current=o,p.current=a)}),[a,g,m,o]);const x=o.indexOf(m),w=null!=(u=o[x-1])?u:null,S=null!=(d=o[x+1])?d:null,C=cf(((e,t)=>{b(t?e:t=>e===t?null:t),null==c||c(e,t)})),A=cf((e=>{C(e,!0),e!==m&&(g(e),r&&r(e))})),k=cf((()=>{S&&A(S)})),T=cf(((e,t,r)=>{const a="finish"===t,i=r?o.indexOf(r)<o.length-1:Boolean(S);if(n(e,a&&i?"partial":t,r),r&&r!==m){const e=o[o.indexOf(r)+1];e&&A(e)}else a&&k()}));return{view:m,setView:A,focusedView:y,setFocusedView:C,nextView:S,previousView:w,defaultView:o.includes(a)?a:o[0],goToNextView:k,setValueAndGoToNextView:T}}function M2(e){return Ff("MuiPickersArrowSwitcher",e)}Bf("MuiPickersArrowSwitcher",["root","spacer","button"]);const _2=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],I2=["ownerState"],R2=["ownerState"],O2=nf("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),L2=nf("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})((e=>{let{theme:t}=e;return{width:t.spacing(3)}})),F2=nf(hm,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})((e=>{let{ownerState:t}=e;return(0,wl.A)({},t.hidden&&{visibility:"hidden"})})),B2=e.forwardRef((function(e,t){var n,r,a,i;const o="rtl"===Sb().direction,s=nQ({props:e,name:"MuiPickersArrowSwitcher"}),{children:l,className:c,slots:u,slotProps:d,isNextDisabled:p,isNextHidden:h,onGoToNext:f,nextLabel:m,isPreviousDisabled:g,isPreviousHidden:v,onGoToPrevious:y,previousLabel:b}=s,x=(0,Sl.A)(s,_2),w=s,S=(e=>{const{classes:t}=e;return mh({root:["root"],spacer:["spacer"],button:["button"]},M2,t)})(w),C={isDisabled:p,isHidden:h,goTo:f,label:m},A={isDisabled:g,isHidden:v,goTo:y,label:b},k=null!=(n=null==u?void 0:u.previousIconButton)?n:F2,T=a0({elementType:k,externalSlotProps:null==d?void 0:d.previousIconButton,additionalProps:{size:"medium",title:A.label,"aria-label":A.label,disabled:A.isDisabled,edge:"end",onClick:A.goTo},ownerState:(0,wl.A)({},w,{hidden:A.isHidden}),className:S.button}),j=null!=(r=null==u?void 0:u.nextIconButton)?r:F2,E=a0({elementType:j,externalSlotProps:null==d?void 0:d.nextIconButton,additionalProps:{size:"medium",title:C.label,"aria-label":C.label,disabled:C.isDisabled,edge:"start",onClick:C.goTo},ownerState:(0,wl.A)({},w,{hidden:C.isHidden}),className:S.button}),P=null!=(a=null==u?void 0:u.leftArrowIcon)?a:V0,N=a0({elementType:P,externalSlotProps:null==d?void 0:d.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),D=(0,Sl.A)(N,I2),M=null!=(i=null==u?void 0:u.rightArrowIcon)?i:W0,_=a0({elementType:M,externalSlotProps:null==d?void 0:d.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),I=(0,Sl.A)(_,R2);return(0,Tl.jsxs)(O2,(0,wl.A)({ref:t,className:e1(S.root,c),ownerState:w},x,{children:[(0,Tl.jsx)(k,(0,wl.A)({},T,{children:o?(0,Tl.jsx)(M,(0,wl.A)({},I)):(0,Tl.jsx)(P,(0,wl.A)({},D))})),l?(0,Tl.jsx)(mx,{variant:"subtitle1",component:"span",children:l}):(0,Tl.jsx)(L2,{className:S.spacer,ownerState:w}),(0,Tl.jsx)(j,(0,wl.A)({},E,{children:o?(0,Tl.jsx)(P,(0,wl.A)({},D)):(0,Tl.jsx)(M,(0,wl.A)({},I))}))]}))})),z2=e=>Ff("MuiPickersCalendarHeader",e),V2=Bf("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),W2=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],U2=["ownerState"],$2=nf("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),H2=nf("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})((e=>{let{theme:t}=e;return(0,wl.A)({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},t.typography.body1,{fontWeight:t.typography.fontWeightMedium})})),q2=nf("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),G2=nf(hm,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})((e=>{let{ownerState:t}=e;return(0,wl.A)({marginRight:"auto"},"year"===t.view&&{[`.${V2.switchViewIcon}`]:{transform:"rotate(180deg)"}})})),K2=nf(z0,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})((e=>{let{theme:t}=e;return{willChange:"transform",transition:t.transitions.create("transform"),transform:"rotate(0deg)"}})),Y2=e.forwardRef((function(t,n){var r,a,i,o;const s=d0(),l=c0(),c=nQ({props:t,name:"MuiPickersCalendarHeader"}),{slots:u,slotProps:d,components:p,currentMonth:h,disabled:f,disableFuture:m,disablePast:g,maxDate:v,minDate:y,onMonthChange:b,onViewChange:x,view:w,reduceAnimations:S,views:C,labelId:A,className:k,timezone:T}=c,j=(0,Sl.A)(c,W2),E=c,P=(e=>{const{classes:t}=e;return mh({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},z2,t)})(c),N=null!=(r=null!=(a=null==u?void 0:u.switchViewButton)?a:null==p?void 0:p.SwitchViewButton)?r:G2,D=a0({elementType:N,externalSlotProps:null==d?void 0:d.switchViewButton,additionalProps:{size:"small","aria-label":s.calendarViewSwitchingButtonAriaLabel(w)},ownerState:E,className:P.switchViewButton}),M=null!=(i=null!=(o=null==u?void 0:u.switchViewIcon)?o:null==p?void 0:p.SwitchViewIcon)?i:K2,_=a0({elementType:M,externalSlotProps:null==d?void 0:d.switchViewIcon,ownerState:void 0,className:P.switchViewIcon}),I=(0,Sl.A)(_,U2),R=function(t,n){let{disableFuture:r,maxDate:a,timezone:i}=n;const o=c0();return e.useMemo((()=>{const e=o.dateWithTimezone(void 0,i),n=o.startOfMonth(r&&o.isBefore(e,a)?e:a);return!o.isAfter(n,t)}),[r,a,t,o,i])}(h,{disableFuture:m,maxDate:v,timezone:T}),O=function(t,n){let{disablePast:r,minDate:a,timezone:i}=n;const o=c0();return e.useMemo((()=>{const e=o.dateWithTimezone(void 0,i),n=o.startOfMonth(r&&o.isAfter(e,a)?e:a);return!o.isBefore(n,t)}),[r,a,t,o,i])}(h,{disablePast:g,minDate:y,timezone:T});return 1===C.length&&"year"===C[0]?null:(0,Tl.jsxs)($2,(0,wl.A)({},j,{ownerState:E,className:e1(k,P.root),ref:n,children:[(0,Tl.jsxs)(H2,{role:"presentation",onClick:()=>{if(1!==C.length&&x&&!f)if(2===C.length)x(C.find((e=>e!==w))||C[0]);else{const e=0!==C.indexOf(w)?0:1;x(C[e])}},ownerState:E,"aria-live":"polite",className:P.labelContainer,children:[(0,Tl.jsx)(O1,{reduceAnimations:S,transKey:l.format(h,"monthAndYear"),children:(0,Tl.jsx)(q2,{id:A,ownerState:E,className:P.label,children:l.format(h,"monthAndYear")})}),C.length>1&&!f&&(0,Tl.jsx)(N,(0,wl.A)({},D,{children:(0,Tl.jsx)(M,(0,wl.A)({},I))}))]}),(0,Tl.jsx)(YN,{in:"day"===w,children:(0,Tl.jsx)(B2,{slots:u,slotProps:d,onGoToPrevious:()=>b(l.addMonths(h,-1),"right"),isPreviousDisabled:O,previousLabel:s.previousMonth,onGoToNext:()=>b(l.addMonths(h,1),"left"),isNextDisabled:R,nextLabel:s.nextMonth})})]}))})),X2=nf("div")({overflow:"hidden",width:x1,maxHeight:w1,display:"flex",flexDirection:"column",margin:"0 auto"}),Z2="undefined"!==typeof navigator&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),J2=Z2&&Z2[1]?parseInt(Z2[1],10):null,Q2=Z2&&Z2[2]?parseInt(Z2[2],10):null,e5=J2&&J2<10||Q2&&Q2<13||!1,t5=()=>cQ("@media (prefers-reduced-motion: reduce)",{defaultMatches:!1})||e5,n5=e=>Ff("MuiDateCalendar",e),r5=(Bf("MuiDateCalendar",["root","viewTransitionContainer"]),["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"]);const a5=nf(X2,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:w1}),i5=nf(O1,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),o5=e.forwardRef((function(t,n){var r,a,i;const o=c0(),s=CS(),l=function(e,t){var n,r,a,i,o,s,l;const c=c0(),u=u0(),d=t5(),p=nQ({props:e,name:t});return(0,wl.A)({},p,{loading:null!=(n=p.loading)&&n,disablePast:null!=(r=p.disablePast)&&r,disableFuture:null!=(a=p.disableFuture)&&a,openTo:null!=(i=p.openTo)?i:"day",views:null!=(o=p.views)?o:["year","day"],reduceAnimations:null!=(s=p.reduceAnimations)?s:d,renderLoading:null!=(l=p.renderLoading)?l:()=>(0,Tl.jsx)("span",{children:"..."}),minDate:gQ(c,p.minDate,u.minDate),maxDate:gQ(c,p.maxDate,u.maxDate)})}(t,"MuiDateCalendar"),{autoFocus:c,onViewChange:u,value:d,defaultValue:p,referenceDate:h,disableFuture:f,disablePast:m,defaultCalendarMonth:g,onChange:v,onYearChange:y,onMonthChange:b,reduceAnimations:x,shouldDisableDate:w,shouldDisableMonth:S,shouldDisableYear:C,view:A,views:k,openTo:T,className:j,disabled:E,readOnly:P,minDate:N,maxDate:D,disableHighlightToday:M,focusedView:_,onFocusedViewChange:I,showDaysOutsideCurrentMonth:R,fixedWeekNumber:O,dayOfWeekFormatter:L,components:F,componentsProps:B,slots:z,slotProps:V,loading:W,renderLoading:U,displayWeekNumber:$,yearsPerRow:H,monthsPerRow:q,timezone:G}=l,K=(0,Sl.A)(l,r5),{value:Y,handleValueChange:X,timezone:Z}=m0({name:"DateCalendar",timezone:G,value:d,defaultValue:p,onChange:v,valueManager:ZQ}),{view:J,setView:Q,focusedView:ee,setFocusedView:te,goToNextView:ne,setValueAndGoToNextView:re}=D2({view:A,views:k,openTo:T,onChange:X,onViewChange:u,autoFocus:c,focusedView:_,onFocusedViewChange:I}),{referenceDate:ae,calendarState:ie,changeFocusedDay:oe,changeMonth:se,handleChangeMonth:le,isDateDisabled:ce,onMonthSwitchingAnimationEnd:ue}=_1({value:Y,defaultCalendarMonth:g,referenceDate:h,reduceAnimations:x,onMonthChange:b,minDate:N,maxDate:D,shouldDisableDate:w,disablePast:m,disableFuture:f,timezone:Z}),de=E&&Y||N,pe=E&&Y||D,he=`${s}-grid-label`,fe=null!==ee,me=null!=(r=null!=(a=null==z?void 0:z.calendarHeader)?a:null==F?void 0:F.CalendarHeader)?r:Y2,ge=a0({elementType:me,externalSlotProps:null!=(i=null==V?void 0:V.calendarHeader)?i:null==B?void 0:B.calendarHeader,additionalProps:{views:k,view:J,currentMonth:ie.currentMonth,onViewChange:Q,onMonthChange:(e,t)=>le({newMonth:e,direction:t}),minDate:de,maxDate:pe,disabled:E,disablePast:m,disableFuture:f,reduceAnimations:x,timezone:Z,labelId:he,slots:z,slotProps:V},ownerState:l}),ve=cf((e=>{const t=o.startOfMonth(e),n=o.endOfMonth(e),r=ce(e)?mQ({utils:o,date:e,minDate:o.isBefore(N,t)?t:N,maxDate:o.isAfter(D,n)?n:D,disablePast:m,disableFuture:f,isDateDisabled:ce,timezone:Z}):e;r?(re(r,"finish"),null==b||b(t)):(ne(),se(t)),oe(r,!0)})),ye=cf((e=>{const t=o.startOfYear(e),n=o.endOfYear(e),r=ce(e)?mQ({utils:o,date:e,minDate:o.isBefore(N,t)?t:N,maxDate:o.isAfter(D,n)?n:D,disablePast:m,disableFuture:f,isDateDisabled:ce,timezone:Z}):e;r?(re(r,"finish"),null==y||y(r)):(ne(),se(t)),oe(r,!0)})),be=cf((e=>X(e?fQ(o,e,null!=Y?Y:ae):e,"finish",J)));e.useEffect((()=>{null!=Y&&o.isValid(Y)&&se(Y)}),[Y]);const xe=l,we=(e=>{const{classes:t}=e;return mh({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},n5,t)})(xe),Se={disablePast:m,disableFuture:f,maxDate:D,minDate:N},Ce={disableHighlightToday:M,readOnly:P,disabled:E,timezone:Z,gridLabelId:he},Ae=e.useRef(J);e.useEffect((()=>{Ae.current!==J&&(ee===Ae.current&&te(J,!0),Ae.current=J)}),[ee,te,J]);const ke=e.useMemo((()=>[Y]),[Y]);return(0,Tl.jsxs)(a5,(0,wl.A)({ref:n,className:e1(we.root,j),ownerState:xe},K,{children:[(0,Tl.jsx)(me,(0,wl.A)({},ge)),(0,Tl.jsx)(i5,{reduceAnimations:x,className:we.viewTransitionContainer,transKey:J,ownerState:xe,children:(0,Tl.jsxs)("div",{children:["year"===J&&(0,Tl.jsx)(N2,(0,wl.A)({},Se,Ce,{value:Y,onChange:ye,shouldDisableYear:C,hasFocus:fe,onFocusedViewChange:e=>te("year",e),yearsPerRow:H,referenceDate:ae})),"month"===J&&(0,Tl.jsx)(x2,(0,wl.A)({},Se,Ce,{hasFocus:fe,className:j,value:Y,onChange:ve,shouldDisableMonth:S,onFocusedViewChange:e=>te("month",e),monthsPerRow:q,referenceDate:ae})),"day"===J&&(0,Tl.jsx)(u2,(0,wl.A)({},ie,Se,Ce,{onMonthSwitchingAnimationEnd:ue,onFocusedDayChange:oe,reduceAnimations:x,selectedDays:ke,onSelectedDaysChange:be,shouldDisableDate:w,shouldDisableMonth:S,shouldDisableYear:C,hasFocus:fe,onFocusedViewChange:e=>te("day",e),showDaysOutsideCurrentMonth:R,fixedWeekNumber:O,dayOfWeekFormatter:L,displayWeekNumber:$,components:F,componentsProps:B,slots:z,slotProps:V,loading:W,renderLoading:U}))]})})]}))})),s5=e=>{let{view:t,onViewChange:n,views:r,focusedView:a,onFocusedViewChange:i,value:o,defaultValue:s,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:h,minDate:f,maxDate:m,shouldDisableDate:g,shouldDisableMonth:v,shouldDisableYear:y,reduceAnimations:b,onMonthChange:x,monthsPerRow:w,onYearChange:S,yearsPerRow:C,defaultCalendarMonth:A,components:k,componentsProps:T,slots:j,slotProps:E,loading:P,renderLoading:N,disableHighlightToday:D,readOnly:M,disabled:_,showDaysOutsideCurrentMonth:I,dayOfWeekFormatter:R,sx:O,autoFocus:L,fixedWeekNumber:F,displayWeekNumber:B,timezone:z}=e;return(0,Tl.jsx)(o5,{view:t,onViewChange:n,views:r.filter(wQ),focusedView:a&&wQ(a)?a:null,onFocusedViewChange:i,value:o,defaultValue:s,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:h,minDate:f,maxDate:m,shouldDisableDate:g,shouldDisableMonth:v,shouldDisableYear:y,reduceAnimations:b,onMonthChange:x,monthsPerRow:w,onYearChange:S,yearsPerRow:C,defaultCalendarMonth:A,components:k,componentsProps:T,slots:j,slotProps:E,loading:P,renderLoading:N,disableHighlightToday:D,readOnly:M,disabled:_,showDaysOutsideCurrentMonth:I,dayOfWeekFormatter:R,sx:O,autoFocus:L,fixedWeekNumber:F,displayWeekNumber:B,timezone:z})};function l5(e){return Ff("MuiMultiSectionDigitalClockSection",e)}const c5=Bf("MuiMultiSectionDigitalClockSection",["root","item"]),u5=nf("div")({display:"flex",margin:"0 auto"});function d5(e){return Ff("MuiTimeClock",e)}Bf("MuiTimeClock",["root","arrowSwitcher"]);const p5=220,h5=36,f5={x:110,y:110},m5=f5.x-f5.x,g5=0-f5.y,v5=(e,t,n)=>{const r=t-f5.x,a=n-f5.y,i=Math.atan2(m5,g5)-Math.atan2(r,a);let o=i*(180/Math.PI);o=Math.round(o/e)*e,o%=360;const s=r**2+a**2;return{value:Math.floor(o/e)||0,distance:Math.sqrt(s)}};function y5(e){return Ff("MuiClockPointer",e)}Bf("MuiClockPointer",["root","thumb"]);const b5=["className","hasSelected","isInner","type","viewValue"],x5=nf("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({width:2,backgroundColor:(t.vars||t).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},n.shouldAnimate&&{transition:t.transitions.create(["transform","height"])})})),w5=nf("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({width:4,height:4,backgroundColor:(t.vars||t).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:"calc(50% - 18px)",border:`16px solid ${(t.vars||t).palette.primary.main}`,boxSizing:"content-box"},n.hasSelected&&{backgroundColor:(t.vars||t).palette.primary.main})}));function S5(t){const n=nQ({props:t,name:"MuiClockPointer"}),{className:r,isInner:a,type:i,viewValue:o}=n,s=(0,Sl.A)(n,b5),l=e.useRef(i);e.useEffect((()=>{l.current=i}),[i]);const c=(0,wl.A)({},n,{shouldAnimate:l.current!==i}),u=(e=>{const{classes:t}=e;return mh({root:["root"],thumb:["thumb"]},y5,t)})(c);return(0,Tl.jsx)(x5,(0,wl.A)({style:(()=>{let e=360/("hours"===i?12:60)*o;return"hours"===i&&o>12&&(e-=360),{height:Math.round((a?.26:.4)*p5),transform:`rotateZ(${e}deg)`}})(),className:e1(r,u.root),ownerState:c},s,{children:(0,Tl.jsx)(w5,{ownerState:c,className:u.thumb})}))}function C5(e){return Ff("MuiClock",e)}Bf("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const A5=nf("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{display:"flex",justifyContent:"center",alignItems:"center",margin:t.spacing(2)}})),k5=nf("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),T5=nf("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),j5=nf("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})((e=>{let{ownerState:t}=e;return(0,wl.A)({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},t.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})})),E5=nf("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})((e=>{let{theme:t}=e;return{width:6,height:6,borderRadius:"50%",backgroundColor:(t.vars||t).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})),P5=nf(hm,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:h5},"am"===n.meridiemMode&&{backgroundColor:(t.vars||t).palette.primary.main,color:(t.vars||t).palette.primary.contrastText,"&:hover":{backgroundColor:(t.vars||t).palette.primary.light}})})),N5=nf(hm,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:h5},"pm"===n.meridiemMode&&{backgroundColor:(t.vars||t).palette.primary.main,color:(t.vars||t).palette.primary.contrastText,"&:hover":{backgroundColor:(t.vars||t).palette.primary.light}})})),D5=nf(mx,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function M5(t){const n=nQ({props:t,name:"MuiClock"}),{ampm:r,ampmInClock:a,autoFocus:i,children:o,value:s,handleMeridiemChange:l,isTimeDisabled:c,meridiemMode:u,minutesStep:d=1,onChange:p,selectedId:h,type:f,viewValue:m,disabled:g,readOnly:v,className:y}=n,b=n,x=c0(),w=d0(),S=e.useRef(!1),C=(e=>{const{classes:t}=e;return mh({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},C5,t)})(b),A=c(m,f),k=!r&&"hours"===f&&(m<1||m>12),T=(e,t)=>{g||v||c(e,f)||p(e,t)},j=(e,t)=>{let{offsetX:n,offsetY:a}=e;if(void 0===n){const t=e.target.getBoundingClientRect();n=e.changedTouches[0].clientX-t.left,a=e.changedTouches[0].clientY-t.top}const i="seconds"===f||"minutes"===f?function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const r=6*n;let{value:a}=v5(r,e,t);return a=a*n%60,a}(n,a,d):((e,t,n)=>{const{value:r,distance:a}=v5(30,e,t);let i=r||12;return n?i%=12:a<74&&(i+=12,i%=24),i})(n,a,Boolean(r));T(i,t)},E=e.useMemo((()=>"hours"===f||m%5===0),[f,m]),P="minutes"===f?d:1,N=e.useRef(null);lf((()=>{i&&N.current.focus()}),[i]);return(0,Tl.jsxs)(A5,{className:e1(y,C.root),children:[(0,Tl.jsxs)(k5,{className:C.clock,children:[(0,Tl.jsx)(j5,{onTouchMove:e=>{S.current=!0,j(e,"shallow")},onTouchEnd:e=>{S.current&&(j(e,"finish"),S.current=!1)},onMouseUp:e=>{S.current&&(S.current=!1),j(e.nativeEvent,"finish")},onMouseMove:e=>{e.buttons>0&&j(e.nativeEvent,"shallow")},ownerState:{disabled:g},className:C.squareMask}),!A&&(0,Tl.jsxs)(e.Fragment,{children:[(0,Tl.jsx)(E5,{className:C.pin}),null!=s&&(0,Tl.jsx)(S5,{type:f,viewValue:m,isInner:k,hasSelected:E})]}),(0,Tl.jsx)(T5,{"aria-activedescendant":h,"aria-label":w.clockLabelText(f,s,x),ref:N,role:"listbox",onKeyDown:e=>{if(!S.current)switch(e.key){case"Home":T(0,"partial"),e.preventDefault();break;case"End":T("minutes"===f?59:23,"partial"),e.preventDefault();break;case"ArrowUp":T(m+P,"partial"),e.preventDefault();break;case"ArrowDown":T(m-P,"partial"),e.preventDefault()}},tabIndex:0,className:C.wrapper,children:o})]}),r&&a&&(0,Tl.jsxs)(e.Fragment,{children:[(0,Tl.jsx)(P5,{onClick:v?void 0:()=>l("am"),disabled:g||null===u,ownerState:b,className:C.amButton,title:bQ(x,"am"),children:(0,Tl.jsx)(D5,{variant:"caption",className:C.meridiemText,children:bQ(x,"am")})}),(0,Tl.jsx)(N5,{disabled:g||null===u,onClick:v?void 0:()=>l("pm"),ownerState:b,className:C.pmButton,title:bQ(x,"pm"),children:(0,Tl.jsx)(D5,{variant:"caption",className:C.meridiemText,children:bQ(x,"pm")})})]})]})}function _5(e){return Ff("MuiClockNumber",e)}const I5=Bf("MuiClockNumber",["root","selected","disabled"]),R5=["className","disabled","index","inner","label","selected"],O5=nf("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${I5.disabled}`]:t.disabled},{[`&.${I5.selected}`]:t.selected}]})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({height:h5,width:h5,position:"absolute",left:"calc((100% - 36px) / 2)",display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(t.vars||t).palette.text.primary,fontFamily:t.typography.fontFamily,"&:focused":{backgroundColor:(t.vars||t).palette.background.paper},[`&.${I5.selected}`]:{color:(t.vars||t).palette.primary.contrastText},[`&.${I5.disabled}`]:{pointerEvents:"none",color:(t.vars||t).palette.text.disabled}},n.inner&&(0,wl.A)({},t.typography.body2,{color:(t.vars||t).palette.text.secondary}))}));function L5(e){const t=nQ({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:a,inner:i,label:o,selected:s}=t,l=(0,Sl.A)(t,R5),c=t,u=(e=>{const{classes:t,selected:n,disabled:r}=e;return mh({root:["root",n&&"selected",r&&"disabled"]},_5,t)})(c),d=a%12/12*Math.PI*2-Math.PI/2,p=91*(i?.65:1),h=Math.round(Math.cos(d)*p),f=Math.round(Math.sin(d)*p);return(0,Tl.jsx)(O5,(0,wl.A)({className:e1(n,u.root),"aria-disabled":!!r||void 0,"aria-selected":!!s||void 0,role:"option",style:{transform:`translate(${h}px, ${f+92}px`},ownerState:c},l,{children:o}))}const F5=e=>{let{ampm:t,value:n,getClockNumberText:r,isDisabled:a,selectedId:i,utils:o}=e;const s=n?o.getHours(n):null,l=[],c=t?12:23,u=e=>null!==s&&(t?12===e?12===s||0===s:s===e||s-12===e:s===e);for(let d=t?1:0;d<=c;d+=1){let e=d.toString();0===d&&(e="00");const n=!t&&(0===d||d>12);e=o.formatNumber(e);const s=u(d);l.push((0,Tl.jsx)(L5,{id:s?i:void 0,index:d,inner:n,selected:s,disabled:a(d),label:e,"aria-label":r(e)},d))}return l},B5=e=>{let{utils:t,value:n,isDisabled:r,getClockNumberText:a,selectedId:i}=e;const o=t.formatNumber;return[[5,o("05")],[10,o("10")],[15,o("15")],[20,o("20")],[25,o("25")],[30,o("30")],[35,o("35")],[40,o("40")],[45,o("45")],[50,o("50")],[55,o("55")],[0,o("00")]].map(((e,t)=>{let[o,s]=e;const l=o===n;return(0,Tl.jsx)(L5,{label:s,id:l?i:void 0,index:t+1,inner:!1,disabled:r(o),selected:l,"aria-label":a(s)},o)}))},z5=t=>{let{value:n,referenceDate:r,utils:a,props:i,timezone:o}=t;const s=e.useMemo((()=>ZQ.getInitialReferenceValue({value:n,utils:a,props:i,referenceDate:r,granularity:DQ.day,timezone:o,getTodayDate:()=>yQ(a,o,"date")})),[]);return null!=n?n:s},V5=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],W5=nf(X2,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),U5=nf(B2,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),$5=["hours","minutes"],H5=e.forwardRef((function(t,n){const r=c0(),a=nQ({props:t,name:"MuiTimeClock"}),{ampm:i=r.is12HourCycleInCurrentLocale(),ampmInClock:o=!1,autoFocus:s,components:l,componentsProps:c,slots:u,slotProps:d,value:p,defaultValue:h,referenceDate:f,disableIgnoringDatePartForTimeValidation:m=!1,maxTime:g,minTime:v,disableFuture:y,disablePast:b,minutesStep:x=1,shouldDisableClock:w,shouldDisableTime:S,showViewSwitcher:C,onChange:A,view:k,views:T=$5,openTo:j,onViewChange:E,focusedView:P,onFocusedViewChange:N,className:D,disabled:M,readOnly:_,timezone:I}=a,R=(0,Sl.A)(a,V5),O=null!=u?u:N1(l),L=null!=d?d:c,{value:F,handleValueChange:B,timezone:z}=m0({name:"TimeClock",timezone:I,value:p,defaultValue:h,onChange:A,valueManager:ZQ}),V=z5({value:F,referenceDate:f,utils:r,props:a,timezone:z}),W=d0(),U=p0(z),{view:$,setView:H,previousView:q,nextView:G,setValueAndGoToNextView:K}=D2({view:k,views:T,openTo:j,onViewChange:E,onChange:B,focusedView:P,onFocusedViewChange:N}),{meridiemMode:Y,handleMeridiemChange:X}=b1(V,i,K),Z=e.useCallback(((e,t)=>{const n=PQ(m,r),a="hours"===t||"minutes"===t&&T.includes("seconds"),o=e=>{let{start:t,end:r}=e;return(!v||!n(v,r))&&((!g||!n(t,g))&&((!y||!n(t,U))&&(!b||!n(U,a?r:t))))},s=function(e){if(e%(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1)!==0)return!1;if(null!=w&&w(e,t))return!1;if(S)switch(t){case"hours":return!S(r.setHours(V,e),"hours");case"minutes":return!S(r.setMinutes(V,e),"minutes");case"seconds":return!S(r.setSeconds(V,e),"seconds");default:return!1}return!0};switch(t){case"hours":{const t=jQ(e,Y,i),n=r.setHours(V,t);return!o({start:r.setSeconds(r.setMinutes(n,0),0),end:r.setSeconds(r.setMinutes(n,59),59)})||!s(t)}case"minutes":{const t=r.setMinutes(V,e);return!o({start:r.setSeconds(t,0),end:r.setSeconds(t,59)})||!s(e,x)}case"seconds":{const t=r.setSeconds(V,e);return!o({start:t,end:t})||!s(e)}default:throw new Error("not supported")}}),[i,V,m,g,Y,v,x,w,S,r,y,b,U,T]),J=CS(),Q=e.useMemo((()=>{switch($){case"hours":{const e=(e,t)=>{const n=jQ(e,Y,i);K(r.setHours(V,n),t)};return{onChange:e,viewValue:r.getHours(V),children:F5({value:F,utils:r,ampm:i,onChange:e,getClockNumberText:W.hoursClockNumberText,isDisabled:e=>M||Z(e,"hours"),selectedId:J})}}case"minutes":{const e=r.getMinutes(V),t=(e,t)=>{K(r.setMinutes(V,e),t)};return{viewValue:e,onChange:t,children:B5({utils:r,value:e,onChange:t,getClockNumberText:W.minutesClockNumberText,isDisabled:e=>M||Z(e,"minutes"),selectedId:J})}}case"seconds":{const e=r.getSeconds(V),t=(e,t)=>{K(r.setSeconds(V,e),t)};return{viewValue:e,onChange:t,children:B5({utils:r,value:e,onChange:t,getClockNumberText:W.secondsClockNumberText,isDisabled:e=>M||Z(e,"seconds"),selectedId:J})}}default:throw new Error("You must provide the type for ClockView")}}),[$,r,F,i,W.hoursClockNumberText,W.minutesClockNumberText,W.secondsClockNumberText,Y,K,V,Z,J,M]),ee=a,te=(e=>{const{classes:t}=e;return mh({root:["root"],arrowSwitcher:["arrowSwitcher"]},d5,t)})(ee);return(0,Tl.jsxs)(W5,(0,wl.A)({ref:n,className:e1(te.root,D),ownerState:ee},R,{children:[(0,Tl.jsx)(M5,(0,wl.A)({autoFocus:null!=s?s:!!P,ampmInClock:o&&T.includes("hours"),value:F,type:$,ampm:i,minutesStep:x,isTimeDisabled:Z,meridiemMode:Y,handleMeridiemChange:X,selectedId:J,disabled:M,readOnly:_},Q)),C&&(0,Tl.jsx)(U5,{className:te.arrowSwitcher,slots:O,slotProps:L,onGoToPrevious:()=>H(q),isPreviousDisabled:!q,previousLabel:W.openPreviousView,onGoToNext:()=>H(G),isNextDisabled:!G,nextLabel:W.openNextView,ownerState:ee})]}))}));function q5(e){return Ff("MuiDigitalClock",e)}const G5=Bf("MuiDigitalClock",["root","list","item"]),K5=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],Y5=nf(X2,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{ownerState:t}=e;return{overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},maxHeight:232}})),X5=nf(Kb,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),Z5=nf(lx,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})((e=>{let{theme:t}=e;return{padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Fz(t.palette.primary.main,t.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(t.vars||t).palette.primary.main,color:(t.vars||t).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.focusOpacity})`:Fz(t.palette.primary.main,t.palette.action.focusOpacity)}}})),J5=e.forwardRef((function(t,n){var r,a,i;const o=c0(),s=e.useRef(null),l=of(n,s),c=nQ({props:t,name:"MuiDigitalClock"}),{ampm:u=o.is12HourCycleInCurrentLocale(),timeStep:d=30,autoFocus:p,components:h,componentsProps:f,slots:m,slotProps:g,value:v,defaultValue:y,referenceDate:b,disableIgnoringDatePartForTimeValidation:x=!1,maxTime:w,minTime:S,disableFuture:C,disablePast:A,minutesStep:k=1,shouldDisableClock:T,shouldDisableTime:j,onChange:E,view:P,openTo:N,onViewChange:D,focusedView:M,onFocusedViewChange:_,className:I,disabled:R,readOnly:O,views:L=["hours"],skipDisabled:F=!1,timezone:B}=c,z=(0,Sl.A)(c,K5),{value:V,handleValueChange:W,timezone:U}=m0({name:"DigitalClock",timezone:B,value:v,defaultValue:y,onChange:E,valueManager:ZQ}),$=d0(),H=p0(U),q=e.useMemo((()=>(0,wl.A)({},c,{alreadyRendered:!!s.current})),[c]),G=(e=>{const{classes:t}=e;return mh({root:["root"],list:["list"],item:["item"]},q5,t)})(q),K=null!=(r=null!=(a=null==m?void 0:m.digitalClockItem)?a:null==h?void 0:h.DigitalClockItem)?r:Z5,Y=a0({elementType:K,externalSlotProps:null!=(i=null==g?void 0:g.digitalClockItem)?i:null==f?void 0:f.digitalClockItem,ownerState:{},className:G.item}),X=z5({value:V,referenceDate:b,utils:o,props:c,timezone:U}),Z=cf((e=>W(e,"finish","hours"))),{setValueAndGoToNextView:J}=D2({view:P,views:L,openTo:N,onViewChange:D,onChange:Z,focusedView:M,onFocusedViewChange:_}),Q=cf((e=>{J(e,"finish")}));e.useEffect((()=>{if(null===s.current)return;const e=s.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!e)return;const t=e.offsetTop;s.current.scrollTop=t-4}));const ee=e.useCallback((e=>{const t=PQ(x,o);return!((!S||!t(S,e))&&(!w||!t(e,w))&&(!C||!t(e,H))&&(!A||!t(H,e)))||!(o.getMinutes(e)%k===0&&(null==T||!T(o.toJsDate(e).getTime(),"hours"))&&(!j||!j(e,"hours")))}),[x,o,S,w,C,H,A,k,T,j]),te=e.useMemo((()=>{const e=o.startOfDay(X);return[e,...Array.from({length:Math.ceil(1440/d)-1},((t,n)=>o.addMinutes(e,d*(n+1))))]}),[X,d,o]);return(0,Tl.jsx)(Y5,(0,wl.A)({ref:l,className:e1(G.root,I),ownerState:q},z,{children:(0,Tl.jsx)(X5,{autoFocusItem:p||!!M,role:"listbox","aria-label":$.timePickerToolbarTitle,className:G.list,children:te.map((e=>{if(F&&ee(e))return null;const t=o.isEqual(e,V);return(0,Tl.jsx)(K,(0,wl.A)({onClick:()=>!O&&Q(e),selected:t,disabled:R||ee(e),disableRipple:O,role:"option","aria-disabled":O,"aria-selected":t},Y,{children:o.format(e,u?"fullTime12h":"fullTime24h")}),o.toISO(e))}))})}))}));function Q5(e){return Ff("MuiMultiSectionDigitalClock",e)}Bf("MuiMultiSectionDigitalClock",["root"]);const e4=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],t4=nf(Kb,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t,ownerState:n}=e;return{maxHeight:232,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:n.alreadyRendered?"smooth":"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(t.vars||t).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}}})),n4=nf(lx,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})((e=>{let{theme:t}=e;return{padding:8,margin:"2px 4px",width:48,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Fz(t.palette.primary.main,t.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(t.vars||t).palette.primary.main,color:(t.vars||t).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.focusOpacity})`:Fz(t.palette.primary.main,t.palette.action.focusOpacity)}}})),r4=e.forwardRef((function(t,n){var r;const a=e.useRef(null),i=of(n,a),o=e.useRef(null),s=nQ({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:c,className:u,disabled:d,readOnly:p,items:h,active:f,slots:m,slotProps:g,skipDisabled:v}=s,y=(0,Sl.A)(s,e4),b=e.useMemo((()=>(0,wl.A)({},s,{alreadyRendered:!!a.current})),[s]),x=(e=>{const{classes:t}=e;return mh({root:["root"],item:["item"]},l5,t)})(b),w=null!=(r=null==m?void 0:m.digitalClockSectionItem)?r:n4;return e.useEffect((()=>{if(null===a.current)return;const e=a.current.querySelector('[role="option"][aria-selected="true"]');if(f&&l&&e&&e.focus(),!e||o.current===e)return;o.current=e;const t=e.offsetTop;a.current.scrollTop=t-4})),(0,Tl.jsx)(t4,(0,wl.A)({ref:i,className:e1(x.root,u),ownerState:b,autoFocusItem:l&&f,role:"listbox"},y,{children:h.map((e=>{var t,n;if(v&&null!=(t=e.isDisabled)&&t.call(e,e.value))return null;const r=e.isSelected(e.value);return(0,Tl.jsx)(w,(0,wl.A)({onClick:()=>!p&&c(e.value),selected:r,disabled:d||(null==(n=e.isDisabled)?void 0:n.call(e,e.value)),disableRipple:p,role:"option","aria-disabled":p,"aria-label":e.ariaLabel,"aria-selected":r,className:x.item},null==g?void 0:g.digitalClockSectionItem,{children:e.label}),e.label)}))}))})),a4=e=>{let{now:t,value:n,utils:r,ampm:a,isDisabled:i,resolveAriaLabel:o,timeStep:s}=e;const l=n?r.getHours(n):null,c=[],u=e=>null!==l&&(a?12===e?12===l||0===l:l===e||l-12===e:l===e),d=a?11:23;for(let p=0;p<=d;p+=s){let e=r.format(r.setHours(t,p),a?"hours12h":"hours24h");const n=o(parseInt(e,10).toString());e=r.formatNumber(e),c.push({value:p,label:e,isSelected:u,isDisabled:i,ariaLabel:n})}return c},i4=e=>{let{value:t,utils:n,isDisabled:r,timeStep:a,resolveLabel:i,resolveAriaLabel:o,hasValue:s=!0}=e;const l=e=>null!==t&&(s&&t===e);return[...Array.from({length:Math.ceil(60/a)},((e,t)=>{const s=a*t;return{value:s,label:n.formatNumber(i(s)),isDisabled:r,isSelected:l,ariaLabel:o(s.toString())}}))]},o4=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],s4=nf(X2,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(t.vars||t).palette.divider}`}})),l4=e.forwardRef((function(t,n){const r=c0(),a=nQ({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:i=r.is12HourCycleInCurrentLocale(),timeSteps:o,autoFocus:s,components:l,componentsProps:c,slots:u,slotProps:d,value:p,defaultValue:h,referenceDate:f,disableIgnoringDatePartForTimeValidation:m=!1,maxTime:g,minTime:v,disableFuture:y,disablePast:b,minutesStep:x=1,shouldDisableClock:w,shouldDisableTime:S,onChange:C,view:A,views:k=["hours","minutes"],openTo:T,onViewChange:j,focusedView:E,onFocusedViewChange:P,className:N,disabled:D,readOnly:M,skipDisabled:_=!1,timezone:I}=a,R=(0,Sl.A)(a,o4),{value:O,handleValueChange:L,timezone:F}=m0({name:"MultiSectionDigitalClock",timezone:I,value:p,defaultValue:h,onChange:C,valueManager:ZQ}),B=d0(),z=p0(F),V=e.useMemo((()=>(0,wl.A)({hours:1,minutes:5,seconds:5},o)),[o]),W=z5({value:O,referenceDate:f,utils:r,props:a,timezone:F}),U=cf(((e,t,n)=>L(e,t,n))),$=e.useMemo((()=>i&&k.includes("hours")?k.includes("meridiem")?k:[...k,"meridiem"]:k),[i,k]),{view:H,setValueAndGoToNextView:q,focusedView:G}=D2({view:A,views:$,openTo:T,onViewChange:j,onChange:U,focusedView:E,onFocusedViewChange:P}),K=cf((e=>{q(e,"finish","meridiem")})),{meridiemMode:Y,handleMeridiemChange:X}=b1(W,i,K,"finish"),Z=e.useCallback(((e,t)=>{const n=PQ(m,r),a="hours"===t||"minutes"===t&&$.includes("seconds"),o=e=>{let{start:t,end:r}=e;return(!v||!n(v,r))&&((!g||!n(t,g))&&((!y||!n(t,z))&&(!b||!n(z,a?r:t))))},s=function(e){if(e%(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1)!==0)return!1;if(null!=w&&w(e,t))return!1;if(S)switch(t){case"hours":return!S(r.setHours(W,e),"hours");case"minutes":return!S(r.setMinutes(W,e),"minutes");case"seconds":return!S(r.setSeconds(W,e),"seconds");default:return!1}return!0};switch(t){case"hours":{const t=jQ(e,Y,i),n=r.setHours(W,t);return!o({start:r.setSeconds(r.setMinutes(n,0),0),end:r.setSeconds(r.setMinutes(n,59),59)})||!s(t)}case"minutes":{const t=r.setMinutes(W,e);return!o({start:r.setSeconds(t,0),end:r.setSeconds(t,59)})||!s(e,x)}case"seconds":{const t=r.setSeconds(W,e);return!o({start:t,end:t})||!s(e)}default:throw new Error("not supported")}}),[i,W,m,g,Y,v,x,w,S,r,y,b,z,$]),J=e.useCallback((e=>{switch(e){case"hours":return{onChange:e=>{const t=jQ(e,Y,i);q(r.setHours(W,t),"finish","hours")},items:a4({now:z,value:O,ampm:i,utils:r,isDisabled:e=>D||Z(e,"hours"),timeStep:V.hours,resolveAriaLabel:B.hoursClockNumberText})};case"minutes":return{onChange:e=>{q(r.setMinutes(W,e),"finish","minutes")},items:i4({value:r.getMinutes(W),utils:r,isDisabled:e=>D||Z(e,"minutes"),resolveLabel:e=>r.format(r.setMinutes(z,e),"minutes"),timeStep:V.minutes,hasValue:!!O,resolveAriaLabel:B.minutesClockNumberText})};case"seconds":return{onChange:e=>{q(r.setSeconds(W,e),"finish","seconds")},items:i4({value:r.getSeconds(W),utils:r,isDisabled:e=>D||Z(e,"seconds"),resolveLabel:e=>r.format(r.setSeconds(z,e),"seconds"),timeStep:V.seconds,hasValue:!!O,resolveAriaLabel:B.secondsClockNumberText})};case"meridiem":{const e=bQ(r,"am"),t=bQ(r,"pm");return{onChange:X,items:[{value:"am",label:e,isSelected:()=>!!O&&"am"===Y,ariaLabel:e},{value:"pm",label:t,isSelected:()=>!!O&&"pm"===Y,ariaLabel:t}]}}default:throw new Error(`Unknown view: ${e} found.`)}}),[z,O,i,r,V.hours,V.minutes,V.seconds,B.hoursClockNumberText,B.minutesClockNumberText,B.secondsClockNumberText,Y,q,W,D,Z,X]),Q=e.useMemo((()=>$.reduce(((e,t)=>(0,wl.A)({},e,{[t]:J(t)})),{})),[$,J]),ee=a,te=(e=>{const{classes:t}=e;return mh({root:["root"]},Q5,t)})(ee);return(0,Tl.jsx)(s4,(0,wl.A)({ref:n,className:e1(te.root,N),ownerState:ee,role:"group"},R,{children:Object.entries(Q).map((e=>{let[t,n]=e;return(0,Tl.jsx)(r4,{items:n.items,onChange:n.onChange,active:H===t,autoFocus:null!=s?s:G===t,disabled:D,readOnly:M,slots:null!=u?u:l,slotProps:null!=d?d:c,skipDisabled:_,"aria-label":B.selectViewText(t)},t)}))}))})),c4=e=>{let{view:t,onViewChange:n,focusedView:r,onFocusedViewChange:a,views:i,value:o,defaultValue:s,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:h,minTime:f,maxTime:m,shouldDisableTime:g,shouldDisableClock:v,minutesStep:y,ampm:b,ampmInClock:x,components:w,componentsProps:S,slots:C,slotProps:A,readOnly:k,disabled:T,sx:j,autoFocus:E,showViewSwitcher:P,disableIgnoringDatePartForTimeValidation:N,timezone:D}=e;return(0,Tl.jsx)(H5,{view:t,onViewChange:n,focusedView:r&&kQ(r)?r:null,onFocusedViewChange:a,views:i.filter(kQ),value:o,defaultValue:s,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:h,minTime:f,maxTime:m,shouldDisableTime:g,shouldDisableClock:v,minutesStep:y,ampm:b,ampmInClock:x,components:w,componentsProps:S,slots:C,slotProps:A,readOnly:k,disabled:T,sx:j,autoFocus:E,showViewSwitcher:P,disableIgnoringDatePartForTimeValidation:N,timezone:D})},u4=e=>{let{view:t,onViewChange:n,focusedView:r,onFocusedViewChange:a,views:i,value:o,defaultValue:s,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:h,minTime:f,maxTime:m,shouldDisableTime:g,shouldDisableClock:v,minutesStep:y,ampm:b,components:x,componentsProps:w,slots:S,slotProps:C,readOnly:A,disabled:k,sx:T,autoFocus:j,disableIgnoringDatePartForTimeValidation:E,timeSteps:P,skipDisabled:N,timezone:D}=e;return(0,Tl.jsx)(J5,{view:t,onViewChange:n,focusedView:r,onFocusedViewChange:a,views:i.filter(kQ),value:o,defaultValue:s,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:h,minTime:f,maxTime:m,shouldDisableTime:g,shouldDisableClock:v,minutesStep:y,ampm:b,components:x,componentsProps:w,slots:S,slotProps:C,readOnly:A,disabled:k,sx:T,autoFocus:j,disableIgnoringDatePartForTimeValidation:E,timeStep:null==P?void 0:P.minutes,skipDisabled:N,timezone:D})},d4=e=>{let{view:t,onViewChange:n,focusedView:r,onFocusedViewChange:a,views:i,value:o,defaultValue:s,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:h,minTime:f,maxTime:m,shouldDisableTime:g,shouldDisableClock:v,minutesStep:y,ampm:b,components:x,componentsProps:w,slots:S,slotProps:C,readOnly:A,disabled:k,sx:T,autoFocus:j,disableIgnoringDatePartForTimeValidation:E,timeSteps:P,skipDisabled:N,timezone:D}=e;return(0,Tl.jsx)(l4,{view:t,onViewChange:n,focusedView:r,onFocusedViewChange:a,views:i.filter(kQ),value:o,defaultValue:s,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:h,minTime:f,maxTime:m,shouldDisableTime:g,shouldDisableClock:v,minutesStep:y,ampm:b,components:x,componentsProps:w,slots:S,slotProps:C,readOnly:A,disabled:k,sx:T,autoFocus:j,disableIgnoringDatePartForTimeValidation:E,timeSteps:P,skipDisabled:N,timezone:D})},p4=t=>{let{view:n,onViewChange:r,views:a,focusedView:i,onFocusedViewChange:o,value:s,defaultValue:l,referenceDate:c,onChange:u,className:d,classes:p,disableFuture:h,disablePast:f,minDate:m,minTime:g,maxDate:v,maxTime:y,shouldDisableDate:b,shouldDisableMonth:x,shouldDisableYear:w,shouldDisableTime:S,shouldDisableClock:C,reduceAnimations:A,minutesStep:k,ampm:T,onMonthChange:j,monthsPerRow:E,onYearChange:P,yearsPerRow:N,defaultCalendarMonth:D,components:M,componentsProps:_,slots:I,slotProps:R,loading:O,renderLoading:L,disableHighlightToday:F,readOnly:B,disabled:z,showDaysOutsideCurrentMonth:V,dayOfWeekFormatter:W,sx:U,autoFocus:$,fixedWeekNumber:H,displayWeekNumber:q,timezone:G,disableIgnoringDatePartForTimeValidation:K,timeSteps:Y,skipDisabled:X,timeViewsCount:Z,shouldRenderTimeInASingleColumn:J}=t;var Q,ee;const te=!(null==(Q=uQ(null!=(ee=null==R?void 0:R.actionBar)?ee:null==_?void 0:_.actionBar,{}))||null==(Q=Q.actions)||!Q.length),ne={view:TQ(n)?n:"hours",onViewChange:r,focusedView:i&&TQ(i)?i:null,onFocusedViewChange:o,views:a.filter(TQ),value:s,defaultValue:l,referenceDate:c,onChange:u,className:d,classes:p,disableFuture:h,disablePast:f,minTime:g,maxTime:y,shouldDisableTime:S,shouldDisableClock:C,minutesStep:k,ampm:T,components:M,componentsProps:_,slots:I,slotProps:R,readOnly:B,disabled:z,autoFocus:$,disableIgnoringDatePartForTimeValidation:K,timeSteps:Y,skipDisabled:X,timezone:G};return(0,Tl.jsxs)(e.Fragment,{children:[(0,Tl.jsxs)(u5,{children:[(0,Tl.jsx)(o5,{view:wQ(n)?n:"day",onViewChange:r,views:a.filter(wQ),focusedView:i&&wQ(i)?i:null,onFocusedViewChange:o,value:s,defaultValue:l,referenceDate:c,onChange:u,className:d,classes:p,disableFuture:h,disablePast:f,minDate:m,maxDate:v,shouldDisableDate:b,shouldDisableMonth:x,shouldDisableYear:w,reduceAnimations:A,onMonthChange:j,monthsPerRow:E,onYearChange:P,yearsPerRow:N,defaultCalendarMonth:D,components:M,componentsProps:_,slots:I,slotProps:R,loading:O,renderLoading:L,disableHighlightToday:F,readOnly:B,disabled:z,showDaysOutsideCurrentMonth:V,dayOfWeekFormatter:W,sx:U,autoFocus:$,fixedWeekNumber:H,displayWeekNumber:q,timezone:G}),Z>0&&(0,Tl.jsxs)(e.Fragment,{children:[(0,Tl.jsx)(sC,{orientation:"vertical"}),J?u4((0,wl.A)({},ne,{view:"hours",views:["hours"],focusedView:i&&TQ(i)?"hours":null,sx:(0,wl.A)({width:"auto",[`&.${G5.root}`]:{maxHeight:w1}},Array.isArray(U)?U:[U])})):d4((0,wl.A)({},ne,{view:TQ(n)?n:"hours",views:a.filter(TQ),focusedView:i&&TQ(i)?i:null,sx:(0,wl.A)({borderBottom:0,width:"auto",[`.${c5.root}`]:{maxHeight:"100%"}},Array.isArray(U)?U:[U])}))]})]}),te&&(0,Tl.jsx)(sC,{})]})};function h4(e){return Ff("MuiPickersPopper",e)}Bf("MuiPickersPopper",["root","paper"]);const f4=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],m4=nf(xS,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{zIndex:t.zIndex.modal}})),g4=nf(Bm,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})((e=>{let{ownerState:t}=e;return(0,wl.A)({outline:0,transformOrigin:"top center"},t.placement.includes("top")&&{transformOrigin:"bottom center"})}));const v4=e.forwardRef(((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:a,children:i,paperSlotProps:o,paperClasses:s,onPaperClick:l,onPaperTouchStart:c}=e,u=(0,Sl.A)(e,f4),d=(0,wl.A)({},a,{placement:r}),p=a0({elementType:n,externalSlotProps:o,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:d});return(0,Tl.jsx)(n,(0,wl.A)({},u,p,{onClick:e=>{var t;l(e),null==(t=p.onClick)||t.call(p,e)},onTouchStart:e=>{var t;c(e),null==(t=p.onTouchStart)||t.call(p,e)},ownerState:d,children:i}))}));function y4(t){var n,r,a,i;const o=nQ({props:t,name:"MuiPickersPopper"}),{anchorEl:s,children:l,containerRef:c=null,shouldRestoreFocus:u,onBlur:d,onDismiss:p,open:h,role:f,placement:m,slots:g,slotProps:v,reduceAnimations:y}=o;e.useEffect((()=>{function e(e){!h||"Escape"!==e.key&&"Esc"!==e.key||p()}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[p,h]);const b=e.useRef(null);e.useEffect((()=>{"tooltip"===f||u&&!u()||(h?b.current=b0(document):b.current&&b.current instanceof HTMLElement&&setTimeout((()=>{b.current instanceof HTMLElement&&b.current.focus()})))}),[h,f,u]);const[x,w,S]=function(t,n){const r=e.useRef(!1),a=e.useRef(!1),i=e.useRef(null),o=e.useRef(!1);e.useEffect((()=>{if(t)return document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,!0),()=>{document.removeEventListener("mousedown",e,!0),document.removeEventListener("touchstart",e,!0),o.current=!1};function e(){o.current=!0}}),[t]);const s=cf((e=>{if(!o.current)return;const t=a.current;a.current=!1;const s=kb(i.current);if(!i.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,s))return;if(r.current)return void(r.current=!1);let l;l=e.composedPath?e.composedPath().indexOf(i.current)>-1:!s.documentElement.contains(e.target)||i.current.contains(e.target),l||t||n(e)})),l=()=>{a.current=!0};return e.useEffect((()=>{if(t){const e=kb(i.current),t=()=>{r.current=!0};return e.addEventListener("touchstart",s),e.addEventListener("touchmove",t),()=>{e.removeEventListener("touchstart",s),e.removeEventListener("touchmove",t)}}}),[t,s]),e.useEffect((()=>{if(t){const e=kb(i.current);return e.addEventListener("click",s),()=>{e.removeEventListener("click",s),a.current=!1}}}),[t,s]),[i,l,l]}(h,null!=d?d:p),C=of(e.useRef(null),c),A=of(C,x),k=o,T=(e=>{const{classes:t}=e;return mh({root:["root"],paper:["paper"]},h4,t)})(k),j=t5(),E=null!=y?y:j,P=(null!=(n=null==g?void 0:g.desktopTransition)?n:E)?YN:Lx,N=null!=(r=null==g?void 0:g.desktopTrapFocus)?r:HN,D=null!=(a=null==g?void 0:g.desktopPaper)?a:g4,M=null!=(i=null==g?void 0:g.popper)?i:m4,_=a0({elementType:M,externalSlotProps:null==v?void 0:v.popper,additionalProps:{transition:!0,role:f,open:h,anchorEl:s,placement:m,onKeyDown:e=>{"Escape"===e.key&&(e.stopPropagation(),p())}},className:T.root,ownerState:o});return(0,Tl.jsx)(M,(0,wl.A)({},_,{children:e=>{let{TransitionProps:t,placement:n}=e;return(0,Tl.jsx)(N,(0,wl.A)({open:h,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:"tooltip"===f,isEnabled:()=>!0},null==v?void 0:v.desktopTrapFocus,{children:(0,Tl.jsx)(P,(0,wl.A)({},t,null==v?void 0:v.desktopTransition,{children:(0,Tl.jsx)(v4,{PaperComponent:D,ownerState:k,popperPlacement:n,ref:A,onPaperClick:w,onPaperTouchStart:S,paperClasses:T.paper,paperSlotProps:null==v?void 0:v.desktopPaper,children:l})}))}))}}))}const b4=t=>{let{props:n,valueManager:r,valueType:a,wrapperVariant:i,validator:o}=t;const{onAccept:s,onChange:l,value:c,defaultValue:u,closeOnSelect:d="desktop"===i,selectedSections:p,onSelectedSectionsChange:h,timezone:f}=n,{current:m}=e.useRef(u),{current:g}=e.useRef(void 0!==c);const v=c0(),y=l0(),[b,x]=kS({controlled:p,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:w,setIsOpen:S}=(t=>{let{open:n,onOpen:r,onClose:a}=t;const i=e.useRef("boolean"===typeof n).current,[o,s]=e.useState(!1);return e.useEffect((()=>{if(i){if("boolean"!==typeof n)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");s(n)}}),[i,n]),{isOpen:o,setIsOpen:e.useCallback((e=>{i||s(e),e&&r&&r(),!e&&a&&a()}),[i,r,a])}})(n),[C,A]=e.useState((()=>{let e;return e=void 0!==c?c:void 0!==m?m:r.emptyValue,{draft:e,lastPublishedValue:e,lastCommittedValue:e,lastControlledValue:c,hasBeenModifiedSinceMount:!1}})),{timezone:k,handleValueChange:T}=f0({timezone:f,value:c,defaultValue:m,onChange:l,valueManager:r});h0((0,wl.A)({},n,{value:C.draft,timezone:k}),o,r.isSameError,r.defaultErrorState);const j=cf((e=>{const t={action:e,dateState:C,hasChanged:t=>!r.areValuesEqual(v,e.value,t),isControlled:g,closeOnSelect:d},a=(e=>{const{action:t,hasChanged:n,dateState:r,isControlled:a}=e,i=!a&&!r.hasBeenModifiedSinceMount;return"setValueFromField"===t.name||("setValueFromAction"===t.name?!(!i||!["accept","today","clear"].includes(t.pickerAction))||n(r.lastPublishedValue):("setValueFromView"===t.name&&"shallow"!==t.selectionState||"setValueFromShortcut"===t.name)&&(!!i||n(r.lastPublishedValue)))})(t),i=(e=>{const{action:t,hasChanged:n,dateState:r,isControlled:a,closeOnSelect:i}=e,o=!a&&!r.hasBeenModifiedSinceMount;return"setValueFromAction"===t.name?!(!o||!["accept","today","clear"].includes(t.pickerAction))||n(r.lastCommittedValue):"setValueFromView"===t.name&&"finish"===t.selectionState&&i?!!o||n(r.lastCommittedValue):"setValueFromShortcut"===t.name&&"accept"===t.changeImportance&&n(r.lastCommittedValue)})(t),l=(e=>{const{action:t,closeOnSelect:n}=e;return"setValueFromAction"===t.name||("setValueFromView"===t.name?"finish"===t.selectionState&&n:"setValueFromShortcut"===t.name&&"accept"===t.changeImportance)})(t);if(A((t=>(0,wl.A)({},t,{draft:e.value,lastPublishedValue:a?e.value:t.lastPublishedValue,lastCommittedValue:i?e.value:t.lastCommittedValue,hasBeenModifiedSinceMount:!0}))),a){const t={validationError:"setValueFromField"===e.name?e.context.validationError:o({adapter:y,value:e.value,props:(0,wl.A)({},n,{value:e.value,timezone:k})})};"setValueFromShortcut"===e.name&&null!=e.shortcut&&(t.shortcut=e.shortcut),T(e.value,t)}i&&s&&s(e.value),l&&S(!1)}));if(void 0!==c&&(void 0===C.lastControlledValue||!r.areValuesEqual(v,C.lastControlledValue,c))){const e=r.areValuesEqual(v,C.draft,c);A((t=>(0,wl.A)({},t,{lastControlledValue:c},e?{}:{lastCommittedValue:c,lastPublishedValue:c,draft:c,hasBeenModifiedSinceMount:!0})))}const E=cf((()=>{j({value:r.emptyValue,name:"setValueFromAction",pickerAction:"clear"})})),P=cf((()=>{j({value:C.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})})),N=cf((()=>{j({value:C.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})})),D=cf((()=>{j({value:C.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})})),M=cf((()=>{j({value:r.getTodayValue(v,k,a),name:"setValueFromAction",pickerAction:"today"})})),_=cf((()=>S(!0))),I=cf((()=>S(!1))),R=cf((function(e){return j({name:"setValueFromView",value:e,selectionState:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"partial"})})),O=cf(((e,t,n)=>j({name:"setValueFromShortcut",value:e,changeImportance:null!=t?t:"accept",shortcut:n}))),L=cf(((e,t)=>j({name:"setValueFromField",value:e,context:t}))),F=cf((e=>{x(e),null==h||h(e)})),B={onClear:E,onAccept:P,onDismiss:N,onCancel:D,onSetToday:M,onOpen:_,onClose:I},z={value:C.draft,onChange:L,selectedSections:b,onSelectedSectionsChange:F},V=e.useMemo((()=>r.cleanValue(v,C.draft)),[v,r,C.draft]),W={value:V,onChange:R,onClose:I,open:w,onSelectedSectionsChange:F},U=(0,wl.A)({},B,{value:V,onChange:R,onSelectShortcut:O,isValid:e=>{const t=o({adapter:y,value:e,props:(0,wl.A)({},n,{value:e,timezone:k})});return!r.hasError(t)}});return{open:w,fieldProps:z,viewProps:W,layoutProps:U,actions:B}},x4=["className","sx"];function w4(){return"undefined"===typeof window?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?90===Math.abs(window.screen.orientation.angle)?"landscape":"portrait":window.orientation&&90===Math.abs(Number(window.orientation))?"landscape":"portrait"}const S4=(t,n)=>{const[r,a]=e.useState(w4);if(lf((()=>{const e=()=>{a(w4())};return window.addEventListener("orientationchange",e),()=>{window.removeEventListener("orientationchange",e)}}),[]),function(e,t){return Array.isArray(t)?t.every((t=>-1!==e.indexOf(t))):-1!==e.indexOf(t)}(t,["hours","minutes","seconds"]))return!1;return"landscape"===(n||r)},C4=(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"warning",n=!1;const r=Array.isArray(e)?e.join("\n"):e}(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]),t=>{let{props:n,valueManager:r,valueType:a,wrapperVariant:i,inputRef:o,additionalViewProps:s,validator:l,autoFocusView:c}=t;const u=b4({props:n,valueManager:r,valueType:a,wrapperVariant:i,validator:l}),d=(t=>{let{props:n,propsFromPickerValue:r,additionalViewProps:a,inputRef:i,autoFocusView:o}=t;const{onChange:s,open:l,onSelectedSectionsChange:c,onClose:u}=r,{view:d,views:p,openTo:h,onViewChange:f,viewRenderers:m,timezone:g}=n,v=(0,Sl.A)(n,x4),{view:y,setView:b,defaultView:x,focusedView:w,setFocusedView:S,setValueAndGoToNextView:C}=D2({view:d,views:p,openTo:h,onChange:s,onViewChange:f,autoFocus:o}),{hasUIView:A,viewModeLookup:k}=e.useMemo((()=>p.reduce(((e,t)=>{let n;return n=null!=m[t]?"UI":"field",e.viewModeLookup[t]=n,"UI"===n&&(e.hasUIView=!0),e}),{hasUIView:!1,viewModeLookup:{}})),[m,p]),T=e.useMemo((()=>p.reduce(((e,t)=>null!=m[t]&&kQ(t)?e+1:e),0)),[m,p]),j=k[y],E=cf((()=>"UI"===j)),[P,N]=e.useState("UI"===j?y:null);return P!==y&&"UI"===k[y]&&N(y),lf((()=>{"field"===j&&l&&(u(),setTimeout((()=>{null==i||i.current.focus(),c(y)})))}),[y]),lf((()=>{if(!l)return;let e=y;"field"===j&&null!=P&&(e=P),e!==x&&"UI"===k[e]&&"UI"===k[x]&&(e=x),e!==y&&b(e),S(e,!0)}),[l]),{hasUIView:A,shouldRestoreFocus:E,layoutProps:{views:p,view:P,onViewChange:b},renderCurrentView:()=>{if(null==P)return null;const e=m[P];return null==e?null:e((0,wl.A)({},v,a,r,{views:p,timezone:g,onChange:C,view:P,onViewChange:b,focusedView:w,onFocusedViewChange:S,showViewSwitcher:T>1,timeViewsCount:T}))}}})({props:n,inputRef:o,additionalViewProps:s,autoFocusView:c,propsFromPickerValue:u.viewProps}),p=(e=>{let{props:t,propsFromPickerValue:n,propsFromPickerViews:r,wrapperVariant:a}=e;const{orientation:i}=t,o=S4(r.views,i);return{layoutProps:(0,wl.A)({},r,n,{isLandscape:o,wrapperVariant:a,disabled:t.disabled,readOnly:t.readOnly})}})({props:n,wrapperVariant:i,propsFromPickerValue:u.layoutProps,propsFromPickerViews:d.layoutProps});return{open:u.open,actions:u.actions,fieldProps:u.fieldProps,renderCurrentView:d.renderCurrentView,hasUIView:d.hasUIView,shouldRestoreFocus:d.shouldRestoreFocus,layoutProps:p.layoutProps}});function A4(e){return Ff("MuiPickersLayout",e)}const k4=Bf("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function T4(e){return Ff("MuiDialogActions",e)}Bf("MuiDialogActions",["root","spacing"]);const j4=["className","disableSpacing"],E4=nf("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;return(0,wl.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),P4=e.forwardRef((function(e,t){const n=rf({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:a=!1}=n,i=(0,Sl.A)(n,j4),o=(0,wl.A)({},n,{disableSpacing:a}),s=(e=>{const{classes:t,disableSpacing:n}=e;return mh({root:["root",!n&&"spacing"]},T4,t)})(o);return(0,Tl.jsx)(E4,(0,wl.A)({className:fh(s.root,r),ownerState:o,ref:t},i))})),N4=P4,D4=["onAccept","onClear","onCancel","onSetToday","actions"];function M4(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:a,actions:i}=e,o=(0,Sl.A)(e,D4),s=d0();if(null==i||0===i.length)return null;const l=null==i?void 0:i.map((e=>{switch(e){case"clear":return(0,Tl.jsx)(vW,{onClick:n,children:s.clearButtonLabel},e);case"cancel":return(0,Tl.jsx)(vW,{onClick:r,children:s.cancelButtonLabel},e);case"accept":return(0,Tl.jsx)(vW,{onClick:t,children:s.okButtonLabel},e);case"today":return(0,Tl.jsx)(vW,{onClick:a,children:s.todayButtonLabel},e);default:return null}}));return(0,Tl.jsx)(N4,(0,wl.A)({},o,{children:l}))}function _4(e){return Ff("MuiListItem",e)}const I4=Bf("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function R4(e){return Ff("MuiListItemButton",e)}const O4=Bf("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function L4(e){return Ff("MuiListItemSecondaryAction",e)}Bf("MuiListItemSecondaryAction",["root","disableGutters"]);const F4=["className"],B4=nf("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((e=>{let{ownerState:t}=e;return(0,wl.A)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})})),z4=e.forwardRef((function(t,n){const r=rf({props:t,name:"MuiListItemSecondaryAction"}),{className:a}=r,i=(0,Sl.A)(r,F4),o=e.useContext(_b),s=(0,wl.A)({},r,{disableGutters:o.disableGutters}),l=(e=>{const{disableGutters:t,classes:n}=e;return mh({root:["root",t&&"disableGutters"]},L4,n)})(s);return(0,Tl.jsx)(B4,(0,wl.A)({className:fh(l.root,a),ownerState:s,ref:n},i))}));z4.muiName="ListItemSecondaryAction";const V4=z4,W4=["className"],U4=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],$4=nf("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!n.disablePadding&&(0,wl.A)({paddingTop:8,paddingBottom:8},n.dense&&{paddingTop:4,paddingBottom:4},!n.disableGutters&&{paddingLeft:16,paddingRight:16},!!n.secondaryAction&&{paddingRight:48}),!!n.secondaryAction&&{[`& > .${O4.root}`]:{paddingRight:48}},{[`&.${I4.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${I4.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,gh.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${I4.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:(0,gh.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${I4.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"flex-start"===n.alignItems&&{alignItems:"flex-start"},n.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},n.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${I4.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,gh.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,gh.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}}},n.hasSecondaryAction&&{paddingRight:48})})),H4=nf("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),q4=e.forwardRef((function(t,n){const r=rf({props:t,name:"MuiListItem"}),{alignItems:a="center",autoFocus:i=!1,button:o=!1,children:s,className:l,component:c,components:u={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:h}={},dense:f=!1,disabled:m=!1,disableGutters:g=!1,disablePadding:v=!1,divider:y=!1,focusVisibleClassName:b,secondaryAction:x,selected:w=!1,slotProps:S={},slots:C={}}=r,A=(0,Sl.A)(r.ContainerProps,W4),k=(0,Sl.A)(r,U4),T=e.useContext(_b),j=e.useMemo((()=>({dense:f||T.dense||!1,alignItems:a,disableGutters:g})),[a,T.dense,f,g]),E=e.useRef(null);Vb((()=>{i&&E.current&&E.current.focus()}),[i]);const P=e.Children.toArray(s),N=P.length&&AN(P[P.length-1],["ListItemSecondaryAction"]),D=(0,wl.A)({},r,{alignItems:a,autoFocus:i,button:o,dense:j.dense,disabled:m,disableGutters:g,disablePadding:v,divider:y,hasSecondaryAction:N,selected:w}),M=(e=>{const{alignItems:t,button:n,classes:r,dense:a,disabled:i,disableGutters:o,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return mh({root:["root",a&&"dense",!o&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},_4,r)})(D),_=sf(E,n),I=C.root||u.Root||$4,R=S.root||d.root||{},O=(0,wl.A)({className:fh(M.root,R.className,l),disabled:m},k);let L=c||"li";return o&&(O.component=c||"div",O.focusVisibleClassName=fh(I4.focusVisible,b),L=im),N?(L=O.component||c?L:"div","li"===p&&("li"===L?L="div":"li"===O.component&&(O.component="div")),(0,Tl.jsx)(_b.Provider,{value:j,children:(0,Tl.jsxs)(H4,(0,wl.A)({as:p,className:fh(M.container,h),ref:_,ownerState:D},A,{children:[(0,Tl.jsx)(I,(0,wl.A)({},R,!Nx(I)&&{as:L,ownerState:(0,wl.A)({},D,R.ownerState)},O,{children:P})),P.pop()]}))})):(0,Tl.jsx)(_b.Provider,{value:j,children:(0,Tl.jsxs)(I,(0,wl.A)({},R,{as:L,ref:_},!Nx(I)&&{ownerState:(0,wl.A)({},D,R.ownerState)},O,{children:[P,x&&(0,Tl.jsx)(V4,{children:x})]}))})})),G4=q4,K4=bm((0,Tl.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 Y4(e){return Ff("MuiChip",e)}const X4=Bf("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"]),Z4=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],J4=nf("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:a,clickable:i,onDelete:o,size:s,variant:l}=n;return[{[`& .${X4.avatar}`]:t.avatar},{[`& .${X4.avatar}`]:t[`avatar${sm(s)}`]},{[`& .${X4.avatar}`]:t[`avatarColor${sm(r)}`]},{[`& .${X4.icon}`]:t.icon},{[`& .${X4.icon}`]:t[`icon${sm(s)}`]},{[`& .${X4.icon}`]:t[`iconColor${sm(a)}`]},{[`& .${X4.deleteIcon}`]:t.deleteIcon},{[`& .${X4.deleteIcon}`]:t[`deleteIcon${sm(s)}`]},{[`& .${X4.deleteIcon}`]:t[`deleteIconColor${sm(r)}`]},{[`& .${X4.deleteIcon}`]:t[`deleteIcon${sm(l)}Color${sm(r)}`]},t.root,t[`size${sm(s)}`],t[`color${sm(r)}`],i&&t.clickable,i&&"default"!==r&&t[`clickableColor${sm(r)})`],o&&t.deletable,o&&"default"!==r&&t[`deletableColor${sm(r)}`],t[l],t[`${l}${sm(r)}`]]}})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode?t.palette.grey[700]:t.palette.grey[300];return(0,wl.A)({maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${X4.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${X4.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:r,fontSize:t.typography.pxToRem(12)},[`& .${X4.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${X4.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${X4.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${X4.icon}`]:(0,wl.A)({marginLeft:5,marginRight:-6},"small"===n.size&&{fontSize:18,marginLeft:4,marginRight:-4},n.iconColor===n.color&&(0,wl.A)({color:t.vars?t.vars.palette.Chip.defaultIconColor:r},"default"!==n.color&&{color:"inherit"})),[`& .${X4.deleteIcon}`]:(0,wl.A)({WebkitTapHighlightColor:"transparent",color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.26)`:(0,gh.X4)(t.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:(0,gh.X4)(t.palette.text.primary,.4)}},"small"===n.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==n.color&&{color:t.vars?`rgba(${t.vars.palette[n.color].contrastTextChannel} / 0.7)`:(0,gh.X4)(t.palette[n.color].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[n.color].contrastText}})},"small"===n.size&&{height:24},"default"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].main,color:(t.vars||t).palette[n.color].contrastText},n.onDelete&&{[`&.${X4.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:(0,gh.X4)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},n.onDelete&&"default"!==n.color&&{[`&.${X4.focusVisible}`]:{backgroundColor:(t.vars||t).palette[n.color].dark}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({},n.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,gh.X4)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)},[`&.${X4.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:(0,gh.X4)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},"&:active":{boxShadow:(t.vars||t).shadows[1]}},n.clickable&&"default"!==n.color&&{[`&:hover, &.${X4.focusVisible}`]:{backgroundColor:(t.vars||t).palette[n.color].dark}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({},"outlined"===n.variant&&{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${X4.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${X4.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`& .${X4.avatar}`]:{marginLeft:4},[`& .${X4.avatarSmall}`]:{marginLeft:2},[`& .${X4.icon}`]:{marginLeft:4},[`& .${X4.iconSmall}`]:{marginLeft:2},[`& .${X4.deleteIcon}`]:{marginRight:5},[`& .${X4.deleteIconSmall}`]:{marginRight:3}},"outlined"===n.variant&&"default"!==n.color&&{color:(t.vars||t).palette[n.color].main,border:`1px solid ${t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / 0.7)`:(0,gh.X4)(t.palette[n.color].main,.7)}`,[`&.${X4.clickable}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,gh.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity)},[`&.${X4.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.focusOpacity})`:(0,gh.X4)(t.palette[n.color].main,t.palette.action.focusOpacity)},[`& .${X4.deleteIcon}`]:{color:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / 0.7)`:(0,gh.X4)(t.palette[n.color].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[n.color].main}}})})),Q4=nf("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${sm(r)}`]]}})((e=>{let{ownerState:t}=e;return(0,wl.A)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===t.variant&&{paddingLeft:11,paddingRight:11},"small"===t.size&&{paddingLeft:8,paddingRight:8},"small"===t.size&&"outlined"===t.variant&&{paddingLeft:7,paddingRight:7})}));function e3(e){return"Backspace"===e.key||"Delete"===e.key}const t3=e.forwardRef((function(t,n){const r=rf({props:t,name:"MuiChip"}),{avatar:a,className:i,clickable:o,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:p,onClick:h,onDelete:f,onKeyDown:m,onKeyUp:g,size:v="medium",variant:y="filled",tabIndex:b,skipFocusWhenDisabled:x=!1}=r,w=(0,Sl.A)(r,Z4),S=e.useRef(null),C=sf(S,n),A=e=>{e.stopPropagation(),f&&f(e)},k=!(!1===o||!h)||o,T=k||f?im:l||"div",j=(0,wl.A)({},r,{component:T,disabled:u,size:v,color:s,iconColor:e.isValidElement(d)&&d.props.color||s,onDelete:!!f,clickable:k,variant:y}),E=(e=>{const{classes:t,disabled:n,size:r,color:a,iconColor:i,onDelete:o,clickable:s,variant:l}=e;return mh({root:["root",l,n&&"disabled",`size${sm(r)}`,`color${sm(a)}`,s&&"clickable",s&&`clickableColor${sm(a)}`,o&&"deletable",o&&`deletableColor${sm(a)}`,`${l}${sm(a)}`],label:["label",`label${sm(r)}`],avatar:["avatar",`avatar${sm(r)}`,`avatarColor${sm(a)}`],icon:["icon",`icon${sm(r)}`,`iconColor${sm(i)}`],deleteIcon:["deleteIcon",`deleteIcon${sm(r)}`,`deleteIconColor${sm(a)}`,`deleteIcon${sm(l)}Color${sm(a)}`]},Y4,t)})(j),P=T===im?(0,wl.A)({component:l||"div",focusVisibleClassName:E.focusVisible},f&&{disableRipple:!0}):{};let N=null;f&&(N=c&&e.isValidElement(c)?e.cloneElement(c,{className:fh(c.props.className,E.deleteIcon),onClick:A}):(0,Tl.jsx)(K4,{className:fh(E.deleteIcon),onClick:A}));let D=null;a&&e.isValidElement(a)&&(D=e.cloneElement(a,{className:fh(E.avatar,a.props.className)}));let M=null;return d&&e.isValidElement(d)&&(M=e.cloneElement(d,{className:fh(E.icon,d.props.className)})),(0,Tl.jsxs)(J4,(0,wl.A)({as:T,className:fh(E.root,i),disabled:!(!k||!u)||void 0,onClick:h,onKeyDown:e=>{e.currentTarget===e.target&&e3(e)&&e.preventDefault(),m&&m(e)},onKeyUp:e=>{e.currentTarget===e.target&&(f&&e3(e)?f(e):"Escape"===e.key&&S.current&&S.current.blur()),g&&g(e)},ref:C,tabIndex:x&&u?-1:b,ownerState:j},P,w,{children:[D||M,(0,Tl.jsx)(Q4,{className:fh(E.label),ownerState:j,children:p}),N]}))})),n3=t3,r3=["items","changeImportance","isLandscape","onChange","isValid"],a3=["getValue"];function i3(e){const{items:t,changeImportance:n,onChange:r,isValid:a}=e,i=(0,Sl.A)(e,r3);if(null==t||0===t.length)return null;const o=t.map((e=>{let{getValue:t}=e,i=(0,Sl.A)(e,a3);const o=t({isValid:a});return{label:i.label,onClick:()=>{r(o,n,i)},disabled:!a(o)}}));return(0,Tl.jsx)(Fb,(0,wl.A)({dense:!0,sx:[{maxHeight:w1,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:o.map((e=>(0,Tl.jsx)(G4,{children:(0,Tl.jsx)(n3,(0,wl.A)({},e))},e.label)))}))}const o3=e=>{var t,n;const{wrapperVariant:r,onAccept:a,onClear:i,onCancel:o,onSetToday:s,view:l,views:c,onViewChange:u,value:d,onChange:p,onSelectShortcut:h,isValid:f,isLandscape:m,disabled:g,readOnly:v,children:y,components:b,componentsProps:x,slots:w,slotProps:S}=e,C=null!=w?w:N1(b),A=null!=S?S:x,k=(e=>{const{classes:t,isLandscape:n}=e;return mh({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},A4,t)})(e),T=null!=(t=null==C?void 0:C.actionBar)?t:M4,j=a0({elementType:T,externalSlotProps:null==A?void 0:A.actionBar,additionalProps:{onAccept:a,onClear:i,onCancel:o,onSetToday:s,actions:"desktop"===r?[]:["cancel","accept"],className:k.actionBar},ownerState:(0,wl.A)({},e,{wrapperVariant:r})}),E=(0,Tl.jsx)(T,(0,wl.A)({},j)),P=null==C?void 0:C.toolbar,N=a0({elementType:P,externalSlotProps:null==A?void 0:A.toolbar,additionalProps:{isLandscape:m,onChange:p,value:d,view:l,onViewChange:u,views:c,disabled:g,readOnly:v,className:k.toolbar},ownerState:(0,wl.A)({},e,{wrapperVariant:r})}),D=function(e){return null!==e.view}(N)&&P?(0,Tl.jsx)(P,(0,wl.A)({},N)):null,M=y,_=null==C?void 0:C.tabs,I=l&&_?(0,Tl.jsx)(_,(0,wl.A)({view:l,onViewChange:u,className:k.tabs},null==A?void 0:A.tabs)):null,R=null!=(n=null==C?void 0:C.shortcuts)?n:i3,O=a0({elementType:R,externalSlotProps:null==A?void 0:A.shortcuts,additionalProps:{isValid:f,isLandscape:m,onChange:h,className:k.shortcuts},ownerState:{isValid:f,isLandscape:m,onChange:h,className:k.shortcuts,wrapperVariant:r}});return{toolbar:D,content:M,tabs:I,actionBar:E,shortcuts:l&&R?(0,Tl.jsx)(R,(0,wl.A)({},O)):null}},s3=nf("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t,ownerState:n}=e;return{display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${k4.toolbar}`]:n.isLandscape?{gridColumn:"rtl"===t.direction?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${k4.shortcuts}`]:n.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:"rtl"===t.direction?3:1,gridRow:"2 / 3"},[`& .${k4.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}}));s3.propTypes={as:zc().elementType,ownerState:zc().shape({isLandscape:zc().bool.isRequired}).isRequired,sx:zc().oneOfType([zc().arrayOf(zc().oneOfType([zc().func,zc().object,zc().bool])),zc().func,zc().object])};const l3=nf("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),c3=function(t){const n=nQ({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:a,tabs:i,actionBar:o,shortcuts:s}=o3(n),{sx:l,className:c,isLandscape:u,ref:d,wrapperVariant:p}=n,h=n,f=(e=>{const{isLandscape:t,classes:n}=e;return mh({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},A4,n)})(h);return(0,Tl.jsxs)(s3,{ref:d,sx:l,className:e1(c,f.root),ownerState:h,children:[u?s:r,u?r:s,(0,Tl.jsx)(l3,{className:f.contentWrapper,children:"desktop"===p?(0,Tl.jsxs)(e.Fragment,{children:[a,i]}):(0,Tl.jsxs)(e.Fragment,{children:[i,a]})}),o]})},u3=["props","getOpenDialogAriaText"],d3=["ownerState"],p3=["ownerState"],h3=t=>{var n,r,a,i,o;let{props:s,getOpenDialogAriaText:l}=t,c=(0,Sl.A)(t,u3);const{slots:u,slotProps:d,className:p,sx:h,format:f,formatDensity:m,timezone:g,name:v,label:y,inputRef:b,readOnly:x,disabled:w,autoFocus:S,localeText:C,reduceAnimations:A}=s,k=c0(),T=e.useRef(null),j=e.useRef(null),E=CS(),P=null!=(n=null==d||null==(r=d.toolbar)?void 0:r.hidden)&&n,{open:N,actions:D,hasUIView:M,layoutProps:_,renderCurrentView:I,shouldRestoreFocus:R,fieldProps:O}=C4((0,wl.A)({},c,{props:s,inputRef:T,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),L=null!=(a=u.inputAdornment)?a:B0,F=a0({elementType:L,externalSlotProps:null==d?void 0:d.inputAdornment,additionalProps:{position:"end"},ownerState:s}),B=(0,Sl.A)(F,d3),z=null!=(i=u.openPickerButton)?i:hm,V=a0({elementType:z,externalSlotProps:null==d?void 0:d.openPickerButton,additionalProps:{disabled:w||x,onClick:N?D.onClose:D.onOpen,"aria-label":l(O.value,k),edge:B.position},ownerState:s}),W=(0,Sl.A)(V,p3),U=u.openPickerIcon,$=u.field,H=a0({elementType:$,externalSlotProps:null==d?void 0:d.field,additionalProps:(0,wl.A)({},O,P&&{id:E},{readOnly:x,disabled:w,className:p,sx:h,format:f,formatDensity:m,timezone:g,label:y,name:v,autoFocus:S&&!s.open,focused:!!N||void 0}),ownerState:s});M&&(H.InputProps=(0,wl.A)({},H.InputProps,{ref:j},!s.disableOpenPicker&&{[`${B.position}Adornment`]:(0,Tl.jsx)(L,(0,wl.A)({},B,{children:(0,Tl.jsx)(z,(0,wl.A)({},W,{children:(0,Tl.jsx)(U,(0,wl.A)({},null==d?void 0:d.openPickerIcon))}))}))}));const q=(0,wl.A)({textField:u.textField,clearIcon:u.clearIcon,clearButton:u.clearButton},H.slots),G=null!=(o=u.layout)?o:c3,K=of(T,H.inputRef,b);let Y=E;P&&(Y=y?`${E}-label`:void 0);const X=(0,wl.A)({},d,{toolbar:(0,wl.A)({},null==d?void 0:d.toolbar,{titleId:E}),popper:(0,wl.A)({"aria-labelledby":Y},null==d?void 0:d.popper)});return{renderPicker:()=>(0,Tl.jsxs)(iQ,{localeText:C,children:[(0,Tl.jsx)($,(0,wl.A)({},H,{slots:q,slotProps:X,inputRef:K})),(0,Tl.jsx)(y4,(0,wl.A)({role:"dialog",placement:"bottom-start",anchorEl:j.current},D,{open:N,slots:u,slotProps:X,shouldRestoreFocus:R,reduceAnimations:A,children:(0,Tl.jsx)(G,(0,wl.A)({},_,null==X?void 0:X.layout,{slots:u,slotProps:X,children:I()}))}))]})}},f3=["views","format"],m3=(e,t)=>{let{views:n,format:r}=t,a=(0,Sl.A)(t,f3);if(r)return r;const i=[],o=[];if(n.forEach((e=>{kQ(e)?o.push(e):i.push(e)})),0===o.length)return SQ(e,(0,wl.A)({views:i},a),!1);if(0===i.length)return NQ(e,(0,wl.A)({views:o},a));const s=NQ(e,(0,wl.A)({views:o},a));return`${SQ(e,(0,wl.A)({views:i},a),!1)} ${s}`},g3=(e,t,n)=>n?t.filter((e=>!TQ(e)||"hours"===e)):e?[...t,"meridiem"]:t;const v3=e.forwardRef((function(e,t){var n,r,a,i,o,s,l;const c=d0(),u=c0(),d=D1(e,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:p,thresholdToRenderTimeInASingleColumn:h,views:f,timeSteps:m}=function(e){let{thresholdToRenderTimeInASingleColumn:t,ampm:n,timeSteps:r,views:a}=e;const i=null!=t?t:24,o=(0,wl.A)({hours:1,minutes:5,seconds:5},r),s=((e,t)=>{var n,r;return 1440/((null!=(n=e.hours)?n:1)*(null!=(r=e.minutes)?r:5))<=t})(o,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:o,shouldRenderTimeInASingleColumn:s,views:g3(n,a,s)}}(d),g=!d.viewRenderers||0===Object.keys(d.viewRenderers).length,v=g?{day:p4,month:p4,year:p4,hours:p4,minutes:p4,seconds:p4,meridiem:p4}:(0,wl.A)({day:s5,month:s5,year:s5,hours:null,minutes:null,seconds:null,meridiem:null},d.viewRenderers),y=null==(n=d.ampmInClock)||n,b=g?["accept"]:[],x=(0,wl.A)({},d,{viewRenderers:v,format:m3(u,d),views:f,yearsPerRow:null!=(r=d.yearsPerRow)?r:4,ampmInClock:y,timeSteps:m,thresholdToRenderTimeInASingleColumn:h,shouldRenderTimeInASingleColumn:p,slots:(0,wl.A)({field:J0,openPickerIcon:U0},d.slots),slotProps:(0,wl.A)({},d.slotProps,{field:e=>{var n;return(0,wl.A)({},uQ(null==(n=d.slotProps)?void 0:n.field,e),P0(d),{ref:t})},toolbar:(0,wl.A)({hidden:!0,ampmInClock:y,toolbarVariant:g?"desktop":"mobile"},null==(a=d.slotProps)?void 0:a.toolbar),tabs:(0,wl.A)({hidden:!0},null==(i=d.slotProps)?void 0:i.tabs),actionBar:(0,wl.A)({actions:b},null==(o=d.slotProps)?void 0:o.actionBar)})}),{renderPicker:w}=h3({props:x,valueManager:ZQ,valueType:"date-time",getOpenDialogAriaText:null!=(s=null==(l=x.localeText)?void 0:l.openDatePickerDialogue)?s:c.openDatePickerDialogue,validator:A0});return w()}));function y3(e){return Ff("MuiDialogContent",e)}v3.propTypes={ampm:zc().bool,ampmInClock:zc().bool,autoFocus:zc().bool,className:zc().string,closeOnSelect:zc().bool,components:zc().object,componentsProps:zc().object,dayOfWeekFormatter:zc().func,defaultCalendarMonth:zc().any,defaultValue:zc().any,disabled:zc().bool,disableFuture:zc().bool,disableHighlightToday:zc().bool,disableIgnoringDatePartForTimeValidation:zc().bool,disableOpenPicker:zc().bool,disablePast:zc().bool,displayWeekNumber:zc().bool,fixedWeekNumber:zc().number,format:zc().string,formatDensity:zc().oneOf(["dense","spacious"]),inputRef:dQ,label:zc().node,loading:zc().bool,localeText:zc().object,maxDate:zc().any,maxDateTime:zc().any,maxTime:zc().any,minDate:zc().any,minDateTime:zc().any,minTime:zc().any,minutesStep:zc().number,monthsPerRow:zc().oneOf([3,4]),name:zc().string,onAccept:zc().func,onChange:zc().func,onClose:zc().func,onError:zc().func,onMonthChange:zc().func,onOpen:zc().func,onSelectedSectionsChange:zc().func,onViewChange:zc().func,onYearChange:zc().func,open:zc().bool,openTo:zc().oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:zc().oneOf(["landscape","portrait"]),readOnly:zc().bool,reduceAnimations:zc().bool,referenceDate:zc().any,renderLoading:zc().func,selectedSections:zc().oneOfType([zc().oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),zc().number,zc().shape({endIndex:zc().number.isRequired,startIndex:zc().number.isRequired})]),shouldDisableClock:zc().func,shouldDisableDate:zc().func,shouldDisableMonth:zc().func,shouldDisableTime:zc().func,shouldDisableYear:zc().func,showDaysOutsideCurrentMonth:zc().bool,skipDisabled:zc().bool,slotProps:zc().object,slots:zc().object,sx:zc().oneOfType([zc().arrayOf(zc().oneOfType([zc().func,zc().object,zc().bool])),zc().func,zc().object]),thresholdToRenderTimeInASingleColumn:zc().number,timeSteps:zc().shape({hours:zc().number,minutes:zc().number,seconds:zc().number}),timezone:zc().string,value:zc().any,view:zc().oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:zc().shape({day:zc().func,hours:zc().func,meridiem:zc().func,minutes:zc().func,month:zc().func,seconds:zc().func,year:zc().func}),views:zc().arrayOf(zc().oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:zc().oneOf([3,4])};Bf("MuiDialogContent",["root","dividers"]);function b3(e){return Ff("MuiDialogTitle",e)}const x3=Bf("MuiDialogTitle",["root"]),w3=["className","dividers"],S3=nf("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},n.dividers?{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}:{[`.${x3.root} + &`]:{paddingTop:0}})})),C3=e.forwardRef((function(e,t){const n=rf({props:e,name:"MuiDialogContent"}),{className:r,dividers:a=!1}=n,i=(0,Sl.A)(n,w3),o=(0,wl.A)({},n,{dividers:a}),s=(e=>{const{classes:t,dividers:n}=e;return mh({root:["root",n&&"dividers"]},y3,t)})(o);return(0,Tl.jsx)(S3,(0,wl.A)({className:fh(s.root,r),ownerState:o,ref:t},i))})),A3=C3,k3=nf(jW)({[`& .${bW.container}`]:{outline:0},[`& .${bW.paper}`]:{outline:0,minWidth:x1}}),T3=nf(A3)({"&:first-of-type":{padding:0}});function j3(e){var t,n;const{children:r,onDismiss:a,open:i,slots:o,slotProps:s}=e,l=null!=(t=null==o?void 0:o.dialog)?t:k3,c=null!=(n=null==o?void 0:o.mobileTransition)?n:YN;return(0,Tl.jsx)(l,(0,wl.A)({open:i,onClose:a},null==s?void 0:s.dialog,{TransitionComponent:c,TransitionProps:null==s?void 0:s.mobileTransition,PaperComponent:null==o?void 0:o.mobilePaper,PaperProps:null==s?void 0:s.mobilePaper,children:(0,Tl.jsx)(T3,{children:r})}))}const E3=["props","getOpenDialogAriaText"],P3=t=>{var n,r,a;let{props:i,getOpenDialogAriaText:o}=t,s=(0,Sl.A)(t,E3);const{slots:l,slotProps:c,className:u,sx:d,format:p,formatDensity:h,timezone:f,name:m,label:g,inputRef:v,readOnly:y,disabled:b,localeText:x}=i,w=c0(),S=e.useRef(null),C=CS(),A=null!=(n=null==c||null==(r=c.toolbar)?void 0:r.hidden)&&n,{open:k,actions:T,layoutProps:j,renderCurrentView:E,fieldProps:P}=C4((0,wl.A)({},s,{props:i,inputRef:S,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),N=l.field,D=a0({elementType:N,externalSlotProps:null==c?void 0:c.field,additionalProps:(0,wl.A)({},P,A&&{id:C},!(b||y)&&{onClick:T.onOpen,onKeyDown:(M=T.onOpen,e=>{"Enter"!==e.key&&" "!==e.key||(M(e),e.preventDefault(),e.stopPropagation()),_&&_(e)})},{readOnly:null==y||y,disabled:b,className:u,sx:d,format:p,formatDensity:h,timezone:f,label:g,name:m}),ownerState:i});var M,_;D.inputProps=(0,wl.A)({},D.inputProps,{"aria-label":o(P.value,w)});const I=(0,wl.A)({textField:l.textField},D.slots),R=null!=(a=l.layout)?a:c3,O=of(S,D.inputRef,v);let L=C;A&&(L=g?`${C}-label`:void 0);const F=(0,wl.A)({},c,{toolbar:(0,wl.A)({},null==c?void 0:c.toolbar,{titleId:C}),mobilePaper:(0,wl.A)({"aria-labelledby":L},null==c?void 0:c.mobilePaper)});return{renderPicker:()=>(0,Tl.jsxs)(iQ,{localeText:x,children:[(0,Tl.jsx)(N,(0,wl.A)({},D,{slots:I,slotProps:F,inputRef:O})),(0,Tl.jsx)(j3,(0,wl.A)({},T,{open:k,slots:l,slotProps:F,children:(0,Tl.jsx)(R,(0,wl.A)({},j,null==F?void 0:F.layout,{slots:l,slotProps:F,children:E()}))}))]})}},N3=e.forwardRef((function(e,t){var n,r,a,i,o;const s=d0(),l=c0(),c=D1(e,"MuiMobileDateTimePicker"),u=(0,wl.A)({day:s5,month:s5,year:s5,hours:c4,minutes:c4,seconds:c4},c.viewRenderers),d=null!=(n=c.ampmInClock)&&n,p=(0,wl.A)({},c,{viewRenderers:u,format:m3(l,c),ampmInClock:d,slots:(0,wl.A)({field:J0},c.slots),slotProps:(0,wl.A)({},c.slotProps,{field:e=>{var n;return(0,wl.A)({},uQ(null==(n=c.slotProps)?void 0:n.field,e),P0(c),{ref:t})},toolbar:(0,wl.A)({hidden:!1,ampmInClock:d},null==(r=c.slotProps)?void 0:r.toolbar),tabs:(0,wl.A)({hidden:!1},null==(a=c.slotProps)?void 0:a.tabs)})}),{renderPicker:h}=P3({props:p,valueManager:ZQ,valueType:"date-time",getOpenDialogAriaText:null!=(i=null==(o=p.localeText)?void 0:o.openDatePickerDialogue)?i:s.openDatePickerDialogue,validator:A0});return h()}));N3.propTypes={ampm:zc().bool,ampmInClock:zc().bool,autoFocus:zc().bool,className:zc().string,closeOnSelect:zc().bool,components:zc().object,componentsProps:zc().object,dayOfWeekFormatter:zc().func,defaultCalendarMonth:zc().any,defaultValue:zc().any,disabled:zc().bool,disableFuture:zc().bool,disableHighlightToday:zc().bool,disableIgnoringDatePartForTimeValidation:zc().bool,disableOpenPicker:zc().bool,disablePast:zc().bool,displayWeekNumber:zc().bool,fixedWeekNumber:zc().number,format:zc().string,formatDensity:zc().oneOf(["dense","spacious"]),inputRef:dQ,label:zc().node,loading:zc().bool,localeText:zc().object,maxDate:zc().any,maxDateTime:zc().any,maxTime:zc().any,minDate:zc().any,minDateTime:zc().any,minTime:zc().any,minutesStep:zc().number,monthsPerRow:zc().oneOf([3,4]),name:zc().string,onAccept:zc().func,onChange:zc().func,onClose:zc().func,onError:zc().func,onMonthChange:zc().func,onOpen:zc().func,onSelectedSectionsChange:zc().func,onViewChange:zc().func,onYearChange:zc().func,open:zc().bool,openTo:zc().oneOf(["day","hours","minutes","month","seconds","year"]),orientation:zc().oneOf(["landscape","portrait"]),readOnly:zc().bool,reduceAnimations:zc().bool,referenceDate:zc().any,renderLoading:zc().func,selectedSections:zc().oneOfType([zc().oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),zc().number,zc().shape({endIndex:zc().number.isRequired,startIndex:zc().number.isRequired})]),shouldDisableClock:zc().func,shouldDisableDate:zc().func,shouldDisableMonth:zc().func,shouldDisableTime:zc().func,shouldDisableYear:zc().func,showDaysOutsideCurrentMonth:zc().bool,slotProps:zc().object,slots:zc().object,sx:zc().oneOfType([zc().arrayOf(zc().oneOfType([zc().func,zc().object,zc().bool])),zc().func,zc().object]),timezone:zc().string,value:zc().any,view:zc().oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:zc().shape({day:zc().func,hours:zc().func,minutes:zc().func,month:zc().func,seconds:zc().func,year:zc().func}),views:zc().arrayOf(zc().oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:zc().oneOf([3,4])};const D3=["desktopModeMediaQuery"],M3=e.forwardRef((function(e,t){const n=nQ({props:e,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:r=x0}=n,a=(0,Sl.A)(n,D3);return cQ(r,{defaultMatches:!0})?(0,Tl.jsx)(v3,(0,wl.A)({ref:t},a)):(0,Tl.jsx)(N3,(0,wl.A)({ref:t},a))}));function _3(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function I3(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function R3(e){I3(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===Xd(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function O3(e,t){I3(2,arguments);var n=R3(e),r=_3(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function L3(e,t){I3(2,arguments);var n=R3(e).getTime(),r=_3(t);return new Date(n+r)}function F3(e,t){I3(2,arguments);var n=R3(e),r=_3(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var a=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+r+1,0),a>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),a),n)}function B3(e,t){return I3(2,arguments),F3(e,12*_3(t))}function z3(e,t){I3(2,arguments);var n=R3(e),r=R3(t),a=n.getTime()-r.getTime();return a<0?-1:a>0?1:a}function V3(e,t){I3(2,arguments);var n=R3(e),r=R3(t),a=z3(n,r),i=Math.abs(function(e,t){I3(2,arguments);var n=R3(e),r=R3(t);return n.getFullYear()-r.getFullYear()}(n,r));n.setFullYear(1584),r.setFullYear(1584);var o=z3(n,r)===-a,s=a*(i-Number(o));return 0===s?0:s}function W3(e){I3(1,arguments);var t=R3(e);return t.setHours(23,59,59,999),t}function U3(e){I3(1,arguments);var t=R3(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function $3(e,t){I3(2,arguments);var n,r=R3(e),a=R3(t),i=z3(r,a),o=Math.abs(function(e,t){I3(2,arguments);var n=R3(e),r=R3(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}(r,a));if(o<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*o);var s=z3(r,a)===-i;(function(e){I3(1,arguments);var t=R3(e);return W3(t).getTime()===U3(t).getTime()})(R3(e))&&1===o&&1===z3(e,a)&&(s=!1),n=i*(o-Number(s))}return 0===n?0:n}var H3={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function q3(e){return e?H3[e]:H3.trunc}function G3(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function K3(e){I3(1,arguments);var t=R3(e);return t.setHours(0,0,0,0),t}function Y3(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function X3(e,t){I3(2,arguments);var n=R3(e),r=R3(t),a=Y3(n,r),i=Math.abs(function(e,t){I3(2,arguments);var n=K3(e),r=K3(t),a=n.getTime()-G3(n),i=r.getTime()-G3(r);return Math.round((a-i)/864e5)}(n,r));n.setDate(n.getDate()-a*i);var o=a*(i-Number(Y3(n,r)===-a));return 0===o?0:o}Math.pow(10,8);var Z3=6e4,J3=36e5;function Q3(e,t){return I3(2,arguments),R3(e).getTime()-R3(t).getTime()}var e6={};function t6(){return e6}function n6(e,t){var n,r,a,i,o,s,l,c;I3(1,arguments);var u=t6(),d=_3(null!==(n=null!==(r=null!==(a=null!==(i=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==i?i:null===t||void 0===t||null===(o=t.locale)||void 0===o||null===(s=o.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==a?a:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=R3(e),h=p.getDay(),f=6+(h<d?-7:0)-(h-d);return p.setDate(p.getDate()+f),p.setHours(23,59,59,999),p}function r6(e){I3(1,arguments);var t=R3(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function a6(e){if(I3(1,arguments),!function(e){return I3(1,arguments),e instanceof Date||"object"===Xd(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!==typeof e)return!1;var t=R3(e);return!isNaN(Number(t))}function i6(e,t){return I3(2,arguments),L3(e,-_3(t))}function o6(e){I3(1,arguments);var t=R3(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function s6(e){I3(1,arguments);var t=R3(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var a=o6(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var o=o6(i);return t.getTime()>=a.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function l6(e){I3(1,arguments);var t=R3(e),n=o6(t).getTime()-function(e){I3(1,arguments);var t=s6(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),o6(n)}(t).getTime();return Math.round(n/6048e5)+1}function c6(e,t){var n,r,a,i,o,s,l,c;I3(1,arguments);var u=t6(),d=_3(null!==(n=null!==(r=null!==(a=null!==(i=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==i?i:null===t||void 0===t||null===(o=t.locale)||void 0===o||null===(s=o.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==a?a:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=R3(e),h=p.getUTCDay(),f=(h<d?7:0)+h-d;return p.setUTCDate(p.getUTCDate()-f),p.setUTCHours(0,0,0,0),p}function u6(e,t){var n,r,a,i,o,s,l,c;I3(1,arguments);var u=R3(e),d=u.getUTCFullYear(),p=t6(),h=_3(null!==(n=null!==(r=null!==(a=null!==(i=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null===t||void 0===t||null===(o=t.locale)||void 0===o||null===(s=o.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==a?a:p.firstWeekContainsDate)&&void 0!==r?r:null===(l=p.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(d+1,0,h),f.setUTCHours(0,0,0,0);var m=c6(f,t),g=new Date(0);g.setUTCFullYear(d,0,h),g.setUTCHours(0,0,0,0);var v=c6(g,t);return u.getTime()>=m.getTime()?d+1:u.getTime()>=v.getTime()?d:d-1}function d6(e,t){I3(1,arguments);var n=R3(e),r=c6(n,t).getTime()-function(e,t){var n,r,a,i,o,s,l,c;I3(1,arguments);var u=t6(),d=_3(null!==(n=null!==(r=null!==(a=null!==(i=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null===t||void 0===t||null===(o=t.locale)||void 0===o||null===(s=o.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==a?a:u.firstWeekContainsDate)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),p=u6(e,t),h=new Date(0);return h.setUTCFullYear(p,0,d),h.setUTCHours(0,0,0,0),c6(h,t)}(n,t).getTime();return Math.round(r/6048e5)+1}function p6(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var h6={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return p6("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):p6(n+1,2)},d:function(e,t){return p6(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return p6(e.getUTCHours()%12||12,t.length)},H:function(e,t){return p6(e.getUTCHours(),t.length)},m:function(e,t){return p6(e.getUTCMinutes(),t.length)},s:function(e,t){return p6(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return p6(Math.floor(r*Math.pow(10,n-3)),t.length)}};const f6=h6;var m6="midnight",g6="noon",v6="morning",y6="afternoon",b6="evening",x6="night",w6={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return f6.y(e,t)},Y:function(e,t,n,r){var a=u6(e,r),i=a>0?a:1-a;return"YY"===t?p6(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):p6(i,t.length)},R:function(e,t){return p6(s6(e),t.length)},u:function(e,t){return p6(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return p6(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return p6(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return f6.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return p6(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var a=d6(e,r);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):p6(a,t.length)},I:function(e,t,n){var r=l6(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):p6(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):f6.d(e,t)},D:function(e,t,n){var r=function(e){I3(1,arguments);var t=R3(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):p6(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var a=e.getUTCDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return p6(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var a=e.getUTCDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return p6(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),a=0===r?7:r;switch(t){case"i":return String(a);case"ii":return p6(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,a=e.getUTCHours();switch(r=12===a?g6:0===a?m6:a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,a=e.getUTCHours();switch(r=a>=17?b6:a>=12?y6:a>=4?v6:x6,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return f6.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):f6.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):p6(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):p6(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):f6.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):f6.s(e,t)},S:function(e,t){return f6.S(e,t)},X:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();if(0===a)return"Z";switch(t){case"X":return C6(a);case"XXXX":case"XX":return A6(a);default:return A6(a,":")}},x:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return C6(a);case"xxxx":case"xx":return A6(a);default:return A6(a,":")}},O:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+S6(a,":");default:return"GMT"+A6(a,":")}},z:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+S6(a,":");default:return"GMT"+A6(a,":")}},t:function(e,t,n,r){var a=r._originalDate||e;return p6(Math.floor(a.getTime()/1e3),t.length)},T:function(e,t,n,r){return p6((r._originalDate||e).getTime(),t.length)}};function S6(e,t){var n=e>0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),i=r%60;if(0===i)return n+String(a);var o=t||"";return n+String(a)+o+p6(i,2)}function C6(e,t){return e%60===0?(e>0?"-":"+")+p6(Math.abs(e)/60,2):A6(e,t)}function A6(e,t){var n=t||"",r=e>0?"-":"+",a=Math.abs(e);return r+p6(Math.floor(a/60),2)+n+p6(a%60,2)}const k6=w6;var T6=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},j6=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},E6={p:j6,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return T6(e,t);switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",T6(a,t)).replace("{{time}}",j6(i,t))}};const P6=E6;var N6=["D","DD"],D6=["YY","YYYY"];function M6(e){return-1!==N6.indexOf(e)}function _6(e){return-1!==D6.indexOf(e)}function I6(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var R6={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const O6=function(e,t,n){var r,a=R6[e];return r="string"===typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function L6(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const F6={date:L6({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:L6({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:L6({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var B6={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const z6=function(e,t,n,r){return B6[e]};function V6(e){return function(t,n){var r;if("formatting"===(null!==n&&void 0!==n&&n.context?String(n.context):"standalone")&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,i=null!==n&&void 0!==n&&n.width?String(n.width):a;r=e.formattingValues[i]||e.formattingValues[a]}else{var o=e.defaultWidth,s=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[o]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var W6={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:V6({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:V6({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:V6({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:V6({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:V6({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};const U6=W6;function $6(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;var o,s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,(function(e){return e.test(s)}));return o=e.valueCallback?e.valueCallback(c):c,{value:o=n.valueCallback?n.valueCallback(o):o,rest:t.slice(s.length)}}}var H6,q6={ordinalNumber:(H6={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(H6.matchPattern);if(!n)return null;var r=n[0],a=e.match(H6.parsePattern);if(!a)return null;var i=H6.valueCallback?H6.valueCallback(a[0]):a[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:$6({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:$6({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:$6({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:$6({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:$6({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const G6={code:"en-US",formatDistance:O6,formatLong:F6,formatRelative:z6,localize:U6,match:q6,options:{weekStartsOn:0,firstWeekContainsDate:1}},K6=G6;var Y6=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,X6=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Z6=/^'([^]*?)'?$/,J6=/''/g,Q6=/[a-zA-Z]/;function e8(e,t,n){var r,a,i,o,s,l,c,u,d,p,h,f,m,g,v,y,b,x;I3(2,arguments);var w=String(t),S=t6(),C=null!==(r=null!==(a=null===n||void 0===n?void 0:n.locale)&&void 0!==a?a:S.locale)&&void 0!==r?r:K6,A=_3(null!==(i=null!==(o=null!==(s=null!==(l=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null===n||void 0===n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:S.firstWeekContainsDate)&&void 0!==o?o:null===(d=S.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==i?i:1);if(!(A>=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=_3(null!==(h=null!==(f=null!==(m=null!==(g=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==g?g:null===n||void 0===n||null===(v=n.locale)||void 0===v||null===(y=v.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==m?m:S.weekStartsOn)&&void 0!==f?f:null===(b=S.locale)||void 0===b||null===(x=b.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==h?h:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!C.localize)throw new RangeError("locale must contain localize property");if(!C.formatLong)throw new RangeError("locale must contain formatLong property");var T=R3(e);if(!a6(T))throw new RangeError("Invalid time value");var j=i6(T,G3(T)),E={firstWeekContainsDate:A,weekStartsOn:k,locale:C,_originalDate:T},P=w.match(X6).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,P6[t])(e,C.formatLong):e})).join("").match(Y6).map((function(r){if("''"===r)return"'";var a=r[0];if("'"===a)return function(e){var t=e.match(Z6);if(!t)return e;return t[1].replace(J6,"'")}(r);var i=k6[a];if(i)return null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||!_6(r)||I6(r,t,String(e)),null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!M6(r)||I6(r,t,String(e)),i(j,r,C.localize,E);if(a.match(Q6))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return r})).join("");return P}function t8(e){I3(1,arguments);var t=R3(e),n=t.getFullYear(),r=t.getMonth(),a=new Date(0);return a.setFullYear(n,r+1,0),a.setHours(0,0,0,0),a.getDate()}function n8(e,t){var n,r,a,i,o,s,l,c;I3(1,arguments);var u=t6(),d=_3(null!==(n=null!==(r=null!==(a=null!==(i=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==i?i:null===t||void 0===t||null===(o=t.locale)||void 0===o||null===(s=o.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==a?a:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=R3(e),h=p.getDay(),f=(h<d?7:0)+h-d;return p.setDate(p.getDate()-f),p.setHours(0,0,0,0),p}function r8(e,t){var n,r,a,i,o,s,l,c;I3(1,arguments);var u=t6(),d=_3(null!==(n=null!==(r=null!==(a=null!==(i=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null===t||void 0===t||null===(o=t.locale)||void 0===o||null===(s=o.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==a?a:u.firstWeekContainsDate)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),p=function(e,t){var n,r,a,i,o,s,l,c;I3(1,arguments);var u=R3(e),d=u.getFullYear(),p=t6(),h=_3(null!==(n=null!==(r=null!==(a=null!==(i=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null===t||void 0===t||null===(o=t.locale)||void 0===o||null===(s=o.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==a?a:p.firstWeekContainsDate)&&void 0!==r?r:null===(l=p.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setFullYear(d+1,0,h),f.setHours(0,0,0,0);var m=n8(f,t),g=new Date(0);g.setFullYear(d,0,h),g.setHours(0,0,0,0);var v=n8(g,t);return u.getTime()>=m.getTime()?d+1:u.getTime()>=v.getTime()?d:d-1}(e,t),h=new Date(0);return h.setFullYear(p,0,d),h.setHours(0,0,0,0),n8(h,t)}function a8(e,t){I3(2,arguments);var n=R3(e),r=R3(t);return n.getTime()>r.getTime()}function i8(e,t){I3(2,arguments);var n=R3(e),r=R3(t);return n.getTime()<r.getTime()}function o8(e){I3(1,arguments);var t=R3(e);return t.setMinutes(0,0,0),t}function s8(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Kv(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function l8(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function c8(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&&Lc(e,t)}function u8(e){return u8=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u8(e)}function d8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d8=function(){return!!e})()}function p8(e){var t=d8();return function(){var n,r=u8(e);if(t){var a=u8(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==Xd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return kf(e)}(this,n)}}function h8(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f8=function(){function e(){h8(this,e),Jd(this,"priority",void 0),Jd(this,"subPriority",0)}return eg(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),m8=function(e){c8(n,e);var t=p8(n);function n(e,r,a,i,o){var s;return h8(this,n),(s=t.call(this)).value=e,s.validateValue=r,s.setValue=a,s.priority=i,o&&(s.subPriority=o),s}return eg(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(f8),g8=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",10),Jd(kf(e),"subPriority",-1),e}return eg(n,[{key:"set",value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),n}(f8),v8=function(){function e(){h8(this,e),Jd(this,"incompatibleTokens",void 0),Jd(this,"priority",void 0),Jd(this,"subPriority",void 0)}return eg(e,[{key:"run",value:function(e,t,n,r){var a=this.parse(e,t,n,r);return a?{setter:new m8(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),y8=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",140),Jd(kf(e),"incompatibleTokens",["R","u","t","T"]),e}return eg(n,[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(v8),b8=/^(1[0-2]|0?\d)/,x8=/^(3[0-1]|[0-2]?\d)/,w8=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,S8=/^(5[0-3]|[0-4]?\d)/,C8=/^(2[0-3]|[0-1]?\d)/,A8=/^(2[0-4]|[0-1]?\d)/,k8=/^(1[0-1]|0?\d)/,T8=/^(1[0-2]|0?\d)/,j8=/^[0-5]?\d/,E8=/^[0-5]?\d/,P8=/^\d/,N8=/^\d{1,2}/,D8=/^\d{1,3}/,M8=/^\d{1,4}/,_8=/^-?\d+/,I8=/^-?\d/,R8=/^-?\d{1,2}/,O8=/^-?\d{1,3}/,L8=/^-?\d{1,4}/,F8=/^([+-])(\d{2})(\d{2})?|Z/,B8=/^([+-])(\d{2})(\d{2})|Z/,z8=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,V8=/^([+-])(\d{2}):(\d{2})|Z/,W8=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function U8(e,t){return e?{value:t(e.value),rest:e.rest}:e}function $8(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function H8(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var r="+"===n[1]?1:-1,a=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(a*J3+i*Z3+1e3*o),rest:t.slice(n[0].length)}}function q8(e){return $8(_8,e)}function G8(e,t){switch(e){case 1:return $8(P8,t);case 2:return $8(N8,t);case 3:return $8(D8,t);case 4:return $8(M8,t);default:return $8(new RegExp("^\\d{1,"+e+"}"),t)}}function K8(e,t){switch(e){case 1:return $8(I8,t);case 2:return $8(R8,t);case 3:return $8(O8,t);case 4:return $8(L8,t);default:return $8(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Y8(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function X8(e,t){var n,r=t>0,a=r?t:1-t;if(a<=50)n=e||100;else{var i=a+50;n=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return r?n:1-n}function Z8(e){return e%400===0||e%4===0&&e%100!==0}var J8=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",130),Jd(kf(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return eg(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return U8(G8(4,e),r);case"yo":return U8(n.ordinalNumber(e,{unit:"year"}),r);default:return U8(G8(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var a=X8(n.year,r);return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(v8),Q8=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",130),Jd(kf(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return eg(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return U8(G8(4,e),r);case"Yo":return U8(n.ordinalNumber(e,{unit:"year"}),r);default:return U8(G8(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,r){var a=u6(e,r);if(n.isTwoDigitYear){var i=X8(n.year,a);return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),c6(e,r)}var o="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),c6(e,r)}}]),n}(v8),e9=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",130),Jd(kf(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return eg(n,[{key:"parse",value:function(e,t){return K8("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),o6(r)}}]),n}(v8),t9=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",130),Jd(kf(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return eg(n,[{key:"parse",value:function(e,t){return K8("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(v8),n9=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",120),Jd(kf(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return eg(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return G8(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(v8),r9=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",120),Jd(kf(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return eg(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return G8(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(v8),a9=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Jd(kf(e),"priority",110),e}return eg(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return U8($8(b8,e),r);case"MM":return U8(G8(2,e),r);case"Mo":return U8(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(v8),i9=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",110),Jd(kf(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return eg(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return U8($8(b8,e),r);case"LL":return U8(G8(2,e),r);case"Lo":return U8(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(v8);var o9=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",100),Jd(kf(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return eg(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return $8(S8,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return G8(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return c6(function(e,t,n){I3(2,arguments);var r=R3(e),a=_3(t),i=d6(r,n)-a;return r.setUTCDate(r.getUTCDate()-7*i),r}(e,n,r),r)}}]),n}(v8);var s9=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",100),Jd(kf(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return eg(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return $8(S8,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return G8(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return o6(function(e,t){I3(2,arguments);var n=R3(e),r=_3(t),a=l6(n)-r;return n.setUTCDate(n.getUTCDate()-7*a),n}(e,n))}}]),n}(v8),l9=[31,28,31,30,31,30,31,31,30,31,30,31],c9=[31,29,31,30,31,30,31,31,30,31,30,31],u9=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",90),Jd(kf(e),"subPriority",1),Jd(kf(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return eg(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return $8(x8,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return G8(t.length,e)}}},{key:"validate",value:function(e,t){var n=Z8(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=c9[r]:t>=1&&t<=l9[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(v8),d9=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",90),Jd(kf(e),"subpriority",1),Jd(kf(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return eg(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return $8(w8,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return G8(t.length,e)}}},{key:"validate",value:function(e,t){return Z8(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(v8);function p9(e,t,n){var r,a,i,o,s,l,c,u;I3(2,arguments);var d=t6(),p=_3(null!==(r=null!==(a=null!==(i=null!==(o=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==o?o:null===n||void 0===n||null===(s=n.locale)||void 0===s||null===(l=s.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==i?i:d.weekStartsOn)&&void 0!==a?a:null===(c=d.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==r?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=R3(e),f=_3(t),m=((f%7+7)%7<p?7:0)+f-h.getUTCDay();return h.setUTCDate(h.getUTCDate()+m),h}var h9=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",90),Jd(kf(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return eg(n,[{key:"parse",value:function(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=p9(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(v8),f9=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",90),Jd(kf(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return eg(n,[{key:"parse",value:function(e,t,n,r){var a=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return U8(G8(t.length,e),a);case"eo":return U8(n.ordinalNumber(e,{unit:"day"}),a);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=p9(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(v8),m9=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",90),Jd(kf(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return eg(n,[{key:"parse",value:function(e,t,n,r){var a=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return U8(G8(t.length,e),a);case"co":return U8(n.ordinalNumber(e,{unit:"day"}),a);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=p9(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(v8);var g9=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",90),Jd(kf(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return eg(n,[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return G8(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return U8(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return U8(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return U8(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return U8(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return e=function(e,t){I3(2,arguments);var n=_3(t);n%7===0&&(n-=7);var r=R3(e),a=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+a),r}(e,n),e.setUTCHours(0,0,0,0),e}}]),n}(v8),v9=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",80),Jd(kf(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return eg(n,[{key:"parse",value:function(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(Y8(n),0,0,0),e}}]),n}(v8),y9=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",80),Jd(kf(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return eg(n,[{key:"parse",value:function(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(Y8(n),0,0,0),e}}]),n}(v8),b9=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",80),Jd(kf(e),"incompatibleTokens",["a","b","t","T"]),e}return eg(n,[{key:"parse",value:function(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(Y8(n),0,0,0),e}}]),n}(v8),x9=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",70),Jd(kf(e),"incompatibleTokens",["H","K","k","t","T"]),e}return eg(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return $8(T8,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return G8(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(v8),w9=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",70),Jd(kf(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return eg(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return $8(C8,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return G8(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(v8),S9=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",70),Jd(kf(e),"incompatibleTokens",["h","H","k","t","T"]),e}return eg(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return $8(k8,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return G8(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(v8),C9=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",70),Jd(kf(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return eg(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return $8(A8,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return G8(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}]),n}(v8),A9=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",60),Jd(kf(e),"incompatibleTokens",["t","T"]),e}return eg(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return $8(j8,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return G8(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(v8),k9=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",50),Jd(kf(e),"incompatibleTokens",["t","T"]),e}return eg(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return $8(E8,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return G8(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(v8),T9=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",30),Jd(kf(e),"incompatibleTokens",["t","T"]),e}return eg(n,[{key:"parse",value:function(e,t){return U8(G8(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}]),n}(v8),j9=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",10),Jd(kf(e),"incompatibleTokens",["t","T","x"]),e}return eg(n,[{key:"parse",value:function(e,t){switch(t){case"X":return H8(F8,e);case"XX":return H8(B8,e);case"XXXX":return H8(z8,e);case"XXXXX":return H8(W8,e);default:return H8(V8,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(v8),E9=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",10),Jd(kf(e),"incompatibleTokens",["t","T","X"]),e}return eg(n,[{key:"parse",value:function(e,t){switch(t){case"x":return H8(F8,e);case"xx":return H8(B8,e);case"xxxx":return H8(z8,e);case"xxxxx":return H8(W8,e);default:return H8(V8,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(v8),P9=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",40),Jd(kf(e),"incompatibleTokens","*"),e}return eg(n,[{key:"parse",value:function(e){return q8(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(v8),N9=function(e){c8(n,e);var t=p8(n);function n(){var e;h8(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Jd(kf(e=t.call.apply(t,[this].concat(a))),"priority",20),Jd(kf(e),"incompatibleTokens","*"),e}return eg(n,[{key:"parse",value:function(e){return q8(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(v8),D9={G:new y8,y:new J8,Y:new Q8,R:new e9,u:new t9,Q:new n9,q:new r9,M:new a9,L:new i9,w:new o9,I:new s9,d:new u9,D:new d9,E:new h9,e:new f9,c:new m9,i:new g9,a:new v9,b:new y9,B:new b9,h:new x9,H:new w9,K:new S9,k:new C9,m:new A9,s:new k9,S:new T9,X:new j9,x:new E9,t:new P9,T:new N9},M9=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_9=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,I9=/^'([^]*?)'?$/,R9=/''/g,O9=/\S/,L9=/[a-zA-Z]/;function F9(e,t,n,r){var a,i,o,s,l,c,u,d,p,h,f,m,g,v,y,b,x,w;I3(3,arguments);var S=String(e),C=String(t),A=t6(),k=null!==(a=null!==(i=null===r||void 0===r?void 0:r.locale)&&void 0!==i?i:A.locale)&&void 0!==a?a:K6;if(!k.match)throw new RangeError("locale must contain match property");var T=_3(null!==(o=null!==(s=null!==(l=null!==(c=null===r||void 0===r?void 0:r.firstWeekContainsDate)&&void 0!==c?c:null===r||void 0===r||null===(u=r.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==l?l:A.firstWeekContainsDate)&&void 0!==s?s:null===(p=A.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==o?o:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var j=_3(null!==(f=null!==(m=null!==(g=null!==(v=null===r||void 0===r?void 0:r.weekStartsOn)&&void 0!==v?v:null===r||void 0===r||null===(y=r.locale)||void 0===y||null===(b=y.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==g?g:A.weekStartsOn)&&void 0!==m?m:null===(x=A.locale)||void 0===x||null===(w=x.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==f?f:0);if(!(j>=0&&j<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===C)return""===S?R3(n):new Date(NaN);var E,P={firstWeekContainsDate:T,weekStartsOn:j,locale:k},N=[new g8],D=C.match(_9).map((function(e){var t=e[0];return t in P6?(0,P6[t])(e,k.formatLong):e})).join("").match(M9),M=[],_=s8(D);try{var I=function(){var t=E.value;null!==r&&void 0!==r&&r.useAdditionalWeekYearTokens||!_6(t)||I6(t,C,e),null!==r&&void 0!==r&&r.useAdditionalDayOfYearTokens||!M6(t)||I6(t,C,e);var n=t[0],a=D9[n];if(a){var i=a.incompatibleTokens;if(Array.isArray(i)){var o=M.find((function(e){return i.includes(e.token)||e.token===n}));if(o)throw new RangeError("The format string mustn't contain `".concat(o.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===a.incompatibleTokens&&M.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));M.push({token:n,fullToken:t});var s=a.run(S,t,k.match,P);if(!s)return{v:new Date(NaN)};N.push(s.setter),S=s.rest}else{if(n.match(L9))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=t.match(I9)[1].replace(R9,"'")),0!==S.indexOf(t))return{v:new Date(NaN)};S=S.slice(t.length)}};for(_.s();!(E=_.n()).done;){var R=I();if("object"===Xd(R))return R.v}}catch($){_.e($)}finally{_.f()}if(S.length>0&&O9.test(S))return new Date(NaN);var O=N.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return N.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),L=R3(n);if(isNaN(L.getTime()))return new Date(NaN);var F,B=i6(L,G3(L)),z={},V=s8(O);try{for(V.s();!(F=V.n()).done;){var W=F.value;if(!W.validate(B,P))return new Date(NaN);var U=W.set(B,z,P);Array.isArray(U)?(B=U[0],l8(z,U[1])):B=U}}catch($){V.e($)}finally{V.f()}return B}function B9(e){I3(1,arguments);var t=R3(e);return t.setDate(1),t.setHours(0,0,0,0),t}function z9(e){I3(1,arguments);var t=R3(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function V9(e,t){var n;I3(1,arguments);var r=_3(null!==(n=null===t||void 0===t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!==typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var a,i=function(e){var t,n={},r=e.split(W9.dateTimeDelimiter);if(r.length>2)return n;/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],W9.timeZoneDelimiter.test(n.date)&&(n.date=e.split(W9.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length)));if(t){var a=W9.timezone.exec(t);a?(n.time=t.replace(a[1],""),n.timezone=a[1]):n.time=t}return n}(e);if(i.date){var o=function(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:null===i?a:100*i,restDateString:e.slice((r[1]||r[2]).length)}}(i.date,r);a=function(e,t){if(null===t)return new Date(NaN);var n=e.match(U9);if(!n)return new Date(NaN);var r=!!n[4],a=q9(n[1]),i=q9(n[2])-1,o=q9(n[3]),s=q9(n[4]),l=q9(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,l)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var a=r.getUTCDay()||7,i=7*(t-1)+n+1-a;return r.setUTCDate(r.getUTCDate()+i),r}(t,s,l):new Date(NaN);var c=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(K9[t]||(Y9(e)?29:28))}(t,i,o)&&function(e,t){return t>=1&&t<=(Y9(e)?366:365)}(t,a)?(c.setUTCFullYear(t,i,Math.max(a,o)),c):new Date(NaN)}(o.restDateString,o.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var s,l=a.getTime(),c=0;if(i.time&&(c=function(e){var t=e.match($9);if(!t)return NaN;var n=G9(t[1]),r=G9(t[2]),a=G9(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,a))return NaN;return n*J3+r*Z3+1e3*a}(i.time),isNaN(c)))return new Date(NaN);if(!i.timezone){var u=new Date(l+c),d=new Date(0);return d.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),d.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),d}return s=function(e){if("Z"===e)return 0;var t=e.match(H9);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,a))return NaN;return n*(r*J3+a*Z3)}(i.timezone),isNaN(s)?new Date(NaN):new Date(l+c+s)}var W9={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},U9=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,$9=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,H9=/^([+-])(\d{2})(?::?(\d{2}))?$/;function q9(e){return e?parseInt(e):1}function G9(e){return e&&parseFloat(e.replace(",","."))||0}var K9=[31,null,31,30,31,30,31,31,30,31,30,31];function Y9(e){return e%400===0||e%4===0&&e%100!==0}var X9=n(6723),Z9=n.n(X9);const J9={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyy:{sectionType:"year",contentType:"digit",maxLength:4},yyyy:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMMM:{sectionType:"month",contentType:"letter"},MMM:{sectionType:"month",contentType:"letter"},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"letter"},EE:{sectionType:"weekDay",contentType:"letter"},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},EEEEE:{sectionType:"weekDay",contentType:"letter"},i:{sectionType:"weekDay",contentType:"digit",maxLength:1},ii:"weekDay",iii:{sectionType:"weekDay",contentType:"letter"},iiii:{sectionType:"weekDay",contentType:"letter"},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},ee:"weekDay",eee:{sectionType:"weekDay",contentType:"letter"},eeee:{sectionType:"weekDay",contentType:"letter"},eeeee:{sectionType:"weekDay",contentType:"letter"},eeeeee:{sectionType:"weekDay",contentType:"letter"},c:{sectionType:"weekDay",contentType:"digit",maxLength:1},cc:"weekDay",ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},ccccc:{sectionType:"weekDay",contentType:"letter"},cccccc:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",aa:"meridiem",aaa:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},Q9={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",weekday:"EEEE",weekdayShort:"EEEEEE",hours24h:"HH",hours12h:"hh",meridiem:"aa",minutes:"mm",seconds:"ss",fullDate:"PP",fullDateWithWeekday:"PPPP",keyboardDate:"P",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",monthAndYear:"LLLL yyyy",monthAndDate:"MMMM d",fullTime:"p",fullTime12h:"hh:mm aa",fullTime24h:"HH:mm",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aa",fullDateTime24h:"PP HH:mm",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aa",keyboardDateTime24h:"P HH:mm"};class e7{constructor(e){this.isMUIAdapter=!0,this.isTimezoneCompatible=!1,this.lib="date-fns",this.locale=void 0,this.formats=void 0,this.formatTokenMap=J9,this.escapedCharacters={start:"'",end:"'"},this.longFormatters=void 0,this.date=e=>"undefined"===typeof e?new Date:null===e?null:new Date(e),this.dateWithTimezone=e=>this.date(e),this.getTimezone=()=>"default",this.setTimezone=e=>e,this.toJsDate=e=>e,this.getCurrentLocaleCode=()=>{var e;return(null==(e=this.locale)?void 0:e.code)||"en-US"},this.is12HourCycleInCurrentLocale=()=>!this.locale||/a/.test(this.locale.formatLong.time({width:"short"})),this.expandFormat=e=>e.match(/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,this.longFormatters[t])(e,this.locale.formatLong)}return e})).join(""),this.getFormatHelperText=e=>this.expandFormat(e).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase(),this.isNull=e=>null===e,this.formatNumber=e=>e,this.getMeridiemText=e=>"am"===e?"AM":"PM";const{locale:t,formats:n,longFormatters:r}=e;this.locale=t,this.formats=(0,wl.A)({},Q9,n),this.longFormatters=r}}class t7 extends e7{constructor(){let{locale:e,formats:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super({locale:null!=e?e:G6,formats:t,longFormatters:Z9()}),this.parseISO=e=>V9(e),this.toISO=e=>function(e,t){var n,r;I3(1,arguments);var a=R3(e);if(isNaN(a.getTime()))throw new RangeError("Invalid time value");var i=String(null!==(n=null===t||void 0===t?void 0:t.format)&&void 0!==n?n:"extended"),o=String(null!==(r=null===t||void 0===t?void 0:t.representation)&&void 0!==r?r:"complete");if("extended"!==i&&"basic"!==i)throw new RangeError("format must be 'extended' or 'basic'");if("date"!==o&&"time"!==o&&"complete"!==o)throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",l="",c="extended"===i?"-":"",u="extended"===i?":":"";if("time"!==o){var d=p6(a.getDate(),2),p=p6(a.getMonth()+1,2),h=p6(a.getFullYear(),4);s="".concat(h).concat(c).concat(p).concat(c).concat(d)}if("date"!==o){var f=a.getTimezoneOffset();if(0!==f){var m=Math.abs(f),g=p6(Math.floor(m/60),2),v=p6(m%60,2);l="".concat(f<0?"+":"-").concat(g,":").concat(v)}else l="Z";var y=""===s?"":"T",b=[p6(a.getHours(),2),p6(a.getMinutes(),2),p6(a.getSeconds(),2)].join(u);s="".concat(s).concat(y).concat(b).concat(l)}return s}(e,{format:"extended"}),this.parse=(e,t)=>""===e?null:F9(e,t,new Date,{locale:this.locale}),this.isValid=e=>a6(this.date(e)),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>e8(e,t,{locale:this.locale}),this.getDiff=(e,t,n)=>{switch(n){case"years":return V3(e,this.date(t));case"quarters":return function(e,t,n){I3(2,arguments);var r=$3(e,t)/3;return q3(null===n||void 0===n?void 0:n.roundingMethod)(r)}(e,this.date(t));case"months":return $3(e,this.date(t));case"weeks":return function(e,t,n){I3(2,arguments);var r=X3(e,t)/7;return q3(null===n||void 0===n?void 0:n.roundingMethod)(r)}(e,this.date(t));case"days":return X3(e,this.date(t));case"hours":return function(e,t,n){I3(2,arguments);var r=Q3(e,t)/J3;return q3(null===n||void 0===n?void 0:n.roundingMethod)(r)}(e,this.date(t));case"minutes":return function(e,t,n){I3(2,arguments);var r=Q3(e,t)/Z3;return q3(null===n||void 0===n?void 0:n.roundingMethod)(r)}(e,this.date(t));case"seconds":return function(e,t,n){I3(2,arguments);var r=Q3(e,t)/1e3;return q3(null===n||void 0===n?void 0:n.roundingMethod)(r)}(e,this.date(t));default:return Q3(e,this.date(t))}},this.isEqual=(e,t)=>null===e&&null===t||function(e,t){I3(2,arguments);var n=R3(e),r=R3(t);return n.getTime()===r.getTime()}(e,t),this.isSameYear=(e,t)=>function(e,t){I3(2,arguments);var n=R3(e),r=R3(t);return n.getFullYear()===r.getFullYear()}(e,t),this.isSameMonth=(e,t)=>function(e,t){I3(2,arguments);var n=R3(e),r=R3(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}(e,t),this.isSameDay=(e,t)=>function(e,t){I3(2,arguments);var n=K3(e),r=K3(t);return n.getTime()===r.getTime()}(e,t),this.isSameHour=(e,t)=>function(e,t){I3(2,arguments);var n=o8(e),r=o8(t);return n.getTime()===r.getTime()}(e,t),this.isAfter=(e,t)=>a8(e,t),this.isAfterYear=(e,t)=>a8(e,r6(t)),this.isAfterDay=(e,t)=>a8(e,W3(t)),this.isBefore=(e,t)=>i8(e,t),this.isBeforeYear=(e,t)=>i8(e,z9(t)),this.isBeforeDay=(e,t)=>i8(e,K3(t)),this.isWithinRange=(e,t)=>{let[n,r]=t;return function(e,t){I3(2,arguments);var n=R3(e).getTime(),r=R3(t.start).getTime(),a=R3(t.end).getTime();if(!(r<=a))throw new RangeError("Invalid interval");return n>=r&&n<=a}(e,{start:n,end:r})},this.startOfYear=e=>z9(e),this.startOfMonth=e=>B9(e),this.startOfWeek=e=>n8(e,{locale:this.locale}),this.startOfDay=e=>K3(e),this.endOfYear=e=>r6(e),this.endOfMonth=e=>U3(e),this.endOfWeek=e=>n6(e,{locale:this.locale}),this.endOfDay=e=>W3(e),this.addYears=(e,t)=>B3(e,t),this.addMonths=(e,t)=>F3(e,t),this.addWeeks=(e,t)=>function(e,t){return I3(2,arguments),O3(e,7*_3(t))}(e,t),this.addDays=(e,t)=>O3(e,t),this.addHours=(e,t)=>function(e,t){return I3(2,arguments),L3(e,36e5*_3(t))}(e,t),this.addMinutes=(e,t)=>function(e,t){return I3(2,arguments),L3(e,6e4*_3(t))}(e,t),this.addSeconds=(e,t)=>function(e,t){return I3(2,arguments),L3(e,1e3*_3(t))}(e,t),this.getYear=e=>function(e){return I3(1,arguments),R3(e).getFullYear()}(e),this.getMonth=e=>function(e){return I3(1,arguments),R3(e).getMonth()}(e),this.getDate=e=>function(e){return I3(1,arguments),R3(e).getDate()}(e),this.getHours=e=>function(e){return I3(1,arguments),R3(e).getHours()}(e),this.getMinutes=e=>function(e){return I3(1,arguments),R3(e).getMinutes()}(e),this.getSeconds=e=>function(e){return I3(1,arguments),R3(e).getSeconds()}(e),this.getMilliseconds=e=>function(e){return I3(1,arguments),R3(e).getMilliseconds()}(e),this.setYear=(e,t)=>function(e,t){I3(2,arguments);var n=R3(e),r=_3(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}(e,t),this.setMonth=(e,t)=>function(e,t){I3(2,arguments);var n=R3(e),r=_3(t),a=n.getFullYear(),i=n.getDate(),o=new Date(0);o.setFullYear(a,r,15),o.setHours(0,0,0,0);var s=t8(o);return n.setMonth(r,Math.min(i,s)),n}(e,t),this.setDate=(e,t)=>function(e,t){I3(2,arguments);var n=R3(e),r=_3(t);return n.setDate(r),n}(e,t),this.setHours=(e,t)=>function(e,t){I3(2,arguments);var n=R3(e),r=_3(t);return n.setHours(r),n}(e,t),this.setMinutes=(e,t)=>function(e,t){I3(2,arguments);var n=R3(e),r=_3(t);return n.setMinutes(r),n}(e,t),this.setSeconds=(e,t)=>function(e,t){I3(2,arguments);var n=R3(e),r=_3(t);return n.setSeconds(r),n}(e,t),this.setMilliseconds=(e,t)=>function(e,t){I3(2,arguments);var n=R3(e),r=_3(t);return n.setMilliseconds(r),n}(e,t),this.getDaysInMonth=e=>t8(e),this.getNextMonth=e=>F3(e,1),this.getPreviousMonth=e=>F3(e,-1),this.getMonthArray=e=>{const t=[z9(e)];for(;t.length<12;){const e=t[t.length-1];t.push(this.getNextMonth(e))}return t},this.mergeDateAndTime=(e,t)=>this.setSeconds(this.setMinutes(this.setHours(e,this.getHours(t)),this.getMinutes(t)),this.getSeconds(t)),this.getWeekdays=()=>{const e=new Date;return function(e,t){var n;I3(1,arguments);var r=e||{},a=R3(r.start),i=R3(r.end).getTime();if(!(a.getTime()<=i))throw new RangeError("Invalid interval");var o=[],s=a;s.setHours(0,0,0,0);var l=Number(null!==(n=null===t||void 0===t?void 0:t.step)&&void 0!==n?n:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=i;)o.push(R3(s)),s.setDate(s.getDate()+l),s.setHours(0,0,0,0);return o}({start:n8(e,{locale:this.locale}),end:n6(e,{locale:this.locale})}).map((e=>this.formatByString(e,"EEEEEE")))},this.getWeekArray=e=>{const t=n8(B9(e),{locale:this.locale}),n=n6(U3(e),{locale:this.locale});let r=0,a=t;const i=[];for(;i8(a,n);){const e=Math.floor(r/7);i[e]=i[e]||[],i[e].push(a),a=O3(a,1),r+=1}return i},this.getWeekNumber=e=>function(e,t){I3(1,arguments);var n=R3(e),r=n8(n,t).getTime()-r8(n,t).getTime();return Math.round(r/6048e5)+1}(e,{locale:this.locale}),this.getYearRange=(e,t)=>{const n=z9(e),r=r6(t),a=[];let i=n;for(;i8(i,r);)a.push(i),i=B3(i,1);return a}}}function n7(e){let{value:t,setValue:n,error:r,label:a,minDate:i=null,minTime:o=null}=e;return(0,Tl.jsx)(iQ,{dateAdapter:t7,children:(0,Tl.jsx)(M3,{error:r,label:a,value:t,onChange:e=>n(e),minDate:i,minTime:o})})}const r7=t=>{const n=e.useRef({});return e.useEffect((()=>{n.current=t})),n.current};function a7(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function i7(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const o7=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:a="any",stringify:i,trim:o=!1}=e;return(e,s)=>{let{inputValue:l,getOptionLabel:c}=s,u=o?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=a7(u));const d=u?e.filter((e=>{let r=(i||c)(e);return n&&(r=r.toLowerCase()),t&&(r=a7(r)),"start"===a?0===r.indexOf(u):r.indexOf(u)>-1})):e;return"number"===typeof r?d.slice(0,r):d}}(),s7=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};const l7=function(t){const{unstable_isActiveElementInListbox:n=s7,unstable_classNamePrefix:r="Mui",autoComplete:a=!1,autoHighlight:i=!1,autoSelect:o=!1,blurOnSelect:s=!1,clearOnBlur:l=!t.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=(t.multiple?[]:null),disableClearable:p=!1,disableCloseOnSelect:h=!1,disabled:f,disabledItemsFocusable:m=!1,disableListWrap:g=!1,filterOptions:v=o7,filterSelectedOptions:y=!1,freeSolo:b=!1,getOptionDisabled:x,getOptionKey:w,getOptionLabel:S=e=>{var t;return null!=(t=e.label)?t:e},groupBy:C,handleHomeEndKeys:A=!t.freeSolo,id:k,includeInputInList:T=!1,inputValue:j,isOptionEqualToValue:E=(e,t)=>e===t,multiple:P=!1,onChange:N,onClose:D,onHighlightChange:M,onInputChange:_,onOpen:I,open:R,openOnFocus:O=!1,options:L,readOnly:F=!1,selectOnFocus:B=!t.freeSolo,value:z}=t,V=CS(k);let W=S;W=e=>{const t=S(e);return"string"!==typeof t?String(t):t};const U=e.useRef(!1),$=e.useRef(!0),H=e.useRef(null),q=e.useRef(null),[G,K]=e.useState(null),[Y,X]=e.useState(-1),Z=i?0:-1,J=e.useRef(Z),[Q,ee]=kS({controlled:z,default:d,name:u}),[te,ne]=kS({controlled:j,default:"",name:u,state:"inputValue"}),[re,ae]=e.useState(!1),ie=e.useCallback(((e,t)=>{if(!(P?Q.length<t.length:null!==t)&&!l)return;let n;if(P)n="";else if(null==t)n="";else{const e=W(t);n="string"===typeof e?e:""}te!==n&&(ne(n),_&&_(e,n,"reset"))}),[W,te,P,_,ne,l,Q]),[oe,se]=kS({controlled:R,default:!1,name:u,state:"open"}),[le,ce]=e.useState(!0),ue=!P&&null!=Q&&te===W(Q),de=oe&&!F,pe=de?v(L.filter((e=>!y||!(P?Q:[Q]).some((t=>null!==t&&E(e,t))))),{inputValue:ue&&le?"":te,getOptionLabel:W}):[],he=r7({filteredOptions:pe,value:Q,inputValue:te});e.useEffect((()=>{const e=Q!==he.value;re&&!e||b&&!e||ie(null,Q)}),[Q,ie,re,he.value,b]);const fe=oe&&pe.length>0&&!F,me=cf((e=>{-1===e?H.current.focus():G.querySelector(`[data-tag-index="${e}"]`).focus()}));e.useEffect((()=>{P&&Y>Q.length-1&&(X(-1),me(-1))}),[Q,P,Y,me]);const ge=cf((e=>{let{event:t,index:n,reason:a="auto"}=e;if(J.current=n,-1===n?H.current.removeAttribute("aria-activedescendant"):H.current.setAttribute("aria-activedescendant",`${V}-option-${n}`),M&&M(t,-1===n?null:pe[n],a),!q.current)return;const i=q.current.querySelector(`[role="option"].${r}-focused`);i&&(i.classList.remove(`${r}-focused`),i.classList.remove(`${r}-focusVisible`));let o=q.current;if("listbox"!==q.current.getAttribute("role")&&(o=q.current.parentElement.querySelector('[role="listbox"]')),!o)return;if(-1===n)return void(o.scrollTop=0);const s=q.current.querySelector(`[data-option-index="${n}"]`);if(s&&(s.classList.add(`${r}-focused`),"keyboard"===a&&s.classList.add(`${r}-focusVisible`),o.scrollHeight>o.clientHeight&&"mouse"!==a&&"touch"!==a)){const e=s,t=o.clientHeight+o.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?o.scrollTop=n-o.clientHeight:e.offsetTop-e.offsetHeight*(C?1.3:0)<o.scrollTop&&(o.scrollTop=e.offsetTop-e.offsetHeight*(C?1.3:0))}})),ve=cf((e=>{let{event:t,diff:n,direction:r="next",reason:i="auto"}=e;if(!de)return;const o=function(e,t){if(!q.current||e<0||e>=pe.length)return-1;let n=e;for(;;){const r=q.current.querySelector(`[data-option-index="${n}"]`),a=!m&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(r&&r.hasAttribute("tabindex")&&!a)return n;if(n="next"===t?(n+1)%pe.length:(n-1+pe.length)%pe.length,n===e)return-1}}((()=>{const e=pe.length-1;if("reset"===n)return Z;if("start"===n)return 0;if("end"===n)return e;const t=J.current+n;return t<0?-1===t&&T?-1:g&&-1!==J.current||Math.abs(n)>1?0:e:t>e?t===e+1&&T?-1:g||Math.abs(n)>1?e:0:t})(),r);if(ge({index:o,reason:i,event:t}),a&&"reset"!==n)if(-1===o)H.current.value=te;else{const e=W(pe[o]);H.current.value=e;0===e.toLowerCase().indexOf(te.toLowerCase())&&te.length>0&&H.current.setSelectionRange(te.length,e.length)}})),ye=e.useCallback((()=>{if(!de)return;const e=(()=>{if(-1!==J.current&&he.filteredOptions&&he.filteredOptions.length!==pe.length&&he.inputValue===te&&(P?Q.length===he.value.length&&he.value.every(((e,t)=>W(Q[t])===W(e))):(e=he.value,t=Q,(e?W(e):"")===(t?W(t):"")))){const e=he.filteredOptions[J.current];if(e)return i7(pe,(t=>W(t)===W(e)))}var e,t;return-1})();if(-1!==e)return void(J.current=e);const t=P?Q[0]:Q;if(0!==pe.length&&null!=t){if(q.current)if(null==t)J.current>=pe.length-1?ge({index:pe.length-1}):ge({index:J.current});else{const e=pe[J.current];if(P&&e&&-1!==i7(Q,(t=>E(e,t))))return;const n=i7(pe,(e=>E(e,t)));-1===n?ve({diff:"reset"}):ge({index:n})}}else ve({diff:"reset"})}),[pe.length,!P&&Q,y,ve,ge,de,te,P]),be=cf((e=>{af(q,e),e&&ye()}));e.useEffect((()=>{ye()}),[ye]);const xe=e=>{oe||(se(!0),ce(!0),I&&I(e))},we=(e,t)=>{oe&&(se(!1),D&&D(e,t))},Se=(e,t,n,r)=>{if(P){if(Q.length===t.length&&Q.every(((e,n)=>e===t[n])))return}else if(Q===t)return;N&&N(e,t,n,r),ee(t)},Ce=e.useRef(!1),Ae=function(e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"selectOption",a=t;if(P){a=Array.isArray(Q)?Q.slice():[];const e=i7(a,(e=>E(t,e)));-1===e?a.push(t):"freeSolo"!==n&&(a.splice(e,1),r="removeOption")}ie(e,a),Se(e,a,r,{option:t}),h||e&&(e.ctrlKey||e.metaKey)||we(e,r),(!0===s||"touch"===s&&Ce.current||"mouse"===s&&!Ce.current)&&H.current.blur()},ke=(e,t)=>{if(!P)return;""===te&&we(e,"toggleInput");let n=Y;-1===Y?""===te&&"previous"===t&&(n=Q.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===Q.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===Q.length||"previous"===t&&-1===n)return-1;const e=G.querySelector(`[data-tag-index="${n}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),X(n),me(n)},Te=e=>{U.current=!0,ne(""),_&&_(e,"","clear"),Se(e,P?[]:null,"clear")},je=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==Y&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(X(-1),me(-1)),229!==t.which))switch(t.key){case"Home":de&&A&&(t.preventDefault(),ve({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":de&&A&&(t.preventDefault(),ve({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ve({diff:-5,direction:"previous",reason:"keyboard",event:t}),xe(t);break;case"PageDown":t.preventDefault(),ve({diff:5,direction:"next",reason:"keyboard",event:t}),xe(t);break;case"ArrowDown":t.preventDefault(),ve({diff:1,direction:"next",reason:"keyboard",event:t}),xe(t);break;case"ArrowUp":t.preventDefault(),ve({diff:-1,direction:"previous",reason:"keyboard",event:t}),xe(t);break;case"ArrowLeft":ke(t,"previous");break;case"ArrowRight":ke(t,"next");break;case"Enter":if(-1!==J.current&&de){const e=pe[J.current],n=!!x&&x(e);if(t.preventDefault(),n)return;Ae(t,e,"selectOption"),a&&H.current.setSelectionRange(H.current.value.length,H.current.value.length)}else b&&""!==te&&!1===ue&&(P&&t.preventDefault(),Ae(t,te,"createOption","freeSolo"));break;case"Escape":de?(t.preventDefault(),t.stopPropagation(),we(t,"escape")):c&&(""!==te||P&&Q.length>0)&&(t.preventDefault(),t.stopPropagation(),Te(t));break;case"Backspace":if(P&&!F&&""===te&&Q.length>0){const e=-1===Y?Q.length-1:Y,n=Q.slice();n.splice(e,1),Se(t,n,"removeOption",{option:Q[e]})}break;case"Delete":if(P&&!F&&""===te&&Q.length>0&&-1!==Y){const e=Y,n=Q.slice();n.splice(e,1),Se(t,n,"removeOption",{option:Q[e]})}}},Ee=e=>{ae(!0),O&&!U.current&&xe(e)},Pe=e=>{n(q)?H.current.focus():(ae(!1),$.current=!0,U.current=!1,o&&-1!==J.current&&de?Ae(e,pe[J.current],"blur"):o&&b&&""!==te?Ae(e,te,"blur","freeSolo"):l&&ie(e,Q),we(e,"blur"))},Ne=e=>{const t=e.target.value;te!==t&&(ne(t),ce(!1),_&&_(e,t,"input")),""===t?p||P||Se(e,null,"clear"):xe(e)},De=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));J.current!==t&&ge({event:e,index:t,reason:"mouse"})},Me=e=>{ge({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ce.current=!0},_e=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Ae(e,pe[t],"selectOption"),Ce.current=!1},Ie=e=>t=>{const n=Q.slice();n.splice(e,1),Se(t,n,"removeOption",{option:Q[e]})},Re=e=>{oe?we(e,"toggleInput"):xe(e)},Oe=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==V&&e.preventDefault()},Le=e=>{e.currentTarget.contains(e.target)&&(H.current.focus(),B&&$.current&&H.current.selectionEnd-H.current.selectionStart===0&&H.current.select(),$.current=!1)},Fe=e=>{f||""!==te&&oe||Re(e)};let Be=b&&te.length>0;Be=Be||(P?Q.length>0:null!==Q);let ze=pe;if(C){new Map;ze=pe.reduce(((e,t,n)=>{const r=C(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 f&&re&&Pe(),{getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,wl.A)({"aria-owns":fe?`${V}-listbox`:null},e,{onKeyDown:je(e),onMouseDown:Oe,onClick:Le})},getInputLabelProps:()=>({id:`${V}-label`,htmlFor:V}),getInputProps:()=>({id:V,value:te,onBlur:Pe,onFocus:Ee,onChange:Ne,onMouseDown:Fe,"aria-activedescendant":de?"":null,"aria-autocomplete":a?"both":"list","aria-controls":fe?`${V}-listbox`:void 0,"aria-expanded":fe,autoComplete:"off",ref:H,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:f}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Te}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Re}),getTagProps:e=>{let{index:t}=e;return(0,wl.A)({key:t,"data-tag-index":t,tabIndex:-1},!F&&{onDelete:Ie(t)})},getListboxProps:()=>({role:"listbox",id:`${V}-listbox`,"aria-labelledby":`${V}-label`,ref:be,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:e=>{let{index:t,option:n}=e;var r;const a=(P?Q:[Q]).some((e=>null!=e&&E(n,e))),i=!!x&&x(n);return{key:null!=(r=null==w?void 0:w(n))?r:W(n),tabIndex:-1,role:"option",id:`${V}-option-${t}`,onMouseMove:De,onClick:_e,onTouchStart:Me,"data-option-index":t,"aria-disabled":i,"aria-selected":a}},id:V,inputValue:te,value:Q,dirty:Be,expanded:de&&G,popupOpen:de,focused:re||-1!==Y,anchorEl:G,setAnchorEl:K,focusedTag:Y,groupedOptions:ze}};function c7(e){return Ff("MuiListSubheader",e)}Bf("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const u7=["className","color","component","disableGutters","disableSticky","inset"],d7=nf("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${sm(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({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})})),p7=e.forwardRef((function(e,t){const n=rf({props:e,name:"MuiListSubheader"}),{className:r,color:a="default",component:i="li",disableGutters:o=!1,disableSticky:s=!1,inset:l=!1}=n,c=(0,Sl.A)(n,u7),u=(0,wl.A)({},n,{color:a,component:i,disableGutters:o,disableSticky:s,inset:l}),d=(e=>{const{classes:t,color:n,disableGutters:r,inset:a,disableSticky:i}=e;return mh({root:["root","default"!==n&&`color${sm(n)}`,!r&&"gutters",a&&"inset",!i&&"sticky"]},c7,t)})(u);return(0,Tl.jsx)(d7,(0,wl.A)({as:i,className:fh(d.root,r),ref:t,ownerState:u},c))}));p7.muiSkipListHighlight=!0;const h7=p7,f7=bm((0,Tl.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 m7(e){return Ff("MuiAutocomplete",e)}const g7=Bf("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var v7,y7;const b7=["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","getOptionKey","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"],x7=["ref"],w7=["key"],S7=["key"],C7=nf("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:a,hasPopupIcon:i,inputFocused:o,size:s}=n;return[{[`& .${g7.tag}`]:t.tag},{[`& .${g7.tag}`]:t[`tagSize${sm(s)}`]},{[`& .${g7.inputRoot}`]:t.inputRoot},{[`& .${g7.input}`]:t.input},{[`& .${g7.input}`]:o&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,a&&t.hasClearIcon]}})({[`&.${g7.focused} .${g7.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${g7.clearIndicator}`]:{visibility:"visible"}},[`& .${g7.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${g7.inputRoot}`]:{[`.${g7.hasPopupIcon}&, .${g7.hasClearIcon}&`]:{paddingRight:30},[`.${g7.hasPopupIcon}.${g7.hasClearIcon}&`]:{paddingRight:56},[`& .${g7.input}`]:{width:0,minWidth:30}},[`& .${iM.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${iM.root}.${SC.sizeSmall}`]:{[`& .${iM.input}`]:{padding:"2px 4px 3px 0"}},[`& .${CM.root}`]:{padding:9,[`.${g7.hasPopupIcon}&, .${g7.hasClearIcon}&`]:{paddingRight:39},[`.${g7.hasPopupIcon}.${g7.hasClearIcon}&`]:{paddingRight:65},[`& .${g7.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${g7.endAdornment}`]:{right:9}},[`& .${CM.root}.${SC.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${g7.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${pM.root}`]:{paddingTop:19,paddingLeft:8,[`.${g7.hasPopupIcon}&, .${g7.hasClearIcon}&`]:{paddingRight:39},[`.${g7.hasPopupIcon}.${g7.hasClearIcon}&`]:{paddingRight:65},[`& .${pM.input}`]:{padding:"7px 4px"},[`& .${g7.endAdornment}`]:{right:9}},[`& .${pM.root}.${SC.sizeSmall}`]:{paddingBottom:1,[`& .${pM.input}`]:{padding:"2.5px 4px"}},[`& .${SC.hiddenLabel}`]:{paddingTop:8},[`& .${pM.root}.${SC.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${g7.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${pM.root}.${SC.hiddenLabel}.${SC.sizeSmall}`]:{[`& .${g7.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${g7.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${g7.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${g7.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${g7.inputRoot}`]:{flexWrap:"wrap"}}}]}),A7=nf("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),k7=nf(hm,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),T7=nf(hm,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,wl.A)({},t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen)}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),j7=nf(xS,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${g7.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})((e=>{let{theme:t}=e;return{zIndex:(t.vars||t).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}})),E7=nf(Bm,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((e=>{let{theme:t}=e;return(0,wl.A)({},t.typography.body1,{overflow:"auto"})})),P7=nf("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),N7=nf("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),D7=nf("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((e=>{let{theme:t}=e;return{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${g7.option}`]:{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,[t.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${g7.focused}`]:{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${g7.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,gh.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${g7.focused}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,gh.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},[`&.${g7.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:(0,gh.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}}}}})),M7=nf(h7,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((e=>{let{theme:t}=e;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}})),_7=nf("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${g7.option}`]:{paddingLeft:24}}),I7=e.forwardRef((function(t,n){var r,a,i,o;const s=rf({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:c=!1,autoSelect:u=!1,blurOnSelect:d=!1,ChipProps:p,className:h,clearIcon:f=v7||(v7=(0,Tl.jsx)(f7,{fontSize:"small"})),clearOnBlur:m=!s.freeSolo,clearOnEscape:g=!1,clearText:v="Clear",closeText:y="Close",componentsProps:b={},defaultValue:x=(s.multiple?[]:null),disableClearable:w=!1,disableCloseOnSelect:S=!1,disabled:C=!1,disabledItemsFocusable:A=!1,disableListWrap:k=!1,disablePortal:T=!1,filterSelectedOptions:j=!1,forcePopupIcon:E="auto",freeSolo:P=!1,fullWidth:N=!1,getLimitTagsText:D=e=>`+${e}`,getOptionLabel:M,groupBy:_,handleHomeEndKeys:I=!s.freeSolo,includeInputInList:R=!1,limitTags:O=-1,ListboxComponent:L="ul",ListboxProps:F,loading:B=!1,loadingText:z="Loading\u2026",multiple:V=!1,noOptionsText:W="No options",openOnFocus:U=!1,openText:$="Open",PaperComponent:H=Bm,PopperComponent:q=xS,popupIcon:G=y7||(y7=(0,Tl.jsx)(rM,{})),readOnly:K=!1,renderGroup:Y,renderInput:X,renderOption:Z,renderTags:J,selectOnFocus:Q=!s.freeSolo,size:ee="medium",slotProps:te={}}=s,ne=(0,Sl.A)(s,b7),{getRootProps:re,getInputProps:ae,getInputLabelProps:ie,getPopupIndicatorProps:oe,getClearProps:se,getTagProps:le,getListboxProps:ce,getOptionProps:ue,value:de,dirty:pe,expanded:he,id:fe,popupOpen:me,focused:ge,focusedTag:ve,anchorEl:ye,setAnchorEl:be,inputValue:xe,groupedOptions:we}=l7((0,wl.A)({},s,{componentName:"Autocomplete"})),Se=!w&&!C&&pe&&!K,Ce=(!P||!0===E)&&!1!==E,{onMouseDown:Ae}=ae(),{ref:ke}=null!=F?F:{},Te=ce(),{ref:je}=Te,Ee=(0,Sl.A)(Te,x7),Pe=sf(je,ke),Ne=M||(e=>{var t;return null!=(t=e.label)?t:e}),De=(0,wl.A)({},s,{disablePortal:T,expanded:he,focused:ge,fullWidth:N,getOptionLabel:Ne,hasClearIcon:Se,hasPopupIcon:Ce,inputFocused:-1===ve,popupOpen:me,size:ee}),Me=(e=>{const{classes:t,disablePortal:n,expanded:r,focused:a,fullWidth:i,hasClearIcon:o,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e;return mh({root:["root",r&&"expanded",a&&"focused",i&&"fullWidth",o&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${sm(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]},m7,t)})(De);let _e;if(V&&de.length>0){const e=e=>(0,wl.A)({className:Me.tag,disabled:C},le(e));_e=J?J(de,e,De):de.map(((t,n)=>{const r=e({index:n}),{key:a}=r,i=(0,Sl.A)(r,w7);return(0,Tl.jsx)(n3,(0,wl.A)({label:Ne(t),size:ee},i,p),a)}))}if(O>-1&&Array.isArray(_e)){const e=_e.length-O;!ge&&e>0&&(_e=_e.splice(0,O),_e.push((0,Tl.jsx)("span",{className:Me.tag,children:D(e)},_e.length)))}const Ie=Y||(e=>(0,Tl.jsxs)("li",{children:[(0,Tl.jsx)(M7,{className:Me.groupLabel,ownerState:De,component:"div",children:e.group}),(0,Tl.jsx)(_7,{className:Me.groupUl,ownerState:De,children:e.children})]},e.key)),Re=Z||((e,t)=>{const{key:n}=e,r=(0,Sl.A)(e,S7);return(0,Tl.jsx)("li",(0,wl.A)({},r,{children:Ne(t)}),n)}),Oe=(e,t)=>{const n=ue({option:e,index:t});return Re((0,wl.A)({},n,{className:Me.option}),e,{selected:n["aria-selected"],index:t,inputValue:xe},De)},Le=null!=(r=te.clearIndicator)?r:b.clearIndicator,Fe=null!=(a=te.paper)?a:b.paper,Be=null!=(i=te.popper)?i:b.popper,ze=null!=(o=te.popupIndicator)?o:b.popupIndicator,Ve=e=>(0,Tl.jsx)(j7,(0,wl.A)({as:q,disablePortal:T,style:{width:ye?ye.clientWidth:null},ownerState:De,role:"presentation",anchorEl:ye,open:me},Be,{className:fh(Me.popper,null==Be?void 0:Be.className),children:(0,Tl.jsx)(E7,(0,wl.A)({ownerState:De,as:H},Fe,{className:fh(Me.paper,null==Fe?void 0:Fe.className),children:e}))}));let We=null;return we.length>0?We=Ve((0,Tl.jsx)(D7,(0,wl.A)({as:L,className:Me.listbox,ownerState:De},Ee,F,{ref:Pe,children:we.map(((e,t)=>_?Ie({key:e.key,group:e.group,children:e.options.map(((t,n)=>Oe(t,e.index+n)))}):Oe(e,t)))}))):B&&0===we.length?We=Ve((0,Tl.jsx)(P7,{className:Me.loading,ownerState:De,children:z})):0!==we.length||P||B||(We=Ve((0,Tl.jsx)(N7,{className:Me.noOptions,ownerState:De,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:W}))),(0,Tl.jsxs)(e.Fragment,{children:[(0,Tl.jsx)(C7,(0,wl.A)({ref:n,className:fh(Me.root,h),ownerState:De},re(ne),{children:X({id:fe,disabled:C,fullWidth:!0,size:"small"===ee?"small":void 0,InputLabelProps:ie(),InputProps:(0,wl.A)({ref:be,className:Me.inputRoot,startAdornment:_e,onClick:e=>{e.target===e.currentTarget&&Ae(e)}},(Se||Ce)&&{endAdornment:(0,Tl.jsxs)(A7,{className:Me.endAdornment,ownerState:De,children:[Se?(0,Tl.jsx)(k7,(0,wl.A)({},se(),{"aria-label":v,title:v,ownerState:De},Le,{className:fh(Me.clearIndicator,null==Le?void 0:Le.className),children:f})):null,Ce?(0,Tl.jsx)(T7,(0,wl.A)({},oe(),{disabled:C,"aria-label":me?y:$,title:me?y:$,ownerState:De},ze,{className:fh(Me.popupIndicator,null==ze?void 0:ze.className),children:G})):null]})}),inputProps:(0,wl.A)({className:Me.input,disabled:C,readOnly:K},ae())})})),ye?We:null]})})),R7=I7,O7=cb((e=>({formLine:{color:e.palette.primary.main},formLineError:{color:e.palette.error.main}})));function L7(e){let{currValue:t,items:n,handleChange:r,property:a,title:i,error:o}=e;const s=O7();return(0,Tl.jsx)(R7,{value:t,className:s.root,options:n,getOptionLabel:e=>void 0!==a?e[a]||"":e||"",onChange:(e,t)=>{r(t)},renderInput:e=>(0,Tl.jsx)(FU,{variant:"standard",...e,label:i,InputLabelProps:{className:o?s.formLineError:s.formLine}})})}var F7=n(5288),B7=[{name:"adalv",description:"Andorra",alias:["Europe/Andorra"]},{name:"aedxb",description:"Dubai, United Arab Emirates",alias:["Asia/Dubai"]},{name:"afkbl",description:"Kabul, Afghanistan",alias:["Asia/Kabul"]},{name:"aganu",description:"Antigua",alias:["America/Antigua"]},{name:"aiaxa",description:"Anguilla",alias:["America/Anguilla"]},{name:"altia",description:"Tirane, Albania",alias:["Europe/Tirane"]},{name:"amevn",description:"Yerevan, Armenia",alias:["Asia/Yerevan"]},{name:"ancur",description:"Cura\xe7ao",alias:["America/Curacao"]},{name:"aolad",description:"Luanda, Angola",alias:["Africa/Luanda"]},{name:"aqcas",description:"Casey Station, Bailey Peninsula",alias:["Antarctica/Casey"]},{name:"aqdav",description:"Davis Station, Vestfold Hills",alias:["Antarctica/Davis"]},{name:"aqddu",description:"Dumont d'Urville Station, Terre Ad\xe9lie",alias:["Antarctica/DumontDUrville"]},{name:"aqmaw",description:"Mawson Station, Holme Bay",alias:["Antarctica/Mawson"]},{name:"aqmcm",description:"McMurdo Station, Ross Island",alias:["Antarctica/McMurdo"]},{name:"aqplm",description:"Palmer Station, Anvers Island",alias:["Antarctica/Palmer"]},{name:"aqrot",description:"Rothera Station, Adelaide Island",alias:["Antarctica/Rothera"]},{name:"aqsyw",description:"Syowa Station, East Ongul Island",alias:["Antarctica/Syowa"]},{name:"aqtrl",description:"Troll Station, Queen Maud Land",alias:["Antarctica/Troll"]},{name:"aqvos",description:"Vostok Station, Lake Vostok",alias:["Antarctica/Vostok"]},{name:"arbue",description:"Buenos Aires, Argentina",alias:["America/Buenos_Aires","America/Argentina/Buenos_Aires"]},{name:"arcor",description:"C\xf3rdoba, Argentina",alias:["America/Cordoba","America/Argentina/Cordoba","America/Rosario"]},{name:"arctc",description:"Catamarca, Argentina",alias:["America/Catamarca","America/Argentina/Catamarca","America/Argentina/ComodRivadavia"]},{name:"arirj",description:"La Rioja, Argentina",alias:["America/Argentina/La_Rioja"]},{name:"arjuj",description:"Jujuy, Argentina",alias:["America/Jujuy","America/Argentina/Jujuy"]},{name:"arluq",description:"San Luis, Argentina",alias:["America/Argentina/San_Luis"]},{name:"armdz",description:"Mendoza, Argentina",alias:["America/Mendoza","America/Argentina/Mendoza"]},{name:"arrgl",description:"R\xedo Gallegos, Argentina",alias:["America/Argentina/Rio_Gallegos"]},{name:"arsla",description:"Salta, Argentina",alias:["America/Argentina/Salta"]},{name:"artuc",description:"Tucum\xe1n, Argentina",alias:["America/Argentina/Tucuman"]},{name:"aruaq",description:"San Juan, Argentina",alias:["America/Argentina/San_Juan"]},{name:"arush",description:"Ushuaia, Argentina",alias:["America/Argentina/Ushuaia"]},{name:"asppg",description:"Pago Pago, American Samoa",alias:["Pacific/Pago_Pago","Pacific/Samoa","US/Samoa"]},{name:"atvie",description:"Vienna, Austria",alias:["Europe/Vienna"]},{name:"auadl",description:"Adelaide, Australia",alias:["Australia/Adelaide","Australia/South"]},{name:"aubhq",description:"Broken Hill, Australia",alias:["Australia/Broken_Hill","Australia/Yancowinna"]},{name:"aubne",description:"Brisbane, Australia",alias:["Australia/Brisbane","Australia/Queensland"]},{name:"audrw",description:"Darwin, Australia",alias:["Australia/Darwin","Australia/North"]},{name:"aueuc",description:"Eucla, Australia",alias:["Australia/Eucla"]},{name:"auhba",description:"Hobart, Australia",alias:["Australia/Hobart","Australia/Tasmania"]},{name:"aukns",description:"Currie, Australia",alias:["Australia/Currie"]},{name:"auldc",description:"Lindeman Island, Australia",alias:["Australia/Lindeman"]},{name:"auldh",description:"Lord Howe Island, Australia",alias:["Australia/Lord_Howe","Australia/LHI"]},{name:"aumel",description:"Melbourne, Australia",alias:["Australia/Melbourne","Australia/Victoria"]},{name:"aumqi",description:"Macquarie Island Station, Macquarie Island",alias:["Antarctica/Macquarie"]},{name:"auper",description:"Perth, Australia",alias:["Australia/Perth","Australia/West"]},{name:"ausyd",description:"Sydney, Australia",alias:["Australia/Sydney","Australia/ACT","Australia/Canberra","Australia/NSW"]},{name:"awaua",description:"Aruba",alias:["America/Aruba"]},{name:"azbak",description:"Baku, Azerbaijan",alias:["Asia/Baku"]},{name:"basjj",description:"Sarajevo, Bosnia and Herzegovina",alias:["Europe/Sarajevo"]},{name:"bbbgi",description:"Barbados",alias:["America/Barbados"]},{name:"bddac",description:"Dhaka, Bangladesh",alias:["Asia/Dhaka","Asia/Dacca"]},{name:"bebru",description:"Brussels, Belgium",alias:["Europe/Brussels"]},{name:"bfoua",description:"Ouagadougou, Burkina Faso",alias:["Africa/Ouagadougou"]},{name:"bgsof",description:"Sofia, Bulgaria",alias:["Europe/Sofia"]},{name:"bhbah",description:"Bahrain",alias:["Asia/Bahrain"]},{name:"bibjm",description:"Bujumbura, Burundi",alias:["Africa/Bujumbura"]},{name:"bjptn",description:"Porto-Novo, Benin",alias:["Africa/Porto-Novo"]},{name:"bmbda",description:"Bermuda",alias:["Atlantic/Bermuda"]},{name:"bnbwn",description:"Brunei",alias:["Asia/Brunei"]},{name:"bolpb",description:"La Paz, Bolivia",alias:["America/La_Paz"]},{name:"bqkra",description:"Bonaire, Sint Estatius and Saba",alias:["America/Kralendijk"]},{name:"braux",description:"Aragua\xedna, Brazil",alias:["America/Araguaina"]},{name:"brbel",description:"Bel\xe9m, Brazil",alias:["America/Belem"]},{name:"brbvb",description:"Boa Vista, Brazil",alias:["America/Boa_Vista"]},{name:"brcgb",description:"Cuiab\xe1, Brazil",alias:["America/Cuiaba"]},{name:"brcgr",description:"Campo Grande, Brazil",alias:["America/Campo_Grande"]},{name:"brern",description:"Eirunep\xe9, Brazil",alias:["America/Eirunepe"]},{name:"brfen",description:"Fernando de Noronha, Brazil",alias:["America/Noronha","Brazil/DeNoronha"]},{name:"brfor",description:"Fortaleza, Brazil",alias:["America/Fortaleza"]},{name:"brmao",description:"Manaus, Brazil",alias:["America/Manaus","Brazil/West"]},{name:"brmcz",description:"Macei\xf3, Brazil",alias:["America/Maceio"]},{name:"brpvh",description:"Porto Velho, Brazil",alias:["America/Porto_Velho"]},{name:"brrbr",description:"Rio Branco, Brazil",alias:["America/Rio_Branco","America/Porto_Acre","Brazil/Acre"]},{name:"brrec",description:"Recife, Brazil",alias:["America/Recife"]},{name:"brsao",description:"S\xe3o Paulo, Brazil",alias:["America/Sao_Paulo","Brazil/East"]},{name:"brssa",description:"Bahia, Brazil",alias:["America/Bahia"]},{name:"brstm",description:"Santar\xe9m, Brazil",alias:["America/Santarem"]},{name:"bsnas",description:"Nassau, Bahamas",alias:["America/Nassau"]},{name:"btthi",description:"Thimphu, Bhutan",alias:["Asia/Thimphu","Asia/Thimbu"]},{name:"bwgbe",description:"Gaborone, Botswana",alias:["Africa/Gaborone"]},{name:"bymsq",description:"Minsk, Belarus",alias:["Europe/Minsk"]},{name:"bzbze",description:"Belize",alias:["America/Belize"]},{name:"cacfq",description:"Creston, Canada",alias:["America/Creston"]},{name:"caedm",description:"Edmonton, Canada",alias:["America/Edmonton","Canada/Mountain"]},{name:"caffs",description:"Rainy River, Canada",alias:["America/Rainy_River"]},{name:"cafne",description:"Fort Nelson, Canada",alias:["America/Fort_Nelson"]},{name:"caglb",description:"Glace Bay, Canada",alias:["America/Glace_Bay"]},{name:"cagoo",description:"Goose Bay, Canada",alias:["America/Goose_Bay"]},{name:"cahal",description:"Halifax, Canada",alias:["America/Halifax","Canada/Atlantic"]},{name:"caiql",description:"Iqaluit, Canada",alias:["America/Iqaluit"]},{name:"camon",description:"Moncton, Canada",alias:["America/Moncton"]},{name:"capnt",description:"Pangnirtung, Canada",alias:["America/Pangnirtung"]},{name:"careb",description:"Resolute, Canada",alias:["America/Resolute"]},{name:"careg",description:"Regina, Canada",alias:["America/Regina","Canada/East-Saskatchewan","Canada/Saskatchewan"]},{name:"casjf",description:"St. John's, Canada",alias:["America/St_Johns","Canada/Newfoundland"]},{name:"canpg",description:"Nipigon, Canada",alias:["America/Nipigon"]},{name:"cathu",description:"Thunder Bay, Canada",alias:["America/Thunder_Bay"]},{name:"cator",description:"Toronto, Canada",alias:["America/Toronto","Canada/Eastern"]},{name:"cavan",description:"Vancouver, Canada",alias:["America/Vancouver","Canada/Pacific"]},{name:"cawnp",description:"Winnipeg, Canada",alias:["America/Winnipeg","Canada/Central"]},{name:"caybx",description:"Blanc-Sablon, Canada",alias:["America/Blanc-Sablon"]},{name:"caycb",description:"Cambridge Bay, Canada",alias:["America/Cambridge_Bay"]},{name:"cayda",description:"Dawson, Canada",alias:["America/Dawson"]},{name:"caydq",description:"Dawson Creek, Canada",alias:["America/Dawson_Creek"]},{name:"cayek",description:"Rankin Inlet, Canada",alias:["America/Rankin_Inlet"]},{name:"cayev",description:"Inuvik, Canada",alias:["America/Inuvik"]},{name:"cayxy",description:"Whitehorse, Canada",alias:["America/Whitehorse","Canada/Yukon"]},{name:"cayyn",description:"Swift Current, Canada",alias:["America/Swift_Current"]},{name:"cayzf",description:"Yellowknife, Canada",alias:["America/Yellowknife"]},{name:"cayzs",description:"Atikokan, Canada",alias:["America/Coral_Harbour","America/Atikokan"]},{name:"cccck",description:"Cocos (Keeling) Islands",alias:["Indian/Cocos"]},{name:"cdfbm",description:"Lubumbashi, Democratic Republic of the Congo",alias:["Africa/Lubumbashi"]},{name:"cdfih",description:"Kinshasa, Democratic Republic of the Congo",alias:["Africa/Kinshasa"]},{name:"cfbgf",description:"Bangui, Central African Republic",alias:["Africa/Bangui"]},{name:"cgbzv",description:"Brazzaville, Republic of the Congo",alias:["Africa/Brazzaville"]},{name:"chzrh",description:"Zurich, Switzerland",alias:["Europe/Zurich"]},{name:"ciabj",description:"Abidjan, C\xf4te d'Ivoire",alias:["Africa/Abidjan"]},{name:"ckrar",description:"Rarotonga, Cook Islands",alias:["Pacific/Rarotonga"]},{name:"clipc",description:"Easter Island, Chile",alias:["Pacific/Easter","Chile/EasterIsland"]},{name:"clpuq",description:"Punta Arenas, Chile",alias:["America/Punta_Arenas"]},{name:"clscl",description:"Santiago, Chile",alias:["America/Santiago","Chile/Continental"]},{name:"cmdla",description:"Douala, Cameroon",alias:["Africa/Douala"]},{name:"cnsha",description:"Shanghai, China",alias:["Asia/Shanghai","Asia/Chongqing","Asia/Chungking","Asia/Harbin","PRC"]},{name:"cnurc",description:"\xdcr\xfcmqi, China",alias:["Asia/Urumqi","Asia/Kashgar"]},{name:"cobog",description:"Bogot\xe1, Colombia",alias:["America/Bogota"]},{name:"crsjo",description:"Costa Rica",alias:["America/Costa_Rica"]},{name:"cst6cdt",description:"POSIX style time zone for US Central Time",alias:["CST6CDT"]},{name:"cuhav",description:"Havana, Cuba",alias:["America/Havana","Cuba"]},{name:"cvrai",description:"Cape Verde",alias:["Atlantic/Cape_Verde"]},{name:"cxxch",description:"Christmas Island",alias:["Indian/Christmas"]},{name:"cyfmg",description:"Famagusta, Cyprus",alias:["Asia/Famagusta"]},{name:"cynic",description:"Nicosia, Cyprus",alias:["Asia/Nicosia","Europe/Nicosia"]},{name:"czprg",description:"Prague, Czech Republic",alias:["Europe/Prague"]},{name:"deber",description:"Berlin, Germany",alias:["Europe/Berlin"]},{name:"debsngn",description:"Busingen, Germany",alias:["Europe/Busingen"]},{name:"djjib",description:"Djibouti",alias:["Africa/Djibouti"]},{name:"dkcph",description:"Copenhagen, Denmark",alias:["Europe/Copenhagen"]},{name:"dmdom",description:"Dominica",alias:["America/Dominica"]},{name:"dosdq",description:"Santo Domingo, Dominican Republic",alias:["America/Santo_Domingo"]},{name:"dzalg",description:"Algiers, Algeria",alias:["Africa/Algiers"]},{name:"ecgps",description:"Gal\xe1pagos Islands, Ecuador",alias:["Pacific/Galapagos"]},{name:"ecgye",description:"Guayaquil, Ecuador",alias:["America/Guayaquil"]},{name:"eetll",description:"Tallinn, Estonia",alias:["Europe/Tallinn"]},{name:"egcai",description:"Cairo, Egypt",alias:["Africa/Cairo","Egypt"]},{name:"eheai",description:"El Aai\xfan, Western Sahara",alias:["Africa/El_Aaiun"]},{name:"erasm",description:"Asmara, Eritrea",alias:["Africa/Asmera","Africa/Asmara"]},{name:"esceu",description:"Ceuta, Spain",alias:["Africa/Ceuta"]},{name:"eslpa",description:"Canary Islands, Spain",alias:["Atlantic/Canary"]},{name:"esmad",description:"Madrid, Spain",alias:["Europe/Madrid"]},{name:"est5edt",description:"POSIX style time zone for US Eastern Time",alias:["EST5EDT"]},{name:"etadd",description:"Addis Ababa, Ethiopia",alias:["Africa/Addis_Ababa"]},{name:"fihel",description:"Helsinki, Finland",alias:["Europe/Helsinki"]},{name:"fimhq",description:"Mariehamn, \xc5land, Finland",alias:["Europe/Mariehamn"]},{name:"fjsuv",description:"Fiji",alias:["Pacific/Fiji"]},{name:"fkpsy",description:"Stanley, Falkland Islands",alias:["Atlantic/Stanley"]},{name:"fmksa",description:"Kosrae, Micronesia",alias:["Pacific/Kosrae"]},{name:"fmpni",description:"Pohnpei, Micronesia",alias:["Pacific/Ponape","Pacific/Pohnpei"]},{name:"fmtkk",description:"Chuuk, Micronesia",alias:["Pacific/Truk","Pacific/Chuuk","Pacific/Yap"]},{name:"fotho",description:"Faroe Islands",alias:["Atlantic/Faeroe","Atlantic/Faroe"]},{name:"frpar",description:"Paris, France",alias:["Europe/Paris"]},{name:"galbv",description:"Libreville, Gabon",alias:["Africa/Libreville"]},{name:"gazastrp",description:"Gaza Strip, Palestinian Territories",alias:["Asia/Gaza"]},{name:"gblon",description:"London, United Kingdom",alias:["Europe/London","Europe/Belfast","GB","GB-Eire"]},{name:"gdgnd",description:"Grenada",alias:["America/Grenada"]},{name:"getbs",description:"Tbilisi, Georgia",alias:["Asia/Tbilisi"]},{name:"gfcay",description:"Cayenne, French Guiana",alias:["America/Cayenne"]},{name:"gggci",description:"Guernsey",alias:["Europe/Guernsey"]},{name:"ghacc",description:"Accra, Ghana",alias:["Africa/Accra"]},{name:"gigib",description:"Gibraltar",alias:["Europe/Gibraltar"]},{name:"gldkshvn",description:"Danmarkshavn, Greenland",alias:["America/Danmarkshavn"]},{name:"glgoh",description:"Nuuk (Godth\xe5b), Greenland",alias:["America/Godthab","America/Nuuk"]},{name:"globy",description:"Ittoqqortoormiit (Scoresbysund), Greenland",alias:["America/Scoresbysund"]},{name:"glthu",description:"Qaanaaq (Thule), Greenland",alias:["America/Thule"]},{name:"gmbjl",description:"Banjul, Gambia",alias:["Africa/Banjul"]},{name:"gmt",description:"Greenwich Mean Time",alias:["Etc/GMT","Etc/GMT+0","Etc/GMT-0","Etc/GMT0","Etc/Greenwich","GMT","GMT+0","GMT-0","GMT0","Greenwich"]},{name:"gncky",description:"Conakry, Guinea",alias:["Africa/Conakry"]},{name:"gpbbr",description:"Guadeloupe",alias:["America/Guadeloupe"]},{name:"gpmsb",description:"Marigot, Saint Martin",alias:["America/Marigot"]},{name:"gpsbh",description:"Saint Barth\xe9lemy",alias:["America/St_Barthelemy"]},{name:"gqssg",description:"Malabo, Equatorial Guinea",alias:["Africa/Malabo"]},{name:"grath",description:"Athens, Greece",alias:["Europe/Athens"]},{name:"gsgrv",description:"South Georgia and the South Sandwich Islands",alias:["Atlantic/South_Georgia"]},{name:"gtgua",description:"Guatemala",alias:["America/Guatemala"]},{name:"gugum",description:"Guam",alias:["Pacific/Guam"]},{name:"gwoxb",description:"Bissau, Guinea-Bissau",alias:["Africa/Bissau"]},{name:"gygeo",description:"Guyana",alias:["America/Guyana"]},{name:"hebron",description:"West Bank, Palestinian Territories",alias:["Asia/Hebron"]},{name:"hkhkg",description:"Hong Kong SAR China",alias:["Asia/Hong_Kong","Hongkong"]},{name:"hntgu",description:"Tegucigalpa, Honduras",alias:["America/Tegucigalpa"]},{name:"hrzag",description:"Zagreb, Croatia",alias:["Europe/Zagreb"]},{name:"htpap",description:"Port-au-Prince, Haiti",alias:["America/Port-au-Prince"]},{name:"hubud",description:"Budapest, Hungary",alias:["Europe/Budapest"]},{name:"iddjj",description:"Jayapura, Indonesia",alias:["Asia/Jayapura"]},{name:"idjkt",description:"Jakarta, Indonesia",alias:["Asia/Jakarta"]},{name:"idmak",description:"Makassar, Indonesia",alias:["Asia/Makassar","Asia/Ujung_Pandang"]},{name:"idpnk",description:"Pontianak, Indonesia",alias:["Asia/Pontianak"]},{name:"iedub",description:"Dublin, Ireland",alias:["Europe/Dublin","Eire"]},{name:"imdgs",description:"Isle of Man",alias:["Europe/Isle_of_Man"]},{name:"inccu",description:"Kolkata, India",alias:["Asia/Calcutta","Asia/Kolkata"]},{name:"iodga",description:"Chagos Archipelago",alias:["Indian/Chagos"]},{name:"iqbgw",description:"Baghdad, Iraq",alias:["Asia/Baghdad"]},{name:"irthr",description:"Tehran, Iran",alias:["Asia/Tehran","Iran"]},{name:"isrey",description:"Reykjavik, Iceland",alias:["Atlantic/Reykjavik","Iceland"]},{name:"itrom",description:"Rome, Italy",alias:["Europe/Rome"]},{name:"jeruslm",description:"Jerusalem",alias:["Asia/Jerusalem","Asia/Tel_Aviv","Israel"]},{name:"jesth",description:"Jersey",alias:["Europe/Jersey"]},{name:"jmkin",description:"Jamaica",alias:["America/Jamaica","Jamaica"]},{name:"joamm",description:"Amman, Jordan",alias:["Asia/Amman"]},{name:"jptyo",description:"Tokyo, Japan",alias:["Asia/Tokyo","Japan"]},{name:"kenbo",description:"Nairobi, Kenya",alias:["Africa/Nairobi"]},{name:"kgfru",description:"Bishkek, Kyrgyzstan",alias:["Asia/Bishkek"]},{name:"khpnh",description:"Phnom Penh, Cambodia",alias:["Asia/Phnom_Penh"]},{name:"kicxi",description:"Kiritimati, Kiribati",alias:["Pacific/Kiritimati"]},{name:"kipho",description:"Enderbury Island, Kiribati",alias:["Pacific/Enderbury"]},{name:"kitrw",description:"Tarawa, Kiribati",alias:["Pacific/Tarawa"]},{name:"kmyva",description:"Comoros",alias:["Indian/Comoro"]},{name:"knbas",description:"Saint Kitts",alias:["America/St_Kitts"]},{name:"kpfnj",description:"Pyongyang, North Korea",alias:["Asia/Pyongyang"]},{name:"krsel",description:"Seoul, South Korea",alias:["Asia/Seoul","ROK"]},{name:"kwkwi",description:"Kuwait",alias:["Asia/Kuwait"]},{name:"kygec",description:"Cayman Islands",alias:["America/Cayman"]},{name:"kzaau",description:"Aqtau, Kazakhstan",alias:["Asia/Aqtau"]},{name:"kzakx",description:"Aqtobe, Kazakhstan",alias:["Asia/Aqtobe"]},{name:"kzala",description:"Almaty, Kazakhstan",alias:["Asia/Almaty"]},{name:"kzguw",description:"Atyrau (Guryev), Kazakhstan",alias:["Asia/Atyrau"]},{name:"kzksn",description:"Qostanay (Kostanay), Kazakhstan",alias:["Asia/Qostanay"]},{name:"kzkzo",description:"Kyzylorda, Kazakhstan",alias:["Asia/Qyzylorda"]},{name:"kzura",description:"Oral, Kazakhstan",alias:["Asia/Oral"]},{name:"lavte",description:"Vientiane, Laos",alias:["Asia/Vientiane"]},{name:"lbbey",description:"Beirut, Lebanon",alias:["Asia/Beirut"]},{name:"lccas",description:"Saint Lucia",alias:["America/St_Lucia"]},{name:"livdz",description:"Vaduz, Liechtenstein",alias:["Europe/Vaduz"]},{name:"lkcmb",description:"Colombo, Sri Lanka",alias:["Asia/Colombo"]},{name:"lrmlw",description:"Monrovia, Liberia",alias:["Africa/Monrovia"]},{name:"lsmsu",description:"Maseru, Lesotho",alias:["Africa/Maseru"]},{name:"ltvno",description:"Vilnius, Lithuania",alias:["Europe/Vilnius"]},{name:"lulux",description:"Luxembourg",alias:["Europe/Luxembourg"]},{name:"lvrix",description:"Riga, Latvia",alias:["Europe/Riga"]},{name:"lytip",description:"Tripoli, Libya",alias:["Africa/Tripoli","Libya"]},{name:"macas",description:"Casablanca, Morocco",alias:["Africa/Casablanca"]},{name:"mcmon",description:"Monaco",alias:["Europe/Monaco"]},{name:"mdkiv",description:"Chi\u015fin\u0103u, Moldova",alias:["Europe/Chisinau","Europe/Tiraspol"]},{name:"metgd",description:"Podgorica, Montenegro",alias:["Europe/Podgorica"]},{name:"mgtnr",description:"Antananarivo, Madagascar",alias:["Indian/Antananarivo"]},{name:"mhkwa",description:"Kwajalein, Marshall Islands",alias:["Pacific/Kwajalein","Kwajalein"]},{name:"mhmaj",description:"Majuro, Marshall Islands",alias:["Pacific/Majuro"]},{name:"mkskp",description:"Skopje, Macedonia",alias:["Europe/Skopje"]},{name:"mlbko",description:"Bamako, Mali",alias:["Africa/Bamako","Africa/Timbuktu"]},{name:"mmrgn",description:"Yangon (Rangoon), Burma",alias:["Asia/Rangoon","Asia/Yangon"]},{name:"mncoq",description:"Choibalsan, Mongolia",alias:["Asia/Choibalsan"]},{name:"mnhvd",description:"Khovd (Hovd), Mongolia",alias:["Asia/Hovd"]},{name:"mnuln",description:"Ulaanbaatar (Ulan Bator), Mongolia",alias:["Asia/Ulaanbaatar","Asia/Ulan_Bator"]},{name:"momfm",description:"Macau SAR China",alias:["Asia/Macau","Asia/Macao"]},{name:"mpspn",description:"Saipan, Northern Mariana Islands",alias:["Pacific/Saipan"]},{name:"mqfdf",description:"Martinique",alias:["America/Martinique"]},{name:"mrnkc",description:"Nouakchott, Mauritania",alias:["Africa/Nouakchott"]},{name:"msmni",description:"Montserrat",alias:["America/Montserrat"]},{name:"mst7mdt",description:"POSIX style time zone for US Mountain Time",alias:["MST7MDT"]},{name:"mtmla",description:"Malta",alias:["Europe/Malta"]},{name:"muplu",description:"Mauritius",alias:["Indian/Mauritius"]},{name:"mvmle",description:"Maldives",alias:["Indian/Maldives"]},{name:"mwblz",description:"Blantyre, Malawi",alias:["Africa/Blantyre"]},{name:"mxchi",description:"Chihuahua, Mexico",alias:["America/Chihuahua"]},{name:"mxcun",description:"Canc\xfan, Mexico",alias:["America/Cancun"]},{name:"mxhmo",description:"Hermosillo, Mexico",alias:["America/Hermosillo"]},{name:"mxmam",description:"Matamoros, Mexico",alias:["America/Matamoros"]},{name:"mxmex",description:"Mexico City, Mexico",alias:["America/Mexico_City","Mexico/General"]},{name:"mxmid",description:"M\xe9rida, Mexico",alias:["America/Merida"]},{name:"mxmty",description:"Monterrey, Mexico",alias:["America/Monterrey"]},{name:"mxmzt",description:"Mazatl\xe1n, Mexico",alias:["America/Mazatlan","Mexico/BajaSur"]},{name:"mxoji",description:"Ojinaga, Mexico",alias:["America/Ojinaga"]},{name:"mxpvr",description:"Bah\xeda de Banderas, Mexico",alias:["America/Bahia_Banderas"]},{name:"mxstis",description:"Santa Isabel (Baja California), Mexico",alias:["America/Santa_Isabel"]},{name:"mxtij",description:"Tijuana, Mexico",alias:["America/Tijuana","America/Ensenada","Mexico/BajaNorte"]},{name:"mykch",description:"Kuching, Malaysia",alias:["Asia/Kuching"]},{name:"mykul",description:"Kuala Lumpur, Malaysia",alias:["Asia/Kuala_Lumpur"]},{name:"mzmpm",description:"Maputo, Mozambique",alias:["Africa/Maputo"]},{name:"nawdh",description:"Windhoek, Namibia",alias:["Africa/Windhoek"]},{name:"ncnou",description:"Noumea, New Caledonia",alias:["Pacific/Noumea"]},{name:"nenim",description:"Niamey, Niger",alias:["Africa/Niamey"]},{name:"nfnlk",description:"Norfolk Island",alias:["Pacific/Norfolk"]},{name:"nglos",description:"Lagos, Nigeria",alias:["Africa/Lagos"]},{name:"nimga",description:"Managua, Nicaragua",alias:["America/Managua"]},{name:"nlams",description:"Amsterdam, Netherlands",alias:["Europe/Amsterdam"]},{name:"noosl",description:"Oslo, Norway",alias:["Europe/Oslo"]},{name:"npktm",description:"Kathmandu, Nepal",alias:["Asia/Katmandu","Asia/Kathmandu"]},{name:"nrinu",description:"Nauru",alias:["Pacific/Nauru"]},{name:"nuiue",description:"Niue",alias:["Pacific/Niue"]},{name:"nzakl",description:"Auckland, New Zealand",alias:["Pacific/Auckland","Antarctica/South_Pole","NZ"]},{name:"nzcht",description:"Chatham Islands, New Zealand",alias:["Pacific/Chatham","NZ-CHAT"]},{name:"ommct",description:"Muscat, Oman",alias:["Asia/Muscat"]},{name:"papty",description:"Panama",alias:["America/Panama"]},{name:"pelim",description:"Lima, Peru",alias:["America/Lima"]},{name:"pfgmr",description:"Gambiera Islands, French Polynesia",alias:["Pacific/Gambier"]},{name:"pfnhv",description:"Marquesas Islands, French Polynesia",alias:["Pacific/Marquesas"]},{name:"pfppt",description:"Tahiti, French Polynesia",alias:["Pacific/Tahiti"]},{name:"pgpom",description:"Port Moresby, Papua New Guinea",alias:["Pacific/Port_Moresby"]},{name:"pgraw",description:"Bougainville, Papua New Guinea",alias:["Pacific/Bougainville"]},{name:"phmnl",description:"Manila, Philippines",alias:["Asia/Manila"]},{name:"pkkhi",description:"Karachi, Pakistan",alias:["Asia/Karachi"]},{name:"plwaw",description:"Warsaw, Poland",alias:["Europe/Warsaw","Poland"]},{name:"pmmqc",description:"Saint Pierre and Miquelon",alias:["America/Miquelon"]},{name:"pnpcn",description:"Pitcairn Islands",alias:["Pacific/Pitcairn"]},{name:"prsju",description:"Puerto Rico",alias:["America/Puerto_Rico"]},{name:"pst8pdt",description:"POSIX style time zone for US Pacific Time",alias:["PST8PDT"]},{name:"ptfnc",description:"Madeira, Portugal",alias:["Atlantic/Madeira"]},{name:"ptlis",description:"Lisbon, Portugal",alias:["Europe/Lisbon","Portugal"]},{name:"ptpdl",description:"Azores, Portugal",alias:["Atlantic/Azores"]},{name:"pwror",description:"Palau",alias:["Pacific/Palau"]},{name:"pyasu",description:"Asunci\xf3n, Paraguay",alias:["America/Asuncion"]},{name:"qadoh",description:"Qatar",alias:["Asia/Qatar"]},{name:"rereu",description:"R\xe9union",alias:["Indian/Reunion"]},{name:"robuh",description:"Bucharest, Romania",alias:["Europe/Bucharest"]},{name:"rsbeg",description:"Belgrade, Serbia",alias:["Europe/Belgrade"]},{name:"ruasf",description:"Astrakhan, Russia",alias:["Europe/Astrakhan"]},{name:"rubax",description:"Barnaul, Russia",alias:["Asia/Barnaul"]},{name:"ruchita",description:"Chita Zabaykalsky, Russia",alias:["Asia/Chita"]},{name:"rudyr",description:"Anadyr, Russia",alias:["Asia/Anadyr"]},{name:"rugdx",description:"Magadan, Russia",alias:["Asia/Magadan"]},{name:"ruikt",description:"Irkutsk, Russia",alias:["Asia/Irkutsk"]},{name:"rukgd",description:"Kaliningrad, Russia",alias:["Europe/Kaliningrad"]},{name:"rukhndg",description:"Khandyga Tomponsky, Russia",alias:["Asia/Khandyga"]},{name:"rukra",description:"Krasnoyarsk, Russia",alias:["Asia/Krasnoyarsk"]},{name:"rukuf",description:"Samara, Russia",alias:["Europe/Samara"]},{name:"rukvx",description:"Kirov, Russia",alias:["Europe/Kirov"]},{name:"rumow",description:"Moscow, Russia",alias:["Europe/Moscow","W-SU"]},{name:"runoz",description:"Novokuznetsk, Russia",alias:["Asia/Novokuznetsk"]},{name:"ruoms",description:"Omsk, Russia",alias:["Asia/Omsk"]},{name:"ruovb",description:"Novosibirsk, Russia",alias:["Asia/Novosibirsk"]},{name:"rupkc",description:"Kamchatka Peninsula, Russia",alias:["Asia/Kamchatka"]},{name:"rurtw",description:"Saratov, Russia",alias:["Europe/Saratov"]},{name:"rusred",description:"Srednekolymsk, Russia",alias:["Asia/Srednekolymsk"]},{name:"rutof",description:"Tomsk, Russia",alias:["Asia/Tomsk"]},{name:"ruuly",description:"Ulyanovsk, Russia",alias:["Europe/Ulyanovsk"]},{name:"ruunera",description:"Ust-Nera Oymyakonsky, Russia",alias:["Asia/Ust-Nera"]},{name:"ruuus",description:"Sakhalin, Russia",alias:["Asia/Sakhalin"]},{name:"ruvog",description:"Volgograd, Russia",alias:["Europe/Volgograd"]},{name:"ruvvo",description:"Vladivostok, Russia",alias:["Asia/Vladivostok"]},{name:"ruyek",description:"Yekaterinburg, Russia",alias:["Asia/Yekaterinburg"]},{name:"ruyks",description:"Yakutsk, Russia",alias:["Asia/Yakutsk"]},{name:"rwkgl",description:"Kigali, Rwanda",alias:["Africa/Kigali"]},{name:"saruh",description:"Riyadh, Saudi Arabia",alias:["Asia/Riyadh"]},{name:"sbhir",description:"Guadalcanal, Solomon Islands",alias:["Pacific/Guadalcanal"]},{name:"scmaw",description:"Mah\xe9, Seychelles",alias:["Indian/Mahe"]},{name:"sdkrt",description:"Khartoum, Sudan",alias:["Africa/Khartoum"]},{name:"sesto",description:"Stockholm, Sweden",alias:["Europe/Stockholm"]},{name:"sgsin",description:"Singapore",alias:["Asia/Singapore","Singapore"]},{name:"shshn",description:"Saint Helena",alias:["Atlantic/St_Helena"]},{name:"silju",description:"Ljubljana, Slovenia",alias:["Europe/Ljubljana"]},{name:"sjlyr",description:"Longyearbyen, Svalbard",alias:["Arctic/Longyearbyen","Atlantic/Jan_Mayen"]},{name:"skbts",description:"Bratislava, Slovakia",alias:["Europe/Bratislava"]},{name:"slfna",description:"Freetown, Sierra Leone",alias:["Africa/Freetown"]},{name:"smsai",description:"San Marino",alias:["Europe/San_Marino"]},{name:"sndkr",description:"Dakar, Senegal",alias:["Africa/Dakar"]},{name:"somgq",description:"Mogadishu, Somalia",alias:["Africa/Mogadishu"]},{name:"srpbm",description:"Paramaribo, Suriname",alias:["America/Paramaribo"]},{name:"ssjub",description:"Juba, South Sudan",alias:["Africa/Juba"]},{name:"sttms",description:"S\xe3o Tom\xe9, S\xe3o Tom\xe9 and Pr\xedncipe",alias:["Africa/Sao_Tome"]},{name:"svsal",description:"El Salvador",alias:["America/El_Salvador"]},{name:"sxphi",description:"Sint Maarten",alias:["America/Lower_Princes"]},{name:"sydam",description:"Damascus, Syria",alias:["Asia/Damascus"]},{name:"szqmn",description:"Mbabane, Swaziland",alias:["Africa/Mbabane"]},{name:"tcgdt",description:"Grand Turk, Turks and Caicos Islands",alias:["America/Grand_Turk"]},{name:"tdndj",description:"N'Djamena, Chad",alias:["Africa/Ndjamena"]},{name:"tfpfr",description:"Kerguelen Islands, French Southern Territories",alias:["Indian/Kerguelen"]},{name:"tglfw",description:"Lom\xe9, Togo",alias:["Africa/Lome"]},{name:"thbkk",description:"Bangkok, Thailand",alias:["Asia/Bangkok"]},{name:"tjdyu",description:"Dushanbe, Tajikistan",alias:["Asia/Dushanbe"]},{name:"tkfko",description:"Fakaofo, Tokelau",alias:["Pacific/Fakaofo"]},{name:"tldil",description:"Dili, East Timor",alias:["Asia/Dili"]},{name:"tmasb",description:"Ashgabat, Turkmenistan",alias:["Asia/Ashgabat","Asia/Ashkhabad"]},{name:"tntun",description:"Tunis, Tunisia",alias:["Africa/Tunis"]},{name:"totbu",description:"Tongatapu, Tonga",alias:["Pacific/Tongatapu"]},{name:"trist",description:"Istanbul, Turkey",alias:["Europe/Istanbul","Asia/Istanbul","Turkey"]},{name:"ttpos",description:"Port of Spain, Trinidad and Tobago",alias:["America/Port_of_Spain"]},{name:"tvfun",description:"Funafuti, Tuvalu",alias:["Pacific/Funafuti"]},{name:"twtpe",description:"Taipei, Taiwan",alias:["Asia/Taipei","ROC"]},{name:"tzdar",description:"Dar es Salaam, Tanzania",alias:["Africa/Dar_es_Salaam"]},{name:"uaiev",description:"Kiev, Ukraine",alias:["Europe/Kiev"]},{name:"uaozh",description:"Zaporizhia (Zaporozhye), Ukraine",alias:["Europe/Zaporozhye"]},{name:"uasip",description:"Simferopol, Ukraine",alias:["Europe/Simferopol"]},{name:"uauzh",description:"Uzhhorod (Uzhgorod), Ukraine",alias:["Europe/Uzhgorod"]},{name:"ugkla",description:"Kampala, Uganda",alias:["Africa/Kampala"]},{name:"umawk",description:"Wake Island, U.S. Minor Outlying Islands",alias:["Pacific/Wake"]},{name:"umjon",description:"Johnston Atoll, U.S. Minor Outlying Islands",alias:["Pacific/Johnston"]},{name:"ummdy",description:"Midway Islands, U.S. Minor Outlying Islands",alias:["Pacific/Midway"]},{name:"unk",description:"Unknown time zone",alias:["Etc/Unknown"]},{name:"usadk",description:"Adak (Alaska), United States",alias:["America/Adak","America/Atka","US/Aleutian"]},{name:"usaeg",description:"Marengo (Indiana), United States",alias:["America/Indiana/Marengo"]},{name:"usanc",description:"Anchorage, United States",alias:["America/Anchorage","US/Alaska"]},{name:"usboi",description:"Boise (Idaho), United States",alias:["America/Boise"]},{name:"uschi",description:"Chicago, United States",alias:["America/Chicago","US/Central"]},{name:"usden",description:"Denver, United States",alias:["America/Denver","America/Shiprock","Navajo","US/Mountain"]},{name:"usdet",description:"Detroit, United States",alias:["America/Detroit","US/Michigan"]},{name:"ushnl",description:"Honolulu, United States",alias:["Pacific/Honolulu","US/Hawaii"]},{name:"usind",description:"Indianapolis, United States",alias:["America/Indianapolis","America/Fort_Wayne","America/Indiana/Indianapolis","US/East-Indiana"]},{name:"usinvev",description:"Vevay (Indiana), United States",alias:["America/Indiana/Vevay"]},{name:"usjnu",description:"Juneau (Alaska), United States",alias:["America/Juneau"]},{name:"usknx",description:"Knox (Indiana), United States",alias:["America/Indiana/Knox","America/Knox_IN","US/Indiana-Starke"]},{name:"uslax",description:"Los Angeles, United States",alias:["America/Los_Angeles","US/Pacific","US/Pacific-New"]},{name:"uslui",description:"Louisville (Kentucky), United States",alias:["America/Louisville","America/Kentucky/Louisville"]},{name:"usmnm",description:"Menominee (Michigan), United States",alias:["America/Menominee"]},{name:"usmtm",description:"Metlakatla (Alaska), United States",alias:["America/Metlakatla"]},{name:"usmoc",description:"Monticello (Kentucky), United States",alias:["America/Kentucky/Monticello"]},{name:"usndcnt",description:"Center (North Dakota), United States",alias:["America/North_Dakota/Center"]},{name:"usndnsl",description:"New Salem (North Dakota), United States",alias:["America/North_Dakota/New_Salem"]},{name:"usnyc",description:"New York, United States",alias:["America/New_York","US/Eastern"]},{name:"usoea",description:"Vincennes (Indiana), United States",alias:["America/Indiana/Vincennes"]},{name:"usome",description:"Nome (Alaska), United States",alias:["America/Nome"]},{name:"usphx",description:"Phoenix, United States",alias:["America/Phoenix","US/Arizona"]},{name:"ussit",description:"Sitka (Alaska), United States",alias:["America/Sitka"]},{name:"ustel",description:"Tell City (Indiana), United States",alias:["America/Indiana/Tell_City"]},{name:"uswlz",description:"Winamac (Indiana), United States",alias:["America/Indiana/Winamac"]},{name:"uswsq",description:"Petersburg (Indiana), United States",alias:["America/Indiana/Petersburg"]},{name:"usxul",description:"Beulah (North Dakota), United States",alias:["America/North_Dakota/Beulah"]},{name:"usyak",description:"Yakutat (Alaska), United States",alias:["America/Yakutat"]},{name:"utc",description:"UTC (Coordinated Universal Time)",alias:["Etc/UTC","Etc/UCT","Etc/Universal","Etc/Zulu","UCT","UTC","Universal","Zulu"]},{name:"utce01",description:"1 hour ahead of UTC",alias:["Etc/GMT-1"]},{name:"utce02",description:"2 hours ahead of UTC",alias:["Etc/GMT-2"]},{name:"utce03",description:"3 hours ahead of UTC",alias:["Etc/GMT-3"]},{name:"utce04",description:"4 hours ahead of UTC",alias:["Etc/GMT-4"]},{name:"utce05",description:"5 hours ahead of UTC",alias:["Etc/GMT-5"]},{name:"utce06",description:"6 hours ahead of UTC",alias:["Etc/GMT-6"]},{name:"utce07",description:"7 hours ahead of UTC",alias:["Etc/GMT-7"]},{name:"utce08",description:"8 hours ahead of UTC",alias:["Etc/GMT-8"]},{name:"utce09",description:"9 hours ahead of UTC",alias:["Etc/GMT-9"]},{name:"utce10",description:"10 hours ahead of UTC",alias:["Etc/GMT-10"]},{name:"utce11",description:"11 hours ahead of UTC",alias:["Etc/GMT-11"]},{name:"utce12",description:"12 hours ahead of UTC",alias:["Etc/GMT-12"]},{name:"utce13",description:"13 hours ahead of UTC",alias:["Etc/GMT-13"]},{name:"utce14",description:"14 hours ahead of UTC",alias:["Etc/GMT-14"]},{name:"utcw01",description:"1 hour behind UTC",alias:["Etc/GMT+1"]},{name:"utcw02",description:"2 hours behind UTC",alias:["Etc/GMT+2"]},{name:"utcw03",description:"3 hours behind UTC",alias:["Etc/GMT+3"]},{name:"utcw04",description:"4 hours behind UTC",alias:["Etc/GMT+4"]},{name:"utcw05",description:"5 hours behind UTC",alias:["Etc/GMT+5","EST"]},{name:"utcw06",description:"6 hours behind UTC",alias:["Etc/GMT+6"]},{name:"utcw07",description:"7 hours behind UTC",alias:["Etc/GMT+7","MST"]},{name:"utcw08",description:"8 hours behind UTC",alias:["Etc/GMT+8"]},{name:"utcw09",description:"9 hours behind UTC",alias:["Etc/GMT+9"]},{name:"utcw10",description:"10 hours behind UTC",alias:["Etc/GMT+10","HST"]},{name:"utcw11",description:"11 hours behind UTC",alias:["Etc/GMT+11"]},{name:"utcw12",description:"12 hours behind UTC",alias:["Etc/GMT+12"]},{name:"uymvd",description:"Montevideo, Uruguay",alias:["America/Montevideo"]},{name:"uzskd",description:"Samarkand, Uzbekistan",alias:["Asia/Samarkand"]},{name:"uztas",description:"Tashkent, Uzbekistan",alias:["Asia/Tashkent"]},{name:"vavat",description:"Vatican City",alias:["Europe/Vatican"]},{name:"vcsvd",description:"Saint Vincent, Saint Vincent and the Grenadines",alias:["America/St_Vincent"]},{name:"veccs",description:"Caracas, Venezuela",alias:["America/Caracas"]},{name:"vgtov",description:"Tortola, British Virgin Islands",alias:["America/Tortola"]},{name:"vistt",description:"Saint Thomas, U.S. Virgin Islands",alias:["America/St_Thomas","America/Virgin"]},{name:"vnsgn",description:"Ho Chi Minh City, Vietnam",alias:["Asia/Saigon","Asia/Ho_Chi_Minh"]},{name:"vuvli",description:"Efate, Vanuatu",alias:["Pacific/Efate"]},{name:"wfmau",description:"Wallis Islands, Wallis and Futuna",alias:["Pacific/Wallis"]},{name:"wsapw",description:"Apia, Samoa",alias:["Pacific/Apia"]},{name:"yeade",description:"Aden, Yemen",alias:["Asia/Aden"]},{name:"ytmam",description:"Mayotte",alias:["Indian/Mayotte"]},{name:"zajnb",description:"Johannesburg, South Africa",alias:["Africa/Johannesburg"]},{name:"zmlun",description:"Lusaka, Zambia",alias:["Africa/Lusaka"]},{name:"zwhre",description:"Harare, Zimbabwe",alias:["Africa/Harare"]}],z7=[{windowsName:"Dateline Standard Time",territory:"001",iana:["Etc/GMT+12"]},{windowsName:"Dateline Standard Time",territory:"ZZ",iana:["Etc/GMT+12"]},{windowsName:"UTC-11",territory:"001",iana:["Etc/GMT+11"]},{windowsName:"UTC-11",territory:"AS",iana:["Pacific/Pago_Pago"]},{windowsName:"UTC-11",territory:"NU",iana:["Pacific/Niue"]},{windowsName:"UTC-11",territory:"UM",iana:["Pacific/Midway"]},{windowsName:"UTC-11",territory:"ZZ",iana:["Etc/GMT+11"]},{windowsName:"Aleutian Standard Time",territory:"001",iana:["America/Adak"]},{windowsName:"Aleutian Standard Time",territory:"US",iana:["America/Adak"]},{windowsName:"Hawaiian Standard Time",territory:"001",iana:["Pacific/Honolulu"]},{windowsName:"Hawaiian Standard Time",territory:"CK",iana:["Pacific/Rarotonga"]},{windowsName:"Hawaiian Standard Time",territory:"PF",iana:["Pacific/Tahiti"]},{windowsName:"Hawaiian Standard Time",territory:"UM",iana:["Pacific/Johnston"]},{windowsName:"Hawaiian Standard Time",territory:"US",iana:["Pacific/Honolulu"]},{windowsName:"Hawaiian Standard Time",territory:"ZZ",iana:["Etc/GMT+10"]},{windowsName:"Marquesas Standard Time",territory:"001",iana:["Pacific/Marquesas"]},{windowsName:"Marquesas Standard Time",territory:"PF",iana:["Pacific/Marquesas"]},{windowsName:"Alaskan Standard Time",territory:"001",iana:["America/Anchorage"]},{windowsName:"Alaskan Standard Time",territory:"US",iana:["America/Anchorage","America/Juneau","America/Metlakatla","America/Nome","America/Sitka","America/Yakutat"]},{windowsName:"UTC-09",territory:"001",iana:["Etc/GMT+9"]},{windowsName:"UTC-09",territory:"PF",iana:["Pacific/Gambier"]},{windowsName:"UTC-09",territory:"ZZ",iana:["Etc/GMT+9"]},{windowsName:"Pacific Standard Time (Mexico)",territory:"001",iana:["America/Tijuana"]},{windowsName:"Pacific Standard Time (Mexico)",territory:"MX",iana:["America/Tijuana","America/Santa_Isabel"]},{windowsName:"UTC-08",territory:"001",iana:["Etc/GMT+8"]},{windowsName:"UTC-08",territory:"PN",iana:["Pacific/Pitcairn"]},{windowsName:"UTC-08",territory:"ZZ",iana:["Etc/GMT+8"]},{windowsName:"Pacific Standard Time",territory:"001",iana:["America/Los_Angeles"]},{windowsName:"Pacific Standard Time",territory:"CA",iana:["America/Vancouver"]},{windowsName:"Pacific Standard Time",territory:"US",iana:["America/Los_Angeles"]},{windowsName:"Pacific Standard Time",territory:"ZZ",iana:["PST8PDT"]},{windowsName:"US Mountain Standard Time",territory:"001",iana:["America/Phoenix"]},{windowsName:"US Mountain Standard Time",territory:"CA",iana:["America/Creston","America/Dawson_Creek","America/Fort_Nelson"]},{windowsName:"US Mountain Standard Time",territory:"MX",iana:["America/Hermosillo"]},{windowsName:"US Mountain Standard Time",territory:"US",iana:["America/Phoenix"]},{windowsName:"US Mountain Standard Time",territory:"ZZ",iana:["Etc/GMT+7"]},{windowsName:"Mountain Standard Time (Mexico)",territory:"001",iana:["America/Chihuahua"]},{windowsName:"Mountain Standard Time (Mexico)",territory:"MX",iana:["America/Chihuahua","America/Mazatlan"]},{windowsName:"Mountain Standard Time",territory:"001",iana:["America/Denver"]},{windowsName:"Mountain Standard Time",territory:"CA",iana:["America/Edmonton","America/Cambridge_Bay","America/Inuvik","America/Yellowknife"]},{windowsName:"Mountain Standard Time",territory:"MX",iana:["America/Ojinaga"]},{windowsName:"Mountain Standard Time",territory:"US",iana:["America/Denver","America/Boise"]},{windowsName:"Mountain Standard Time",territory:"ZZ",iana:["MST7MDT"]},{windowsName:"Yukon Standard Time",territory:"001",iana:["America/Whitehorse"]},{windowsName:"Yukon Standard Time",territory:"CA",iana:["America/Whitehorse","America/Dawson"]},{windowsName:"Central America Standard Time",territory:"001",iana:["America/Guatemala"]},{windowsName:"Central America Standard Time",territory:"BZ",iana:["America/Belize"]},{windowsName:"Central America Standard Time",territory:"CR",iana:["America/Costa_Rica"]},{windowsName:"Central America Standard Time",territory:"EC",iana:["Pacific/Galapagos"]},{windowsName:"Central America Standard Time",territory:"GT",iana:["America/Guatemala"]},{windowsName:"Central America Standard Time",territory:"HN",iana:["America/Tegucigalpa"]},{windowsName:"Central America Standard Time",territory:"NI",iana:["America/Managua"]},{windowsName:"Central America Standard Time",territory:"SV",iana:["America/El_Salvador"]},{windowsName:"Central America Standard Time",territory:"ZZ",iana:["Etc/GMT+6"]},{windowsName:"Central Standard Time",territory:"001",iana:["America/Chicago"]},{windowsName:"Central Standard Time",territory:"CA",iana:["America/Winnipeg","America/Rainy_River","America/Rankin_Inlet","America/Resolute"]},{windowsName:"Central Standard Time",territory:"MX",iana:["America/Matamoros"]},{windowsName:"Central Standard Time",territory:"US",iana:["America/Chicago","America/Indiana/Knox","America/Indiana/Tell_City","America/Menominee","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem"]},{windowsName:"Central Standard Time",territory:"ZZ",iana:["CST6CDT"]},{windowsName:"Easter Island Standard Time",territory:"001",iana:["Pacific/Easter"]},{windowsName:"Easter Island Standard Time",territory:"CL",iana:["Pacific/Easter"]},{windowsName:"Central Standard Time (Mexico)",territory:"001",iana:["America/Mexico_City"]},{windowsName:"Central Standard Time (Mexico)",territory:"MX",iana:["America/Mexico_City","America/Bahia_Banderas","America/Merida","America/Monterrey"]},{windowsName:"Canada Central Standard Time",territory:"001",iana:["America/Regina"]},{windowsName:"Canada Central Standard Time",territory:"CA",iana:["America/Regina","America/Swift_Current"]},{windowsName:"SA Pacific Standard Time",territory:"001",iana:["America/Bogota"]},{windowsName:"SA Pacific Standard Time",territory:"BR",iana:["America/Rio_Branco","America/Eirunepe"]},{windowsName:"SA Pacific Standard Time",territory:"CA",iana:["America/Coral_Harbour"]},{windowsName:"SA Pacific Standard Time",territory:"CO",iana:["America/Bogota"]},{windowsName:"SA Pacific Standard Time",territory:"EC",iana:["America/Guayaquil"]},{windowsName:"SA Pacific Standard Time",territory:"JM",iana:["America/Jamaica"]},{windowsName:"SA Pacific Standard Time",territory:"KY",iana:["America/Cayman"]},{windowsName:"SA Pacific Standard Time",territory:"PA",iana:["America/Panama"]},{windowsName:"SA Pacific Standard Time",territory:"PE",iana:["America/Lima"]},{windowsName:"SA Pacific Standard Time",territory:"ZZ",iana:["Etc/GMT+5"]},{windowsName:"Eastern Standard Time (Mexico)",territory:"001",iana:["America/Cancun"]},{windowsName:"Eastern Standard Time (Mexico)",territory:"MX",iana:["America/Cancun"]},{windowsName:"Eastern Standard Time",territory:"001",iana:["America/New_York"]},{windowsName:"Eastern Standard Time",territory:"BS",iana:["America/Nassau"]},{windowsName:"Eastern Standard Time",territory:"CA",iana:["America/Toronto","America/Iqaluit","America/Montreal","America/Nipigon","America/Pangnirtung","America/Thunder_Bay"]},{windowsName:"Eastern Standard Time",territory:"US",iana:["America/New_York","America/Detroit","America/Indiana/Petersburg","America/Indiana/Vincennes","America/Indiana/Winamac","America/Kentucky/Monticello","America/Louisville"]},{windowsName:"Eastern Standard Time",territory:"ZZ",iana:["EST5EDT"]},{windowsName:"Haiti Standard Time",territory:"001",iana:["America/Port-au-Prince"]},{windowsName:"Haiti Standard Time",territory:"HT",iana:["America/Port-au-Prince"]},{windowsName:"Cuba Standard Time",territory:"001",iana:["America/Havana"]},{windowsName:"Cuba Standard Time",territory:"CU",iana:["America/Havana"]},{windowsName:"US Eastern Standard Time",territory:"001",iana:["America/Indianapolis"]},{windowsName:"US Eastern Standard Time",territory:"US",iana:["America/Indianapolis","America/Indiana/Marengo","America/Indiana/Vevay"]},{windowsName:"Turks And Caicos Standard Time",territory:"001",iana:["America/Grand_Turk"]},{windowsName:"Turks And Caicos Standard Time",territory:"TC",iana:["America/Grand_Turk"]},{windowsName:"Paraguay Standard Time",territory:"001",iana:["America/Asuncion"]},{windowsName:"Paraguay Standard Time",territory:"PY",iana:["America/Asuncion"]},{windowsName:"Atlantic Standard Time",territory:"001",iana:["America/Halifax"]},{windowsName:"Atlantic Standard Time",territory:"BM",iana:["Atlantic/Bermuda"]},{windowsName:"Atlantic Standard Time",territory:"CA",iana:["America/Halifax","America/Glace_Bay","America/Goose_Bay","America/Moncton"]},{windowsName:"Atlantic Standard Time",territory:"GL",iana:["America/Thule"]},{windowsName:"Venezuela Standard Time",territory:"001",iana:["America/Caracas"]},{windowsName:"Venezuela Standard Time",territory:"VE",iana:["America/Caracas"]},{windowsName:"Central Brazilian Standard Time",territory:"001",iana:["America/Cuiaba"]},{windowsName:"Central Brazilian Standard Time",territory:"BR",iana:["America/Cuiaba","America/Campo_Grande"]},{windowsName:"SA Western Standard Time",territory:"001",iana:["America/La_Paz"]},{windowsName:"SA Western Standard Time",territory:"AG",iana:["America/Antigua"]},{windowsName:"SA Western Standard Time",territory:"AI",iana:["America/Anguilla"]},{windowsName:"SA Western Standard Time",territory:"AW",iana:["America/Aruba"]},{windowsName:"SA Western Standard Time",territory:"BB",iana:["America/Barbados"]},{windowsName:"SA Western Standard Time",territory:"BL",iana:["America/St_Barthelemy"]},{windowsName:"SA Western Standard Time",territory:"BO",iana:["America/La_Paz"]},{windowsName:"SA Western Standard Time",territory:"BQ",iana:["America/Kralendijk"]},{windowsName:"SA Western Standard Time",territory:"BR",iana:["America/Manaus","America/Boa_Vista","America/Porto_Velho"]},{windowsName:"SA Western Standard Time",territory:"CA",iana:["America/Blanc-Sablon"]},{windowsName:"SA Western Standard Time",territory:"CW",iana:["America/Curacao"]},{windowsName:"SA Western Standard Time",territory:"DM",iana:["America/Dominica"]},{windowsName:"SA Western Standard Time",territory:"DO",iana:["America/Santo_Domingo"]},{windowsName:"SA Western Standard Time",territory:"GD",iana:["America/Grenada"]},{windowsName:"SA Western Standard Time",territory:"GP",iana:["America/Guadeloupe"]},{windowsName:"SA Western Standard Time",territory:"GY",iana:["America/Guyana"]},{windowsName:"SA Western Standard Time",territory:"KN",iana:["America/St_Kitts"]},{windowsName:"SA Western Standard Time",territory:"LC",iana:["America/St_Lucia"]},{windowsName:"SA Western Standard Time",territory:"MF",iana:["America/Marigot"]},{windowsName:"SA Western Standard Time",territory:"MQ",iana:["America/Martinique"]},{windowsName:"SA Western Standard Time",territory:"MS",iana:["America/Montserrat"]},{windowsName:"SA Western Standard Time",territory:"PR",iana:["America/Puerto_Rico"]},{windowsName:"SA Western Standard Time",territory:"SX",iana:["America/Lower_Princes"]},{windowsName:"SA Western Standard Time",territory:"TT",iana:["America/Port_of_Spain"]},{windowsName:"SA Western Standard Time",territory:"VC",iana:["America/St_Vincent"]},{windowsName:"SA Western Standard Time",territory:"VG",iana:["America/Tortola"]},{windowsName:"SA Western Standard Time",territory:"VI",iana:["America/St_Thomas"]},{windowsName:"SA Western Standard Time",territory:"ZZ",iana:["Etc/GMT+4"]},{windowsName:"Pacific SA Standard Time",territory:"001",iana:["America/Santiago"]},{windowsName:"Pacific SA Standard Time",territory:"CL",iana:["America/Santiago"]},{windowsName:"Newfoundland Standard Time",territory:"001",iana:["America/St_Johns"]},{windowsName:"Newfoundland Standard Time",territory:"CA",iana:["America/St_Johns"]},{windowsName:"Tocantins Standard Time",territory:"001",iana:["America/Araguaina"]},{windowsName:"Tocantins Standard Time",territory:"BR",iana:["America/Araguaina"]},{windowsName:"E. South America Standard Time",territory:"001",iana:["America/Sao_Paulo"]},{windowsName:"E. South America Standard Time",territory:"BR",iana:["America/Sao_Paulo"]},{windowsName:"SA Eastern Standard Time",territory:"001",iana:["America/Cayenne"]},{windowsName:"SA Eastern Standard Time",territory:"AQ",iana:["Antarctica/Rothera","Antarctica/Palmer"]},{windowsName:"SA Eastern Standard Time",territory:"BR",iana:["America/Fortaleza","America/Belem","America/Maceio","America/Recife","America/Santarem"]},{windowsName:"SA Eastern Standard Time",territory:"FK",iana:["Atlantic/Stanley"]},{windowsName:"SA Eastern Standard Time",territory:"GF",iana:["America/Cayenne"]},{windowsName:"SA Eastern Standard Time",territory:"SR",iana:["America/Paramaribo"]},{windowsName:"SA Eastern Standard Time",territory:"ZZ",iana:["Etc/GMT+3"]},{windowsName:"Argentina Standard Time",territory:"001",iana:["America/Buenos_Aires"]},{windowsName:"Argentina Standard Time",territory:"AR",iana:["America/Buenos_Aires","America/Argentina/La_Rioja","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Catamarca","America/Cordoba","America/Jujuy","America/Mendoza"]},{windowsName:"Greenland Standard Time",territory:"001",iana:["America/Godthab"]},{windowsName:"Greenland Standard Time",territory:"GL",iana:["America/Godthab"]},{windowsName:"Montevideo Standard Time",territory:"001",iana:["America/Montevideo"]},{windowsName:"Montevideo Standard Time",territory:"UY",iana:["America/Montevideo"]},{windowsName:"Magallanes Standard Time",territory:"001",iana:["America/Punta_Arenas"]},{windowsName:"Magallanes Standard Time",territory:"CL",iana:["America/Punta_Arenas"]},{windowsName:"Saint Pierre Standard Time",territory:"001",iana:["America/Miquelon"]},{windowsName:"Saint Pierre Standard Time",territory:"PM",iana:["America/Miquelon"]},{windowsName:"Bahia Standard Time",territory:"001",iana:["America/Bahia"]},{windowsName:"Bahia Standard Time",territory:"BR",iana:["America/Bahia"]},{windowsName:"UTC-02",territory:"001",iana:["Etc/GMT+2"]},{windowsName:"UTC-02",territory:"BR",iana:["America/Noronha"]},{windowsName:"UTC-02",territory:"GS",iana:["Atlantic/South_Georgia"]},{windowsName:"UTC-02",territory:"ZZ",iana:["Etc/GMT+2"]},{windowsName:"Azores Standard Time",territory:"001",iana:["Atlantic/Azores"]},{windowsName:"Azores Standard Time",territory:"GL",iana:["America/Scoresbysund"]},{windowsName:"Azores Standard Time",territory:"PT",iana:["Atlantic/Azores"]},{windowsName:"Cape Verde Standard Time",territory:"001",iana:["Atlantic/Cape_Verde"]},{windowsName:"Cape Verde Standard Time",territory:"CV",iana:["Atlantic/Cape_Verde"]},{windowsName:"Cape Verde Standard Time",territory:"ZZ",iana:["Etc/GMT+1"]},{windowsName:"UTC",territory:"001",iana:["Etc/UTC"]},{windowsName:"UTC",territory:"ZZ",iana:["Etc/UTC","Etc/GMT"]},{windowsName:"GMT Standard Time",territory:"001",iana:["Europe/London"]},{windowsName:"GMT Standard Time",territory:"ES",iana:["Atlantic/Canary"]},{windowsName:"GMT Standard Time",territory:"FO",iana:["Atlantic/Faeroe"]},{windowsName:"GMT Standard Time",territory:"GB",iana:["Europe/London"]},{windowsName:"GMT Standard Time",territory:"GG",iana:["Europe/Guernsey"]},{windowsName:"GMT Standard Time",territory:"IE",iana:["Europe/Dublin"]},{windowsName:"GMT Standard Time",territory:"IM",iana:["Europe/Isle_of_Man"]},{windowsName:"GMT Standard Time",territory:"JE",iana:["Europe/Jersey"]},{windowsName:"GMT Standard Time",territory:"PT",iana:["Europe/Lisbon","Atlantic/Madeira"]},{windowsName:"Greenwich Standard Time",territory:"001",iana:["Atlantic/Reykjavik"]},{windowsName:"Greenwich Standard Time",territory:"BF",iana:["Africa/Ouagadougou"]},{windowsName:"Greenwich Standard Time",territory:"CI",iana:["Africa/Abidjan"]},{windowsName:"Greenwich Standard Time",territory:"GH",iana:["Africa/Accra"]},{windowsName:"Greenwich Standard Time",territory:"GL",iana:["America/Danmarkshavn"]},{windowsName:"Greenwich Standard Time",territory:"GM",iana:["Africa/Banjul"]},{windowsName:"Greenwich Standard Time",territory:"GN",iana:["Africa/Conakry"]},{windowsName:"Greenwich Standard Time",territory:"GW",iana:["Africa/Bissau"]},{windowsName:"Greenwich Standard Time",territory:"IS",iana:["Atlantic/Reykjavik"]},{windowsName:"Greenwich Standard Time",territory:"LR",iana:["Africa/Monrovia"]},{windowsName:"Greenwich Standard Time",territory:"ML",iana:["Africa/Bamako"]},{windowsName:"Greenwich Standard Time",territory:"MR",iana:["Africa/Nouakchott"]},{windowsName:"Greenwich Standard Time",territory:"SH",iana:["Atlantic/St_Helena"]},{windowsName:"Greenwich Standard Time",territory:"SL",iana:["Africa/Freetown"]},{windowsName:"Greenwich Standard Time",territory:"SN",iana:["Africa/Dakar"]},{windowsName:"Greenwich Standard Time",territory:"TG",iana:["Africa/Lome"]},{windowsName:"Sao Tome Standard Time",territory:"001",iana:["Africa/Sao_Tome"]},{windowsName:"Sao Tome Standard Time",territory:"ST",iana:["Africa/Sao_Tome"]},{windowsName:"Morocco Standard Time",territory:"001",iana:["Africa/Casablanca"]},{windowsName:"Morocco Standard Time",territory:"EH",iana:["Africa/El_Aaiun"]},{windowsName:"Morocco Standard Time",territory:"MA",iana:["Africa/Casablanca"]},{windowsName:"W. Europe Standard Time",territory:"001",iana:["Europe/Berlin"]},{windowsName:"W. Europe Standard Time",territory:"AD",iana:["Europe/Andorra"]},{windowsName:"W. Europe Standard Time",territory:"AT",iana:["Europe/Vienna"]},{windowsName:"W. Europe Standard Time",territory:"CH",iana:["Europe/Zurich"]},{windowsName:"W. Europe Standard Time",territory:"DE",iana:["Europe/Berlin","Europe/Busingen"]},{windowsName:"W. Europe Standard Time",territory:"GI",iana:["Europe/Gibraltar"]},{windowsName:"W. Europe Standard Time",territory:"IT",iana:["Europe/Rome"]},{windowsName:"W. Europe Standard Time",territory:"LI",iana:["Europe/Vaduz"]},{windowsName:"W. Europe Standard Time",territory:"LU",iana:["Europe/Luxembourg"]},{windowsName:"W. Europe Standard Time",territory:"MC",iana:["Europe/Monaco"]},{windowsName:"W. Europe Standard Time",territory:"MT",iana:["Europe/Malta"]},{windowsName:"W. Europe Standard Time",territory:"NL",iana:["Europe/Amsterdam"]},{windowsName:"W. Europe Standard Time",territory:"NO",iana:["Europe/Oslo"]},{windowsName:"W. Europe Standard Time",territory:"SE",iana:["Europe/Stockholm"]},{windowsName:"W. Europe Standard Time",territory:"SJ",iana:["Arctic/Longyearbyen"]},{windowsName:"W. Europe Standard Time",territory:"SM",iana:["Europe/San_Marino"]},{windowsName:"W. Europe Standard Time",territory:"VA",iana:["Europe/Vatican"]},{windowsName:"Central Europe Standard Time",territory:"001",iana:["Europe/Budapest"]},{windowsName:"Central Europe Standard Time",territory:"AL",iana:["Europe/Tirane"]},{windowsName:"Central Europe Standard Time",territory:"CZ",iana:["Europe/Prague"]},{windowsName:"Central Europe Standard Time",territory:"HU",iana:["Europe/Budapest"]},{windowsName:"Central Europe Standard Time",territory:"ME",iana:["Europe/Podgorica"]},{windowsName:"Central Europe Standard Time",territory:"RS",iana:["Europe/Belgrade"]},{windowsName:"Central Europe Standard Time",territory:"SI",iana:["Europe/Ljubljana"]},{windowsName:"Central Europe Standard Time",territory:"SK",iana:["Europe/Bratislava"]},{windowsName:"Romance Standard Time",territory:"001",iana:["Europe/Paris"]},{windowsName:"Romance Standard Time",territory:"BE",iana:["Europe/Brussels"]},{windowsName:"Romance Standard Time",territory:"DK",iana:["Europe/Copenhagen"]},{windowsName:"Romance Standard Time",territory:"ES",iana:["Europe/Madrid","Africa/Ceuta"]},{windowsName:"Romance Standard Time",territory:"FR",iana:["Europe/Paris"]},{windowsName:"Central European Standard Time",territory:"001",iana:["Europe/Warsaw"]},{windowsName:"Central European Standard Time",territory:"BA",iana:["Europe/Sarajevo"]},{windowsName:"Central European Standard Time",territory:"HR",iana:["Europe/Zagreb"]},{windowsName:"Central European Standard Time",territory:"MK",iana:["Europe/Skopje"]},{windowsName:"Central European Standard Time",territory:"PL",iana:["Europe/Warsaw"]},{windowsName:"W. Central Africa Standard Time",territory:"001",iana:["Africa/Lagos"]},{windowsName:"W. Central Africa Standard Time",territory:"AO",iana:["Africa/Luanda"]},{windowsName:"W. Central Africa Standard Time",territory:"BJ",iana:["Africa/Porto-Novo"]},{windowsName:"W. Central Africa Standard Time",territory:"CD",iana:["Africa/Kinshasa"]},{windowsName:"W. Central Africa Standard Time",territory:"CF",iana:["Africa/Bangui"]},{windowsName:"W. Central Africa Standard Time",territory:"CG",iana:["Africa/Brazzaville"]},{windowsName:"W. Central Africa Standard Time",territory:"CM",iana:["Africa/Douala"]},{windowsName:"W. Central Africa Standard Time",territory:"DZ",iana:["Africa/Algiers"]},{windowsName:"W. Central Africa Standard Time",territory:"GA",iana:["Africa/Libreville"]},{windowsName:"W. Central Africa Standard Time",territory:"GQ",iana:["Africa/Malabo"]},{windowsName:"W. Central Africa Standard Time",territory:"NE",iana:["Africa/Niamey"]},{windowsName:"W. Central Africa Standard Time",territory:"NG",iana:["Africa/Lagos"]},{windowsName:"W. Central Africa Standard Time",territory:"TD",iana:["Africa/Ndjamena"]},{windowsName:"W. Central Africa Standard Time",territory:"TN",iana:["Africa/Tunis"]},{windowsName:"W. Central Africa Standard Time",territory:"ZZ",iana:["Etc/GMT-1"]},{windowsName:"Jordan Standard Time",territory:"001",iana:["Asia/Amman"]},{windowsName:"Jordan Standard Time",territory:"JO",iana:["Asia/Amman"]},{windowsName:"GTB Standard Time",territory:"001",iana:["Europe/Bucharest"]},{windowsName:"GTB Standard Time",territory:"CY",iana:["Asia/Nicosia","Asia/Famagusta"]},{windowsName:"GTB Standard Time",territory:"GR",iana:["Europe/Athens"]},{windowsName:"GTB Standard Time",territory:"RO",iana:["Europe/Bucharest"]},{windowsName:"Middle East Standard Time",territory:"001",iana:["Asia/Beirut"]},{windowsName:"Middle East Standard Time",territory:"LB",iana:["Asia/Beirut"]},{windowsName:"Egypt Standard Time",territory:"001",iana:["Africa/Cairo"]},{windowsName:"Egypt Standard Time",territory:"EG",iana:["Africa/Cairo"]},{windowsName:"E. Europe Standard Time",territory:"001",iana:["Europe/Chisinau"]},{windowsName:"E. Europe Standard Time",territory:"MD",iana:["Europe/Chisinau"]},{windowsName:"Syria Standard Time",territory:"001",iana:["Asia/Damascus"]},{windowsName:"Syria Standard Time",territory:"SY",iana:["Asia/Damascus"]},{windowsName:"West Bank Standard Time",territory:"001",iana:["Asia/Hebron"]},{windowsName:"West Bank Standard Time",territory:"PS",iana:["Asia/Hebron","Asia/Gaza"]},{windowsName:"South Africa Standard Time",territory:"001",iana:["Africa/Johannesburg"]},{windowsName:"South Africa Standard Time",territory:"BI",iana:["Africa/Bujumbura"]},{windowsName:"South Africa Standard Time",territory:"BW",iana:["Africa/Gaborone"]},{windowsName:"South Africa Standard Time",territory:"CD",iana:["Africa/Lubumbashi"]},{windowsName:"South Africa Standard Time",territory:"LS",iana:["Africa/Maseru"]},{windowsName:"South Africa Standard Time",territory:"MW",iana:["Africa/Blantyre"]},{windowsName:"South Africa Standard Time",territory:"MZ",iana:["Africa/Maputo"]},{windowsName:"South Africa Standard Time",territory:"RW",iana:["Africa/Kigali"]},{windowsName:"South Africa Standard Time",territory:"SZ",iana:["Africa/Mbabane"]},{windowsName:"South Africa Standard Time",territory:"ZA",iana:["Africa/Johannesburg"]},{windowsName:"South Africa Standard Time",territory:"ZM",iana:["Africa/Lusaka"]},{windowsName:"South Africa Standard Time",territory:"ZW",iana:["Africa/Harare"]},{windowsName:"South Africa Standard Time",territory:"ZZ",iana:["Etc/GMT-2"]},{windowsName:"FLE Standard Time",territory:"001",iana:["Europe/Kiev"]},{windowsName:"FLE Standard Time",territory:"AX",iana:["Europe/Mariehamn"]},{windowsName:"FLE Standard Time",territory:"BG",iana:["Europe/Sofia"]},{windowsName:"FLE Standard Time",territory:"EE",iana:["Europe/Tallinn"]},{windowsName:"FLE Standard Time",territory:"FI",iana:["Europe/Helsinki"]},{windowsName:"FLE Standard Time",territory:"LT",iana:["Europe/Vilnius"]},{windowsName:"FLE Standard Time",territory:"LV",iana:["Europe/Riga"]},{windowsName:"FLE Standard Time",territory:"UA",iana:["Europe/Kiev","Europe/Uzhgorod","Europe/Zaporozhye"]},{windowsName:"Israel Standard Time",territory:"001",iana:["Asia/Jerusalem"]},{windowsName:"Israel Standard Time",territory:"IL",iana:["Asia/Jerusalem"]},{windowsName:"South Sudan Standard Time",territory:"001",iana:["Africa/Juba"]},{windowsName:"South Sudan Standard Time",territory:"SS",iana:["Africa/Juba"]},{windowsName:"Kaliningrad Standard Time",territory:"001",iana:["Europe/Kaliningrad"]},{windowsName:"Kaliningrad Standard Time",territory:"RU",iana:["Europe/Kaliningrad"]},{windowsName:"Sudan Standard Time",territory:"001",iana:["Africa/Khartoum"]},{windowsName:"Sudan Standard Time",territory:"SD",iana:["Africa/Khartoum"]},{windowsName:"Libya Standard Time",territory:"001",iana:["Africa/Tripoli"]},{windowsName:"Libya Standard Time",territory:"LY",iana:["Africa/Tripoli"]},{windowsName:"Namibia Standard Time",territory:"001",iana:["Africa/Windhoek"]},{windowsName:"Namibia Standard Time",territory:"NA",iana:["Africa/Windhoek"]},{windowsName:"Arabic Standard Time",territory:"001",iana:["Asia/Baghdad"]},{windowsName:"Arabic Standard Time",territory:"IQ",iana:["Asia/Baghdad"]},{windowsName:"Turkey Standard Time",territory:"001",iana:["Europe/Istanbul"]},{windowsName:"Turkey Standard Time",territory:"TR",iana:["Europe/Istanbul"]},{windowsName:"Arab Standard Time",territory:"001",iana:["Asia/Riyadh"]},{windowsName:"Arab Standard Time",territory:"BH",iana:["Asia/Bahrain"]},{windowsName:"Arab Standard Time",territory:"KW",iana:["Asia/Kuwait"]},{windowsName:"Arab Standard Time",territory:"QA",iana:["Asia/Qatar"]},{windowsName:"Arab Standard Time",territory:"SA",iana:["Asia/Riyadh"]},{windowsName:"Arab Standard Time",territory:"YE",iana:["Asia/Aden"]},{windowsName:"Belarus Standard Time",territory:"001",iana:["Europe/Minsk"]},{windowsName:"Belarus Standard Time",territory:"BY",iana:["Europe/Minsk"]},{windowsName:"Russian Standard Time",territory:"001",iana:["Europe/Moscow"]},{windowsName:"Russian Standard Time",territory:"RU",iana:["Europe/Moscow","Europe/Kirov"]},{windowsName:"Russian Standard Time",territory:"UA",iana:["Europe/Simferopol"]},{windowsName:"E. Africa Standard Time",territory:"001",iana:["Africa/Nairobi"]},{windowsName:"E. Africa Standard Time",territory:"AQ",iana:["Antarctica/Syowa"]},{windowsName:"E. Africa Standard Time",territory:"DJ",iana:["Africa/Djibouti"]},{windowsName:"E. Africa Standard Time",territory:"ER",iana:["Africa/Asmera"]},{windowsName:"E. Africa Standard Time",territory:"ET",iana:["Africa/Addis_Ababa"]},{windowsName:"E. Africa Standard Time",territory:"KE",iana:["Africa/Nairobi"]},{windowsName:"E. Africa Standard Time",territory:"KM",iana:["Indian/Comoro"]},{windowsName:"E. Africa Standard Time",territory:"MG",iana:["Indian/Antananarivo"]},{windowsName:"E. Africa Standard Time",territory:"SO",iana:["Africa/Mogadishu"]},{windowsName:"E. Africa Standard Time",territory:"TZ",iana:["Africa/Dar_es_Salaam"]},{windowsName:"E. Africa Standard Time",territory:"UG",iana:["Africa/Kampala"]},{windowsName:"E. Africa Standard Time",territory:"YT",iana:["Indian/Mayotte"]},{windowsName:"E. Africa Standard Time",territory:"ZZ",iana:["Etc/GMT-3"]},{windowsName:"Iran Standard Time",territory:"001",iana:["Asia/Tehran"]},{windowsName:"Iran Standard Time",territory:"IR",iana:["Asia/Tehran"]},{windowsName:"Arabian Standard Time",territory:"001",iana:["Asia/Dubai"]},{windowsName:"Arabian Standard Time",territory:"AE",iana:["Asia/Dubai"]},{windowsName:"Arabian Standard Time",territory:"OM",iana:["Asia/Muscat"]},{windowsName:"Arabian Standard Time",territory:"ZZ",iana:["Etc/GMT-4"]},{windowsName:"Astrakhan Standard Time",territory:"001",iana:["Europe/Astrakhan"]},{windowsName:"Astrakhan Standard Time",territory:"RU",iana:["Europe/Astrakhan","Europe/Ulyanovsk"]},{windowsName:"Azerbaijan Standard Time",territory:"001",iana:["Asia/Baku"]},{windowsName:"Azerbaijan Standard Time",territory:"AZ",iana:["Asia/Baku"]},{windowsName:"Russia Time Zone 3",territory:"001",iana:["Europe/Samara"]},{windowsName:"Russia Time Zone 3",territory:"RU",iana:["Europe/Samara"]},{windowsName:"Mauritius Standard Time",territory:"001",iana:["Indian/Mauritius"]},{windowsName:"Mauritius Standard Time",territory:"MU",iana:["Indian/Mauritius"]},{windowsName:"Mauritius Standard Time",territory:"RE",iana:["Indian/Reunion"]},{windowsName:"Mauritius Standard Time",territory:"SC",iana:["Indian/Mahe"]},{windowsName:"Saratov Standard Time",territory:"001",iana:["Europe/Saratov"]},{windowsName:"Saratov Standard Time",territory:"RU",iana:["Europe/Saratov"]},{windowsName:"Georgian Standard Time",territory:"001",iana:["Asia/Tbilisi"]},{windowsName:"Georgian Standard Time",territory:"GE",iana:["Asia/Tbilisi"]},{windowsName:"Volgograd Standard Time",territory:"001",iana:["Europe/Volgograd"]},{windowsName:"Volgograd Standard Time",territory:"RU",iana:["Europe/Volgograd"]},{windowsName:"Caucasus Standard Time",territory:"001",iana:["Asia/Yerevan"]},{windowsName:"Caucasus Standard Time",territory:"AM",iana:["Asia/Yerevan"]},{windowsName:"Afghanistan Standard Time",territory:"001",iana:["Asia/Kabul"]},{windowsName:"Afghanistan Standard Time",territory:"AF",iana:["Asia/Kabul"]},{windowsName:"West Asia Standard Time",territory:"001",iana:["Asia/Tashkent"]},{windowsName:"West Asia Standard Time",territory:"AQ",iana:["Antarctica/Mawson"]},{windowsName:"West Asia Standard Time",territory:"KZ",iana:["Asia/Oral","Asia/Aqtau","Asia/Aqtobe","Asia/Atyrau"]},{windowsName:"West Asia Standard Time",territory:"MV",iana:["Indian/Maldives"]},{windowsName:"West Asia Standard Time",territory:"TF",iana:["Indian/Kerguelen"]},{windowsName:"West Asia Standard Time",territory:"TJ",iana:["Asia/Dushanbe"]},{windowsName:"West Asia Standard Time",territory:"TM",iana:["Asia/Ashgabat"]},{windowsName:"West Asia Standard Time",territory:"UZ",iana:["Asia/Tashkent","Asia/Samarkand"]},{windowsName:"West Asia Standard Time",territory:"ZZ",iana:["Etc/GMT-5"]},{windowsName:"Ekaterinburg Standard Time",territory:"001",iana:["Asia/Yekaterinburg"]},{windowsName:"Ekaterinburg Standard Time",territory:"RU",iana:["Asia/Yekaterinburg"]},{windowsName:"Pakistan Standard Time",territory:"001",iana:["Asia/Karachi"]},{windowsName:"Pakistan Standard Time",territory:"PK",iana:["Asia/Karachi"]},{windowsName:"Qyzylorda Standard Time",territory:"001",iana:["Asia/Qyzylorda"]},{windowsName:"Qyzylorda Standard Time",territory:"KZ",iana:["Asia/Qyzylorda"]},{windowsName:"India Standard Time",territory:"001",iana:["Asia/Calcutta"]},{windowsName:"India Standard Time",territory:"IN",iana:["Asia/Calcutta"]},{windowsName:"Sri Lanka Standard Time",territory:"001",iana:["Asia/Colombo"]},{windowsName:"Sri Lanka Standard Time",territory:"LK",iana:["Asia/Colombo"]},{windowsName:"Nepal Standard Time",territory:"001",iana:["Asia/Katmandu"]},{windowsName:"Nepal Standard Time",territory:"NP",iana:["Asia/Katmandu"]},{windowsName:"Central Asia Standard Time",territory:"001",iana:["Asia/Almaty"]},{windowsName:"Central Asia Standard Time",territory:"AQ",iana:["Antarctica/Vostok"]},{windowsName:"Central Asia Standard Time",territory:"CN",iana:["Asia/Urumqi"]},{windowsName:"Central Asia Standard Time",territory:"IO",iana:["Indian/Chagos"]},{windowsName:"Central Asia Standard Time",territory:"KG",iana:["Asia/Bishkek"]},{windowsName:"Central Asia Standard Time",territory:"KZ",iana:["Asia/Almaty","Asia/Qostanay"]},{windowsName:"Central Asia Standard Time",territory:"ZZ",iana:["Etc/GMT-6"]},{windowsName:"Bangladesh Standard Time",territory:"001",iana:["Asia/Dhaka"]},{windowsName:"Bangladesh Standard Time",territory:"BD",iana:["Asia/Dhaka"]},{windowsName:"Bangladesh Standard Time",territory:"BT",iana:["Asia/Thimphu"]},{windowsName:"Omsk Standard Time",territory:"001",iana:["Asia/Omsk"]},{windowsName:"Omsk Standard Time",territory:"RU",iana:["Asia/Omsk"]},{windowsName:"Myanmar Standard Time",territory:"001",iana:["Asia/Rangoon"]},{windowsName:"Myanmar Standard Time",territory:"CC",iana:["Indian/Cocos"]},{windowsName:"Myanmar Standard Time",territory:"MM",iana:["Asia/Rangoon"]},{windowsName:"SE Asia Standard Time",territory:"001",iana:["Asia/Bangkok"]},{windowsName:"SE Asia Standard Time",territory:"AQ",iana:["Antarctica/Davis"]},{windowsName:"SE Asia Standard Time",territory:"CX",iana:["Indian/Christmas"]},{windowsName:"SE Asia Standard Time",territory:"ID",iana:["Asia/Jakarta","Asia/Pontianak"]},{windowsName:"SE Asia Standard Time",territory:"KH",iana:["Asia/Phnom_Penh"]},{windowsName:"SE Asia Standard Time",territory:"LA",iana:["Asia/Vientiane"]},{windowsName:"SE Asia Standard Time",territory:"TH",iana:["Asia/Bangkok"]},{windowsName:"SE Asia Standard Time",territory:"VN",iana:["Asia/Saigon"]},{windowsName:"SE Asia Standard Time",territory:"ZZ",iana:["Etc/GMT-7"]},{windowsName:"Altai Standard Time",territory:"001",iana:["Asia/Barnaul"]},{windowsName:"Altai Standard Time",territory:"RU",iana:["Asia/Barnaul"]},{windowsName:"W. Mongolia Standard Time",territory:"001",iana:["Asia/Hovd"]},{windowsName:"W. Mongolia Standard Time",territory:"MN",iana:["Asia/Hovd"]},{windowsName:"North Asia Standard Time",territory:"001",iana:["Asia/Krasnoyarsk"]},{windowsName:"North Asia Standard Time",territory:"RU",iana:["Asia/Krasnoyarsk","Asia/Novokuznetsk"]},{windowsName:"N. Central Asia Standard Time",territory:"001",iana:["Asia/Novosibirsk"]},{windowsName:"N. Central Asia Standard Time",territory:"RU",iana:["Asia/Novosibirsk"]},{windowsName:"Tomsk Standard Time",territory:"001",iana:["Asia/Tomsk"]},{windowsName:"Tomsk Standard Time",territory:"RU",iana:["Asia/Tomsk"]},{windowsName:"China Standard Time",territory:"001",iana:["Asia/Shanghai"]},{windowsName:"China Standard Time",territory:"CN",iana:["Asia/Shanghai"]},{windowsName:"China Standard Time",territory:"HK",iana:["Asia/Hong_Kong"]},{windowsName:"China Standard Time",territory:"MO",iana:["Asia/Macau"]},{windowsName:"North Asia East Standard Time",territory:"001",iana:["Asia/Irkutsk"]},{windowsName:"North Asia East Standard Time",territory:"RU",iana:["Asia/Irkutsk"]},{windowsName:"Singapore Standard Time",territory:"001",iana:["Asia/Singapore"]},{windowsName:"Singapore Standard Time",territory:"BN",iana:["Asia/Brunei"]},{windowsName:"Singapore Standard Time",territory:"ID",iana:["Asia/Makassar"]},{windowsName:"Singapore Standard Time",territory:"MY",iana:["Asia/Kuala_Lumpur","Asia/Kuching"]},{windowsName:"Singapore Standard Time",territory:"PH",iana:["Asia/Manila"]},{windowsName:"Singapore Standard Time",territory:"SG",iana:["Asia/Singapore"]},{windowsName:"Singapore Standard Time",territory:"ZZ",iana:["Etc/GMT-8"]},{windowsName:"W. Australia Standard Time",territory:"001",iana:["Australia/Perth"]},{windowsName:"W. Australia Standard Time",territory:"AU",iana:["Australia/Perth"]},{windowsName:"Taipei Standard Time",territory:"001",iana:["Asia/Taipei"]},{windowsName:"Taipei Standard Time",territory:"TW",iana:["Asia/Taipei"]},{windowsName:"Ulaanbaatar Standard Time",territory:"001",iana:["Asia/Ulaanbaatar"]},{windowsName:"Ulaanbaatar Standard Time",territory:"MN",iana:["Asia/Ulaanbaatar","Asia/Choibalsan"]},{windowsName:"Aus Central W. Standard Time",territory:"001",iana:["Australia/Eucla"]},{windowsName:"Aus Central W. Standard Time",territory:"AU",iana:["Australia/Eucla"]},{windowsName:"Transbaikal Standard Time",territory:"001",iana:["Asia/Chita"]},{windowsName:"Transbaikal Standard Time",territory:"RU",iana:["Asia/Chita"]},{windowsName:"Tokyo Standard Time",territory:"001",iana:["Asia/Tokyo"]},{windowsName:"Tokyo Standard Time",territory:"ID",iana:["Asia/Jayapura"]},{windowsName:"Tokyo Standard Time",territory:"JP",iana:["Asia/Tokyo"]},{windowsName:"Tokyo Standard Time",territory:"PW",iana:["Pacific/Palau"]},{windowsName:"Tokyo Standard Time",territory:"TL",iana:["Asia/Dili"]},{windowsName:"Tokyo Standard Time",territory:"ZZ",iana:["Etc/GMT-9"]},{windowsName:"North Korea Standard Time",territory:"001",iana:["Asia/Pyongyang"]},{windowsName:"North Korea Standard Time",territory:"KP",iana:["Asia/Pyongyang"]},{windowsName:"Korea Standard Time",territory:"001",iana:["Asia/Seoul"]},{windowsName:"Korea Standard Time",territory:"KR",iana:["Asia/Seoul"]},{windowsName:"Yakutsk Standard Time",territory:"001",iana:["Asia/Yakutsk"]},{windowsName:"Yakutsk Standard Time",territory:"RU",iana:["Asia/Yakutsk","Asia/Khandyga"]},{windowsName:"Cen. Australia Standard Time",territory:"001",iana:["Australia/Adelaide"]},{windowsName:"Cen. Australia Standard Time",territory:"AU",iana:["Australia/Adelaide","Australia/Broken_Hill"]},{windowsName:"AUS Central Standard Time",territory:"001",iana:["Australia/Darwin"]},{windowsName:"AUS Central Standard Time",territory:"AU",iana:["Australia/Darwin"]},{windowsName:"E. Australia Standard Time",territory:"001",iana:["Australia/Brisbane"]},{windowsName:"E. Australia Standard Time",territory:"AU",iana:["Australia/Brisbane","Australia/Lindeman"]},{windowsName:"AUS Eastern Standard Time",territory:"001",iana:["Australia/Sydney"]},{windowsName:"AUS Eastern Standard Time",territory:"AU",iana:["Australia/Sydney","Australia/Melbourne"]},{windowsName:"West Pacific Standard Time",territory:"001",iana:["Pacific/Port_Moresby"]},{windowsName:"West Pacific Standard Time",territory:"AQ",iana:["Antarctica/DumontDUrville"]},{windowsName:"West Pacific Standard Time",territory:"FM",iana:["Pacific/Truk"]},{windowsName:"West Pacific Standard Time",territory:"GU",iana:["Pacific/Guam"]},{windowsName:"West Pacific Standard Time",territory:"MP",iana:["Pacific/Saipan"]},{windowsName:"West Pacific Standard Time",territory:"PG",iana:["Pacific/Port_Moresby"]},{windowsName:"West Pacific Standard Time",territory:"ZZ",iana:["Etc/GMT-10"]},{windowsName:"Tasmania Standard Time",territory:"001",iana:["Australia/Hobart"]},{windowsName:"Tasmania Standard Time",territory:"AU",iana:["Australia/Hobart","Australia/Currie","Antarctica/Macquarie"]},{windowsName:"Vladivostok Standard Time",territory:"001",iana:["Asia/Vladivostok"]},{windowsName:"Vladivostok Standard Time",territory:"RU",iana:["Asia/Vladivostok","Asia/Ust-Nera"]},{windowsName:"Lord Howe Standard Time",territory:"001",iana:["Australia/Lord_Howe"]},{windowsName:"Lord Howe Standard Time",territory:"AU",iana:["Australia/Lord_Howe"]},{windowsName:"Bougainville Standard Time",territory:"001",iana:["Pacific/Bougainville"]},{windowsName:"Bougainville Standard Time",territory:"PG",iana:["Pacific/Bougainville"]},{windowsName:"Russia Time Zone 10",territory:"001",iana:["Asia/Srednekolymsk"]},{windowsName:"Russia Time Zone 10",territory:"RU",iana:["Asia/Srednekolymsk"]},{windowsName:"Magadan Standard Time",territory:"001",iana:["Asia/Magadan"]},{windowsName:"Magadan Standard Time",territory:"RU",iana:["Asia/Magadan"]},{windowsName:"Norfolk Standard Time",territory:"001",iana:["Pacific/Norfolk"]},{windowsName:"Norfolk Standard Time",territory:"NF",iana:["Pacific/Norfolk"]},{windowsName:"Sakhalin Standard Time",territory:"001",iana:["Asia/Sakhalin"]},{windowsName:"Sakhalin Standard Time",territory:"RU",iana:["Asia/Sakhalin"]},{windowsName:"Central Pacific Standard Time",territory:"001",iana:["Pacific/Guadalcanal"]},{windowsName:"Central Pacific Standard Time",territory:"AQ",iana:["Antarctica/Casey"]},{windowsName:"Central Pacific Standard Time",territory:"FM",iana:["Pacific/Ponape","Pacific/Kosrae"]},{windowsName:"Central Pacific Standard Time",territory:"NC",iana:["Pacific/Noumea"]},{windowsName:"Central Pacific Standard Time",territory:"SB",iana:["Pacific/Guadalcanal"]},{windowsName:"Central Pacific Standard Time",territory:"VU",iana:["Pacific/Efate"]},{windowsName:"Central Pacific Standard Time",territory:"ZZ",iana:["Etc/GMT-11"]},{windowsName:"Russia Time Zone 11",territory:"001",iana:["Asia/Kamchatka"]},{windowsName:"Russia Time Zone 11",territory:"RU",iana:["Asia/Kamchatka","Asia/Anadyr"]},{windowsName:"New Zealand Standard Time",territory:"001",iana:["Pacific/Auckland"]},{windowsName:"New Zealand Standard Time",territory:"AQ",iana:["Antarctica/McMurdo"]},{windowsName:"New Zealand Standard Time",territory:"NZ",iana:["Pacific/Auckland"]},{windowsName:"UTC+12",territory:"001",iana:["Etc/GMT-12"]},{windowsName:"UTC+12",territory:"KI",iana:["Pacific/Tarawa"]},{windowsName:"UTC+12",territory:"MH",iana:["Pacific/Majuro","Pacific/Kwajalein"]},{windowsName:"UTC+12",territory:"NR",iana:["Pacific/Nauru"]},{windowsName:"UTC+12",territory:"TV",iana:["Pacific/Funafuti"]},{windowsName:"UTC+12",territory:"UM",iana:["Pacific/Wake"]},{windowsName:"UTC+12",territory:"WF",iana:["Pacific/Wallis"]},{windowsName:"UTC+12",territory:"ZZ",iana:["Etc/GMT-12"]},{windowsName:"Fiji Standard Time",territory:"001",iana:["Pacific/Fiji"]},{windowsName:"Fiji Standard Time",territory:"FJ",iana:["Pacific/Fiji"]},{windowsName:"Chatham Islands Standard Time",territory:"001",iana:["Pacific/Chatham"]},{windowsName:"Chatham Islands Standard Time",territory:"NZ",iana:["Pacific/Chatham"]},{windowsName:"UTC+13",territory:"001",iana:["Etc/GMT-13"]},{windowsName:"UTC+13",territory:"KI",iana:["Pacific/Enderbury"]},{windowsName:"UTC+13",territory:"TK",iana:["Pacific/Fakaofo"]},{windowsName:"UTC+13",territory:"ZZ",iana:["Etc/GMT-13"]},{windowsName:"Tonga Standard Time",territory:"001",iana:["Pacific/Tongatapu"]},{windowsName:"Tonga Standard Time",territory:"TO",iana:["Pacific/Tongatapu"]},{windowsName:"Samoa Standard Time",territory:"001",iana:["Pacific/Apia"]},{windowsName:"Samoa Standard Time",territory:"WS",iana:["Pacific/Apia"]},{windowsName:"Line Islands Standard Time",territory:"001",iana:["Pacific/Kiritimati"]},{windowsName:"Line Islands Standard Time",territory:"KI",iana:["Pacific/Kiritimati"]},{windowsName:"Line Islands Standard Time",territory:"ZZ",iana:["Etc/GMT-14"]}];function V7(e){var t=new Set;return B7.filter((function(t){return t.alias.includes(e)})).map((function(e){return e.alias})).flat().forEach((function(e){t.add(e)})),Array.from(t)}function W7(e,t){var n=new Set;return z7.filter((function(n){return"undefined"===typeof t?n.windowsName===e:n.windowsName===e&&n.territory===t})).map((function(e){return e.iana})).flat().map(V7).flat().forEach((function(e){n.add(e)})),Array.from(n)}const U7=cb((e=>({root:{[e.breakpoints.down("md")]:{width:"100%"},justifyContent:"space-between",width:"100%",display:"flex",flexDirection:"column"},error:{color:e.palette.error.main},image:{maxWidth:"200px",height:"auto",margin:"10px",display:"flex",justifyContent:"center"},imageContainer:{display:"flex"},copy:{color:e.palette.primary.copy}})));function $7(t){let{openModal:n,client:r,setShowSignifier:a,setResponseMessage:i,setShowError:o,setTableData:s,eventModel:l,includeinActive:c,setEventModel:u}=t;var d=new Date;const p=U7(),[h,f]=(0,e.useState)(!1),[m,g]=(0,e.useState)(!1),[v,y]=(0,e.useState)({}),[b,x]=(0,e.useState)(null),[w,S]=(0,e.useState)({}),[C,A]=(0,e.useState)([]),[k,T]=(0,e.useState)(""),[j,E]=(0,e.useState)(""),[P,N]=(0,e.useState)(""),[D,M]=(0,e.useState)(!1),[_,I]=(0,e.useState)(!1),[R,O]=(0,e.useState)(""),[L,F]=(0,e.useState)(""),[B,z]=(0,e.useState)(""),[V,W]=(0,e.useState)(""),[U,$]=(0,e.useState)(""),[H,q]=(0,e.useState)(""),[G,K]=(0,e.useState)(""),[Y,X]=(0,e.useState)(""),[Z,J]=(0,e.useState)("United States"),[Q,ee]=(0,e.useState)(""),[te,ne]=(0,e.useState)(d),[re,ae]=(0,e.useState)((new Date).setMinutes(d.getMinutes()+1)),[ie,oe]=(0,e.useState)((new Date).setMinutes(d.getMinutes()+.5)),[se,le]=(0,e.useState)(null),[ce,ue]=(0,e.useState)(""),[de,pe]=(0,e.useState)(""),[he,fe]=(0,e.useState)(null),[me,ge]=(0,e.useState)(!1);const ve=()=>{if(""===k||""===P||null==b||""===b||void 0===v.name)return!1;if(!D){if(void 0===w.name)return!1;if("+ Add New"===w.name&&(""===R||""===U||""===H||""===G||""===Y||""===Z))return!1}return("+ Add New"!==v.name||""!==j)&&!(re<=ie)};return(0,e.useEffect)((()=>{oe(new Date(te).setMinutes(te.getMinutes()+.5))}),[te]),(0,Tl.jsxs)("div",{className:p.root,children:[(0,Tl.jsx)(fU,{loading:h}),(0,Tl.jsx)(CN,{children:(0,Tl.jsx)(WM,{children:(0,Tl.jsxs)(SU,{children:[(0,Tl.jsx)(MU,{style:{fontWeight:"bold"},children:"Add Event"}),(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:4,children:[(0,Tl.jsx)(FU,{placeholder:"Title",label:"Title",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:p.copy},value:k,error:m&&""===k,onChange:e=>T(e.target.value)}),m&&""===k&&(0,Tl.jsx)(MU,{className:p.error,children:"Title Required"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:4,children:[(0,Tl.jsx)(gJ,{currValue:v,items:l.eventTypes,property:"name",title:"Type",handleChange:e=>y(e),error:m&&void 0===v.name}),m&&void 0===v.name&&(0,Tl.jsx)(MU,{className:p.error,children:"Event Type Required"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:4,children:["+ Add New"!==v.name?null:(0,Tl.jsx)(FU,{placeholder:"New Type Name",label:"New Type Name",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:p.copy},value:j,error:m&&""===j,onChange:e=>E(e.target.value)}),m&&""===k&&"+ Add New"===v.name&&(0,Tl.jsx)(MU,{className:p.error,children:"Type Name Required"})]}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(n7,{value:te,setValue:ne,error:m&&null==te,label:"Start Date"})}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:4,children:[(0,Tl.jsx)(n7,{value:re,setValue:ae,minDate:te,minTime:ie,error:re<=ie,label:"End Date"}),re<=ie&&(0,Tl.jsx)(MU,{className:p.error,children:"End Date must be after Start Date"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:4,children:[(0,Tl.jsx)(L7,{items:l.timeZonesCollection,title:"Time Zone *",handleChange:e=>x(e),currValue:b,error:m&&(null==b||""===b)}),m&&(null==b||""===b)&&(0,Tl.jsx)(MU,{className:p.error,children:"Timezone Required"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:12,children:[(0,Tl.jsx)(FU,{placeholder:"Description",label:"Description",variant:"standard",fullWidth:!0,required:!0,multiline:!0,rows:2,maxRows:80,InputProps:{className:p.copy},value:P,error:m&&""===P,onChange:e=>N(e.target.value)}),m&&""===P&&(0,Tl.jsx)(MU,{className:p.error,children:"Decription Required"})]}),(0,Tl.jsx)(CN,{xs:12,sm:12,item:!0,children:(0,Tl.jsx)($Y,{className:p.copy,control:(0,Tl.jsx)(lX,{color:"primary",checked:D,onChange:()=>M(!D)}),label:"Virtual"})}),(0,Tl.jsx)(CN,{xs:12,sm:12,item:!0,children:(0,Tl.jsx)($Y,{className:p.copy,control:(0,Tl.jsx)(lX,{color:"primary",checked:_,onChange:()=>I(!_)}),label:"Accepts RSVP"})}),D?null:(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:12,children:[(0,Tl.jsx)(gJ,{currValue:w,items:l.eventVenues,property:"name",title:"Event Venue",handleChange:e=>S(e),error:m&&null==w.name}),m&&null==w.name&&(0,Tl.jsx)(MU,{className:p.error,children:"Event Venue Required"})]}),"+ Add New"!==w.name?null:(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:6,children:[(0,Tl.jsx)(FU,{placeholder:"Venue Name",label:"Venue Name",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:p.copy},value:R,onChange:e=>O(e.target.value),error:m&&""===R}),m&&""===R&&(0,Tl.jsx)(MU,{className:p.error,children:"Venue name Required"})]}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(FU,{placeholder:"Venue Website",label:"Venue Website",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:p.copy},value:L,onChange:e=>F(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(FU,{placeholder:"Venue Email",label:"Venue Email",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:p.copy},value:B,onChange:e=>z(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(FU,{placeholder:"Venue Phone #",label:"Venue Phone #",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:p.copy},value:V,onChange:e=>W(e.target.value)})}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:12,children:[(0,Tl.jsx)(FU,{placeholder:"Venue Address",label:"Venue Address",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:p.copy},value:U,onChange:e=>$(e.target.value),error:m&&""===U}),m&&""===U&&(0,Tl.jsx)(MU,{className:p.error,children:"Venue address Required"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:3,children:[(0,Tl.jsx)(FU,{placeholder:"Venue City",label:"Venue City",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:p.copy},value:H,onChange:e=>q(e.target.value),error:m&&""===H}),m&&""===H&&(0,Tl.jsx)(MU,{className:p.error,children:"Venue city Required"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:3,children:[(0,Tl.jsx)(FU,{placeholder:"Venue State",label:"Venue State",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:p.copy},value:G,onChange:e=>K(e.target.value),error:m&&""===G}),m&&""===G&&(0,Tl.jsx)(MU,{className:p.error,children:"Venue state Required"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:3,children:[(0,Tl.jsx)(FU,{placeholder:"Venue Zip Code",label:"Venue Zip Code",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:p.copy},value:Y,onChange:e=>X(e.target.value),error:m&&""===Y}),m&&""===Y&&(0,Tl.jsx)(MU,{className:p.error,children:"Venue zipcode Required"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:3,children:[(0,Tl.jsx)(FU,{placeholder:"Venue Country",label:"Venue Country",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:p.copy},value:Z,onChange:e=>J(e.target.value),error:m&&""===Z}),m&&""===Z&&(0,Tl.jsx)(MU,{className:p.error,children:"Venue country Required"})]})]}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(FU,{placeholder:"Registration Link",label:"Registration Link",variant:"standard",fullWidth:!0,InputProps:{className:p.copy},value:Q,onChange:e=>ee(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,style:{marginTop:"2%"},xs:12,sm:12,children:"Event Image:"}),null!==he?(0,Tl.jsxs)("div",{className:p.imageContainer,children:[(0,Tl.jsx)("img",{className:p.image,src:he,alt:"Event Logo"}),(0,Tl.jsx)("div",{style:{alignSelf:"center"},children:(0,Tl.jsx)(hm,{onClick:()=>{ue(""),fe(null),le(null)},size:"large",children:(0,Tl.jsx)(qW,{})})})]}):(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsxs)("label",{htmlFor:"contained-button-file",children:[(0,Tl.jsx)(uM,{accept:"image/*",id:"contained-button-file",multiple:!0,type:"file",style:{display:"none"},onInput:e=>(e=>{if(null!=e.target.files[0]){ue(""),fe(null),le(null);var t=e.target.files[0].type;if("image/png"!==t&&"image/jpeg"!==t)return void ge(!0);var n=e.target.files[0];if(n.size/1048576>1)return void ge(!0);YZ(n,(t=>{ge(!1),le(t.split("base64,")[1]);var r="data:"+n.contentType+";base64,"+t.split("base64,")[1];fe(r),ue(e.target.files[0].name),pe(e.target.files[0].type)}))}})(e)}),(0,Tl.jsx)(vW,{variant:"contained",color:"primary",component:"span",style:{marginBottom:"10px"},children:"Upload"}),me&&null==he&&(0,Tl.jsx)(MU,{className:p.error,children:"Images must be a .PNG or .JPG file under 1MB in size."})]})}),(0,Tl.jsxs)(CN,{container:!0,justifyContent:"flex-end",direction:"row",style:{marginRight:"10px"},children:[(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{color:"#82B288",marginTop:"20px"},type:"submit",variant:"outlined",fullWidth:!0,onClick:()=>n(!1),children:"Cancel"})}),(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginLeft:"10px"},type:"submit",variant:"contained",color:"primary",fullWidth:!0,onClick:()=>function(){if(!ve())return void g(!0);var e=W7(b).at(0),t=(0,F7.zonedTimeToUtc)(te,e),l=(0,F7.zonedTimeToUtc)(re,e);let d={ClientId:r.id,EventTypeId:null===v||void 0===v?void 0:v.id,VenueId:null===w||void 0===w?void 0:w.id,IsVirtual:D,Title:k,Description:P,Image:se,ContentType:de,RegistrationLink:Q,StartDate:t,EndDate:l,HasRsvp:_,IsActive:!0,TimeZoneId:b},p={ClientId:r.id,Name:j},h={ClientId:r.id,Name:R,Address:U,City:H,Division:G,ZipCode:Y,Country:Z,Website:L,PhoneNumber:V,EmailAddress:B},m={eventData:d,typeData:void 0!==v.id?v:p,venueData:void 0!==w.id?w:h,SelectedSponsorIds:C};vU(JJ(m),"Event Added",a,i,o,f).then((()=>{XJ(r.id,c).then((e=>{var t;e.eventVenues=[{name:"+ Add New"}].concat(e.eventVenues),e.eventTypes=[{name:"+ Add New"}].concat(e.eventTypes),e.eventSponsors.forEach((e=>e.imagePath="data:"+e.contentType+";base64,"+e.logo)),null===(t=e.events)||void 0===t||t.forEach((t=>{t.displayIsActive=t.isActive?"Yes":"No",t.startDate=tV(t.startDate),t.endDate=tV(t.endDate),t.sponsors=e.eventSponsors,t.types=e.eventTypes,t.venues=e.eventVenues,t.timeZones=e.timeZonesCollection})),u(e),s(e.events),n(!1)}))}))}(),children:"Save"})})]})]})]})})})]})}const H7=function(){const t=cb((e=>({root:{width:"80%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},error:{color:e.palette.error.main}}))),n=t(),r=Oc(qC),[a,i]=(0,e.useState)(!1),[o,s]=(0,e.useState)(""),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)([]),[f,m]=(0,e.useState)(!0),[g,v]=(0,e.useState)(!1),[y,b]=(0,e.useState)(!1),[x,w]=(0,e.useState)({});return(0,e.useEffect)((()=>{m(!0),null!==r&&XJ(r.id,g).then((e=>{var t;e.eventVenues=[{name:"+ Add New"}].concat(e.eventVenues),e.eventTypes=[{name:"+ Add New"}].concat(e.eventTypes),e.eventSponsors.forEach((e=>e.imagePath="data:"+e.contentType+";base64,"+e.logo)),null===(t=e.events)||void 0===t||t.forEach((t=>{t.displayIsActive=t.isActive?"Yes":"No",t.displayHasRsvp=t.hasRsvp?"Yes":"No",t.displayRsvpLength=t.eventEventRsvpXrefs.length,t.startDate=tV(t.startDate),t.endDate=tV(t.endDate),t.sponsors=e.eventSponsors,t.types=e.eventTypes,t.venues=e.eventVenues,t.timeZones=e.timeZonesCollection})),w(e),h(e.events),m(!1)}))}),[r,g]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:a,setShowSignifier:i,message:o,error:l}),(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[r.shortName," Events"]}),(0,Tl.jsx)("div",{className:n.root,children:null===r?(0,Tl.jsx)("div",{className:n.hint,children:(0,Tl.jsx)("span",{children:"Select a client"})}):(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:12,children:[(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginBottom:"20px",marginRight:"20px"},type:"submit",variant:"contained",color:"primary",onClick:()=>b(!0),children:"Add Event"}),(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginBottom:"20px"},type:"submit",variant:"contained",color:"primary",onClick:()=>v(!g),children:g?"Exclude Inactive":"Include Inactive"})]}),(0,Tl.jsx)(GX,{columns:[{label:"Title",propName:"title"},{label:"Start Date",propName:"startDate"},{label:"End Date",propName:"endDate"},{label:"Active",propName:"displayIsActive"},{label:"Accepts RSVP",propName:"displayHasRsvp"},{label:"# of RSVP",propName:"displayRsvpLength"},{label:"Deactivate",propName:""}],tableData:p,rowComponent:tQ,loading:f,setTableData:h,defaultSortIndex:1,reverse:!0})]})}),(0,Tl.jsx)(jW,{open:y,onClose:()=>b(!1),fullWidth:!0,maxWidth:"md",children:(0,Tl.jsx)($7,{openModal:b,client:r,setShowSignifier:i,setResponseMessage:s,setShowError:c,setTableData:h,eventModel:x,setEventModel:w,includeinActive:g})})]})]})},q7=cb((e=>({rowCell:{cursor:"pointer !important",background:e.palette.primary.blue,textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},rowCellOdd:{cursor:"pointer !important",background:"white",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},image:{maxWidth:"100px",height:"auto"},tableCell:{color:e.palette.primary.copy}})));function G7(e){let{columns:t,element:n,index:r,setTableData:a}=e;const i=q7();return(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsx)(FW,{hover:!0,className:r%2?i.rowCell:i.rowCellOdd,children:t.map(((e,t)=>(0,Tl.jsx)(HW,{align:"left",className:i.tableCell,children:"RSVP Date"===e.label||"Guests"===e.label||"Guests Attended"===e.label||"Attendance Date"===e.label?n[e.propName]:n[e.propName.split(".")[0]][e.propName.split(".")[1]]},t)))},r)})}const K7=function(t){let{eventId:n}=t;const r=cb((e=>({root:{marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},cardContainer:{[e.breakpoints.down("md")]:{width:"100%",overflowY:"scroll"},width:"50%",display:"flex",flexDirection:"column",marginBottom:"20px"},error:{color:e.palette.error.main}}))),a=r(),i=Oc(qC),[o,s]=(0,e.useState)(!1),[l,c]=(0,e.useState)({numberOfGuests:"",numberOfAttendees:"",attendancePercentage:"",rsvpList:[]});return(0,e.useEffect)((()=>{null!==i&&(s(!0),(e=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/events/geteventrsvp/"+e).then((e=>e.data)))(n).then((e=>{var t;null===(t=e.rsvpList)||void 0===t||t.forEach((e=>{e.attendedOn=null!==e.attendedOn?eV(e.attendedOn):null,e.rsvpOn=null!==e.rsvpOn?eV(e.rsvpOn):null,e.eventRsvp.fullName=e.eventRsvp.firstName+" "+e.eventRsvp.lastName})),c(e),s(!1)})))}),[i]),(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsxs)("div",{className:a.root,children:[(0,Tl.jsx)(CN,{className:a.cardContainer,children:(0,Tl.jsx)(WM,{className:a.card,children:(0,Tl.jsx)(SU,{children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{xs:4,sm:4,item:!0,children:(0,Tl.jsx)(FU,{placeholder:"Total RSVP Guests",label:"Total RSVP Guests",variant:"standard",fullWidth:!0,disabled:!0,value:l.numberOfGuests})}),(0,Tl.jsx)(CN,{item:!0,xs:4,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Total Attendees",label:"Total Attendees",variant:"standard",fullWidth:!0,disabled:!0,value:l.numberOfAttendees})}),(0,Tl.jsx)(CN,{item:!0,xs:4,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Attendance Percentage",label:"Attendance Percentage",variant:"standard",fullWidth:!0,disabled:!0,InputProps:{startAdornment:(0,Tl.jsx)(B0,{position:"start",children:"%"})},value:l.attendancePercentage})})]})})})}),(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginBottom:"20px",marginRight:"20px"},type:"submit",variant:"contained",color:"primary",onClick:()=>(e=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/events/exportRsvp/"+e,{headers:{"Content-Type":"text/csv"},responseType:"blob"}).then((e=>{const t=window.URL.createObjectURL(new Blob([e.data])),n=document.createElement("a");return n.href=t,n.setAttribute("download","RSVP.csv"),document.body.appendChild(n),n.click(),!0})).catch((e=>(console.log(e),!1))))(n),children:"Export Data to CSV"})}),(0,Tl.jsx)(GX,{columns:[{label:"Name",propName:"eventRsvp.fullName"},{label:"Email",propName:"eventRsvp.emailAddress"},{label:"Mobile Number",propName:"eventRsvp.phoneNumber"},{label:"Guests",propName:"numberOfGuests"},{label:"RSVP Date",propName:"rsvpOn"},{label:"Guests Attended",propName:"numberOfGuestsAttended"},{label:"Attendance Date",propName:"attendedOn"}],tableData:l.rsvpList,rowComponent:G7,loading:o,hideSearch:!0})]})]})})},Y7=cb((e=>({root:{[e.breakpoints.down("md")]:{width:"100%"},justifyContent:"space-between",width:"80%",display:"flex",flexDirection:"column"},error:{color:e.palette.error.main},image:{maxWidth:"200px",height:"auto",margin:"10px",display:"flex",justifyContent:"center"},imageContainer:{display:"flex"},copy:{color:e.palette.primary.copy}})));function X7(t){var n;let{baseClientId:r,eventId:a,clientId:i}=t;const o=Y7(),[s,l]=(0,e.useState)(!1),[c,u]=(0,e.useState)(void 0),[d,p]=(0,e.useState)(!1),[h,f]=(0,e.useState)(""),[m,g]=(0,e.useState)(!1),[v,y]=(0,e.useState)(!1),[b,x]=(0,e.useState)(!1),[w,S]=(0,e.useState)({}),[C,A]=(0,e.useState)(""),[k,T]=(0,e.useState)({}),[j,E]=(0,e.useState)([]),[P,N]=(0,e.useState)(""),[D,M]=(0,e.useState)(""),[_,I]=(0,e.useState)(""),[R,O]=(0,e.useState)(!1),[L,F]=(0,e.useState)(!1),[B,z]=(0,e.useState)(!1),[V,W]=(0,e.useState)(""),[U,$]=(0,e.useState)(""),[H,q]=(0,e.useState)(""),[G,K]=(0,e.useState)(""),[Y,X]=(0,e.useState)(""),[Z,J]=(0,e.useState)(""),[Q,ee]=(0,e.useState)(""),[te,ne]=(0,e.useState)(""),[re,ae]=(0,e.useState)("United States"),[ie,oe]=(0,e.useState)(""),[se,le]=(0,e.useState)(new Date),[ce,ue]=(0,e.useState)((new Date).setMinutes((new Date).getMinutes()+1)),[de,pe]=(0,e.useState)(new Date),[he,fe]=(0,e.useState)(null),[me,ge]=(0,e.useState)(""),[ve,ye]=(0,e.useState)(""),[be,xe]=(0,e.useState)(null),[we,Se]=(0,e.useState)(!1),[Ce,Ae]=(0,e.useState)({eventVenues:[],eventTypes:[],eventSponsors:[],timeZonesCollection:[]});const ke=()=>{vU((e=>tl().put(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/events/activateevent/"+e).then((e=>e.status)))(Ce.eventData.id),"Event Activated",p,f,g,y).then((()=>{Pe()}))},Te=()=>{vU(ZJ(Ce.eventData.id),"Event Cancelled",p,f,g,y).then((()=>{Pe()}))},je=()=>{Te(),vU(fX(c),"Featured Event Deleted",p,f,g,y)},Ee=()=>{if(""===P||""===_||null==C||""===C||void 0===w.name)return!1;if(!R){if(void 0===k.name)return!1;if("+ Add New"===k.name&&(""===V||""===Y||""===Z||""===Q||""===te||""===re))return!1}return("+ Add New"!==w.name||""!==D)&&!(ce<=de)},Pe=()=>{((e,t)=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/events/getevent/"+e+"/"+t).then((e=>e.data)))(i,a).then((e=>{var t,n,r,a,i,o,s,l,c,u;(e.eventVenues=[{name:"+ Add New"}].concat(e.eventVenues),e.eventTypes=[{name:"+ Add New"}].concat(e.eventTypes),N(null===(t=e.eventData)||void 0===t?void 0:t.title),le(V9(null===(n=e.eventData)||void 0===n?void 0:n.startDate)),ue(V9(null===(r=e.eventData)||void 0===r?void 0:r.endDate)),I(null===(a=e.eventData)||void 0===a?void 0:a.description),O(null===(i=e.eventData)||void 0===i?void 0:i.isVirtual),F(null===(o=e.eventData)||void 0===o?void 0:o.hasRsvp),oe(null===(s=e.eventData)||void 0===s?void 0:s.registrationLink),fe(null===(l=e.eventData)||void 0===l?void 0:l.image),null!==e.eventData.image)&&(e.eventData.image="data:"+(null===(c=e.eventData)||void 0===c?void 0:c.contentType)+";base64,"+(null===(u=e.eventData)||void 0===u?void 0:u.image));xe(e.eventData.image),e.eventSponsors.forEach((e=>e.imagePath="data:"+e.contentType+";base64,"+e.logo)),Ae(e)}))};return(0,e.useEffect)((()=>{for(var e in Ce.eventTypes){var t;if(Ce.eventTypes[e].id===(null===(t=Ce.typeData)||void 0===t?void 0:t.id)){S(Ce.eventTypes[e]);break}}for(var e in Ce.timeZonesCollection)if(Ce.timeZonesCollection[e]===Ce.timeZoneId){A(Ce.timeZonesCollection[e]);break}for(var e in Ce.eventVenues){var n;if(Ce.eventVenues[e].id===(null===(n=Ce.venueData)||void 0===n?void 0:n.id)){T(Ce.eventVenues[e]);break}}for(var e in Ce.timeZonesCollection){var r;if(Ce.timeZonesCollection[e]===(null===(r=Ce.eventData)||void 0===r?void 0:r.timeZoneId)){A(Ce.timeZonesCollection[e]);break}}var a=[];for(var e in null===(i=Ce.eventData)||void 0===i?void 0:i.eventEventSponsorXrefs){var i,o;a.push(null===(o=Ce.eventData)||void 0===o?void 0:o.eventEventSponsorXrefs[e].sponsorId)}E(a)}),[Ce]),(0,e.useEffect)((()=>{""!==i&&Pe()}),[a,i]),(0,e.useEffect)((()=>{pe(new Date(se).setMinutes(se.getMinutes()+.5))}),[se]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:d,setShowSignifier:p,message:h,error:m}),(0,Tl.jsx)("div",{className:o.root,children:(0,Tl.jsx)(CN,{children:(0,Tl.jsx)(WM,{children:(0,Tl.jsxs)(SU,{children:[(0,Tl.jsx)(MU,{style:{fontWeight:"bold"},children:"Add Event"}),(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:4,children:[(0,Tl.jsx)(FU,{placeholder:"Title",label:"Title",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:o.copy},value:P,error:b&&""===P,onChange:e=>N(e.target.value)}),b&&""===P&&(0,Tl.jsx)(MU,{className:o.error,children:"Title Required"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:4,children:[(0,Tl.jsx)(gJ,{currValue:w,items:Ce.eventTypes,property:"name",title:"Type",handleChange:e=>S(e),error:b&&void 0===w.name}),b&&void 0===w.name&&(0,Tl.jsx)(MU,{className:o.error,children:"Event Type Required"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:4,children:["+ Add New"!==w.name?null:(0,Tl.jsx)(FU,{placeholder:"New Type Name",label:"New Type Name",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:o.copy},value:D,error:b&&""===D,onChange:e=>M(e.target.value)}),b&&""===P&&"+ Add New"===w.name&&(0,Tl.jsx)(MU,{className:o.error,children:"Type Name Required"})]}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(n7,{value:se,setValue:le,error:b&&null==se,label:"Start Date"})}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:4,children:[(0,Tl.jsx)(n7,{value:ce,setValue:ue,minDate:se,minTime:de,error:ce<=de,label:"End Date"}),ce<=de&&(0,Tl.jsx)(MU,{className:o.error,children:"End Date must be after Start Date"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:4,children:[(0,Tl.jsx)(L7,{items:Ce.timeZonesCollection,title:"Time Zone *",handleChange:e=>A(e),currValue:C,error:b&&(null==C||""===C)}),b&&(null==C||""===C)&&(0,Tl.jsx)(MU,{className:o.error,children:"Timezone Required"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:12,children:[(0,Tl.jsx)(FU,{placeholder:"Description",label:"Description",variant:"standard",fullWidth:!0,required:!0,multiline:!0,rows:2,maxRows:80,InputProps:{className:o.copy},value:_,error:b&&""===_,onChange:e=>I(e.target.value)}),b&&""===_&&(0,Tl.jsx)(MU,{className:o.error,children:"Decription Required"})]}),(0,Tl.jsx)(CN,{xs:12,sm:12,item:!0,children:(0,Tl.jsx)($Y,{className:o.copy,control:(0,Tl.jsx)(lX,{color:"primary",checked:R,onChange:()=>O(!R)}),label:"Virtual"})}),(0,Tl.jsx)(CN,{xs:12,sm:12,item:!0,children:(0,Tl.jsx)($Y,{className:o.copy,control:(0,Tl.jsx)(lX,{color:"primary",checked:L,onChange:()=>F(!L)}),label:"Accepts RSVP"})}),(0,Tl.jsx)(CN,{xs:12,sm:12,item:!0,children:(0,Tl.jsx)($Y,{className:o.copy,control:(0,Tl.jsx)(lX,{color:"primary",checked:B,onChange:()=>z(!B)}),label:"Send Updated Email to RSVP Users"})}),R?null:(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:12,children:[(0,Tl.jsx)(gJ,{currValue:k,items:Ce.eventVenues,property:"name",title:"Event Venue",handleChange:e=>T(e),error:b&&void 0===k.name}),b&&void 0===k.name&&(0,Tl.jsx)(MU,{className:o.error,children:"Event Venue Required"})]}),R?null:"+ Add New"!==k.name?(0,Tl.jsx)(FU,{placeholder:"Venue Details",label:"Venue Details",variant:"standard",fullWidth:!0,disabled:!0,multiline:!0,rows:2,maxRows:6,InputProps:{className:o.copy},value:k.address+" "+k.city+" "+k.division+" "+k.zipCode+" "+k.country}):(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:6,children:[(0,Tl.jsx)(FU,{placeholder:"Venue Name",label:"Venue Name",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:o.copy},value:V,onChange:e=>W(e.target.value),error:b&&""===V}),b&&""===V&&(0,Tl.jsx)(MU,{className:o.error,children:"Venue name Required"})]}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(FU,{placeholder:"Venue Website",label:"Venue Website",variant:"standard",fullWidth:!0,InputProps:{className:o.copy},value:U,onChange:e=>$(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(FU,{placeholder:"Venue Email",label:"Venue Email",variant:"standard",fullWidth:!0,InputProps:{className:o.copy},value:H,onChange:e=>q(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(FU,{placeholder:"Venue Phone #",label:"Venue Phone #",variant:"standard",fullWidth:!0,InputProps:{className:o.copy},value:G,onChange:e=>K(e.target.value)})}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:12,children:[(0,Tl.jsx)(FU,{placeholder:"Venue Address",label:"Venue Address",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:o.copy},value:Y,onChange:e=>X(e.target.value),error:b&&""===Y}),b&&""===Y&&(0,Tl.jsx)(MU,{className:o.error,children:"Venue address Required"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:3,children:[(0,Tl.jsx)(FU,{placeholder:"Venue City",label:"Venue City",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:o.copy},value:Z,onChange:e=>J(e.target.value),error:b&&""===Z}),b&&""===Z&&(0,Tl.jsx)(MU,{className:o.error,children:"Venue city Required"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:3,children:[(0,Tl.jsx)(FU,{placeholder:"Venue State",label:"Venue State",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:o.copy},value:Q,onChange:e=>ee(e.target.value),error:b&&""===Q}),b&&""===Q&&(0,Tl.jsx)(MU,{className:o.error,children:"Venue state Required"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:3,children:[(0,Tl.jsx)(FU,{placeholder:"Venue Zip Code",label:"Venue Zip Code",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:o.copy},value:te,onChange:e=>ne(e.target.value),error:b&&""===te}),b&&""===te&&(0,Tl.jsx)(MU,{className:o.error,children:"Venue zipcode Required"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:3,children:[(0,Tl.jsx)(FU,{placeholder:"Venue Country",label:"Venue Country",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:o.copy},value:re,onChange:e=>ae(e.target.value),error:b&&""===re}),b&&""===re&&(0,Tl.jsx)(MU,{className:o.error,children:"Venue country Required"})]})]}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(FU,{placeholder:"Registration Link",label:"Registration Link",variant:"standard",InputProps:{className:o.copy},value:ie,fullWidth:!0,onChange:e=>oe(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,style:{marginTop:"2%"},xs:12,sm:12,children:"Event Image:"}),null!==be?(0,Tl.jsxs)("div",{className:o.imageContainer,children:[(0,Tl.jsx)("img",{className:o.image,src:be,alt:"Event Logo"}),(0,Tl.jsx)("div",{style:{alignSelf:"center"},children:(0,Tl.jsx)(hm,{onClick:()=>{ge(""),xe(null),fe(null)},size:"large",children:(0,Tl.jsx)(qW,{})})})]}):(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsxs)("label",{htmlFor:"contained-button-file",children:[(0,Tl.jsx)(uM,{accept:"image/*",id:"contained-button-file",multiple:!0,type:"file",style:{display:"none"},onInput:e=>(e=>{if(null!=e.target.files[0]){ge(""),xe(null),fe(null);var t=e.target.files[0].type;if("image/png"!==t&&"image/jpeg"!==t)return void Se(!0);var n=e.target.files[0];if(n.size/1048576>1)return void Se(!0);YZ(n,(t=>{Se(!1),fe(t.split("base64,")[1]);var r="data:"+n.contentType+";base64,"+t.split("base64,")[1];xe(r),ge(e.target.files[0].name),ye(e.target.files[0].type)}))}})(e)}),(0,Tl.jsx)(vW,{variant:"contained",color:"primary",component:"span",style:{marginBottom:"10px"},children:"Upload"}),we&&null==be&&(0,Tl.jsx)(MU,{className:o.error,children:"Images must be a .PNG or .JPG file under 1MB in size."})]})}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:12,container:!0,justifyContent:"flex-end",children:[(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginRight:"8px"},className:o.sensitiveButton,type:"submit",variant:"contained",color:"primary",onClick:()=>function(){var e;null!==Ce&&void 0!==Ce&&null!==(e=Ce.eventData)&&void 0!==e&&e.isActive?hX(i).then((e=>{let t=e.map((e=>({eventId:e.eventId,id:e.id})));const n=t.find((e=>e.eventId===Ce.eventData.id));void 0!==n?(u(n.id),l(!0)):Te()})):ke()}(),children:null!==Ce&&void 0!==Ce&&null!==(n=Ce.eventData)&&void 0!==n&&n.isActive?"Cancel Event":"Activate Event"}),(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginRight:"8px"},className:o.sensitiveButton,type:"submit",variant:"contained",color:"primary",onClick:()=>function(){if(!Ee())return void x(!0);var e=W7(C).at(0),t=(0,F7.zonedTimeToUtc)(se,e),n=(0,F7.zonedTimeToUtc)(ce,e);let r={Id:Ce.eventData.id,ClientId:i,EventTypeId:null===w||void 0===w?void 0:w.id,VenueId:null===k||void 0===k?void 0:k.id,IsVirtual:R,Title:P,Description:_,Image:he,ContentType:ve,RegistrationLink:ie,StartDate:t,EndDate:n,HasRsvp:L,IsActive:!0,TimeZoneId:C},a={ClientId:i,Name:D},o={ClientId:i,Name:V,Address:Y,City:Z,Division:Q,ZipCode:te,Country:re,Website:U,PhoneNumber:G,EmailAddress:H},s={eventData:r,typeData:void 0!==w.id?w:a,venueData:void 0!==k.id?k:o,SelectedSponsorIds:j,SendRsvpUpdate:B};vU(JJ(s),"Event Saved",p,f,g,y).then((()=>{Pe()}))}(),children:"Save Information"})]}),(0,Tl.jsx)(jW,{open:s,onClose:()=>l(!1),children:(0,Tl.jsx)(gU,{question:"Deactivating this event will also delete it from featured events. Continue?",func:()=>je(),closeModal:()=>(u(void 0),void l(!1))})})]})]})})})})]})}const Z7=function(){const t=cb((e=>({root:{[e.breakpoints.down("md")]:{width:"100%"}},autocomplete:{width:"35%",paddingBottom:"20px",[e.breakpoints.down("md")]:{width:"100%"}},hint:{position:"absolute",left:0,right:0,top:0,bottom:0,marginTop:"auto",marginBottom:"auto",marginLeft:"auto",marginRight:"auto",width:"300px",height:"300px",fontSize:"32px",textAlign:"center",color:"rgba(0,0,0,.6)"}}))),n=t();let r=zu();const a=Oc(qC),[i,o]=(0,e.useState)(""),[s,l]=(0,e.useState)("");if((0,e.useEffect)((()=>{null!==r.state&&void 0!==r.state&&(o(r.state.clientId),l(r.state.id))}),[]),null===r.state||void 0===r.state)return(0,Tl.jsx)(ju,{to:"/events"});if(a.id!==i&&""!==i)return(0,Tl.jsx)(ju,{to:"/events"});const c=[{title:"Event",component:(0,Tl.jsx)(X7,{clientId:i,eventId:s})},{title:"RSVP",component:(0,Tl.jsx)(K7,{eventId:s})}];return(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[a.shortName," Event"]}),(0,Tl.jsx)("div",{className:n.root,children:null===a?(0,Tl.jsx)("div",{className:n.hint,children:(0,Tl.jsx)("span",{children:"Select a client"})}):(0,Tl.jsx)(FZ,{tabs:c})})]})})};var J7=n(4686);const Q7=cb((e=>({root:{[e.breakpoints.down("md")]:{width:"100%"},justifyContent:"space-between",width:"100%",display:"flex",flexDirection:"column",wordWrap:"break-word"},linkTitle:{color:e.palette.primary.copy},linkValue:{color:e.palette.primary.dark,cursor:"pointer",overflowX:"auto",whiteSpace:"nowrap",paddingBottom:"5px","&:hover":{color:e.palette.primary.light}}}))),eee=new J7.ExportToCsv({filename:"Prefiltered Links",fieldSeparator:",",quoteStrings:'"',decimalSeparator:".",showLabels:!0,showTitle:!0,title:"Prefiltered Links",useTextFile:!1,useBom:!0,useKeysAsHeaders:!0});function tee(t){let{openModal:n,links:r}=t;const[a,i]=(0,e.useState)("Click to Copy"),[o,s]=(0,e.useState)("");const l=Q7();return(0,Tl.jsx)("div",{className:l.root,children:(0,Tl.jsx)(CN,{children:(0,Tl.jsx)(WM,{children:(0,Tl.jsxs)(SU,{children:[(0,Tl.jsx)(MU,{style:{fontWeight:"bold"},children:"Prefiltered Links"}),(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[r.map(((e,t)=>(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,container:!0,alignItems:"center",className:l.linkTitle,children:(0,Tl.jsxs)("span",{children:[e.item1,":"]})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,container:!0,children:(0,Tl.jsx)(FS,{title:a,placement:"top",children:(0,Tl.jsx)("span",{onMouseEnter:()=>{return t=e.item2,void i(t===o?"Copied!":"Click to Copy");var t},onClick:()=>function(e){s(e),i("Copied!"),navigator.clipboard.writeText(e)}(e.item2),className:l.linkValue,children:e.item2})})}),null!=e.item3&&e.item3.length>0?(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:12,children:[(0,Tl.jsxs)("span",{children:[(0,Tl.jsx)("b",{children:"Selected Filters:"})," ",(0,Tl.jsx)("br",{})]}),(0,Tl.jsx)(sC,{})]}),e.item3.map(((e,t)=>(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:12,children:[(0,Tl.jsxs)("span",{children:[e.name,": ",e.value,(0,Tl.jsx)("br",{})]}),(0,Tl.jsx)(sC,{})]})))]}):null,null!=e.item3&&e.item3.length>0?null:(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(sC,{})})]}))),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,container:!0,justifyContent:"flex-end",children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginRight:"8px"},className:l.sensitiveButton,type:"submit",variant:"contained",color:"primary",onClick:()=>function(){const e=JSON.parse(JSON.stringify(r));e.forEach((e=>{var t;let n="";null===(t=e.item3)||void 0===t||t.forEach((e=>{n+=e.name+": "+e.value+" | "})),e.item3=""===n?"N/A":n})),eee.generateCsv(e)}(),children:"Export to CSV"})})]})]})})})})}const nee=function(){var t,n,r,a,i,o,s,l,c,u,d,p,h,f;const m=cb((e=>({root:{width:"50%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},cardContainer:{[e.breakpoints.down("md")]:{width:"100%",overflowY:"scroll"},display:"flex",flexDirection:"column",marginBottom:"20px",width:"100%"},error:{color:e.palette.error.main},copy:{color:e.palette.primary.copy}}))),g=m(),v=Oc(qC),[y,b]=(0,e.useState)(!1),[x,w]=(0,e.useState)(!1),[S,C]=(0,e.useState)(!1),[A,k]=(0,e.useState)(!1),[T,j]=(0,e.useState)(!1),[E,P]=(0,e.useState)(""),[N,D]=(0,e.useState)(""),[M,_]=(0,e.useState)(""),[I,R]=(0,e.useState)(""),[O,L]=(0,e.useState)(""),[F,B]=(0,e.useState)(""),[z,V]=(0,e.useState)(""),[W,U]=(0,e.useState)({}),[$,H]=(0,e.useState)(null),[q,G]=(0,e.useState)(null),[K,Y]=(0,e.useState)(null),[X,Z]=(0,e.useState)(null),[J,Q]=(0,e.useState)(null),[ee,te]=(0,e.useState)(null),[ne,re]=(0,e.useState)(null),[ae,ie]=(0,e.useState)(null),[oe,se]=(0,e.useState)(null),[le,ce]=(0,e.useState)(null),[ue,de]=(0,e.useState)(null),[pe,he]=(0,e.useState)(null),[fe,me]=(0,e.useState)(null),[ge,ve]=(0,e.useState)(null),[ye,be]=(0,e.useState)([]),[xe,we]=(0,e.useState)([]),Se=(e,t,n,r)=>e=e+(t?"&":"?")+n+"="+encodeURIComponent(r);function Ce(e){we(e),b(!0)}return(0,e.useEffect)((()=>{""===M&&R("")}),[M]),(0,e.useEffect)((()=>{(()=>{if(void 0!==window.Microsoft){function e(){new window.Microsoft.Maps.AutosuggestManager({maxResults:5}).attachAutosuggest("#searchBox","#searchBoxContainer",n)}function t(e){console.log(e)}function n(e){R(e.location.latitude+","+e.location.longitude+"_"+e.formattedSuggestion),_(e.formattedSuggestion)}window.Microsoft.Maps.loadModule("Microsoft.Maps.AutoSuggest",{callback:e,errorCallback:t})}})()}),[]),(0,e.useEffect)((()=>{var e;null!==v&&(e=v.id,tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/prefilteredlink/"+e).then((e=>e.data))).then((e=>{P(e.protocol+"://"+e.domain+"/search/searchjobs"),U(e)}))}),[v]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[v.shortName," Prefiltered Links"]}),(0,Tl.jsx)("div",{className:g.root,children:(0,Tl.jsx)(CN,{className:g.cardContainer,children:(0,Tl.jsx)(WM,{className:g.card,children:(0,Tl.jsx)(SU,{children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(FU,{placeholder:"Keyword",label:"Keyword",variant:"standard",fullWidth:!0,InputProps:{className:g.copy},value:N,onChange:e=>D(e.target.value)})}),(null===(t=W.industriesCollection)||void 0===t?void 0:t.length)>0?(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(L7,{items:W.industriesCollection,property:"name",title:"Industry",handleChange:e=>H(e)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(vW,{onClick:()=>Ce(W.industryLinksCollection),variant:"outlined",color:"primary",style:{marginTop:"10px"},children:"Display All Industry Links"})})]}):null,(null===(n=W.familiesCollection)||void 0===n?void 0:n.length)>0?(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(L7,{items:W.familiesCollection,property:"name",title:"Family",handleChange:e=>G(e)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(vW,{onClick:()=>Ce(W.familyLinksCollection),variant:"outlined",color:"primary",style:{marginTop:"10px"},children:"Display All Family Links"})})]}):null,(null===(r=W.categoriesCollection)||void 0===r?void 0:r.length)>0?(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(L7,{items:W.categoriesCollection,property:"name",title:"Category",handleChange:e=>Y(e)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(vW,{onClick:()=>Ce(W.categoryLinksCollection),variant:"outlined",color:"primary",style:{marginTop:"10px"},children:"Display All Category Links"})})]}):null,(null===(a=W.cityStatesCollection)||void 0===a?void 0:a.length)>0?(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(L7,{items:W.cityStatesCollection,property:"item2",title:"City/State",handleChange:e=>Z(e)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(vW,{onClick:()=>Ce(W.cityStateLinksCollection),variant:"outlined",color:"primary",style:{marginTop:"10px"},children:"Display All City/State Links"})})]}):null,(null===(i=W.statesCollection)||void 0===i?void 0:i.length)>0?(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(L7,{items:W.statesCollection,property:"item2",title:"State, Country",handleChange:e=>Q(e)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(vW,{onClick:()=>Ce(W.stateLinksCollection),variant:"outlined",color:"primary",style:{marginTop:"10px"},children:"Display All State Links"})})]}):null,(null===(o=W.countriesCollection)||void 0===o?void 0:o.length)>0?(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(L7,{items:W.countriesCollection,property:"item2",title:"Country",handleChange:e=>te(e)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(vW,{onClick:()=>Ce(W.countryLinksCollection),variant:"outlined",color:"primary",style:{marginTop:"10px"},children:"Display All Country Links"})})]}):null,(null===(s=W.facilitiesCollection)||void 0===s?void 0:s.length)>0?(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(L7,{items:W.facilitiesCollection,property:"item2",title:"Facility",handleChange:e=>re(e)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(vW,{onClick:()=>Ce(W.facilityLinksCollection),variant:"outlined",color:"primary",style:{marginTop:"10px"},children:"Display All Facility Links"})})]}):null,(null===(l=W.facilityNamesCollection)||void 0===l?void 0:l.length)>0?(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(L7,{items:W.facilityNamesCollection,property:"item2",title:"Facility Name",handleChange:e=>ie(e)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(vW,{onClick:()=>Ce(W.facilityNameLinksCollection),variant:"outlined",color:"primary",style:{marginTop:"10px"},children:"Display All Facility Name Links"})})]}):null,(null===(c=W.adTypesCollection)||void 0===c?void 0:c.length)>0?(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(L7,{items:W.adTypesCollection,property:"item2",title:"Job Type",handleChange:e=>se(e)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(vW,{onClick:()=>Ce(W.adTypeLinksCollection),variant:"outlined",color:"primary",style:{marginTop:"10px"},children:"Display All Job Type Links"})})]}):null,(null===(u=W.departmentsCollection)||void 0===u?void 0:u.length)>0?(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(L7,{items:W.departmentsCollection,property:"item2",title:"Job Department",handleChange:e=>ce(e)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(vW,{onClick:()=>Ce(W.departmentLinksCollection),variant:"outlined",color:"primary",style:{marginTop:"10px"},children:"Display All Job Department Links"})})]}):null,(null===(d=W.brandsCollection)||void 0===d?void 0:d.length)>0?(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(L7,{items:W.brandsCollection,property:"item1",title:"Brand",handleChange:e=>de(e)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(vW,{onClick:()=>Ce(W.brandLinksCollection),variant:"outlined",color:"primary",style:{marginTop:"10px"},children:"Display All Brand Links"})})]}):null,(null===(p=W.postedDatesCollection)||void 0===p?void 0:p.length)>0?(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(L7,{items:W.postedDatesCollection,property:"item1",title:"Posted Date",handleChange:e=>he(e)})}):null,(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:6,children:[(0,Tl.jsx)("div",{id:"printoutPanel"}),(0,Tl.jsx)("div",{id:"searchBoxContainer",style:{position:"relative"},children:(0,Tl.jsx)(FU,{id:"searchBox",placeholder:"Geolocation",label:"Geolocation",variant:"standard",fullWidth:!0,InputProps:{className:g.copy},value:M,onChange:e=>_(e.target.value)})})]}),(null===(h=W.radiusesCollection)||void 0===h?void 0:h.length)>0?(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(L7,{items:W.radiusesCollection,property:"item1",title:"Radius",handleChange:e=>me(e)})}):null,(0,Tl.jsx)(CN,{xs:12,sm:12,item:!0,children:(0,Tl.jsx)($Y,{className:g.copy,style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:x,onChange:()=>w(!x)}),label:"Use Location"})}),(0,Tl.jsx)(CN,{xs:12,sm:12,item:!0,children:(0,Tl.jsx)($Y,{className:g.copy,style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:S,onChange:()=>C(!S)}),label:"Only Featured Jobs"})}),(null===(f=W.featuredGroupsCollection)||void 0===f?void 0:f.length)>0?(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(L7,{items:W.featuredGroupsCollection,property:"item2",title:"Featured Group",handleChange:e=>ve(e)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(vW,{onClick:()=>Ce(W.featuredGroupLinksCollection),variant:"outlined",color:"primary",style:{marginTop:"10px"},children:"Display All Featured Group Links"})})]}):null,(0,Tl.jsx)(CN,{xs:12,sm:12,item:!0,children:(0,Tl.jsx)($Y,{className:g.copy,style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:A,onChange:()=>k(!A)}),label:"Include Tracking Code"})}),(0,Tl.jsx)(CN,{xs:12,sm:12,item:!0,children:(0,Tl.jsx)($Y,{className:g.copy,style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:T,onChange:()=>j(!T)}),label:"Remote Jobs"})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"UTM Campaign",label:"UTM Campaign",variant:"standard",fullWidth:!0,InputProps:{className:g.copy},value:O,onChange:e=>L(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"UTM Source",label:"UTM Source",variant:"standard",fullWidth:!0,InputProps:{className:g.copy},value:F,onChange:e=>B(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"UTM Medium",label:"UTM Medium",variant:"standard",fullWidth:!0,InputProps:{className:g.copy},value:z,onChange:e=>V(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,container:!0,justifyContent:"flex-end",children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginRight:"8px"},className:g.sensitiveButton,type:"submit",variant:"contained",color:"primary",onClick:()=>function(){var e=E,t=!1;A&&""===O&&""===F&&""===z?alert("All UTM codes required"):(""!==N&&(e=Se(e,t,"keyword",N),t=!0,ye.push({name:"Keyword",value:N})),void 0!==(null===$||void 0===$?void 0:$.id)&&(e=Se(e,t,"industryid",$.id),t=!0,ye.push({name:"Industry",value:$.name})),void 0!==(null===q||void 0===q?void 0:q.id)&&(e=Se(e,t,"familyid",q.id),t=!0,ye.push({name:"Family",value:q.name})),void 0!==(null===K||void 0===K?void 0:K.id)&&(e=Se(e,t,"categoryid",K.id),t=!0,ye.push({name:"Category",value:K.name})),void 0!==(null===X||void 0===X?void 0:X.item1)&&(e=Se(e,t,"citystate",X.item1),t=!0,ye.push({name:"City/State",value:X.item1})),void 0!==(null===J||void 0===J?void 0:J.item1)&&(e=Se(e,t,"statecountry",J.item1),t=!0,ye.push({name:"State, Country",value:J.item1})),void 0!==(null===ee||void 0===ee?void 0:ee.item1)&&(e=Se(e,t,"countryOnly",ee.item1),t=!0,ye.push({name:"Country",value:ee.item1})),void 0!==(null===ne||void 0===ne?void 0:ne.item1)&&(e=Se(e,t,"facilityid",ne.item1),t=!0,ye.push({name:"Facility",value:ne.item2})),void 0!==(null===ae||void 0===ae?void 0:ae.item1)&&(e=Se(e,t,"facilityname",ae.item1),t=!0,ye.push({name:"Facility Name",value:ae.item2})),void 0!==(null===oe||void 0===oe?void 0:oe.item1)&&(e=Se(e,t,"adtypeid",oe.item1),t=!0,ye.push({name:"Job Type",value:oe.item2})),void 0!==(null===le||void 0===le?void 0:le.item1)&&(e=Se(e,t,"addepartmentid",le.item1),t=!0,ye.push({name:"Job Department",value:le.item2})),void 0!==(null===ue||void 0===ue?void 0:ue.item1)&&(e=Se(e,t,"brandname",ue.item1),t=!0,ye.push({name:"Brand",value:ue.item1})),void 0!==(null===pe||void 0===pe?void 0:pe.item2)&&(e=Se(e,t,"posteddate",pe.item2),t=!0,ye.push({name:"Posted Date",value:pe.item2})),""!==I&&(e=Se(e,t,"geolocationstring",I),t=!0,ye.push({name:"Geolocation",value:I})),void 0!==(null===fe||void 0===fe?void 0:fe.item2)&&(e=Se(e,t,"radius",fe.item2),t=!0,ye.push({name:"Radius",value:fe.item1})),x&&(e=Se(e,t,"uselocation",x),t=!0,ye.push({name:"Use Location",value:"True"})),S&&(e=Se(e,t,"featuredonly",S),t=!0,ye.push({name:"Featured Only",value:"True"})),T&&(e=Se(e,t,"remoteJobs",T),t=!0,ye.push({name:"Remote Jobs",value:"True"})),void 0!==(null===ge||void 0===ge?void 0:ge.item1)&&(e=Se(e,t,"featuredgid",ge.item1),t=!0,ye.push({name:"Featured Group",value:ge.item2})),""!==O&&(e=Se(e,t,"utm_campaign",O),t=!0,ye.push({name:"UTM Campaign",value:O})),""!==F&&(e=Se(e,t,"utm_source",F),t=!0,ye.push({name:"UTM Source",value:F})),""!==z&&(e=Se(e,t,"utm_medium",z),t=!0,ye.push({name:"UTM Medium",value:z})),we([{item1:"Custom Link",item2:e,item3:ye}]),be([]),b(!0))}(),children:"Generate Link"})})]})})})})})]}),(0,Tl.jsx)(jW,{open:y,fullWidth:!0,maxWidth:"md",onClose:()=>b(!1),children:(0,Tl.jsx)(tee,{openModal:b,links:xe})})]})},ree={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};const aee=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(e,t)=>e===t;return e.length===t.length&&e.every(((e,r)=>n(e,t[r])))};function iee(e,t){return e-t}function oee(e,t){var n;const{index:r}=null!=(n=e.reduce(((e,n,r)=>{const a=Math.abs(t-n);return null===e||a<e.distance||a===e.distance?{distance:a,index:r}:e}),null))?n:{};return r}function see(e,t){if(void 0!==t.current&&e.changedTouches){const n=e;for(let e=0;e<n.changedTouches.length;e+=1){const r=n.changedTouches[e];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function lee(e,t,n){return 100*(e-t)/(n-t)}function cee(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(function(e){if(Math.abs(e)<1){const t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}(t)))}function uee(e){let{values:t,newValue:n,index:r}=e;const a=t.slice();return a[r]=n,a.sort(iee)}function dee(e){let{sliderRef:t,activeIndex:n,setActive:r}=e;var a,i;const o=kb(t.current);var s;null!=(a=t.current)&&a.contains(o.activeElement)&&Number(null==o||null==(i=o.activeElement)?void 0:i.getAttribute("data-index"))===n||(null==(s=t.current)||s.querySelector(`[type="range"][data-index="${n}"]`).focus());r&&r(n)}function pee(e,t){return"number"===typeof e&&"number"===typeof t?e===t:"object"===typeof e&&"object"===typeof t&&aee(e,t)}const hee={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},fee=e=>e;let mee;function gee(){return void 0===mee&&(mee="undefined"===typeof CSS||"function"!==typeof CSS.supports||CSS.supports("touch-action","none")),mee}function vee(t){const{"aria-labelledby":n,defaultValue:r,disabled:a=!1,disableSwap:i=!1,isRtl:o=!1,marks:s=!1,max:l=100,min:c=0,name:u,onChange:d,onChangeCommitted:p,orientation:h="horizontal",rootRef:f,scale:m=fee,step:g=1,shiftStep:v=10,tabIndex:y,value:b}=t,x=e.useRef(),[w,S]=e.useState(-1),[C,A]=e.useState(-1),[k,T]=e.useState(!1),j=e.useRef(0),[E,P]=kS({controlled:b,default:null!=r?r:c,name:"Slider"}),N=d&&((e,t,n)=>{const r=e.nativeEvent||e,a=new r.constructor(r.type,r);Object.defineProperty(a,"target",{writable:!0,value:{value:t,name:u}}),d(a,t,n)}),D=Array.isArray(E);let M=D?E.slice().sort(iee):[E];M=M.map((e=>null==e?c:(0,Iz.A)(e,c,l)));const _=!0===s&&null!==g?[...Array(Math.floor((l-c)/g)+1)].map(((e,t)=>({value:c+g*t}))):s||[],I=_.map((e=>e.value)),{isFocusVisibleRef:R,onBlur:O,onFocus:L,ref:F}=Cf(),[B,z]=e.useState(-1),V=e.useRef(),W=of(F,V),U=of(f,W),$=e=>t=>{var n;const r=Number(t.currentTarget.getAttribute("data-index"));L(t),!0===R.current&&z(r),A(r),null==e||null==(n=e.onFocus)||n.call(e,t)},H=e=>t=>{var n;O(t),!1===R.current&&z(-1),A(-1),null==e||null==(n=e.onBlur)||n.call(e,t)},q=(e,t)=>{const n=Number(e.currentTarget.getAttribute("data-index")),r=M[n],a=I.indexOf(r);let o=t;if(_&&null==g){const e=I[I.length-1];o=o>e?e:o<I[0]?I[0]:o<r?I[a-1]:I[a+1]}if(o=(0,Iz.A)(o,c,l),D){i&&(o=(0,Iz.A)(o,M[n-1]||-1/0,M[n+1]||1/0));const e=o;o=uee({values:M,newValue:o,index:n});let t=n;i||(t=o.indexOf(e)),dee({sliderRef:V,activeIndex:t})}P(o),z(n),N&&!pee(o,E)&&N(e,o,n),p&&p(e,o)},G=e=>t=>{var n;if(null!==g){const e=Number(t.currentTarget.getAttribute("data-index")),n=M[e];let r=null;("ArrowLeft"===t.key||"ArrowDown"===t.key)&&t.shiftKey||"PageDown"===t.key?r=Math.max(n-v,c):(("ArrowRight"===t.key||"ArrowUp"===t.key)&&t.shiftKey||"PageUp"===t.key)&&(r=Math.min(n+v,l)),null!==r&&(q(t,r),t.preventDefault())}null==e||null==(n=e.onKeyDown)||n.call(e,t)};lf((()=>{var e;a&&V.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[a]),a&&-1!==w&&S(-1),a&&-1!==B&&z(-1);const K=e.useRef();let Y=h;o&&"horizontal"===h&&(Y+="-reverse");const X=e=>{let{finger:t,move:n=!1}=e;const{current:r}=V,{width:a,height:o,bottom:s,left:u}=r.getBoundingClientRect();let d,p;if(d=0===Y.indexOf("vertical")?(s-t.y)/o:(t.x-u)/a,-1!==Y.indexOf("-reverse")&&(d=1-d),p=function(e,t,n){return(n-t)*e+t}(d,c,l),g)p=cee(p,g,c);else{const e=oee(I,p);p=I[e]}p=(0,Iz.A)(p,c,l);let h=0;if(D){h=n?K.current:oee(M,p),i&&(p=(0,Iz.A)(p,M[h-1]||-1/0,M[h+1]||1/0));const e=p;p=uee({values:M,newValue:p,index:h}),i&&n||(h=p.indexOf(e),K.current=h)}return{newValue:p,activeIndex:h}},Z=cf((e=>{const t=see(e,x);if(!t)return;if(j.current+=1,"mousemove"===e.type&&0===e.buttons)return void J(e);const{newValue:n,activeIndex:r}=X({finger:t,move:!0});dee({sliderRef:V,activeIndex:r,setActive:S}),P(n),!k&&j.current>2&&T(!0),N&&!pee(n,E)&&N(e,n,r)})),J=cf((e=>{const t=see(e,x);if(T(!1),!t)return;const{newValue:n}=X({finger:t,move:!0});S(-1),"touchend"===e.type&&A(-1),p&&p(e,n),x.current=void 0,ee()})),Q=cf((e=>{if(a)return;gee()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(x.current=t.identifier);const n=see(e,x);if(!1!==n){const{newValue:t,activeIndex:r}=X({finger:n});dee({sliderRef:V,activeIndex:r,setActive:S}),P(t),N&&!pee(t,E)&&N(e,t,r)}j.current=0;const r=kb(V.current);r.addEventListener("touchmove",Z,{passive:!0}),r.addEventListener("touchend",J,{passive:!0})})),ee=e.useCallback((()=>{const e=kb(V.current);e.removeEventListener("mousemove",Z),e.removeEventListener("mouseup",J),e.removeEventListener("touchmove",Z),e.removeEventListener("touchend",J)}),[J,Z]);e.useEffect((()=>{const{current:e}=V;return e.addEventListener("touchstart",Q,{passive:gee()}),()=>{e.removeEventListener("touchstart",Q),ee()}}),[ee,Q]),e.useEffect((()=>{a&&ee()}),[a,ee]);const te=lee(D?M[0]:c,c,l),ne=lee(M[M.length-1],c,l)-te,re=e=>t=>{var n;null==(n=e.onMouseLeave)||n.call(e,t),A(-1)};return{active:w,axis:Y,axisProps:hee,dragging:k,focusedThumbIndex:B,getHiddenInputProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var r;const i=nS(e),s={onChange:(d=i||{},e=>{var t;null==(t=d.onChange)||t.call(d,e),q(e,e.target.valueAsNumber)}),onFocus:$(i||{}),onBlur:H(i||{}),onKeyDown:G(i||{})};var d;const p=(0,wl.A)({},i,s);return(0,wl.A)({tabIndex:y,"aria-labelledby":n,"aria-orientation":h,"aria-valuemax":m(l),"aria-valuemin":m(c),name:u,type:"range",min:t.min,max:t.max,step:null===t.step&&t.marks?"any":null!=(r=t.step)?r:void 0,disabled:a},e,p,{style:(0,wl.A)({},ree,{direction:o?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=nS(e),n={onMouseDown:(r=t||{},e=>{var t;if(null==(t=r.onMouseDown)||t.call(r,e),a)return;if(e.defaultPrevented)return;if(0!==e.button)return;e.preventDefault();const n=see(e,x);if(!1!==n){const{newValue:t,activeIndex:r}=X({finger:n});dee({sliderRef:V,activeIndex:r,setActive:S}),P(t),N&&!pee(t,E)&&N(e,t,r)}j.current=0;const i=kb(V.current);i.addEventListener("mousemove",Z,{passive:!0}),i.addEventListener("mouseup",J)})};var r;const i=(0,wl.A)({},t,n);return(0,wl.A)({},e,{ref:U},i)},getThumbProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=nS(e),n={onMouseOver:(r=t||{},e=>{var t;null==(t=r.onMouseOver)||t.call(r,e);const n=Number(e.currentTarget.getAttribute("data-index"));A(n)}),onMouseLeave:re(t||{})};var r;return(0,wl.A)({},e,t,n)},marks:_,open:C,range:D,rootRef:U,trackLeap:ne,trackOffset:te,values:M,getThumbStyle:e=>({pointerEvents:-1!==w&&w!==e?"none":void 0})}}const yee=e=>!e||!Nx(e);function bee(e){return Ff("MuiSlider",e)}const xee=Bf("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);const wee=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function See(e){return e}const Cee=nf("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${sm(n.color)}`],"medium"!==n.size&&t[`size${sm(n.size)}`],n.marked&&t.marked,"vertical"===n.orientation&&t.vertical,"inverted"===n.track&&t.trackInverted,!1===n.track&&t.trackFalse]}})((e=>{let{theme:t}=e;var n;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${xee.disabled}`]:{pointerEvents:"none",cursor:"default",color:(t.vars||t).palette.grey[400]},[`&.${xee.dragging}`]:{[`& .${xee.thumb}, & .${xee.track}`]:{transition:"none"}},variants:[...Object.keys((null!=(n=t.vars)?n:t).palette).filter((e=>{var n;return(null!=(n=t.vars)?n:t).palette[e].main})).map((e=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}))),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}})),Aee=nf("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),kee=nf("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})((e=>{let{theme:t}=e;var n;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys((null!=(n=t.vars)?n:t).palette).filter((e=>{var n;return(null!=(n=t.vars)?n:t).palette[e].main})).map((e=>({props:{color:e,track:"inverted"},style:(0,wl.A)({},t.vars?{backgroundColor:t.vars.palette.Slider[`${e}Track`],borderColor:t.vars.palette.Slider[`${e}Track`]}:(0,wl.A)({backgroundColor:(0,gh.a)(t.palette[e].main,.62),borderColor:(0,gh.a)(t.palette[e].main,.62)},t.applyStyles("dark",{backgroundColor:(0,gh.e$)(t.palette[e].main,.5)}),t.applyStyles("dark",{borderColor:(0,gh.e$)(t.palette[e].main,.5)})))})))]}})),Tee=nf("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${sm(n.color)}`],"medium"!==n.size&&t[`thumbSize${sm(n.size)}`]]}})((e=>{let{theme:t}=e;var n;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow","left","bottom"],{duration:t.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(t.vars||t).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${xee.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys((null!=(n=t.vars)?n:t).palette).filter((e=>{var n;return(null!=(n=t.vars)?n:t).palette[e].main})).map((e=>({props:{color:e},style:{[`&:hover, &.${xee.focusVisible}`]:(0,wl.A)({},t.vars?{boxShadow:`0px 0px 0px 8px rgba(${t.vars.palette[e].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${(0,gh.X4)(t.palette[e].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${xee.active}`]:(0,wl.A)({},t.vars?{boxShadow:`0px 0px 0px 14px rgba(${t.vars.palette[e].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${(0,gh.X4)(t.palette[e].main,.16)}`})}})))]}})),jee=nf((function(t){const{children:n,className:r,value:a}=t,i=(e=>{const{open:t}=e;return{offset:fh(t&&xee.valueLabelOpen),circle:xee.valueLabelCircle,label:xee.valueLabelLabel}})(t);return n?e.cloneElement(n,{className:fh(n.props.className)},(0,Tl.jsxs)(e.Fragment,{children:[n.props.children,(0,Tl.jsx)("span",{className:fh(i.offset,r),"aria-hidden":!0,children:(0,Tl.jsx)("span",{className:i.circle,children:(0,Tl.jsx)("span",{className:i.label,children:a})})})]})):null}),{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((e=>{let{theme:t}=e;return(0,wl.A)({zIndex:1,whiteSpace:"nowrap"},t.typography.body2,{fontWeight:500,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),position:"absolute",backgroundColor:(t.vars||t).palette.grey[600],borderRadius:2,color:(t.vars||t).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${xee.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${xee.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:t.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})})),Eee=nf("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>ef(e)&&"markActive"!==e,overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})((e=>{let{theme:t}=e;return{position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8}}]}})),Pee=nf("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>ef(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((e=>{let{theme:t}=e;return(0,wl.A)({},t.typography.body2,{color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(t.vars||t).palette.text.primary}}]})})),Nee=e=>{let{children:t}=e;return t},Dee=e.forwardRef((function(t,n){var r,a,i,o,s,l,c,u,d,p,h,f,m,g,v,y,b,x,w,S,C,A,k,T;const j=rf({props:t,name:"MuiSlider"}),E=Ml(),{"aria-label":P,"aria-valuetext":N,"aria-labelledby":D,component:M="span",components:_={},componentsProps:I={},color:R="primary",classes:O,className:L,disableSwap:F=!1,disabled:B=!1,getAriaLabel:z,getAriaValueText:V,marks:W=!1,max:U=100,min:$=0,orientation:H="horizontal",shiftStep:q=10,size:G="medium",step:K=1,scale:Y=See,slotProps:X,slots:Z,track:J="normal",valueLabelDisplay:Q="off",valueLabelFormat:ee=See}=j,te=(0,Sl.A)(j,wee),ne=(0,wl.A)({},j,{isRtl:E,max:U,min:$,classes:O,disabled:B,disableSwap:F,orientation:H,marks:W,color:R,size:G,step:K,shiftStep:q,scale:Y,track:J,valueLabelDisplay:Q,valueLabelFormat:ee}),{axisProps:re,getRootProps:ae,getHiddenInputProps:ie,getThumbProps:oe,open:se,active:le,axis:ce,focusedThumbIndex:ue,range:de,dragging:pe,marks:he,values:fe,trackOffset:me,trackLeap:ge,getThumbStyle:ve}=vee((0,wl.A)({},ne,{rootRef:n}));ne.marked=he.length>0&&he.some((e=>e.label)),ne.dragging=pe,ne.focusedThumbIndex=ue;const ye=(e=>{const{disabled:t,dragging:n,marked:r,orientation:a,track:i,classes:o,color:s,size:l}=e;return mh({root:["root",t&&"disabled",n&&"dragging",r&&"marked","vertical"===a&&"vertical","inverted"===i&&"trackInverted",!1===i&&"trackFalse",s&&`color${sm(s)}`,l&&`size${sm(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${sm(l)}`,s&&`thumbColor${sm(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]},bee,o)})(ne),be=null!=(r=null!=(a=null==Z?void 0:Z.root)?a:_.Root)?r:Cee,xe=null!=(i=null!=(o=null==Z?void 0:Z.rail)?o:_.Rail)?i:Aee,we=null!=(s=null!=(l=null==Z?void 0:Z.track)?l:_.Track)?s:kee,Se=null!=(c=null!=(u=null==Z?void 0:Z.thumb)?u:_.Thumb)?c:Tee,Ce=null!=(d=null!=(p=null==Z?void 0:Z.valueLabel)?p:_.ValueLabel)?d:jee,Ae=null!=(h=null!=(f=null==Z?void 0:Z.mark)?f:_.Mark)?h:Eee,ke=null!=(m=null!=(g=null==Z?void 0:Z.markLabel)?g:_.MarkLabel)?m:Pee,Te=null!=(v=null!=(y=null==Z?void 0:Z.input)?y:_.Input)?v:"input",je=null!=(b=null==X?void 0:X.root)?b:I.root,Ee=null!=(x=null==X?void 0:X.rail)?x:I.rail,Pe=null!=(w=null==X?void 0:X.track)?w:I.track,Ne=null!=(S=null==X?void 0:X.thumb)?S:I.thumb,De=null!=(C=null==X?void 0:X.valueLabel)?C:I.valueLabel,Me=null!=(A=null==X?void 0:X.mark)?A:I.mark,_e=null!=(k=null==X?void 0:X.markLabel)?k:I.markLabel,Ie=null!=(T=null==X?void 0:X.input)?T:I.input,Re=sS({elementType:be,getSlotProps:ae,externalSlotProps:je,externalForwardedProps:te,additionalProps:(0,wl.A)({},yee(be)&&{as:M}),ownerState:(0,wl.A)({},ne,null==je?void 0:je.ownerState),className:[ye.root,L]}),Oe=sS({elementType:xe,externalSlotProps:Ee,ownerState:ne,className:ye.rail}),Le=sS({elementType:we,externalSlotProps:Pe,additionalProps:{style:(0,wl.A)({},re[ce].offset(me),re[ce].leap(ge))},ownerState:(0,wl.A)({},ne,null==Pe?void 0:Pe.ownerState),className:ye.track}),Fe=sS({elementType:Se,getSlotProps:oe,externalSlotProps:Ne,ownerState:(0,wl.A)({},ne,null==Ne?void 0:Ne.ownerState),className:ye.thumb}),Be=sS({elementType:Ce,externalSlotProps:De,ownerState:(0,wl.A)({},ne,null==De?void 0:De.ownerState),className:ye.valueLabel}),ze=sS({elementType:Ae,externalSlotProps:Me,ownerState:ne,className:ye.mark}),Ve=sS({elementType:ke,externalSlotProps:_e,ownerState:ne,className:ye.markLabel}),We=sS({elementType:Te,getSlotProps:ie,externalSlotProps:Ie,ownerState:ne});return(0,Tl.jsxs)(be,(0,wl.A)({},Re,{children:[(0,Tl.jsx)(xe,(0,wl.A)({},Oe)),(0,Tl.jsx)(we,(0,wl.A)({},Le)),he.filter((e=>e.value>=$&&e.value<=U)).map(((t,n)=>{const r=lee(t.value,$,U),a=re[ce].offset(r);let i;return i=!1===J?-1!==fe.indexOf(t.value):"normal"===J&&(de?t.value>=fe[0]&&t.value<=fe[fe.length-1]:t.value<=fe[0])||"inverted"===J&&(de?t.value<=fe[0]||t.value>=fe[fe.length-1]:t.value>=fe[0]),(0,Tl.jsxs)(e.Fragment,{children:[(0,Tl.jsx)(Ae,(0,wl.A)({"data-index":n},ze,!Nx(Ae)&&{markActive:i},{style:(0,wl.A)({},a,ze.style),className:fh(ze.className,i&&ye.markActive)})),null!=t.label?(0,Tl.jsx)(ke,(0,wl.A)({"aria-hidden":!0,"data-index":n},Ve,!Nx(ke)&&{markLabelActive:i},{style:(0,wl.A)({},a,Ve.style),className:fh(ye.markLabel,Ve.className,i&&ye.markLabelActive),children:t.label})):null]},n)})),fe.map(((e,t)=>{const n=lee(e,$,U),r=re[ce].offset(n),a="off"===Q?Nee:Ce;return(0,Tl.jsx)(a,(0,wl.A)({},!Nx(a)&&{valueLabelFormat:ee,valueLabelDisplay:Q,value:"function"===typeof ee?ee(Y(e),t):ee,index:t,open:se===t||le===t||"on"===Q,disabled:B},Be,{children:(0,Tl.jsx)(Se,(0,wl.A)({"data-index":t},Fe,{className:fh(ye.thumb,Fe.className,le===t&&ye.active,ue===t&&ye.focusVisible),style:(0,wl.A)({},r,ve(t),Fe.style),children:(0,Tl.jsx)(Te,(0,wl.A)({"data-index":t,"aria-label":z?z(t):P,"aria-valuenow":Y(e),"aria-labelledby":D,"aria-valuetext":V?V(Y(e),t):N,value:fe[t]},We))}))}),t)}))]}))})),Mee=Dee;function _ee(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 Iee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_ee(Object(n),!0).forEach((function(t){Ree(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ree(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oee(){return Oee=Object.assign||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},Oee.apply(this,arguments)}function Lee(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Fee,Bee,zee={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgrey:11119017,darkgreen:25600,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,grey:8421504,green:32768,greenyellow:11403055,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgrey:13882323,lightgreen:9498256,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Vee=(e,t)=>{var n="00000000".concat((16777215&e).toString(16).toUpperCase()).substr(-6);if(!Number.isNaN(t)&&void 0!==t){var r=t.toString(16).toUpperCase();1===r.length&&(r="0".concat(r)),n+=r}return n},Wee=e=>{var t=e.map((e=>{var t=e||0;return t<0&&(t=0),t>255&&(t=255),t}));return t[3]<<24|t[0]<<16|t[1]<<8|t[2]},Uee=e=>{if(!e||e.length<3||e.length>4)return{error:"not valid size"};var t=e.map(((e,t)=>"string"==typeof e?"%"!==e[e.length-1]?Math.round(Number(e)*(3===t?255:1)):Math.round(Number(e.substring(0,e.length-1))/100*255):Math.round(3===t?255*e:e)));return{format:"rgb",value:Wee(t),rgb:t,alpha:t[3]}},$ee=e=>{var t,n=Number("0x".concat(e.substring(1)));if(!Number.isInteger(n)||Number.isNaN(n))return{error:"Not an hex value"};var r=[];if(7===e.length||9===e.length){var a=9===e.length?8:0;r[0]=n>>16+a&255,r[1]=n>>8+a&255,r[2]=n>>a&255,9===e.length&&(t=255&n,r[3]=t,n=Wee(r))}else{if(4!==e.length&&5!==e.length)return{error:"Wrong format"};var i=5===e.length?4:0;r[0]=n>>8+i&15,r[1]=n>>4+i&15,r[2]=n>>i&15,r[0]|=r[0]<<4,r[1]|=r[1]<<4,r[2]|=r[2]<<4,5===e.length&&(t=15&n,t|=t<<4,r[3]=t),n=Wee(r)}return{format:"hex",value:n,rgb:r,alpha:t}},Hee=e=>{var t=e;return"string"==typeof t&&(t.indexOf("deg")>-1?t=t.substr(0,t.length-3):t.indexOf("rad")>-1?t=Math.round(t.substr(0,t.length-3)*(180/Math.PI)):t.indexOf("turn")>-1&&(t=Math.round(360*t.substr(0,t.length-4))),t=parseFloat(t,10)),Number.isNaN(t)&&(t=0),t>=360&&(t%=360),t<0&&(t=0),t},qee=e=>{var t=e;return"string"==typeof t&&(t=parseFloat(t.indexOf("%")>-1?t.substring(0,t.length-1):t,10)),Number.isNaN(t)?t=0:t>100?t=100:t<0&&(t=0),t},Gee=e=>{if(!e||e.length<3||e.length>4)return{error:"Not a valid size"};var t,n=e,r=Hee(n[0]),a=qee(n[1]),i=qee(n[2]);n[0]=r,n[1]=a,n[2]=i,i/=100;var o=(a/=100)*(1-Math.abs(2*i-1)),s=o*(1-Math.abs(r/60%2-1)),l=i-o/2;0===a?(t=[i,i,i],l=0):t=r>=0&&r<60?[o,s,0]:r>=60&&r<120?[s,o,0]:r>=120&&r<180?[0,o,s]:r>=180&&r<240?[0,s,o]:r>=240&&r<300?[s,0,o]:[o,0,s],t[0]=Math.round(255*(t[0]+l)),t[1]=Math.round(255*(t[1]+l)),t[2]=Math.round(255*(t[2]+l));var c=n[3];return void 0!==c&&("string"==typeof c&&(c=c.indexOf("%")>-1?parseFloat(c.substring(0,c.length-1),10)/100:parseFloat(c,10)),c=Math.floor(255*c),t[3]=c),{format:"hsl",value:Wee(t),rgb:t,hsl:n,alpha:c}},Kee=e=>{if(!e||e.length<3||e.length>4)return{error:"Not a valid size"};var t,n=Hee(e[0]),r=qee(e[1]),a=qee(e[2]);if(a*=2.55,0===r)t=[a=Math.round(a),a,a];else{n/=360,r/=100;var i=Math.floor(6*n),o=6*n-i,s=Math.round(a*(1-r)),l=Math.round(a*(1-r*o)),c=Math.round(a*(1-r*(1-o)));a=Math.round(a),t=0===(i%=6)?[a,c,s]:1===i?[l,a,s]:2===i?[s,a,c]:3===i?[s,l,a]:4===i?[c,s,a]:[a,s,l]}var u=e[3];return void 0!==u&&("string"==typeof u&&(u=u.indexOf("%")>-1?parseFloat(u.substring(0,u.length-1),10)/100:parseFloat(u,10)),u=Math.floor(255*u),t[3]=u),{format:"hsl",value:Wee(t),rgb:t,hsv:e,alpha:u}},Yee=e=>{var t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.min(t,n,r),i=Math.max(t,n,r);return{cmax:i,cmin:a,delta:i-a,r:t,g:n,b:r}},Xee=e=>{var t=e.substring(e.indexOf("(")+1,e.indexOf(")"));return t.indexOf(",")>-1?t.split(","):t.indexOf(" ")>-1?t.split(" ").filter((e=>e.length>0&&"/"!==e)):void 0},Zee=["plain","hex","rgb","hsl","hsv"],Jee=[e=>({format:"plain",value:zee[e[0]]}),e=>$ee(e[0]),e=>Uee(e),e=>Gee(e),e=>Kee(e)],Qee=[e=>({format:"plain",value:zee[e]}),e=>$ee(e),e=>Uee(Xee(e)),e=>Gee(Xee(e))],ete=[e=>void 0!==zee[e],e=>e.startsWith("#"),e=>e.startsWith("rgb(")||e.startsWith("rgba("),e=>e.startsWith("hsl(")||e.startsWith("hsla(")],tte=function(e,t){var n,r,a,i,o,s,l,c=arguments.length>2&&void 0!==arguments[2]&&arguments[2],u=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],d={raw:e},p=t||"unknown";if("transparent"===e)d.name=e,p="plain",r=0;else if("string"==typeof e){var h=e.trim().toLocaleLowerCase(),f=ete.findIndex((e=>e(h)));f>-1&&(({value:n,format:p,rgb:a,hsl:i,alpha:r,error:s}=Qee[f](h)),"plain"===p&&(d.name=e),p&&(d.css={backgroundColor:e}))}else if(Number.isInteger(e))n=e,p="number";else if(Array.isArray(e)&&p){var m=Zee.findIndex((e=>e===p));m>-1?({value:n,format:p,rgb:a,hsl:i,hsv:o,alpha:r,error:s}=Jee[m](e)):s="unkown format"}else e&&"r"in e&&"g"in e&&"b"in e?(a=[e.r,e.g,e.b],e.a&&a.push(e.a),({value:n,format:p,rgb:a,alpha:r,error:s}=Uee(a))):e&&"h"in e&&"s"in e&&"l"in e?(i=[e.h,e.s,e.l],e.a&&i.push(e.a),({value:n,format:p,rgb:a,hsl:i,alpha:r,error:s}=Gee(i))):e&&"h"in e&&"s"in e&&"v"in e&&(o=[e.h,e.s,e.v],e.a&&o.push(e.a),({value:n,format:p,rgb:a,hsv:o,alpha:r,error:s}=Kee(o)));void 0===n&&(n=0,r=0===r?r:void 0,d.css={backgroundImage:"\n        linear-gradient(45deg, #ccc 25%, transparent 25%), \n        linear-gradient(135deg, #ccc 25%, transparent 25%),\n        linear-gradient(45deg, transparent 75%, #ccc 75%),\n        linear-gradient(135deg, transparent 75%, #ccc 75%)",backgroundSize:"8px 8px",backgroundPosition:"0 0, 4px 0, 4px -4px, 0px 4px",backgroundColor:"white"},"transparent"!==e&&(p="unknown",d.name="none")),s&&(d.error=s),d.value=n,d.alpha=Number.isNaN(r)||void 0===r?1:r/255,d.format=p,c||1===d.alpha?1===d.alpha&&-16777216===d.value&&(l=255):l=Math.floor(255*d.alpha);var g=Vee(n,l);return d.hex=g,a=a||(e=>[(16711680&e)>>16,(65280&e)>>8,255&e])(n),d.rgb=a,d.hsv=o||(e=>{var{cmax:t,delta:n,r:r,g:a,b:i}=Yee(e);if(0===n)return[0,0,Math.round(100*t)];var o,s=t,l=n/t,c=(t-r)/n,u=(t-a)/n,d=(t-i)/n;return(o=(o=r===t?d-u:a===t?2+c-d:4+u-c)/6%1)<0&&(o+=1),[o=Math.round(360*o),l=Math.round(100*l),s=Math.round(100*s)]})(a),d.hsl=i||(e=>{var{cmin:t,cmax:n,delta:r,r:a,g:i,b:o}=Yee(e),s=0,l=0,c=(t+n)/2;0!==r&&(l=r/(1-Math.abs(2*c-1)),l=Math.round(+(100*l).toFixed(1)),s=n===a?(i-o)/r%6:n===i?(o-a)/r+2:(a-i)/r+4,(s=Math.round(60*s))<0&&(s+=360));var u=[s,l,c=Math.round(c+100*c)];return 4===e.length&&(u[3]=e[3]/255),u})(a),d.css||(d.css={backgroundColor:"#".concat(g)}),d.name||(d.name=u&&Object.keys(zee).find((e=>zee[e]===n))||"color-".concat(g)),d},nte=(e,t,n)=>{var r;return"hex"===t&&(r="#".concat(Vee(e.value,n||1===e.alpha?void 0:Math.floor(255*e.alpha)))),r},rte=function(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=e,o=!1;return e&&e.format&&e.name?i.error&&n&&(i.error=n(i.error)):(i=e,n&&"string"==typeof i&&(Fee&&r===Bee||(Bee=r,Fee={},Object.keys(zee).forEach((e=>{Fee[n(e)]=e}))),o=(i=Fee[i]||i)!==e),(i=tte(i,null,t,!a)).name&&n&&(i.translated=n(i.name),o&&i.translated&&(i.name=i.translated),i.error&&(i.error=n(i.error)))),i},ate=(0,Bc.oneOfType)([(0,Bc.shape)({css:(0,Bc.shape)({}),value:Bc.number,hex:Bc.string,raw:(0,Bc.oneOfType)([Bc.string,Bc.array,Bc.number,Bc.shape]),name:Bc.string,alpha:Bc.number,rgb:(0,Bc.arrayOf)(Bc.number),hsv:(0,Bc.arrayOf)(Bc.number),hsl:(0,Bc.arrayOf)(Bc.number)}),Bc.string,Bc.number]),ite=(0,Bc.objectOf)(Bc.string),ote=(0,Bc.arrayOf)(Bc.string),ste={use:()=>({i18n:{language:"us"},t:e=>e})},lte=e=>(e&&(ste.use=e),ste.use()),cte=["color","size","borderWidth","borderColor","forwardRef","tooltip","disableAlpha","className"],ute=cb({root:{backgroundImage:e=>e.colorError||e.alpha<1?"\n    linear-gradient(45deg, #ccc 25%, transparent 25%), \n    linear-gradient(135deg, #ccc 25%, transparent 25%),\n    linear-gradient(45deg, transparent 75%, #ccc 75%),\n    linear-gradient(135deg, transparent 75%, #ccc 75%)":"none",backgroundSize:"8px 8px",backgroundPosition:"0 0, 4px 0, 4px -4px, 0px 4px",backgroundColor:e=>e.backgroundColor||"#fff",boxShadow:"0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08)",borderColor:e=>e.borderColor||"#767676",borderStyle:"solid",borderWidth:e=>e.borderWidth||0,borderRadius:4,padding:0,width:e=>e.width,minWidth:e=>e.minWidth,height:e=>e.height,"& div":{content:'" "',background:e=>e.colorError?"repeating-linear-gradient(\n      135deg,\n      transparent,\n      transparent ".concat(e.width/2+2,"px,\n      #f44336 ").concat(e.width/2+2,"px,\n      #f44336 ").concat(e.width/2+4,"px\n    )"):"none",backgroundColor:e=>e.colorError?"transparent":e.backgroundColor||"#fff",width:e=>e.width,minWidth:e=>e.minWidth,height:e=>e.height,border:e=>e.colorError?"2px solid #f44336":"".concat(e.borderWidth||0,"px solid ").concat(e.borderColor||"#767676"),borderRadius:4,padding:0},"&:hover div":{backgroundColor:e=>e.hoverColor},"&:active":{boxShadow:"none"},"&:focus":{boxShadow:"0 0 0 0.2rem rgba(0, 123, 255, 0.5)"}},tooltip:{width:"min-content"}}),dte=t=>{var{color:n,size:r,borderWidth:a,borderColor:i,forwardRef:o,tooltip:s,disableAlpha:l,className:c}=t,u=Lee(t,cte),{t:d,i18n:p}=lte(),h=rte(n,l,d,p.language),f=d(s),m=h.css,g=h.hsl[2]-10;g<30&&(g=h.hsl[2]+50);var v=h.alpha,y="hsl(".concat(h.hsl[0],", ").concat(h.hsl[1],"%, ").concat(g,"%, ").concat(v,")"),b=ute(Iee({width:r,minWidth:r,height:r,hoverColor:y,borderColor:i,borderWidth:a,alpha:v,colorError:!!h.error},m)),x=e.createElement(vW,Oee({"data-testid":"colorbutton",className:"".concat(b.root," ").concat(null!=c?c:""),ref:o,variant:"contained","aria-label":h.name},u),e.createElement("div",null));return s?e.createElement(FS,{title:f},e.createElement("div",{className:b.tooltip},x)):x};dte.propTypes={color:ate.isRequired,size:zc().number,disableAlpha:zc().bool,borderWidth:zc().number,borderColor:zc().string,tooltip:zc().string,forwardRef:zc().shape({current:zc().elementType})},dte.defaultProps={size:24,borderWidth:0,borderColor:void 0,forwardRef:void 0,tooltip:void 0,disableAlpha:!1};var pte="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function hte(t){var n=e.useRef(t);return pte((()=>{n.current=t})),e.useCallback((function(){return(0,n.current)(...arguments)}),[])}var fte=["className","color","onChange","isHsl"],mte=cb({root:{position:"absolute",width:"inherit",height:"inherit",background:e=>"".concat(e.cssRgb," none repeat scroll 0% 0%"),margin:0},gradientPosition:{position:"absolute",width:"100%",height:"100%"},hsvGradientS:{background:"rgba(0, 0, 0, 0) linear-gradient(to right, rgb(255, 255, 255), rgba(255, 255, 255, 0)) repeat scroll 0% 0%"},hsvGradientV:{background:"rgba(0, 0, 0, 0) linear-gradient(to top, rgb(0, 0, 0), rgba(0, 0, 0, 0)) repeat scroll 0% 0%"},hslGradientS:{background:"rgba(0, 0, 0, 0) linear-gradient(to bottom, rgb(128, 128, 128), rgba(255, 255, 255, 0)) repeat scroll 0% 0%"},hslGradientL:{background:"rgba(0, 0, 0, 0) linear-gradient(to left, rgb(0, 0, 0), rgba(128, 128, 128, 0), rgb(255, 255, 255)) repeat scroll 0% 0%"},hsvGradientCursor:{position:"absolute",top:0,left:0,borderColor:"#f0f0f0",borderWidth:1,borderStyle:"solid",boxShadow:"rgba(0, 0, 0, 0.37) 0px 1px 4px 0px",transition:"box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",borderRadius:4,cursor:e=>!e.pressed&&"pointer",zIndex:100,transform:"translate(-4px, -4px)","&:hover":{boxShadow:"0px 0px 0px 8px rgba(63, 81, 181, 0.16)"},"&:focus":{outline:"none !important",boxShadow:"0px 0px 0px 8px rgba(63, 81, 181, 0.16)"},"&:focus > div":{}},hsvGradientCursorC:{width:8,height:8,borderRadius:4,boxShadow:"white 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08)"}}),gte=t=>{var{className:n,color:r,onChange:a,isHsl:i}=t,o=Lee(t,fte),s=e.useRef(r),[l,c]=e.useState(!1),u=e.useRef(!1);e.useEffect((()=>{s.current=r}));var d,p,h,f,m,g,v=e.useRef(),y=e.useRef(),b={x:0,y:0},x=(p=255,f=6*(d=r.hsv[0]/360)-(h=Math.floor(6*d)),m=Math.round(p*(1-f)),g=Math.round(p*f),p=Math.round(p),0==(h%=6)?[p,g,0]:1===h?[m,p,0]:2===h?[0,p,g]:3===h?[0,m,p]:4===h?[g,0,p]:[p,0,m]),w="rgb(".concat(x[0],",").concat(x[1],",").concat(x[2],")"),S=mte(Iee(Iee({},o),{},{cssRgb:w})),C=(e,t)=>{b=e,y.current.style.top="".concat(e.y,"px"),y.current.style.left="".concat(e.x,"px"),t&&y.current.focus()},A=e=>{if(e){var{hsv:t,hsl:n}=r;b={x:Math.round((i?100-n[2]:t[1])/100*(e.clientWidth-1)),y:Math.round((i?n[1]:100-t[2])/100*(e.clientHeight-1))},C(b)}};A(v.current),v.current&&(v.current.style.background="".concat(w," none repeat scroll 0% 0%"));var k=(e,t)=>{var{x:n,y:r}=e,o=t.getBoundingClientRect(),l={x:n-o.left,y:r-o.top};l.x<0&&(l.x=0),l.y<0&&(l.y=0),l.x>=t.clientWidth&&(l.x=t.clientWidth-1),l.y>=t.clientHeight&&(l.y=t.clientHeight-1),C(l,!0);var c=s.current;if(i){var u=l.y/(t.clientHeight-1)*100,d=100*(1-l.x/(t.clientWidth-1));a([c.hsl[0],u,d])}else{var p=l.x/(t.clientWidth-1)*100,h=100*(1-l.y/(t.clientHeight-1));a([c.hsv[0],p,h])}};e.useEffect((()=>{var e=v.current;A(e);var t=e=>{c(!0),u.current=!0,e.preventDefault()},n=t=>{var n={x:t.pageX-window.scrollX,y:t.pageY-window.scrollY};k(n,e),u.current=!1,t.preventDefault()},r=t=>{if(u.current&&t.buttons){var n={x:t.pageX-window.scrollX,y:t.pageY-window.scrollY};k(n,e),t.preventDefault()}},a=t=>{var n={x:t.touches[0].pageX-window.scrollX,y:t.touches[0].pageY-window.scrollY};k(n,e),t.preventDefault()};return e.addEventListener("mousedown",t),e.addEventListener("mouseup",n),e.addEventListener("mousemove",r),e.addEventListener("touchdown",t),e.addEventListener("touchup",n),e.addEventListener("touchmove",a),()=>{e.removeEventListener("mousedown",t),e.removeEventListener("mouseup",n),e.removeEventListener("mousemove",r),e.removeEventListener("touchdown",t),e.removeEventListener("touchup",n),e.removeEventListener("touchmove",a)}}),[]);var T=hte((e=>{if(l){var{x:t,y:n}=b;switch(e.key){case"ArrowRight":t+=1;break;case"ArrowLeft":t-=1;break;case"ArrowDown":n+=1;break;case"ArrowUp":n-=1;break;case"Tab":return void c(!1);default:return}e.preventDefault();var r=v.current.getBoundingClientRect();k({x:t+r.left,y:n+r.top},v.current)}})),j=hte((e=>{c(!0),e.preventDefault()})),E=hte((e=>{c(!1),e.preventDefault()}));return e.createElement("div",{className:n},e.createElement("div",Oee({className:S.root},o,{ref:v,"data-testid":"hsvgradient-color"}),e.createElement("div",{className:"muicc-hsvgradient-s ".concat(i?S.hslGradientS:S.hsvGradientS," ").concat(S.gradientPosition)},e.createElement("div",{className:"muicc-hsvgradient-v ".concat(i?S.hslGradientL:S.hsvGradientV," ").concat(S.gradientPosition)},e.createElement("div",{ref:y,tabIndex:"0",role:"slider","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":r.hsv[1],pressed:"".concat(u.current),"data-testid":"hsvgradient-cursor",className:"muicc-hsvgradient-cursor ".concat(S.hsvGradientCursor),onKeyDown:T,onFocus:j,onBlur:E},e.createElement("div",{className:"muicc-hsvgradient-cursor-c ".concat(S.hsvGradientCursorC)}))))))};gte.propTypes={color:ate.isRequired,className:zc().string.isRequired,onChange:zc().func.isRequired,isHsl:zc().bool},gte.defaultProps={isHsl:!1};var vte=["Element","defaultValue"],yte=["defaultValue","value","onChange"],bte=t=>{var{Element:n,defaultValue:r}=t,a=Lee(t,vte),[i,o]=e.useState(r);return e.createElement(n,Iee(Iee({},a),{},{value:i,onChange:o}))},xte=t=>{var n=n=>{var{defaultValue:r,value:a,onChange:i}=n,o=Lee(n,yte);return i||"none"!==a?e.createElement(t,Iee({value:a||r,onChange:i||(()=>{})},o)):e.createElement(bte,Iee({Element:t,defaultValue:r},o))};return n.propTypes=Iee(Iee({},t.propTypes),{},{defaultValue:t.propTypes.value,onChange:zc().func}),n.defaultProps=Iee(Iee({},t.defaultProps),{},{defaultValue:void 0,onChange:void 0}),n},wte=["value","format","onChange","disableAlpha","enableErrorDisplay","forwardRef","disablePlainColor"],Ste=cb({root:{display:"flex",flexDirection:"row"},colorinputRaw:{paddingRight:4},formControl:{width:100}}),Cte=t=>{var n,r,{value:a,format:i,onChange:o,disableAlpha:s,enableErrorDisplay:l,forwardRef:c,disablePlainColor:u}=t,d=Lee(t,wte),p=Ste(),{t:h,i18n:f}=lte(),m=rte(a,s,h,f.language,u),g=e=>{if("plain"===i)o(e.target.value);else if("hex"===i)o("#".concat(e.target.value));else{var t=e.target.id,n=Number(e.target.value),a={};Object.keys(r).forEach((e=>{var i=r[e].value;e===t&&((i=n)<r[e].min&&(i=r[e].min),i>r[e].max&&(i=r[e].max)),a[e]=i})),o(a)}},v=(t,n,r,a,i)=>e.createElement(e.Fragment,null,e.createElement(VN,{htmlFor:t,className:"muicc-colorinput-label","data-testid":"colorinput-label"},n),e.createElement(uM,Oee({id:t,name:t,className:"muicc-colorinput-input",label:n,value:r,placeholder:n,inputProps:{"aria-label":"color-".concat(n),"data-testid":"colorinput-input"},onChange:g,startAdornment:i&&a&&e.createElement(B0,{position:"start"},a)},d)));if("plain"===i)n=v("color-plain","Color",m.raw);else{r=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e=>e,a=rte(e,n,r),i={};if("rgb"===t)i.r={value:a.rgb[0],format:"integer",min:0,max:255,name:r("R")},i.g={value:a.rgb[1],format:"integer",min:0,max:255,name:r("G")},i.b={value:a.rgb[2],format:"integer",min:0,max:255,name:r("B")};else if("hsv"===t)i.h={value:a.hsv[0],format:"integer",min:0,max:360,name:r("H"),unit:"\xb0"},i.s={value:a.hsv[1],format:"integer",min:0,max:100,name:r("S"),unit:"%"},i.v={value:a.hsv[2],format:"integer",min:0,max:100,name:r("V"),unit:"%"};else if("hsl"===t)i.h={value:a.hsl[0],format:"integer",min:0,max:360,name:r("H"),unit:"\xb0"},i.s={value:a.hsl[1],format:"integer",min:0,max:100,name:r("S"),unit:"%"},i.l={value:a.hsl[2],format:"integer",min:0,max:100,name:r("L"),unit:"%"};else if("hex"===t){var{hex:o}=a;a.raw&&"string"==typeof a.raw&&a.raw.startsWith("#")&&(o=a.raw.substring(1)),i.hex={value:o,format:"hex",name:r("HEX"),unit:"#"}}else i.value=r(a.value),i.format="unknown";return i}(m,i,s,h);var y=Object.keys(r);n=e.createElement("div",{ref:c,className:p.root},y.map((t=>e.createElement(PN,{key:t,className:"muicc-colorinput-raw ".concat(p.colorinputRaw),error:!!m.error},v(t,r[t].name,r[t].value,r[t].unit,1===y.length)))))}return e.createElement(PN,{className:p.formControl,error:!!m.error,"data-testid":"colorinput"},n,l&&m.error&&e.createElement(MU,{id:"component-error-text"},m.error))};Cte.propTypes={value:ate,format:zc().string,onChange:zc().func.isRequired,disableAlpha:zc().bool,enableErrorDisplay:zc().bool,forwardRef:zc().shape({current:zc().elementType}),disablePlainColor:zc().bool},Cte.defaultProps={value:"none",format:"plain",forwardRef:void 0,disableAlpha:!1,enableErrorDisplay:!0,disablePlainColor:!1};var Ate=xte(Cte),kte=cb({root:{display:"flex",flexDirection:"row",flexWrap:"wrap",padding:"8px 0 0 8px"},paletteButton:{margin:"0 8px 8px 0",padding:0}}),Tte=t=>{var{size:n,borderWidth:r,palette:a,onSelect:i,disableAlpha:o}=t,s=kte(),{t:l}=lte();return e.createElement("div",{className:s.root},Object.keys(a).map((t=>e.createElement(dte,{size:n,key:"".concat(t),color:a[t],className:"muicc-palette-button ".concat(s.paletteButton),borderWidth:r,tooltip:t,disableAlpha:o,onClick:()=>(e=>{var t=l(e);i&&i(t,a[e])})(t)}))))};Tte.propTypes={borderWidth:zc().number,size:zc().number,palette:ite.isRequired,forwardRef:zc().shape({current:zc().elementType}),onSelect:zc().func,disableAlpha:zc().bool},Tte.defaultProps={borderWidth:0,size:24,forwardRef:void 0,onSelect:void 0,disableAlpha:!1};var jte=cb((()=>({root:{width:"100%",height:16,padding:0},rail:{height:16,opacity:1,background:"rgba(0, 0, 0, 0) linear-gradient(to right, rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100% ) repeat scroll 0% 0%",borderRadius:0},track:{height:16,opacity:0,borderRadius:4,backgroundColor:"transparent"},thumb:{width:16,height:16,marginTop:0,marginLeft:-8,backgroundColor:"#f0f0f0",boxShadow:"rgba(0, 0, 0, 0.37) 0px 1px 4px 0px","&:focus":{boxShadow:"0px 0px 0px 8px rgba(63, 81, 181, 0.16)"}}})));function Ete(t){var n=jte();return e.createElement(Mee,Oee({},t,{classes:{root:n.root,rail:n.rail,track:n.track,thumb:n.thumb}}))}var Pte=["color"],Nte=cb({root:{color:"#666",width:"100%",height:16,padding:0,background:"linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(135deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(135deg, transparent 75%, #ccc 75%)",backgroundSize:"8px 8px",backgroundColor:"white",backgroundPosition:"0 0, 4px 0, 4px -4px, 0px 4px"},rail:{height:16,opacity:1,background:e=>"rgba(0, 0, 0, 0) linear-gradient(to right, ".concat(e.color,"00 0%, ").concat(e.color," 100%) repeat scroll 0% 0%"),borderRadius:0},track:{height:16,opacity:0,borderRadius:4},thumb:{width:16,height:16,marginTop:0,marginLeft:-8,backgroundColor:"#f0f0f0",boxShadow:"rgba(0, 0, 0, 0.37) 0px 1px 4px 0px","&:focus":{boxShadow:"0px 0px 0px 8px rgba(63, 81, 181, 0.16)"}}});function Dte(t){var{color:n}=t,r=Lee(t,Pte),a=Nte({color:n});return e.createElement(Mee,Oee({},r,{classes:{root:a.root,rail:a.rail,track:a.track,thumb:a.thumb}}))}Dte.propTypes={color:ate.isRequired};var Mte=["value","palette","inputFormats","deferred","onChange","disableAlpha","hslGradient"],_te=cb((e=>({root:{backgroundColor:e.palette?e.palette.background.paper:"fff",position:"relative",width:"min-content",height:"min-content",padding:"0px"},container:{justifyContent:"space-around",overflow:"hidden",width:e=>e.boxWidth,padding:0},colorboxHsvGradient:{width:e=>"calc(".concat(e.boxWidth,"px - 16px)"),height:"calc(128px - 16px)",margin:8},colorboxSliders:{width:e=>e.boxWidth,padding:"8px 8px 4px 8px"},colorboxInputs:{display:"flex",flexDirection:"row",flexWrap:"wrap",padding:"8px 4px 8px 8px",justifyContent:"space-between"},colorboxInput:{},colorboxColorBg:{width:48,height:48,background:"linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(135deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(135deg, transparent 75%, #ccc 75%)",backgroundSize:"8px 8px",backgroundPosition:"0 0, 4px 0, 4px -4px, 0px 4px",backgroundColor:"white",borderRadius:4},colorboxColor:{width:48,height:48,background:e=>e.colorError?"repeating-linear-gradient(\n      135deg,\n      transparent,\n      transparent 29px,\n      #f44336 29px,\n      #f44336 32px\n    )":"none",backgroundColor:e=>e.colorError?"transparent":e.backgroundColor,borderRadius:4,border:e=>e.colorError?"2px solid #f44336":"none"},colorboxControls:{display:"flex",flexDirection:"row",flexWrap:"wrap",padding:8,"&> button":{marginLeft:"auto"}},colorboxError:{color:"#f44336",lineHeight:"36.5px"}}))),Ite=t=>{var n,{value:r,palette:a,inputFormats:i,deferred:o,onChange:s,disableAlpha:l,hslGradient:c}=t,u=Lee(t,Mte),{t:d,i18n:p}=lte(),h=rte(r,l,d,p.language),f=s;o&&([h,f]=e.useState(h),n=s);var{hsv:m,hsl:g}=h,{alpha:v}=h;v=void 0===v?100:Math.floor(100*v);var y=nte(h,"hex",!0),{backgroundColor:b}=h.css,x=_te({boxWidth:320,backgroundColor:b,colorError:!!h.error}),w=e=>{var t=tte(e);f(t)};return e.createElement(Xm,Oee({p:2,className:x.root},u),e.createElement(Xm,{className:x.container},e.createElement(gte,{className:"muicc-colorbox-hsvgradient ".concat(x.colorboxHsvGradient),color:h,onChange:e=>{var t=tte(e,c?"hsl":"hsv");f(t)},isHsl:c}),e.createElement("div",{className:"muicc-colorbox-sliders ".concat(x.colorboxSliders)},e.createElement(Ete,{"data-testid":"hueslider","aria-label":"color slider",value:c?g[0]:m[0],min:0,max:360,onChange:(e,t)=>{var n=tte([t,h.hsv[1],h.hsv[2]],"hsv");f(n)}}),!l&&e.createElement(Dte,{"data-testid":"alphaslider",color:y,valueLabelDisplay:"auto","aria-label":"alpha slider",value:v,min:0,max:100,onChange:(e,t)=>{var n=t/100,r=tte([h.rgb[0],h.rgb[1],h.rgb[2],n],"rgb");f(r)}})),i.length>0&&e.createElement("div",{className:"muicc-colorbox-inputs  ".concat(x.colorboxInputs)},e.createElement("div",{className:"muicc-colorbox-colorBg ".concat(x.colorboxColorBg)},e.createElement("div",{className:"muicc-colorbox-color ".concat(x.colorboxColor)})),i.map((t=>e.createElement(Ate,{key:t,value:h,format:t,disableAlpha:!0,enableErrorDisplay:!1,className:"muicc-colorbox-input ".concat(x.colorboxInput),onChange:w})))),a&&e.createElement(e.Fragment,null,e.createElement(sC,null),e.createElement(Tte,{size:26.65,palette:a,onSelect:(e,t)=>{var n=tte(t);n.name=e,f(n)},disableAlpha:l})),e.createElement("div",{className:"muicc-colorbox-controls ".concat(x.colorboxControls)},h.error&&e.createElement("span",{className:"muicc-colorbox-error ".concat(x.colorboxError),"data-testid":"colorbox-error"},d(h.error)),o&&e.createElement(vW,{onClick:()=>{n(h)}},d("Set")))))};Ite.propTypes={value:ate,deferred:zc().bool,palette:ite,inputFormats:ote,onChange:zc().func.isRequired,disableAlpha:zc().bool,hslGradient:zc().bool},Ite.defaultProps={value:void 0,deferred:!1,palette:void 0,inputFormats:["hex","rgb"],disableAlpha:!1,hslGradient:!1};var Rte=xte(Ite),Ote=cb({root:{display:"flex",flexDirection:"row",width:"max-content"},colorpickerButton:{margin:6}}),Lte=vv({seed:"ColorPicker"}),Fte=t=>{var{value:n,disableTextfield:r,deferred:a,palette:i,inputFormats:o,openAtStart:s,onChange:l,onOpen:c,doPopup:u,disableAlpha:d,hslGradient:p,hideTextfield:h,disablePlainColor:f}=t,m=Ote(),g=(0,e.useRef)(null),[v,y]=(0,e.useState)(!1),{t:b,i18n:x}=lte(),w=rte(n,d,b,x.language,f),S=((e,t)=>{var n=t?"color-".concat(e.hex):e.name;return n.startsWith("color-")?n="string"==typeof e.raw&&e.raw.startsWith("#")?e.raw:nte(e,"hex"):"none"===n&&(n=e.raw),n})(w,f);(0,e.useEffect)((()=>{s&&y(!0)}),[s]);var C=()=>{var e=Boolean(g.current);y(e),c&&c(e)},A=()=>{y(!1),c&&c(!1)},k=e.createElement(Rte,{value:w,style:{position:"relative"},deferred:a,palette:i,inputFormats:o,disableAlpha:d,hslGradient:p,onChange:e=>{l(e),a&&A()}});k=u?u(k):e.createElement(TD,{id:"color-popover",open:v,anchorEl:g.current,onClose:A,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},k);var T=null;return h||(T=r?e.createElement("div",{role:"button","data-testid":"colorpicker-noinput",onClick:C},w.raw):e.createElement(FU,{color:"primary",value:S,onChange:e=>{l(e.target.value)},"data-testid":"colorpicker-input"})),e.createElement(tb,{generateClassName:Lte},e.createElement("div",{ref:g,className:m.root},e.createElement(dte,{"data-testid":"colorpicker-button",className:"muicc-colorpicker-button ".concat(m.colorpickerButton),color:w,onClick:C}),T,k))};Fte.propTypes={value:ate,disableTextfield:zc().bool,deferred:zc().bool,palette:ite,inputFormats:ote,onChange:zc().func.isRequired,onOpen:zc().func,openAtStart:zc().bool,doPopup:zc().func,disableAlpha:zc().bool,hslGradient:zc().bool,hideTextfield:zc().bool,disablePlainColor:zc().bool},Fte.defaultProps={value:"none",disableTextfield:!1,deferred:!1,palette:void 0,inputFormats:["hex","rgb"],onOpen:void 0,openAtStart:!1,doPopup:void 0,disableAlpha:!1,hslGradient:!1,hideTextfield:!1,disablePlainColor:!1};var Bte=xte(Fte);const zte=function(){const t=cb((e=>({root:{width:"100%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},cardContainer:{[e.breakpoints.down("md")]:{width:"100%",overflowY:"scroll"},display:"flex",flexDirection:"column",marginBottom:"20px",width:"60%"},error:{color:e.palette.error.main},copy:{color:e.palette.primary.copy}}))),r=t(),a=n(4407),i=Oc(qC),[o,s]=(0,e.useState)(!1),[l,c]=(0,e.useState)(""),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(!1),[f,m]=(0,e.useState)(!1),[g,v]=(0,e.useState)([{val:"normal"},{val:"bold"},{val:"bolder"},{val:"lighter"}]),[y,b]=(0,e.useState)([{val:"none"},{val:"underline"},{val:"overline underline"}]),[x,w]=(0,e.useState)([{val:"absolute"},{val:"relative"},{val:"sticky"},{val:"fixed"}]),[S,C]=(0,e.useState)([{name:"Fade-out",val:"fo"},{name:"Permanent",val:"p"}]),[A,k]=(0,e.useState)(!1),[T,j]=(0,e.useState)(""),[E,P]=(0,e.useState)(tte("#fff")),[N,D]=(0,e.useState)(""),[M,_]=(0,e.useState)(""),[I,R]=(0,e.useState)(""),[O,L]=(0,e.useState)(""),[F,B]=(0,e.useState)(tte("#fff")),[z,V]=(0,e.useState)(""),[W,U]=(0,e.useState)(""),[$,H]=(0,e.useState)(tte("#fff")),[q,G]=(0,e.useState)(""),[K,Y]=(0,e.useState)({}),[X,Z]=(0,e.useState)({}),[J,Q]=(0,e.useState)({}),[ee,te]=(0,e.useState)({}),[ne,re]=(0,e.useState)({}),[ae,ie]=(0,e.useState)(null),oe=e=>{(e=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/banner/getBanner/"+e).then((e=>e.data)))(e).then((e=>{k(e.isVisible),j(e.html),P(tte(e.backgroundColor)),D(e.topPadding),_(e.rightPadding),R(e.bottomPadding),L(e.leftPadding),B(tte(e.textColor)),V(e.textSize),U(e.lineHeight),H(tte(e.linkColor)),G(e.linkSize),ie(e.fadeOutTime),g.forEach((t=>{t.val===e.linkWeight&&Z(t),t.val===e.textWeight&&Y(t)})),y.forEach((t=>{t.val===e.linkDecoration&&Q(t)})),x.forEach((t=>{t.val===e.position&&te(t)})),S.forEach((t=>{t.val===e.displayOption&&re(t)}))}))};function se(){if(""===T||void 0===T||null===T)return void m(!0);vU((e=>tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/banner/editbanner",e).then((e=>e.data)))({ClientId:i.id,Html:T,BackgroundColor:"#"+E.hex,LeftPadding:O,RightPadding:M,TopPadding:N,BottomPadding:I,TextColor:"#"+F.hex,TextSize:z,TextWeight:K.val,LinkColor:"#"+$.hex,LinkSize:q,LinkWeight:X.val,LineHeight:W,LinkDecoration:J.val,IsVisible:A,Position:ee.val,DisplayOption:ne.val,FadeOutTime:null===ae?0:ae}),"Banner Saved",s,c,d,h).then((()=>{oe(i.id)}))}return(0,e.useEffect)((()=>{k(!1),j(""),P(tte("#fff")),D(""),_(""),R(""),L(""),B(tte("#fff")),V(""),U(""),H(tte("#fff")),G(""),Z({}),Y({}),Q({}),te({}),re({}),ie(null),null!==i&&oe(i.id)}),[i]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:o,setShowSignifier:s,message:l,error:u}),(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[i.shortName," Banner"]}),(0,Tl.jsx)("div",{className:r.root,children:(0,Tl.jsx)(CN,{className:r.cardContainer,children:(0,Tl.jsx)(WM,{className:r.card,children:(0,Tl.jsx)(SU,{children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{xs:12,sm:12,item:!0,children:(0,Tl.jsx)($Y,{className:r.copy,style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:A,onChange:()=>k(!A)}),label:"Display Banner"})}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:12,children:[(0,Tl.jsx)(FU,{multiline:!0,placeholder:"HTML Text",label:"HTML Text",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:r.copy},error:f&&(null===T||void 0===T||""===T),value:null===T?T:a(T),onChange:e=>j(e.target.value)}),f&&(null===T||void 0===T||""===T)&&(0,Tl.jsx)(MU,{className:r.error,children:"HTML Required"})]}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:12,style:{paddingTop:"15px"},children:[(0,Tl.jsx)(MU,{children:"Background Color"}),(0,Tl.jsx)(Bte,{value:E,onChange:e=>P(e),className:r.copy})]}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:3,children:(0,Tl.jsx)(FU,{placeholder:"Top Padding",label:"Top Padding",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:r.copy},value:N,onChange:e=>D(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:3,children:(0,Tl.jsx)(FU,{placeholder:"Right Padding",label:"Right Padding",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:r.copy},value:M,onChange:e=>_(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:3,children:(0,Tl.jsx)(FU,{placeholder:"Bottom Padding",label:"Bottom Padding",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:r.copy},value:I,onChange:e=>R(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:3,children:(0,Tl.jsx)(FU,{placeholder:"Left Padding",label:"Left Padding",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:r.copy},value:O,onChange:e=>L(e.target.value)})}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:12,style:{paddingTop:"15px"},children:[(0,Tl.jsx)(MU,{children:"Text Color"}),(0,Tl.jsx)(Bte,{value:F,onChange:e=>B(e)})]}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Text Size",label:"Text Size",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:r.copy},value:z,onChange:e=>V(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(gJ,{currValue:K,items:g,property:"val",title:"Text Weight",handleChange:e=>Y(e)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Line Height",label:"Line Height",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:r.copy},value:W,onChange:e=>U(e.target.value)})}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:12,style:{paddingTop:"15px"},children:[(0,Tl.jsx)(MU,{children:"Hyperlink Color"}),(0,Tl.jsx)(Bte,{value:$,onChange:e=>H(e)})]}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Hyperlink Size",label:"Hyperlink Size",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:r.copy},value:q,onChange:e=>G(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(gJ,{currValue:X,items:g,property:"val",title:"Hyperlink Weight",handleChange:e=>Z(e)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(gJ,{currValue:J,items:y,property:"val",title:"Hyperlink Decoration",handleChange:e=>Q(e)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(gJ,{currValue:ee,items:x,property:"val",title:"Position",handleChange:e=>te(e)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(gJ,{currValue:ne,items:S,property:"name",title:"Display Options",handleChange:e=>re(e)})}),"fo"===ne.val?(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Fade-out Time (seconds)",label:"Fade-out Time (seconds)",variant:"standard",fullWidth:!0,required:!0,type:"number",InputProps:{className:r.copy},value:ae,onChange:e=>ie(e.target.value)})}):null,(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,container:!0,justifyContent:"flex-end",children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginRight:"8px"},className:r.sensitiveButton,type:"submit",variant:"contained",color:"primary",onClick:()=>se(),children:"Save Information"})})]})})})})})]})]})},Vte=e=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/map/getmapconfiguration/"+e).then((e=>e.data));const Wte=function(){var t;const n=cb((e=>({root:{width:"50%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},cardContainer:{[e.breakpoints.down("md")]:{width:"100%",overflowY:"scroll"},display:"flex",flexDirection:"column",marginBottom:"20px",width:"50%"},error:{color:e.palette.error.main},copy:{color:e.palette.primary.copy}}))),r=n(),a=Oc(qC),i=Oc(eh),[o,s]=(0,e.useState)(!1),[l,c]=(0,e.useState)(""),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(!1),[f,m]=(0,e.useState)([]),[g,v]=(0,e.useState)(""),[y,b]=(0,e.useState)(!1),[x,w]=(0,e.useState)("");function S(){vU((e=>tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/map/editmapconfiguration",e).then((e=>e.data)))({ClientId:a.id,templateId:g.id,mapConfig:{ClientId:a.id,MapMarkerImageName:x,ShowOnlyLocationsWithJobs:y}}),"Map configuration Saved",s,c,d,h).then((()=>{Vte(a.id).then((e=>{var t,n;e.templates.push({name:"None",id:""}),m(e.templates),w(null===(t=e.mapConfig)||void 0===t?void 0:t.mapMarkerImageName),b(null===(n=e.mapConfig)||void 0===n?void 0:n.showOnlyLocationsWithJobs)}))}))}return(0,e.useEffect)((()=>{null!==a&&Vte(a.id).then((e=>{var t,n;e.templates.push({name:"None",id:""}),m(e.templates),w(null===(t=e.mapConfig)||void 0===t?void 0:t.mapMarkerImageName),b(null===(n=e.mapConfig)||void 0===n?void 0:n.showOnlyLocationsWithJobs)}))}),[a]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:o,setShowSignifier:s,message:l,error:u}),(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[a.shortName," Map Configuration"]}),(0,Tl.jsx)("div",{className:r.root,children:(0,Tl.jsx)(CN,{className:r.cardContainer,children:(0,Tl.jsx)(WM,{className:r.card,children:(0,Tl.jsx)(SU,{children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[Hu(i,null===(t=a.id)||void 0===t?void 0:t.toUpperCase(),il)?(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(gJ,{currValue:g,items:f,property:"name",title:"Assign To Template",handleChange:e=>v(e)})}):null,(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(FU,{placeholder:"Map Location Marker Name",label:"Map Location Marker Name",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:r.copy},value:x,onChange:e=>w(e.target.value)})}),(0,Tl.jsx)(CN,{xs:12,sm:12,item:!0,children:(0,Tl.jsx)($Y,{className:r.copy,style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:y,onChange:()=>b(!y)}),label:"Show Only Locations With Jobs"})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,container:!0,justifyContent:"flex-end",children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginRight:"8px"},className:r.sensitiveButton,type:"submit",variant:"contained",color:"primary",onClick:()=>S(),children:"Save Information"})})]})})})})})]})]})},Ute=e=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/jobsancillary/"+e).then((e=>e.data));const $te=function(){var t;const n=cb((e=>({root:{width:"70%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},cardContainer:{[e.breakpoints.down("md")]:{width:"100%",overflowY:"scroll"},display:"flex",flexDirection:"column",marginBottom:"20px",width:"50%"},error:{color:e.palette.error.main},copy:{color:e.palette.primary.copy}}))),r=n(),a=Oc(qC),i=Oc(eh),[o,s]=(0,e.useState)(!1),[l,c]=(0,e.useState)(""),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(!1),[f,m]=(0,e.useState)([]),[g,v]=(0,e.useState)(""),[y,b]=(0,e.useState)(!1),[x,w]=(0,e.useState)(!1),[S,C]=(0,e.useState)("");function A(){vU((e=>tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/jobsancillary/editancillaryconfiguration",e).then((e=>e.data)))({ClientId:a.id,templateId:g.id,ancillaryConfig:{ClientId:a.id,HasMoreLikeThisData:x,Size:S,HasLocationMap:y}}),"Ancillary Saved",s,c,d,h).then((()=>{Ute(a.id).then((e=>{var t,n,r,a;e.templates.push({name:"None",id:""}),m(e.templates),w(null===(t=e.ancillaryConfig)||void 0===t?void 0:t.hasMoreLikeThisData),b(null===(n=e.ancillaryConfig)||void 0===n?void 0:n.hasLocationMap),C(void 0===(null===(r=e.ancillaryConfig)||void 0===r?void 0:r.size)?"":null===(a=e.ancillaryConfig)||void 0===a?void 0:a.size)}))}))}return(0,e.useEffect)((()=>{null!==a&&Ute(a.id).then((e=>{var t,n,r;e.templates.push({name:"None",id:""}),m(e.templates),w(null===(t=e.ancillaryConfig)||void 0===t?void 0:t.hasMoreLikeThisData),b(null===(n=e.ancillaryConfig)||void 0===n?void 0:n.hasLocationMap),C(null===(r=e.ancillaryConfig)||void 0===r?void 0:r.size)}))}),[a]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:o,setShowSignifier:s,message:l,error:u}),(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[a.shortName," Job Details Ancillary"]}),(0,Tl.jsx)("div",{className:r.root,children:(0,Tl.jsx)(CN,{className:r.cardContainer,children:(0,Tl.jsx)(WM,{className:r.card,children:(0,Tl.jsx)(SU,{children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[Hu(i,null===(t=a.id)||void 0===t?void 0:t.toUpperCase(),il)?(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(gJ,{currValue:g,items:f,property:"name",title:"Assign To Template",handleChange:e=>v(e)})}):null,(0,Tl.jsx)(CN,{xs:12,sm:6,item:!0,children:(0,Tl.jsx)($Y,{className:r.copy,style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:y,onChange:()=>b(!y)}),label:"Display Map in Job Description"})}),(0,Tl.jsx)(CN,{xs:12,sm:6,item:!0,children:(0,Tl.jsx)($Y,{className:r.copy,style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:x,onChange:()=>w(!x)}),label:"Display Similar Jobs in Job Description"})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(FU,{placeholder:"Number of Similar Jobs to Display",label:"Number of Similar Jobs to Display",variant:"standard",fullWidth:!0,type:"number",InputProps:{className:r.copy},value:S,onChange:e=>C(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,container:!0,justifyContent:"flex-end",children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginRight:"8px"},className:r.sensitiveButton,type:"submit",variant:"contained",color:"primary",onClick:()=>A(),children:"Save Information"})})]})})})})})]})]})};const Hte=function(){var t,n,r,a,i,o,s,l,c,u,d,p,h,f,m,g;const v=cb((e=>({root:{width:"80%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},cardContainer:{[e.breakpoints.down("md")]:{width:"100%",overflowY:"scroll"},display:"flex",flexDirection:"column",marginBottom:"20px",width:"100%"},error:{color:e.palette.error.main}}))),y=v();let b=zu();const x=Oc(qC),[w,S]=(0,e.useState)(""),[C,A]=(0,e.useState)(""),[k,T]=(0,e.useState)(""),[j,E]=(0,e.useState)("");return(0,e.useEffect)((()=>{if(null!==b.state){var e;S(b.state.clientId);var t="",n="",r="",a=null===(e=b.state)||void 0===e?void 0:e.talentNetworkUserDataGroupXrefs;for(var i in a){var o,s,l,c,u,d,p,h,f,m,g,v;if((null===(o=a[i])||void 0===o||null===(s=o.group)||void 0===s?void 0:s.typeId)===nJ)r+=(null===(p=a[i])||void 0===p||null===(h=p.group)||void 0===h?void 0:h.name)+",";if((null===(l=a[i])||void 0===l||null===(c=l.group)||void 0===c?void 0:c.typeId)===tJ)n+=(null===(f=a[i])||void 0===f||null===(m=f.group)||void 0===m?void 0:m.name)+",";if((null===(u=a[i])||void 0===u||null===(d=u.group)||void 0===d?void 0:d.typeId)===eJ)t+=(null===(g=a[i])||void 0===g||null===(v=g.group)||void 0===v?void 0:v.name)+","}A(t),T(n),E(r)}}),[]),null===b.state||x.id!==w&&""!==w?(0,Tl.jsx)(ju,{to:"/marketreport"}):(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[x.shortName," User Report"]}),(0,Tl.jsxs)("div",{className:y.root,children:[(0,Tl.jsx)("span",{children:(null===(t=b.state)||void 0===t?void 0:t.fullName)+" - "+(null===(n=b.state)||void 0===n?void 0:n.phoneNumber)+" - "+(null===(r=b.state)||void 0===r?void 0:r.email)}),(0,Tl.jsx)(CN,{className:y.cardContainer,children:(0,Tl.jsx)(WM,{className:y.card,children:(0,Tl.jsx)(SU,{children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:3,children:(0,Tl.jsx)(FU,{placeholder:"Zip Code",label:"Zip Code",variant:"standard",fullWidth:!0,value:null===(a=b.state)||void 0===a?void 0:a.zip,disabled:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:3,children:(0,Tl.jsx)(FU,{placeholder:"City",label:"City",variant:"standard",fullWidth:!0,value:null===(i=b.state)||void 0===i?void 0:i.city,disabled:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:3,children:(0,Tl.jsx)(FU,{placeholder:"State",label:"State",variant:"standard",fullWidth:!0,value:null===(o=b.state)||void 0===o?void 0:o.state,disabled:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:3,children:(0,Tl.jsx)(FU,{placeholder:"Country",label:"Country",variant:"standard",fullWidth:!0,value:null===(s=b.state)||void 0===s?void 0:s.country,disabled:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Current Position",label:"Current Position",variant:"standard",fullWidth:!0,value:null===(l=b.state)||void 0===l?void 0:l.currentPosition,disabled:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:8,children:(0,Tl.jsx)(FU,{placeholder:"Certificatons",label:"Certificatons",variant:"standard",fullWidth:!0,value:null===(c=b.state)||void 0===c?void 0:c.certifications,disabled:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Custom Data 1",label:"Custom Data 1",variant:"standard",fullWidth:!0,value:null===(u=b.state)||void 0===u?void 0:u.other1,disabled:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Custom Data 2",label:"Custom Data 2",variant:"standard",fullWidth:!0,value:null===(d=b.state)||void 0===d?void 0:d.other2,disabled:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Custom Data 3",label:"Custom Data 3",variant:"standard",fullWidth:!0,value:null===(p=b.state)||void 0===p?void 0:p.other3,disabled:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:2,children:(0,Tl.jsx)(FU,{placeholder:"Internal",label:"Internal",variant:"standard",fullWidth:!0,value:null!==(h=b.state)&&void 0!==h&&h.isInternal?"Yes":"No",disabled:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Level of Interest",label:"Level of Interest",variant:"standard",fullWidth:!0,value:null===(f=b.state)||void 0===f?void 0:f.interestLevel,disabled:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:2,children:(0,Tl.jsx)(FU,{placeholder:"Signup Date",label:"Signup Date",variant:"standard",fullWidth:!0,value:null===(m=b.state)||void 0===m?void 0:m.dateCreated,disabled:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:2,children:(0,Tl.jsx)(FU,{placeholder:"Last Updated Date",label:"Last Updated Date",variant:"standard",fullWidth:!0,value:null===(g=b.state)||void 0===g?void 0:g.dateUpdated,disabled:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(FU,{placeholder:"Categories",label:"Categories",variant:"standard",fullWidth:!0,value:C,disabled:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(FU,{placeholder:"Families",label:"Families",variant:"standard",fullWidth:!0,value:k,disabled:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(FU,{placeholder:"Industries",label:"Industries",variant:"standard",fullWidth:!0,value:j,disabled:!0})})]})})})})]})]})})};function qte(e){return Ff("MuiDatePickerToolbar",e)}Bf("MuiDatePickerToolbar",["root","title"]);const Gte=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className"],Kte=nf(h1,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Yte=nf(mx,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})((e=>{let{ownerState:t}=e;return(0,wl.A)({},t.isLandscape&&{margin:"auto 16px auto auto"})})),Xte=e.forwardRef((function(t,n){const r=nQ({props:t,name:"MuiDatePickerToolbar"}),{value:a,isLandscape:i,toolbarFormat:o,toolbarPlaceholder:s="\u2013\u2013",views:l,className:c}=r,u=(0,Sl.A)(r,Gte),d=c0(),p=d0(),h=(e=>{const{classes:t}=e;return mh({root:["root"],title:["title"]},qte,t)})(r),f=e.useMemo((()=>{if(!a)return s;const e=SQ(d,{format:o,views:l},!0);return d.formatByString(a,e)}),[a,o,s,d,l]),m=r;return(0,Tl.jsx)(Kte,(0,wl.A)({ref:n,toolbarTitle:p.datePickerToolbarTitle,isLandscape:i,className:e1(h.root,c)},u,{children:(0,Tl.jsx)(Yte,{variant:"h4",align:i?"left":"center",ownerState:m,className:h.title,children:f})}))}));function Zte(t,n){var r,a,i,o;const s=c0(),l=u0(),c=nQ({props:t,name:n}),u=e.useMemo((()=>{var e;return null==(null==(e=c.localeText)?void 0:e.toolbarTitle)?c.localeText:(0,wl.A)({},c.localeText,{datePickerToolbarTitle:c.localeText.toolbarTitle})}),[c.localeText]),d=null!=(r=c.slots)?r:N1(c.components);return(0,wl.A)({},c,{localeText:u},hQ({views:c.views,openTo:c.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:null!=(a=c.disableFuture)&&a,disablePast:null!=(i=c.disablePast)&&i,minDate:gQ(s,c.minDate,l.minDate),maxDate:gQ(s,c.maxDate,l.maxDate),slots:(0,wl.A)({toolbar:Xte},d),slotProps:null!=(o=c.slotProps)?o:c.componentsProps})}const Jte=e=>{let{props:t,inputRef:n}=e;const r=(e=>{var t,n,r;const a=c0(),i=u0();return(0,wl.A)({},e,{disablePast:null!=(t=e.disablePast)&&t,disableFuture:null!=(n=e.disableFuture)&&n,format:null!=(r=e.format)?r:a.formats.keyboardDate,minDate:gQ(a,e.minDate,i.minDate),maxDate:gQ(a,e.maxDate,i.maxDate)})})(t),{forwardedProps:a,internalProps:i}=D0(r,"date");return S0({inputRef:n,forwardedProps:a,internalProps:i,valueManager:ZQ,fieldValueManager:JQ,validator:C0,valueType:"date"})},Qte=["components","componentsProps","slots","slotProps","InputProps","inputProps"],ene=["inputRef"],tne=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],nne=e.forwardRef((function(e,t){var n,r,a;const i=nQ({props:e,name:"MuiDateField"}),{components:o,componentsProps:s,slots:l,slotProps:c,InputProps:u,inputProps:d}=i,p=(0,Sl.A)(i,Qte),h=i,f=null!=(n=null!=(r=null==l?void 0:l.textField)?r:null==o?void 0:o.TextField)?n:FU,m=a0({elementType:f,externalSlotProps:null!=(a=null==c?void 0:c.textField)?a:null==s?void 0:s.textField,externalForwardedProps:p,ownerState:h}),{inputRef:g}=m,v=(0,Sl.A)(m,ene);v.inputProps=(0,wl.A)({},d,v.inputProps),v.InputProps=(0,wl.A)({},u,v.InputProps);const y=Jte({props:v,inputRef:g}),{ref:b,onPaste:x,onKeyDown:w,inputMode:S,readOnly:C,clearable:A,onClear:k}=y,T=(0,Sl.A)(y,tne),{InputProps:j,fieldProps:E}=K0({onClear:k,clearable:A,fieldProps:T,InputProps:T.InputProps,slots:l,slotProps:c,components:o,componentsProps:s});return(0,Tl.jsx)(f,(0,wl.A)({ref:t},E,{InputProps:(0,wl.A)({},j,{readOnly:C}),inputProps:(0,wl.A)({},T.inputProps,{inputMode:S,onPaste:x,onKeyDown:w,ref:b})}))})),rne=e.forwardRef((function(e,t){var n,r,a,i;const o=d0(),s=c0(),l=Zte(e,"MuiDesktopDatePicker"),c=(0,wl.A)({day:s5,month:s5,year:s5},l.viewRenderers),u=(0,wl.A)({},l,{viewRenderers:c,format:SQ(s,l,!1),yearsPerRow:null!=(n=l.yearsPerRow)?n:4,slots:(0,wl.A)({openPickerIcon:U0,field:nne},l.slots),slotProps:(0,wl.A)({},l.slotProps,{field:e=>{var n;return(0,wl.A)({},uQ(null==(n=l.slotProps)?void 0:n.field,e),P0(l),{ref:t})},toolbar:(0,wl.A)({hidden:!0},null==(r=l.slotProps)?void 0:r.toolbar)})}),{renderPicker:d}=h3({props:u,valueManager:ZQ,valueType:"date",getOpenDialogAriaText:null!=(a=null==(i=u.localeText)?void 0:i.openDatePickerDialogue)?a:o.openDatePickerDialogue,validator:C0});return d()}));rne.propTypes={autoFocus:zc().bool,className:zc().string,closeOnSelect:zc().bool,components:zc().object,componentsProps:zc().object,dayOfWeekFormatter:zc().func,defaultCalendarMonth:zc().any,defaultValue:zc().any,disabled:zc().bool,disableFuture:zc().bool,disableHighlightToday:zc().bool,disableOpenPicker:zc().bool,disablePast:zc().bool,displayWeekNumber:zc().bool,fixedWeekNumber:zc().number,format:zc().string,formatDensity:zc().oneOf(["dense","spacious"]),inputRef:dQ,label:zc().node,loading:zc().bool,localeText:zc().object,maxDate:zc().any,minDate:zc().any,monthsPerRow:zc().oneOf([3,4]),name:zc().string,onAccept:zc().func,onChange:zc().func,onClose:zc().func,onError:zc().func,onMonthChange:zc().func,onOpen:zc().func,onSelectedSectionsChange:zc().func,onViewChange:zc().func,onYearChange:zc().func,open:zc().bool,openTo:zc().oneOf(["day","month","year"]),orientation:zc().oneOf(["landscape","portrait"]),readOnly:zc().bool,reduceAnimations:zc().bool,referenceDate:zc().any,renderLoading:zc().func,selectedSections:zc().oneOfType([zc().oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),zc().number,zc().shape({endIndex:zc().number.isRequired,startIndex:zc().number.isRequired})]),shouldDisableDate:zc().func,shouldDisableMonth:zc().func,shouldDisableYear:zc().func,showDaysOutsideCurrentMonth:zc().bool,slotProps:zc().object,slots:zc().object,sx:zc().oneOfType([zc().arrayOf(zc().oneOfType([zc().func,zc().object,zc().bool])),zc().func,zc().object]),timezone:zc().string,value:zc().any,view:zc().oneOf(["day","month","year"]),viewRenderers:zc().shape({day:zc().func,month:zc().func,year:zc().func}),views:zc().arrayOf(zc().oneOf(["day","month","year"]).isRequired),yearsPerRow:zc().oneOf([3,4])};const ane=e.forwardRef((function(e,t){var n,r,a;const i=d0(),o=c0(),s=Zte(e,"MuiMobileDatePicker"),l=(0,wl.A)({day:s5,month:s5,year:s5},s.viewRenderers),c=(0,wl.A)({},s,{viewRenderers:l,format:SQ(o,s,!1),slots:(0,wl.A)({field:nne},s.slots),slotProps:(0,wl.A)({},s.slotProps,{field:e=>{var n;return(0,wl.A)({},uQ(null==(n=s.slotProps)?void 0:n.field,e),P0(s),{ref:t})},toolbar:(0,wl.A)({hidden:!1},null==(n=s.slotProps)?void 0:n.toolbar)})}),{renderPicker:u}=P3({props:c,valueManager:ZQ,valueType:"date",getOpenDialogAriaText:null!=(r=null==(a=c.localeText)?void 0:a.openDatePickerDialogue)?r:i.openDatePickerDialogue,validator:C0});return u()}));ane.propTypes={autoFocus:zc().bool,className:zc().string,closeOnSelect:zc().bool,components:zc().object,componentsProps:zc().object,dayOfWeekFormatter:zc().func,defaultCalendarMonth:zc().any,defaultValue:zc().any,disabled:zc().bool,disableFuture:zc().bool,disableHighlightToday:zc().bool,disableOpenPicker:zc().bool,disablePast:zc().bool,displayWeekNumber:zc().bool,fixedWeekNumber:zc().number,format:zc().string,formatDensity:zc().oneOf(["dense","spacious"]),inputRef:dQ,label:zc().node,loading:zc().bool,localeText:zc().object,maxDate:zc().any,minDate:zc().any,monthsPerRow:zc().oneOf([3,4]),name:zc().string,onAccept:zc().func,onChange:zc().func,onClose:zc().func,onError:zc().func,onMonthChange:zc().func,onOpen:zc().func,onSelectedSectionsChange:zc().func,onViewChange:zc().func,onYearChange:zc().func,open:zc().bool,openTo:zc().oneOf(["day","month","year"]),orientation:zc().oneOf(["landscape","portrait"]),readOnly:zc().bool,reduceAnimations:zc().bool,referenceDate:zc().any,renderLoading:zc().func,selectedSections:zc().oneOfType([zc().oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),zc().number,zc().shape({endIndex:zc().number.isRequired,startIndex:zc().number.isRequired})]),shouldDisableDate:zc().func,shouldDisableMonth:zc().func,shouldDisableYear:zc().func,showDaysOutsideCurrentMonth:zc().bool,slotProps:zc().object,slots:zc().object,sx:zc().oneOfType([zc().arrayOf(zc().oneOfType([zc().func,zc().object,zc().bool])),zc().func,zc().object]),timezone:zc().string,value:zc().any,view:zc().oneOf(["day","month","year"]),viewRenderers:zc().shape({day:zc().func,month:zc().func,year:zc().func}),views:zc().arrayOf(zc().oneOf(["day","month","year"]).isRequired),yearsPerRow:zc().oneOf([3,4])};const ine=["desktopModeMediaQuery"],one=e.forwardRef((function(e,t){const n=nQ({props:e,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=x0}=n,a=(0,Sl.A)(n,ine);return cQ(r,{defaultMatches:!0})?(0,Tl.jsx)(rne,(0,wl.A)({ref:t},a)):(0,Tl.jsx)(ane,(0,wl.A)({ref:t},a))}));function sne(e){let{value:t,setValue:n,label:r}=e;return(0,Tl.jsx)(iQ,{dateAdapter:t7,children:(0,Tl.jsx)(one,{label:r,value:t,onChange:e=>n(e)})})}const lne=(e,t,n,r,a,i,o,s)=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/reports/"+e+"/"+t+"/"+n+"/"+o+"/"+s,{params:{...null!==r?{industryType:r}:{},...null!==a?{familyType:a}:{},...null!==i?{categoryType:i}:{}}}).then((e=>e.data)),cne=(e,t,n,r,a)=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/reports/getReport/"+e+"/"+t+"/"+n+"/"+r+"/"+a).then((e=>e.data)),une=(e,t)=>{var n=JSON.stringify(t),r={method:"post",url:OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/reports/getUserList/"+e,headers:{"Content-Type":"application/json"},data:n};tl()(r).then((function(e){const t=window.URL.createObjectURL(new Blob([e.data])),n=document.createElement("a");return n.href=t,n.setAttribute("download","export_data.csv"),document.body.appendChild(n),n.click(),!0})).catch((function(e){return console.log(e),!1}))},dne=cb((e=>({rowCell:{cursor:"pointer",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},image:{maxWidth:"100px",height:"auto"}})));function pne(e){let{columns:t,element:n,index:r,setTableData:a}=e;const i=dne();return(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsx)(FW,{hover:!0,className:i.rowCell,component:ch,to:{pathname:"/marketreport/reportuser",state:n},style:{background:r%2?"rgba(0,0,0,.08)":"white"},children:t.map(((e,t)=>(0,Tl.jsx)(HW,{align:"left",children:n[e.propName]},t)))},r)})}function hne(){const e=Mc(),t=Oc(gE);return{effects:{},getters:{startDate:t.startDate,endDate:t.endDate},handlers:{},setters:{setStartDate:function(t){e(hE(t))},setEndDate:function(t){e(fE(t))}}}}const fne=function(t){var n,r,a,i;let{adTypes:o,optIn:s}=t;const l=cb((e=>({root:{[e.breakpoints.down("md")]:{width:"100%",paddingBottom:"80px"},height:"100%",display:"flex",flexDirection:"column",height:"100%"},cardContainer:{[e.breakpoints.down("md")]:{width:"100%",overflowY:"scroll"},display:"flex",flexDirection:"column",marginBottom:"20px",width:"95%"},graph:{width:"95%",height:"30vh",[e.breakpoints.down("md")]:{height:"300px"}},sensitiveButton:{marginTop:"20px",height:"50%",width:"90%",[e.breakpoints.down("md")]:{width:"100%"}}}))),c=l(),u=Sb(),d=Oc(qC),p=hne(),[h,f]=(0,e.useState)(null),[m,g]=(0,e.useState)(null),[v,y]=(0,e.useState)(null),[b,x]=(0,e.useState)(!1),[w,S]=(0,e.useState)(!1),[C,A]=(0,e.useState)({dates:[],dateVal:[],users:[]}),k={labels:C.dates,datasets:[{data:C.dateVal,fill:!0,lineTension:.4,backgroundColor:u.palette.primary.graph,borderColor:u.palette.primary.main}]},T=e=>{e.dateVal=e.dates.map((e=>e.item2)),e.dates=e.dates.map((e=>nV(e.item1))),e.users.forEach((e=>{null==e.firstName||null==e.lastName?e.fullName="Name Not Provided":e.fullName=e.firstName+" "+e.lastName,e.dateCreated=eV(e.dateCreated),e.dateUpdated=eV(e.dateUpdated)})),A(e)};return(0,e.useEffect)((()=>{x(!0),lne(d.id,p.getters.startDate.toDateString(),p.getters.endDate.toDateString(),null,null,null,s,w).then((e=>{T(e),x(!1)}))}),[d,p.getters.startDate,p.getters.endDate,s]),(0,Tl.jsxs)("div",{className:c.root,children:[(0,Tl.jsx)(CN,{className:c.cardContainer,children:(0,Tl.jsx)(WM,{className:c.card,children:(0,Tl.jsx)(SU,{children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,columns:14,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:2,children:(0,Tl.jsx)(sne,{value:p.getters.startDate,setValue:p.setters.setStartDate,label:"Start Date"})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:2,children:(0,Tl.jsx)(sne,{value:p.getters.endDate,setValue:p.setters.setEndDate,label:"End Date"})}),(null===(n=o.industries)||void 0===n?void 0:n.length)>0?(0,Tl.jsx)(CN,{item:!0,xs:!0,children:(0,Tl.jsx)(gJ,{currValue:h,items:o.industries,property:"name",title:"Industry",handleChange:e=>f(e),emptyRow:!0})}):null,(null===(r=o.families)||void 0===r?void 0:r.length)>0?(0,Tl.jsx)(CN,{item:!0,xs:!0,children:(0,Tl.jsx)(gJ,{currValue:m,items:o.families,property:"name",title:"Family",handleChange:e=>g(e),emptyRow:!0})}):null,(null===(a=o.categories)||void 0===a?void 0:a.length)>0?(0,Tl.jsx)(CN,{item:!0,xs:!0,children:(0,Tl.jsx)(gJ,{currValue:v,items:o.categories,property:"name",title:"Category",handleChange:e=>y(e),emptyRow:!0})}):null,(0,Tl.jsx)(CN,{item:!0,xs:!0,children:(0,Tl.jsx)($Y,{style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:w,onChange:()=>S(!w)}),label:"Aggregate"})}),(0,Tl.jsx)(CN,{item:!0,xs:!0,children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",height:"50%",width:"90%"},className:c.sensitiveButton,type:"submit",variant:"contained",color:"primary",onClick:()=>(()=>{let e=void 0===(null===h||void 0===h?void 0:h.id)?null:h.id,t=void 0===(null===m||void 0===m?void 0:m.id)?null:m.id,n=void 0===(null===v||void 0===v?void 0:v.id)?null:v.id;x(!0),lne(d.id,p.getters.startDate.toDateString(),p.getters.endDate.toDateString(),e,t,n,s,w).then((e=>{T(e),x(!1)}))})(),children:"Apply"})})]})})})}),(0,Tl.jsx)("div",{className:c.graph,children:(0,Tl.jsx)(Qz,{data:k,title:s?"Marketing Signups":"Job Alert Signups",loading:b})}),(null===(i=C.users)||void 0===i?void 0:i.length)>0&&s?(0,Tl.jsx)(CN,{container:!0,spacing:1,children:(0,Tl.jsx)(CN,{item:!0,xs:12,sm:1,container:!0,children:(0,Tl.jsx)(vW,{className:c.sensitiveButton,type:"submit",variant:"contained",color:"primary",onClick:()=>une(d.id,C.users),children:"Export"})})}):null,s?(0,Tl.jsx)(GX,{columns:[{label:"Name",propName:"fullName"},{label:"Email Address",propName:"email"},{label:"Created On",propName:"dateCreated"},{label:"Updated On",propName:"dateUpdated"}],tableData:C.users,rowComponent:pne,loading:b,hideSearch:!0}):null]})};MF.register(...xz);const mne=cb({root:{position:"relative",height:"60vh",width:"95%"}});const gne=function(e){let{data:t,title:n,loading:r}=e;const a=mne();return(0,Tl.jsx)("div",{className:a.root,children:r?(0,Tl.jsx)(Zz,{}):(0,Tl.jsx)(Nz,{data:t,options:{maintainAspectRatio:!1,responsive:!0,indexAxis:"y",plugins:{datalabels:{formatter:function(e,t,n){if(0===e)return e=""}},legend:{display:!1},title:{display:!0,text:n,color:"#58595b",font:{size:16,family:"Arial"}}}}})})};const vne=function(t){var n;let{allTypes:r,type:a,label:i,optIn:o}=t;const s=cb((e=>({root:{[e.breakpoints.down("md")]:{width:"100%"},height:"100%",display:"flex",flexDirection:"column"},cardContainer:{[e.breakpoints.down("md")]:{width:"100%",overflowY:"scroll"},display:"flex",flexDirection:"column",marginBottom:"20px",width:"50%"},graph:{width:"95%",height:"75vh",[e.breakpoints.down("md")]:{height:"300px"}},sensitiveButton:{marginTop:"20px",height:"50%",width:"90%",[e.breakpoints.down("md")]:{width:"100%"}}}))),l=s(),c=Sb(),u=Oc(qC),d=hne(),[p,h]=(0,e.useState)({dates:[],dateVal:[],users:[]}),[f,m]=(0,e.useState)(!1),g={labels:p.dataTypes,datasets:[{data:p.dataVal,fill:!0,lineTension:.4,backgroundColor:c.palette.primary.graph,borderColor:c.palette.primary.main}]},v=e=>{e.dataVal=e.data.map((e=>e.item2)),e.dataTypes=e.data.map((e=>e.item1)),e.users.forEach((e=>{null==e.firstName||null==e.lastName?e.fullName="Name Not Provided":e.fullName=e.firstName+" "+e.lastName,e.dateCreated=eV(e.dateCreated),e.dateUpdated=eV(e.dateUpdated)})),h(e)};return(0,e.useEffect)((()=>{r.length>0&&(m(!0),cne(u.id,d.getters.startDate.toDateString(),d.getters.endDate.toDateString(),a,o).then((e=>{v(e),m(!1)})))}),[u,d.getters.startDate,d.getters.endDate,o]),(0,Tl.jsx)(Tl.Fragment,{children:0===r.length?(0,Tl.jsx)("span",{children:"No "+i+" Data"}):(0,Tl.jsxs)("div",{className:l.root,children:[(0,Tl.jsx)(CN,{className:l.cardContainer,children:(0,Tl.jsx)(WM,{className:l.card,children:(0,Tl.jsx)(SU,{children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(sne,{value:d.getters.startDate,setValue:d.setters.setStartDate,label:"Start Date"})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(sne,{value:d.getters.endDate,setValue:d.setters.setEndDate,label:"End Date"})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,container:!0,justifyContent:"flex-end",children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",height:"50%",width:"90%"},className:l.sensitiveButton,type:"submit",variant:"contained",color:"primary",onClick:()=>(m(!0),void cne(u.id,d.getters.startDate.toDateString(),d.getters.endDate.toDateString(),a,o).then((e=>{v(e),m(!1)}))),children:"Apply"})})]})})})}),(0,Tl.jsx)(gne,{data:g,title:o?i+" Marketing Signups":i+" Job Alerts Signups",loading:f}),(null===(n=p.users)||void 0===n?void 0:n.length)>0&&o?(0,Tl.jsx)(CN,{container:!0,spacing:1,children:(0,Tl.jsx)(CN,{item:!0,xs:12,sm:1,container:!0,children:(0,Tl.jsx)(vW,{className:l.sensitiveButton,type:"submit",variant:"contained",color:"primary",onClick:()=>une(u.id,p.users),children:"Export"})})}):null,o?(0,Tl.jsx)(GX,{columns:[{label:"Name",propName:"fullName"},{label:"Email Address",propName:"email"},{label:"Created On",propName:"dateCreated"},{label:"Updated On",propName:"dateUpdated"}],tableData:p.users,rowComponent:pne,loading:f,hideSearch:!0}):null]})})};const yne=function(t){const n=cb((e=>({root:{height:"100%",[e.breakpoints.down("md")]:{width:"100%",paddingBottom:"80px"}},autocomplete:{width:"35%",paddingBottom:"20px",[e.breakpoints.down("md")]:{width:"100%"}},hint:{position:"absolute",left:0,right:0,top:0,bottom:0,marginTop:"auto",marginBottom:"auto",marginLeft:"auto",marginRight:"auto",width:"300px",height:"300px",fontSize:"32px",textAlign:"center",color:"rgba(0,0,0,.6)"}}))),r=n(),a=Oc(qC),[i,o]=(0,e.useState)([]);return(0,e.useEffect)((()=>{var e;null!==a&&(e=a.id,tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/reports/getAdTypes/"+e).then((e=>e.data))).then((e=>{!function(e){const n=[];n.push({title:"Full Report",component:(0,Tl.jsx)(fne,{adTypes:e,optIn:t.props.optIn})}),e.industries.length>0&&n.push({title:"By Industry",component:(0,Tl.jsx)(vne,{allTypes:e.industries,type:nJ,label:"Industry",optIn:t.props.optIn})});e.families.length>0&&n.push({title:"By Family",component:(0,Tl.jsx)(vne,{allTypes:e.families,type:tJ,label:"Family",optIn:t.props.optIn})});e.categories.length>0&&n.push({title:"By Category",component:(0,Tl.jsx)(vne,{allTypes:e.categories,type:eJ,label:"Category",optIn:t.props.optIn})});o(n)}(e)}))}),[a,t]),(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsx)("h1",{className:"page-title",children:t.props.optIn?a.shortName+" Marketing Report":a.shortName+" Job Alert Report"}),(0,Tl.jsx)("div",{className:r.root,children:null===a?(0,Tl.jsx)("div",{className:r.hint,children:(0,Tl.jsx)("span",{children:"Select a client"})}):(0,Tl.jsx)(FZ,{tabs:i})})]})})};const bne=async e=>await tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/usermanagement/resetpassword/"+e);const xne=function(){const t=cb((e=>({root:{width:"50%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},cardContainer:{[e.breakpoints.down("md")]:{width:"100%",overflowY:"scroll"},display:"flex",flexDirection:"column",marginBottom:"20px",width:"50%"},error:{color:e.palette.error.main}}))),n=t(),r=Oc(ZC),[a,i]=(0,e.useState)(!1),{mutateAsync:o,isLoading:s}=Qj((async e=>{const t=await bne(e);if(200!==t.status)throw new Error("Error sending reset password email");return t.data}),{mutationKey:["resetPassword"],onError:e=>{console.error(e)}}),{displaySuccess:l,displayError:c}=OP(),u=(0,e.useCallback)((async function(){s||await o(null===r||void 0===r?void 0:r.email,{onError:()=>{c("Error resetting password!")},onSuccess:()=>{l(`Reset email sent to ${null===r||void 0===r?void 0:r.email}!`)}})}),[null===r||void 0===r?void 0:r.email,c,l,s,o]);return(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsx)("h1",{className:"page-title",children:"Profile"}),(0,Tl.jsx)("div",{className:n.root,children:(0,Tl.jsx)(CN,{className:n.cardContainer,children:(0,Tl.jsx)(WM,{className:n.card,children:(0,Tl.jsx)(SU,{children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(FU,{placeholder:"Username",label:"Username",variant:"standard",fullWidth:!0,value:null===r||void 0===r?void 0:r.nickname,disabled:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(FU,{placeholder:"Email Address",label:"Email Address",variant:"standard",fullWidth:!0,value:null===r||void 0===r?void 0:r.email,disabled:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,container:!0,justifyContent:"flex-end",children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginRight:"8px"},className:n.sensitiveButton,type:"submit",variant:"contained",color:"secondary",onClick:()=>i(!0),children:"Reset Password"})})]})})})})})]}),(0,Tl.jsx)(jW,{open:a,onClose:()=>i(!1),children:(0,Tl.jsx)(gU,{question:"Reset Password?",func:()=>u(),closeModal:()=>i(!1)})})]})},wne=cb((e=>({rowCell:{cursor:"pointer !important",background:e.palette.primary.blue,textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},rowCellOdd:{cursor:"pointer !important",background:"white",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},itemIcon:{cursor:"grab"},tableCell:{color:e.palette.primary.copy}})));function Sne(e){const t=wne(e);return(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsx)(FW,{hover:!0,className:e.index%2?t.rowCell:t.rowCellOdd,ref:e.innerRef,...e,children:e.columns.map(((n,r)=>(0,Tl.jsx)(HW,{align:"left",className:t.tableCell,children:"Selected"===n.label?(0,Tl.jsx)($Y,{style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:e.element.selected,onChange:()=>function(t){var n=[...e.tableData];n[t].selected=!n[t].selected,e.setTableData(n)}(e.index)}),label:""}):""===n.label?(0,Tl.jsx)(Px,{className:t.itemIcon,children:(0,Tl.jsx)(_m,{})}):e.element[n.propName]},r)))},e.index)})}const Cne=(e,t)=>tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/featuredjobdetaildisplay/editfeaturedjobdetailconfiguration/"+e,t).then((e=>e.data));const Ane=function(){const t=cb((e=>({root:{width:"50%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},card:{[e.breakpoints.down("md")]:{width:"100%",overflowY:"scroll"},display:"flex",flexDirection:"column",marginBottom:"20px",width:"100%"},error:{color:e.palette.error.main},copy:{color:e.palette.primary.copy}}))),n=t(),r=Oc(qC),[a,i]=(0,e.useState)(!1),[o,s]=(0,e.useState)(""),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)([]),[f,m]=(0,e.useState)(!1),[g,v]=(0,e.useState)(!1),[y,b]=(0,e.useState)(!1),[x,w]=(0,e.useState)(!1),[S,C]=(0,e.useState)(!1),[A,k]=(0,e.useState)(""),[T,j]=(0,e.useState)(""),[E,P]=(0,e.useState)(""),N=()=>{var e;m(!0),(e=r.id,tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/featuredjobdetaildisplay/"+e).then((e=>e.data))).then((e=>{var t,n,r,a,i,o,s,l,c,u;v(null===(t=e.featuredConfig)||void 0===t?void 0:t.hasLocationData),b(null===(n=e.featuredConfig)||void 0===n?void 0:n.hasNoCountMessage),w(null===(r=e.featuredConfig)||void 0===r?void 0:r.useCarousel),C(!(null!==(a=e.featuredConfig)&&void 0!==a&&a.carouselDisplayVertically)),k(null===(null===(i=e.featuredConfig)||void 0===i?void 0:i.automaticCarouselAfter)?"":null===(o=e.featuredConfig)||void 0===o?void 0:o.automaticCarouselAfter),j(null===(null===(s=e.featuredConfig)||void 0===s?void 0:s.carouselShowCount)?"":null===(l=e.featuredConfig)||void 0===l?void 0:l.carouselShowCount),P(null===(null===(c=e.featuredConfig)||void 0===c?void 0:c.noCountMessage)?"":null===(u=e.featuredConfig)||void 0===u?void 0:u.noCountMessage),e.properties.sort(((e,t)=>{var n,r;const a=kU(null===(n=e.clientFeaturedAdDetailsPropertyConfigurations[0])||void 0===n?void 0:n.order,null===(r=t.clientFeaturedAdDetailsPropertyConfigurations[0])||void 0===r?void 0:r.order);return 0!==a?a:e[1]-t[1]})),e.properties.forEach((e=>{var t,n,r;e.selected=(null===(t=e.clientFeaturedAdDetailsPropertyConfigurations)||void 0===t?void 0:t.length)>0,e.label=void 0===(null===(n=e.clientFeaturedAdDetailsPropertyConfigurations[0])||void 0===n?void 0:n.displayName)?"":null===(r=e.clientFeaturedAdDetailsPropertyConfigurations[0])||void 0===r?void 0:r.displayName})),h(e.properties),m(!1)}))};return(0,e.useEffect)((()=>{if(p.length>0&&!f){var e=[],t=1;p.forEach((n=>{if(n.selected){let a={AvailableAdDetailsPropertyId:n.id,ClientId:r.id,DisplayName:n.label,Order:t};t+=1,e.push(a)}}));let n={ClientId:r.id,HasLocationData:g,HasNoCountMessage:y,NoCountMessage:E,UseCarousel:x,AutomaticCarouselAfter:A,CarouselShowCount:T,CarouselDisplayVertically:!S},a={ClientId:r.id,selectedProperties:e,featuredConfig:n};Cne(r.id,a)}}),[p]),(0,e.useEffect)((()=>{null!==r&&(b(!1),w(!1),C(!1),k(""),j(""),P(""),N())}),[r]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:a,setShowSignifier:i,message:o,error:l}),(0,Tl.jsx)("div",{className:n.root,children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,className:n.card,children:[(0,Tl.jsx)(WM,{children:(0,Tl.jsx)(SU,{children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{xs:12,sm:4,item:!0,children:(0,Tl.jsx)($Y,{className:n.copy,style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:y,onChange:()=>b(!y)}),label:"Has No Jobs Message"})}),(0,Tl.jsx)(CN,{xs:12,sm:4,item:!0,children:(0,Tl.jsx)($Y,{className:n.copy,style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:x,onChange:()=>w(!x)}),label:"Display as Carousel"})}),(0,Tl.jsx)(CN,{xs:12,sm:4,item:!0,children:(0,Tl.jsx)($Y,{className:n.copy,style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:S,onChange:()=>C(!S)}),label:"Display Carousel Horizontally"})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Automatic Carousel After",label:"Automatic Carousel After",variant:"standard",fullWidth:!0,required:!0,type:"number",InputProps:{className:n.copy},value:A,onChange:e=>k(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Slides in Carousel (default: 2)",label:"Slides in Carousel (default: 2)",variant:"standard",fullWidth:!0,required:!0,type:"number",InputProps:{className:n.copy},value:T,onChange:e=>j(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"No Jobs Message",label:"No Jobs Message",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:n.copy},value:E,onChange:e=>P(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,container:!0,justifyContent:"flex-end",children:(0,Tl.jsx)(vW,{style:{marginTop:"10px",marginRight:"8px"},className:n.sensitiveButton,type:"submit",variant:"contained",color:"primary",onClick:()=>function(){var e=[],t=1;p.forEach((n=>{if(n.selected){let a={AvailableAdDetailsPropertyId:n.id,ClientId:r.id,DisplayName:n.label,Order:t};t+=1,e.push(a)}}));let n={ClientId:r.id,HasLocationData:g,HasNoCountMessage:y,NoCountMessage:E,UseCarousel:x,AutomaticCarouselAfter:A,CarouselShowCount:T,CarouselDisplayVertically:!S},a={ClientId:r.id,selectedProperties:e,featuredConfig:n};vU(Cne(r.id,a),"Featured Display Saved",i,s,c,d).then((()=>{N()}))}(),children:"Save Information"})})]})})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12}),(0,Tl.jsx)(NY,{columns:[{label:"Selected",propName:"selected"},{label:"Property",propName:"detailsPropertyAdminText"},{label:"",propName:""}],tableData:p,setTableData:h,rowComponent:Sne,loading:!1})]})})]})},kne=cb((e=>({rowCell:{cursor:"pointer !important",background:e.palette.primary.blue,textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},rowCellOdd:{cursor:"pointer !important",background:"white",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},itemIcon:{cursor:"grab"},tableCell:{color:e.palette.primary.copy}})));function Tne(e){const t=kne(e);return(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsx)(FW,{hover:!0,className:e.index%2?t.rowCell:t.rowCellOdd,ref:e.innerRef,...e,children:e.columns.map(((n,r)=>(0,Tl.jsx)(HW,{align:"left",className:t.tableCell,children:"Selected"===n.label?(0,Tl.jsx)($Y,{style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:e.element.selected,onChange:()=>function(t){var n=[...e.tableData];n[t].selected=!n[t].selected,e.setTableData(n)}(e.index)}),label:""}):""===n.label?(0,Tl.jsx)(Px,{size:"large",className:t.itemIcon,children:(0,Tl.jsx)(_m,{})}):e.element[n.propName]},r)))},e.index)})}const jne=e=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/featuredjobgroupsdisplay/"+e).then((e=>e.data)),Ene=(e,t)=>tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/featuredjobgroupsdisplay/editfeaturedjobgroupsconfiguration/"+e,t).then((e=>e.data));function Pne(e){return Ff("MuiCardHeader",e)}const Nne=Bf("MuiCardHeader",["root","avatar","action","content","title","subheader"]),Dne=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],Mne=nf("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>(0,wl.A)({[`& .${Nne.title}`]:t.title,[`& .${Nne.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),_ne=nf("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),Ine=nf("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),Rne=nf("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),One=e.forwardRef((function(e,t){const n=rf({props:e,name:"MuiCardHeader"}),{action:r,avatar:a,className:i,component:o="div",disableTypography:s=!1,subheader:l,subheaderTypographyProps:c,title:u,titleTypographyProps:d}=n,p=(0,Sl.A)(n,Dne),h=(0,wl.A)({},n,{component:o,disableTypography:s}),f=(e=>{const{classes:t}=e;return mh({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},Pne,t)})(h);let m=u;null==m||m.type===mx||s||(m=(0,Tl.jsx)(mx,(0,wl.A)({variant:a?"body2":"h5",className:f.title,component:"span",display:"block"},d,{children:m})));let g=l;return null==g||g.type===mx||s||(g=(0,Tl.jsx)(mx,(0,wl.A)({variant:a?"body2":"body1",className:f.subheader,color:"text.secondary",component:"span",display:"block"},c,{children:g}))),(0,Tl.jsxs)(Mne,(0,wl.A)({className:fh(f.root,i),as:o,ref:t,ownerState:h},p,{children:[a&&(0,Tl.jsx)(_ne,{className:f.avatar,ownerState:h,children:a}),(0,Tl.jsxs)(Rne,{className:f.content,ownerState:h,children:[m,g]}),r&&(0,Tl.jsx)(Ine,{className:f.action,ownerState:h,children:r})]}))})),Lne=One;const Fne=function(){const t=function(){const t=Oc(qC).id,[n,r]=(0,e.useState)(!1),[a,i]=(0,e.useState)(""),[o,s]=(0,e.useState)(!1),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(!1),[f,m]=(0,e.useState)(!1),[g,v]=(0,e.useState)(""),[y,b]=(0,e.useState)(""),[x,w]=(0,e.useState)(""),[S,C]=(0,e.useState)(!1),[A,k]=(0,e.useState)(""),[T,j]=(0,e.useState)(!1),[E,P]=(0,e.useState)(""),[N,D]=(0,e.useState)(!1),[M,_]=(0,e.useState)(""),[I,R]=(0,e.useState)(!1),[O,L]=(0,e.useState)([]),F=(0,e.useCallback)((async()=>{d(!0);const e=await jne(t);B(e.featuredConfig),z(e),d(!1)}),[t]),B=e=>{h(e.carouselDisplayVertically),m(e.groupHasNoCountMessage),v(e.groupNoCountMessage),b(e.groupAutomaticCarouselAfter),w(e.groupCarouselShowCount),C(e.groupUseCarousel),k(e.jobAutomaticCarouselAfter),j(e.jobCarouselDisplayVertically),P(e.jobCarouselShowCount),D(e.jobHasNoCountMessage),_(e.jobNoCountMessage),R(e.jobUseCarousel)},z=e=>{e.properties.sort(((e,t)=>{var n,r;const a=kU(null===(n=e.clientFeaturedAdGroupDetailsPropertyConfigurations[0])||void 0===n?void 0:n.order,null===(r=t.clientFeaturedAdGroupDetailsPropertyConfigurations[0])||void 0===r?void 0:r.order);return 0!==a?a:e[1]-t[1]})),e.properties.forEach((e=>{var t;e.selected=(null===(t=e.clientFeaturedAdGroupDetailsPropertyConfigurations)||void 0===t?void 0:t.length)>0})),L(e.properties)},V=e=>{var n=[],a=1;O.forEach((e=>{if(e.selected){let r={AvailableAdDetailsPropertyId:e.id,ClientId:t,DisplayName:e.label,Order:a};a+=1,n.push(r)}}));let o={ClientId:t,selectedProperties:n,featuredConfig:{ClientId:t,GroupHasNoCountMessage:f,GroupNoCountMessage:g,GroupUseCarousel:S,GroupAutomaticCarouselAfter:y,GroupCarouselShowCount:x,JobHasNoCountMessage:N,JobNoCountMessage:M,JobUseCarousel:I,JobAutomaticCarouselAfter:A,JobCarouselShowCount:E,JobHasLocationData:!1,JobCarouselDisplayVertically:T,CarouselDisplayVertically:p}};!0===e?Ene(t,o):vU(Ene(t,o),"Featured Group Display Saved",r,i,s,c)};return(0,e.useEffect)((()=>{F()}),[F]),(0,e.useEffect)((()=>{O.length>0&&!u&&V(!0)}),[O]),{effects:{getFeaturedJobGroupsDisplay:jne},getters:{showSignifier:n,responseMessage:a,showError:o,processing:l,loading:u,selectCareersClientId:t,carouselDisplayVertically:p,groupHasNoCountMessage:f,groupNoCountMessage:g,groupAutomaticCarouselAfter:y,groupCarouselShowCount:x,groupUseCarousel:S,jobAutomaticCarouselAfter:A,jobCarouselDisplayVertically:T,jobCarouselShowCount:E,jobHasNoCountMessage:N,jobNoCountMessage:M,jobUseCarousel:I,properties:O},handlers:{saveFeaturedJobGroupsDisplay:V},setters:{setShowSignifier:r,setShowError:s,setProcessing:c,setLoading:d,setCarouselDisplayVertically:h,setGroupHasNoCountMessage:m,setGroupNoCountMessage:v,setGroupAutomaticCarouselAfter:b,setGroupCarouselShowCount:w,setGroupUseCarousel:C,setJobAutomaticCarouselAfter:k,setJobCarouselDisplayVertically:j,setJobCarouselShowCount:P,setJobHasNoCountMessage:D,setJobNoCountMessage:_,setJobUseCarousel:R,setProperties:L}}}(),n=cb((e=>({root:{width:"75%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},card:{[e.breakpoints.down("md")]:{width:"100%",overflowY:"scroll"},display:"flex",flexDirection:"column",marginBottom:"20px",width:"100%"},error:{color:e.palette.error.main},copy:{color:e.palette.primary.copy}}))),r=n();return(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:t.getters.showSignifier,setShowSignifier:t.setters.setShowSignifier,message:t.getters.responseMessage,error:t.getters.showError}),(0,Tl.jsxs)("div",{className:r.root,children:[(0,Tl.jsx)(CN,{container:!0,spacing:1,children:(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(vW,{style:{marginTop:"0px",marginBottom:"20px"},type:"submit",variant:"contained",color:"primary",onClick:()=>t.handlers.saveFeaturedJobGroupsDisplay(),children:"Save"})})}),(0,Tl.jsx)(CN,{container:!0,spacing:1,className:r.card,children:(0,Tl.jsx)(WM,{children:(0,Tl.jsxs)(SU,{children:[(0,Tl.jsx)(Lne,{title:"Display Settings For Featured Groups"}),(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)($Y,{className:r.copy,style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:t.getters.groupHasNoCountMessage,onChange:()=>t.setters.setGroupHasNoCountMessage(!t.getters.groupHasNoCountMessage)}),label:"Has No Groups Available Message"})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)($Y,{className:r.copy,style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:t.getters.groupUseCarousel,onChange:()=>t.setters.setGroupUseCarousel(!t.getters.groupUseCarousel)}),label:"Display Groups As Carousel"})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)($Y,{className:r.copy,style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:!t.getters.carouselDisplayVertically,onChange:()=>t.setters.setCarouselDisplayVertically(!t.getters.carouselDisplayVertically)}),label:"Display Groups Carousel Horizontally"})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"No Groups Available Message",label:"No Groups Available Message",variant:"standard",fullWidth:!0,InputProps:{className:r.copy},value:t.getters.groupNoCountMessage,onChange:e=>t.setters.setGroupNoCountMessage(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Amount of Groups Before Carousel Displays",label:"Display Groups As Carousel After",variant:"standard",fullWidth:!0,type:"number",InputProps:{className:r.copy},value:t.getters.groupAutomaticCarouselAfter,onChange:e=>t.setters.setGroupAutomaticCarouselAfter(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Amount of Slides In Groups Carousel",label:"Slides In Groups Carousel (default: 2)",variant:"standard",fullWidth:!0,type:"number",InputProps:{className:r.copy},value:t.getters.groupCarouselShowCount,onChange:e=>t.setters.setGroupCarouselShowCount(e.target.value)})})]})]})})}),(0,Tl.jsxs)(CN,{container:!0,spacing:1,className:r.card,children:[(0,Tl.jsx)(WM,{children:(0,Tl.jsxs)(SU,{children:[(0,Tl.jsx)(Lne,{title:"Display Settings For Jobs Within A Featured Group"}),(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)($Y,{className:r.copy,style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:t.getters.jobHasNoCountMessage,onChange:()=>t.setters.setJobHasNoCountMessage(!t.getters.jobHasNoCountMessage)}),label:"Has No Jobs Available Message"})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)($Y,{className:r.copy,style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:t.getters.jobUseCarousel,onChange:()=>t.setters.setJobUseCarousel(!t.getters.jobUseCarousel)}),label:"Display Jobs As Carousel"})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)($Y,{className:r.copy,style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:!t.getters.jobCarouselDisplayVertically,onChange:()=>t.setters.setJobCarouselDisplayVertically(!t.getters.jobCarouselDisplayVertically)}),label:"Display Jobs Carousel Horizontally"})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"No Jobs Available Message",label:"No Jobs Available Message",variant:"standard",fullWidth:!0,InputProps:{className:r.copy},value:t.getters.jobNoCountMessage,onChange:e=>t.setters.setJobNoCountMessage(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Amount of Jobs Before Carousel Displays",label:"Display Jobs As Carousel After",variant:"standard",fullWidth:!0,type:"number",InputProps:{className:r.copy},value:t.getters.jobAutomaticCarouselAfter,onChange:e=>t.setters.setJobAutomaticCarouselAfter(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Amount of Slides In Jobs Carousel",label:"Slides In Jobs Carousel (default: 2)",variant:"standard",fullWidth:!0,type:"number",InputProps:{className:r.copy},value:t.getters.jobCarouselShowCount,onChange:e=>t.setters.setJobCarouselShowCount(e.target.value)})})]})]})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12}),(0,Tl.jsx)(NY,{columns:[{label:"Selected",propName:"selected"},{label:"Property",propName:"detailsPropertyAdminText"},{label:"",propName:""}],tableData:t.getters.properties,setTableData:t.setters.setProperties,rowComponent:Tne,loading:t.getters.loading})]})]})]})},Bne=cb((e=>({rowCell:{cursor:"pointer !important",background:e.palette.primary.blue,textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},rowCellOdd:{cursor:"pointer !important",background:"white",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},itemIcon:{cursor:"grab"},tableCell:{color:e.palette.primary.copy}})));function zne(t){const n=Bne(t),[r,a]=(0,e.useState)({});return(0,e.useEffect)((()=>{"customfield"===t.element.propertyName&&(a(void 0!==t.element.customId?t.element.customId:t.element.customFields[0]),t.element.customFields.forEach((e=>{if(e.id===t.element.customId)return a(e),void(t.element.customId=e.id)})))}),[t.element]),(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsx)(FW,{hover:!0,className:t.index%2?n.rowCell:n.rowCellOdd,ref:t.innerRef,...t,children:t.columns.map(((e,i)=>(0,Tl.jsxs)(HW,{align:"left",className:n.tableCell,children:["Selected"===e.label?(0,Tl.jsx)($Y,{style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:t.element.selected,onChange:()=>function(e){var n=[...t.tableData];n[e].selected=!n[e].selected,t.setTableData(n)}(t.index)}),label:""}):"Display Label"===e.label?"isuserinternal"!==t.element.propertyName?(0,Tl.jsx)(FU,{placeholder:"Display Label",label:"Display Label",variant:"standard",fullWidth:!0,style:{minWidth:"100px"},InputProps:{className:n.tableCell},value:t.element.label,onChange:e=>function(e,n){var r=[...t.tableData];r[e].label=n,t.setTableData(r)}(t.index,e.target.value)}):(0,Tl.jsx)(FU,{placeholder:"Have you worked with us before?",label:"Have you worked with us before?",variant:"standard",fullWidth:!0,InputProps:{className:n.tableCell},style:{minWidth:"100px"},disabled:!0}):"Display Placeholder"===e.label?"isuserinternal"!==t.element.propertyName?(0,Tl.jsx)(FU,{placeholder:"Display Placeholder",label:"Display Placeholder",variant:"standard",fullWidth:!0,style:{minWidth:"100px"},InputProps:{className:n.tableCell},value:t.element.placeholder,onChange:e=>function(e,n){var r=[...t.tableData];r[e].placeholder=n,t.setTableData(r)}(t.index,e.target.value)}):(0,Tl.jsx)(FU,{placeholder:"Have you worked with us before?",label:"Have you worked with us before?",variant:"standard",fullWidth:!0,style:{minWidth:"100px"},InputProps:{className:n.tableCell},disabled:!0}):"Help Text"===e.label?(0,Tl.jsx)(FU,{placeholder:"Help Text",label:"Help Text",variant:"standard",fullWidth:!0,style:{minWidth:"100px"},InputProps:{className:n.tableCell},value:t.element.help,onChange:e=>function(e,n){var r=[...t.tableData];r[e].help=n,t.setTableData(r)}(t.index,e.target.value)}):""===e.label?(0,Tl.jsx)(Px,{className:n.itemIcon,children:(0,Tl.jsx)(_m,{})}):t.element[e.propName],"Admin Text"===e.label&&"customfield"===t.element.propertyName?(0,Tl.jsx)(CN,{container:!0,spacing:1,children:(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(gJ,{currValue:r,items:t.element.customFields,property:"name",title:"Default",handleChange:e=>function(e,n,r){e(r);var a=[...t.tableData];a[n].customId=r.id,t.setTableData(a)}(a,t.index,e)})})}):null]},i)))},t.index)})}const Vne=function(){var t;const n=cb((e=>({root:{width:"80%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},error:{color:e.palette.error.main}}))),r=n(),a=Oc(qC),i=Oc(eh),[o,s]=(0,e.useState)(!1),[l,c]=(0,e.useState)(""),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(!1),[f,m]=(0,e.useState)([]),[g,v]=(0,e.useState)(!1),[y,b]=(0,e.useState)(""),[x,w]=(0,e.useState)([]),[S,C]=(0,e.useState)(""),[A,k]=(0,e.useState)([]),T=()=>{var e;v(!0),(e=a.id,tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/talentnetworkdisplay/"+e).then((e=>e.data))).then((e=>{w(e.templates),k(e.customFieldTypes),e.properties.forEach((t=>{var n,r,a,i,o,s,l,c,u;t.customFields=e.customFieldTypes,t.selected=(null===(n=t.clientTalentNetworkPropertyConfigurations)||void 0===n?void 0:n.length)>0,t.label=void 0===(null===(r=t.clientTalentNetworkPropertyConfigurations[0])||void 0===r?void 0:r.labelText)?"":null===(a=t.clientTalentNetworkPropertyConfigurations[0])||void 0===a?void 0:a.labelText,t.placeholder=void 0===(null===(i=t.clientTalentNetworkPropertyConfigurations[0])||void 0===i?void 0:i.placeholderText)?"":null===(o=t.clientTalentNetworkPropertyConfigurations[0])||void 0===o?void 0:o.placeholderText,t.help=void 0===(null===(s=t.clientTalentNetworkPropertyConfigurations[0])||void 0===s?void 0:s.helpText)?"":null===(l=t.clientTalentNetworkPropertyConfigurations[0])||void 0===l?void 0:l.helpText,t.customId=void 0===(null===(c=t.clientTalentNetworkPropertyConfigurations[0])||void 0===c?void 0:c.customFieldTypeId)?-1:null===(u=t.clientTalentNetworkPropertyConfigurations[0])||void 0===u?void 0:u.customFieldTypeId})),m(e.properties),v(!1)}))};function j(){var e=[],t=-1,n=4,r=!1,i=!1;if(f.forEach((o=>{if(o.selected||"emailaddress"!==o.propertyName||(b("Email Address must be selected"),i=!0),o.selected){""===o.label&&""===o.placeholder&&"isuserinternal"!==o.propertyName&&(b("You must assign either the Label Text or the Placeholder Text"),i=!0),"areaofinterest"!==o.propertyName&&"locationbasedareaofinterest"!==o.propertyName||(r&&(b("Only one Area of Interest selection is allowed. Please deselect one."),i=!0),r=!0),"emailaddress"===o.propertyName?t=1:"areaofinterest"===o.propertyName||"locationbasedareaofinterest"===o.propertyName?t=2:"optin"===o.propertyName&&(t=3);let s={AvailableTalentNetworkPropertyId:o.id,ClientId:a.id,LabelText:o.label,PlaceholderText:o.placeholder,HelpText:o.help,CustomFieldTypeId:-1===o.customId?null:o.customId,Order:-1!==t?t:n,id:void 0===o.clientTalentNetworkPropertyConfigurations||0===o.clientTalentNetworkPropertyConfigurations.length?void 0:o.clientTalentNetworkPropertyConfigurations[0].id};-1===t&&(n+=1),t=-1,e.push(s)}})),!1===i){let t={ClientId:a.id,selectedProperties:e,templateId:S.id};vU(((e,t)=>tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/talentnetworkdisplay/edittalentnetworkdisplay/"+e,t).then((e=>e.data)))(a.id,t),"Talent Network Display Saved",s,c,d,h).then((()=>{T()}))}else s(!0),d(!0)}return(0,e.useEffect)((()=>{null!==a&&T()}),[a]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:o,setShowSignifier:s,message:l,error:u,errorMessage:y}),(0,Tl.jsx)("div",{className:r.root,children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:12,children:[(0,Tl.jsx)(vW,{sx:{marginBottom:"10px",marginRight:"20px"},type:"submit",variant:"contained",color:"primary",onClick:()=>function(){var e={help:"",label:"",placeholder:"",propertyAdminText:"Custom Field",propertyName:"customfield",selected:!0,customFields:A,customId:1},t=[...f];t.push(e),m(t)}(),children:"Add Custom Field"}),(0,Tl.jsx)(vW,{sx:{marginBottom:"10px",marginRight:"20px"},type:"submit",variant:"contained",color:"primary",onClick:()=>j(),children:"Save"})]}),Hu(i,null===(t=a.id)||void 0===t?void 0:t.toUpperCase(),il)?(0,Tl.jsx)(CN,{item:!0,xs:12,sm:3,children:(0,Tl.jsx)(gJ,{currValue:S,items:x,property:"name",title:"Assign To Template",handleChange:e=>C(e)})}):null,(0,Tl.jsx)(NY,{columns:[{label:"Selected",propName:"selected"},{label:"Admin Text",propName:"propertyAdminText"},{label:"Display Label",propName:""},{label:"Display Placeholder",propName:""},{label:"Help Text",propName:""},{label:"",propName:""}],tableData:f,setTableData:m,rowComponent:zne,loading:g})]})})]})},Wne=cb((e=>({rowCell:{cursor:"pointer !important",background:e.palette.primary.blue,textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},rowCellOdd:{cursor:"pointer !important",background:"white",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},itemIcon:{cursor:"grab"},tableCell:{color:e.palette.primary.copy}})));function Une(e){const t=Wne(e);return(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsx)(FW,{hover:!0,className:e.index%2?t.rowCell:t.rowCellOdd,ref:e.innerRef,...e,children:e.columns.map(((n,r)=>(0,Tl.jsx)(HW,{align:"left",className:t.tableCell,children:"Selected"===n.label?(0,Tl.jsx)($Y,{style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:e.element.selected,onChange:()=>function(t){var n=[...e.tableData];n[t].selected=!n[t].selected,e.setTableData(n)}(e.index)}),label:""}):"Label"===n.label?(0,Tl.jsx)(FU,{placeholder:"Label",label:"Label",variant:"standard",fullWidth:!0,style:{minWidth:"100px"},value:e.element.label,onChange:t=>function(t,n){var r=[...e.tableData];r[t].label=n,e.setTableData(r)}(e.index,t.target.value)}):""===n.label?(0,Tl.jsx)(Px,{size:"large",className:t.itemIcon,children:(0,Tl.jsx)(_m,{})}):e.element[n.propName]},r)))},e.index)})}const $ne=function(){var t;const n=cb((e=>({root:{width:"80%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},error:{color:e.palette.error.main}}))),r=n(),a=Oc(qC),i=Oc(eh),[o,s]=(0,e.useState)(!1),[l,c]=(0,e.useState)(""),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(!1),[f,m]=(0,e.useState)([]),[g,v]=(0,e.useState)(!1),[y,b]=(0,e.useState)([]),[x,w]=(0,e.useState)(""),S=()=>{var e;v(!0),(e=a.id,tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/jobdetaildisplay/"+e).then((e=>e.data))).then((e=>{b(e.templates),e.properties.sort(((e,t)=>{var n,r;const a=kU(null===(n=e.clientAdDetailsPropertyConfigurations[0])||void 0===n?void 0:n.order,null===(r=t.clientAdDetailsPropertyConfigurations[0])||void 0===r?void 0:r.order);return 0!==a?a:e[1]-t[1]})),e.properties.forEach((e=>{var t,n,r;e.selected=(null===(t=e.clientAdDetailsPropertyConfigurations)||void 0===t?void 0:t.length)>0,e.label=void 0===(null===(n=e.clientAdDetailsPropertyConfigurations[0])||void 0===n?void 0:n.displayName)?"":null===(r=e.clientAdDetailsPropertyConfigurations[0])||void 0===r?void 0:r.displayName})),m(e.properties),v(!1)}))};function C(){var e=[],t=1;f.forEach((n=>{if(n.selected&&""!==n.label){let r={AvailableAdDetailsPropertyId:n.id,ClientId:a.id,DisplayName:n.label,Order:t};t+=1,e.push(r)}}));let n={ClientId:a.id,jobDetailConfig:e,templateId:x.id};vU(((e,t)=>tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/jobdetaildisplay/editjobdetailconfiguration/"+e,t).then((e=>e.data)))(a.id,n),"Job Detail Display Saved",s,c,d,h).then((()=>{S()}))}return(0,e.useEffect)((()=>{null!==a&&S()}),[a]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:o,setShowSignifier:s,message:l,error:u}),(0,Tl.jsx)("div",{className:r.root,children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(vW,{sx:{marginBottom:"10px",marginRight:"20px"},type:"submit",variant:"contained",color:"primary",onClick:()=>C(),children:"Save"})}),Hu(i,null===(t=a.id)||void 0===t?void 0:t.toUpperCase(),il)?(0,Tl.jsx)(CN,{item:!0,xs:12,sm:3,children:(0,Tl.jsx)(gJ,{currValue:x,items:y,property:"name",title:"Assign To Template",handleChange:e=>w(e)})}):null,(0,Tl.jsx)(NY,{columns:[{label:"Selected",propName:"selected"},{label:"Property",propName:"detailsPropertyAdminText"},{label:"Label",propName:""},{label:"",propName:""}],tableData:f,setTableData:m,rowComponent:Une,loading:g})]})})]})};const Hne=function(){const e=cb((e=>({root:{width:"100%",[e.breakpoints.down("md")]:{width:"100%"}},autocomplete:{width:"35%",paddingBottom:"20px",[e.breakpoints.down("md")]:{width:"100%"}}}))),t=e(),n=Oc(qC),r=[{title:"Featured Jobs",component:(0,Tl.jsx)(Ane,{})},{title:"Featured Job Groups",component:(0,Tl.jsx)(Fne,{})},{title:"Talent Network",component:(0,Tl.jsx)(Vne,{})},{title:"Job Details",component:(0,Tl.jsx)($ne,{})}];return(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[n.shortName," Display"]}),(0,Tl.jsx)("div",{className:t.root,children:(0,Tl.jsx)(FZ,{tabs:r})})]})})},qne=(e,t)=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/searchform/"+e+"/"+t).then((e=>e.data)),Gne=(e,t)=>tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/searchform/editsearchform/"+e,t).then((e=>e.data)),Kne=1,Yne=2,Xne="9752a119-dd78-4c47-b121-c62d63b1ea16",Zne="e0d8970e-79a7-489b-b1f1-17a25f65abc6",Jne="fb7c020f-6431-4c5e-9705-fee834ed4ff3",Qne="68860897-1007-4897-b75d-4798297e4a0e",ere=cb((e=>({rowCell:{cursor:"pointer !important",background:e.palette.primary.blue,textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},rowCellOdd:{cursor:"pointer !important",background:"white",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},itemIcon:{cursor:"grab"},tableCell:{color:e.palette.primary.copy}})));function tre(t){const n=ere(t),[r,a]=(0,e.useState)(""),[i,o]=(0,e.useState)(""),[s,l]=(0,e.useState)(""),[c,u]=(0,e.useState)(""),[d,p]=(0,e.useState)(t.element.selected);function h(e,n,r){e(r);var a=[...t.tableData];a[n].newRadius=r,t.setTableData(a)}return(0,e.useEffect)((()=>{"Small Radius Collection"===t.element.searchPropertyAdminText&&(a(void 0!==t.element.newRadius?t.element.newRadius:t.element.radiusCollections[Xne][0]),t.element.newRadius=void 0!==t.element.newRadius?t.element.newRadius:t.element.radiusCollections[Xne][0],t.element.radiusCollections[Xne].forEach((e=>{if(e.item1===t.element.defaultRadius)return a(e),void(t.element.newRadius=e)}))),"Medium Radius Collection"===t.element.searchPropertyAdminText&&(o(void 0!==t.element.newRadius?t.element.newRadius:t.element.radiusCollections[Zne][0]),t.element.newRadius=void 0!==t.element.newRadius?t.element.newRadius:t.element.radiusCollections[Zne][0],t.element.radiusCollections[Zne].forEach((e=>{if(e.item1===t.element.defaultRadius)return o(e),void(t.element.newRadius=e)}))),"Large Radius Collection"===t.element.searchPropertyAdminText&&(l(void 0!==t.element.newRadius?t.element.newRadius:t.element.radiusCollections[Jne][0]),t.element.newRadius=void 0!==t.element.newRadius?t.element.newRadius:t.element.radiusCollections[Jne][0],t.element.radiusCollections[Jne].forEach((e=>{if(e.item1===t.element.defaultRadius)return l(e),void(t.element.newRadius=e)}))),"Custom Radius Collection"===t.element.searchPropertyAdminText&&(u(void 0!==t.element.newRadius?t.element.newRadius:t.element.radiusCollections[Qne][0]),t.element.newRadius=void 0!==t.element.newRadius?t.element.newRadius:t.element.radiusCollections[Qne][0],t.element.radiusCollections[Qne].forEach((e=>{if(e.item1===t.element.defaultRadius)return u(e),void(t.element.newRadius=e)})))}),[t.element]),(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsx)(FW,{hover:!0,className:t.index%2?n.rowCell:n.rowCellOdd,ref:t.innerRef,...t,children:t.columns.map(((e,f)=>(0,Tl.jsxs)(HW,{align:"left",className:n.tableCell,children:["Selected"===e.label?(0,Tl.jsx)($Y,{style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:t.element.selected,onChange:()=>function(e){var n=[...t.tableData];n[e].selected=!n[e].selected,p(t.element.selected),t.setTableData(n)}(t.index)}),label:""}):"Input Label"===e.label?(0,Tl.jsx)(FU,{placeholder:"Input Label",label:"Input Label",variant:"standard",fullWidth:!0,style:{minWidth:"100px"},value:t.element.label,required:!0,error:d&&""===t.element.label,onChange:e=>function(e,n){var r=[...t.tableData];r[e].label=n,t.setTableData(r)}(t.index,e.target.value)}):"Input Placeholder"===e.label?(0,Tl.jsx)(FU,{placeholder:"Input Placeholder",label:"Input Placeholder",variant:"standard",fullWidth:!0,style:{minWidth:"100px"},value:t.element.placeholder,required:!0,error:d&&""===t.element.placeholder,onChange:e=>function(e,n){var r=[...t.tableData];r[e].placeholder=n,t.setTableData(r)}(t.index,e.target.value)}):""===e.label?(0,Tl.jsx)(Px,{size:"large",className:n.itemIcon,children:(0,Tl.jsx)(_m,{})}):t.element[e.propName],"Custom Radius Collection"===t.element[e.propName]?(0,Tl.jsx)(CN,{container:!0,spacing:1,children:(0,Tl.jsx)(CN,{item:!0,xs:6,sm:6,children:(0,Tl.jsx)(gJ,{currValue:c,items:t.element.radiusCollections[Qne],property:"item2",title:"Default",handleChange:e=>h(u,t.index,e)})})}):"Medium Radius Collection"===t.element[e.propName]?(0,Tl.jsx)(CN,{container:!0,spacing:1,children:(0,Tl.jsx)(CN,{item:!0,xs:6,sm:6,children:(0,Tl.jsx)(gJ,{currValue:i,items:t.element.radiusCollections[Zne],property:"item2",title:"Default",handleChange:e=>h(o,t.index,e)})})}):"Small Radius Collection"===t.element[e.propName]?(0,Tl.jsx)(CN,{container:!0,spacing:1,children:(0,Tl.jsx)(CN,{item:!0,xs:6,sm:6,children:(0,Tl.jsx)(gJ,{currValue:r,items:t.element.radiusCollections[Xne],property:"item2",title:"Default",handleChange:e=>h(a,t.index,e)})})}):"Large Radius Collection"===t.element[e.propName]?(0,Tl.jsx)(CN,{container:!0,spacing:1,children:(0,Tl.jsx)(CN,{item:!0,xs:6,sm:6,children:(0,Tl.jsx)(gJ,{currValue:s,items:t.element.radiusCollections[Jne],property:"item2",title:"Default",handleChange:e=>h(l,t.index,e)})})}):null]},f)))},t.index)})}const nre=function(){var t;const n=cb((e=>({root:{width:"80%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},error:{color:e.palette.error.main}}))),r=n(),a=Oc(qC),i=Oc(eh),[o,s]=(0,e.useState)(!1),[l,c]=(0,e.useState)(""),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(!1),[f,m]=(0,e.useState)([]),[g,v]=(0,e.useState)(!1),[y,b]=(0,e.useState)([]),[x,w]=(0,e.useState)(""),[S,C]=(0,e.useState)(0),A=()=>{v(!0),qne(a.id,Yne).then((e=>{var t,n;b(e.templates),null===(t=e.inputs)||void 0===t||t.sort(((e,t)=>{var n,r;const a=kU(null===(n=e.clientAdSearchFormConfigurations[0])||void 0===n?void 0:n.order,null===(r=t.clientAdSearchFormConfigurations[0])||void 0===r?void 0:r.order);return 0!==a?a:e[1]-t[1]})),null===(n=e.inputs)||void 0===n||n.forEach((t=>{var n,r,a,i,o;t.selected=(null===(n=t.clientAdSearchFormConfigurations)||void 0===n?void 0:n.length)>0,t.label=void 0===(null===(r=t.clientAdSearchFormConfigurations[0])||void 0===r?void 0:r.labelText)?"":null===(a=t.clientAdSearchFormConfigurations[0])||void 0===a?void 0:a.labelText,t.placeholder=void 0===(null===(i=t.clientAdSearchFormConfigurations[0])||void 0===i?void 0:i.placeholderText)?"":null===(o=t.clientAdSearchFormConfigurations[0])||void 0===o?void 0:o.placeholderText,t.radiusCollections=e.radiusCollections,t.defaultRadius=e.defaultRadius})),C(e.defaultRadius),m(e.inputs),v(!1)}))};return(0,e.useEffect)((()=>{b([]),m([]),null!==a&&A()}),[a]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:o,setShowSignifier:s,message:l,error:u,errorMessage:"Save failed. Any selected inputs must have Label and Placeholder values."}),(0,Tl.jsx)("div",{className:r.root,children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(vW,{sx:{marginBottom:"10px",marginRight:"20px"},type:"submit",variant:"contained",color:"primary",onClick:()=>function(){var e=[],t=!0,n=1,r=S;if(f.forEach((i=>{if(i.selected&&""!==i.label&&""!==i.placeholder){void 0!==i.newRadius&&(r=i.newRadius.item1);let t={AvailableAdSearchFormInputId:i.id,ClientId:a.id,LabelText:i.label,PlaceholderText:i.placeholder,Order:n,ClientSearchFormTypeId:Yne};n+=1,e.push(t)}else!i.selected||""!==i.label&&""!==i.placeholder||(t=!1)})),!0===t){let t={ClientId:a.id,selectedInputs:e,templateId:x.id,formType:Yne,defaultRadius:r};console.log(t),vU(Gne(a.id,t),"Floating Search Form Saved",s,c,d,h).then((()=>{A()}))}else s(!0),d(!0)}(),children:"Save"})}),Hu(i,null===(t=a.id)||void 0===t?void 0:t.toUpperCase(),il)?(0,Tl.jsx)(CN,{item:!0,xs:12,sm:3,children:(0,Tl.jsx)(gJ,{currValue:x,items:y,property:"name",title:"Assign To Template",handleChange:e=>w(e)})}):null,(0,Tl.jsx)(NY,{columns:[{label:"Selected",propName:"selected"},{label:"Admin Text",propName:"searchPropertyAdminText"},{label:"Input Label",propName:""},{label:"Input Placeholder",propName:""},{label:"",propName:""}],tableData:f,setTableData:m,rowComponent:tre,loading:g})]})})]})},rre=cb((e=>({rowCell:{cursor:"pointer !important",background:e.palette.primary.blue,textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},rowCellOdd:{cursor:"pointer !important",background:"white",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},itemIcon:{cursor:"grab"},tableCell:{color:e.palette.primary.copy}})));function are(t){const n=rre(t),[r,a]=(0,e.useState)(""),[i,o]=(0,e.useState)(""),[s,l]=(0,e.useState)(""),[c,u]=(0,e.useState)(""),[d,p]=(0,e.useState)(t.element.selected);function h(e,n,r){e(r);var a=[...t.tableData];a[n].newRadius=r,t.setTableData(a)}return(0,e.useEffect)((()=>{"Small Radius Collection"===t.element.searchPropertyAdminText&&(a(void 0!==t.element.newRadius?t.element.newRadius:t.element.radiusCollections[Xne][0]),t.element.newRadius=void 0!==t.element.newRadius?t.element.newRadius:t.element.radiusCollections[Xne][0],t.element.radiusCollections[Xne].forEach((e=>{if(e.item1===t.element.defaultRadius)return a(e),void(t.element.newRadius=e)}))),"Medium Radius Collection"===t.element.searchPropertyAdminText&&(o(void 0!==t.element.newRadius?t.element.newRadius:t.element.radiusCollections[Zne][0]),t.element.newRadius=void 0!==t.element.newRadius?t.element.newRadius:t.element.radiusCollections[Zne][0],t.element.radiusCollections[Zne].forEach((e=>{if(e.item1===t.element.defaultRadius)return o(e),void(t.element.newRadius=e)}))),"Large Radius Collection"===t.element.searchPropertyAdminText&&(l(void 0!==t.element.newRadius?t.element.newRadius:t.element.radiusCollections[Jne][0]),t.element.newRadius=void 0!==t.element.newRadius?t.element.newRadius:t.element.radiusCollections[Jne][0],t.element.radiusCollections[Jne].forEach((e=>{if(e.item1===t.element.defaultRadius)return l(e),void(t.element.newRadius=e)}))),"Custom Radius Collection"===t.element.searchPropertyAdminText&&(u(void 0!==t.element.newRadius?t.element.newRadius:t.element.radiusCollections[Qne][0]),t.element.newRadius=void 0!==t.element.newRadius?t.element.newRadius:t.element.radiusCollections[Qne][0],t.element.radiusCollections[Qne].forEach((e=>{if(e.item1===t.element.defaultRadius)return u(e),void(t.element.newRadius=e)})))}),[t.element]),(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsx)(FW,{hover:!0,className:t.index%2?n.rowCell:n.rowCellOdd,ref:t.innerRef,...t,children:t.columns.map(((e,f)=>(0,Tl.jsxs)(HW,{align:"left",className:n.tableCell,children:["Selected"===e.label?(0,Tl.jsx)($Y,{style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:t.element.selected,onChange:()=>function(e){var n=[...t.tableData];n[e].selected=!n[e].selected,p(t.element.selected),t.setTableData(n)}(t.index)}),label:""}):"Input Label"===e.label?(0,Tl.jsx)(FU,{placeholder:"Input Label",label:"Input Label",variant:"standard",fullWidth:!0,style:{minWidth:"100px"},value:t.element.label,required:!0,error:d&&""===t.element.label,onChange:e=>function(e,n){var r=[...t.tableData];r[e].label=n,t.setTableData(r)}(t.index,e.target.value)}):"Input Placeholder"===e.label?(0,Tl.jsx)(FU,{placeholder:"Input Placeholder",label:"Input Placeholder",variant:"standard",fullWidth:!0,style:{minWidth:"100px"},value:t.element.placeholder,required:!0,error:d&&""===t.element.placeholder,onChange:e=>function(e,n){var r=[...t.tableData];r[e].placeholder=n,t.setTableData(r)}(t.index,e.target.value)}):""===e.label?(0,Tl.jsx)(Px,{size:"large",className:n.itemIcon,children:(0,Tl.jsx)(_m,{})}):t.element[e.propName],"Custom Radius Collection"===t.element[e.propName]?(0,Tl.jsx)(CN,{container:!0,spacing:1,children:(0,Tl.jsx)(CN,{item:!0,xs:6,sm:6,children:(0,Tl.jsx)(gJ,{currValue:c,items:t.element.radiusCollections[Qne],property:"item2",title:"Default",handleChange:e=>h(u,t.index,e)})})}):"Medium Radius Collection"===t.element[e.propName]?(0,Tl.jsx)(CN,{container:!0,spacing:1,children:(0,Tl.jsx)(CN,{item:!0,xs:6,sm:6,children:(0,Tl.jsx)(gJ,{currValue:i,items:t.element.radiusCollections[Zne],property:"item2",title:"Default",handleChange:e=>h(o,t.index,e)})})}):"Small Radius Collection"===t.element[e.propName]?(0,Tl.jsx)(CN,{container:!0,spacing:1,children:(0,Tl.jsx)(CN,{item:!0,xs:6,sm:6,children:(0,Tl.jsx)(gJ,{currValue:r,items:t.element.radiusCollections[Xne],property:"item2",title:"Default",handleChange:e=>h(a,t.index,e)})})}):"Large Radius Collection"===t.element[e.propName]?(0,Tl.jsx)(CN,{container:!0,spacing:1,children:(0,Tl.jsx)(CN,{item:!0,xs:6,sm:6,children:(0,Tl.jsx)(gJ,{currValue:s,items:t.element.radiusCollections[Jne],property:"item2",title:"Default",handleChange:e=>h(l,t.index,e)})})}):null]},f)))},t.index)})}const ire=function(){var t;const n=cb((e=>({root:{width:"80%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},error:{color:e.palette.error.main}}))),r=n(),a=Oc(qC),i=Oc(eh),[o,s]=(0,e.useState)(!1),[l,c]=(0,e.useState)(""),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(!1),[f,m]=(0,e.useState)([]),[g,v]=(0,e.useState)(!1),[y,b]=(0,e.useState)([]),[x,w]=(0,e.useState)(""),[S,C]=(0,e.useState)(0),A=()=>{v(!0),qne(a.id,Kne).then((e=>{var t,n;b(e.templates),null===(t=e.inputs)||void 0===t||t.sort(((e,t)=>{var n,r;const a=kU(null===(n=e.clientAdSearchFormConfigurations[0])||void 0===n?void 0:n.order,null===(r=t.clientAdSearchFormConfigurations[0])||void 0===r?void 0:r.order);return 0!==a?a:e[1]-t[1]})),null===(n=e.inputs)||void 0===n||n.forEach((t=>{var n,r,a,i,o;t.selected=(null===(n=t.clientAdSearchFormConfigurations)||void 0===n?void 0:n.length)>0,t.label=void 0===(null===(r=t.clientAdSearchFormConfigurations[0])||void 0===r?void 0:r.labelText)?"":null===(a=t.clientAdSearchFormConfigurations[0])||void 0===a?void 0:a.labelText,t.placeholder=void 0===(null===(i=t.clientAdSearchFormConfigurations[0])||void 0===i?void 0:i.placeholderText)?"":null===(o=t.clientAdSearchFormConfigurations[0])||void 0===o?void 0:o.placeholderText,t.radiusCollections=e.radiusCollections,t.defaultRadius=e.defaultRadius})),C(e.defaultRadius),m(e.inputs),v(!1)}))};return(0,e.useEffect)((()=>{b([]),m([]),null!==a&&A()}),[a]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:o,setShowSignifier:s,message:l,error:u,errorMessage:"Save failed. Any selected inputs must have Label and Placeholder values."}),(0,Tl.jsx)("div",{className:r.root,children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(vW,{sx:{marginBottom:"10px",marginRight:"20px"},type:"submit",variant:"contained",color:"primary",onClick:()=>function(){var e=[],t=!0,n=1,r=S;if(f.forEach((i=>{if(i.selected&&""!==i.label&&""!==i.placeholder){void 0!==i.newRadius&&(r=i.newRadius.item1);let t={AvailableAdSearchFormInputId:i.id,ClientId:a.id,LabelText:i.label,PlaceholderText:i.placeholder,Order:n,ClientSearchFormTypeId:Kne};n+=1,e.push(t)}else!i.selected||""!==i.label&&""!==i.placeholder||(t=!1)})),!0===t){let t={ClientId:a.id,selectedInputs:e,templateId:x.id,formType:Kne,defaultRadius:r};vU(Gne(a.id,t),"Static Search Form Saved",s,c,d,h).then((()=>{A()}))}else s(!0),d(!0)}(),children:"Save"})}),Hu(i,null===(t=a.id)||void 0===t?void 0:t.toUpperCase(),il)?(0,Tl.jsx)(CN,{item:!0,xs:12,sm:3,children:(0,Tl.jsx)(gJ,{currValue:x,items:y,property:"name",title:"Assign To Template",handleChange:e=>w(e)})}):null,(0,Tl.jsx)(NY,{columns:[{label:"Selected",propName:"selected"},{label:"Admin Text",propName:"searchPropertyAdminText"},{label:"Input Label",propName:""},{label:"Input Placeholder",propName:""},{label:"",propName:""}],tableData:f,setTableData:m,rowComponent:are,loading:g})]})})]})};const ore=function(){var t;const n=cb((e=>({root:{width:"50%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},cardContainer:{[e.breakpoints.down("md")]:{width:"100%",overflowY:"scroll"},display:"flex",flexDirection:"column",marginBottom:"20px",width:"100%"},error:{color:e.palette.error.main}}))),r=n(),a=Oc(qC),i=Oc(eh),[o,s]=(0,e.useState)(!1),[l,c]=(0,e.useState)(""),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(!1),[f,m]=(0,e.useState)([]),[g,v]=(0,e.useState)(""),[y,b]=(0,e.useState)([]),[x,w]=(0,e.useState)(""),[S,C]=(0,e.useState)([{val:"Yes",id:!0},{val:"No",id:!1}]),[A,k]=(0,e.useState)("");function T(){var e;(e=a.id,tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/mapsearchform/"+e).then((e=>e.data))).then((e=>{e.inputs.forEach((t=>{t.display=t.placeholderText+" ("+t.labelText+")",null!==e.selectedInput&&e.selectedInput.availableAdSearchFormInputId===t.availableAdSearchFormInputId&&w(t)})),k(!1===e.includeKeyword?S[1]:S[0]),m(e.templates),b(e.inputs)}))}function j(){let e={ClientId:a.id,selectedInput:x,includeKeyword:A.id,templateId:null===g||void 0===g?void 0:g.id};vU(((e,t)=>tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/mapsearchform/editmapsearchform/"+e,t).then((e=>e.data)))(a.id,e),"Map Search Form Saved",s,c,d,h).then((()=>{T()}))}return(0,e.useEffect)((()=>{m([]),v(""),b([]),w(""),k(""),null!==a&&T()}),[a]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:o,setShowSignifier:s,message:l,error:u}),(0,Tl.jsx)("div",{className:r.root,children:(0,Tl.jsx)(CN,{className:r.cardContainer,children:(0,Tl.jsx)(WM,{className:r.card,children:(0,Tl.jsx)(SU,{children:(0,Tl.jsx)(CN,{container:!0,spacing:1,children:0===y.length?(0,Tl.jsxs)("span",{children:[" ","The Main Search Form must be configured prior to using this configuration page."]}):(0,Tl.jsxs)(Tl.Fragment,{children:[Hu(i,null===(t=a.id)||void 0===t?void 0:t.toUpperCase(),il)?(0,Tl.jsx)(CN,{xs:12,sm:12,item:!0,children:(0,Tl.jsx)(gJ,{emptyRow:!0,currValue:g,items:f,property:"name",title:"Assign To Template",handleChange:e=>v(e)})}):null,(0,Tl.jsx)(CN,{xs:12,sm:6,item:!0,children:(0,Tl.jsx)(gJ,{currValue:A,items:S,property:"val",title:"Include Keyword",handleChange:e=>k(e)})}),(0,Tl.jsx)(CN,{xs:12,sm:6,item:!0,children:(0,Tl.jsx)(gJ,{emptyRow:!0,currValue:x,items:y,property:"display",title:"Additional Parameter",handleChange:e=>w(e)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,container:!0,justifyContent:"flex-end",children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginRight:"8px"},className:r.sensitiveButton,type:"submit",variant:"contained",color:"primary",onClick:()=>j(),children:"Save Information"})})]})})})})})})]})};const sre=function(){const e=cb((e=>({root:{width:"100%",[e.breakpoints.down("md")]:{width:"100%"}},autocomplete:{width:"35%",paddingBottom:"20px",[e.breakpoints.down("md")]:{width:"100%"}}}))),t=e(),n=Oc(qC),r=[{title:"Floating",component:(0,Tl.jsx)(nre,{})},{title:"Static",component:(0,Tl.jsx)(ire,{})},{title:"Map",component:(0,Tl.jsx)(ore,{})}];return(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[n.shortName," Display"]}),(0,Tl.jsx)("div",{className:t.root,children:(0,Tl.jsx)(FZ,{tabs:r})})]})})},lre=cb((e=>({rowCell:{cursor:"pointer !important",background:e.palette.primary.blue,textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},rowCellOdd:{cursor:"pointer !important",background:"white",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},itemIcon:{cursor:"grab"},tableCell:{color:e.palette.primary.copy}})));function cre(e){const t=lre(e);return(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsx)(FW,{hover:!0,className:e.index%2?t.rowCell:t.rowCellOdd,ref:e.innerRef,...e,children:e.columns.map(((n,r)=>(0,Tl.jsx)(HW,{align:"left",className:t.tableCell,children:"Selected"===n.label?(0,Tl.jsx)($Y,{style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:e.element.selected,onChange:()=>function(t){var n=[...e.tableData];n[t].selected=!n[t].selected,e.setTableData(n)}(e.index)}),label:""}):"Display Name"===n.label?(0,Tl.jsx)(FU,{placeholder:"Label",label:"Label",variant:"standard",fullWidth:!0,style:{minWidth:"100px"},value:e.element.display,onChange:t=>function(t,n){var r=[...e.tableData];r[t].display=n,e.setTableData(r)}(e.index,t.target.value)}):"Sortable"===n.label?(0,Tl.jsx)($Y,{style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:e.element.isSortable,onChange:()=>function(t){var n=[...e.tableData];n[t].isSortable=!n[t].isSortable,e.setTableData(n)}(e.index)}),label:""}):""===n.label?(0,Tl.jsx)(Px,{size:"large",className:t.itemIcon,children:(0,Tl.jsx)(_m,{})}):e.element[n.propName]},r)))},e.index)})}const ure=function(){var t;const n=cb((e=>({root:{width:"80%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},error:{color:e.palette.error.main}}))),r=n(),a=Oc(qC),i=Oc(eh),[o,s]=(0,e.useState)(!1),[l,c]=(0,e.useState)(""),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(!1),[f,m]=(0,e.useState)([]),[g,v]=(0,e.useState)(!1),[y,b]=(0,e.useState)([]),[x,w]=(0,e.useState)(""),S=()=>{var e;v(!0),(e=a.id,tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/resulttableproperties/"+e).then((e=>e.data))).then((e=>{b(e.templates),e.properties.sort(((e,t)=>{var n,r;const a=kU(null===(n=e.clientAdTableConfigurations[0])||void 0===n?void 0:n.order,null===(r=t.clientAdTableConfigurations[0])||void 0===r?void 0:r.order);return 0!==a?a:e[1]-t[1]})),e.properties.forEach((e=>{var t,n,r,a,i;e.selected=(null===(t=e.clientAdTableConfigurations)||void 0===t?void 0:t.length)>0,e.display=void 0===(null===(n=e.clientAdTableConfigurations[0])||void 0===n?void 0:n.columnDisplayName)?"":null===(r=e.clientAdTableConfigurations[0])||void 0===r?void 0:r.columnDisplayName,e.isSortable=void 0!==(null===(a=e.clientAdTableConfigurations[0])||void 0===a?void 0:a.isSortable)&&(null===(i=e.clientAdTableConfigurations[0])||void 0===i?void 0:i.isSortable)})),m(e.properties),v(!1)}))};function C(){var e=[],t=1;f.forEach((n=>{if(n.selected&&""!==n.display){let r={AvailableAdTableColumnId:n.id,ClientId:a.id,ColumnDisplayName:n.display,IsSortable:n.isSortable,Order:t};t+=1,e.push(r)}}));let n={ClientId:a.id,selectedProperties:e,templateId:x.id};vU(((e,t)=>tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/resulttableproperties/editresulttable/"+e,t).then((e=>e.data)))(a.id,n),"Result Table Saved",s,c,d,h).then((()=>{S()}))}return(0,e.useEffect)((()=>{null!==a&&S()}),[a]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:o,setShowSignifier:s,message:l,error:u}),(0,Tl.jsx)("div",{className:r.root,children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(vW,{sx:{marginBottom:"10px",marginRight:"20px"},type:"submit",variant:"contained",color:"primary",onClick:()=>C(),children:"Save"})}),Hu(i,null===(t=a.id)||void 0===t?void 0:t.toUpperCase(),il)?(0,Tl.jsx)(CN,{item:!0,xs:12,sm:3,children:(0,Tl.jsx)(gJ,{currValue:x,items:y,property:"name",title:"Assign To Template",handleChange:e=>w(e)})}):null,(0,Tl.jsx)(NY,{columns:[{label:"Selected",propName:"selected"},{label:"Label",propName:"columnAdminText"},{label:"Display Name",propName:""},{label:"Sortable",propName:"sortable"},{label:"",propName:""}],tableData:f,setTableData:m,rowComponent:cre,loading:g})]})})]})};const dre=function(){var t;const n=cb((e=>({root:{width:"50%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},cardContainer:{[e.breakpoints.down("md")]:{width:"100%",overflowY:"scroll"},display:"flex",flexDirection:"column",marginBottom:"20px",width:"100%"},error:{color:e.palette.error.main},copy:{color:e.palette.primary.copy}}))),r=n(),a=Oc(qC),i=Oc(eh),[o,s]=(0,e.useState)(!1),[l,c]=(0,e.useState)(""),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(!1),[f,m]=(0,e.useState)([]),[g,v]=(0,e.useState)(""),[y,b]=(0,e.useState)(!1);function x(){var e;(e=a.id,tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/featuredadresults/"+e).then((e=>e.data))).then((e=>{var t;m(e.templates),b(null===(t=e.configuration)||void 0===t?void 0:t.hasFeaturedResults)}))}function w(){vU((e=>tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/featuredadresults/editfeaturedadresults",e).then((e=>e.data)))({ClientId:a.id,templateId:null===g||void 0===g?void 0:g.id,configuration:{ClientId:a.id,HasFeaturedResults:y}}),"Featured Ad Results Saved",s,c,d,h).then((()=>{x()}))}return(0,e.useEffect)((()=>{m([]),b(!1),null!==a&&x()}),[a]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:o,setShowSignifier:s,message:l,error:u}),(0,Tl.jsx)("div",{className:r.root,children:(0,Tl.jsx)(CN,{className:r.cardContainer,children:(0,Tl.jsx)(WM,{className:r.card,children:(0,Tl.jsx)(SU,{children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[Hu(i,null===(t=a.id)||void 0===t?void 0:t.toUpperCase(),il)?(0,Tl.jsx)(CN,{xs:12,sm:12,item:!0,children:(0,Tl.jsx)(gJ,{emptyRow:!0,currValue:g,items:f,property:"name",title:"Assign To Template",handleChange:e=>v(e)})}):null,(0,Tl.jsx)(CN,{xs:12,sm:12,item:!0,children:(0,Tl.jsx)($Y,{className:r.copy,style:{marginTop:"10px"},control:(0,Tl.jsx)(lX,{color:"primary",checked:y,onChange:()=>b(!y)}),label:"Include Feature Job in Search Results"})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,container:!0,justifyContent:"flex-end",children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginRight:"8px"},className:r.sensitiveButton,type:"submit",variant:"contained",color:"primary",onClick:()=>w(),children:"Save Information"})})]})})})})})]})};const pre=function(){const e=cb((e=>({root:{width:"100%",[e.breakpoints.down("md")]:{width:"100%"}},autocomplete:{width:"35%",paddingBottom:"20px",[e.breakpoints.down("md")]:{width:"100%"}}}))),t=e(),n=Oc(qC),r=[{title:"Results Table",component:(0,Tl.jsx)(ure,{})},{title:"Featured Ad Results",component:(0,Tl.jsx)(dre,{})}];return(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[n.shortName," Results"]}),(0,Tl.jsx)("div",{className:t.root,children:(0,Tl.jsx)(FZ,{tabs:r})})]})})},hre=e=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/managelocations/getlocations/"+e).then((e=>e.data)),fre=()=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/managelocations/getcountries").then((e=>e.data)),mre=(e,t,n,r)=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/managelocations/getcoords/"+t+"/"+n+"/"+r+"/"+e+"/").then((e=>e.data)),gre=cb((e=>({rowCell:{cursor:"pointer",background:e.palette.primary.blue,textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},rowCellOdd:{cursor:"default !important",background:"white",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},tableCell:{color:e.palette.primary.copy}})));function vre(t){let{columns:n,element:r,index:a,setTableData:i}=t;const o=gre(),[s,l]=(0,e.useState)(!1),[c,u]=(0,e.useState)(!1),[d,p]=(0,e.useState)(""),[h,f]=(0,e.useState)(!1),[m,g]=(0,e.useState)(!1),v=()=>{var e;vU((e=r.id,tl().delete(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/managelocations/deleteLocation/"+e).then((e=>e))),"Location Deleted",u,p,f,g).then((()=>{hre(r.clientId).then((e=>{i(e)}))}))};return(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:c,setShowSignifier:u,message:d,error:h}),(0,Tl.jsx)(FW,{hover:!0,className:o.rowCell,component:ch,to:{pathname:"/locations/locationdetailed",state:r},className:a%2?o.rowCell:o.rowCellOdd,children:n.map(((e,t)=>{var n,a,i,s,c,u;return(0,Tl.jsx)(HW,{align:"left",className:o.tableCell,children:"City"===e.label?null===(n=r.address)||void 0===n||null===(a=n.city)||void 0===a?void 0:a.name:"Division"===e.label?null===(i=r.address)||void 0===i||null===(s=i.city)||void 0===s||null===(c=s.division)||void 0===c?void 0:c.name:"Zip Code"===e.label?null===(u=r.address)||void 0===u?void 0:u.zipCode:"Delete"===e.label&&0===r.adLocationXrefs.length?(0,Tl.jsx)(FS,{title:"Delete Location",children:(0,Tl.jsx)(hm,{onClick:e=>function(e){e.preventDefault(),l(!0)}(e),size:"large",children:(0,Tl.jsx)(qW,{})})}):r[e.propName]},t)}))},a),(0,Tl.jsx)(jW,{open:s,onClose:()=>l(!1),children:(0,Tl.jsx)(gU,{question:"Delete this location?",func:()=>v(),closeModal:()=>l(!1)})})]})}const yre=cb((e=>({root:{[e.breakpoints.down("md")]:{width:"100%"},justifyContent:"space-between",width:"100%",display:"flex",flexDirection:"column"},error:{color:e.palette.error.main}})));function bre(t){let{openModal:n,clientId:r,setShowSignifier:a,setResponseMessage:i,setShowError:o,setTableData:s}=t;const l=yre(),[c,u]=(0,e.useState)(!1),[d,p]=(0,e.useState)(!1),[h,f]=(0,e.useState)(""),[m,g]=(0,e.useState)(""),[v,y]=(0,e.useState)(""),[b,x]=(0,e.useState)(""),[w,S]=(0,e.useState)(""),[C,A]=(0,e.useState)(""),[k,T]=(0,e.useState)(""),[j,E]=(0,e.useState)(""),[P,N]=(0,e.useState)(""),[D,M]=(0,e.useState)(""),[_,I]=(0,e.useState)(""),[R,O]=(0,e.useState)([]),[L,F]=(0,e.useState)([]),[B,z]=(0,e.useState)([]),[V,W]=(0,e.useState)({}),[U,$]=(0,e.useState)({}),[H,q]=(0,e.useState)({});function G(){if(""===h||""===k||""===b||void 0===(null===H||void 0===H?void 0:H.name)||void 0===(null===V||void 0===V?void 0:V.name)||void 0===(null===U||void 0===U?void 0:U.name)||"+ Add New City"===(null===H||void 0===H?void 0:H.name)&&""===_)return void p(!0);let e={ClientId:r,CityID:H.id,DivisionID:U.id,CountryID:V.id,Name:h,City:"+ Add New City"===(null===H||void 0===H?void 0:H.name)||void 0===(null===H||void 0===H?void 0:H.name)?_:H.name,StoreNumber:m,Brand:v,AddressLine1:b,AddressLine2:w,AddressLine3:C,CityAbbreviation:null===H||void 0===H?void 0:H.Abbreviation,DivisionAbbreviation:null===U||void 0===U?void 0:U.Abbreviation,CountryName:null===V||void 0===V?void 0:V.name,CountryAbbreviation:null===V||void 0===V?void 0:V.Abbreviation,CountryCode:null===V||void 0===V?void 0:V.Code,ZipCode:k,Longitude:j,Latitude:P,LocationPage:D};var t;vU((t=e,tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/managelocations/addlocation",t).then((e=>e.data))),"Location Added",a,i,o,u).then((()=>{hre(r).then((e=>{s(e),n(!1)}))}))}return(0,e.useEffect)((()=>{fre().then((e=>{e.sort(((e,t)=>{const n=kU(e.name,t.name);return 0!==n?n:e[1]-t[1]})),O(e)}))}),[]),(0,e.useEffect)((()=>{void 0!==(null===V||void 0===V?void 0:V.divisions)&&V.divisions.sort(((e,t)=>{const n=kU(e.name,t.name);return 0!==n?n:e[1]-t[1]})),F(void 0===(null===V||void 0===V?void 0:V.divisions)?[]:V.divisions)}),[V]),(0,e.useEffect)((()=>{void 0!==(null===U||void 0===U?void 0:U.cities)&&U.cities.sort(((e,t)=>{const n=kU(e.name,t.name);return 0!==n?n:e[1]-t[1]})),z(void 0===(null===U||void 0===U?void 0:U.cities)?[{name:"+ Add New City"}]:[{name:"+ Add New City"}].concat(U.cities))}),[U]),(0,e.useEffect)((()=>{I("")}),[H]),(0,Tl.jsxs)("div",{className:l.root,children:[(0,Tl.jsx)(fU,{loading:c}),(0,Tl.jsx)(CN,{children:(0,Tl.jsx)(WM,{children:(0,Tl.jsxs)(SU,{children:[(0,Tl.jsx)(MU,{style:{fontWeight:"bold"},children:"Add Location"}),(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:4,children:[(0,Tl.jsx)(FU,{placeholder:"Name",label:"Name",variant:"standard",fullWidth:!0,required:!0,value:h,error:d&&""===h,onChange:e=>f(e.target.value)}),d&&""===h&&(0,Tl.jsx)(MU,{className:l.error,children:"Name Required"})]}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Number",label:"Number",variant:"standard",fullWidth:!0,required:!0,value:m,onChange:e=>g(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Brand",label:"Brand",variant:"standard",fullWidth:!0,required:!0,value:v,onChange:e=>y(e.target.value)})}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:4,children:[(0,Tl.jsx)(FU,{placeholder:"Address Line 1",label:"Address Line 1",variant:"standard",fullWidth:!0,required:!0,error:d&&""===b,value:b,onChange:e=>x(e.target.value)}),d&&""===b&&(0,Tl.jsx)(MU,{className:l.error,children:"Address Required"})]}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Address Line 2",label:"Address Line 2",variant:"standard",fullWidth:!0,required:!0,value:w,onChange:e=>S(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Address Line 3",label:"Address Line 3",variant:"standard",fullWidth:!0,required:!0,value:C,onChange:e=>A(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(L7,{items:R,property:"name",title:"Countries",handleChange:e=>W(e),currValue:V,error:d&&void 0===(null===V||void 0===V?void 0:V.name)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(L7,{items:L,property:"name",title:"Division",handleChange:e=>$(e),currValue:U,error:d&&void 0===(null===U||void 0===U?void 0:U.name)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(L7,{items:B,property:"name",title:"Cities",handleChange:e=>q(e),currValue:H,error:d&&void 0===(null===H||void 0===H?void 0:H.name)||d&&"+ Add New City"===(null===H||void 0===H?void 0:H.name)&&""===_})}),"+ Add New City"===(null===H||void 0===H?void 0:H.name)?(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:6,children:[(0,Tl.jsx)(FU,{placeholder:"New City Name",label:"New City Name",variant:"standard",fullWidth:!0,"aria-required":!0,error:d&&""===_,value:_,onChange:e=>I(e.target.value)}),d&&""===_&&(0,Tl.jsx)(MU,{className:l.error,children:"City Required"})]}):null,(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:12,children:[(0,Tl.jsx)(FU,{placeholder:"Postal Code",label:"Postal Code",variant:"standard",fullWidth:!0,required:!0,error:d&&""===k,value:k,onChange:e=>T(e.target.value)}),d&&""===k&&(0,Tl.jsx)(MU,{className:l.error,children:"Postal Code Required"})]}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Latitude",label:"Latitude",variant:"standard",fullWidth:!0,required:!0,value:P,onChange:e=>N(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Longitude",label:"Longitude",variant:"standard",fullWidth:!0,required:!0,value:j,onChange:e=>E(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsxs)(vW,{style:{marginTop:"10px"},type:"submit",variant:"contained",color:"primary",fullWidth:!0,onClick:()=>function(){if(void 0!==(null===V||void 0===V?void 0:V.name)&&void 0!==(null===U||void 0===U?void 0:U.name)&&void 0!==(null===H||void 0===H?void 0:H.name))if("+ Add New City"!==(null===H||void 0===H?void 0:H.name)||""!==_){var e=""===b?" ":b,t=""===k?" ":k,n="+ Add New City"===(null===H||void 0===H?void 0:H.name)?_:H.name;mre(e,n,U.name,t).then((e=>{N(e.key),E(e.value)}))}else alert("Please enter Country, Division, and City");else alert("Please enter Country, Division, and City")}(),children:[" ","Get Coordinates"]})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(FU,{placeholder:"Location's Page URL",label:"Location's Page URL",variant:"standard",fullWidth:!0,required:!0,value:D,onChange:e=>M(e.target.value)})}),(0,Tl.jsxs)(CN,{container:!0,justifyContent:"flex-end",direction:"row",style:{marginRight:"10px"},children:[(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{color:"#82B288",marginTop:"20px"},type:"submit",variant:"outlined",fullWidth:!0,onClick:()=>n(!1),children:"Cancel"})}),(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginLeft:"10px"},type:"submit",variant:"contained",color:"primary",fullWidth:!0,onClick:()=>G(),children:"Save"})})]})]})]})})})]})}const xre=function(){const t=cb((e=>({root:{width:"90%",[e.breakpoints.down("md")]:{width:"100%"}},autocomplete:{width:"35%",paddingBottom:"20px",[e.breakpoints.down("md")]:{width:"100%"}},hint:{position:"absolute",left:0,right:0,top:0,bottom:0,marginTop:"auto",marginBottom:"auto",marginLeft:"auto",marginRight:"auto",width:"300px",height:"300px",fontSize:"32px",textAlign:"center",color:"rgba(0,0,0,.6)"}}))),n=t(),r=Oc(qC),[a,i]=(0,e.useState)([]),[o,s]=(0,e.useState)(!0),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(""),[f,m]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{null!==r&&void 0!==r&&(s(!0),hre(r.id).then((e=>{i(e),s(!1)})))}),[r]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:u,setShowSignifier:d,message:p,error:f}),(0,Tl.jsx)("div",{className:n.root,children:null===r?(0,Tl.jsx)("div",{className:n.hint,children:(0,Tl.jsx)("span",{children:"Select a client"})}):(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(vW,{style:{marginTop:"0px",marginBottom:"20px"},type:"submit",variant:"contained",color:"primary",onClick:()=>c(!l),children:"Add Location"})}),(0,Tl.jsx)(GX,{columns:[{label:"Name",propName:"name"},{label:"Number",propName:"storeNumber"},{label:"Brand",propName:"brand"},{label:"City",propName:"address.city.name"},{label:"Division",propName:"address.city.division.name"},{label:"Zip Code",propName:"address.zipCode"},{label:"Delete",propName:""}],tableData:a,rowComponent:vre,loading:o,setTableData:i})]})}),(0,Tl.jsx)(jW,{open:l,onClose:()=>c(!1),children:(0,Tl.jsx)(bre,{openModal:c,setData:i,setShowSignifier:d,setResponseMessage:h,setShowError:m,clientId:r.id,setTableData:i})})]})};const wre=function(){const t=cb((e=>({root:{width:"60%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},cardContainer:{[e.breakpoints.down("md")]:{width:"100%",overflowY:"scroll"},display:"flex",flexDirection:"column",marginBottom:"20px",width:"100%"},error:{color:e.palette.error.main}}))),n=t(),r=Oc(qC),[a,i]=(0,e.useState)(!1),[o,s]=(0,e.useState)(""),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(!1),[f,m]=(0,e.useState)(""),[g,v]=(0,e.useState)(null);function y(){tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/managelocations/getTemplate",{headers:{"Content-Type":"text/csv"},responseType:"blob"}).then((e=>{const t=window.URL.createObjectURL(new Blob([e.data])),n=document.createElement("a");return n.href=t,n.setAttribute("download","locations.csv"),document.body.appendChild(n),n.click(),!0})).catch((e=>(console.log(e),!1)))}function b(){let e=new FormData;e.append("FormFile",g),vU(((e,t)=>tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/managelocations/uploadlocations/"+t,e,{headers:{"Content-Type":"multipart/form-data"}}).then((e=>e.data)))(e,r.id),"Locations Uploaded",i,s,c,d)}return(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:a,setShowSignifier:i,message:o,error:l}),(0,Tl.jsxs)("div",{className:n.root,children:[(0,Tl.jsx)(WM,{className:n.card,children:(0,Tl.jsx)(SU,{children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:2,children:(0,Tl.jsxs)("label",{htmlFor:"contained-button-file",children:[(0,Tl.jsx)(uM,{accept:"image/*",id:"contained-button-file",multiple:!0,type:"file",style:{display:"none"},onChange:e=>(e=>{var t,n=null===(t=e.target.files[0])||void 0===t?void 0:t.name;".csv"===n.substring(n.length-4)?(m(n),v(e.target.files[0])):h(!0)})(e)}),(0,Tl.jsx)(vW,{variant:"contained",color:"primary",component:"span",style:{marginTop:"10px",whiteSpace:"nowrap"},children:"Select File"})]})}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:10,children:[(0,Tl.jsx)(FU,{placeholder:"File Name",label:"File Name",variant:"standard",fullWidth:!0,required:!0,disabled:!0,error:p,value:f}),p&&(0,Tl.jsx)(MU,{className:n.error,children:"Image Required"})]}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,container:!0,justifyContent:"flex-end",children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginRight:"8px"},className:n.sensitiveButton,type:"submit",variant:"contained",color:"primary",disabled:""===f,onClick:()=>b(),children:"Upload"})})]})})}),(0,Tl.jsx)(CN,{className:n.cardContainer,children:(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(vW,{style:{marginTop:"20px"},className:n.sensitiveButton,type:"submit",variant:"contained",color:"primary",onClick:()=>y(),children:"Download Template File"})})})]})]})};const Sre=function(){const e=cb((e=>({root:{width:"100%",[e.breakpoints.down("md")]:{width:"100%"}},autocomplete:{width:"35%",paddingBottom:"20px",[e.breakpoints.down("md")]:{width:"100%"}}}))),t=e(),n=Oc(qC),r=[{title:"Manage",component:(0,Tl.jsx)(xre,{})},{title:"Upload",component:(0,Tl.jsx)(wre,{})}];return(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[n.shortName," Locations"]}),(0,Tl.jsx)("div",{className:t.root,children:(0,Tl.jsx)(FZ,{tabs:r})})]})})};const Cre=function(){const t=cb((e=>({root:{width:"100%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},cardContainer:{[e.breakpoints.down("md")]:{width:"100%",overflowY:"scroll"},display:"flex",flexDirection:"column",marginBottom:"20px",width:"50%"},error:{color:e.palette.error.main},copy:{color:e.palette.primary.copy}}))),n=t();let r=zu();const[a,i]=(0,e.useState)(!1),[o,s]=(0,e.useState)(""),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(!1),p=Oc(qC),[h,f]=(0,e.useState)(!1),[m,g]=(0,e.useState)(""),[v,y]=(0,e.useState)(""),[b,x]=(0,e.useState)(""),[w,S]=(0,e.useState)(""),[C,A]=(0,e.useState)(""),[k,T]=(0,e.useState)(""),[j,E]=(0,e.useState)(""),[P,N]=(0,e.useState)(""),[D,M]=(0,e.useState)(""),[_,I]=(0,e.useState)(""),[R,O]=(0,e.useState)(""),[L,F]=(0,e.useState)(""),[B,z]=(0,e.useState)(""),[V,W]=(0,e.useState)(""),[U,$]=(0,e.useState)([]),[H,q]=(0,e.useState)([]),[G,K]=(0,e.useState)([]),[Y,X]=(0,e.useState)({}),[Z,J]=(0,e.useState)({}),[Q,ee]=(0,e.useState)({}),[te,ne]=(0,e.useState)([]);function re(){if(""===v||""===P||""===C||void 0===(null===Q||void 0===Q?void 0:Q.name)||void 0===(null===Y||void 0===Y?void 0:Y.name)||void 0===(null===Z||void 0===Z?void 0:Z.name)||"+ Add New City"===Q.name&&""===L)return void f(!0);var e=[];for(var t in te)te[t].checked&&e.push(te[t].id);let n={Id:B,ClientId:p.id,CityID:Q.id,DivisionID:Z.id,CountryID:Y.id,AddressID:V,Name:v,City:"+ Add New City"===(null===Q||void 0===Q?void 0:Q.name)||void 0===(null===Q||void 0===Q?void 0:Q.name)?L:Q.name,StoreNumber:b,Brand:w,AddressLine1:C,AddressLine2:k,AddressLine3:j,CityAbbreviation:Q.Abbreviation,DivisionAbbreviation:Z.Abbreviation,CountryName:Y.name,CountryAbbreviation:Y.Abbreviation,CountryCode:Y.Code,ZipCode:P,Longitude:D,Latitude:_,LocationPage:R,UpdateLocationIDs:e};var r;vU((r=n,tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/managelocations/editlocation",r).then((e=>e))),"Location Saved",i,s,c,d)}return(0,e.useEffect)((()=>{fre().then((e=>{e.sort(((e,t)=>{const n=kU(e.name,t.name);return 0!==n?n:e[1]-t[1]})),$(e)}))}),[]),(0,e.useEffect)((()=>{for(var e in U){var t,n,a,i;if(U[e].id===(null===(t=r.state)||void 0===t||null===(n=t.address)||void 0===n||null===(a=n.city)||void 0===a||null===(i=a.division)||void 0===i?void 0:i.country.id))return void X(U[e])}}),[U]),(0,e.useEffect)((()=>{for(var e in H){var t,n,a;if(H[e].id===(null===(t=r.state)||void 0===t||null===(n=t.address)||void 0===n||null===(a=n.city)||void 0===a?void 0:a.division.id))return void J(H[e])}}),[H]),(0,e.useEffect)((()=>{for(var e in G){var t,n;if(G[e].id===(null===(t=r.state)||void 0===t||null===(n=t.address)||void 0===n?void 0:n.city.id))return void ee(G[e])}}),[G]),(0,e.useEffect)((()=>{void 0!==(null===Y||void 0===Y?void 0:Y.divisions)&&Y.divisions.sort(((e,t)=>{const n=kU(e.name,t.name);return 0!==n?n:e[1]-t[1]})),q(void 0===(null===Y||void 0===Y?void 0:Y.divisions)?[]:Y.divisions),J({}),ee({})}),[Y]),(0,e.useEffect)((()=>{void 0!==(null===Z||void 0===Z?void 0:Z.cities)&&Z.cities.sort(((e,t)=>{const n=kU(e.name,t.name);return 0!==n?n:e[1]-t[1]})),K(void 0===(null===Z||void 0===Z?void 0:Z.cities)?[{name:"+ Add New City"}]:[{name:"+ Add New City"}].concat(Z.cities)),ee({})}),[Z]),(0,e.useEffect)((()=>{F("")}),[Q]),(0,e.useEffect)((()=>{var e,t,n,a,i,o,s,l,c,u,d,h,f,m,v,b,w,C,k,j,P,D;((e,t)=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/managelocations/getAddress/"+e+"/"+t).then((e=>e.data)))(null===(e=r.state)||void 0===e||null===(t=e.address)||void 0===t?void 0:t.id,p.id).then((e=>{e.locations.forEach((e=>e.checked=!0)),ne(e.locations)})),y(null===(n=r.state)||void 0===n?void 0:n.name),x(null===(a=r.state)||void 0===a?void 0:a.storeNumber),S(null===(i=r.state)||void 0===i?void 0:i.brand),A(null===(o=r.state)||void 0===o||null===(s=o.address)||void 0===s?void 0:s.line1),T(null===(l=r.state)||void 0===l||null===(c=l.address)||void 0===c?void 0:c.line2),E(null===(u=r.state)||void 0===u||null===(d=u.address)||void 0===d?void 0:d.line3),N(null===(h=r.state)||void 0===h||null===(f=h.address)||void 0===f?void 0:f.zipCode),M(null===(m=r.state)||void 0===m||null===(v=m.address)||void 0===v?void 0:v.longitude),I(null===(b=r.state)||void 0===b||null===(w=b.address)||void 0===w?void 0:w.latitude),O(null===(C=r.state)||void 0===C?void 0:C.locationPage),z(null===(k=r.state)||void 0===k?void 0:k.id),W(null===(j=r.state)||void 0===j||null===(P=j.address)||void 0===P?void 0:P.id),g(null===(D=r.state)||void 0===D?void 0:D.clientId)}),[]),null===r.state||null===r.state||p.id!==m&&""!==m?(0,Tl.jsx)(ju,{to:"/locations"}):(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:a,setShowSignifier:i,message:o,error:l}),(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[p.shortName," Location Detailed"]}),(0,Tl.jsxs)("div",{className:n.root,children:[te.length>1?(0,Tl.jsx)(CN,{className:n.cardContainer,children:(0,Tl.jsx)(WM,{className:n.card,children:(0,Tl.jsxs)(SU,{children:[(0,Tl.jsx)(MU,{className:n.error,style:{fontWeight:"bold"},children:"Warning - The address is shared by multiple locations Select the locations you want to update the address for."}),te.map(((e,t)=>e.id!==B?(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)($Y,{control:(0,Tl.jsx)(lX,{color:"primary",checked:e.checked,onChange:()=>(e=>{var t=[...te];t[e].checked=!t[e].checked,ne(t)})(t)}),label:e.name})}):null))]})})}):null,(0,Tl.jsx)(CN,{className:n.cardContainer,children:(0,Tl.jsx)(WM,{className:n.card,children:(0,Tl.jsx)(SU,{children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:4,children:[(0,Tl.jsx)(FU,{placeholder:"Name",label:"Name",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:n.copy},value:v,error:h&&""===v,onChange:e=>y(e.target.value)}),h&&""===v&&(0,Tl.jsx)(MU,{className:n.error,children:"Name Required"})]}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Number",label:"Number",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:n.copy},value:b,onChange:e=>x(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Brand",label:"Brand",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:n.copy},value:w,onChange:e=>S(e.target.value)})}),(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:4,children:[(0,Tl.jsx)(FU,{placeholder:"Address Line 1",label:"Address Line 1",variant:"standard",fullWidth:!0,required:!0,error:h&&""===C,InputProps:{className:n.copy},value:C,onChange:e=>A(e.target.value)}),h&&""===C&&(0,Tl.jsx)(MU,{className:n.error,children:"Address Required"})]}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Address Line 2",label:"Address Line 2",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:n.copy},value:k,onChange:e=>T(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Address Line 3",label:"Address Line 3",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:n.copy},value:j,onChange:e=>E(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(L7,{items:U,property:"name",title:"Countries",handleChange:e=>X(e),currValue:Y,error:h&&void 0===(null===Y||void 0===Y?void 0:Y.name)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(L7,{items:H,property:"name",title:"Division",handleChange:e=>J(e),currValue:Z,error:h&&void 0===(null===Z||void 0===Z?void 0:Z.name)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(L7,{items:G,property:"name",title:"Cities",handleChange:e=>ee(e),currValue:Q,error:h&&void 0===(null===Q||void 0===Q?void 0:Q.name)||h&&"+ Add New City"===(null===Q||void 0===Q?void 0:Q.name)&&""===L})}),"+ Add New City"===(null===Q||void 0===Q?void 0:Q.name)?(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:6,children:[(0,Tl.jsx)(FU,{placeholder:"New City Name",label:"New City Name",variant:"standard",fullWidth:!0,"aria-required":!0,error:h&&""===L,InputProps:{className:n.copy},value:L,onChange:e=>F(e.target.value)}),h&&""===L&&(0,Tl.jsx)(MU,{className:n.error,children:"City Required"})]}):null,(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:12,children:[(0,Tl.jsx)(FU,{placeholder:"Postal Code",label:"Postal Code",variant:"standard",fullWidth:!0,required:!0,error:h&&""===P,InputProps:{className:n.copy},value:P,onChange:e=>N(e.target.value)}),h&&""===P&&(0,Tl.jsx)(MU,{className:n.error,children:"Postal Code Required"})]}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Latitude",label:"Latitude",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:n.copy},value:_,onChange:e=>I(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsx)(FU,{placeholder:"Longitude",label:"Longitude",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:n.copy},value:D,onChange:e=>M(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:4,children:(0,Tl.jsxs)(vW,{style:{marginTop:"10px"},type:"submit",variant:"contained",color:"primary",fullWidth:!0,onClick:()=>function(){if(void 0!==(null===Y||void 0===Y?void 0:Y.name)&&void 0!==(null===Z||void 0===Z?void 0:Z.name)&&void 0!==(null===Q||void 0===Q?void 0:Q.name))if("+ Add New City"!==(null===Q||void 0===Q?void 0:Q.name)||""!==L){var e=""===C?" ":C,t=""===P?" ":P,n="+ Add New City"===(null===Q||void 0===Q?void 0:Q.name)?L:Q.name;mre(e,n,Z.name,t).then((e=>{I(e.key),M(e.value)}))}else alert("Please enter Country, Division, and City");else alert("Please enter Country, Division, and City")}(),children:[" ","Get Coordinates"]})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(FU,{placeholder:"Location's Page URL",label:"Location's Page URL",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:n.copy},value:R,onChange:e=>O(e.target.value)})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,container:!0,justifyContent:"flex-end",children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginRight:"8px"},className:n.sensitiveButton,type:"submit",variant:"contained",color:"primary",onClick:()=>re(),children:"Save Information"})})]})})})})]})]})]})},Are=(e,t,n,r)=>tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/usermanagement/"+e+"/"+t+"/"+n+"/"+r).then((e=>{var t=[];return e.data.editableCareersUsers.forEach((e=>{t.push(e)})),e.data.editableCRMUsers.forEach((e=>{e.editCrmOnly=!0,t.push(e)})),t})),kre=(e,t)=>tl().put(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/usermanagement/activate/"+e+"/"+t).then((e=>e));function Tre(e){return Ff("MuiFormGroup",e)}Bf("MuiFormGroup",["root","row","error"]);const jre=["className","row"],Ere=nf("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})((e=>{let{ownerState:t}=e;return(0,wl.A)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})})),Pre=e.forwardRef((function(e,t){const n=rf({props:e,name:"MuiFormGroup"}),{className:r,row:a=!1}=n,i=(0,Sl.A)(n,jre),o=hC({props:n,muiFormControl:mC(),states:["error"]}),s=(0,wl.A)({},n,{row:a,error:o.error}),l=(e=>{const{classes:t,row:n,error:r}=e;return mh({root:["root",n&&"row",r&&"error"]},Tre,t)})(s);return(0,Tl.jsx)(Ere,(0,wl.A)({className:fh(l.root,r),ownerState:s,ref:t},i))})),Nre=Pre,Dre=cb((e=>({root:{[e.breakpoints.down("md")]:{width:"100%"},justifyContent:"space-between",width:"100%",display:"flex",flexDirection:"column"}})));function Mre(t){let{roleId:n,rights:r,setRights:a}=t;const i=Dre(),[o,s]=(0,e.useState)(!1),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(!1),[f,m]=(0,e.useState)(!1),[g,v]=(0,e.useState)(!1),[y,b]=(0,e.useState)(!1),[x,w]=(0,e.useState)(!1),[S,C]=(0,e.useState)(!1),[A,k]=(0,e.useState)(!1),[T,j]=(0,e.useState)(!1),[E,P]=(0,e.useState)(!1),[N,D]=(0,e.useState)(!1),[M,_]=(0,e.useState)(!1),I=[[sN,_],[oN,D],[iN,P],[aN,j],[rN,k],[nN,C],[tN,w],[eN,b],[QP,v],[JP,m],[ZP,h],[XP,d],[YP,c],[KP,s]],R=(e,t,n)=>{e.target.checked?a(r+t):a(r-t),n(e.target.checked)};return(0,e.useEffect)((()=>{var e=r;for(let t in I)e-I[t][0]>=0&&(I[t][1](!0),e-=I[t][0])}),[r]),""!==n&&void 0!==n?(0,Tl.jsxs)(PN,{variant:"standard",component:"fieldset",className:i.formControl,children:[n!==il?(0,Tl.jsx)(ON,{component:"legend",children:"Additional Rights"}):null,(0,Tl.jsxs)(Nre,{children:[n!==il?(0,Tl.jsx)($Y,{control:(0,Tl.jsx)(lX,{color:"primary",checked:l,onChange:e=>R(e,YP,c)}),label:"Manage Clients"}):null,n!==il&&n!==cl&&n!==ul?(0,Tl.jsx)($Y,{control:(0,Tl.jsx)(lX,{color:"primary",checked:p,onChange:e=>R(e,ZP,h)}),label:"Manage Configurations"}):null,n!==il&&n!==sl?(0,Tl.jsx)($Y,{control:(0,Tl.jsx)(lX,{color:"primary",checked:M,onChange:e=>R(e,sN,_)}),label:"Manage Connect Billings"}):null,n!==rl&&n!==il&&n!==cl&&n!==ul&&n!==dl?(0,Tl.jsx)($Y,{control:(0,Tl.jsx)(lX,{color:"primary",checked:x,onChange:e=>R(e,tN,w)}),label:"Manage Event Sponsors"}):null,n!==rl&&n!==il&&n!==cl&&n!==ul&&n!==dl?(0,Tl.jsx)($Y,{control:(0,Tl.jsx)(lX,{color:"primary",checked:g,onChange:e=>R(e,QP,v)}),label:"Manage Event Types"}):null,n!==rl&&n!==il&&n!==cl&&n!==ul&&n!==dl?(0,Tl.jsx)($Y,{control:(0,Tl.jsx)(lX,{color:"primary",checked:y,onChange:e=>R(e,eN,b)}),label:"Manage Event Venues"}):null,n!==rl&&n!==il&&n!==cl&&n!==ul&&n!==dl?(0,Tl.jsx)($Y,{control:(0,Tl.jsx)(lX,{color:"primary",checked:f,onChange:e=>R(e,JP,m)}),label:"Manage Events"}):null,n!==rl&&n!==il&&n!==ol&&n!==cl&&n!==ul?(0,Tl.jsx)($Y,{control:(0,Tl.jsx)(lX,{color:"primary",checked:S,onChange:e=>R(e,nN,C)}),label:"Manage Featured Jobs"}):null,n!==il&&n!==ul?(0,Tl.jsx)($Y,{control:(0,Tl.jsx)(lX,{color:"primary",checked:E,onChange:e=>R(e,iN,P)}),label:"Manage Locations"}):null,n!==nl&&n!==rl&&n!==il&&n!==ol&&n!==cl&&n!==ul&&n!==dl?(0,Tl.jsx)($Y,{control:(0,Tl.jsx)(lX,{color:"primary",checked:A,onChange:e=>R(e,rN,k)}),label:"Manage Prefiltered Links"}):null,n!==il?(0,Tl.jsx)($Y,{control:(0,Tl.jsx)(lX,{color:"primary",checked:N,onChange:e=>R(e,oN,D)}),label:"Manage Resumes"}):null,n!==il&&n!==cl&&n!==ul&&n!==nl&&n!==rl?(0,Tl.jsx)($Y,{control:(0,Tl.jsx)(lX,{color:"primary",checked:T,onChange:e=>R(e,aN,j)}),label:"Manage Talent NetWork Data"}):null,n!==il?(0,Tl.jsx)($Y,{control:(0,Tl.jsx)(lX,{color:"primary",checked:o,onChange:e=>R(e,KP,s)}),label:"Manage Tenants"}):null,n!==rl&&n!==il&&n!==ul?(0,Tl.jsx)($Y,{control:(0,Tl.jsx)(lX,{color:"primary",checked:u,onChange:e=>R(e,XP,d)}),label:"Manage Users"}):null]})]}):null}const _re=[{name:"No CRM Access",value:0},{name:"CRM Access",value:1},{name:"CRM User Management",value:2}];function Ire(){const t=Oc(Yp),n=Oc(qC),r=Oc(eh),[a,i]=(0,e.useState)([]),[o,s]=(0,e.useState)(""),[l,c]=(0,e.useState)(_re[0]),[u,d]=(0,e.useState)(0),[p,h]=(0,e.useState)(!1),[f,m]=(0,e.useState)(!1),[g,v]=(0,e.useState)(!1),[y,b]=(0,e.useState)(!1),x=[ll,al],w=[...x,il],S=[...w,ul],C=[...S,rl],A=[...C,cl];return(0,e.useEffect)((()=>{!0===Hu(r,t.id.toUpperCase(),il)?h(!0):!0===Hu(r,t.id.toUpperCase(),ul)?m(!0):!0===Hu(r,t.id.toUpperCase(),rl)?v(!0):!0===Hu(r,t.id.toUpperCase(),cl)&&b(!0),tl().get(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/usermanagement/allRoles").then((e=>e.data)).then((e=>{i(e)}))}),[]),{effects:{},getters:{roles:a,selectedRole:o,selectedRights:u,selectedCRMRole:l,isSuperAdmin:p,isAdmin:f,isLightAdmin:g,isClientAdmin:y,selectedClient:t,selectedCareersClient:n,userPermissions:r},handlers:{filterRoles:function(){var e=[];return e=p?a.filter((e=>!x.includes(e.id.toUpperCase()))):f?a.filter((e=>!w.includes(e.id.toUpperCase()))):g?a.filter((e=>!S.includes(e.id.toUpperCase()))):y?a.filter((e=>!C.includes(e.id.toUpperCase()))):a.filter((e=>!A.includes(e.id.toUpperCase()))),e}},setters:{setRoles:i,setSelectedRole:s,setSelectedRights:d,setSelectedCRMRole:c,setIsSuperAdmin:h,setIsAdmin:m,setIsLightAdmin:v,setIsClientAdmin:b}}}const Rre=cb((e=>({root:{width:"100% !important",paddingTop:"5px","& .MuiOutlinedInput-notchedOutline":{borderColor:"black"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.primary.main},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.primary.main}}})));function Ore(e){let{dropdownItems:t,propertyName:n,label:r,onChange:a,currValue:i}=e;const o=Rre();return console.log(t),(0,Tl.jsx)(R7,{value:i,className:o.root,options:t,getOptionLabel:e=>e[n]||"",style:{width:300},onChange:a,defaultValue:1===t.length?t.find((e=>e[n][0])):null,renderInput:e=>(0,Tl.jsx)(FU,{...e,label:r,variant:"outlined",InputLabelProps:{style:{color:"#82B288"}}})})}const Lre=cb((e=>({root:{[e.breakpoints.down("md")]:{width:"100%"},justifyContent:"space-between",width:"100%",display:"flex",flexDirection:"column"}})));function Fre(t){var n,r;let{user:a,role:i,rights:o,crmRole:s,editCrmOnly:l,canEditCrmRoles:c,setModal:u,setShowSignifier:d,setResponseMessage:p,setShowError:h,setTableData:f}=t;const m=Lre(),g=Ire(),[v,y]=(0,e.useState)(!1);(0,e.useEffect)((()=>{if(null!=i)for(var e in g.getters.roles)g.getters.roles[e].id===i.id&&g.setters.setSelectedRole(g.getters.roles[e]);g.setters.setSelectedCRMRole(_re[s])}),[s,i,g.getters.roles]),(0,e.useEffect)((()=>{g.setters.setSelectedRights(o)}),[o]);const b=()=>{var e;vU(((e,t,n,r)=>{var a="";return void 0!==t&&(a="&roleId="+t),tl().put(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/usermanagement/editPermissions?userId="+e+a+"&rightsFlag="+n+"&crmRole="+r).then((e=>e.data))})(null===a||void 0===a?void 0:a.id,null===(e=g.getters.selectedRole)||void 0===e?void 0:e.id,null===g.getters.selectedRights?"":g.getters.selectedRights,g.getters.selectedCRMRole.value),"Role saved",d,p,h,y).then((()=>{Are(g.getters.isSuperAdmin,g.getters.isAdmin,g.getters.isLightAdmin,g.getters.isClientAdmin).then((e=>{f(e)})),u(!1)}))};return(0,Tl.jsxs)("div",{className:m.root,children:[(0,Tl.jsx)(fU,{loading:v}),(0,Tl.jsx)(CN,{children:(0,Tl.jsx)(WM,{children:(0,Tl.jsxs)(SU,{children:[(0,Tl.jsx)(MU,{style:{fontWeight:"bold"},children:"Edit User Permissions"}),(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[g.getters.selectedClient.hasCareers&&!l?(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(sC,{})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(Ore,{dropdownItems:g.handlers.filterRoles(),propertyName:"name",label:"Careers Role",onChange:(e,t)=>g.setters.setSelectedRole(t),currValue:g.getters.selectedRole})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(Mre,{roleId:null===(n=g.getters.selectedRole)||void 0===n||null===(r=n.id)||void 0===r?void 0:r.toUpperCase(),rights:g.getters.selectedRights,setRights:g.setters.setSelectedRights})})]}):null,c?(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:12,children:[(0,Tl.jsx)(sC,{}),(0,Tl.jsx)("br",{})]}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(gJ,{currValue:g.getters.selectedCRMRole,items:_re,property:"name",title:"CRM Role",handleChange:e=>g.setters.setSelectedCRMRole(e),multi:!1})})]}):null,(0,Tl.jsxs)(CN,{container:!0,justifyContent:"flex-end",direction:"row",style:{marginRight:"10px"},children:[(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{color:"#82B288",marginTop:"20px"},type:"submit",variant:"outlined",fullWidth:!0,onClick:()=>u(!1),children:"Cancel"})}),(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginLeft:"10px"},type:"submit",variant:"contained",color:"primary",fullWidth:!0,onClick:()=>b(),children:"Save"})})]})]})]})})})]})}const Bre=cb((e=>({rowCell:{cursor:"default !important",background:e.palette.primary.blue,textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},rowCellOdd:{cursor:"default !important",background:"white",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},itemIcon:{cursor:"grab"},tableCell:{[e.breakpoints.down("md")]:{width:"auto"},width:"800px",color:e.palette.primary.copy}})));function zre(t){const n=Bre(),[r,a]=(0,e.useState)(!1),[i,o]=(0,e.useState)(!1),[s,l]=(0,e.useState)(""),[c,u]=(0,e.useState)(!1);return(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:i,setShowSignifier:o,message:s,error:c}),(0,Tl.jsx)(FW,{hover:!0,className:t.index%2?n.rowCell:n.rowCellOdd,component:ph,to:{pathname:"/users/usersdetailed",state:t.element},ref:t.innerRef,...t,children:t.columns.map(((e,r)=>{var i,o,s,l;return(0,Tl.jsx)(HW,{align:"left",className:n.tableCell,children:"Name"===e.label?(null===(i=t.element.user)||void 0===i?void 0:i.firstName)+" "+(null===(o=t.element.user)||void 0===o?void 0:o.lastName):"Email Address"===e.label?null===(s=t.element.user)||void 0===s?void 0:s.emailAddress:"User Role(s)"===e.label?(0,Tl.jsxs)("div",{children:[t.customProps.selectClient.hasCareers&&t.customProps.canEditCareersRoles?(0,Tl.jsx)(Tl.Fragment,{children:null==t.element.role?t.element.editCrmOnly?(0,Tl.jsxs)("div",{style:{color:"#a19b9a",margin:"0px"},children:["No Careers Access",(0,Tl.jsx)("br",{})]}):(0,Tl.jsxs)(Tl.Fragment,{children:["No Careers Access",(0,Tl.jsx)("br",{})]}):t.element.editCrmOnly?(0,Tl.jsxs)("div",{style:{color:"#a19b9a",margin:"0px"},children:[t.element.role.name,(0,Tl.jsx)("br",{})]}):(0,Tl.jsxs)(Tl.Fragment,{children:[t.element.role.name,(0,Tl.jsx)("br",{})]})}):null,t.customProps.canEditCrmRoles?(0,Tl.jsx)(Tl.Fragment,{children:_re[t.element.crmRole].name}):null]}):""===e.label?(0,Tl.jsx)(vW,{variant:"outlined",color:"primary",onClick:e=>function(e){e.preventDefault(),a(!0)}(e),children:t.customProps.canEditCrmRoles?t.element.editCrmOnly?"Edit CRM Role":"Edit Roles":"Edit Careers Role"}):"Date Created"===e.label?eV(null===(l=t.element.user)||void 0===l?void 0:l.dateCreated):t.element[e.propName]},r)}))},t.index),(0,Tl.jsx)(jW,{open:r,fullWidth:!0,maxWidth:"sm",onClose:()=>a(!1),children:(0,Tl.jsx)(Fre,{user:t.element.user,role:t.element.role,rights:t.element.rightsFlag,crmRole:t.element.crmRole,editCrmOnly:t.element.editCrmOnly,canEditCrmRoles:t.customProps.canEditCrmRoles,setModal:a,setTableData:t.setTableData,setShowSignifier:o,setResponseMessage:l,setShowError:u})})]})}const Vre=cb((e=>({root:{[e.breakpoints.down("md")]:{width:"100%"},justifyContent:"space-between",width:"100%",display:"flex",flexDirection:"column"},error:{color:e.palette.error.main}})));function Wre(t){var n,r;let{setModal:a,setShowSignifier:i,setResponseMessage:o,setShowError:s,setTableData:l,canEditCareersRoles:c,canEditCrmRoles:u}=t;const d=Vre(),p=Ire(),[h,f]=(0,e.useState)(!1),[m,g]=(0,e.useState)(!1),[v,y]=(0,e.useState)(""),[b,x]=(0,e.useState)(""),[w,S]=(0,e.useState)(""),[C,A]=(0,e.useState)(""),[k,T]=(0,e.useState)(""),[j,E]=(0,e.useState)(""),P=()=>{var e,t,n;(""===v||""===b||""===w||k.length>0&&k.length<7?(g(!0),0):C===w&&j===k||(g(!0),0))&&vU((e=>tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/usermanagement/createUser",e).then((e=>e)))({User:{FirstName:v,LastName:b,EmailAddress:w,PhoneNumber:k},Role:{BaseClientId:null===(e=p.getters.selectedClient)||void 0===e?void 0:e.id,ClientId:null===(t=p.getters.selectedCareersClient)||void 0===t?void 0:t.id,RoleId:null===(n=p.getters.selectedRole)||void 0===n?void 0:n.id,RightsFlag:p.getters.selectedRights,CRMRole:p.getters.selectedCRMRole.value},SignupRoute:OC.REACT_APP_ACTIVATE_PORTAL}),"User Created",i,o,s,f).then((()=>{Are(p.getters.isSuperAdmin,p.getters.isAdmin,p.getters.isLightAdmin,p.getters.isClientAdmin).then((e=>{l(e)})),a(!1)}))};return(0,Tl.jsxs)("div",{className:d.root,children:[(0,Tl.jsx)(fU,{loading:h}),(0,Tl.jsx)(CN,{children:(0,Tl.jsx)(WM,{children:(0,Tl.jsxs)(SU,{children:[(0,Tl.jsx)(MU,{style:{fontWeight:"bold"},children:"Create User"}),(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(FU,{placeholder:"First Name",label:"First Name",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:d.copy},value:v,onChange:e=>y(e.target.value),error:m&&""===v,helperText:m&&""===v?"First Name Required":""})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(FU,{placeholder:"Last Name",label:"Last Name",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:d.copy},value:b,onChange:e=>x(e.target.value),error:m&&""===b,helperText:m&&""===b?"Last Name Required":""})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(FU,{placeholder:"Email Address",label:"Email Address",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:d.copy},value:w,onChange:e=>S(e.target.value),error:m&&""===w,helperText:m&&""===w?"Email Address Required":""})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(FU,{placeholder:"Confirm Email Address",label:"Confirm Email Address",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:d.copy},value:C,onChange:e=>A(e.target.value),error:m&&C!==w,helperText:m&&C!==w?"Email Addresses Must Match":""})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(FU,{placeholder:"Cell Phone Number",label:"Cell Phone Number",variant:"standard",fullWidth:!0,InputProps:{className:d.copy},value:k,onChange:e=>T(e.target.value),error:m&&k.length>0&&k.length<7,helperText:m&&k.length>0&&k.length<7?"Invalid Cell Phone Number":""})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(FU,{placeholder:"Confirm Cell Phone Number",label:"Confirm Cell Phone Number",variant:"standard",fullWidth:!0,InputProps:{className:d.copy},value:j,onChange:e=>E(e.target.value),error:m&&j!==k,helperText:m&&j!==k?"Cell Phone Numbers Must Match":""})}),(0,Tl.jsx)(MU,{style:{fontWeight:"bold"},children:"User Permissions"}),p.getters.selectedClient.hasCareers&&c?(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(sC,{})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(Ore,{dropdownItems:p.handlers.filterRoles(),propertyName:"name",label:"Careers Role",onChange:(e,t)=>p.setters.setSelectedRole(t),currValue:p.getters.selectedRole})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(Mre,{roleId:null===(n=p.getters.selectedRole)||void 0===n||null===(r=n.id)||void 0===r?void 0:r.toUpperCase(),rights:p.getters.selectedRights,setRights:p.setters.setSelectedRights})})]}):null,u?(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:12,children:[(0,Tl.jsx)(sC,{}),(0,Tl.jsx)("br",{})]}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(gJ,{currValue:p.getters.selectedCRMRole,items:_re,property:"name",title:"CRM Role",handleChange:e=>p.setters.setSelectedCRMRole(e),multi:!1})})]}):null,(0,Tl.jsxs)(CN,{container:!0,justifyContent:"flex-end",direction:"row",style:{marginRight:"10px"},children:[(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{color:"#82B288",marginTop:"20px"},type:"submit",variant:"outlined",fullWidth:!0,onClick:()=>a(!1),children:"Cancel"})}),(0,Tl.jsx)(CN,{item:!0,xs:6,sm:3,children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginLeft:"10px"},type:"submit",variant:"contained",color:"primary",fullWidth:!0,onClick:()=>P(),children:"Save"})})]})]})]})})})]})}const Ure=function(){const t=cb((e=>({root:{width:"80%",[e.breakpoints.down("md")]:{width:"100%"}},hint:{position:"absolute",left:0,right:0,top:0,bottom:0,marginTop:"auto",marginBottom:"auto",marginLeft:"auto",marginRight:"auto",width:"300px",height:"300px",fontSize:"32px",textAlign:"center",color:"rgba(0,0,0,.6)"}}))),n=t(),r=Oc(qC),a=Oc(Yp),i=Oc(eh),[o,s]=(0,e.useState)([]),[l,c]=(0,e.useState)(!0),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(""),[f,m]=(0,e.useState)(!1),[g,v]=(0,e.useState)(!1),[y,b]=(0,e.useState)(!0),[x,w]=(0,e.useState)(!0);return(0,e.useEffect)((()=>{for(var e in i){var t,n;if((null===(t=i[e])||void 0===t?void 0:t.BaseClientID)===(null===r||void 0===r?void 0:r.centralClientId))2===(null===(n=i[e])||void 0===n?void 0:n.CRMRole)?w(!0):w(!1)}}),[r,i,x]),(0,e.useEffect)((()=>{if(null!=r){c(!0);var e=!1,t=!1,n=!1,o=!1;for(var l in i){var u;if((null===(u=i[l])||void 0===u?void 0:u.BaseClientID)===(null===r||void 0===r?void 0:r.centralClientId)){var d,p,h,f;if(null==i[l].CareersRoleID){b(!1);break}b(!0),il===(null===(d=i[l])||void 0===d?void 0:d.CareersRoleID.toUpperCase())&&(e=!0),ul===(null===(p=i[l])||void 0===p?void 0:p.CareersRoleID.toUpperCase())&&(t=!0),rl===(null===(h=i[l])||void 0===h?void 0:h.CareersRoleID.toUpperCase())&&(n=!0),cl===(null===(f=i[l])||void 0===f?void 0:f.CareersRoleID.toUpperCase())&&(o=!0);break}}Are(e,t,n,o).then((e=>{s(e),c(!1)}))}else null==r&&a.hasCrm&&Are(!1,!1,!1,!1).then((e=>{s(e),c(!1)}))}),[r,i,a.hasCrm]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:u,setShowSignifier:d,message:p,error:f}),(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[a.clientName," Users Page"]}),(0,Tl.jsx)("div",{className:n.root,children:null!=r||a.hasCrm?(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginBottom:"20px",marginRight:"20px"},type:"submit",variant:"contained",color:"primary",onClick:()=>v(!0),children:"Add User"})}),(0,Tl.jsx)(GX,{columns:[{label:"Name",propName:"user.firstName"},{label:"Email Address",propName:"user.emailAddress"},{label:"Date Created",propName:"user.dateCreated"},{label:"User Role(s)",propName:""},{label:"",propName:""}],tableData:o,setTableData:s,rowComponent:zre,loading:l,customProps:{selectClient:a,canEditCareersRoles:y,canEditCrmRoles:x}})]}):(0,Tl.jsx)("div",{className:n.hint,children:(0,Tl.jsx)("span",{children:"Select a client"})})})]}),(0,Tl.jsx)(jW,{open:g,fullWidth:!0,maxWidth:"sm",onClose:()=>v(!1),children:(0,Tl.jsx)(Wre,{setModal:v,setTableData:s,setShowSignifier:d,setResponseMessage:h,setShowError:m,canEditCareersRoles:y,canEditCrmRoles:x})})]})};const $re=function(){var t,n,r,a,i,o;const s=cb((e=>({root:{width:"90%",marginBottom:"50px",[e.breakpoints.down("md")]:{width:"100%"}},error:{color:e.palette.error.main},cardContainer:{[e.breakpoints.down("md")]:{width:"100%",overflowY:"scroll"},display:"flex",flexDirection:"column",marginBottom:"20px",width:"50%"},header:{[e.breakpoints.down("md")]:{flexDirection:"column",marginTop:"10px"},display:"flex"},descBlock:{display:"flex"},descLabel:{margin:"0px",fontWeight:"700",marginBottom:"10px"},descValue:{margin:"0px",marginLeft:"5px",marginRight:"20px"},copy:{color:e.palette.primary.copy},sensitiveSection:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between",paddingTop:"20px"},sensitiveButton:{[e.breakpoints.down("md")]:{maxWidth:"none",width:"100%",marginBottom:"15px"},width:"200px"}}))),l=s();let c=zu();const[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(""),[f,m]=(0,e.useState)(!1),[g,v]=(0,e.useState)(!1),y=Oc(Yp),[b,x]=(0,e.useState)(""),[w,S]=(0,e.useState)(!1),[C,A]=(0,e.useState)(""),[k,T]=(0,e.useState)(""),[j,E]=(0,e.useState)(""),[P,N]=(0,e.useState)(""),[D,M]=(0,e.useState)(!1),[_,I]=(0,e.useState)(!1),[R,O]=(0,e.useState)(!1),[L,F]=(0,e.useState)(!1),B=()=>{if(!(""===C||""===k||""===j||P.length>0&&P.length<7)||(F(!0),0)){var e,t={FirstName:C,LastName:k,EmailAddress:j,PhoneNumber:P};vU(((e,t)=>tl().put(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/usermanagement/edit/"+e,t).then((e=>e.data)))(null===(e=c.state)||void 0===e?void 0:e.userId,t),"User Saved",d,h,m,v)}},z=()=>{var e;vU((e=c.state.user.id,tl().delete(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/usermanagement/delete/"+e).then((e=>e))),"User Deleted",d,h,m,v).then((e=>{S(!0)}))};return(0,e.useEffect)((()=>{var e,t,n,r,a,i,o,s;null!==c.state&&void 0!==c.state&&(x(c.state.baseClientId),A(null===(e=c.state)||void 0===e||null===(t=e.user)||void 0===t?void 0:t.firstName),T(null===(n=c.state)||void 0===n||null===(r=n.user)||void 0===r?void 0:r.lastName),E(null===(a=c.state)||void 0===a||null===(i=a.user)||void 0===i?void 0:i.emailAddress),N(null===(o=c.state)||void 0===o||null===(s=o.user)||void 0===s?void 0:s.phoneNumber))}),[]),null===c.state||void 0===c.state||y.id!==b&&""!==b||w?(0,Tl.jsx)(ju,{to:"/users"}):(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(AU,{showSignifier:u,setShowSignifier:d,message:p,error:f}),(0,Tl.jsxs)("div",{className:"page-container",children:[(0,Tl.jsx)(oW,{}),(0,Tl.jsxs)("h1",{className:"page-title",children:[y.clientName," User Detailed"]}),(0,Tl.jsxs)("div",{className:l.root,children:[(0,Tl.jsxs)("div",{className:l.header,children:[(0,Tl.jsxs)("div",{className:l.descBlock,children:[(0,Tl.jsx)("p",{className:l.descLabel,children:"DATE CREATED: "}),(0,Tl.jsx)("p",{className:l.descValue,children:eV(null===(t=c.state)||void 0===t||null===(n=t.user)||void 0===n?void 0:n.dateCreated)})]}),(0,Tl.jsxs)("div",{className:l.descBlock,children:[(0,Tl.jsx)("p",{className:l.descLabel,children:"DATE LAST UPDATED: "}),(0,Tl.jsx)("p",{className:l.descValue,children:eV(null===(r=c.state)||void 0===r||null===(a=r.user)||void 0===a?void 0:a.dateLastUpdated)})]})]}),(0,Tl.jsxs)(CN,{className:l.cardContainer,children:[(0,Tl.jsx)(WM,{className:l.card,children:(0,Tl.jsx)(SU,{children:(0,Tl.jsxs)(CN,{container:!0,spacing:1,children:[(0,Tl.jsx)(CN,{xs:12,sm:6,item:!0,children:(0,Tl.jsx)(FU,{placeholder:"First Name",label:"First Name",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:l.copy},value:C,onChange:e=>A(e.target.value),error:L&&""===C,helperText:L&&""===C?"First Name Required":""})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(FU,{placeholder:"Last Name",label:"Last Name",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:l.copy},value:k,onChange:e=>T(e.target.value),error:L&&""===k,helperText:L&&""===k?"Last Name Required":""})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(FU,{placeholder:"Email",label:"Email",variant:"standard",fullWidth:!0,required:!0,InputProps:{className:l.copy},value:j,onChange:e=>E(e.target.value),error:L&&""===j,helperText:L&&""===j?"Email Address Required":""})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:6,children:(0,Tl.jsx)(FU,{placeholder:"Phone Number",label:"Phone Number",variant:"standard",fullWidth:!0,InputProps:{className:l.copy},value:P,onChange:e=>N(e.target.value),error:L&&P.length>0&&P.length<7,helperText:L&&P.length>0&&P.length<7?"Invalid Phone Number":""})}),(0,Tl.jsx)(CN,{item:!0,xs:12,sm:12,container:!0,justifyContent:"flex-end",children:(0,Tl.jsx)(vW,{style:{marginTop:"20px",marginRight:"8px"},className:l.sensitiveButton,type:"submit",variant:"contained",color:"primary",onClick:()=>B(),children:"Save Information"})})]})})}),(0,Tl.jsx)("div",{className:l.sensitiveSection,children:(0,Tl.jsxs)(CN,{item:!0,xs:12,sm:12,container:!0,justifyContent:"space-between",children:[(0,Tl.jsx)(vW,{className:l.sensitiveButton,type:"submit",variant:"contained",color:"secondary",onClick:()=>M(!0),children:"Delete Account"}),(0,Tl.jsxs)("div",{children:[(0,Tl.jsx)(vW,{style:{marginRight:"20px"},className:l.sensitiveButton,type:"submit",variant:"contained",color:"primary",onClick:()=>I(!0),children:"Reset Password"}),(0,Tl.jsx)(vW,{className:l.sensitiveButton,type:"submit",variant:"contained",color:"primary",onClick:()=>O(!0),children:null!==(i=c.state.user)&&void 0!==i&&i.isActive?"Deactivate Account":"Activate Account"})]})]})})]})]})]}),(0,Tl.jsx)(jW,{open:R,onClose:()=>O(!1),children:(0,Tl.jsx)(gU,{question:null!==(o=c.state.user)&&void 0!==o&&o.isActive?"Block NAS access to this account?":"Unblock NAS access to this account?",func:()=>{var e,t;c.state.user.isActive?vU(kre(null===(e=c.state.user)||void 0===e?void 0:e.id,!1),"User Deactivated",d,h,m,v):vU(kre(null===(t=c.state.user)||void 0===t?void 0:t.id,!0),"User Activated",d,h,m,v)},closeModal:()=>O(!1)})}),(0,Tl.jsx)(jW,{open:D,onClose:()=>M(!1),children:(0,Tl.jsx)(gU,{question:"Delete this account permanently?",func:()=>z(),closeModal:()=>M(!1)})}),(0,Tl.jsx)(jW,{open:_,onClose:()=>I(!1),children:(0,Tl.jsx)(gU,{question:"Send this account an email to reset password?",func:()=>vU((e=>tl().post(OC.REACT_APP_ACTIVATE_BACKEND_API+"/api/usermanagement/resetpassword/"+e).then((e=>e)))(c.state.user.emailAddress),"Password Reset Sent",d,h,m,v),closeModal:()=>I(!1)})})]})};var Hre=n(6956),qre=n(1517),Gre=n(8704),Kre=n.n(Gre);const Yre=Object.prototype.toString,Xre=Error.prototype.toString,Zre=RegExp.prototype.toString,Jre="undefined"!==typeof Symbol?Symbol.prototype.toString:()=>"",Qre=/^Symbol\((.*)\)(.*)$/;function eae(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==e||!0===e||!1===e)return""+e;const n=typeof e;if("number"===n)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===n)return t?`"${e}"`:e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return Jre.call(e).replace(Qre,"Symbol($1)");const r=Yre.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+Xre.call(e)+"]":"RegExp"===r?Zre.call(e):null}function tae(e,t){let n=eae(e,t);return null!==n?n:JSON.stringify(e,(function(e,n){let r=eae(this[e],t);return null!==r?r:n}),2)}function nae(e){return null==e?[]:[].concat(e)}let rae,aae,iae,oae=/\$\{\s*(\w+)\s*\}/g;rae=Symbol.toStringTag;class sae{constructor(e,t,n,r){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[rae]="Error",this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],nae(e).forEach((e=>{if(lae.isError(e)){this.errors.push(...e.errors);const t=e.inner.length?e.inner:[e];this.inner.push(...t)}else this.errors.push(e)})),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}aae=Symbol.hasInstance,iae=Symbol.toStringTag;class lae extends Error{static formatError(e,t){const n=t.label||t.path||"this";return n!==t.path&&(t=Object.assign({},t,{path:n})),"string"===typeof e?e.replace(oae,((e,n)=>tae(t[n]))):"function"===typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r,a){const i=new sae(e,t,n,r);if(a)return i;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[iae]="Error",this.name=i.name,this.message=i.message,this.type=i.type,this.value=i.value,this.path=i.path,this.errors=i.errors,this.inner=i.inner,Error.captureStackTrace&&Error.captureStackTrace(this,lae)}static[aae](e){return sae[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let cae={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:e=>{let{path:t,type:n,value:r,originalValue:a}=e;const i=null!=a&&a!==r?` (cast from the value \`${tae(a,!0)}\`).`:".";return"mixed"!==n?`${t} must be a \`${n}\` type, but the final value was: \`${tae(r,!0)}\``+i:`${t} must match the configured type. The validated value was: \`${tae(r,!0)}\``+i}},uae={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},dae={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},pae={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},hae={isValue:"${path} field must be ${value}"},fae={noUnknown:"${path} field has unspecified keys: ${unknown}"},mae={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},gae={notType:e=>{const{path:t,value:n,spec:r}=e,a=r.types.length;if(Array.isArray(n)){if(n.length<a)return`${t} tuple value has too few items, expected a length of ${a} but got ${n.length} for value: \`${tae(n,!0)}\``;if(n.length>a)return`${t} tuple value has too many items, expected a length of ${a} but got ${n.length} for value: \`${tae(n,!0)}\``}return lae.formatError(cae.notType,e)}};Object.assign(Object.create(null),{mixed:cae,string:uae,number:dae,date:pae,object:fae,array:mae,boolean:hae,tuple:gae});const vae=e=>e&&e.__isYupSchema__;class yae{static fromOptions(e,t){if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:a}=t,i="function"===typeof n?n:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.every((e=>e===n))};return new yae(e,((e,t)=>{var n;let o=i(...e)?r:a;return null!=(n=null==o?void 0:o(t))?n:t}))}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let n=this.refs.map((e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context))),r=this.fn(n,e,t);if(void 0===r||r===e)return e;if(!vae(r))throw new TypeError("conditions must return a schema object");return r.resolve(t)}}const bae="$",xae=".";class wae{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!==typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===bae,this.isValue=this.key[0]===xae,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?bae:this.isValue?xae:"";this.path=this.key.slice(n.length),this.getter=this.path&&(0,Hre.getter)(this.path,!0),this.map=t.map}getValue(e,t,n){let r=this.isContext?n:this.isValue?e:t;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}wae.prototype.__isYupRef=!0;const Sae=e=>null==e;function Cae(e){function t(t,n,r){let{value:a,path:i="",options:o,originalValue:s,schema:l}=t;const{name:c,test:u,params:d,message:p,skipAbsent:h}=e;let{parent:f,context:m,abortEarly:g=l.spec.abortEarly,disableStackTrace:v=l.spec.disableStackTrace}=o;function y(e){return wae.isRef(e)?e.getValue(a,f,m):e}function b(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Object.assign({value:a,originalValue:s,label:l.spec.label,path:e.path||i,spec:l.spec,disableStackTrace:e.disableStackTrace||v},d,e.params);for(const r of Object.keys(t))t[r]=y(t[r]);const n=new lae(lae.formatError(e.message||p,t),a,t.path,e.type||c,t.disableStackTrace);return n.params=t,n}const x=g?n:r;let w={path:i,parent:f,type:c,from:o.from,createError:b,resolve:y,options:o,originalValue:s,schema:l};const S=e=>{lae.isError(e)?x(e):e?r(null):x(b())},C=e=>{lae.isError(e)?x(e):n(e)};if(h&&Sae(a))return S(!0);let A;try{var k;if(A=u.call(w,a,w),"function"===typeof(null==(k=A)?void 0:k.then)){if(o.sync)throw new Error(`Validation test of type: "${w.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(A).then(S,C)}}catch(T){return void C(T)}S(A)}return t.OPTIONS=e,t}function Aae(e,t,n){let r,a,i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return t?((0,Hre.forEach)(t,((s,l,c)=>{let u=l?s.slice(1,s.length-1):s,d="tuple"===(e=e.resolve({context:o,parent:r,value:n})).type,p=c?parseInt(u,10):0;if(e.innerType||d){if(d&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${i}" must contain an index to the tuple element, e.g. "${i}[0]"`);if(n&&p>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);r=n,n=n&&n[p],e=d?e.spec.types[p]:e.innerType}if(!c){if(!e.fields||!e.fields[u])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${i} which is a type: "${e.type}")`);r=n,n=n&&n[u],e=e.fields[u]}a=u,i=l?"["+s+"]":"."+s})),{schema:e,parent:r,parentPath:a}):{parent:r,parentPath:t,schema:e}}class kae extends Set{describe(){const e=[];for(const t of this.values())e.push(wae.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(const n of this.values())t.push(e(n));return t}clone(){return new kae(this.values())}merge(e,t){const n=this.clone();return e.forEach((e=>n.add(e))),t.forEach((e=>n.delete(e))),n}}function Tae(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map;if(vae(e)||!e||"object"!==typeof e)return e;if(n.has(e))return n.get(e);if(e instanceof Date)t=new Date(e.getTime()),n.set(e,t);else if(e instanceof RegExp)t=new RegExp(e),n.set(e,t);else if(Array.isArray(e)){t=new Array(e.length),n.set(e,t);for(let r=0;r<e.length;r++)t[r]=Tae(e[r],n)}else if(e instanceof Map){t=new Map,n.set(e,t);for(const[r,a]of e.entries())t.set(r,Tae(a,n))}else if(e instanceof Set){t=new Set,n.set(e,t);for(const r of e)t.add(Tae(r,n))}else{if(!(e instanceof Object))throw Error(`Unable to clone ${e}`);t={},n.set(e,t);for(const[r,a]of Object.entries(e))t[r]=Tae(a,n)}return t}class jae{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new kae,this._blacklist=new kae,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation((()=>{this.typeError(cae.notType)})),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==e?void 0:e.spec),this.withMutation((e=>{e.nonNullable()}))}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=Tae(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(){if(0===arguments.length)return this.spec.meta;let e=this.clone();return e.spec.meta=Object.assign(e.spec.meta||{},arguments.length<=0?void 0:arguments[0]),e}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,n=e.clone();const r=Object.assign({},t.spec,n.spec);return n.spec=r,n.internalTests=Object.assign({},t.internalTests,n.internalTests),n._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),n.tests=t.tests,n.exclusiveTests=t.exclusiveTests,n.withMutation((t=>{e.tests.forEach((e=>{t.test(e.OPTIONS)}))})),n.transforms=[...t.transforms,...n.transforms],n}isType(e){return null==e?!(!this.spec.nullable||null!==e)||!(!this.spec.optional||void 0!==e):this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;t=t.clone(),t.conditions=[],t=n.reduce(((t,n)=>n.resolve(t,e)),t),t=t.resolve(e)}return t}resolveOptions(e){var t,n,r,a;return Object.assign({},e,{from:e.from||[],strict:null!=(t=e.strict)?t:this.spec.strict,abortEarly:null!=(n=e.abortEarly)?n:this.spec.abortEarly,recursive:null!=(r=e.recursive)?r:this.spec.recursive,disableStackTrace:null!=(a=e.disableStackTrace)?a:this.spec.disableStackTrace})}cast(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.resolve(Object.assign({value:e},t)),r="ignore-optionality"===t.assert,a=n._cast(e,t);if(!1!==t.assert&&!n.isType(a)){if(r&&Sae(a))return a;let i=tae(e),o=tae(a);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}". \n\nattempted value: ${i} \n`+(o!==i?`result of cast: ${o}`:""))}return a}_cast(e,t){let n=void 0===e?e:this.transforms.reduce(((t,n)=>n.call(this,t,e,this)),e);return void 0===n&&(n=this.getDefault(t)),n}_validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,{path:a,originalValue:i=e,strict:o=this.spec.strict}=t,s=e;o||(s=this._cast(s,Object.assign({assert:!1},t)));let l=[];for(let c of Object.values(this.internalTests))c&&l.push(c);this.runTests({path:a,value:s,originalValue:i,options:t,tests:l},n,(e=>{if(e.length)return r(e,s);this.runTests({path:a,value:s,originalValue:i,options:t,tests:this.tests},n,r)}))}runTests(e,t,n){let r=!1,{tests:a,value:i,originalValue:o,path:s,options:l}=e,c=e=>{r||(r=!0,t(e,i))},u=e=>{r||(r=!0,n(e,i))},d=a.length,p=[];if(!d)return u([]);let h={value:i,originalValue:o,path:s,options:l,schema:this};for(let f=0;f<a.length;f++){(0,a[f])(h,c,(function(e){e&&(Array.isArray(e)?p.push(...e):p.push(e)),--d<=0&&u(p)}))}}asNestedTest(e){let{key:t,index:n,parent:r,parentPath:a,originalParent:i,options:o}=e;const s=null!=t?t:n;if(null==s)throw TypeError("Must include `key` or `index` for nested validations");const l="number"===typeof s;let c=r[s];const u=Object.assign({},o,{strict:!0,parent:r,value:c,originalValue:i[s],key:void 0,[l?"index":"key"]:s,path:l||s.includes(".")?`${a||""}[${l?s:`"${s}"`}]`:(a?`${a}.`:"")+t});return(e,t,n)=>this.resolve(u)._validate(c,u,t,n)}validate(e,t){var n;let r=this.resolve(Object.assign({},t,{value:e})),a=null!=(n=null==t?void 0:t.disableStackTrace)?n:r.spec.disableStackTrace;return new Promise(((n,i)=>r._validate(e,t,((e,t)=>{lae.isError(e)&&(e.value=t),i(e)}),((e,t)=>{e.length?i(new lae(e,t,void 0,void 0,a)):n(t)}))))}validateSync(e,t){var n;let r,a=this.resolve(Object.assign({},t,{value:e})),i=null!=(n=null==t?void 0:t.disableStackTrace)?n:a.spec.disableStackTrace;return a._validate(e,Object.assign({},t,{sync:!0}),((e,t)=>{throw lae.isError(e)&&(e.value=t),e}),((t,n)=>{if(t.length)throw new lae(t,e,void 0,void 0,i);r=n})),r}isValid(e,t){return this.validate(e,t).then((()=>!0),(e=>{if(lae.isError(e))return!1;throw e}))}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(n){if(lae.isError(n))return!1;throw n}}_getDefault(e){let t=this.spec.default;return null==t?t:"function"===typeof t?t.call(this,e):Tae(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){if(0===arguments.length)return this._getDefault();return this.clone({default:e})}strict(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.clone({strict:e})}nullability(e,t){const n=this.clone({nullable:e});return n.internalTests.nullable=Cae({message:t,name:"nullable",test(e){return null!==e||this.schema.spec.nullable}}),n}optionality(e,t){const n=this.clone({optional:e});return n.internalTests.optionality=Cae({message:t,name:"optionality",test(e){return void 0!==e||this.schema.spec.optional}}),n}optional(){return this.optionality(!0)}defined(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cae.defined;return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cae.notNull;return this.nullability(!1,e)}required(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cae.required;return this.clone().withMutation((t=>t.nonNullable(e).defined(e)))}notRequired(){return this.clone().withMutation((e=>e.nullable().optional()))}transform(e){let t=this.clone();return t.transforms.push(e),t}test(){let e;if(e=1===arguments.length?"function"===typeof(arguments.length<=0?void 0:arguments[0])?{test:arguments.length<=0?void 0:arguments[0]}:arguments.length<=0?void 0:arguments[0]:2===arguments.length?{name:arguments.length<=0?void 0:arguments[0],test:arguments.length<=1?void 0:arguments[1]}:{name:arguments.length<=0?void 0:arguments[0],message:arguments.length<=1?void 0:arguments[1],test:arguments.length<=2?void 0:arguments[2]},void 0===e.message&&(e.message=cae.default),"function"!==typeof e.test)throw new TypeError("`test` is a required parameters");let t=this.clone(),n=Cae(e),r=e.exclusive||e.name&&!0===t.exclusiveTests[e.name];if(e.exclusive&&!e.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return e.name&&(t.exclusiveTests[e.name]=!!e.exclusive),t.tests=t.tests.filter((t=>{if(t.OPTIONS.name===e.name){if(r)return!1;if(t.OPTIONS.test===n.OPTIONS.test)return!1}return!0})),t.tests.push(n),t}when(e,t){Array.isArray(e)||"string"===typeof e||(t=e,e=".");let n=this.clone(),r=nae(e).map((e=>new wae(e)));return r.forEach((e=>{e.isSibling&&n.deps.push(e.key)})),n.conditions.push("function"===typeof t?new yae(r,t):yae.fromOptions(r,t)),n}typeError(e){let t=this.clone();return t.internalTests.typeError=Cae({message:e,name:"typeError",skipAbsent:!0,test(e){return!!this.schema._typeCheck(e)||this.createError({params:{type:this.schema.type}})}}),t}oneOf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cae.oneOf,n=this.clone();return e.forEach((e=>{n._whitelist.add(e),n._blacklist.delete(e)})),n.internalTests.whiteList=Cae({message:t,name:"oneOf",skipAbsent:!0,test(e){let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}notOneOf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cae.notOneOf,n=this.clone();return e.forEach((e=>{n._blacklist.add(e),n._whitelist.delete(e)})),n.internalTests.blacklist=Cae({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}strip(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.clone();return t.spec.strip=e,t}describe(e){const t=(e?this.resolve(e):this).clone(),{label:n,meta:r,optional:a,nullable:i}=t.spec,o={meta:r,label:n,optional:a,nullable:i,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.map((e=>({name:e.OPTIONS.name,params:e.OPTIONS.params}))).filter(((e,t,n)=>n.findIndex((t=>t.name===e.name))===t))};return o}}jae.prototype.__isYupSchema__=!0;for(const n of["validate","validateSync"])jae.prototype[`${n}At`]=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{parent:a,parentPath:i,schema:o}=Aae(this,e,t,r.context);return o[n](a&&a[i],Object.assign({},r,{parent:a,path:e}))};for(const n of["equals","is"])jae.prototype[n]=jae.prototype.oneOf;for(const n of["not","nope"])jae.prototype[n]=jae.prototype.notOneOf;const Eae=()=>!0;class Pae extends jae{constructor(e){super("function"===typeof e?{type:"mixed",check:e}:Object.assign({type:"mixed",check:Eae},e))}}function Nae(){return new Dae}Pae.prototype;class Dae extends jae{constructor(){super({type:"boolean",check:e=>(e instanceof Boolean&&(e=e.valueOf()),"boolean"===typeof e)}),this.withMutation((()=>{this.transform(((e,t,n)=>{if(n.spec.coerce&&!n.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e}))}))}isTrue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hae.isValue;return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:e=>Sae(e)||!0===e})}isFalse(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hae.isValue;return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>Sae(e)||!1===e})}default(e){return super.default(e)}defined(e){return super.defined(e)}optional(){return super.optional()}required(e){return super.required(e)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(e){return super.nonNullable(e)}strip(e){return super.strip(e)}}Nae.prototype=Dae.prototype;const Mae=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function _ae(e){var t,n;const r=Mae.exec(e);return r?{year:Iae(r[1]),month:Iae(r[2],1)-1,day:Iae(r[3],1),hour:Iae(r[4]),minute:Iae(r[5]),second:Iae(r[6]),millisecond:r[7]?Iae(r[7].substring(0,3)):0,precision:null!=(t=null==(n=r[7])?void 0:n.length)?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:Iae(r[10]),minuteOffset:Iae(r[11])}:null}function Iae(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Number(e)||t}let Rae=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Oae=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Lae=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Fae=new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"),Bae=e=>Sae(e)||e===e.trim(),zae={}.toString();function Vae(){return new Wae}class Wae extends jae{constructor(){super({type:"string",check:e=>(e instanceof String&&(e=e.valueOf()),"string"===typeof e)}),this.withMutation((()=>{this.transform(((e,t,n)=>{if(!n.spec.coerce||n.isType(e))return e;if(Array.isArray(e))return e;const r=null!=e&&e.toString?e.toString():e;return r===zae?e:r}))}))}required(e){return super.required(e).withMutation((t=>t.test({message:e||cae.required,name:"required",skipAbsent:!0,test:e=>!!e.length})))}notRequired(){return super.notRequired().withMutation((e=>(e.tests=e.tests.filter((e=>"required"!==e.OPTIONS.name)),e)))}length(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:uae.length;return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:uae.min;return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:uae.max;return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}matches(e,t){let n,r,a=!1;return t&&("object"===typeof t?({excludeEmptyString:a=!1,message:n,name:r}=t):n=t),this.test({name:r||"matches",message:n||uae.matches,params:{regex:e},skipAbsent:!0,test:t=>""===t&&a||-1!==t.search(e)})}email(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:uae.email;return this.matches(Rae,{name:"email",message:e,excludeEmptyString:!0})}url(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:uae.url;return this.matches(Oae,{name:"url",message:e,excludeEmptyString:!0})}uuid(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:uae.uuid;return this.matches(Lae,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let t,n,r="";return e&&("object"===typeof e?({message:r="",allowOffset:t=!1,precision:n}=e):r=e),this.matches(Fae,{name:"datetime",message:r||uae.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||uae.datetime_offset,params:{allowOffset:t},skipAbsent:!0,test:e=>{if(!e||t)return!0;const n=_ae(e);return!!n&&!!n.z}}).test({name:"datetime_precision",message:r||uae.datetime_precision,params:{precision:n},skipAbsent:!0,test:e=>{if(!e||void 0==n)return!0;const t=_ae(e);return!!t&&t.precision===n}})}ensure(){return this.default("").transform((e=>null===e?"":e))}trim(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:uae.trim;return this.transform((e=>null!=e?e.trim():e)).test({message:e,name:"trim",test:Bae})}lowercase(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:uae.lowercase;return this.transform((e=>Sae(e)?e:e.toLowerCase())).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>Sae(e)||e===e.toLowerCase()})}uppercase(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:uae.uppercase;return this.transform((e=>Sae(e)?e:e.toUpperCase())).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>Sae(e)||e===e.toUpperCase()})}}Vae.prototype=Wae.prototype;class Uae extends jae{constructor(){super({type:"number",check:e=>(e instanceof Number&&(e=e.valueOf()),"number"===typeof e&&!(e=>e!=+e)(e))}),this.withMutation((()=>{this.transform(((e,t,n)=>{if(!n.spec.coerce)return e;let r=e;if("string"===typeof r){if(r=r.replace(/\s/g,""),""===r)return NaN;r=+r}return n.isType(r)||null===r?r:parseFloat(r)}))}))}min(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dae.min;return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t>=this.resolve(e)}})}max(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dae.max;return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t<=this.resolve(e)}})}lessThan(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dae.lessThan;return this.test({message:t,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(t){return t<this.resolve(e)}})}moreThan(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dae.moreThan;return this.test({message:t,name:"min",exclusive:!0,params:{more:e},skipAbsent:!0,test(t){return t>this.resolve(e)}})}positive(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:dae.positive;return this.moreThan(0,e)}negative(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:dae.negative;return this.lessThan(0,e)}integer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:dae.integer;return this.test({name:"integer",message:e,skipAbsent:!0,test:e=>Number.isInteger(e)})}truncate(){return this.transform((e=>Sae(e)?e:0|e))}round(e){var t;let n=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===n.indexOf(e.toLowerCase()))throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform((t=>Sae(t)?t:Math[e](t)))}}Uae.prototype;let $ae=new Date("");function Hae(){return new qae}class qae extends jae{constructor(){super({type:"date",check(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t}}),this.withMutation((()=>{this.transform(((e,t,n)=>!n.spec.coerce||n.isType(e)||null===e?e:(e=function(e){const t=_ae(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(void 0===t.z&&void 0===t.plusMinus)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return"Z"!==t.z&&void 0!==t.plusMinus&&(n=60*t.hourOffset+t.minuteOffset,"+"===t.plusMinus&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}(e),isNaN(e)?qae.INVALID_DATE:new Date(e))))}))}prepareParam(e,t){let n;if(wae.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);n=r}return n}min(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pae.min,n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(e){return e>=this.resolve(n)}})}max(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pae.max,n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(e){return e<=this.resolve(n)}})}}function Gae(e,t){let n=1/0;return e.some(((e,r)=>{var a;if(null!=(a=t.path)&&a.includes(e))return n=r,!0})),n}function Kae(e){return(t,n)=>Gae(e,t)-Gae(e,n)}qae.INVALID_DATE=$ae,Hae.prototype=qae.prototype,Hae.INVALID_DATE=$ae;const Yae=(e,t,n)=>{if("string"!==typeof e)return e;let r=e;try{r=JSON.parse(e)}catch(a){}return n.isType(r)?r:e};function Xae(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Xae(r);return e.setFields(t)}if("array"===e.type){const t=e.optional();return t.innerType&&(t.innerType=Xae(t.innerType)),t}return"tuple"===e.type?e.optional().clone({types:e.spec.types.map(Xae)}):"optional"in e?e.optional():e}let Zae=e=>"[object Object]"===Object.prototype.toString.call(e);const Jae=Kae([]);function Qae(e){return new eie(e)}class eie extends jae{constructor(e){super({type:"object",check:e=>Zae(e)||"function"===typeof e}),this.fields=Object.create(null),this._sortErrors=Jae,this._nodes=[],this._excludedEdges=[],this.withMutation((()=>{e&&this.shape(e)}))}_cast(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault(t);if(!this._typeCheck(r))return r;let a=this.fields,i=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,o=[].concat(this._nodes,Object.keys(r).filter((e=>!this._nodes.includes(e)))),s={},l=Object.assign({},t,{parent:s,__validating:t.__validating||!1}),c=!1;for(const u of o){let e=a[u],n=u in r;if(e){let n,a=r[u];l.path=(t.path?`${t.path}.`:"")+u,e=e.resolve({value:a,context:t.context,parent:s});let i=e instanceof jae?e.spec:void 0,o=null==i?void 0:i.strict;if(null!=i&&i.strip){c=c||u in r;continue}n=t.__validating&&o?r[u]:e.cast(r[u],l),void 0!==n&&(s[u]=n)}else n&&!i&&(s[u]=r[u]);n===u in s&&s[u]===r[u]||(c=!0)}return c?s:r}_validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,{from:a=[],originalValue:i=e,recursive:o=this.spec.recursive}=t;t.from=[{schema:this,value:i},...a],t.__validating=!0,t.originalValue=i,super._validate(e,t,n,((e,a)=>{if(!o||!Zae(a))return void r(e,a);i=i||a;let s=[];for(let n of this._nodes){let e=this.fields[n];e&&!wae.isRef(e)&&s.push(e.asNestedTest({options:t,key:n,parent:a,parentPath:t.path,originalParent:i}))}this.runTests({tests:s,value:a,originalValue:i,options:t},n,(t=>{r(t.sort(this._sortErrors).concat(e),a)}))}))}clone(e){const t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[r,a]of Object.entries(this.fields)){const e=n[r];n[r]=void 0===e?a:e}return t.withMutation((t=>t.setFields(n,[...this._excludedEdges,...e._excludedEdges])))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let t={};return this._nodes.forEach((n=>{var r;const a=this.fields[n];let i=e;null!=(r=i)&&r.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[n]})),t[n]=a&&"getDefault"in a?a.getDefault(i):void 0})),t}setFields(e,t){let n=this.clone();return n.fields=e,n._nodes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=new Set,a=new Set(t.map((e=>{let[t,n]=e;return`${t}-${n}`})));function i(e,t){let i=(0,Hre.split)(e)[0];r.add(i),a.has(`${t}-${i}`)||n.push([t,i])}for(const o of Object.keys(e)){let t=e[o];r.add(o),wae.isRef(t)&&t.isSibling?i(t.path,o):vae(t)&&"deps"in t&&t.deps.forEach((e=>i(e,o)))}return Kre().array(Array.from(r),n).reverse()}(e,t),n._sortErrors=Kae(Object.keys(e)),t&&(n._excludedEdges=t),n}shape(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.clone().withMutation((n=>{let r=n._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),r=[...n._excludedEdges,...t]),n.setFields(Object.assign(n.fields,e),r)}))}partial(){const e={};for(const[t,n]of Object.entries(this.fields))e[t]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(e)}deepPartial(){return Xae(this)}pick(e){const t={};for(const n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.setFields(t,this._excludedEdges.filter((t=>{let[n,r]=t;return e.includes(n)&&e.includes(r)})))}omit(e){const t=[];for(const n of Object.keys(this.fields))e.includes(n)||t.push(n);return this.pick(t)}from(e,t,n){let r=(0,Hre.getter)(e,!0);return this.transform((a=>{if(!a)return a;let i=a;return((e,t)=>{const n=[...(0,Hre.normalizePath)(t)];if(1===n.length)return n[0]in e;let r=n.pop(),a=(0,Hre.getter)((0,Hre.join)(n),!0)(e);return!(!a||!(r in a))})(a,e)&&(i=Object.assign({},a),n||delete i[e],i[t]=r(a)),i}))}json(){return this.transform(Yae)}noUnknown(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fae.noUnknown;"boolean"!==typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const n=function(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter((e=>-1===n.indexOf(e)))}(this.schema,t);return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fae.noUnknown;return this.noUnknown(!e,t)}transformKeys(e){return this.transform((t=>{if(!t)return t;const n={};for(const r of Object.keys(t))n[e(r)]=t[r];return n}))}camelCase(){return this.transformKeys(qre.camelCase)}snakeCase(){return this.transformKeys(qre.snakeCase)}constantCase(){return this.transformKeys((e=>(0,qre.snakeCase)(e).toUpperCase()))}describe(e){const t=(e?this.resolve(e):this).clone(),n=super.describe(e);n.fields={};for(const[a,i]of Object.entries(t.fields)){var r;let t=e;null!=(r=t)&&r.value&&(t=Object.assign({},t,{parent:t.value,value:t.value[a]})),n.fields[a]=i.describe(t)}return n}}Qae.prototype=eie.prototype;class tie extends jae{constructor(e){super({type:"array",spec:{types:e},check:e=>Array.isArray(e)}),this.innerType=void 0,this.innerType=e}_cast(e,t){const n=super._cast(e,t);if(!this._typeCheck(n)||!this.innerType)return n;let r=!1;const a=n.map(((e,n)=>{const a=this.innerType.cast(e,Object.assign({},t,{path:`${t.path||""}[${n}]`}));return a!==e&&(r=!0),a}));return r?a:n}_validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;var a;let i=this.innerType,o=null!=(a=t.recursive)?a:this.spec.recursive;null!=t.originalValue&&t.originalValue,super._validate(e,t,n,((a,s)=>{var l;if(!o||!i||!this._typeCheck(s))return void r(a,s);let c=new Array(s.length);for(let n=0;n<s.length;n++){var u;c[n]=i.asNestedTest({options:t,index:n,parent:s,parentPath:t.path,originalParent:null!=(u=t.originalValue)?u:e})}this.runTests({value:s,tests:c,originalValue:null!=(l=t.originalValue)?l:e,options:t},n,(e=>r(e.concat(a),s)))}))}clone(e){const t=super.clone(e);return t.innerType=this.innerType,t}json(){return this.transform(Yae)}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!vae(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+tae(e));return t.innerType=e,t.spec=Object.assign({},t.spec,{types:e}),t}length(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mae.length;return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t){return t=t||mae.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t){return t=t||mae.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}ensure(){return this.default((()=>[])).transform(((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t)))}compact(e){let t=e?(t,n,r)=>!e(t,n,r):e=>!!e;return this.transform((e=>null!=e?e.filter(t):e))}describe(e){const t=(e?this.resolve(e):this).clone(),n=super.describe(e);if(t.innerType){var r;let a=e;null!=(r=a)&&r.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[0]})),n.innerType=t.innerType.describe(a)}return n}}tie.prototype;class nie extends jae{constructor(e){super({type:"tuple",spec:{types:e},check(e){const t=this.spec.types;return Array.isArray(e)&&e.length===t.length}}),this.withMutation((()=>{this.typeError(gae.notType)}))}_cast(e,t){const{types:n}=this.spec,r=super._cast(e,t);if(!this._typeCheck(r))return r;let a=!1;const i=n.map(((e,n)=>{const i=e.cast(r[n],Object.assign({},t,{path:`${t.path||""}[${n}]`}));return i!==r[n]&&(a=!0),i}));return a?i:r}_validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,a=this.spec.types;super._validate(e,t,n,((i,o)=>{var s;if(!this._typeCheck(o))return void r(i,o);let l=[];for(let[n,r]of a.entries()){var c;l[n]=r.asNestedTest({options:t,index:n,parent:o,parentPath:t.path,originalParent:null!=(c=t.originalValue)?c:e})}this.runTests({value:o,tests:l,originalValue:null!=(s=t.originalValue)?s:e,options:t},n,(e=>r(e.concat(i),o)))}))}describe(e){const t=(e?this.resolve(e):this).clone(),n=super.describe(e);return n.innerType=t.spec.types.map(((t,n)=>{var r;let a=e;return null!=(r=a)&&r.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[n]})),t.describe(a)})),n}}nie.prototype;var rie=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===aie}(e)}(e)};var aie="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function iie(e,t){return!1!==t.clone&&t.isMergeableObject(e)?sie((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function oie(e,t,n){return e.concat(t).map((function(e){return iie(e,n)}))}function sie(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||oie,n.isMergeableObject=n.isMergeableObject||rie;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach((function(t){r[t]=iie(e[t],n)})),Object.keys(t).forEach((function(a){n.isMergeableObject(t[a])&&e[a]?r[a]=sie(e[a],t[a],n):r[a]=iie(t[a],n)})),r}(e,t,n):iie(t,n)}sie.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return sie(e,n,t)}),{})};const lie=sie;const cie="object"==typeof global&&global&&global.Object===Object&&global;var uie="object"==typeof self&&self&&self.Object===Object&&self;const die=cie||uie||Function("return this")();const pie=die.Symbol;var hie=Object.prototype,fie=hie.hasOwnProperty,mie=hie.toString,gie=pie?pie.toStringTag:void 0;const vie=function(e){var t=fie.call(e,gie),n=e[gie];try{e[gie]=void 0;var r=!0}catch(Dpe){}var a=mie.call(e);return r&&(t?e[gie]=n:delete e[gie]),a};var yie=Object.prototype.toString;const bie=function(e){return yie.call(e)};var xie=pie?pie.toStringTag:void 0;const wie=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":xie&&xie in Object(e)?vie(e):bie(e)};const Sie=function(e,t){return function(n){return e(t(n))}};const Cie=Sie(Object.getPrototypeOf,Object);const Aie=function(e){return null!=e&&"object"==typeof e};var kie=Function.prototype,Tie=Object.prototype,jie=kie.toString,Eie=Tie.hasOwnProperty,Pie=jie.call(Object);const Nie=function(e){if(!Aie(e)||"[object Object]"!=wie(e))return!1;var t=Cie(e);if(null===t)return!0;var n=Eie.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&jie.call(n)==Pie};const Die=function(){this.__data__=[],this.size=0};const Mie=function(e,t){return e===t||e!==e&&t!==t};const _ie=function(e,t){for(var n=e.length;n--;)if(Mie(e[n][0],t))return n;return-1};var Iie=Array.prototype.splice;const Rie=function(e){var t=this.__data__,n=_ie(t,e);return!(n<0)&&(n==t.length-1?t.pop():Iie.call(t,n,1),--this.size,!0)};const Oie=function(e){var t=this.__data__,n=_ie(t,e);return n<0?void 0:t[n][1]};const Lie=function(e){return _ie(this.__data__,e)>-1};const Fie=function(e,t){var n=this.__data__,r=_ie(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Bie(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Bie.prototype.clear=Die,Bie.prototype.delete=Rie,Bie.prototype.get=Oie,Bie.prototype.has=Lie,Bie.prototype.set=Fie;const zie=Bie;const Vie=function(){this.__data__=new zie,this.size=0};const Wie=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};const Uie=function(e){return this.__data__.get(e)};const $ie=function(e){return this.__data__.has(e)};const Hie=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const qie=function(e){if(!Hie(e))return!1;var t=wie(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const Gie=die["__core-js_shared__"];var Kie=function(){var e=/[^.]+$/.exec(Gie&&Gie.keys&&Gie.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();const Yie=function(e){return!!Kie&&Kie in e};var Xie=Function.prototype.toString;const Zie=function(e){if(null!=e){try{return Xie.call(e)}catch(Dpe){}try{return e+""}catch(Dpe){}}return""};var Jie=/^\[object .+?Constructor\]$/,Qie=Function.prototype,eoe=Object.prototype,toe=Qie.toString,noe=eoe.hasOwnProperty,roe=RegExp("^"+toe.call(noe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const aoe=function(e){return!(!Hie(e)||Yie(e))&&(qie(e)?roe:Jie).test(Zie(e))};const ioe=function(e,t){return null==e?void 0:e[t]};const ooe=function(e,t){var n=ioe(e,t);return aoe(n)?n:void 0};const soe=ooe(die,"Map");const loe=ooe(Object,"create");const coe=function(){this.__data__=loe?loe(null):{},this.size=0};const uoe=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var doe=Object.prototype.hasOwnProperty;const poe=function(e){var t=this.__data__;if(loe){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return doe.call(t,e)?t[e]:void 0};var hoe=Object.prototype.hasOwnProperty;const foe=function(e){var t=this.__data__;return loe?void 0!==t[e]:hoe.call(t,e)};const moe=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=loe&&void 0===t?"__lodash_hash_undefined__":t,this};function goe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}goe.prototype.clear=coe,goe.prototype.delete=uoe,goe.prototype.get=poe,goe.prototype.has=foe,goe.prototype.set=moe;const voe=goe;const yoe=function(){this.size=0,this.__data__={hash:new voe,map:new(soe||zie),string:new voe}};const boe=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const xoe=function(e,t){var n=e.__data__;return boe(t)?n["string"==typeof t?"string":"hash"]:n.map};const woe=function(e){var t=xoe(this,e).delete(e);return this.size-=t?1:0,t};const Soe=function(e){return xoe(this,e).get(e)};const Coe=function(e){return xoe(this,e).has(e)};const Aoe=function(e,t){var n=xoe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function koe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}koe.prototype.clear=yoe,koe.prototype.delete=woe,koe.prototype.get=Soe,koe.prototype.has=Coe,koe.prototype.set=Aoe;const Toe=koe;const joe=function(e,t){var n=this.__data__;if(n instanceof zie){var r=n.__data__;if(!soe||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Toe(r)}return n.set(e,t),this.size=n.size,this};function Eoe(e){var t=this.__data__=new zie(e);this.size=t.size}Eoe.prototype.clear=Vie,Eoe.prototype.delete=Wie,Eoe.prototype.get=Uie,Eoe.prototype.has=$ie,Eoe.prototype.set=joe;const Poe=Eoe;const Noe=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};const Doe=function(){try{var e=ooe(Object,"defineProperty");return e({},"",{}),e}catch(Dpe){}}();const Moe=function(e,t,n){"__proto__"==t&&Doe?Doe(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var _oe=Object.prototype.hasOwnProperty;const Ioe=function(e,t,n){var r=e[t];_oe.call(e,t)&&Mie(r,n)&&(void 0!==n||t in e)||Moe(e,t,n)};const Roe=function(e,t,n,r){var a=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),a?Moe(n,s,l):Ioe(n,s,l)}return n};const Ooe=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};const Loe=function(e){return Aie(e)&&"[object Arguments]"==wie(e)};var Foe=Object.prototype,Boe=Foe.hasOwnProperty,zoe=Foe.propertyIsEnumerable;const Voe=Loe(function(){return arguments}())?Loe:function(e){return Aie(e)&&Boe.call(e,"callee")&&!zoe.call(e,"callee")};const Woe=Array.isArray;const Uoe=function(){return!1};var $oe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Hoe=$oe&&"object"==typeof module&&module&&!module.nodeType&&module,qoe=Hoe&&Hoe.exports===$oe?die.Buffer:void 0;const Goe=(qoe?qoe.isBuffer:void 0)||Uoe;var Koe=/^(?:0|[1-9]\d*)$/;const Yoe=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Koe.test(e))&&e>-1&&e%1==0&&e<t};const Xoe=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Zoe={};Zoe["[object Float32Array]"]=Zoe["[object Float64Array]"]=Zoe["[object Int8Array]"]=Zoe["[object Int16Array]"]=Zoe["[object Int32Array]"]=Zoe["[object Uint8Array]"]=Zoe["[object Uint8ClampedArray]"]=Zoe["[object Uint16Array]"]=Zoe["[object Uint32Array]"]=!0,Zoe["[object Arguments]"]=Zoe["[object Array]"]=Zoe["[object ArrayBuffer]"]=Zoe["[object Boolean]"]=Zoe["[object DataView]"]=Zoe["[object Date]"]=Zoe["[object Error]"]=Zoe["[object Function]"]=Zoe["[object Map]"]=Zoe["[object Number]"]=Zoe["[object Object]"]=Zoe["[object RegExp]"]=Zoe["[object Set]"]=Zoe["[object String]"]=Zoe["[object WeakMap]"]=!1;const Joe=function(e){return Aie(e)&&Xoe(e.length)&&!!Zoe[wie(e)]};const Qoe=function(e){return function(t){return e(t)}};var ese="object"==typeof exports&&exports&&!exports.nodeType&&exports,tse=ese&&"object"==typeof module&&module&&!module.nodeType&&module,nse=tse&&tse.exports===ese&&cie.process;const rse=function(){try{var e=tse&&tse.require&&tse.require("util").types;return e||nse&&nse.binding&&nse.binding("util")}catch(Dpe){}}();var ase=rse&&rse.isTypedArray;const ise=ase?Qoe(ase):Joe;var ose=Object.prototype.hasOwnProperty;const sse=function(e,t){var n=Woe(e),r=!n&&Voe(e),a=!n&&!r&&Goe(e),i=!n&&!r&&!a&&ise(e),o=n||r||a||i,s=o?Ooe(e.length,String):[],l=s.length;for(var c in e)!t&&!ose.call(e,c)||o&&("length"==c||a&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Yoe(c,l))||s.push(c);return s};var lse=Object.prototype;const cse=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||lse)};const use=Sie(Object.keys,Object);var dse=Object.prototype.hasOwnProperty;const pse=function(e){if(!cse(e))return use(e);var t=[];for(var n in Object(e))dse.call(e,n)&&"constructor"!=n&&t.push(n);return t};const hse=function(e){return null!=e&&Xoe(e.length)&&!qie(e)};const fse=function(e){return hse(e)?sse(e):pse(e)};const mse=function(e,t){return e&&Roe(t,fse(t),e)};const gse=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var vse=Object.prototype.hasOwnProperty;const yse=function(e){if(!Hie(e))return gse(e);var t=cse(e),n=[];for(var r in e)("constructor"!=r||!t&&vse.call(e,r))&&n.push(r);return n};const bse=function(e){return hse(e)?sse(e,!0):yse(e)};const xse=function(e,t){return e&&Roe(t,bse(t),e)};var wse="object"==typeof exports&&exports&&!exports.nodeType&&exports,Sse=wse&&"object"==typeof module&&module&&!module.nodeType&&module,Cse=Sse&&Sse.exports===wse?die.Buffer:void 0,Ase=Cse?Cse.allocUnsafe:void 0;const kse=function(e,t){if(t)return e.slice();var n=e.length,r=Ase?Ase(n):new e.constructor(n);return e.copy(r),r};const Tse=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};const jse=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i};const Ese=function(){return[]};var Pse=Object.prototype.propertyIsEnumerable,Nse=Object.getOwnPropertySymbols,Dse=Nse?function(e){return null==e?[]:(e=Object(e),jse(Nse(e),(function(t){return Pse.call(e,t)})))}:Ese;const Mse=Dse;const _se=function(e,t){return Roe(e,Mse(e),t)};const Ise=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e};var Rse=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Ise(t,Mse(e)),e=Cie(e);return t}:Ese;const Ose=Rse;const Lse=function(e,t){return Roe(e,Ose(e),t)};const Fse=function(e,t,n){var r=t(e);return Woe(e)?r:Ise(r,n(e))};const Bse=function(e){return Fse(e,fse,Mse)};const zse=function(e){return Fse(e,bse,Ose)};const Vse=ooe(die,"DataView");const Wse=ooe(die,"Promise");const Use=ooe(die,"Set");const $se=ooe(die,"WeakMap");var Hse="[object Map]",qse="[object Promise]",Gse="[object Set]",Kse="[object WeakMap]",Yse="[object DataView]",Xse=Zie(Vse),Zse=Zie(soe),Jse=Zie(Wse),Qse=Zie(Use),ele=Zie($se),tle=wie;(Vse&&tle(new Vse(new ArrayBuffer(1)))!=Yse||soe&&tle(new soe)!=Hse||Wse&&tle(Wse.resolve())!=qse||Use&&tle(new Use)!=Gse||$se&&tle(new $se)!=Kse)&&(tle=function(e){var t=wie(e),n="[object Object]"==t?e.constructor:void 0,r=n?Zie(n):"";if(r)switch(r){case Xse:return Yse;case Zse:return Hse;case Jse:return qse;case Qse:return Gse;case ele:return Kse}return t});const nle=tle;var rle=Object.prototype.hasOwnProperty;const ale=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&rle.call(e,"index")&&(n.index=e.index,n.input=e.input),n};const ile=die.Uint8Array;const ole=function(e){var t=new e.constructor(e.byteLength);return new ile(t).set(new ile(e)),t};const sle=function(e,t){var n=t?ole(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var lle=/\w*$/;const cle=function(e){var t=new e.constructor(e.source,lle.exec(e));return t.lastIndex=e.lastIndex,t};var ule=pie?pie.prototype:void 0,dle=ule?ule.valueOf:void 0;const ple=function(e){return dle?Object(dle.call(e)):{}};const hle=function(e,t){var n=t?ole(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};const fle=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return ole(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return sle(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return hle(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return cle(e);case"[object Symbol]":return ple(e)}};var mle=Object.create,gle=function(){function e(){}return function(t){if(!Hie(t))return{};if(mle)return mle(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const vle=gle;const yle=function(e){return"function"!=typeof e.constructor||cse(e)?{}:vle(Cie(e))};const ble=function(e){return Aie(e)&&"[object Map]"==nle(e)};var xle=rse&&rse.isMap;const wle=xle?Qoe(xle):ble;const Sle=function(e){return Aie(e)&&"[object Set]"==nle(e)};var Cle=rse&&rse.isSet;const Ale=Cle?Qoe(Cle):Sle;var kle="[object Arguments]",Tle="[object Function]",jle="[object Object]",Ele={};Ele[kle]=Ele["[object Array]"]=Ele["[object ArrayBuffer]"]=Ele["[object DataView]"]=Ele["[object Boolean]"]=Ele["[object Date]"]=Ele["[object Float32Array]"]=Ele["[object Float64Array]"]=Ele["[object Int8Array]"]=Ele["[object Int16Array]"]=Ele["[object Int32Array]"]=Ele["[object Map]"]=Ele["[object Number]"]=Ele[jle]=Ele["[object RegExp]"]=Ele["[object Set]"]=Ele["[object String]"]=Ele["[object Symbol]"]=Ele["[object Uint8Array]"]=Ele["[object Uint8ClampedArray]"]=Ele["[object Uint16Array]"]=Ele["[object Uint32Array]"]=!0,Ele["[object Error]"]=Ele[Tle]=Ele["[object WeakMap]"]=!1;const Ple=function e(t,n,r,a,i,o){var s,l=1&n,c=2&n,u=4&n;if(r&&(s=i?r(t,a,i,o):r(t)),void 0!==s)return s;if(!Hie(t))return t;var d=Woe(t);if(d){if(s=ale(t),!l)return Tse(t,s)}else{var p=nle(t),h=p==Tle||"[object GeneratorFunction]"==p;if(Goe(t))return kse(t,l);if(p==jle||p==kle||h&&!i){if(s=c||h?{}:yle(t),!l)return c?Lse(t,xse(s,t)):_se(t,mse(s,t))}else{if(!Ele[p])return i?t:{};s=fle(t,p,l)}}o||(o=new Poe);var f=o.get(t);if(f)return f;o.set(t,s),Ale(t)?t.forEach((function(a){s.add(e(a,n,r,a,t,o))})):wle(t)&&t.forEach((function(a,i){s.set(i,e(a,n,r,i,t,o))}));var m=d?void 0:(u?c?zse:Bse:c?bse:fse)(t);return Noe(m||t,(function(a,i){m&&(a=t[i=a]),Ioe(s,i,e(a,n,r,i,t,o))})),s};const Nle=function(e){return Ple(e,5)};var Dle=n(6366),Mle=n.n(Dle);const _le=function(e,t){};const Ile=function(e){return Ple(e,4)};const Rle=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a};const Ole=function(e){return"symbol"==typeof e||Aie(e)&&"[object Symbol]"==wie(e)};function Lle(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(Lle.Cache||Toe),n}Lle.Cache=Toe;const Fle=Lle;const Ble=function(e){var t=Fle(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t};var zle=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vle=/\\(\\)?/g,Wle=Ble((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(zle,(function(e,n,r,a){t.push(r?a.replace(Vle,"$1"):n||e)})),t}));const Ule=Wle;const $le=function(e){if("string"==typeof e||Ole(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};var Hle=pie?pie.prototype:void 0,qle=Hle?Hle.toString:void 0;const Gle=function e(t){if("string"==typeof t)return t;if(Woe(t))return Rle(t,e)+"";if(Ole(t))return qle?qle.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};const Kle=function(e){return null==e?"":Gle(e)};const Yle=function(e){return Woe(e)?Rle(e,$le):Ole(e)?[e]:Tse(Ule(Kle(e)))};function Xle(){return Xle=Object.assign||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},Xle.apply(this,arguments)}function Zle(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Jle(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}function Qle(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var ece=(0,e.createContext)(void 0);ece.displayName="FormikContext";ece.Provider,ece.Consumer;function tce(){var t=(0,e.useContext)(ece);return t||_le(!1),t}var nce=function(e){return Array.isArray(e)&&0===e.length},rce=function(e){return"function"===typeof e},ace=function(e){return null!==e&&"object"===typeof e},ice=function(e){return String(Math.floor(Number(e)))===e},oce=function(e){return"[object String]"===Object.prototype.toString.call(e)},sce=function(t){return 0===e.Children.count(t)},lce=function(e){return ace(e)&&rce(e.then)};function cce(e,t,n,r){void 0===r&&(r=0);for(var a=Yle(t);e&&r<a.length;)e=e[a[r++]];return r===a.length||e?void 0===e?n:e:n}function uce(e,t,n){for(var r=Ile(e),a=r,i=0,o=Yle(t);i<o.length-1;i++){var s=o[i],l=cce(e,o.slice(0,i+1));if(l&&(ace(l)||Array.isArray(l)))a=a[s]=Ile(l);else{var c=o[i+1];a=a[s]=ice(c)&&Number(c)>=0?[]:{}}}return(0===i?e:a)[o[i]]===n?e:(void 0===n?delete a[o[i]]:a[o[i]]=n,0===i&&void 0===n&&delete r[o[i]],r)}function dce(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var a=0,i=Object.keys(e);a<i.length;a++){var o=i[a],s=e[o];ace(s)?n.get(s)||(n.set(s,!0),r[o]=Array.isArray(s)?[]:{},dce(s,t,n,r[o])):r[o]=t}return r}var pce={},hce={};function fce(t){var n=t.validateOnChange,r=void 0===n||n,a=t.validateOnBlur,i=void 0===a||a,o=t.validateOnMount,s=void 0!==o&&o,l=t.isInitialValid,c=t.enableReinitialize,u=void 0!==c&&c,d=t.onSubmit,p=Jle(t,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=Xle({validateOnChange:r,validateOnBlur:i,validateOnMount:s,onSubmit:d},p),f=(0,e.useRef)(h.initialValues),m=(0,e.useRef)(h.initialErrors||pce),g=(0,e.useRef)(h.initialTouched||hce),v=(0,e.useRef)(h.initialStatus),y=(0,e.useRef)(!1),b=(0,e.useRef)({});(0,e.useEffect)((function(){return y.current=!0,function(){y.current=!1}}),[]);var x=(0,e.useState)(0)[1],w=(0,e.useRef)({values:Nle(h.initialValues),errors:Nle(h.initialErrors)||pce,touched:Nle(h.initialTouched)||hce,status:Nle(h.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),S=w.current,C=(0,e.useCallback)((function(e){var t=w.current;w.current=function(e,t){switch(t.type){case"SET_VALUES":return Xle({},e,{values:t.payload});case"SET_TOUCHED":return Xle({},e,{touched:t.payload});case"SET_ERRORS":return Mle()(e.errors,t.payload)?e:Xle({},e,{errors:t.payload});case"SET_STATUS":return Xle({},e,{status:t.payload});case"SET_ISSUBMITTING":return Xle({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Xle({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Xle({},e,{values:uce(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Xle({},e,{touched:uce(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Xle({},e,{errors:uce(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Xle({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Xle({},e,{touched:dce(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return Xle({},e,{isSubmitting:!1});default:return e}}(t,e),t!==w.current&&x((function(e){return e+1}))}),[]),A=(0,e.useCallback)((function(e,t){return new Promise((function(n,r){var a=h.validate(e,t);null==a?n(pce):lce(a)?a.then((function(e){n(e||pce)}),(function(e){r(e)})):n(a)}))}),[h.validate]),k=(0,e.useCallback)((function(e,t){var n=h.validationSchema,r=rce(n)?n(t):n,a=t&&r.validateAt?r.validateAt(t,e):function(e,t,n,r){void 0===n&&(n=!1);var a=mce(e);return t[n?"validateSync":"validate"](a,{abortEarly:!1,context:r||a})}(e,r);return new Promise((function(e,t){a.then((function(){e(pce)}),(function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return uce(t,e.path,e.message);var n=e.inner,r=Array.isArray(n),a=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(a>=n.length)break;i=n[a++]}else{if((a=n.next()).done)break;i=a.value}var o=i;cce(t,o.path)||(t=uce(t,o.path,o.message))}}return t}(n)):t(n)}))}))}),[h.validationSchema]),T=(0,e.useCallback)((function(e,t){return new Promise((function(n){return n(b.current[e].validate(t))}))}),[]),j=(0,e.useCallback)((function(e){var t=Object.keys(b.current).filter((function(e){return rce(b.current[e].validate)})),n=t.length>0?t.map((function(t){return T(t,cce(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then((function(e){return e.reduce((function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=uce(e,t[r],n)),e}),{})}))}),[T]),E=(0,e.useCallback)((function(e){return Promise.all([j(e),h.validationSchema?k(e):{},h.validate?A(e):{}]).then((function(e){var t=e[0],n=e[1],r=e[2];return lie.all([t,n,r],{arrayMerge:gce})}))}),[h.validate,h.validationSchema,j,A,k]),P=yce((function(e){return void 0===e&&(e=S.values),C({type:"SET_ISVALIDATING",payload:!0}),E(e).then((function(e){return y.current&&(C({type:"SET_ISVALIDATING",payload:!1}),C({type:"SET_ERRORS",payload:e})),e}))}));(0,e.useEffect)((function(){s&&!0===y.current&&Mle()(f.current,h.initialValues)&&P(f.current)}),[s,P]);var N=(0,e.useCallback)((function(e){var t=e&&e.values?e.values:f.current,n=e&&e.errors?e.errors:m.current?m.current:h.initialErrors||{},r=e&&e.touched?e.touched:g.current?g.current:h.initialTouched||{},a=e&&e.status?e.status:v.current?v.current:h.initialStatus;f.current=t,m.current=n,g.current=r,v.current=a;var i=function(){C({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:a,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"===typeof e.submitCount?e.submitCount:0}})};if(h.onReset){var o=h.onReset(S.values,Y);lce(o)?o.then(i):i()}else i()}),[h.initialErrors,h.initialStatus,h.initialTouched,h.onReset]);(0,e.useEffect)((function(){!0!==y.current||Mle()(f.current,h.initialValues)||u&&(f.current=h.initialValues,N(),s&&P(f.current))}),[u,h.initialValues,N,s,P]),(0,e.useEffect)((function(){u&&!0===y.current&&!Mle()(m.current,h.initialErrors)&&(m.current=h.initialErrors||pce,C({type:"SET_ERRORS",payload:h.initialErrors||pce}))}),[u,h.initialErrors]),(0,e.useEffect)((function(){u&&!0===y.current&&!Mle()(g.current,h.initialTouched)&&(g.current=h.initialTouched||hce,C({type:"SET_TOUCHED",payload:h.initialTouched||hce}))}),[u,h.initialTouched]),(0,e.useEffect)((function(){u&&!0===y.current&&!Mle()(v.current,h.initialStatus)&&(v.current=h.initialStatus,C({type:"SET_STATUS",payload:h.initialStatus}))}),[u,h.initialStatus,h.initialTouched]);var D=yce((function(e){if(b.current[e]&&rce(b.current[e].validate)){var t=cce(S.values,e),n=b.current[e].validate(t);return lce(n)?(C({type:"SET_ISVALIDATING",payload:!0}),n.then((function(e){return e})).then((function(t){C({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),C({type:"SET_ISVALIDATING",payload:!1})}))):(C({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return h.validationSchema?(C({type:"SET_ISVALIDATING",payload:!0}),k(S.values,e).then((function(e){return e})).then((function(t){C({type:"SET_FIELD_ERROR",payload:{field:e,value:cce(t,e)}}),C({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),M=(0,e.useCallback)((function(e,t){var n=t.validate;b.current[e]={validate:n}}),[]),_=(0,e.useCallback)((function(e){delete b.current[e]}),[]),I=yce((function(e,t){return C({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?P(S.values):Promise.resolve()})),R=(0,e.useCallback)((function(e){C({type:"SET_ERRORS",payload:e})}),[]),O=yce((function(e,t){var n=rce(e)?e(S.values):e;return C({type:"SET_VALUES",payload:n}),(void 0===t?r:t)?P(n):Promise.resolve()})),L=(0,e.useCallback)((function(e,t){C({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),F=yce((function(e,t,n){return C({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===n?r:n)?P(uce(S.values,e,t)):Promise.resolve()})),B=(0,e.useCallback)((function(e,t){var n,r=t,a=e;if(!oce(e)){e.persist&&e.persist();var i=e.target?e.target:e.currentTarget,o=i.type,s=i.name,l=i.id,c=i.value,u=i.checked,d=(i.outerHTML,i.options),p=i.multiple;r=t||(s||l),a=/number|range/.test(o)?(n=parseFloat(c),isNaN(n)?"":n):/checkbox/.test(o)?function(e,t,n){if("boolean"===typeof e)return Boolean(t);var r=[],a=!1,i=-1;if(Array.isArray(e))r=e,a=(i=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return Boolean(t);if(t&&n&&!a)return r.concat(n);if(!a)return r;return r.slice(0,i).concat(r.slice(i+1))}(cce(S.values,r),u,c):d&&p?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(d):c}r&&F(r,a)}),[F,S.values]),z=yce((function(e){if(oce(e))return function(t){return B(t,e)};B(e)})),V=yce((function(e,t,n){return void 0===t&&(t=!0),C({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?i:n)?P(S.values):Promise.resolve()})),W=(0,e.useCallback)((function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,a=n.id,i=(n.outerHTML,t||(r||a));V(i,!0)}),[V]),U=yce((function(e){if(oce(e))return function(t){return W(t,e)};W(e)})),$=(0,e.useCallback)((function(e){rce(e)?C({type:"SET_FORMIK_STATE",payload:e}):C({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),H=(0,e.useCallback)((function(e){C({type:"SET_STATUS",payload:e})}),[]),q=(0,e.useCallback)((function(e){C({type:"SET_ISSUBMITTING",payload:e})}),[]),G=yce((function(){return C({type:"SUBMIT_ATTEMPT"}),P().then((function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var n;try{if(void 0===(n=X()))return}catch(r){throw r}return Promise.resolve(n).then((function(e){return y.current&&C({type:"SUBMIT_SUCCESS"}),e})).catch((function(e){if(y.current)throw C({type:"SUBMIT_FAILURE"}),e}))}if(y.current&&(C({type:"SUBMIT_FAILURE"}),t))throw e}))})),K=yce((function(e){e&&e.preventDefault&&rce(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&rce(e.stopPropagation)&&e.stopPropagation(),G().catch((function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)}))})),Y={resetForm:N,validateForm:P,validateField:D,setErrors:R,setFieldError:L,setFieldTouched:V,setFieldValue:F,setStatus:H,setSubmitting:q,setTouched:I,setValues:O,setFormikState:$,submitForm:G},X=yce((function(){return d(S.values,Y)})),Z=yce((function(e){e&&e.preventDefault&&rce(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&rce(e.stopPropagation)&&e.stopPropagation(),N()})),J=(0,e.useCallback)((function(e){return{value:cce(S.values,e),error:cce(S.errors,e),touched:!!cce(S.touched,e),initialValue:cce(f.current,e),initialTouched:!!cce(g.current,e),initialError:cce(m.current,e)}}),[S.errors,S.touched,S.values]),Q=(0,e.useCallback)((function(e){return{setValue:function(t,n){return F(e,t,n)},setTouched:function(t,n){return V(e,t,n)},setError:function(t){return L(e,t)}}}),[F,V,L]),ee=(0,e.useCallback)((function(e){var t=ace(e),n=t?e.name:e,r=cce(S.values,n),a={name:n,value:r,onChange:z,onBlur:U};if(t){var i=e.type,o=e.value,s=e.as,l=e.multiple;"checkbox"===i?void 0===o?a.checked=!!r:(a.checked=!(!Array.isArray(r)||!~r.indexOf(o)),a.value=o):"radio"===i?(a.checked=r===o,a.value=o):"select"===s&&l&&(a.value=a.value||[],a.multiple=!0)}return a}),[U,z,S.values]),te=(0,e.useMemo)((function(){return!Mle()(f.current,S.values)}),[f.current,S.values]),ne=(0,e.useMemo)((function(){return"undefined"!==typeof l?te?S.errors&&0===Object.keys(S.errors).length:!1!==l&&rce(l)?l(h):l:S.errors&&0===Object.keys(S.errors).length}),[l,te,S.errors,h]);return Xle({},S,{initialValues:f.current,initialErrors:m.current,initialTouched:g.current,initialStatus:v.current,handleBlur:U,handleChange:z,handleReset:Z,handleSubmit:K,resetForm:N,setErrors:R,setFormikState:$,setFieldTouched:V,setFieldValue:F,setFieldError:L,setStatus:H,setSubmitting:q,setTouched:I,setValues:O,submitForm:G,validateForm:P,validateField:D,isValid:ne,dirty:te,unregisterField:_,registerField:M,getFieldProps:ee,getFieldMeta:J,getFieldHelpers:Q,validateOnBlur:i,validateOnChange:r,validateOnMount:s})}function mce(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);!0===Array.isArray(e[r])?t[r]=e[r].map((function(e){return!0===Array.isArray(e)||Nie(e)?mce(e):""!==e?e:void 0})):Nie(e[r])?t[r]=mce(e[r]):t[r]=""!==e[r]?e[r]:void 0}return t}function gce(e,t,n){var r=e.slice();return t.forEach((function(t,a){if("undefined"===typeof r[a]){var i=!1!==n.clone&&n.isMergeableObject(t);r[a]=i?lie(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[a]=lie(e[a],t,n):-1===e.indexOf(t)&&r.push(t)})),r}var vce="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?e.useLayoutEffect:e.useEffect;function yce(t){var n=(0,e.useRef)(t);return vce((function(){n.current=t})),(0,e.useCallback)((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.current.apply(void 0,t)}),[])}(0,e.forwardRef)((function(t,n){var r=t.action,a=Jle(t,["action"]),i=null!=r?r:"#",o=tce(),s=o.handleReset,l=o.handleSubmit;return(0,e.createElement)("form",Xle({onSubmit:l,ref:n,onReset:s,action:i},a))})).displayName="Form";var bce=function(e,t,n){var r=xce(e);return r.splice(t,0,n),r},xce=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map((function(e){return parseInt(e)})).reduce((function(e,t){return t>e?t:e}),0);return Array.from(Xle({},e,{length:t+1}))}return[]},wce=function(e,t){var n="function"===typeof e?e:t;return function(e){if(Array.isArray(e)||ace(e)){var t=xce(e);return n(t)}return e}},Sce=function(t){function n(e){var n;return(n=t.call(this,e)||this).updateArrayField=function(e,t,r){var a=n.props,i=a.name;(0,a.formik.setFormikState)((function(n){var a=wce(r,e),o=wce(t,e),s=uce(n.values,i,e(cce(n.values,i))),l=r?a(cce(n.errors,i)):void 0,c=t?o(cce(n.touched,i)):void 0;return nce(l)&&(l=void 0),nce(c)&&(c=void 0),Xle({},n,{values:s,errors:r?uce(n.errors,i,l):n.errors,touched:t?uce(n.touched,i,c):n.touched})}))},n.push=function(e){return n.updateArrayField((function(t){return[].concat(xce(t),[Nle(e)])}),!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=xce(e),a=r[t];return r[t]=r[n],r[n]=a,r}(n,e,t)}),!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=xce(e),a=r[t];return r.splice(t,1),r.splice(n,0,a),r}(n,e,t)}),!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField((function(n){return bce(n,e,t)}),(function(t){return bce(t,e,null)}),(function(t){return bce(t,e,null)}))},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=xce(e);return r[t]=n,r}(n,e,t)}),!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField((function(n){var r=n?[e].concat(n):[e];return t=r.length,r}),(function(e){return e?[null].concat(e):[null]}),(function(e){return e?[null].concat(e):[null]})),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(Qle(n)),n.pop=n.pop.bind(Qle(n)),n}Zle(n,t);var r=n.prototype;return r.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!Mle()(cce(e.formik.values,e.name),cce(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(e){var t;return this.updateArrayField((function(n){var r=n?xce(n):[];return t||(t=r[e]),rce(r.splice)&&r.splice(e,1),rce(r.every)&&r.every((function(e){return void 0===e}))?[]:r}),!0,!0),t},r.pop=function(){var e;return this.updateArrayField((function(t){var n=t.slice();return e||(e=n&&n.pop&&n.pop()),n}),!0,!0),e},r.render=function(){var t={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},n=this.props,r=n.component,a=n.render,i=n.children,o=n.name,s=Xle({},t,{form:Jle(n.formik,["validate","validationSchema"]),name:o});return r?(0,e.createElement)(r,s):a?a(s):i?"function"===typeof i?i(s):sce(i)?null:e.Children.only(i):null},n}(e.Component);Sce.defaultProps={validateOnChange:!0};const Cce=()=>{const e=Mc(),t=Oc(PE);return{modalStatus:t,openModal:t=>{e(jE(t||{open:!0,type:AE.General}))},closeModal:()=>{e(EE())},isModalTypeOpen:e=>e===t.type&&t.open}};function Ace(){const{closeModal:t}=Cce(),{displaySuccess:n,displayError:r}=OP(),{mutate:a,isLoading:i}=function(){const e=Wj();return Qj((e=>rE(iE+"CreateApp",e)),{onSuccess:()=>e.invalidateQueries(["abacApps"]),mutationKey:["createAbacApp"]})}(),o=fce({initialValues:{appName:"",techStack:"",appDescription:""},validationSchema:Qae().shape({appName:Vae().trim().max(100,"App Name must be less than 100 characters").required("App Name is required"),techStack:Vae().trim().max(50,"Tech Stack must be less than 50 characters"),appDescription:Vae().max(500,"App Description must be less than 500 characters")}),onSubmit:e=>{let t={appName:e.appName.trim(),techStack:e.techStack.trim(),appDescription:e.appDescription.trim(),isAdmin:!1};s(t)}}),s=(0,e.useCallback)((function(e){i||a(e,{onError:()=>{r("Error creating new application for ABAC.")},onSuccess:()=>{n("New application created for ABAC!"),t(),o.resetForm()}})}),[a,i,r,n,t,o]);return{getters:{createIsLoading:i,formik:o},handlers:{handleCreateModalClose:()=>{i||(t(),o.resetForm())}}}}function kce(e){return(0,Tl.jsx)(Xm,{id:"content",component:"section","aria-label":"AMP Content",sx:{display:"flex",flexDirection:"column",padding:{xs:"1rem 1rem 2rem",lg:"1rem 2rem 3rem"},mt:{xs:"4rem",lg:"unset"},width:"100vw",height:"100vh",maxWidth:"2400px",overflowX:"auto",overflowY:"auto"},children:e.children})}const Tce=bm((0,Tl.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),jce=bm((0,Tl.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline"),Ece={rowCell:{cursor:"pointer !important",backgroundColor:"white",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"}},itemIcon:{cursor:"grab"},tableCell:{color:"primary.copy"}};function Pce(e){let{columns:t,element:n}=e;const r=Bu(),a=Mc();return(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsx)(FW,{hover:!0,sx:Ece.rowCell,onClick:()=>(a(ME("App Details")),void r.push(`/abac/${n.id}`)),children:t.map(((e,t)=>{let r=n[e.propName];return r instanceof Date&&(r=r.toLocaleDateString("en-US")),(0,Tl.jsx)(HW,{align:"left",sx:Ece.tableCell,children:"isActive"===e.propName?n.isActive?(0,Tl.jsx)(Tce,{sx:{ml:"10%",color:"primary.main"}}):(0,Tl.jsx)(jce,{sx:{ml:"10%",color:"secondary.main"}}):r},t)}))},n.id)})}const Nce=["className","id"],Dce=nf(mx,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Mce=e.forwardRef((function(t,n){const r=rf({props:t,name:"MuiDialogTitle"}),{className:a,id:i}=r,o=(0,Sl.A)(r,Nce),s=r,l=(e=>{const{classes:t}=e;return mh({root:["root"]},b3,t)})(s),{titleId:c=i}=e.useContext(xW);return(0,Tl.jsx)(Dce,(0,wl.A)({component:"h2",className:fh(l.root,a),ownerState:s,ref:n,variant:"h6",id:null!=i?i:c},o))})),_ce=Mce;function Ice(e){const{title:t,hasLoadingBar:n,hasCloseButton:r=!0,children:a,isProcessing:i,handleClose:o,...s}=e,{closeModal:l}=Cce();return(0,Tl.jsxs)(jW,{onClose:null!==o&&void 0!==o?o:l,...s,children:[n?(0,Tl.jsx)(fU,{loading:i}):null,(0,Tl.jsx)(_ce,{children:(0,Tl.jsxs)(Xm,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,Tl.jsx)("span",{children:t}),r?(0,Tl.jsx)(hm,{"data-test":"close-dialog","aria-label":"Close Dialog",onClick:null!==o&&void 0!==o?o:l,children:(0,Tl.jsx)(wm,{})}):null]})}),(0,Tl.jsx)(A3,{children:a})]})}function Rce(e){const{formik:t}=e;return(0,Tl.jsxs)(CN,{container:!0,spacing:2,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,children:(0,Tl.jsx)(FU,{fullWidth:!0,sx:{mt:"2%"},name:"appName",label:"App Name",placeholder:"Enter App Name",value:t.values.appName,onChange:t.handleChange,error:Boolean(t.errors.appName),helperText:t.errors.appName||`${t.values.appName.trim().length}/100`,required:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:12,children:(0,Tl.jsx)(FU,{fullWidth:!0,name:"techStack",label:"Tech Stack",placeholder:"Enter Tech Stack",onChange:t.handleChange,value:t.values.techStack,error:Boolean(t.errors.techStack),helperText:t.errors.techStack||`${t.values.techStack.trim().length}/50`})}),(0,Tl.jsx)(CN,{item:!0,xs:12,children:(0,Tl.jsx)(FU,{fullWidth:!0,multiline:!0,minRows:5,name:"appDescription",label:"Description",placeholder:"Enter Description",onChange:t.handleChange,value:t.values.appDescription,error:Boolean(t.errors.appDescription),helperText:t.errors.appDescription||`${t.values.appDescription.trim().length}/500`})})]})}function Oce(t){let{formik:n,isProcessing:r,children:a}=t;const{closeModal:i}=Cce();return(0,Tl.jsxs)("form",{onSubmit:n.handleSubmit,children:[e.Children.map(a,(t=>(0,e.cloneElement)(t,{formik:n}))),(0,Tl.jsxs)(N4,{sx:{pl:0,pr:0},children:[(0,Tl.jsx)(vW,{disabled:r,sx:{width:"50%"},variant:"outlined",onClick:()=>{r||(i(),n.resetForm())},children:"Cancel"}),(0,Tl.jsx)(vW,{disabled:r||!(n.isValid&&n.dirty),sx:{width:"50%"},variant:"contained",type:"submit",children:"Submit"})]})]})}function Lce(){const{getters:{apps:e,columns:t,isLoading:n,createAppModalTitle:r,createIsLoading:a,formik:i},handlers:{handleCreateModalClose:o}}=function(){const{data:e=[],isLoading:t}=LP(),{getters:{createIsLoading:n,formik:r},handlers:{handleCreateModalClose:a}}=Ace();return{getters:{apps:e,columns:[{label:"Application Name",propName:"name"},{label:"Tech Stack",propName:"techStack"},{label:"Last Updated",propName:"updatedDate"},{label:"Date Created",propName:"createdDate"},{label:"Is Active",propName:"isActive"}],isLoading:t,createAppModalTitle:"Create New ABAC Application",createIsLoading:n,formik:r},handlers:{handleCreateModalClose:a}}}(),{modalStatus:s,openModal:l}=Cce(),{enableAbacApplicationManagement:c}=QT();return c&&(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsxs)(kce,{children:[(0,Tl.jsx)(oW,{pageTitle:null}),(0,Tl.jsx)("h1",{className:"page-title",children:"ABAC Applications"}),(0,Tl.jsx)(Bm,{sx:{mt:4,p:{xs:2,lg:4}},children:(0,Tl.jsxs)(Xm,{children:[(0,Tl.jsx)(Xm,{sx:{width:"100%",position:"relative"},children:(0,Tl.jsx)(vW,{variant:"contained",color:"primary",sx:{position:"absolute",right:"0px",top:"0px",left:{xs:"0px",sm:"unset"}},onClick:()=>l(),children:"Create Application"})}),(0,Tl.jsx)(Xm,{sx:{pt:{xs:"3rem",sm:"unset"}},children:(0,Tl.jsx)(GX,{columns:t,tableData:e,rowComponent:Pce,loading:n,hideSearch:!1,defaultSortIndex:0,setTableData:void 0,reverse:!1,customProps:void 0})})]})}),(0,Tl.jsx)(Ice,{fullWidth:!0,maxWidth:"sm",open:!0===s.open,title:r,hasLoadingBar:!0,isProcessing:a,handleClose:()=>o(),children:(0,Tl.jsx)(Oce,{formik:i,isProcessing:a,children:(0,Tl.jsx)(Rce,{})})})]})})}const Fce=t=>{const n=(()=>{const{ldClient:t}=(0,e.useContext)(CT);return t})();(0,e.useEffect)((()=>{if(t){let e={id:t["http://nasrecruitment.io/activateId"],email:t.email,name:t.name};n&&n.identify({kind:"user",key:null===e||void 0===e?void 0:e.id,name:null===e||void 0===e?void 0:e.name,email:null===e||void 0===e?void 0:e.email})}}),[t,null===t||void 0===t?void 0:t.id,null===t||void 0===t?void 0:t.email,null===t||void 0===t?void 0:t.name,n])};const Bce=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoHideDuration:n=null,disableWindowBlurListener:r=!1,onClose:a,open:i,resumeHideDuration:o}=t,s=ff();e.useEffect((()=>{if(i)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==a||a(e,"escapeKeyDown")}}),[i,a]);const l=cf(((e,t)=>{null==a||a(e,t)})),c=cf((e=>{a&&null!=e&&s.start(e,(()=>{l(null,"timeout")}))}));e.useEffect((()=>(i&&c(n),s.clear)),[i,n,c,s]);const u=s.clear,d=e.useCallback((()=>{null!=n&&c(null!=o?o:.5*n)}),[n,o,c]),p=e=>t=>{const n=e.onFocus;null==n||n(t),u()},h=e=>t=>{const n=e.onMouseEnter;null==n||n(t),u()},f=e=>t=>{const n=e.onMouseLeave;null==n||n(t),d()};return e.useEffect((()=>{if(!r&&i)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}}),[r,i,d,u]),{getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=(0,wl.A)({},nS(t),nS(e));return(0,wl.A)({role:"presentation"},e,n,{onBlur:(r=n,e=>{const t=r.onBlur;null==t||t(e),d()}),onFocus:p(n),onMouseEnter:h(n),onMouseLeave:f(n)});var r},onClickAway:e=>{null==a||a(e,"clickaway")}}};function zce(e){return e.substring(2).toLowerCase()}function Vce(t){const{children:n,disableReactTree:r=!1,mouseEvent:a="onClick",onClickAway:i,touchEvent:o="onTouchEnd"}=t,s=e.useRef(!1),l=e.useRef(null),c=e.useRef(!1),u=e.useRef(!1);e.useEffect((()=>(setTimeout((()=>{c.current=!0}),0),()=>{c.current=!1})),[]);const d=of(n.ref,l),p=cf((e=>{const t=u.current;u.current=!1;const n=kb(l.current);if(!c.current||!l.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,n))return;if(s.current)return void(s.current=!1);let a;a=e.composedPath?e.composedPath().indexOf(l.current)>-1:!n.documentElement.contains(e.target)||l.current.contains(e.target),a||!r&&t||i(e)})),h=e=>t=>{u.current=!0;const r=n.props[e];r&&r(t)},f={ref:d};return!1!==o&&(f[o]=h(o)),e.useEffect((()=>{if(!1!==o){const e=zce(o),t=kb(l.current),n=()=>{s.current=!0};return t.addEventListener(e,p),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,p),t.removeEventListener("touchmove",n)}}}),[p,o]),!1!==a&&(f[a]=h(a)),e.useEffect((()=>{if(!1!==a){const e=zce(a),t=kb(l.current);return t.addEventListener(e,p),()=>{t.removeEventListener(e,p)}}}),[p,a]),(0,Tl.jsx)(e.Fragment,{children:e.cloneElement(n,f)})}function Wce(e){return Ff("MuiSnackbarContent",e)}Bf("MuiSnackbarContent",["root","message","action"]);const Uce=["action","className","message","role"],$ce=nf(Bm,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;const n="light"===t.palette.mode?.8:.98,r=(0,gh.tL)(t.palette.background.default,n);return(0,wl.A)({},t.typography.body2,{color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(r),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})})),Hce=nf("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),qce=nf("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Gce=e.forwardRef((function(e,t){const n=rf({props:e,name:"MuiSnackbarContent"}),{action:r,className:a,message:i,role:o="alert"}=n,s=(0,Sl.A)(n,Uce),l=n,c=(e=>{const{classes:t}=e;return mh({root:["root"],action:["action"],message:["message"]},Wce,t)})(l);return(0,Tl.jsxs)($ce,(0,wl.A)({role:o,square:!0,elevation:6,className:fh(c.root,a),ownerState:l,ref:t},s,{children:[(0,Tl.jsx)(Hce,{className:c.message,ownerState:l,children:i}),r?(0,Tl.jsx)(qce,{className:c.action,ownerState:l,children:r}):null]}))})),Kce=Gce;function Yce(e){return Ff("MuiSnackbar",e)}Bf("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Xce=["onEnter","onExited"],Zce=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],Jce=nf("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${sm(n.anchorOrigin.vertical)}${sm(n.anchorOrigin.horizontal)}`]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===n.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===n.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===n.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[t.breakpoints.up("sm")]:(0,wl.A)({},"top"===n.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===n.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===n.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===n.anchorOrigin.horizontal&&{right:24,left:"auto"})})})),Qce=e.forwardRef((function(t,n){const r=rf({props:t,name:"MuiSnackbar"}),a=Sb(),i={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:o,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:d,ClickAwayListenerProps:p,ContentProps:h,disableWindowBlurListener:f=!1,message:m,open:g,TransitionComponent:v=Lx,transitionDuration:y=i,TransitionProps:{onEnter:b,onExited:x}={}}=r,w=(0,Sl.A)(r.TransitionProps,Xce),S=(0,Sl.A)(r,Zce),C=(0,wl.A)({},r,{anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:f,TransitionComponent:v,transitionDuration:y}),A=(e=>{const{classes:t,anchorOrigin:n}=e;return mh({root:["root",`anchorOrigin${sm(n.vertical)}${sm(n.horizontal)}`]},Yce,t)})(C),{getRootProps:k,onClickAway:T}=Bce((0,wl.A)({},C)),[j,E]=e.useState(!0),P=sS({elementType:Jce,getSlotProps:k,externalForwardedProps:S,ownerState:C,additionalProps:{ref:n},className:[A.root,d]});return!g&&j?null:(0,Tl.jsx)(Vce,(0,wl.A)({onClickAway:T},p,{children:(0,Tl.jsx)(Jce,(0,wl.A)({},P,{children:(0,Tl.jsx)(v,(0,wl.A)({appear:!0,in:g,timeout:y,direction:"top"===s?"down":"up",onEnter:(e,t)=>{E(!1),b&&b(e,t)},onExited:e=>{E(!0),x&&x(e)}},w,{children:u||(0,Tl.jsx)(Kce,(0,wl.A)({message:m,action:o},h))}))}))}))})),eue=Qce;function tue(e){return Ff("MuiAlert",e)}const nue=Bf("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),rue=bm((0,Tl.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),aue=bm((0,Tl.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),iue=bm((0,Tl.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),oue=bm((0,Tl.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),sue=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],lue=nf(Bm,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${sm(n.color||n.severity)}`]]}})((e=>{let{theme:t}=e;const n="light"===t.palette.mode?gh.e$:gh.a,r="light"===t.palette.mode?gh.a:gh.e$;return(0,wl.A)({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.light})).map((e=>{let[a]=e;return{props:{colorSeverity:a,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert[`${a}Color`]:n(t.palette[a].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${a}StandardBg`]:r(t.palette[a].light,.9),[`& .${nue.icon}`]:t.vars?{color:t.vars.palette.Alert[`${a}IconColor`]}:{color:t.palette[a].main}}}})),...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.light})).map((e=>{let[r]=e;return{props:{colorSeverity:r,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:n(t.palette[r].light,.6),border:`1px solid ${(t.vars||t).palette[r].light}`,[`& .${nue.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}}})),...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.dark})).map((e=>{let[n]=e;return{props:{colorSeverity:n,variant:"filled"},style:(0,wl.A)({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert[`${n}FilledColor`],backgroundColor:t.vars.palette.Alert[`${n}FilledBg`]}:{backgroundColor:"dark"===t.palette.mode?t.palette[n].dark:t.palette[n].main,color:t.palette.getContrastText(t.palette[n].main)})}}))]})})),cue=nf("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),uue=nf("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),due=nf("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),pue={success:(0,Tl.jsx)(rue,{fontSize:"inherit"}),warning:(0,Tl.jsx)(aue,{fontSize:"inherit"}),error:(0,Tl.jsx)(iue,{fontSize:"inherit"}),info:(0,Tl.jsx)(oue,{fontSize:"inherit"})},hue=e.forwardRef((function(e,t){const n=rf({props:e,name:"MuiAlert"}),{action:r,children:a,className:i,closeText:o="Close",color:s,components:l={},componentsProps:c={},icon:u,iconMapping:d=pue,onClose:p,role:h="alert",severity:f="success",slotProps:m={},slots:g={},variant:v="standard"}=n,y=(0,Sl.A)(n,sue),b=(0,wl.A)({},n,{color:s,severity:f,variant:v,colorSeverity:s||f}),x=(e=>{const{variant:t,color:n,severity:r,classes:a}=e;return mh({root:["root",`color${sm(n||r)}`,`${t}${sm(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]},tue,a)})(b),w={slots:(0,wl.A)({closeButton:l.CloseButton,closeIcon:l.CloseIcon},g),slotProps:(0,wl.A)({},c,m)},[S,C]=XS("closeButton",{elementType:hm,externalForwardedProps:w,ownerState:b}),[A,k]=XS("closeIcon",{elementType:f7,externalForwardedProps:w,ownerState:b});return(0,Tl.jsxs)(lue,(0,wl.A)({role:h,elevation:0,ownerState:b,className:fh(x.root,i),ref:t},y,{children:[!1!==u?(0,Tl.jsx)(cue,{ownerState:b,className:x.icon,children:u||d[f]||pue[f]}):null,(0,Tl.jsx)(uue,{ownerState:b,className:x.message,children:a}),null!=r?(0,Tl.jsx)(due,{ownerState:b,className:x.action,children:r}):null,null==r&&p?(0,Tl.jsx)(due,{ownerState:b,className:x.action,children:(0,Tl.jsx)(S,(0,wl.A)({size:"small","aria-label":o,title:o,color:"inherit",onClick:p},C,{children:(0,Tl.jsx)(A,(0,wl.A)({fontSize:"small"},k))}))}):null]}))})),fue=hue;function mue(){const e=Oc(SE),{clearNotification:t}=OP(),n=(e,n)=>"clickaway"!==n&&t();return(0,Tl.jsx)(eue,{open:e.open,onClose:n,autoHideDuration:e.timeout,anchorOrigin:{vertical:"bottom",horizontal:"right"},"data-test":"snackbar",children:(0,Tl.jsx)(fue,{variant:"filled",onClose:n,severity:e.type,sx:{width:"100%"},children:e.message})})}function gue(e){const{children:t,value:n,index:r,...a}=e;return(0,Tl.jsx)(Xm,{role:"tabpanel",hidden:n!==r,id:`candidate-tabpanel-${r}`,"aria-labelledby":`candidate-tab-${r}`,...a,children:n===r&&t})}function vue(t){let{config:n}=t;const[r,a]=e.useState(0),{groupLabel:i,id:o,tabs:s}=n,l=e=>({id:`${o}-tab-${e}`,"aria-controls":`${o}-tabpanel-${e}`});return(0,e.useEffect)((()=>{!function(e,t,n){const{currentTabState:r}=e;if(r){const e=t.findIndex((e=>e.label===r));n(e)}}(n,s,a)}),[n,s]),(0,Tl.jsxs)(Xm,{children:[(0,Tl.jsx)(Xm,{sx:{borderBottom:1,borderColor:"divider",marginBottom:"1rem"},children:(0,Tl.jsx)(EZ,{value:r,onChange:(e,t)=>{a(t),n.changeTabState&&n.changeTabState(n.tabs[t].label)},"aria-label":i,children:s.map(((e,t)=>(0,Tl.jsx)(IZ,{sx:{flexGrow:1,maxWidth:"100%"},label:e.label,...l(t)},t)))})}),s.map(((e,t)=>(0,Tl.jsx)(gue,{value:r,index:t,children:e.TabComponent},t)))]})}function yue(t){const{displaySuccess:n,displayError:r}=OP(),[a,i]=(0,e.useState)(t.isActive),{mutate:o,isLoading:s}=function(e){const t=Wj();return Qj((e=>aE(iE+"UpdateApp",e)),{onSuccess:()=>{t.invalidateQueries({queryKey:["abacApp",{id:e}]}),t.invalidateQueries({queryKey:["abacApps"]}),t.invalidateQueries({queryKey:["userFeatures"]})},mutationKey:["editApp"]})}(t.id),l=Qae().shape({appName:Vae().trim().max(100,"App Name must be less than 100 characters").required("App Name is required"),techStack:Vae().trim().max(50,"Tech Stack must be less than 50 characters"),appDescription:Vae().max(500,"App Description must be less than 500 characters")}),c=fce({initialValues:{appName:t.name,techStack:t.techStack,appDescription:t.description},validationSchema:l,onSubmit:e=>{c.setValues({appName:e.appName.trim(),techStack:e.techStack.trim(),appDescription:e.appDescription.trim()});let n={id:t.id,appName:e.appName.trim(),techStack:e.techStack.trim(),appDescription:e.appDescription.trim(),isActive:a};u(n)}}),u=(0,e.useCallback)((function(e){s||o(e,{onError:()=>{r("Error updating application information!")},onSuccess:()=>{n("Successfully updated application information!")}})}),[n,r,o,s]);return{getters:{isActive:a,formik:c},setters:{setIsActive:i},handlers:{}}}function bue(e){let{app:t}=e;const{getters:{isActive:n,formik:r},setters:{setIsActive:a}}=yue(t);return(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsxs)("form",{onSubmit:r.handleSubmit,children:[!n&&(0,Tl.jsx)(fue,{sx:{mb:{xs:"8%",sm:"1%"}},severity:"error",children:"This Application is currently deactivated. All of the Features in this application will now appear in their inaccessible state to users, and all Attributes created for this Application act as if they do not exist."}),(0,Tl.jsxs)(CN,{container:!0,spacing:2,children:[(0,Tl.jsx)(CN,{item:!0,xs:6,children:(0,Tl.jsx)(FU,{fullWidth:!0,sx:{mt:"2%"},name:"appName",label:"App Name",placeholder:"Enter App Name",value:r.values.appName,onChange:r.handleChange,error:Boolean(r.errors.appName),helperText:r.errors.appName||`${r.values.appName.trim().length}/100`})}),(0,Tl.jsx)(CN,{item:!0,xs:6,children:(0,Tl.jsx)(FU,{fullWidth:!0,sx:{mt:"2%"},name:"techStack",label:"Tech Stack",placeholder:"Enter Tech Stack",onChange:r.handleChange,value:r.values.techStack,error:Boolean(r.errors.techStack),helperText:r.errors.techStack||`${r.values.techStack.trim().length}/50`})}),(0,Tl.jsx)(CN,{item:!0,xs:12,children:(0,Tl.jsx)(FU,{fullWidth:!0,multiline:!0,minRows:5,name:"appDescription",label:"Description",placeholder:"Enter Description",onChange:r.handleChange,value:r.values.appDescription,error:Boolean(r.errors.appDescription),helperText:r.errors.appDescription||`${r.values.appDescription.trim().length}/500`})}),(0,Tl.jsx)(CN,{container:!0,item:!0,xs:6,children:(0,Tl.jsx)(vW,{color:n?"secondary":"primary",sx:{width:{xs:"100%",sm:"50%"}},variant:"contained",onClick:()=>a(!n),children:n?"Deactivate Application":"Activate Application"})}),(0,Tl.jsx)(CN,{container:!0,item:!0,justifyContent:"flex-end",xs:6,children:(0,Tl.jsx)(vW,{sx:{width:{xs:"100%",sm:"30%"}},variant:"contained",type:"submit",disabled:!r.isValid,children:"Save Changes"})})]})]})})}function xue(t){const{closeModal:n}=Cce(),{displaySuccess:r,displayError:a}=OP(),{mutate:i,isLoading:o}=function(e){const t=Wj();return Qj((e=>rE(oE+"CreateFeature",e)),{onSuccess:()=>{t.invalidateQueries({queryKey:["abacFeaturesForApp",{id:e}]})},mutationKey:["createAbacFeatureForApp",{id:e}]})}(t),s=fce({initialValues:{featureName:"",featureDescription:"",requireAll:!1},validationSchema:Qae().shape({featureName:Vae().required("Feature Name is required").trim().max(100,"Feature name must be less than 100 characters"),featureDescription:Vae().trim().max(500,"Feature description must be less than 500 characters"),requireAll:Nae()}),onSubmit:e=>{let n={appId:t,name:e.featureName.trim(),description:e.featureDescription.trim(),requireAll:e.requireAll};l(n)}}),l=(0,e.useCallback)((function(e){o||i(e,{onError:()=>{a("Error creating new Feature.")},onSuccess:()=>{r("New feature created!"),n(),s.resetForm()}})}),[i,o,a,r,n,s]);return{getters:{createIsLoading:o,formik:s},handlers:{handleCreateModalClose:()=>{o||(n(),s.resetForm())}}}}function wue(e){const{data:t=[],isLoading:n}=Gj(["abacFeaturesForApp",{id:r=e.id}],(async()=>(await nE(oE+"GetAllFeaturesForApp/"+r)).data.map(WP)));var r;const{getters:{createIsLoading:a,formik:i},handlers:{handleCreateModalClose:o}}=xue(e.id);return{getters:{features:t,columns:[{label:"Feature Name",propName:"name"},{label:"Feature Key",propName:"key"},{label:"Last Updated",propName:"updatedDate"},{label:"Require All Attributes",propName:"requireAll"},{label:"Is Active",propName:"isActive"}],isFeatureListLoading:n,createFeatureModalTitle:"Create New Feature",createIsLoading:a,formik:i},handlers:{handleCreateModalClose:o}}}const Sue={rowCell:{cursor:"pointer !important",backgroundColor:"white",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"},textAlign:"right"},itemIcon:{cursor:"grab"},tableCell:{color:"primary.copy"}};function Cue(e){let{columns:t,element:n}=e;const r=Bu();return(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsx)(FW,{hover:!0,sx:Sue.rowCell,onClick:()=>r.push(`/abac/${n.appId}/feature/${n.id}`),children:t.map(((e,t)=>{let r=n[e.propName];return r instanceof Date&&(r=r.toLocaleDateString("en-US")),(0,Tl.jsx)(HW,{align:"left",sx:Sue.tableCell,children:"isActive"===e.propName?n.isActive?(0,Tl.jsx)(Tce,{sx:{ml:"10%",color:"primary.main"}}):(0,Tl.jsx)(jce,{sx:{ml:"10%",color:"secondary.main"}}):"requireAll"===e.propName?n.requireAll?(0,Tl.jsx)(Tce,{sx:{ml:"15%",color:"primary.main"}}):(0,Tl.jsx)(wm,{sx:{ml:"15%",color:"secondary.main"}}):r},t)}))},n.id)})}function Aue(e){const{formik:t}=e;return(0,Tl.jsxs)(CN,{container:!0,spacing:2,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,children:(0,Tl.jsx)(FU,{fullWidth:!0,sx:{mt:"2%"},name:"featureName",label:"Feature Name",placeholder:"Enter Feature Name",value:t.values.featureName,onChange:t.handleChange,error:Boolean(t.errors.featureName),helperText:t.errors.featureName||`${t.values.featureName.trim().length}/100`,required:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:12,children:(0,Tl.jsx)(FU,{fullWidth:!0,multiline:!0,minRows:5,name:"featureDescription",label:"Description",placeholder:"Enter Description",value:t.values.featureDescription,onChange:t.handleChange,error:Boolean(t.errors.featureDescription),helperText:t.errors.featureDescription||`${t.values.featureDescription.trim().length}/500`})}),(0,Tl.jsx)(CN,{item:!0,xs:12,children:(0,Tl.jsx)($Y,{sx:{mb:"2%"},control:(0,Tl.jsx)(lX,{name:"requireAll",color:"primary",checked:t.values.requireAll,onChange:t.handleChange}),label:"Require All Attributes To Access Feature?"})})]})}function kue(e){let{app:t}=e;const{getters:{features:n,columns:r,isFeatureListLoading:a,createFeatureModalTitle:i,createIsLoading:o,formik:s},handlers:{handleCreateModalClose:l}}=wue(t),{modalStatus:c,openModal:u}=Cce();return(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsxs)(Xm,{children:[(0,Tl.jsx)(Xm,{sx:{width:"100%",position:"relative"},children:(0,Tl.jsx)(vW,{variant:"contained",color:"primary",sx:{position:"absolute",right:"0px",top:"0px",left:{xs:"0px",sm:"unset"}},onClick:()=>u(),children:"Create Feature"})}),(0,Tl.jsx)(Xm,{sx:{pt:{xs:"3rem",sm:"unset"}},children:(0,Tl.jsx)(GX,{columns:r,tableData:n,rowComponent:Cue,loading:a,hideSearch:!1,defaultSortIndex:0,setTableData:void 0,reverse:!1,customProps:void 0})})]}),(0,Tl.jsx)(Ice,{fullWidth:!0,maxWidth:"sm",open:!0===c.open,title:i,hasLoadingBar:!0,isProcessing:o,handleClose:()=>l(),children:(0,Tl.jsx)(Oce,{formik:s,isProcessing:o,children:(0,Tl.jsx)(Aue,{})})})]})}function Tue(t,n){const{closeModal:r}=Cce(),{displaySuccess:a,displayError:i}=OP(),{mutate:o,isLoading:s}=function(e,t){const n=Wj();return Qj((e=>rE(sE+"CreateAttribute",e)),{onSuccess:()=>{n.invalidateQueries({queryKey:["abacAttributesForApp",{id:e}]}),n.invalidateQueries({queryKey:["abacFeatureAttributesForFeature",{id:t}]})},mutationKey:["createAbacAttributeForApp",{id:e}]})}(t,n),l=fce({initialValues:{attributeName:"",attributeDescription:""},validationSchema:Qae().shape({attributeName:Vae().required("Attribute Name is required").trim().max(100,"Attribute name must be less than 100 characters"),attributeDescription:Vae().trim().max(500,"Attribute description must be less than 500 characters")}),onSubmit:e=>{let r={appId:t,featureId:n,name:e.attributeName.trim(),description:e.attributeDescription.trim(),allowCustomAssign:!1,isDefault:!1};c(r)}}),c=(0,e.useCallback)((function(e){s||o(e,{onError:()=>{i("Error creating new Attribute.")},onSuccess:()=>{a("New Attribute created!"),r(),l.resetForm()}})}),[o,s,i,a,r,l]);return{getters:{createAttributeFormTitle:"Create New Attribute",createIsLoading:s,formik:l},handlers:{handleCreateModalClose:()=>{s||(r(),l.resetForm())}}}}const jue={rowCell:{cursor:"pointer !important",backgroundColor:"white",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"},textAlign:"right"},itemIcon:{cursor:"grab"},tableCell:{color:"primary.copy"}};function Eue(e){let{columns:t,element:n}=e;const r=Bu();return(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsx)(FW,{hover:!0,sx:jue.rowCell,onClick:()=>r.push(`/abac/${n.appId}/attribute/${n.id}`),children:t.map(((e,t)=>{let r=n[e.propName];return r instanceof Date&&(r=r.toLocaleDateString("en-US")),(0,Tl.jsx)(HW,{align:"left",sx:jue.tableCell,children:"isActive"===e.propName?n.isActive?(0,Tl.jsx)(Tce,{sx:{ml:"10%",color:"primary.main"}}):(0,Tl.jsx)(jce,{sx:{ml:"10%",color:"secondary.main"}}):r},t)}))},n.id)})}function Pue(e){const{formik:t}=e;return(0,Tl.jsxs)(CN,{container:!0,spacing:2,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,children:(0,Tl.jsx)(FU,{fullWidth:!0,sx:{mt:"2%"},name:"attributeName",label:"Attribute Name",placeholder:"Enter Attribute Name",value:t.values.attributeName,onChange:t.handleChange,error:Boolean(t.errors.attributeName),helperText:t.errors.attributeName||`${t.values.attributeName.trim().length}/100`,required:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:12,children:(0,Tl.jsx)(FU,{fullWidth:!0,multiline:!0,minRows:5,name:"attributeDescription",label:"Description",placeholder:"Enter Description",value:t.values.attributeDescription,onChange:t.handleChange,error:Boolean(t.errors.attributeDescription),helperText:t.errors.attributeDescription||`${t.values.attributeDescription.trim().length}/500`})})]})}function Nue(e){let{app:t}=e;const{getters:{attributes:n,columns:r,isAttributeListLoading:a,createAttributeFormTitle:i,createIsLoading:o,formik:s},handlers:{handleCreateModalClose:l}}=function(e){const{data:t=[],isLoading:n}=FP(e.id),{getters:{createAttributeFormTitle:r,createIsLoading:a,formik:i},handlers:{handleCreateModalClose:o}}=Tue(e.id);return{getters:{attributes:t,columns:[{label:"Attribute Name",propName:"name"},{label:"Last Updated",propName:"updatedDate"},{label:"Is Active",propName:"isActive"}],isAttributeListLoading:n,createAttributeFormTitle:r,createIsLoading:a,formik:i},handlers:{handleCreateModalClose:o}}}(t),{modalStatus:c,openModal:u}=Cce();return(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsxs)(Xm,{children:[(0,Tl.jsx)(Xm,{sx:{width:"100%",position:"relative"},children:(0,Tl.jsx)(vW,{variant:"contained",color:"primary",sx:{position:"absolute",right:"0px",top:"0px",left:{xs:"0px",sm:"unset"}},onClick:()=>u(),children:"Create Attribute"})}),(0,Tl.jsx)(Xm,{sx:{pt:{xs:"3rem",sm:"unset"}},children:(0,Tl.jsx)(GX,{columns:r,tableData:n,rowComponent:Eue,loading:a,hideSearch:!1,defaultSortIndex:0,setTableData:void 0,reverse:!1,customProps:void 0})})]}),(0,Tl.jsx)(Ice,{fullWidth:!0,maxWidth:"sm",open:!0===c.open,title:i,hasLoadingBar:!0,isProcessing:o,handleClose:()=>l(),children:(0,Tl.jsx)(Oce,{formik:s,isProcessing:o,children:(0,Tl.jsx)(Pue,{})})})]})}function Due(){const{id:e}=Vu(),{data:t,isLoading:n}=Gj(["abacApp",{id:r=e}],(async()=>WP((await nE(iE+"GetApp/"+r)).data)));var r,a=Mc(),i=Oc(IE);const{enableAbacApplicationManagement:o}=QT();if(!o)return null;if(n)return(0,Tl.jsx)(kce,{children:(0,Tl.jsx)("p",{children:"Loading..."})});if(!n&&t){var s;const e={groupLabel:"ABAC Application Actions",id:"abac-app-tabs",currentTabState:null!==(s=i.currentTab)&&void 0!==s?s:"App Details",changeTabState:e=>{a(ME(e))},tabs:[{label:"App Details",TabComponent:(0,Tl.jsx)(bue,{app:t})},{label:"Features",TabComponent:(0,Tl.jsx)(kue,{app:t})},{label:"Attributes",TabComponent:(0,Tl.jsx)(Nue,{app:t})}]};return o&&(0,Tl.jsxs)(kce,{children:[(0,Tl.jsx)(oW,{pageTitle:t.name}),(0,Tl.jsxs)("h1",{className:"page-title",children:["Manage ",t.name," "]}),(0,Tl.jsx)(Bm,{sx:{mt:4,p:{xs:2,lg:4}},children:(0,Tl.jsx)(vue,{config:e})})]})}}const Mue=bm((0,Tl.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11zM8 21V7h6v5h5v9z"}),"FileCopyOutlined");function _ue(t){const{displaySuccess:n,displayError:r}=OP(),{openModal:a}=Cce(),{mutate:i,isLoading:o}=function(e,t){const n=Wj();return Qj((e=>aE(oE+"UpdateFeature",e)),{onSuccess:()=>{n.invalidateQueries({queryKey:["abacFeature",{id:e}]}),n.invalidateQueries({queryKey:["abacFeaturesForApp",{id:t}]}),n.invalidateQueries({queryKey:["abacFeatureAttributesForFeature",{id:e}]}),n.invalidateQueries({queryKey:["userFeatures"]})},mutationKey:["editFeature"]})}(t.id,t.app.id),{data:s,isLoading:l}=FP(t.app.id),{data:c,isLoading:u}=Gj(["abacFeatureAttributesForFeature",{id:d=t.id}],(async()=>(await nE(lE+"GetAllFeatureAttributesForFeature/"+d)).data.map(WP)),{refetchOnWindowFocus:!1});var d;const[p,h]=(0,e.useState)(t.isActive),[f,m]=(0,e.useState)([]),[g,v]=(0,e.useState)([]),y={title:"Unassigned Attributes",listItems:g,setListItems:v,listIsLoading:l,listHasAddItem:!1},b={title:"Assigned Attributes",listItems:f,setListItems:m,listIsLoading:u,listHasAddItem:!0,addItemLabel:"Create New Attribute",addItemFunction:()=>a()},x=Qae().shape({featureName:Vae().required("Feature Name is required").trim().max(100,"Feature name must be less than 100 characters"),featureDescription:Vae().trim().max(500,"Feature description must be less than 500 characters"),requireAll:Nae()}),w=fce({initialValues:{featureName:t.name,featureDescription:t.description,requireAll:t.requireAll},validationSchema:x,onSubmit:e=>{w.setValues({featureName:e.featureName.trim(),featureDescription:e.featureDescription.trim(),requireAll:e.requireAll});let n={id:t.id,name:e.featureName.trim(),description:e.featureDescription.trim(),requireAll:e.requireAll,isActive:p,assignedAttributeIds:f.map((e=>e.item.id)),unassignedAttributeIds:g.map((e=>e.item.id))};S(n)}}),S=(0,e.useCallback)((function(e){o||i(e,{onError:()=>{r("Error updating feature information")},onSuccess:()=>{n("Successfully updated feature information!")}})}),[i,o,r,n]);return(0,e.useEffect)((()=>{let e=[],t=[];l||(t=s.map((e=>({item:e,label:e.name})))),u||(e=c.map((e=>({item:e.attribute,label:e.attribute.name})))),t=t.filter((t=>!e.find((e=>e.item.id===t.item.id)))),v(t),m(e)}),[s,c,u,l,m,v]),{getters:{isActive:p,formik:w,currentFeature:t,rightTransferPanel:y,leftTransferPanel:b},setters:{setIsActive:h}}}const Iue=bm((0,Tl.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline"),Rue=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Oue=nf(im,{shouldForwardProp:e=>tf(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:n}=e;return(0,wl.A)({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${O4.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,gh.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${O4.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:(0,gh.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${O4.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,gh.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,gh.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${O4.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${O4.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},n.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===n.alignItems&&{alignItems:"flex-start"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.dense&&{paddingTop:4,paddingBottom:4})})),Lue=e.forwardRef((function(t,n){const r=rf({props:t,name:"MuiListItemButton"}),{alignItems:a="center",autoFocus:i=!1,component:o="div",children:s,dense:l=!1,disableGutters:c=!1,divider:u=!1,focusVisibleClassName:d,selected:p=!1,className:h}=r,f=(0,Sl.A)(r,Rue),m=e.useContext(_b),g=e.useMemo((()=>({dense:l||m.dense||!1,alignItems:a,disableGutters:c})),[a,m.dense,l,c]),v=e.useRef(null);Vb((()=>{i&&v.current&&v.current.focus()}),[i]);const y=(0,wl.A)({},r,{alignItems:a,dense:g.dense,disableGutters:c,divider:u,selected:p}),b=(e=>{const{alignItems:t,classes:n,dense:r,disabled:a,disableGutters:i,divider:o,selected:s}=e,l=mh({root:["root",r&&"dense",!i&&"gutters",o&&"divider",a&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},R4,n);return(0,wl.A)({},n,l)})(y),x=sf(v,n);return(0,Tl.jsx)(_b.Provider,{value:g,children:(0,Tl.jsx)(Oue,(0,wl.A)({ref:x,href:f.href||f.to,component:(f.href||f.to)&&"div"===o?"button":o,focusVisibleClassName:fh(b.focusVisible,d),ownerState:y,className:fh(b.root,h)},f,{classes:b,children:s}))})})),Fue=Lue;function Bue(e,t){return e.filter((e=>-1===t.indexOf(e)))}function zue(e,t){return e.filter((e=>-1!==t.indexOf(e)))}function Vue(t){let{rightPanel:n,leftPanel:r}=t;const[a,i]=(0,e.useState)([]);var o=r.listItems,s=n.listItems;const l=zue(a,o),c=zue(a,s),u=e=>()=>{const t=a.indexOf(e),n=[...a];-1===t?n.push(e):n.splice(t,1),i(n)},d=e=>zue(a,e).length,p=e=>()=>{d(e)===e.length?i(Bue(a,e)):i(function(e,t){return[...e,...Bue(t,e)]}(a,e))},h=e=>(0,Tl.jsxs)(WM,{sx:{width:"100%"},children:[(0,Tl.jsx)(Lne,{sx:{backgroundColor:"#f0f0f0",px:2,py:1},avatar:(0,Tl.jsx)(lX,{onClick:p(e.listItems),checked:d(e.listItems)===e.listItems.length&&0!==e.listItems.length,indeterminate:d(e.listItems)!==e.listItems.length&&0!==d(e.listItems),disabled:0===e.listItems.length,inputProps:{"aria-label":"all items selected"}}),title:e.title,subheader:`${d(e.listItems)}/${e.listItems.length} selected`}),(0,Tl.jsx)(sC,{}),e.listIsLoading?(0,Tl.jsx)(Fb,{sx:{width:"100%",height:"40vh",bgcolor:"background.paper",overflow:"auto"},dense:!0,component:"div",role:"list",children:(0,Tl.jsx)(v$,{numRows:6})}):(0,Tl.jsxs)(Fb,{sx:{width:"100%",height:"40vh",bgcolor:"background.paper",overflow:"auto"},dense:!0,component:"div",role:"list",children:[e.listItems.map((t=>{var n=t.label.replace(/\s/g,"-").toLocaleLowerCase(),r=e.listItems.indexOf(t);const i=`transfer-list-all-item-${n}-${r}-label`;return(0,Tl.jsxs)(Fue,{role:"listitem",onClick:u(t),children:[(0,Tl.jsx)(Px,{children:(0,Tl.jsx)(lX,{checked:-1!==a.indexOf(t),tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":i}})}),(0,Tl.jsx)(bx,{id:i,primary:t.label})]},`${t.label}-${r}`)})),e.listHasAddItem?(0,Tl.jsxs)(G4,{role:"listitem",onClick:e.addItemFunction,children:[(0,Tl.jsx)(bx,{sx:{textAlign:"right",mr:"2%",cursor:"pointer"},id:"left-plus",primary:e.addItemLabel}),(0,Tl.jsx)(Px,{sx:{cursor:"pointer"},children:(0,Tl.jsx)(Iue,{})})]}):null]})]});return(0,Tl.jsxs)(CN,{container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:[(0,Tl.jsx)(CN,{item:!0,xs:5.5,children:h(r)}),(0,Tl.jsx)(CN,{item:!0,xs:1,children:(0,Tl.jsxs)(CN,{container:!0,direction:"column",alignItems:"top",alignSelf:"center",children:[(0,Tl.jsx)(vW,{sx:{my:.5},variant:"outlined",size:"small",onClick:()=>{n.setListItems(s.concat(l)),r.setListItems(Bue(o,l)),i(Bue(a,l))},disabled:0===l.length,"aria-label":"move selected right",children:">"}),(0,Tl.jsx)(vW,{sx:{my:.5},variant:"outlined",size:"small",onClick:()=>{r.setListItems(o.concat(c)),n.setListItems(Bue(s,c)),i(Bue(a,c))},disabled:0===c.length,"aria-label":"move selected left",children:"<"})]})}),(0,Tl.jsx)(CN,{item:!0,xs:5.5,children:h(n)})]})}function Wue(e){let{feature:t}=e;const{getters:{isActive:n,formik:r,rightTransferPanel:a,leftTransferPanel:i},setters:{setIsActive:o}}=_ue(t);return(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsxs)("form",{onSubmit:r.handleSubmit,children:[!n&&(0,Tl.jsx)(fue,{sx:{mb:{xs:"8%",sm:"1%"}},severity:"error",children:"This Feature is currently deactivated. The Feature will now appear in its inaccessible state to users, even if they have the required Attributes to access this Feature."}),(0,Tl.jsxs)(CN,{container:!0,spacing:2,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,children:(0,Tl.jsx)(FU,{fullWidth:!0,sx:{mt:"2%"},name:"featureName",label:"Feature Name",placeholder:"Enter Feature Name",value:r.values.featureName,onChange:r.handleChange,error:Boolean(r.errors.featureName),helperText:r.errors.featureName||`${r.values.featureName.trim().length}/100`,required:!0})}),null!==t.key&&(0,Tl.jsx)(CN,{item:!0,xs:12,children:(0,Tl.jsx)(FU,{sx:{mb:1,minWidth:"28ch"},name:"featureKey",label:"Feature Key (Generated Automatically)",placeholder:"Enter Feature Name",value:t.key,variant:"standard",size:"small",InputProps:{sx:{fontSize:"0.8rem",px:1},endAdornment:(0,Tl.jsx)(FS,{title:"Copy to Clipboard",children:(0,Tl.jsx)(hm,{onClick:()=>{navigator.clipboard.writeText(t.key)},size:"small",sx:{ml:2},children:(0,Tl.jsx)(Mue,{fontSize:"small"})})})},disabled:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:12,children:(0,Tl.jsx)(FU,{fullWidth:!0,multiline:!0,minRows:5,name:"featureDescription",label:"Description",placeholder:"Enter Description",value:r.values.featureDescription,onChange:r.handleChange,error:Boolean(r.errors.featureDescription),helperText:r.errors.featureDescription||`${r.values.featureDescription.trim().length}/500`})}),(0,Tl.jsx)(CN,{item:!0,xs:12,children:(0,Tl.jsx)($Y,{sx:{mb:"2%"},control:(0,Tl.jsx)(lX,{name:"requireAll",color:"primary",checked:r.values.requireAll,onChange:r.handleChange}),label:"Require All Attributes To Access Feature?"})}),(0,Tl.jsx)(CN,{item:!0,xs:12,children:(0,Tl.jsx)(Vue,{rightPanel:a,leftPanel:i})}),(0,Tl.jsx)(CN,{container:!0,item:!0,xs:6,children:(0,Tl.jsx)(vW,{color:n?"secondary":"primary",sx:{width:{xs:"100%",sm:"50%"}},variant:"contained",onClick:()=>o(!n),children:n?"Deactivate Feature":"Activate Feature"})}),(0,Tl.jsx)(CN,{container:!0,item:!0,justifyContent:"flex-end",xs:6,children:(0,Tl.jsx)(vW,{sx:{width:{xs:"100%",sm:"30%"}},variant:"contained",type:"submit",disabled:!r.isValid,children:"Save Changes"})})]})]})})}function Uue(){const{appId:e,featureId:t}=Vu(),{data:n,isLoading:r}=function(e){return Gj(["abacFeature",{id:e}],(async()=>WP((await nE(oE+"GetFeature/"+e)).data)))}(t),{enableAbacApplicationManagement:a}=QT(),{getters:{createAttributeFormTitle:i,createIsLoading:o,formik:s},handlers:{handleCreateModalClose:l}}=Tue(e,t),{modalStatus:c}=Cce();if(!a)return null;if(r)return(0,Tl.jsx)(kce,{children:(0,Tl.jsx)("p",{children:"Loading..."})});if(!r&&n){const e=[{breadCrumbName:"ABAC Apps",route:"abac"},{breadCrumbName:n.app.name,route:`abac/${n.app.id}`}];return(0,Tl.jsxs)(kce,{children:[(0,Tl.jsx)(oW,{pageTitle:n.name,isLoading:r,customBreadcrumbs:e}),(0,Tl.jsx)("h1",{className:"page-title",children:r?(0,Tl.jsx)(aW,{}):"Manage "+n.name}),(0,Tl.jsx)(Bm,{sx:{mt:4,p:{xs:2,lg:4}},children:r?(0,Tl.jsx)(v$,{numRows:5}):(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsx)(Wue,{feature:n})})}),(0,Tl.jsx)(Ice,{fullWidth:!0,maxWidth:"sm",open:!0===c.open,title:i,hasLoadingBar:!0,isProcessing:o,handleClose:()=>l(),children:(0,Tl.jsx)(Oce,{formik:s,isProcessing:o,children:(0,Tl.jsx)(Pue,{})})})]})}}const $ue="899791b9-7114-4498-6a77-b7b7baa0fa09";function Hue(){const t=Oc(Yp),n=Oc(ZC),r=n["http://nasrecruitment.io/activateId"],a=!!r&&!(null===t||void 0===t||!t.id),i=!(void 0===window.pendo||!pendo.isReady)&&pendo.isReady();(0,e.useEffect)((()=>{const e=`auth0|${r}`,o=t.id,s=n.email;if(a){null!==document.getElementById("pendo-base")||function(e){if(!e.clientId||!e.sub)return;const t=document.createElement("script");t.id="pendo-base",t.innerHTML=function(e){const t=que(e);return`\n  (function(apiKey){\n    (function(p,e,n,d,o){var v,w,x,y,z;o=p[d]=p[d]||{};o._q=o._q||[];\n    v=['initialize','identify','updateOptions','pageLoad','track'];for(w=0,x=v.length;w<x;++w)(function(m){\n        o[m]=o[m]||function(){o._q[m===v[0]?'unshift':'push']([m].concat([].slice.call(arguments,0)));};})(v[w]);\n        y=e.createElement(n);y.async=!0;y.src='https://cdn.pendo.io/agent/static/'+apiKey+'/pendo.js';\n        z=e.getElementsByTagName(n)[0];z.parentNode.insertBefore(y,z);})(window,document,'script','pendo');\n        ${t}\n  })('${$ue}');`}(e),document.body.appendChild(t)}({email:s,sub:e,clientId:o}),i&&async function(){await pendo.flushNow(),pendo.identify({visitor:{id:e,email:s},account:{id:o}})}()}return()=>{i&&pendo.flushNow()}}),[a,i,t.id,r,n.email])}const que=e=>void 0!==window.parent.Cypress?`pendo.initialize({\n    visitor: {id: '${e.sub}', email: '${e.email}'},\n    account: {id: '${e.clientId}'},\n    disableGuides: true\n  });`:`pendo.initialize({\n    visitor: {id: '${e.sub}', email: '${e.email}'},\n    account: {id: '${e.clientId}'}\n  });`;function Gue(t){const{displaySuccess:n,displayError:r}=OP(),[a,i]=(0,e.useState)(t.isActive),{mutate:o,isLoading:s}=function(e,t){const n=Wj();return Qj((e=>aE(sE+"UpdateAttribute",e)),{onSuccess:()=>{n.invalidateQueries({queryKey:["abacAttribute",{id:e}]}),n.invalidateQueries({queryKey:["abacAttributesForApp",{id:t}]})},mutationKey:["editAttribute"]})}(t.id,t.app.id),{data:l=[],isLoading:c}=Gj(["abacFeatureAttributesForAttribute",{id:u=t.id}],(async()=>(await nE(lE+"GetAllFeatureAttributesForAttribute/"+u)).data.map(WP)),{refetchOnWindowFocus:!1});var u;const d=Qae().shape({attributeName:Vae().trim().max(100,"Attribute Name must be less than 100 characters").required("Attribute Name is required"),attributeDescription:Vae().max(500,"Attribute Description must be less than 500 characters")}),p=fce({initialValues:{attributeName:t.name,attributeDescription:t.description},validationSchema:d,onSubmit:e=>{p.setValues({attributeName:e.attributeName.trim(),attributeDescription:e.attributeDescription.trim()});let n={id:t.id,appId:t.app.id,name:e.attributeName.trim(),description:e.attributeDescription.trim(),isActive:a,allowCustomAssign:!1,isDefault:!1};h(n)}}),h=(0,e.useCallback)((function(e){s||o(e,{onError:()=>{r("Error updating attribute information!")},onSuccess:()=>{n("Successfully updated attribute information!")}})}),[n,r,o,s]);return{getters:{isActive:a,formik:p,columns:[{label:"Features Assigned To: ",propName:""},{label:"Is Active",propName:""},{label:"",propName:""}],featureAttributes:l,featureAttributesLoading:c},setters:{setIsActive:i},handlers:{}}}const Kue=bm((0,Tl.jsx)("path",{d:"M7.38 21.01c.49.49 1.28.49 1.77 0l8.31-8.31c.39-.39.39-1.02 0-1.41L9.15 2.98c-.49-.49-1.28-.49-1.77 0s-.49 1.28 0 1.77L14.62 12l-7.25 7.25c-.48.48-.48 1.28.01 1.76"}),"ArrowForwardIosRounded"),Yue={rowCell:{cursor:"pointer !important",backgroundColor:"white",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"},textAlign:"right"},itemIcon:{cursor:"grab"},tableCell:{color:"primary.copy"}};function Xue(e){let{element:t,columns:n}=e;var r=Bu();return(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsx)(FW,{hover:!0,sx:Yue.rowCell,onClick:()=>r.push(`/abac/${t.appId}/feature/${t.feature.id}`),children:n.map(((e,n)=>(0,Tl.jsx)(FS,{title:"Manage "+t.feature.name,children:(0,Tl.jsx)(HW,{align:"left",sx:Yue.tableCell,children:"Is Active"===e.label?t.feature.isActive?(0,Tl.jsx)(Tce,{sx:{ml:"5%",color:"primary.main"}}):(0,Tl.jsx)(jce,{sx:{ml:"5%",color:"secondary.main"}}):""===e.label?(0,Tl.jsx)(Kue,{sx:{ml:"80%"}}):t.feature.name},n)})))},t.id)})}function Zue(e){let{attribute:t}=e;const{getters:{isActive:n,formik:r,columns:a,featureAttributes:i,featureAttributesLoading:o},setters:{setIsActive:s}}=Gue(t);return(0,Tl.jsxs)("form",{onSubmit:r.handleSubmit,children:[!n&&(0,Tl.jsx)(fue,{sx:{mb:{xs:"8%",sm:"1%"}},severity:"error",children:"This Attribute is currently deactivated. Any users that have been assigned this Attribute will no longer be able to access Features that this Attribute is required for."}),(0,Tl.jsxs)(CN,{container:!0,spacing:2,children:[(0,Tl.jsx)(CN,{item:!0,xs:12,children:(0,Tl.jsx)(FU,{fullWidth:!0,sx:{mt:"2%"},name:"attributeName",label:"Attribute Name",placeholder:"Enter Attribute Name",value:r.values.attributeName,onChange:r.handleChange,error:Boolean(r.errors.attributeName),helperText:r.errors.attributeName||`${r.values.attributeName.trim().length}/100`})}),(0,Tl.jsx)(CN,{item:!0,xs:12,children:(0,Tl.jsx)(FU,{fullWidth:!0,multiline:!0,minRows:5,name:"attributeDescription",label:"Description",placeholder:"Enter Description",onChange:r.handleChange,value:r.values.attributeDescription,error:Boolean(r.errors.attributeDescription),helperText:r.errors.attributeDescription||`${r.values.attributeDescription.trim().length}/500`})}),i.length>0&&(0,Tl.jsx)(CN,{item:!0,xs:12,sx:{mt:"2%",mb:"2%"},children:(0,Tl.jsx)(GX,{columns:a,tableData:i,rowComponent:Xue,loading:o,hideSearch:!0,defaultSortIndex:0,setTableData:void 0,reverse:!1,customProps:void 0})}),(0,Tl.jsx)(CN,{container:!0,item:!0,xs:6,children:(0,Tl.jsx)(vW,{color:n?"secondary":"primary",sx:{width:{xs:"100%",sm:"50%"}},variant:"contained",onClick:()=>s(!n),children:n?"Deactivate Attribute":"Activate Attribute"})}),(0,Tl.jsx)(CN,{container:!0,item:!0,justifyContent:"flex-end",xs:6,children:(0,Tl.jsx)(vW,{sx:{width:{xs:"100%",sm:"30%"}},variant:"contained",type:"submit",disabled:!r.isValid,children:"Save Changes"})})]})]})}function Jue(){const{appId:e,attributeId:t}=Vu(),{data:n,isLoading:r}=function(e){return Gj(["abacAttribute",{id:e}],(async()=>WP((await nE(sE+"GetAttribute/"+e)).data)))}(t),{enableAbacApplicationManagement:a}=QT(),{getters:{createAttributeFormTitle:i,createIsLoading:o,formik:s},handlers:{handleCreateModalClose:l}}=Tue(e,t),{modalStatus:c}=Cce();if(!a)return null;if(r)return(0,Tl.jsx)(kce,{children:(0,Tl.jsx)("p",{children:"Loading..."})});if(!r&&n){const e=[{breadCrumbName:"ABAC Apps",route:"abac"},{breadCrumbName:n.app.name,route:`abac/${n.app.id}`}];return(0,Tl.jsxs)(kce,{children:[(0,Tl.jsx)(oW,{pageTitle:n.name,isLoading:r,customBreadcrumbs:e}),(0,Tl.jsx)("h1",{className:"page-title",children:r?(0,Tl.jsx)(aW,{}):"Manage "+n.name}),(0,Tl.jsx)(Bm,{sx:{mt:4,p:{xs:2,lg:4}},children:r?(0,Tl.jsx)(v$,{numRows:5}):(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsx)(Zue,{attribute:n})})}),(0,Tl.jsx)(Ice,{fullWidth:!0,maxWidth:"sm",open:!0===c.open,title:i,hasLoadingBar:!0,isProcessing:o,handleClose:()=>l(),children:(0,Tl.jsx)(Oce,{formik:s,isProcessing:o,children:(0,Tl.jsx)(Pue,{})})})]})}}function Que(e){return Ff("MuiStepper",e)}Bf("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const ede=e.createContext({});const tde=ede,nde=e.createContext({});const rde=nde;function ade(e){return Ff("MuiStepConnector",e)}Bf("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const ide=["className"],ode=nf("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})((e=>{let{ownerState:t}=e;return(0,wl.A)({flex:"1 1 auto"},"vertical"===t.orientation&&{marginLeft:12},t.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})})),sde=nf("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${sm(n.orientation)}`]]}})((e=>{let{ownerState:t,theme:n}=e;const r="light"===n.palette.mode?n.palette.grey[400]:n.palette.grey[600];return(0,wl.A)({display:"block",borderColor:n.vars?n.vars.palette.StepConnector.border:r},"horizontal"===t.orientation&&{borderTopStyle:"solid",borderTopWidth:1},"vertical"===t.orientation&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})})),lde=e.forwardRef((function(t,n){const r=rf({props:t,name:"MuiStepConnector"}),{className:a}=r,i=(0,Sl.A)(r,ide),{alternativeLabel:o,orientation:s="horizontal"}=e.useContext(tde),{active:l,disabled:c,completed:u}=e.useContext(rde),d=(0,wl.A)({},r,{alternativeLabel:o,orientation:s,active:l,completed:u,disabled:c}),p=(e=>{const{classes:t,orientation:n,alternativeLabel:r,active:a,completed:i,disabled:o}=e;return mh({root:["root",n,r&&"alternativeLabel",a&&"active",i&&"completed",o&&"disabled"],line:["line",`line${sm(n)}`]},ade,t)})(d);return(0,Tl.jsx)(ode,(0,wl.A)({className:fh(p.root,a),ref:n,ownerState:d},i,{children:(0,Tl.jsx)(sde,{className:p.line,ownerState:d})}))})),cde=lde,ude=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],dde=nf("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.nonLinear&&t.nonLinear]}})((e=>{let{ownerState:t}=e;return(0,wl.A)({display:"flex"},"horizontal"===t.orientation&&{flexDirection:"row",alignItems:"center"},"vertical"===t.orientation&&{flexDirection:"column"},t.alternativeLabel&&{alignItems:"flex-start"})})),pde=(0,Tl.jsx)(cde,{}),hde=e.forwardRef((function(t,n){const r=rf({props:t,name:"MuiStepper"}),{activeStep:a=0,alternativeLabel:i=!1,children:o,className:s,component:l="div",connector:c=pde,nonLinear:u=!1,orientation:d="horizontal"}=r,p=(0,Sl.A)(r,ude),h=(0,wl.A)({},r,{nonLinear:u,alternativeLabel:i,orientation:d,component:l}),f=(e=>{const{orientation:t,nonLinear:n,alternativeLabel:r,classes:a}=e;return mh({root:["root",t,n&&"nonLinear",r&&"alternativeLabel"]},Que,a)})(h),m=e.Children.toArray(o).filter(Boolean),g=m.map(((t,n)=>e.cloneElement(t,(0,wl.A)({index:n,last:n+1===m.length},t.props)))),v=e.useMemo((()=>({activeStep:a,alternativeLabel:i,connector:c,nonLinear:u,orientation:d})),[a,i,c,u,d]);return(0,Tl.jsx)(tde.Provider,{value:v,children:(0,Tl.jsx)(dde,(0,wl.A)({as:l,ownerState:h,className:fh(f.root,s),ref:n},p,{children:g}))})})),fde=hde;function mde(e){return Ff("MuiStep",e)}Bf("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const gde=["active","children","className","component","completed","disabled","expanded","index","last"],vde=nf("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})((e=>{let{ownerState:t}=e;return(0,wl.A)({},"horizontal"===t.orientation&&{paddingLeft:8,paddingRight:8},t.alternativeLabel&&{flex:1,position:"relative"})})),yde=e.forwardRef((function(t,n){const r=rf({props:t,name:"MuiStep"}),{active:a,children:i,className:o,component:s="div",completed:l,disabled:c,expanded:u=!1,index:d,last:p}=r,h=(0,Sl.A)(r,gde),{activeStep:f,connector:m,alternativeLabel:g,orientation:v,nonLinear:y}=e.useContext(tde);let[b=!1,x=!1,w=!1]=[a,l,c];f===d?b=void 0===a||a:!y&&f>d?x=void 0===l||l:!y&&f<d&&(w=void 0===c||c);const S=e.useMemo((()=>({index:d,last:p,expanded:u,icon:d+1,active:b,completed:x,disabled:w})),[d,p,u,b,x,w]),C=(0,wl.A)({},r,{active:b,orientation:v,alternativeLabel:g,completed:x,disabled:w,expanded:u,component:s}),A=(e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:a}=e;return mh({root:["root",n,r&&"alternativeLabel",a&&"completed"]},mde,t)})(C),k=(0,Tl.jsxs)(vde,(0,wl.A)({as:s,className:fh(A.root,o),ref:n,ownerState:C},h,{children:[m&&g&&0!==d?m:null,i]}));return(0,Tl.jsx)(rde.Provider,{value:S,children:m&&!g&&0!==d?(0,Tl.jsxs)(e.Fragment,{children:[m,k]}):k})})),bde=yde,xde=bm((0,Tl.jsx)("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),wde=bm((0,Tl.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function Sde(e){return Ff("MuiStepIcon",e)}const Cde=Bf("MuiStepIcon",["root","active","completed","error","text"]);var Ade;const kde=["active","className","completed","error","icon"],Tde=nf(ym,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{display:"block",transition:t.transitions.create("color",{duration:t.transitions.duration.shortest}),color:(t.vars||t).palette.text.disabled,[`&.${Cde.completed}`]:{color:(t.vars||t).palette.primary.main},[`&.${Cde.active}`]:{color:(t.vars||t).palette.primary.main},[`&.${Cde.error}`]:{color:(t.vars||t).palette.error.main}}})),jde=nf("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})((e=>{let{theme:t}=e;return{fill:(t.vars||t).palette.primary.contrastText,fontSize:t.typography.caption.fontSize,fontFamily:t.typography.fontFamily}})),Ede=e.forwardRef((function(e,t){const n=rf({props:e,name:"MuiStepIcon"}),{active:r=!1,className:a,completed:i=!1,error:o=!1,icon:s}=n,l=(0,Sl.A)(n,kde),c=(0,wl.A)({},n,{active:r,completed:i,error:o}),u=(e=>{const{classes:t,active:n,completed:r,error:a}=e;return mh({root:["root",n&&"active",r&&"completed",a&&"error"],text:["text"]},Sde,t)})(c);if("number"===typeof s||"string"===typeof s){const e=fh(a,u.root);return o?(0,Tl.jsx)(Tde,(0,wl.A)({as:wde,className:e,ref:t,ownerState:c},l)):i?(0,Tl.jsx)(Tde,(0,wl.A)({as:xde,className:e,ref:t,ownerState:c},l)):(0,Tl.jsxs)(Tde,(0,wl.A)({className:e,ref:t,ownerState:c},l,{children:[Ade||(Ade=(0,Tl.jsx)("circle",{cx:"12",cy:"12",r:"12"})),(0,Tl.jsx)(jde,{className:u.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:c,children:s})]}))}return s})),Pde=Ede;function Nde(e){return Ff("MuiStepLabel",e)}const Dde=Bf("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),Mde=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],_de=nf("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})((e=>{let{ownerState:t}=e;return(0,wl.A)({display:"flex",alignItems:"center",[`&.${Dde.alternativeLabel}`]:{flexDirection:"column"},[`&.${Dde.disabled}`]:{cursor:"default"}},"vertical"===t.orientation&&{textAlign:"left",padding:"8px 0"})})),Ide=nf("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})((e=>{let{theme:t}=e;return(0,wl.A)({},t.typography.body2,{display:"block",transition:t.transitions.create("color",{duration:t.transitions.duration.shortest}),[`&.${Dde.active}`]:{color:(t.vars||t).palette.text.primary,fontWeight:500},[`&.${Dde.completed}`]:{color:(t.vars||t).palette.text.primary,fontWeight:500},[`&.${Dde.alternativeLabel}`]:{marginTop:16},[`&.${Dde.error}`]:{color:(t.vars||t).palette.error.main}})})),Rde=nf("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})((()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${Dde.alternativeLabel}`]:{paddingRight:0}}))),Ode=nf("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})((e=>{let{theme:t}=e;return{width:"100%",color:(t.vars||t).palette.text.secondary,[`&.${Dde.alternativeLabel}`]:{textAlign:"center"}}})),Lde=e.forwardRef((function(t,n){var r;const a=rf({props:t,name:"MuiStepLabel"}),{children:i,className:o,componentsProps:s={},error:l=!1,icon:c,optional:u,slotProps:d={},StepIconComponent:p,StepIconProps:h}=a,f=(0,Sl.A)(a,Mde),{alternativeLabel:m,orientation:g}=e.useContext(tde),{active:v,disabled:y,completed:b,icon:x}=e.useContext(rde),w=c||x;let S=p;w&&!S&&(S=Pde);const C=(0,wl.A)({},a,{active:v,alternativeLabel:m,completed:b,disabled:y,error:l,orientation:g}),A=(e=>{const{classes:t,orientation:n,active:r,completed:a,error:i,disabled:o,alternativeLabel:s}=e;return mh({root:["root",n,i&&"error",o&&"disabled",s&&"alternativeLabel"],label:["label",r&&"active",a&&"completed",i&&"error",o&&"disabled",s&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",a&&"completed",i&&"error",o&&"disabled",s&&"alternativeLabel"],labelContainer:["labelContainer",s&&"alternativeLabel"]},Nde,t)})(C),k=null!=(r=d.label)?r:s.label;return(0,Tl.jsxs)(_de,(0,wl.A)({className:fh(A.root,o),ref:n,ownerState:C},f,{children:[w||S?(0,Tl.jsx)(Rde,{className:A.iconContainer,ownerState:C,children:(0,Tl.jsx)(S,(0,wl.A)({completed:b,active:v,error:l,icon:w},h))}):null,(0,Tl.jsxs)(Ode,{className:A.labelContainer,ownerState:C,children:[i?(0,Tl.jsx)(Ide,(0,wl.A)({ownerState:C},k,{className:fh(A.label,null==k?void 0:k.className),children:i})):null,u]})]}))}));Lde.muiName="StepLabel";const Fde=Lde,Bde=bm((0,Tl.jsx)("path",{d:"M7 15h7v2H7zm0-4h10v2H7zm0-4h10v2H7zm12-4h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-.14 0-.27.01-.4.04-.39.08-.74.28-1.01.55-.18.18-.33.4-.43.64-.1.23-.16.49-.16.77v14c0 .27.06.54.16.78s.25.45.43.64c.27.27.62.47 1.01.55.13.02.26.03.4.03h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7-.25c.41 0 .75.34.75.75s-.34.75-.75.75-.75-.34-.75-.75.34-.75.75-.75M19 19H5V5h14z"}),"AssignmentOutlined"),zde={rowCell:{cursor:"pointer !important",backgroundColor:"white",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"},textAlign:"right"},itemIcon:{cursor:"grab"},tableCell:{color:"primary.copy"}};function Vde(e){let{element:t,columns:n}=e;var r=Bu(),a="Assign Permissions to "+t.firstName;const i=Mc(),{openModal:o}=Cce();return(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsx)(FW,{hover:!0,sx:zde.rowCell,onClick:()=>{i(LE(t.id)),r.push("/abacUsers/"+t.id)},children:n.map(((e,n)=>{let r=t[e.propName];return r instanceof Date&&(r=r.toLocaleDateString("en-US")),(0,Tl.jsx)(HW,{align:"left",sx:zde.tableCell,children:""===e.label?(0,Tl.jsx)(FS,{title:a,children:(0,Tl.jsx)(hm,{sx:{border:"2px solid rgba(0,0,0,0.3)"},onClick:e=>{null===e||void 0===e||e.stopPropagation(),i(LE(t.id)),o({open:!0,type:AE.AttributeAssignment})},children:(0,Tl.jsx)(Bde,{})})}):"isActive"===e.propName?t.isActive?(0,Tl.jsx)(Tce,{sx:{ml:"10%",color:"primary.main"}}):(0,Tl.jsx)(jce,{sx:{ml:"10%",color:"secondary.main"}}):r},n)}))},t.id)})}function Wde(t){let{isAdminCreation:n}=t;const{closeModal:r}=Cce(),{displayError:a}=OP();var i=Bu();const o=Mc(),[s,l]=(0,e.useState)(0),{mutate:c,isLoading:u}=function(){const e=Wj(),{id:t}=RP(Yp),{displayError:n}=OP();return Qj((e=>rE(uE+"CreateUser",e)),{onSuccess:()=>{e.invalidateQueries({queryKey:["abacUsersForClient",{id:t}]})},onError:e=>{var t,r;400===(null===(t=e.response)||void 0===t?void 0:t.status)?n(null===(r=e.response)||void 0===r?void 0:r.data):n("Error creating user!")},mutationKey:["createAbacUser"]})}(),d=fce({initialValues:{firstName:"",lastName:"",emailAddress:"",phoneNumber:""},validationSchema:Qae().shape({firstName:Vae().trim().max(50,"First Name must be less than 50 characters").required("First Name is required"),lastName:Vae().trim().max(50,"Last Name must be less than 50 characters").required("Last Name is required"),emailAddress:Vae().trim().max(50,"Email Address must be less than 50 characters").required("Email Address is required"),phoneNumber:Vae().trim().max(50,"Phone Number must be less than 50 characters")}),onSubmit:e=>{let t={firstName:e.firstName.trim(),lastName:e.lastName.trim(),emailAddress:e.emailAddress.trim(),phoneNumber:e.phoneNumber.trim()};p(t)}}),p=(0,e.useCallback)((function(e){u||c(e,{onSuccess:e=>{n&&(o(LE(e.data)),i.push("/adminUserManagement/"+e.data),d.resetForm(),r()),o(LE(e.data)),l(s+1),d.resetForm()}})}),[u,c,a,o,s,d]);return{getters:{activeStep:s,steps:["Basic User Information","Attribute Assignement"],formik:d},handlers:{handleCreateModalClose:(e,t)=>{u||"backdropClick"!==t&&(r(),setTimeout((()=>{l(0)}),500))}}}}function Ude(){const{data:e=[],isLoading:t}=LP(),{data:n=[],isLoading:r}=function(){const{id:e}=RP(Yp);return Gj(["abacUsersForClient",{id:e}],(async()=>(await nE(uE+"GetAllUsersForClient/"+e)).data.map(WP)))}(),{getters:{formik:a,activeStep:i,steps:o},handlers:{handleCreateModalClose:s}}=Wde({isAdminCreation:!1});return{getters:{apps:e,users:n,columns:[{label:"First Name",propName:"firstName"},{label:"Last Name",propName:"lastName"},{label:"Email",propName:"emailAddress"},{label:"Date Created",propName:"createdDate"},{label:"Is Active",propName:"isActive"},{label:"",propName:""}],isLoading:t,usersLoading:r,createUserModalTitle:"Create New User",attributeAssignementModalTitle:"Assign App Permissions",formik:a,activeStep:i,steps:o},handlers:{handleCreateModalClose:s}}}function $de(e){const{formik:t}=e;return(0,Tl.jsxs)(CN,{sx:{mb:"5%"},container:!0,spacing:2,children:[(0,Tl.jsx)(CN,{item:!0,xs:6,children:(0,Tl.jsx)(FU,{fullWidth:!0,sx:{mt:"2%"},name:"firstName",label:"First Name",placeholder:"Enter First Name",value:t.values.firstName,onChange:t.handleChange,error:Boolean(t.errors.firstName),helperText:t.errors.firstName||`${t.values.firstName.trim().length}/50`,required:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:6,children:(0,Tl.jsx)(FU,{fullWidth:!0,sx:{mt:"2%"},name:"lastName",label:"Last Name",placeholder:"Enter Last Name",value:t.values.lastName,onChange:t.handleChange,error:Boolean(t.errors.lastName),helperText:t.errors.lastName||`${t.values.lastName.trim().length}/50`,required:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:6,children:(0,Tl.jsx)(FU,{fullWidth:!0,sx:{mt:"2%"},name:"emailAddress",label:"Email Address",placeholder:"Enter Email Address",value:t.values.emailAddress,onChange:t.handleChange,error:Boolean(t.errors.emailAddress),helperText:t.errors.emailAddress||`${t.values.emailAddress.trim().length}/50`,required:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:6,children:(0,Tl.jsx)(FU,{fullWidth:!0,sx:{mt:"2%"},name:"phoneNumber",label:"Phone Number",placeholder:"Enter Phone Number",value:t.values.phoneNumber,onChange:t.handleChange,error:Boolean(t.errors.phoneNumber),helperText:t.errors.phoneNumber||`${t.values.phoneNumber.trim().length}/50`})})]})}const Hde={width:"85%",mr:"0%",ml:"10%",textAlign:"left"},qde={width:"45%",mr:"10%",ml:"0%",textAlign:"center"};function Gde(t){var n,r,a;let{handleClose:i,formik:o,submitText:s,clientId:l}=t;const c={fadeOut:{...o?Hde:qde,color:"primary.main",opacity:"0",transition:"opacity 0.5s",fontStyle:"italic"},fadeIn:{...o?Hde:qde,color:"primary.main",opacity:"0.8",transition:"opacity 0.5s",fontStyle:"italic"}},{closeModal:u}=Cce(),{displayError:d,displaySuccess:p}=OP(),{id:h}=RP(Yp),{currentUserId:f}=RP(BE),[m,g]=(0,e.useState)(0),[v,y]=(0,e.useState)(!1),[b,x]=(0,e.useState)(!1),[w,S]=(0,e.useState)(),[C,A]=(0,e.useState)([]),[k,T]=(0,e.useState)([]),{data:j=[],isLoading:E}=LP();var P=null===(n=j[m])||void 0===n?void 0:n.id;const{data:N=[],isLoading:D}=FP(P),{mutate:M,isLoading:_}=function(e,t){const n=Wj(),{id:r}=RP(Yp);return Qj((e=>rE(cE+"CreateUserClientAttribute",e)),{onSuccess:()=>{n.invalidateQueries({queryKey:["abacUserClientAttributesByClient",{userId:e}]}),n.invalidateQueries({queryKey:["abacAllUserClientAttributes",{userId:e}]}),n.invalidateQueries({queryKey:["abacUsersForClient",{id:null!==t&&void 0!==t?t:r}]})},mutationKey:["createUserClientAttribute"]})}(f,l),{data:I=[],isLoading:R}=function(e,t){return Gj(["abacUserClientAttributesByClient",{userId:e}],(async()=>(await nE(cE+"GetUserClientAttributesByClient/"+e+"/"+t)).data.map(WP)),{refetchOnWindowFocus:!1})}(f,null!==l&&void 0!==l?l:h),{mutate:O}=zP(f),L=I,F={title:`Unassigned ${null===(r=j[m])||void 0===r?void 0:r.name}  Permissions`,listItems:k,setListItems:T,listIsLoading:D,listHasAddItem:!1},B={title:`Assigned ${null===(a=j[m])||void 0===a?void 0:a.name}  Permissions`,listItems:C,setListItems:A,listIsLoading:R,listHasAddItem:!1},z=(0,e.useCallback)((function(e,t){if(!_){e.forEach((e=>{let n={appId:P,baseClientId:null!==l&&void 0!==l?l:h,userId:f,attributeId:e.id,isActive:t};M(n,{onError:()=>{y(!0)}})}));var n=L.filter((e=>e.attribute.appId===P)).filter((t=>!e.map((e=>e.id)).some((e=>t.attributeId===e))));n.forEach((e=>{O(e.id,{onError:()=>{y(!0)}})}))}}),[_,L,P,l,h,f,M,O]);return(0,e.useEffect)((()=>{if(!E){let e=[],t=[];!D&&N.length>0&&(t=N.map((e=>({item:e,label:e.name})))),R||(e=I.filter((e=>e.isActive&&e.attribute.appId===P)).map((e=>({item:e.attribute,label:e.attribute.name})))),t=t.filter((t=>!e.find((e=>e.item.id===t.item.id)))),T(t),A(e)}}),[N,D,P,m,j,E,I,R]),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsxs)(CN,{container:!0,spacing:2,children:[(0,Tl.jsx)(CN,{item:!0,container:!0,sm:12,children:E?(0,Tl.jsx)(Zz,{}):(0,Tl.jsx)(gJ,{title:"Select Application: ",currValue:j[m],items:j,property:"name",handleChange:e=>(e=>{z(C.map((e=>e.item)),!0),v||(S(j[m]),x(!0),setTimeout((()=>{x(!1)}),3e3));var t=j.findIndex((t=>t.id===e.id));g(t)})(e),error:null,multi:!1,emptyRow:!1})}),(0,Tl.jsx)(CN,{item:!0,sm:12,children:(0,Tl.jsx)(Vue,{rightPanel:F,leftPanel:B})})]}),(0,Tl.jsxs)(N4,{sx:{mt:"2%",pl:0,pr:0},children:[(0,Tl.jsxs)(mx,{sx:b?c.fadeIn:c.fadeOut,children:["Saved user's attributes for ",null===w||void 0===w?void 0:w.name]}),(0,Tl.jsx)(vW,{disabled:!!o&&!o.isValid,sx:{width:o?"15%":"45%"},variant:"contained",onClick:()=>(o&&o.handleSubmit(),0===L.length&&0===C.length&&z(k.map((e=>e.item)).slice(0,1),!1),z(C.map((e=>e.item)),!0),i?i():u(),void(v?d("Error updating permissions!"):o||p("Successfully updated permissions!"))),children:null!==s&&void 0!==s?s:"Finish"})]})]})}function Kde(){const{getters:{users:e,columns:t,usersLoading:n,createUserModalTitle:r,attributeAssignementModalTitle:a,formik:i,activeStep:o,steps:s},handlers:{handleCreateModalClose:l}}=Ude(),{isModalTypeOpen:c,openModal:u}=Cce(),{enableAbacApplicationManagement:d}=QT();return d&&(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsxs)(kce,{children:[(0,Tl.jsx)(oW,{pageTitle:"Users",customBreadcrumbs:[]}),(0,Tl.jsx)("h1",{className:"page-title",children:"Users"}),(0,Tl.jsx)(Bm,{sx:{mt:4,p:{xs:2,lg:4}},children:(0,Tl.jsxs)(Xm,{children:[(0,Tl.jsx)(Xm,{sx:{width:"100%",position:"relative"},children:(0,Tl.jsx)(vW,{variant:"contained",color:"primary",sx:{position:"absolute",right:"0px",top:"0px",left:{xs:"0px",sm:"unset"}},onClick:()=>u(),children:"Create New User"})}),(0,Tl.jsx)(Xm,{sx:{pt:{xs:"3rem",sm:"unset"}},children:(0,Tl.jsx)(GX,{columns:t,tableData:e,rowComponent:Vde,loading:n,hideSearch:!1,defaultSortIndex:0,setTableData:void 0,reverse:!1,customProps:void 0})})]})}),(0,Tl.jsxs)(Ice,{fullWidth:!0,maxWidth:"lg",open:c(AE.General),title:r,hasLoadingBar:!0,hasCloseButton:!1,isProcessing:!1,handleClose:l,children:[(0,Tl.jsx)(fde,{activeStep:o,sx:{mb:"5%"},children:s.map(((e,t)=>(0,Tl.jsx)(bde,{children:(0,Tl.jsx)(Fde,{children:e})},e)))}),0===o?(0,Tl.jsx)(Oce,{formik:i,isProcessing:!1,children:(0,Tl.jsx)($de,{})}):(0,Tl.jsx)(CN,{container:!0,spacing:2,children:(0,Tl.jsx)(CN,{item:!0,xs:12,children:(0,Tl.jsx)(Gde,{handleClose:l})})})]}),(0,Tl.jsx)(Ice,{fullWidth:!0,maxWidth:"lg",open:c(AE.AttributeAssignment),title:a,hasLoadingBar:!0,isProcessing:!1,children:(0,Tl.jsx)(CN,{container:!0,spacing:2,children:(0,Tl.jsx)(CN,{item:!0,xs:12,children:(0,Tl.jsx)(Gde,{})})})})]})})}function Yde(t){var n,r,a,i;const o=`Successfully updated ${t.firstName}'s information!`,{mutate:s,isLoading:l}=function(e){const t=Wj(),{id:n}=RP(Yp),{displayError:r}=OP();return Qj((e=>aE(uE+"UpdateUser",e)),{onSuccess:()=>{t.invalidateQueries({queryKey:["abacUsersForClient",{id:n}]}),t.invalidateQueries({queryKey:["abacUser",{id:e}]})},onError:e=>{var t,n;400===(null===(t=e.response)||void 0===t?void 0:t.status)?r(null===(n=e.response)||void 0===n?void 0:n.data):r("Error updating user information!")},mutationKey:["editUser"]})}(t.id),{mutate:c,isLoading:u}=Qj((e=>rE(uE+"ResetUserPassword/"+e)),{mutationKey:["resetUserPassword"]}),{displaySuccess:d,displayError:p}=OP(),[h,f]=(0,e.useState)(t.isActive),m=Qae().shape({firstName:Vae().trim().max(50,"First Name must be less than 50 characters").required("First Name is required"),lastName:Vae().trim().max(50,"Last Name must be less than 50 characters").required("Last Name is required"),emailAddress:Vae().trim().max(50,"Email Address must be less than 50 characters").required("Email Address is required"),phoneNumber:Vae().trim().max(50,"Phone Number must be less than 50 characters")}),g=fce({initialValues:{firstName:null!==(n=t.firstName)&&void 0!==n?n:"",lastName:null!==(r=t.lastName)&&void 0!==r?r:"",emailAddress:null!==(a=t.emailAddress)&&void 0!==a?a:"",phoneNumber:null!==(i=t.phoneNumber)&&void 0!==i?i:""},validationSchema:m,onSubmit:e=>{let n={id:t.id,firstName:e.firstName.trim(),lastName:e.lastName.trim(),emailAddress:e.emailAddress.trim(),phoneNumber:e.phoneNumber.trim(),isActive:h};y(n)}}),v=(0,e.useCallback)((function(){u||c(t.emailAddress,{onError:()=>{p("Error resetting password!")},onSuccess:()=>{d(`Reset email sent to ${t.emailAddress}!`)}})}),[t.emailAddress,p,d,u,c]),y=(0,e.useCallback)((function(e){l||s(e,{onSuccess:()=>{d(o)}})}),[l,s,p,d,o]);return{getters:{isActive:h,formik:g},setters:{setIsActive:f},handlers:{handleResetPassword:v}}}function Xde(e){let{currentUser:t,menuAnchorElement:n,isMenuOpen:r,handleMenuClose:a}=e;const{getters:{isActive:i,formik:o},setters:{setIsActive:s},handlers:{handleResetPassword:l}}=Yde(t);return(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsxs)("form",{onSubmit:o.handleSubmit,children:[!i&&(0,Tl.jsx)(fue,{sx:{mb:{xs:"8%",sm:"1%"}},severity:"error",children:"This User is currently deactivated. They will not have access to any NAS Applications until they are activated."}),(0,Tl.jsxs)(CN,{container:!0,spacing:2,children:[(0,Tl.jsx)(CN,{item:!0,xs:6,children:(0,Tl.jsx)(FU,{fullWidth:!0,sx:{mt:"2%"},name:"firstName",label:"First Name",placeholder:"Enter First Name",value:o.values.firstName,onChange:o.handleChange,error:Boolean(o.errors.firstName),helperText:o.errors.firstName||`${o.values.firstName.trim().length}/50`,required:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:6,children:(0,Tl.jsx)(FU,{fullWidth:!0,sx:{mt:"2%"},name:"lastName",label:"Last Name",placeholder:"Enter Last Name",value:o.values.lastName,onChange:o.handleChange,error:Boolean(o.errors.lastName),helperText:o.errors.lastName||`${o.values.lastName.trim().length}/50`,required:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:6,children:(0,Tl.jsx)(FU,{fullWidth:!0,sx:{mt:"2%"},name:"emailAddress",label:"Email Address",placeholder:"Enter Email Address",value:o.values.emailAddress,onChange:o.handleChange,error:Boolean(o.errors.emailAddress),helperText:o.errors.emailAddress||`${o.values.emailAddress.trim().length}/50`,required:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:6,children:(0,Tl.jsx)(FU,{fullWidth:!0,sx:{mt:"2%"},name:"phoneNumber",label:"Phone Number",placeholder:"Enter Phone Number",value:o.values.phoneNumber,onChange:o.handleChange,error:Boolean(o.errors.phoneNumber),helperText:o.errors.phoneNumber||`${o.values.phoneNumber.trim().length}/50`})}),(0,Tl.jsxs)(CN,{item:!0,xs:12,children:[(0,Tl.jsx)(sC,{}),(0,Tl.jsxs)(Xm,{sx:{mt:"2%"},children:[(0,Tl.jsx)("h3",{children:"Assign App Permissions:"}),(0,Tl.jsx)(Gde,{formik:o,submitText:"Save changes"})]})]})]})]}),(0,Tl.jsxs)(OD,{PaperProps:{elevation:0,sx:{overflow:"visible",filter:"drop-shadow(0px 2px 8px rgba(0,0,0,0.32))",mt:1.5,"&:before":{content:'""',display:"block",position:"absolute",top:0,right:125,width:10,height:10,bgcolor:"background.paper",transform:"translateY(-50%) rotate(45deg)",zIndex:0}}},anchorEl:n,open:r,onClose:a,children:[(0,Tl.jsx)(lx,{onClick:()=>{l(),a()},children:"Reset Password"}),(0,Tl.jsx)(lx,{onClick:()=>{s(!i),a()},children:i?"Deactivate User":"Activate User"}),(0,Tl.jsx)(lx,{disabled:!0,children:"Delete User"})]})]})}const Zde=bm([(0,Tl.jsx)("circle",{cx:"10",cy:"8",r:"4"},"0"),(0,Tl.jsx)("path",{d:"M10.67 13.02c-.22-.01-.44-.02-.67-.02-2.42 0-4.68.67-6.61 1.82-.88.52-1.39 1.5-1.39 2.53V20h9.26c-.79-1.13-1.26-2.51-1.26-4 0-1.07.25-2.07.67-2.98M20.75 16c0-.22-.03-.42-.06-.63l1.14-1.01-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L18 11h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1.01c-.03.21-.06.41-.06.63s.03.42.06.63l-1.14 1.01 1 1.73 1.45-.49c.32.27.68.48 1.08.63L16 21h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1.01c.03-.21.06-.41.06-.63M17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},"1")],"ManageAccounts");function Jde(){const{id:t}=Vu(),{data:n,isLoading:r}=VP(t),[a,i]=(0,e.useState)(null),o=Boolean(a),s=e=>{i(e.currentTarget)},l=()=>{i(null)},{enableAbacApplicationManagement:c}=QT();if(!c)return null;if(r)return(0,Tl.jsx)(kce,{children:(0,Tl.jsx)("p",{children:"Loading..."})});if(!r&&n){const e=[{breadCrumbName:"Users",route:"abacUsers"}];return(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsxs)(kce,{children:[(0,Tl.jsx)(oW,{pageTitle:n.firstName+" "+n.lastName,customBreadcrumbs:e}),(0,Tl.jsxs)("h1",{className:"page-title",children:["Manage ",n.firstName+" "+n.lastName,(0,Tl.jsx)(FS,{title:"Admin Actions",children:(0,Tl.jsx)(hm,{sx:{ml:"2%",border:"2px solid rgba(0,0,0,0.3)"},onClick:s,children:(0,Tl.jsx)(Zde,{})})})]}),(0,Tl.jsx)(Bm,{sx:{mt:4,p:{xs:2,lg:4}},children:(0,Tl.jsx)(Xde,{currentUser:n,menuAnchorElement:a,isMenuOpen:o,handleMenuClose:l})})]})})}}function Qde(){const{data:e=[],isLoading:t}=Gj(["abacUsers"],(async()=>(await nE(uE+"GetAllUsers")).data.map(WP))),{getters:{formik:n,activeStep:r,steps:a},handlers:{handleCreateModalClose:i}}=Wde({isAdminCreation:!0});return{getters:{users:e,columns:[{label:"First Name",propName:"firstName"},{label:"Last Name",propName:"lastName"},{label:"Email",propName:"emailAddress"},{label:"Date Created",propName:"createdDate"},{label:"Is Active",propName:"isActive"}],usersLoading:t,createUserModalTitle:"Create New User",attributeAssignementModalTitle:"Attribute Assignment",formik:n,activeStep:r,steps:a},handlers:{handleCreateModalClose:i}}}const epe={rowCell:{cursor:"pointer !important",backgroundColor:"white",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"},textAlign:"right"},itemIcon:{cursor:"grab"},tableCell:{color:"primary.copy"}};function tpe(e){let{element:t,columns:n}=e;var r=Bu();const a=Mc();return(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsx)(FW,{hover:!0,sx:epe.rowCell,onClick:()=>{a(LE(t.id)),r.push("/adminUserManagement/"+t.id)},children:n.map(((e,n)=>{let r=t[e.propName];return r instanceof Date&&(r=r.toLocaleDateString("en-US")),(0,Tl.jsx)(HW,{align:"left",sx:epe.tableCell,children:"isActive"===e.propName?t.isActive?(0,Tl.jsx)(Tce,{sx:{ml:"10%",color:"primary.main"}}):(0,Tl.jsx)(jce,{sx:{ml:"10%",color:"secondary.main"}}):r},n)}))},t.id)})}function npe(){const{modalStatus:e,openModal:t}=Cce(),{getters:{users:n,columns:r,usersLoading:a,createUserModalTitle:i,formik:o},handlers:{handleCreateModalClose:s}}=Qde(),{enableAbacApplicationManagement:l}=QT();return l&&(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsxs)(kce,{children:[(0,Tl.jsx)(oW,{pageTitle:"Cross Client Users",customBreadcrumbs:[]}),(0,Tl.jsx)("h1",{className:"admin-page-title",children:"Cross Client User Management"}),(0,Tl.jsxs)(Bm,{sx:{mt:4,p:{xs:2,lg:4}},children:[(0,Tl.jsx)(Xm,{children:(0,Tl.jsx)(Xm,{sx:{width:"100%",position:"relative"},children:(0,Tl.jsx)(vW,{variant:"contained",color:"primary",sx:{position:"absolute",right:"0px",top:"0px",left:{xs:"0px",sm:"unset"}},onClick:()=>t(),children:"Create New User"})})}),(0,Tl.jsx)(Xm,{sx:{pt:{xs:"3rem",sm:"unset"}},children:(0,Tl.jsx)(GX,{columns:r,tableData:n,rowComponent:tpe,loading:a,hideSearch:!1,defaultSortIndex:0,setTableData:void 0,reverse:!1,customProps:void 0})})]}),(0,Tl.jsx)(Ice,{fullWidth:!0,maxWidth:"lg",open:!0===e.open,title:i,hasLoadingBar:!0,hasCloseButton:!1,isProcessing:!1,handleClose:s,children:(0,Tl.jsx)(Oce,{formik:o,isProcessing:!1,children:(0,Tl.jsx)($de,{})})})]})})}const rpe={rowCell:{backgroundColor:"white",textDecoration:"none","&:hover":{background:"rgba(0,0,0,.2) !important"},textAlign:"right"},itemIcon:{cursor:"grab"},tableCell:{color:"primary.copy",position:"relative",padding:"20px"}};function ape(e){let{element:t,columns:n}=e;var r="Assign Permissions for "+t.clientName;const a=Mc(),{openModal:i}=Cce();return(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsx)(FW,{hover:!0,sx:rpe.rowCell,children:n.map(((e,n)=>{let o=t[e.propName];return o instanceof Date&&(o=o.toLocaleDateString("en-US")),(0,Tl.jsx)(HW,{align:"left",sx:rpe.tableCell,children:""===e.label?(0,Tl.jsx)(FS,{title:r,children:(0,Tl.jsx)(hm,{sx:{position:"absolute",right:"40px",top:"10px",border:"2px solid rgba(0,0,0,0.3)"},onClick:e=>{null===e||void 0===e||e.stopPropagation(),a(UE({adminClient:t})),i({open:!0,type:AE.AttributeAssignment})},children:(0,Tl.jsx)(Bde,{})})}):o},n)}))},t.id)})}function ipe(e){return Gj(["clients"],(async()=>{const e=await async function(e){let t=OC.REACT_APP_CLIENTSERVICE_API;const n=tl().get(`${t}/${e}`).catch((e=>{throw new Error(e.message)})).then((e=>e));return await n}("GetClients");return e.data.map(ope)}),{select:e})}function ope(e){return{...e,dateCreated:new Date(e.dateCreated),dateLastUpdated:new Date(e.dateLastUpdated)}}function spe(){var e=Oc(IE);const{currentUserId:t}=RP(BE);var n=Mc();const{data:r=[]}=BP(t),{data:a=[],isLoading:i}=(o=r,ipe((e=>e.filter((e=>!o.includes(e.id))))));var o;const{data:s=[],isLoading:l}=(e=>ipe((t=>t.filter((t=>e.includes(t.id))))))(r),c={groupLabel:"ABAC Application Actions",id:"abac-app-tabs",currentTabState:"Assigned Clients"!==e.currentTab&&"Unassigned Clients"!==e.currentTab?"Assigned Clients":e.currentTab,changeTabState:e=>{n(ME(e))},tabs:[{label:"Assigned Clients",TabComponent:(0,Tl.jsx)(lpe,{assignedClients:s,assignedLoading:l})},{label:"Unassigned Clients",TabComponent:(0,Tl.jsx)(cpe,{unassignedClients:a,unassignedLoading:i})}]};return(0,Tl.jsx)(vue,{config:c})}function lpe(e){let{assignedClients:t,assignedLoading:n}=e;return(0,Tl.jsx)(CN,{item:!0,xs:12,children:(0,Tl.jsx)(Xm,{sx:{height:"45vh"},children:(0,Tl.jsx)(GX,{columns:[{label:"Client Name",propName:"clientName"},{label:"",propName:""}],tableData:t,rowComponent:ape,loading:n,hideSearch:!1,defaultSortIndex:0,setTableData:void 0,reverse:!1,customProps:void 0,pagination:{enabled:!0,rowsPerPage:[10,20,50]}})})})}function cpe(e){let{unassignedClients:t,unassignedLoading:n}=e;return(0,Tl.jsx)(CN,{item:!0,xs:12,children:(0,Tl.jsx)(Xm,{sx:{height:"45vh"},children:(0,Tl.jsx)(GX,{columns:[{label:"Client Name",propName:"clientName"},{label:"",propName:""}],tableData:t,rowComponent:ape,loading:n,hideSearch:!1,defaultSortIndex:0,setTableData:void 0,reverse:!1,customProps:void 0,pagination:{enabled:!0,rowsPerPage:[10,20,50]}})})})}function upe(e){let{currentUser:t,menuAnchorElement:n,isMenuOpen:r,handleMenuClose:a}=e;const{getters:{isActive:i,formik:o},setters:{setIsActive:s},handlers:{handleResetPassword:l}}=Yde(t);return(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsxs)("form",{onSubmit:o.handleSubmit,children:[!i&&(0,Tl.jsx)(fue,{sx:{mb:{xs:"8%",sm:"1%"}},severity:"error",children:"This User is currently deactivated. They will not have access to any NAS Applications until they are activated."}),(0,Tl.jsxs)(CN,{container:!0,spacing:2,children:[(0,Tl.jsx)(CN,{item:!0,xs:6,children:(0,Tl.jsx)(FU,{fullWidth:!0,sx:{mt:"2%"},name:"firstName",label:"First Name",placeholder:"Enter First Name",value:o.values.firstName,onChange:o.handleChange,error:Boolean(o.errors.firstName),helperText:o.errors.firstName||`${o.values.firstName.trim().length}/50`,required:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:6,children:(0,Tl.jsx)(FU,{fullWidth:!0,sx:{mt:"2%"},name:"lastName",label:"Last Name",placeholder:"Enter Last Name",value:o.values.lastName,onChange:o.handleChange,error:Boolean(o.errors.lastName),helperText:o.errors.lastName||`${o.values.lastName.trim().length}/50`,required:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:6,children:(0,Tl.jsx)(FU,{fullWidth:!0,sx:{mt:"2%"},name:"emailAddress",label:"Email Address",placeholder:"Enter Email Address",value:o.values.emailAddress,onChange:o.handleChange,error:Boolean(o.errors.emailAddress),helperText:o.errors.emailAddress||`${o.values.emailAddress.trim().length}/50`,required:!0})}),(0,Tl.jsx)(CN,{item:!0,xs:6,children:(0,Tl.jsx)(FU,{fullWidth:!0,sx:{mt:"2%"},name:"phoneNumber",label:"Phone Number",placeholder:"Enter Phone Number",value:o.values.phoneNumber,onChange:o.handleChange,error:Boolean(o.errors.phoneNumber),helperText:o.errors.phoneNumber||`${o.values.phoneNumber.trim().length}/50`})}),(0,Tl.jsxs)(CN,{item:!0,xs:12,children:[(0,Tl.jsx)(sC,{}),(0,Tl.jsxs)(Xm,{sx:{mt:"2%",mb:"5vh"},children:[(0,Tl.jsx)("h3",{children:"Client Permissions:"}),(0,Tl.jsx)(spe,{})]})]})]}),(0,Tl.jsx)(CN,{container:!0,item:!0,justifyContent:"flex-end",xs:12,sx:{mt:"5%"},children:(0,Tl.jsx)(vW,{sx:{width:{xs:"100%",sm:"25%"}},variant:"contained",type:"submit",disabled:!o.isValid,children:"Save Changes"})})]}),(0,Tl.jsxs)(OD,{PaperProps:{elevation:0,sx:{overflow:"visible",filter:"drop-shadow(0px 2px 8px rgba(0,0,0,0.32))",mt:1.5,"&:before":{content:'""',display:"block",position:"absolute",top:0,right:125,width:10,height:10,bgcolor:"background.paper",transform:"translateY(-50%) rotate(45deg)",zIndex:0}}},anchorEl:n,open:r,onClose:a,children:[(0,Tl.jsx)(lx,{onClick:()=>{l(),a()},children:"Reset Password"}),(0,Tl.jsx)(lx,{onClick:()=>{s(!i),a()},children:i?"Deactivate User":"Activate User"}),(0,Tl.jsx)(lx,{disabled:!0,children:"Delete User"})]})]})}function dpe(){const{id:t}=Vu(),{data:n,isLoading:r}=VP(t),{adminClient:a}=RP(HE),[i,o]=(0,e.useState)(null),s=Boolean(i),{isModalTypeOpen:l}=Cce(),c=e=>{o(e.currentTarget)},u=()=>{o(null)},{enableAbacApplicationManagement:d}=QT();if(!d)return null;if(r)return(0,Tl.jsx)(kce,{children:(0,Tl.jsx)("p",{children:"Loading..."})});if(!r&&n){const e=[{breadCrumbName:"Cross Client Users",route:"adminUserManagement"}];return(0,Tl.jsx)(Tl.Fragment,{children:(0,Tl.jsxs)(kce,{children:[(0,Tl.jsx)(oW,{pageTitle:n.firstName+" "+n.lastName,customBreadcrumbs:e}),(0,Tl.jsxs)("h1",{className:"admin-page-title",children:["Manage ",n.firstName+" "+n.lastName,(0,Tl.jsx)(FS,{title:"Admin Actions",children:(0,Tl.jsx)(hm,{sx:{ml:"2%",border:"2px solid rgba(0,0,0,0.3)"},onClick:c,children:(0,Tl.jsx)(Zde,{})})})]}),(0,Tl.jsx)(Bm,{sx:{mt:4,p:{xs:2,lg:4}},children:(0,Tl.jsx)(upe,{currentUser:n,menuAnchorElement:i,isMenuOpen:s,handleMenuClose:u})}),(0,Tl.jsx)(Ice,{fullWidth:!0,maxWidth:"lg",open:l(AE.AttributeAssignment),title:`Assign Permissions For ${a.clientName}`,hasLoadingBar:!0,isProcessing:!1,children:(0,Tl.jsx)(CN,{container:!0,spacing:2,children:(0,Tl.jsx)(CN,{item:!0,xs:12,children:(0,Tl.jsx)(Gde,{clientId:a.id})})})})]})})}}const ppe=function(){const{isLoading:t,loginWithRedirect:r,isAuthenticated:a,error:i,user:o,getAccessTokenSilently:s}=Qs();Fce(o),Hue();const l=Mc(),c=Oc(Yp),u=Oc(qC),d=Oc(VC);tl().defaults.headers.common.client=c.id;const{enableAbacApplicationManagement:p}=QT(),h=e=>{tl().defaults.headers.common.baseClientId=e.id,e.hasCareers?LC().then((t=>{tl().defaults.headers.common.careersClientId=t.id,l(Gp(e)),l($C(t))})):(l(Gp(e)),l(HC()))};return(0,e.useEffect)((()=>{tl().defaults.headers.common.baseClientId=c.id,tl().defaults.headers.common.ClientAppId="60A7A73A-31C1-4548-B0F4-BF7FBDC3303F",null!==u&&(tl().defaults.headers.common.careersClientId=u.id)}),[u,c.id]),(0,e.useEffect)((()=>{void 0!==(null===o||void 0===o?void 0:o.email)&&tl().interceptors.request.use((async function(e){return e.headers.user=o.email,e}))}),[o]),(0,e.useEffect)((()=>{const e=document.createElement("script");return e.src=`https://www.bing.com/api/maps/mapcontrol?callback=GetMap&key=${OC.REACT_APP_BING_MAP_KEY}`,e.async=!0,document.body.appendChild(e),()=>{document.body.removeChild(e)}}),[]),t?(0,Tl.jsx)("div",{children:"loading..."}):i?(0,Tl.jsxs)("div",{children:["Oops... ",i.message]}):a?(tl().interceptors.request.use((async function(e){var t=await s();return e.headers.Authorization=`Bearer ${t}`,e})),l(YC(o)),async function(){if(0===d.length)try{const t=n(6382).hp,r=await(e=o["http://nasrecruitment.io/activateId"],tl().get(`${OC.REACT_APP_ADMIN_API}/api/user/getuserbaseclientaccess/${e}`,{headers:{"Content-Type":"application/json"}}).then((e=>e.data))),a=JSON.parse(t.from(r,"base64").toString("ascii"));if(!Array.isArray(a))throw new Error("Invalid rolesObject format, expected an array.");l(Jp(a));const i=await tl().get(OC.REACT_APP_CLIENTSERVICE_API+"/GetClients",{headers:{"Content-Type":"application/json"}}).then((e=>e.data)),s=new Set(a.map((e=>e.BaseClientID))),u=i.filter((e=>s.has(e.id)));u.sort(((e,t)=>kU(e.clientName,t.clientName))),l(BC(u)),(null==c.id||u.filter((e=>e.id===c.id)).length<=0)&&h(u[0])}catch(i){console.error("Error in getClients:",i)}var e}(),(0,Tl.jsxs)(Tl.Fragment,{children:[(0,Tl.jsx)(xl.A,{injectFirst:!0,children:(0,Tl.jsx)(Ul,{theme:Cx,children:(0,Tl.jsxs)(rh,{children:[(0,Tl.jsx)(uN,{}),(0,Tl.jsxs)(Lu,{children:[(0,Tl.jsx)(Du,{path:"/",exact:!0,component:zV}),(0,Tl.jsx)(nh,{path:"/featuredgroups",exact:!0,component:DY,routeType:gl,requiredPermissions:nN}),(0,Tl.jsx)(nh,{path:"/featuredgroups/featuredgroupsdetailed",exact:!0,component:pX,routeType:gl,requiredPermissions:nN}),(0,Tl.jsx)(nh,{path:"/featuredevents",exact:!0,component:zZ,routeType:gl,requiredPermissions:JP}),(0,Tl.jsx)(nh,{path:"/featuredjobs",exact:!0,component:HZ,routeType:gl,requiredPermissions:nN}),(0,Tl.jsx)(nh,{path:"/eventsponsors",exact:!0,component:JZ,routeType:gl,requiredPermissions:tN}),(0,Tl.jsx)(nh,{path:"/eventsponsors/eventsponsordetailed",exact:!0,component:QZ,routeType:gl,requiredPermissions:tN}),(0,Tl.jsx)(nh,{path:"/jobgroups",exact:!0,component:oJ,routeType:gl,requiredPermissions:ZP}),(0,Tl.jsx)(nh,{path:"/eventvenues",exact:!0,component:DJ,routeType:gl,requiredPermissions:eN}),(0,Tl.jsx)(nh,{path:"/eventvenues/eventvenuedetailed",exact:!0,component:MJ,routeType:gl,requiredPermissions:eN}),(0,Tl.jsx)(nh,{path:"/jobgroups/jobgroupdetailed",exact:!0,component:sJ,routeType:gl,requiredPermissions:ZP}),(0,Tl.jsx)(nh,{path:"/locations/locationdetailed",exact:!0,component:Cre,routeType:gl,requiredPermissions:iN}),(0,Tl.jsx)(nh,{path:"/emailapplylink",exact:!0,component:cJ,routeType:gl,requiredPermissions:ZP}),(0,Tl.jsx)(nh,{path:"/trackingpixels",exact:!0,component:bJ,routeType:fl,requiredPermissions:il}),(0,Tl.jsx)(nh,{path:"/trackingpixels/trackingpixeldetailed",exact:!0,component:xJ,routeType:fl,requiredPermissions:il}),(0,Tl.jsx)(nh,{path:"/externalaccounts",exact:!0,component:kJ,routeType:fl,requiredPermissions:il}),(0,Tl.jsx)(nh,{path:"/eventtypes",exact:!0,component:zJ,routeType:gl,requiredPermissions:QP}),(0,Tl.jsx)(nh,{path:"/mastercache",exact:!0,component:WJ,routeType:gl,requiredPermissions:ZP}),(0,Tl.jsx)(nh,{path:"/eventsearch",exact:!0,component:$J,routeType:gl,requiredPermissions:ZP}),(0,Tl.jsx)(nh,{path:"/customradius",exact:!0,component:YJ,routeType:gl,requiredPermissions:ZP}),(0,Tl.jsx)(nh,{path:"/events",exact:!0,component:H7,routeType:gl,requiredPermissions:JP}),(0,Tl.jsx)(nh,{path:"/events/eventdetailed",exact:!0,component:Z7,routeType:gl,requiredPermissions:JP}),(0,Tl.jsx)(nh,{path:"/prefilteredlinks",exact:!0,component:nee,routeType:gl,requiredPermissions:rN}),(0,Tl.jsx)(nh,{path:"/banner",exact:!0,component:zte,routeType:fl,requiredPermissions:il}),(0,Tl.jsx)(nh,{path:"/mapconfiguration",exact:!0,component:Wte,routeType:gl,requiredPermissions:ZP}),(0,Tl.jsx)(nh,{path:"/ancillary",exact:!0,component:$te,routeType:gl,requiredPermissions:ZP}),(0,Tl.jsx)(nh,{path:"/jobalertsreport",exact:!0,component:yne,routeType:gl,requiredPermissions:aN,componentProps:{optIn:!1}}),(0,Tl.jsx)(nh,{path:"/marketreport",exact:!0,component:yne,routeType:gl,requiredPermissions:aN,componentProps:{optIn:!0}}),(0,Tl.jsx)(nh,{path:"/marketreport/reportuser",exact:!0,component:Hte,routeType:gl,requiredPermissions:aN}),(0,Tl.jsx)(Du,{path:"/profile",exact:!0,component:xne}),(0,Tl.jsx)(nh,{path:"/display",exact:!0,component:Hne,routeType:gl,requiredPermissions:ZP}),(0,Tl.jsx)(nh,{path:"/forms",exact:!0,component:sre,routeType:gl,requiredPermissions:ZP}),(0,Tl.jsx)(nh,{path:"/results",exact:!0,component:pre,routeType:gl,requiredPermissions:ZP}),(0,Tl.jsx)(nh,{path:"/locations",exact:!0,component:Sre,routeType:gl,requiredPermissions:iN}),(0,Tl.jsx)(nh,{path:"/users",exact:!0,component:Ure,routeType:yl,requiredPermissions:XP}),(0,Tl.jsx)(nh,{path:"/users/usersdetailed",exact:!0,component:$re,routeType:yl,requiredPermissions:XP}),(0,Tl.jsx)(nh,{path:"/abac",exact:!0,component:Lce,routeType:fl,requiredPermissions:il}),(0,Tl.jsx)(Du,{path:"/abac/:id",exact:!0,component:Due}),(0,Tl.jsx)(Du,{path:"/abac/:appId/feature/:featureId",exact:!0,component:Uue}),(0,Tl.jsx)(Du,{path:"/abac/:appId/attribute/:attributeId",exact:!0,component:Jue}),(0,Tl.jsx)(Du,{path:"/abacUsers",exact:!0,component:Kde}),(0,Tl.jsx)(Du,{path:"/abacUsers/:id",exact:!0,component:Jde}),(0,Tl.jsxs)(Ul,{theme:Sx,children:[(0,Tl.jsx)(Du,{path:"/adminUserManagement",exact:!0,component:npe}),(0,Tl.jsx)(Du,{path:"/adminUserManagement/:id",exact:!0,component:dpe})]})]})]})})}),(0,Tl.jsx)(mue,{})]})):void r()},hpe=e=>{e&&e instanceof Function&&n.e(453).then(n.bind(n,6453)).then((t=>{let{getCLS:n,getFID:r,getFCP:a,getLCP:i,getTTFB:o}=t;n(e),r(e),a(e),i(e),o(e)}))};function fpe(e){return fpe="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},fpe(e)}function mpe(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,r.key,r)}}function gpe(e){return gpe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},gpe(e)}function vpe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ype(e,t){return ype=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ype(e,t)}function bpe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xpe=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=function(e,t){return!t||"object"!==fpe(t)&&"function"!==typeof t?vpe(e):t}(this,(e=gpe(t)).call.apply(e,[this].concat(a))),bpe(vpe(n),"state",{bootstrapped:!1}),bpe(vpe(n),"_unsubscribe",void 0),bpe(vpe(n),"handlePersistorState",(function(){n.props.persistor.getState().bootstrapped&&(n.props.onBeforeLift?Promise.resolve(n.props.onBeforeLift()).finally((function(){return n.setState({bootstrapped:!0})})):n.setState({bootstrapped:!0}),n._unsubscribe&&n._unsubscribe())})),n}var n,r,a;return 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}}),t&&ype(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return"function"===typeof this.props.children?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}])&&mpe(n.prototype,r),a&&mpe(n,a),t}(e.PureComponent);bpe(xpe,"defaultProps",{children:null,loading:null});class wpe extends Yj{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||Kj,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"===typeof e.initialData?e.initialData():e.initialData,n="undefined"!==typeof t,r=n?"function"===typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=xj(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(tj).catch(tj):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((e=>e.getCurrentResult().isStale))}isStaleByTime(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.state.isInvalidated||!this.state.dataUpdatedAt||!rj(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var a;return null==(a=this.retryer)||a.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const i=function(){if("function"===typeof AbortController)return new AbortController}(),o={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(i)return this.abortSignalConsumed=!0,i.signal}})};s(o);const l={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(o)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var c;(s(l),null==(n=this.options.behavior)||n.onFetch(l),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=l.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(c=l.fetchOptions)?void 0:c.meta});const u=e=>{var t,n,r,a;(Pj(e)&&e.silent||this.dispatch({type:"error",error:e}),Pj(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(a=this.cache.config).onSettled)||r.call(a,this.state.data,e,this));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Nj({fn:l.fetchFn,abort:null==i?void 0:i.abort.bind(i),onSuccess:e=>{var t,n,r,a;"undefined"!==typeof e?(this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(a=this.cache.config).onSettled)||r.call(a,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):u(new Error(this.queryHash+" data is undefined"))},onError:u,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:jj(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=e.error;return Pj(a)&&a.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:a,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),wj.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}class Spe extends Sj{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;const a=t.queryKey,i=null!=(r=t.queryHash)?r:lj(a,t);let o=this.get(i);return o||(o=new wpe({cache:this,logger:e.getLogger(),queryKey:a,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(o)),o}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((t=>t!==e)),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){wj.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=ij(e,t);return"undefined"===typeof n.exact&&(n.exact=!0),this.queries.find((e=>oj(n,e)))}findAll(e,t){const[n]=ij(e,t);return Object.keys(n).length>0?this.queries.filter((e=>oj(n,e))):this.queries}notify(e){wj.batch((()=>{this.listeners.forEach((t=>{let{listener:n}=t;n(e)}))}))}onFocus(){wj.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){wj.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}class Cpe extends Sj{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new Xj({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){wj.batch((()=>{this.mutations.forEach((e=>{this.remove(e)}))}))}getAll(){return this.mutations}find(e){return"undefined"===typeof e.exact&&(e.exact=!0),this.mutations.find((t=>sj(e,t)))}findAll(e){return this.mutations.filter((t=>sj(e,t)))}notify(e){wj.batch((()=>{this.listeners.forEach((t=>{let{listener:n}=t;n(e)}))}))}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then((()=>{const e=this.mutations.filter((e=>e.state.isPaused));return wj.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(tj)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}function Ape(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,a,i,o;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,l=null==(r=e.fetchOptions)||null==(a=r.meta)?void 0:a.fetchMore,c=null==l?void 0:l.pageParam,u="forward"===(null==l?void 0:l.direction),d="backward"===(null==l?void 0:l.direction),p=(null==(i=e.state.data)?void 0:i.pages)||[],h=(null==(o=e.state.data)?void 0:o.pageParams)||[];let f=h,m=!1;const g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),v=(e,t,n,r)=>(f=r?[t,...f]:[...f,t],r?[n,...e]:[...e,n]),y=(t,n,r,a)=>{if(m)return Promise.reject("Cancelled");if("undefined"===typeof r&&!n&&t.length)return Promise.resolve(t);const i={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};(t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?m=!0:null==(n=e.signal)||n.addEventListener("abort",(()=>{m=!0})),e.signal}})})(i);const o=g(i);return Promise.resolve(o).then((e=>v(t,r,e,a)))};let b;if(p.length)if(u){const t="undefined"!==typeof c,n=t?c:kpe(e.options,p);b=y(p,t,n)}else if(d){const t="undefined"!==typeof c,n=t?c:Tpe(e.options,p);b=y(p,t,n,!0)}else{f=[];const t="undefined"===typeof e.options.getNextPageParam;b=!s||!p[0]||s(p[0],0,p)?y([],t,h[0]):Promise.resolve(v([],h[0],p[0]));for(let n=1;n<p.length;n++)b=b.then((r=>{if(!s||!p[n]||s(p[n],n,p)){const a=t?h[n]:kpe(e.options,r);return y(r,t,a)}return Promise.resolve(v(r,h[n],p[n]))}))}else b=y([]);return b.then((e=>({pages:e,pageParams:f})))}}}}function kpe(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function Tpe(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}const jpe=function(){return null},Epe=new class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.queryCache=e.queryCache||new Spe,this.mutationCache=e.mutationCache||new Cpe,this.logger=e.logger||Kj,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=Cj.subscribe((()=>{Cj.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=kj.subscribe((()=>{kj.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=ij(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const r=aj(e,t,n),a=this.getQueryData(r.queryKey);return a?Promise.resolve(a):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map((e=>{let{queryKey:t,state:n}=e;return[t,n.data]}))}setQueryData(e,t,n){const r=this.queryCache.find(e),a=function(e,t){return"function"===typeof e?e(t):e}(t,null==r?void 0:r.state.data);if("undefined"===typeof a)return;const i=aj(e),o=this.defaultQueryOptions(i);return this.queryCache.build(this,o).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return wj.batch((()=>this.getQueryCache().findAll(e).map((e=>{let{queryKey:r}=e;return[r,this.setQueryData(r,t,n)]}))))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=ij(e,t),r=this.queryCache;wj.batch((()=>{r.findAll(n).forEach((e=>{r.remove(e)}))}))}resetQueries(e,t,n){const[r,a]=ij(e,t,n),i=this.queryCache,o={type:"active",...r};return wj.batch((()=>(i.findAll(r).forEach((e=>{e.reset()})),this.refetchQueries(o,a))))}cancelQueries(e,t,n){const[r,a={}]=ij(e,t,n);"undefined"===typeof a.revert&&(a.revert=!0);const i=wj.batch((()=>this.queryCache.findAll(r).map((e=>e.cancel(a)))));return Promise.all(i).then(tj).catch(tj)}invalidateQueries(e,t,n){const[r,a]=ij(e,t,n);return wj.batch((()=>{var e,t;if(this.queryCache.findAll(r).forEach((e=>{e.invalidate()})),"none"===r.refetchType)return Promise.resolve();const n={...r,type:null!=(e=null!=(t=r.refetchType)?t:r.type)?e:"active"};return this.refetchQueries(n,a)}))}refetchQueries(e,t,n){const[r,a]=ij(e,t,n),i=wj.batch((()=>this.queryCache.findAll(r).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...a,cancelRefetch:null==(t=null==a?void 0:a.cancelRefetch)||t,meta:{refetchPage:r.refetchPage}})}))));let o=Promise.all(i).then(tj);return null!=a&&a.throwOnError||(o=o.catch(tj)),o}fetchQuery(e,t,n){const r=aj(e,t,n),a=this.defaultQueryOptions(r);"undefined"===typeof a.retry&&(a.retry=!1);const i=this.queryCache.build(this,a);return i.isStaleByTime(a.staleTime)?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(tj).catch(tj)}fetchInfiniteQuery(e,t,n){const r=aj(e,t,n);return r.behavior=Ape(),this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(tj).catch(tj)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find((t=>cj(e)===cj(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>uj(e,t.queryKey)));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find((t=>cj(e)===cj(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>uj(e,t.mutationKey)));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=lj(t.queryKey,t)),"undefined"===typeof t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),"undefined"===typeof t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}({defaultOptions:{queries:{staleTime:5e3}}});function Ppe(e){let{children:t}=e;return(0,Tl.jsxs)(Uj,{client:Epe,children:[t,(0,Tl.jsx)(jpe,{initialIsOpen:!1})]})}const Npe=function(t){return function(n){const{reactOptions:r}=t,a=JT(JT({},ST),r),i=(o=JT({},t),qT(o,GT({reactOptions:a})));var o;function s(t){return e.createElement($T,JT({},i),e.createElement(n,JT({},t)))}return Jl()(s,n),s}}({clientSideID:OC.REACT_APP_LAUNCH_DARKLY_CLIENTID,options:{streaming:!0}})((function(){return(0,Tl.jsx)(Js,{domain:OC.REACT_APP_AUTH0_DOMAIN,clientId:OC.REACT_APP_AUTH0_CLIENTID,redirectUri:window.location.origin,audience:OC.REACT_APP_AUTH0_AUDIENCE,cacheLocation:window.parent.Cypress?"localstorage":"memory",children:(0,Tl.jsx)(xl.A,{injectFirst:!0,children:(0,Tl.jsx)(Xl,{store:_P,children:(0,Tl.jsx)(Ppe,{children:(0,Tl.jsx)(xpe,{loading:null,persistor:IP,children:(0,Tl.jsx)(ppe,{})})})})})})}));r.render((0,Tl.jsx)(Npe,{}),document.getElementById("root")),hpe()})()})();
//# sourceMappingURL=main.75ae29a5.js.map