"use strict";(self.webpackChunkreally_simple_ssl=self.webpackChunkreally_simple_ssl||[]).push([[964],{9964:(e,t,n)=>{n.r(t),n.d(t,{createFilterOptions:()=>ft,default:()=>xt});var o=n(5987),r=n(4942),i=n(7462),a=n(9196),l=n.n(a),c=n(6010),s=n(4670),u="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,p=function(){for(var e=["Edge","Trident","Firefox"],t=0;t=0)return 1;return 0}(),d=u&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),p))}};function f(e){return e&&"[object Function]"==={}.toString.call(e)}function m(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function h(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function g(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=m(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+o)?e:g(h(e))}function v(e){return e&&e.referenceNode?e.referenceNode:e}var b=u&&!(!window.MSInputMethodContext||!document.documentMode),y=u&&/MSIE 10/.test(navigator.userAgent);function x(e){return 11===e?b:10===e?y:b||y}function w(e){if(!e)return document.documentElement;for(var t=x(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===m(n,"position")?w(n):n:e?e.ownerDocument.documentElement:document.documentElement}function E(e){return null!==e.parentNode?E(e.parentNode):e}function C(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?e:t,r=n?t:e,i=document.createRange();i.setStart(o,0),i.setEnd(r,0);var a,l,c=i.commonAncestorContainer;if(e!==c&&t!==c||o.contains(r))return"BODY"===(l=(a=c).nodeName)||"HTML"!==l&&w(a.firstElementChild)!==a?w(c):c;var s=E(e);return s.host?C(s.host,t):C(e,E(t).host)}function k(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var o=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||o)[t]}return e[t]}function O(e,t){var n="x"===t?"Left":"Top",o="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+o+"Width"])}function S(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],x(10)?parseInt(n["offset"+e])+parseInt(o["margin"+("Height"===e?"Top":"Left")])+parseInt(o["margin"+("Height"===e?"Bottom":"Right")]):0)}function T(e){var t=e.body,n=e.documentElement,o=x(10)&&getComputedStyle(n);return{height:S("Height",t,n,o),width:S("Width",t,n,o)}}var I=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],o=x(10),r="HTML"===t.nodeName,i=P(e),a=P(t),l=g(e),c=m(t),s=parseFloat(c.borderTopWidth),u=parseFloat(c.borderLeftWidth);n&&r&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=R({top:i.top-a.top-s,left:i.left-a.left-u,width:i.width,height:i.height});if(p.marginTop=0,p.marginLeft=0,!o&&r){var d=parseFloat(c.marginTop),f=parseFloat(c.marginLeft);p.top-=s-d,p.bottom-=s-d,p.left-=u-f,p.right-=u-f,p.marginTop=d,p.marginLeft=f}return(o&&!n?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(p=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=k(t,"top"),r=k(t,"left"),i=n?-1:1;return e.top+=o*i,e.bottom+=o*i,e.left+=r*i,e.right+=r*i,e}(p,t)),p}function M(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===m(e,"position"))return!0;var n=h(e);return!!n&&M(n)}function N(e){if(!e||!e.parentElement||x())return document.documentElement;for(var t=e.parentElement;t&&"none"===m(t,"transform");)t=t.parentElement;return t||document.documentElement}function F(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=r?N(e):C(e,v(t));if("viewport"===o)i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,o=D(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:k(n),l=t?0:k(n,"left");return R({top:a-o.top+o.marginTop,left:l-o.left+o.marginLeft,width:r,height:i})}(a,r);else{var l=void 0;"scrollParent"===o?"BODY"===(l=g(h(t))).nodeName&&(l=e.ownerDocument.documentElement):l="window"===o?e.ownerDocument.documentElement:o;var c=D(l,a,r);if("HTML"!==l.nodeName||M(a))i=c;else{var s=T(e.ownerDocument),u=s.height,p=s.width;i.top+=c.top-c.marginTop,i.bottom=u+c.top,i.left+=c.left-c.marginLeft,i.right=p+c.left}}var d="number"==typeof(n=n||0);return i.left+=d?n:n.left||0,i.top+=d?n:n.top||0,i.right-=d?n:n.right||0,i.bottom-=d?n:n.bottom||0,i}function A(e){return e.width*e.height}function $(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=F(n,o,i,r),l={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},c=Object.keys(l).map((function(e){return L({key:e},l[e],{area:A(l[e])})})).sort((function(e,t){return t.area-e.area})),s=c.filter((function(e){var t=e.width,o=e.height;return t>=n.clientWidth&&o>=n.clientHeight})),u=s.length>0?s[0].key:c[0].key,p=e.split("-")[1];return u+(p?"-"+p:"")}function H(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return D(n,o?N(t):C(t,v(n)),o)}function z(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),o=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+o,height:e.offsetHeight+n}}function B(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function V(e,t,n){n=n.split("-")[0];var o=z(e),r={width:o.width,height:o.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",l=i?"left":"top",c=i?"height":"width",s=i?"width":"height";return r[a]=t[a]+t[c]/2-o[c]/2,r[l]=n===l?t[l]-o[s]:t[B(l)],r}function W(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function U(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var o=W(e,(function(e){return e[t]===n}));return e.indexOf(o)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&f(n)&&(t.offsets.popper=R(t.offsets.popper),t.offsets.reference=R(t.offsets.reference),t=n(t,e))})),t}function q(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=H(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=$(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=V(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=U(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function j(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function K(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),o=0;o1&&void 0!==arguments[1]&&arguments[1],n=ie.indexOf(e),o=ie.slice(n+1).concat(ie.slice(0,n));return t?o.reverse():o}var le={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],o=t.split("-")[1];if(o){var r=e.offsets,i=r.reference,a=r.popper,l=-1!==["bottom","top"].indexOf(n),c=l?"left":"top",s=l?"width":"height",u={start:Z({},c,i[c]),end:Z({},c,i[c]+i[s]-a[s])};e.offsets.popper=L({},a,u[o])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,o=t.offset,r=e.placement,i=e.offsets,a=i.popper,l=i.reference,c=r.split("-")[0];return n=ee(+o)?[+o,0]:function(e,t,n,o){var r=[0,0],i=-1!==["right","left"].indexOf(o),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),l=a.indexOf(W(a,(function(e){return-1!==e.search(/,|\s/)})));a[l]&&-1===a[l].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,s=-1!==l?[a.slice(0,l).concat([a[l].split(c)[0]]),[a[l].split(c)[1]].concat(a.slice(l+1))]:[a];return(s=s.map((function(e,o){var r=(1===o?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,o){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+r[1],a=r[2];return i?0===a.indexOf("%")?R("%p"===a?n:o)[t]/100*i:"vh"===a||"vw"===a?("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i:i:e}(e,r,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,o){ee(n)&&(r[t]+=n*("-"===e[o-1]?-1:1))}))})),r}(o,a,l,c),"left"===c?(a.top+=n[0],a.left-=n[1]):"right"===c?(a.top+=n[0],a.left+=n[1]):"top"===c?(a.left+=n[0],a.top-=n[1]):"bottom"===c&&(a.left+=n[0],a.top+=n[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||w(e.instance.popper);e.instance.reference===n&&(n=w(n));var o=K("transform"),r=e.instance.popper.style,i=r.top,a=r.left,l=r[o];r.top="",r.left="",r[o]="";var c=F(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=i,r.left=a,r[o]=l,t.boundaries=c;var s=t.priority,u=e.offsets.popper,p={primary:function(e){var n=u[e];return u[e]c[e]&&!t.escapeWithReference&&(o=Math.min(u[n],c[e]-("right"===e?u.width:u.height))),Z({},n,o)}};return s.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=L({},u,p[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,o=t.reference,r=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(r),l=a?"right":"bottom",c=a?"left":"top",s=a?"width":"height";return n[l]i(o[l])&&(e.offsets.popper[c]=i(o[l])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!oe(e.instance.modifiers,"arrow","keepTogether"))return e;var o=t.element;if("string"==typeof o){if(!(o=e.instance.popper.querySelector(o)))return e}else if(!e.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],i=e.offsets,a=i.popper,l=i.reference,c=-1!==["left","right"].indexOf(r),s=c?"height":"width",u=c?"Top":"Left",p=u.toLowerCase(),d=c?"left":"top",f=c?"bottom":"right",h=z(o)[s];l[f]-ha[f]&&(e.offsets.popper[p]+=l[p]+h-a[f]),e.offsets.popper=R(e.offsets.popper);var g=l[p]+l[s]/2-h/2,v=m(e.instance.popper),b=parseFloat(v["margin"+u]),y=parseFloat(v["border"+u+"Width"]),x=g-e.offsets.popper[p]-b-y;return x=Math.max(Math.min(a[s]-h,x),0),e.arrowElement=o,e.offsets.arrow=(Z(n={},p,Math.round(x)),Z(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(j(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=F(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split("-")[0],r=B(o),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case"flip":a=[o,r];break;case"clockwise":a=ae(o);break;case"counterclockwise":a=ae(o,!0);break;default:a=t.behavior}return a.forEach((function(l,c){if(o!==l||a.length===c+1)return e;o=e.placement.split("-")[0],r=B(o);var s=e.offsets.popper,u=e.offsets.reference,p=Math.floor,d="left"===o&&p(s.right)>p(u.left)||"right"===o&&p(s.left)p(u.top)||"bottom"===o&&p(s.top)p(n.right),h=p(s.top)p(n.bottom),v="left"===o&&f||"right"===o&&m||"top"===o&&h||"bottom"===o&&g,b=-1!==["top","bottom"].indexOf(o),y=!!t.flipVariations&&(b&&"start"===i&&f||b&&"end"===i&&m||!b&&"start"===i&&h||!b&&"end"===i&&g),x=!!t.flipVariationsByContent&&(b&&"start"===i&&m||b&&"end"===i&&f||!b&&"start"===i&&g||!b&&"end"===i&&h),w=y||x;(d||v||w)&&(e.flipped=!0,(d||v)&&(o=a[c+1]),w&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=o+(i?"-"+i:""),e.offsets.popper=L({},e.offsets.popper,V(e.instance.popper,e.offsets.reference,e.placement)),e=U(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],o=e.offsets,r=o.popper,i=o.reference,a=-1!==["left","right"].indexOf(n),l=-1===["top","left"].indexOf(n);return r[a?"left":"top"]=i[n]-(l?r[a?"width":"height"]:0),e.placement=B(t),e.offsets.popper=R(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!oe(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=W(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=d(this.update.bind(this)),this.options=L({},e.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(L({},e.Defaults.modifiers,r.modifiers)).forEach((function(t){o.options.modifiers[t]=L({},e.Defaults.modifiers[t]||{},r.modifiers?r.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return L({name:e},o.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&f(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return I(e,[{key:"update",value:function(){return q.call(this)}},{key:"destroy",value:function(){return Y.call(this)}},{key:"enableEventListeners",value:function(){return J.call(this)}},{key:"disableEventListeners",value:function(){return Q.call(this)}}]),e}();se.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,se.placements=re,se.Defaults=ce;const ue=se;var pe=n(159),de=n(6234),fe=n(2568),me=n(4236),he=n(7294);function ge(e){return"function"==typeof e?e():e}var ve="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,be={},ye=a.forwardRef((function(e,t){var n=e.anchorEl,r=e.children,l=e.container,c=e.disablePortal,s=void 0!==c&&c,u=e.keepMounted,p=void 0!==u&&u,d=e.modifiers,f=e.open,m=e.placement,h=void 0===m?"bottom":m,g=e.popperOptions,v=void 0===g?be:g,b=e.popperRef,y=e.style,x=e.transition,w=void 0!==x&&x,E=(0,o.Z)(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),C=a.useRef(null),k=(0,he.Z)(C,t),O=a.useRef(null),S=(0,he.Z)(O,b),T=a.useRef(S);ve((function(){T.current=S}),[S]),a.useImperativeHandle(b,(function(){return O.current}),[]);var I=a.useState(!0),Z=I[0],L=I[1],R=function(e,t){if("ltr"===(t&&t.direction||"ltr"))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}}(h,(0,pe.Z)()),P=a.useState(R),D=P[0],M=P[1];a.useEffect((function(){O.current&&O.current.update()}));var N=a.useCallback((function(){if(C.current&&n&&f){O.current&&(O.current.destroy(),T.current(null));var e=function(e){M(e.placement)},t=(ge(n),new ue(ge(n),C.current,(0,i.Z)({placement:R},v,{modifiers:(0,i.Z)({},s?{}:{preventOverflow:{boundariesElement:"window"}},d,v.modifiers),onCreate:(0,fe.Z)(e,v.onCreate),onUpdate:(0,fe.Z)(e,v.onUpdate)})));T.current(t)}}),[n,s,d,f,R,v]),F=a.useCallback((function(e){(0,me.Z)(k,e),N()}),[k,N]),A=function(){O.current&&(O.current.destroy(),T.current(null))};if(a.useEffect((function(){return function(){A()}}),[]),a.useEffect((function(){f||w||A()}),[f,w]),!p&&!f&&(!w||Z))return null;var $={placement:D};return w&&($.TransitionProps={in:f,onEnter:function(){L(!1)},onExited:function(){L(!0),A()}}),a.createElement(de.Z,{disablePortal:s,container:l},a.createElement("div",(0,i.Z)({ref:F,role:"tooltip"},E,{style:(0,i.Z)({position:"fixed",top:0,left:0,display:f||!p||w?null:"none"},y)}),"function"==typeof r?r($):r))}));const xe=ye;var we=n(3871),Ee=a.forwardRef((function(e,t){var n=e.classes,r=e.className,l=e.color,s=void 0===l?"default":l,u=e.component,p=void 0===u?"li":u,d=e.disableGutters,f=void 0!==d&&d,m=e.disableSticky,h=void 0!==m&&m,g=e.inset,v=void 0!==g&&g,b=(0,o.Z)(e,["classes","className","color","component","disableGutters","disableSticky","inset"]);return a.createElement(p,(0,i.Z)({className:(0,c.Z)(n.root,r,"default"!==s&&n["color".concat((0,we.Z)(s))],v&&n.inset,!h&&n.sticky,!f&&n.gutters),ref:t},b))}));const Ce=(0,s.Z)((function(e){return{root:{boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},colorPrimary:{color:e.palette.primary.main},colorInherit:{color:"inherit"},gutters:{paddingLeft:16,paddingRight:16},inset:{paddingLeft:72},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}}),{name:"MuiListSubheader"})(Ee);var ke=n(9895),Oe=n(9693),Se=n(1850),Te=n(5192),Ie=!0,Ze=!1,Le=null,Re={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 Pe(e){e.metaKey||e.altKey||e.ctrlKey||(Ie=!0)}function De(){Ie=!1}function Me(){"hidden"===this.visibilityState&&Ze&&(Ie=!0)}function Ne(e){var t,n,o,r=e.target;try{return r.matches(":focus-visible")}catch(e){}return Ie||(n=(t=r).type,!("INPUT"!==(o=t.tagName)||!Re[n]||t.readOnly)||"TEXTAREA"===o&&!t.readOnly||!!t.isContentEditable)}function Fe(){Ze=!0,window.clearTimeout(Le),Le=window.setTimeout((function(){Ze=!1}),100)}function Ae(){return{isFocusVisible:Ne,onBlurVisible:Fe,ref:a.useCallback((function(e){var t,n=Se.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",Pe,!0),t.addEventListener("mousedown",De,!0),t.addEventListener("pointerdown",De,!0),t.addEventListener("touchstart",De,!0),t.addEventListener("visibilitychange",Me,!0))}),[])}}var $e=n(2982),He=n(3366),ze=n(7326),Be=n(4578),Ve=n(220);function We(e,t){var n=Object.create(null);return e&&a.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,a.isValidElement)(e)?t(e):e}(e)})),n}function Ue(e,t,n){return null!=n[t]?n[t]:e.props[t]}function qe(e,t,n){var o=We(e.children),r=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var o,r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var l={};for(var c in t){if(r[c])for(o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=t.pulsate,i=void 0!==o&&o,a=t.center,l=void 0===a?r||t.pulsate:a,c=t.fakeElement,s=void 0!==c&&c;if("mousedown"===e.type&&g.current)g.current=!1;else{"touchstart"===e.type&&(g.current=!0);var u,p,d,f=s?null:y.current,m=f?f.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(l||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(m.width/2),p=Math.round(m.height/2);else{var h=e.touches?e.touches[0]:e,w=h.clientX,E=h.clientY;u=Math.round(w-m.left),p=Math.round(E-m.top)}if(l)(d=Math.sqrt((2*Math.pow(m.width,2)+Math.pow(m.height,2))/3))%2==0&&(d+=1);else{var C=2*Math.max(Math.abs((f?f.clientWidth:0)-u),u)+2,k=2*Math.max(Math.abs((f?f.clientHeight:0)-p),p)+2;d=Math.sqrt(Math.pow(C,2)+Math.pow(k,2))}e.touches?null===b.current&&(b.current=function(){x({pulsate:i,rippleX:u,rippleY:p,rippleSize:d,cb:n})},v.current=setTimeout((function(){b.current&&(b.current(),b.current=null)}),80)):x({pulsate:i,rippleX:u,rippleY:p,rippleSize:d,cb:n})}}),[r,x]),E=a.useCallback((function(){w({},{pulsate:!0})}),[w]),C=a.useCallback((function(e,t){if(clearTimeout(v.current),"touchend"===e.type&&b.current)return e.persist(),b.current(),b.current=null,void(v.current=setTimeout((function(){C(e,t)})));b.current=null,f((function(e){return e.length>0?e.slice(1):e})),h.current=t}),[]);return a.useImperativeHandle(t,(function(){return{pulsate:E,start:w,stop:C}}),[E,w,C]),a.createElement("span",(0,i.Z)({className:(0,c.Z)(l.root,s),ref:y},u),a.createElement(Ye,{component:null,exit:!0},d))}));const Je=(0,s.Z)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(a.memo(Ge));var Qe=a.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,l=e.centerRipple,s=void 0!==l&&l,u=e.children,p=e.classes,d=e.className,f=e.component,m=void 0===f?"button":f,h=e.disabled,g=void 0!==h&&h,v=e.disableRipple,b=void 0!==v&&v,y=e.disableTouchRipple,x=void 0!==y&&y,w=e.focusRipple,E=void 0!==w&&w,C=e.focusVisibleClassName,k=e.onBlur,O=e.onClick,S=e.onFocus,T=e.onFocusVisible,I=e.onKeyDown,Z=e.onKeyUp,L=e.onMouseDown,R=e.onMouseLeave,P=e.onMouseUp,D=e.onTouchEnd,M=e.onTouchMove,N=e.onTouchStart,F=e.onDragLeave,A=e.tabIndex,$=void 0===A?0:A,H=e.TouchRippleProps,z=e.type,B=void 0===z?"button":z,V=(0,o.Z)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),W=a.useRef(null),U=a.useRef(null),q=a.useState(!1),j=q[0],K=q[1];g&&j&&K(!1);var Y=Ae(),_=Y.isFocusVisible,X=Y.onBlurVisible,G=Y.ref;function J(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x;return(0,Te.Z)((function(o){return t&&t(o),!n&&U.current&&U.current[e](o),!0}))}a.useImperativeHandle(n,(function(){return{focusVisible:function(){K(!0),W.current.focus()}}}),[]),a.useEffect((function(){j&&E&&!b&&U.current.pulsate()}),[b,E,j]);var Q=J("start",L),ee=J("stop",F),te=J("stop",P),ne=J("stop",(function(e){j&&e.preventDefault(),R&&R(e)})),oe=J("start",N),re=J("stop",D),ie=J("stop",M),ae=J("stop",(function(e){j&&(X(e),K(!1)),k&&k(e)}),!1),le=(0,Te.Z)((function(e){W.current||(W.current=e.currentTarget),_(e)&&(K(!0),T&&T(e)),S&&S(e)})),ce=function(){var e=Se.findDOMNode(W.current);return m&&"button"!==m&&!("A"===e.tagName&&e.href)},se=a.useRef(!1),ue=(0,Te.Z)((function(e){E&&!se.current&&j&&U.current&&" "===e.key&&(se.current=!0,e.persist(),U.current.stop(e,(function(){U.current.start(e)}))),e.target===e.currentTarget&&ce()&&" "===e.key&&e.preventDefault(),I&&I(e),e.target===e.currentTarget&&ce()&&"Enter"===e.key&&!g&&(e.preventDefault(),O&&O(e))})),pe=(0,Te.Z)((function(e){E&&" "===e.key&&U.current&&j&&!e.defaultPrevented&&(se.current=!1,e.persist(),U.current.stop(e,(function(){U.current.pulsate(e)}))),Z&&Z(e),O&&e.target===e.currentTarget&&ce()&&" "===e.key&&!e.defaultPrevented&&O(e)})),de=m;"button"===de&&V.href&&(de="a");var fe={};"button"===de?(fe.type=B,fe.disabled=g):("a"===de&&V.href||(fe.role="button"),fe["aria-disabled"]=g);var me=(0,he.Z)(r,t),ge=(0,he.Z)(G,W),ve=(0,he.Z)(me,ge),be=a.useState(!1),ye=be[0],xe=be[1];a.useEffect((function(){xe(!0)}),[]);var we=ye&&!b&&!g;return a.createElement(de,(0,i.Z)({className:(0,c.Z)(p.root,d,j&&[p.focusVisible,C],g&&p.disabled),onBlur:ae,onClick:O,onFocus:le,onKeyDown:ue,onKeyUp:pe,onMouseDown:Q,onMouseLeave:ne,onMouseUp:te,onDragLeave:ee,onTouchEnd:re,onTouchMove:ie,onTouchStart:oe,ref:ve,tabIndex:g?-1:$},fe,V),u,we?a.createElement(Je,(0,i.Z)({ref:U,center:s},H)):null)}));const et=(0,s.Z)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(Qe);var tt=a.forwardRef((function(e,t){var n=e.edge,r=void 0!==n&&n,l=e.children,s=e.classes,u=e.className,p=e.color,d=void 0===p?"default":p,f=e.disabled,m=void 0!==f&&f,h=e.disableFocusRipple,g=void 0!==h&&h,v=e.size,b=void 0===v?"medium":v,y=(0,o.Z)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return a.createElement(et,(0,i.Z)({className:(0,c.Z)(s.root,u,"default"!==d&&s["color".concat((0,we.Z)(d))],m&&s.disabled,"small"===b&&s["size".concat((0,we.Z)(b))],{start:s.edgeStart,end:s.edgeEnd}[r]),centerRipple:!0,focusRipple:!g,disabled:m,ref:t},y),a.createElement("span",{className:s.label},l))}));const nt=(0,s.Z)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,Oe.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,Oe.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,Oe.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(tt);var ot=n(5209);const rt=(0,ot.Z)(a.createElement("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 it(e){return"Backspace"===e.key||"Delete"===e.key}var at=a.forwardRef((function(e,t){var n=e.avatar,r=e.classes,l=e.className,s=e.clickable,u=e.color,p=void 0===u?"default":u,d=e.component,f=e.deleteIcon,m=e.disabled,h=void 0!==m&&m,g=e.icon,v=e.label,b=e.onClick,y=e.onDelete,x=e.onKeyDown,w=e.onKeyUp,E=e.size,C=void 0===E?"medium":E,k=e.variant,O=void 0===k?"default":k,S=(0,o.Z)(e,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),T=a.useRef(null),I=(0,he.Z)(T,t),Z=function(e){e.stopPropagation(),y&&y(e)},L=!(!1===s||!b)||s,R="small"===C,P=d||(L?et:"div"),D=P===et?{component:"div"}:{},M=null;if(y){var N=(0,c.Z)("default"!==p&&("default"===O?r["deleteIconColor".concat((0,we.Z)(p))]:r["deleteIconOutlinedColor".concat((0,we.Z)(p))]),R&&r.deleteIconSmall);M=f&&a.isValidElement(f)?a.cloneElement(f,{className:(0,c.Z)(f.props.className,r.deleteIcon,N),onClick:Z}):a.createElement(rt,{className:(0,c.Z)(r.deleteIcon,N),onClick:Z})}var F=null;n&&a.isValidElement(n)&&(F=a.cloneElement(n,{className:(0,c.Z)(r.avatar,n.props.className,R&&r.avatarSmall,"default"!==p&&r["avatarColor".concat((0,we.Z)(p))])}));var A=null;return g&&a.isValidElement(g)&&(A=a.cloneElement(g,{className:(0,c.Z)(r.icon,g.props.className,R&&r.iconSmall,"default"!==p&&r["iconColor".concat((0,we.Z)(p))])})),a.createElement(P,(0,i.Z)({role:L||y?"button":void 0,className:(0,c.Z)(r.root,l,"default"!==p&&[r["color".concat((0,we.Z)(p))],L&&r["clickableColor".concat((0,we.Z)(p))],y&&r["deletableColor".concat((0,we.Z)(p))]],"default"!==O&&[r.outlined,{primary:r.outlinedPrimary,secondary:r.outlinedSecondary}[p]],h&&r.disabled,R&&r.sizeSmall,L&&r.clickable,y&&r.deletable),"aria-disabled":!!h||void 0,tabIndex:L||y?0:void 0,onClick:b,onKeyDown:function(e){e.currentTarget===e.target&&it(e)&&e.preventDefault(),x&&x(e)},onKeyUp:function(e){e.currentTarget===e.target&&(y&&it(e)?y(e):"Escape"===e.key&&T.current&&T.current.blur()),w&&w(e)},ref:I},D,S),F||A,a.createElement("span",{className:(0,c.Z)(r.label,R&&r.labelSmall)},v),M)}));const lt=(0,s.Z)((function(e){var t="light"===e.palette.type?e.palette.grey[300]:e.palette.grey[700],n=(0,Oe.Fq)(e.palette.text.primary,.26);return{root:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.getContrastText(t),backgroundColor:t,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},"& $avatarColorPrimary":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},"& $avatarColorSecondary":{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:(0,Oe._4)(t,.08)},"&:active":{boxShadow:e.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:(0,Oe._4)(e.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:(0,Oe._4)(e.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:(0,Oe._4)(t,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:(0,Oe._4)(e.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:(0,Oe._4)(e.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,Oe.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(e.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,Oe.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity)}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(e.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,Oe.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:n,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:(0,Oe.Fq)(n,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:(0,Oe.Fq)(e.palette.primary.contrastText,.7),"&:hover, &:active":{color:e.palette.primary.contrastText}},deleteIconColorSecondary:{color:(0,Oe.Fq)(e.palette.secondary.contrastText,.7),"&:hover, &:active":{color:e.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:(0,Oe.Fq)(e.palette.primary.main,.7),"&:hover, &:active":{color:e.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:(0,Oe.Fq)(e.palette.secondary.main,.7),"&:hover, &:active":{color:e.palette.secondary.main}}}}),{name:"MuiChip"})(at),ct=(0,ot.Z)(a.createElement("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"),st=(0,ot.Z)(a.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");var ut=n(885),pt=n(2775);function dt(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function ft(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,n=void 0===t||t,o=e.ignoreCase,r=void 0===o||o,i=e.limit,a=e.matchFrom,l=void 0===a?"any":a,c=e.stringify,s=e.trim,u=void 0!==s&&s;return function(e,t){var o=t.inputValue,a=t.getOptionLabel,s=u?o.trim():o;r&&(s=s.toLowerCase()),n&&(s=dt(s));var p=e.filter((function(e){var t=(c||a)(e);return r&&(t=t.toLowerCase()),n&&(t=dt(t)),"start"===l?0===t.indexOf(s):t.indexOf(s)>-1}));return"number"==typeof i?p.slice(0,i):p}}function mt(e,t){for(var n=0;nke.length-1&&(ye(-1),Ve(-1))}),[ke,Y,be,Ve]);var We=(0,Te.Z)((function(e){var t=e.event,n=e.index,o=e.reason,r=void 0===o?"auto":o;if(we.current=n,-1===n?pe.current.removeAttribute("aria-activedescendant"):pe.current.setAttribute("aria-activedescendant","".concat(le,"-option-").concat(n)),G&&G(t,-1===n?null:Be[n],r),de.current){var i=de.current.querySelector("[data-focus]");i&&i.removeAttribute("data-focus");var a=de.current.parentElement.querySelector('[role="listbox"]');if(a)if(-1!==n){var l=de.current.querySelector('[data-option-index="'.concat(n,'"]'));if(l&&(l.setAttribute("data-focus","true"),a.scrollHeight>a.clientHeight&&"mouse"!==r)){var c=l,s=a.clientHeight+a.scrollTop,u=c.offsetTop+c.offsetHeight;u>s?a.scrollTop=u-a.clientHeight:c.offsetTop-c.offsetHeight*(z?1.3:0)1?0:e:t>e?t===e+1&&q?-1:I||Math.abs(o)>1?e:0:t}(),i);if(We({index:c,reason:l,event:t}),n&&"reset"!==o)if(-1===c)pe.current.value=Ze;else{var s=ce(Be[c]);pe.current.value=s,0===s.toLowerCase().indexOf(Ze.toLowerCase())&&Ze.length>0&&pe.current.setSelectionRange(Ze.length,s.length)}}})),qe=a.useCallback((function(){if(ze){var e=Y?ke[0]:ke;if(0!==Be.length&&null!=e){if(de.current)if(P||null==e)we.current>=Be.length-1?We({index:Be.length-1}):We({index:we.current});else{var t=Be[we.current];if(Y&&t&&-1!==mt(ke,(function(e){return H(t,e)})))return;var n=mt(Be,(function(t){return H(t,e)}));-1===n?Ue({diff:"reset"}):We({index:n})}}else Ue({diff:"reset"})}}),[0===Be.length,!Y&&ke,P,Ue,We,ze,Ze,Y]),je=(0,Te.Z)((function(e){(0,me.Z)(de,e),e&&qe()}));a.useEffect((function(){qe()}),[qe]);var Ke=function(e){Ae||($e(!0),Q&&Q(e))},Ye=function(e,t){Ae&&($e(!1),X&&X(e,t))},_e=function(e,t,n,o){ke!==t&&(_&&_(e,t,n,o),Oe(t))},Xe=a.useRef(!1),Ge=function(e,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"select-option",r=t;if(Y){var i=mt(r=Array.isArray(ke)?ke.slice():[],(function(e){return H(t,e)}));-1===i?r.push(t):"freeSolo"!==n&&(r.splice(i,1),o="remove-option")}Me(e,r),_e(e,r,o,{option:t}),k||Ye(e,o),(!0===u||"touch"===u&&Xe.current||"mouse"===u&&!Xe.current)&&pe.current.blur()},Je=function(e,t){if(Y){Ye(e,"toggleInput");var n=be;-1===be?""===Ze&&"previous"===t&&(n=ke.length-1):((n+="next"===t?1:-1)<0&&(n=0),n===ke.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;for(var n=e;;){if("next"===t&&n===ke.length||"previous"===t&&-1===n)return-1;var o=he.querySelector('[data-tag-index="'.concat(n,'"]'));if(!o||o.hasAttribute("tabindex")&&!o.disabled&&"true"!==o.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),ye(n),Ve(n)}},Qe=function(e){se.current=!0,Le(""),J&&J(e,"","clear"),_e(e,Y?[]:null,"clear")},et=function(e){return function(t){switch(-1!==be&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(ye(-1),Ve(-1)),t.key){case"Home":ze&&V&&(t.preventDefault(),Ue({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":ze&&V&&(t.preventDefault(),Ue({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),Ue({diff:-5,direction:"previous",reason:"keyboard",event:t}),Ke(t);break;case"PageDown":t.preventDefault(),Ue({diff:5,direction:"next",reason:"keyboard",event:t}),Ke(t);break;case"ArrowDown":t.preventDefault(),Ue({diff:1,direction:"next",reason:"keyboard",event:t}),Ke(t);break;case"ArrowUp":t.preventDefault(),Ue({diff:-1,direction:"previous",reason:"keyboard",event:t}),Ke(t);break;case"ArrowLeft":Je(t,"previous");break;case"ArrowRight":Je(t,"next");break;case"Enter":if(229===t.which)break;if(-1!==we.current&&ze){var o=Be[we.current],r=!!N&&N(o);if(t.preventDefault(),r)return;Ge(t,o,"select-option"),n&&pe.current.setSelectionRange(pe.current.value.length,pe.current.value.length)}else M&&""!==Ze&&!1===He&&(Y&&t.preventDefault(),Ge(t,Ze,"create-option","freeSolo"));break;case"Escape":ze?(t.preventDefault(),t.stopPropagation(),Ye(t,"escape")):m&&(""!==Ze||Y&&ke.length>0)&&(t.preventDefault(),t.stopPropagation(),Qe(t));break;case"Backspace":if(Y&&""===Ze&&ke.length>0){var i=-1===be?ke.length-1:be,a=ke.slice();a.splice(i,1),_e(t,a,"remove-option",{option:ke[i]})}}e.onKeyDown&&e.onKeyDown(t)}},tt=function(e){De(!0),ne&&!se.current&&Ke(e)},nt=function(e){null===de.current||document.activeElement!==de.current.parentElement?(De(!1),ue.current=!0,se.current=!1,b&&""!==Ze||(c&&-1!==we.current&&ze?Ge(e,Be[we.current],"blur"):c&&M&&""!==Ze?Ge(e,Ze,"blur","freeSolo"):d&&Me(e,ke),Ye(e,"blur"))):pe.current.focus()},ot=function(e){var t=e.target.value;Ze!==t&&(Le(t),J&&J(e,t,"input")),""===t?E||Y||_e(e,null,"clear"):Ke(e)},rt=function(e){We({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},it=function(){Xe.current=!0},at=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));Ge(e,Be[t],"select-option"),Xe.current=!1},lt=function(e){return function(t){var n=ke.slice();n.splice(e,1),_e(t,n,"remove-option",{option:ke[e]})}},ct=function(e){Ae?Ye(e,"toggleInput"):Ke(e)},st=function(e){e.target.getAttribute("id")!==le&&e.preventDefault()},dt=function(){pe.current.focus(),ie&&ue.current&&pe.current.selectionEnd-pe.current.selectionStart==0&&pe.current.select(),ue.current=!1},ft=function(e){""!==Ze&&Ae||ct(e)},gt=M&&Ze.length>0;gt=gt||(Y?ke.length>0:null!==ke);var vt=Be;return z&&(new Map,vt=Be.reduce((function(e,t,n){var o=z(t);return e.length>0&&e[e.length-1].group===o?e[e.length-1].options.push(t):e.push({key:n,index:n,group:o,options:[t]}),e}),[])),{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.Z)({"aria-owns":ze?"".concat(le,"-popup"):null,role:"combobox","aria-expanded":ze},e,{onKeyDown:et(e),onMouseDown:st,onClick:dt})},getInputLabelProps:function(){return{id:"".concat(le,"-label"),htmlFor:le}},getInputProps:function(){return{id:le,value:Ze,onBlur:nt,onFocus:tt,onChange:ot,onMouseDown:ft,"aria-activedescendant":ze?"":null,"aria-autocomplete":n?"both":"list","aria-controls":ze?"".concat(le,"-popup"):null,autoComplete:"off",ref:pe,autoCapitalize:"none",spellCheck:"false"}},getClearProps:function(){return{tabIndex:-1,onClick:Qe}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:ct}},getTagProps:function(e){var t=e.index;return{key:t,"data-tag-index":t,tabIndex:-1,onDelete:lt(t)}},getListboxProps:function(){return{role:"listbox",id:"".concat(le,"-popup"),"aria-labelledby":"".concat(le,"-label"),ref:je,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var t=e.index,n=e.option,o=(Y?ke:[ke]).some((function(e){return null!=e&&H(n,e)})),r=!!N&&N(n);return{key:t,tabIndex:-1,role:"option",id:"".concat(le,"-option-").concat(t),onMouseOver:rt,onClick:at,onTouchStart:it,"data-option-index":t,"aria-disabled":r,"aria-selected":o}},id:le,inputValue:Ze,value:ke,dirty:gt,popupOpen:ze,focused:Pe||-1!==be,anchorEl:he,setAnchorEl:ge,focusedTag:be,groupedOptions:vt}}((0,i.Z)({},e,{componentName:"Autocomplete"})),se=ce.getRootProps,ue=ce.getInputProps,pe=ce.getInputLabelProps,de=ce.getPopupIndicatorProps,fe=ce.getClearProps,he=ce.getTagProps,ge=ce.getListboxProps,ve=ce.getOptionProps,be=ce.value,ye=ce.dirty,we=ce.id,Ee=ce.popupOpen,Oe=ce.focused,Se=ce.focusedTag,Ie=ce.anchorEl,Ze=ce.setAnchorEl,Le=ce.inputValue,Re=ce.groupedOptions;if(W&&be.length>0){var Pe=function(e){return(0,i.Z)({className:(0,c.Z)(l.tag,"small"===ie&&l.tagSizeSmall),disabled:y},he(e))};n=oe?oe(be,Pe):be.map((function(e,t){return a.createElement(lt,(0,i.Z)({label:R(e),size:ie},Pe({index:t}),r))}))}if(M>-1&&Array.isArray(n)){var De=n.length-M;!Oe&&De>0&&(n=n.splice(0,M)).push(a.createElement("span",{className:l.tag,key:n.length},Z(De)))}var Me=ee||function(e){return a.createElement("li",{key:e.key},a.createElement(Ce,{className:l.groupLabel,component:"div"},e.group),a.createElement("ul",{className:l.groupUl},e.children))},Ne=ne||R,Fe=function(e,t){var n=ve({option:e,index:t});return a.createElement("li",(0,i.Z)({},n,{className:l.option}),Ne(e,{selected:n["aria-selected"],inputValue:Le}))},Ae=!v&&!y,$e=(!O||!0===C)&&!1!==C;return a.createElement(a.Fragment,null,a.createElement("div",(0,i.Z)({ref:t,className:(0,c.Z)(l.root,s,Oe&&l.focused,T&&l.fullWidth,Ae&&l.hasClearIcon,$e&&l.hasPopupIcon)},se(ae)),te({id:we,disabled:y,fullWidth:!0,size:"small"===ie?"small":void 0,InputLabelProps:pe(),InputProps:{ref:Ze,className:l.inputRoot,startAdornment:n,endAdornment:a.createElement("div",{className:l.endAdornment},Ae?a.createElement(nt,(0,i.Z)({},fe(),{"aria-label":p,title:p,className:(0,c.Z)(l.clearIndicator,ye&&l.clearIndicatorDirty)}),f):null,$e?a.createElement(nt,(0,i.Z)({},de(),{disabled:y,"aria-label":Ee?h:K,title:Ee?h:K,className:(0,c.Z)(l.popupIndicator,Ee&&l.popupIndicatorOpen)}),Q):null)},inputProps:(0,i.Z)({className:(0,c.Z)(l.input,-1===Se&&l.inputFocused),disabled:y},ue())})),Ee&&Ie?a.createElement(le,{className:(0,c.Z)(l.popper,w&&l.popperDisablePortal),style:{width:Ie?Ie.clientWidth:null},role:"presentation",anchorEl:Ie,open:!0},a.createElement(_,{className:l.paper},H&&0===Re.length?a.createElement("div",{className:l.loading},B):null,0!==Re.length||O||H?null:a.createElement("div",{className:l.noOptions},q),Re.length>0?a.createElement(F,(0,i.Z)({className:l.listbox},ge(),A),Re.map((function(e,t){return P?Me({key:e.key,group:e.group,children:e.options.map((function(t,n){return Fe(t,e.index+n)}))}):Fe(e,t)}))):null)):null)}));const xt=(0,s.Z)((function(e){var t;return{root:{"&$focused $clearIndicatorDirty":{visibility:"visible"},"@media (pointer: fine)":{"&:hover $clearIndicatorDirty":{visibility:"visible"}}},fullWidth:{width:"100%"},focused:{},tag:{margin:3,maxWidth:"calc(100% - 6px)"},tagSizeSmall:{margin:2,maxWidth:"calc(100% - 4px)"},hasPopupIcon:{},hasClearIcon:{},inputRoot:{flexWrap:"wrap","$hasPopupIcon &, $hasClearIcon &":{paddingRight:30},"$hasPopupIcon$hasClearIcon &":{paddingRight:56},"& $input":{width:0,minWidth:30},'&[class*="MuiInput-root"]':{paddingBottom:1,"& $input":{padding:4},"& $input:first-child":{padding:"6px 0"}},'&[class*="MuiInput-root"][class*="MuiInput-marginDense"]':{"& $input":{padding:"4px 4px 5px"},"& $input:first-child":{padding:"3px 0 6px"}},'&[class*="MuiOutlinedInput-root"]':{padding:9,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9.5px 4px"},"& $input:first-child":{paddingLeft:6},"& $endAdornment":{right:9}},'&[class*="MuiOutlinedInput-root"][class*="MuiOutlinedInput-marginDense"]':{padding:6,"& $input":{padding:"4.5px 4px"}},'&[class*="MuiFilledInput-root"]':{paddingTop:19,paddingLeft:8,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9px 4px"},"& $endAdornment":{right:9}},'&[class*="MuiFilledInput-root"][class*="MuiFilledInput-marginDense"]':{paddingBottom:1,"& $input":{padding:"4.5px 4px"}}},input:{flexGrow:1,textOverflow:"ellipsis",opacity:0},inputFocused:{opacity:1},endAdornment:{position:"absolute",right:0,top:"calc(50% - 14px)"},clearIndicator:{marginRight:-2,padding:4,visibility:"hidden"},clearIndicatorDirty:{},popupIndicator:{padding:2,marginRight:-2},popupIndicatorOpen:{transform:"rotate(180deg)"},popper:{zIndex:e.zIndex.modal},popperDisablePortal:{position:"absolute"},paper:(0,i.Z)({},e.typography.body1,{overflow:"hidden",margin:"4px 0"}),listbox:{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto"},loading:{color:e.palette.text.secondary,padding:"14px 16px"},noOptions:{color:e.palette.text.secondary,padding:"14px 16px"},option:(t={minHeight:48,display:"flex",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},(0,r.Z)(t,e.breakpoints.up("sm"),{minHeight:"auto"}),(0,r.Z)(t,'&[aria-selected="true"]',{backgroundColor:e.palette.action.selected}),(0,r.Z)(t,'&[data-focus="true"]',{backgroundColor:e.palette.action.hover}),(0,r.Z)(t,"&:active",{backgroundColor:e.palette.action.selected}),(0,r.Z)(t,'&[aria-disabled="true"]',{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"}),t),groupLabel:{backgroundColor:e.palette.background.paper,top:-8},groupUl:{padding:0,"& $option":{paddingLeft:24}}}}),{name:"MuiAutocomplete"})(yt)}}]);