backendless-ui-sdk
Version:
Backendless UI-SDK
1 lines • 1.24 MB
JavaScript
(self.webpackChunkbackendless_ui_sdk=self.webpackChunkbackendless_ui_sdk||[]).push([[200],{45719:(Kt,nn,br)=>{"use strict";br.d(nn,{Z:()=>Sr});var Sr={DATA_GRID:"DATA_GRID",CHART:"CHART",CALENDAR:"CALENDAR",CALENDAR_HEATMAP:"CALENDAR_HEATMAP"}},92941:(Kt,nn,br)=>{"use strict";br.r(nn),br.d(nn,{ChartVisualizationNode:()=>ChartVisualizationNode});var Sr=br(50066),_r=br(15746),Lr=br(92130),Fr=br(17359),Wr=br(92429),$r=br(45719),Gr=br(4373),sa=br(2362),la=br.n(sa);function ownKeys(Kt,nn){var br=Object.keys(Kt);if(Object.getOwnPropertySymbols){var Sr=Object.getOwnPropertySymbols(Kt);nn&&(Sr=Sr.filter((function(nn){return Object.getOwnPropertyDescriptor(Kt,nn).enumerable}))),br.push.apply(br,Sr)}return br}function _objectSpread(Kt){for(var nn=1;nn<arguments.length;nn++){var br=null!=arguments[nn]?arguments[nn]:{};nn%2?ownKeys(Object(br),!0).forEach((function(nn){_defineProperty(Kt,nn,br[nn])})):Object.getOwnPropertyDescriptors?Object.defineProperties(Kt,Object.getOwnPropertyDescriptors(br)):ownKeys(Object(br)).forEach((function(nn){Object.defineProperty(Kt,nn,Object.getOwnPropertyDescriptor(br,nn))}))}return Kt}function _defineProperty(Kt,nn,br){return(nn=function _toPropertyKey(Kt){var nn=function _toPrimitive(Kt,nn){if("object"!=typeof Kt||!Kt)return Kt;var br=Kt[Symbol.toPrimitive];if(void 0!==br){var Sr=br.call(Kt,nn||"default");if("object"!=typeof Sr)return Sr;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===nn?String:Number)(Kt)}(Kt,"string");return"symbol"==typeof nn?nn:nn+""}(nn))in Kt?Object.defineProperty(Kt,nn,{value:br,enumerable:!0,configurable:!0,writable:!0}):Kt[nn]=br,Kt}function ChartVisualizationNode(Kt){var{node:nn}=Kt,br=(0,_r.useStyle)(Kt),[sa,ha]=(0,_r.useClassList)(Kt),[xa,_a]=(0,_r.useComponentDisplay)(Kt),[Za,Ka]=(0,_r.useDynamicProperty)(Kt,{handler:"onVisualizationIdAssignment",initialValue:()=>nn.data.visualizationId}),[Ja,bo]=(0,_r.useDynamicProperty)(Kt,{handler:"onWhereClauseAssignment",initialValue:()=>nn.data.whereClause}),[xo,Oo]=(0,_r.useDynamicProperty)(Kt,{initialValue:()=>(0,Fr.V)(nn.data.featureToggle)}),[Eo,So]=(0,_r.useState)(null),_o=(0,_r.useElRef)();(0,_r.useComponentRegister)(Kt,{onFeatureToggleChange:Kt=>{var nn=function _loop(nn){var br=Kt[nn],Sr=xo[nn];br!==Sr&&Oo((Kt=>_objectSpread(_objectSpread({},Kt),{},{[nn]:br})))};for(var br of Object.keys(Kt))nn(br)},style:br,classList:{get:()=>sa,set:Kt=>ha(Kt)},display:{get:()=>xa,set:Kt=>_a(!!Kt)},visualizationId:{get:()=>Za,set:Ka},whereClause:{get:()=>Ja,set:Kt=>bo(Kt)},featureToggle:{get:()=>xo},el:{get:()=>_o.current}}),(0,_r.useComponentLifecycle)(Kt),(0,_r.useEffect)((()=>{(0,Lr.D)(Za).then((Kt=>So(Kt)))}),[Za]);var Lo="".concat(nn.moduleId,"_").concat(Za,"_").concat(nn.uid),Zo=(0,Wr.c)(Lo,BackendlessUI.config.appId);if(!xa||!Za||!Eo)return null;var ni=Eo.type===$r.Z.CHART?null:new Error('You are most likely using the wrong visualization id. Check "Visualization Id Logic" handler logic is it work correct');return React.createElement("div",{style:br,className:(0,Sr.cn)(sa,"bl-chart-visualization"),ref:_o},ni&&React.createElement(Gr.y,{error:ni,title:"Type of visualization is not Chart",showStack:!1}),!ni&&React.createElement(la(),{LocalStorageManager:Zo,config:Eo,featureToggle:xo,dataQuery:{whereClause:Ja}}))}},92130:(Kt,nn,br)=>{"use strict";function asyncGeneratorStep(Kt,nn,br,Sr,_r,Lr,Fr){try{var Wr=Kt[Lr](Fr),$r=Wr.value}catch(Kt){return void br(Kt)}Wr.done?nn($r):Promise.resolve($r).then(Sr,_r)}function _asyncToGenerator(Kt){return function(){var nn=this,br=arguments;return new Promise((function(Sr,_r){var Lr=Kt.apply(nn,br);function _next(Kt){asyncGeneratorStep(Lr,Sr,_r,_next,_throw,"next",Kt)}function _throw(Kt){asyncGeneratorStep(Lr,Sr,_r,_next,_throw,"throw",Kt)}_next(void 0)}))}}br.d(nn,{D:()=>Sr});var Sr=function(){var Kt=_asyncToGenerator((function*(Kt){return fetch(BackendlessUI.provideFileUrl("/visualizations/".concat(Kt,"/config.json"))).then((Kt=>Kt.json())).then(function(){var Kt=_asyncToGenerator((function*(Kt){return Kt.errorData||6007===Kt.code?null:Kt}));return function(nn){return Kt.apply(this,arguments)}}())}));return function loadVisualizationConfig(nn){return Kt.apply(this,arguments)}}()},17359:(Kt,nn,br)=>{"use strict";function parsedVisualizationsFeatureToggle(Kt){try{return JSON.parse(Kt)}catch(Kt){return BackendlessUI.logger.warn("Could not parse visualizations feature toggle",Kt),{}}}br.d(nn,{V:()=>parsedVisualizationsFeatureToggle})},92429:(Kt,nn,br)=>{"use strict";br.d(nn,{c:()=>useLocalStorageManager});var Sr=br(31921),_r=br.n(Sr),Lr=br(15746);var Fr="components",Wr="local-config",$r="default-config",Gr="model",sa="dataSources",la="dataSettingsExpandedSections",ha="showDataSettingsAdvanced",xa="labelsColorsExpandedSections";class VisualizationLocalStorageManager{constructor(Kt,nn){this.storageKey=function getStorageKey(Kt){return"BACKENDLESS_"+Kt}(nn),this.visualizationId=Kt,this.localConfigRootPath="[".concat(Fr,"][").concat(this.visualizationId,"][").concat(Wr,"]"),this.defaultConfigRootPath="[".concat(Fr,"][").concat(this.visualizationId,"][").concat($r,"]")}getItem(){try{var Kt=localStorage.getItem(this.storageKey);return JSON.parse(Kt)||{}}catch(Kt){return{}}}setItem(Kt){try{localStorage.setItem(this.storageKey,JSON.stringify(Kt))}catch(Kt){console.error(Kt)}}getLocalConfig(){var Kt=this.getItem();return Kt.components&&Kt.components[this.visualizationId]&&Kt.components[this.visualizationId]["local-config"]||{}}setLocalConfig(Kt){var nn=this.getItem(),br=_r()(nn,"".concat(this.localConfigRootPath),Kt);this.setItem(br)}getDefaultConfig(){var Kt=this.getItem();return Kt.components&&Kt.components[this.visualizationId]&&Kt.components[this.visualizationId]["default-config"]||{}}setDefaultConfig(Kt){var nn=this.getItem(),br=_r()(nn,"".concat(this.defaultConfigRootPath),Kt);this.setItem(br)}getLocalModel(){return this.getLocalConfig()[Gr]||{}}setLocalModel(Kt){var nn=this.getItem(),br="".concat(this.localConfigRootPath,"[").concat(Gr,"]"),Sr=_r()(nn,br,Kt);this.setItem(Sr)}getLocalDataSources(){return this.getLocalConfig()[sa]||{}}getLocalDataSource(Kt){return this.getLocalDataSources()[Kt]||{}}setLocalDataSource(Kt,nn){var br=this.getItem(),Sr="[".concat(this.localConfigRootPath,"][").concat(sa,"][").concat(Kt,"]"),Lr=_r()(br,Sr,nn);this.setItem(Lr)}getLocalDataSourceQuery(Kt){return this.getLocalDataSource(Kt).query||{}}setLocalDataSourceQuery(Kt,nn){var br=this.getItem(),Sr="[".concat(this.localConfigRootPath,"][").concat(sa,"][").concat(Kt,"][query]"),Lr=_r()(br,Sr,nn);this.setItem(Lr)}getDataSettingsSectionExpanded(Kt){return(this.getLocalConfig()[la]||{})[Kt]}setDataSettingsSectionExpanded(Kt,nn){var br=this.getItem(),Sr="".concat(this.localConfigRootPath,"[").concat(la,"][").concat(Kt,"]"),Lr=_r()(br,Sr,nn);this.setItem(Lr)}getShowDataSettingsAdvanced(Kt){return(this.getLocalConfig()[ha]||{})[Kt]}setShowDataSettingsAdvanced(Kt,nn){var br=this.getItem(),Sr="".concat(this.localConfigRootPath,"[").concat(ha,"][").concat(Kt,"]"),Lr=_r()(br,Sr,nn);this.setItem(Lr)}getCalendarLabelsColorsExpandedSections(){return this.getLocalConfig()[xa]||{}}setCalendarLabelsColorsExpandedSections(Kt){var nn=this.getItem(),br="".concat(this.localConfigRootPath,"[").concat(xa,"]"),Sr=_r()(nn,br,Kt);this.setItem(Sr)}}function useLocalStorageManager(Kt,nn){return(0,Lr.useMemo)((()=>new VisualizationLocalStorageManager(Kt,nn)),[Kt,nn])}},2362:(Kt,nn,br)=>{var Sr;self,Sr=(Kt,nn)=>(()=>{var br={78700:(Kt,nn,br)=>{"use strict";br.d(nn,{Z:()=>_r});var Sr=br(99490);const _r=function(){function e(Kt){var nn=(void 0===Kt?{}:Kt).locale;this.yearFormat="yyyy",this.yearMonthFormat="LLLL yyyy",this.dateTime12hFormat="ff",this.dateTime24hFormat="MMMM dd T",this.time12hFormat="t",this.time24hFormat="T",this.dateFormat="MMMM dd",this.locale=nn||"en"}return e.prototype.date=function(Kt){return void 0===Kt?Sr.ou.local():null===Kt?null:"string"==typeof Kt?Sr.ou.fromJSDate(new Date(Kt)):Kt instanceof Sr.ou?Kt:Sr.ou.fromJSDate(Kt)},e.prototype.parse=function(Kt,nn){return""===Kt?null:Sr.ou.fromFormat(Kt,nn)},e.prototype.addDays=function(Kt,nn){return nn<0?Kt.minus({days:Math.abs(nn)}):Kt.plus({days:nn})},e.prototype.isValid=function(Kt){return Kt instanceof Sr.ou?Kt.isValid:null!==Kt&&this.date(Kt).isValid},e.prototype.isEqual=function(Kt,nn){return null===Kt&&null===nn||null!==Kt&&null!==nn&&this.date(Kt).equals(this.date(nn))},e.prototype.isSameDay=function(Kt,nn){return Kt.hasSame(nn,"day")},e.prototype.isSameMonth=function(Kt,nn){return Kt.hasSame(nn,"month")},e.prototype.isSameYear=function(Kt,nn){return Kt.hasSame(nn,"year")},e.prototype.isSameHour=function(Kt,nn){return Kt.hasSame(nn,"hour")},e.prototype.isAfter=function(Kt,nn){return Kt>nn},e.prototype.isBefore=function(Kt,nn){return Kt<nn},e.prototype.isBeforeDay=function(Kt,nn){return Kt.diff(nn.startOf("day"),"days").toObject().days<0},e.prototype.isAfterDay=function(Kt,nn){return Kt.diff(nn.endOf("day"),"days").toObject().days>0},e.prototype.isBeforeYear=function(Kt,nn){return Kt.diff(nn.startOf("year"),"years").toObject().years<0},e.prototype.isAfterYear=function(Kt,nn){return Kt.diff(nn.endOf("year"),"years").toObject().years>0},e.prototype.getDiff=function(Kt,nn){return"string"==typeof nn&&(nn=Sr.ou.fromJSDate(new Date(nn))),Kt.diff(nn).as("millisecond")},e.prototype.startOfDay=function(Kt){return Kt.startOf("day")},e.prototype.endOfDay=function(Kt){return Kt.endOf("day")},e.prototype.format=function(Kt,nn){return Kt.setLocale(this.locale).toFormat(nn)},e.prototype.formatNumber=function(Kt){return Kt},e.prototype.getHours=function(Kt){return Kt.get("hour")},e.prototype.setHours=function(Kt,nn){return Kt.set({hour:nn})},e.prototype.getMinutes=function(Kt){return Kt.get("minute")},e.prototype.setMinutes=function(Kt,nn){return Kt.set({minute:nn})},e.prototype.getSeconds=function(Kt){return Kt.get("second")},e.prototype.setSeconds=function(Kt,nn){return Kt.set({second:nn})},e.prototype.getMonth=function(Kt){return Kt.get("month")-1},e.prototype.setMonth=function(Kt,nn){return Kt.set({month:nn+1})},e.prototype.getYear=function(Kt){return Kt.get("year")},e.prototype.setYear=function(Kt,nn){return Kt.set({year:nn})},e.prototype.mergeDateAndTime=function(Kt,nn){return this.setMinutes(this.setHours(Kt,this.getHours(nn)),this.getMinutes(nn))},e.prototype.startOfMonth=function(Kt){return Kt.startOf("month")},e.prototype.endOfMonth=function(Kt){return Kt.endOf("month")},e.prototype.getNextMonth=function(Kt){return Kt.plus({months:1})},e.prototype.getPreviousMonth=function(Kt){return Kt.minus({months:1})},e.prototype.getMonthArray=function(Kt){for(var nn=[this.date(Kt).startOf("year")];nn.length<12;){var br=nn[nn.length-1];nn.push(this.getNextMonth(br))}return nn},e.prototype.getWeekdays=function(){return Sr.kI.weekdaysFormat("narrow",{locale:this.locale})},e.prototype.getWeekArray=function(Kt){var nn=Kt.endOf("month").endOf("week").diff(Kt.startOf("month").startOf("week"),"days").toObject().days,br=[];return new Array(Math.round(nn)).fill(0).map((function(Kt,nn){return nn})).map((function(nn){return Kt.startOf("month").startOf("week").plus({days:nn})})).forEach((function(Kt,nn){0===nn||nn%7==0&&nn>6?br.push([Kt]):br[br.length-1].push(Kt)})),br},e.prototype.getYearRange=function(Kt,nn){Kt=this.date(Kt);var br=(nn=this.date(nn).plus({years:1})).diff(Kt,"years").toObject().years;return!br||br<=0?[]:new Array(Math.round(br)).fill(0).map((function(Kt,nn){return nn})).map((function(nn){return Kt.plus({years:nn})}))},e.prototype.getMeridiemText=function(Kt){return Sr.kI.meridiems({locale:this.locale}).find((function(nn){return nn.toLowerCase()===Kt.toLowerCase()}))},e.prototype.getCalendarHeaderText=function(Kt){return this.format(Kt,this.yearMonthFormat)},e.prototype.getDatePickerHeaderText=function(Kt){return this.format(Kt,"ccc, MMM d")},e.prototype.getDateTimePickerHeaderText=function(Kt){return this.format(Kt,"MMM d")},e.prototype.getMonthText=function(Kt){return this.format(Kt,"LLLL")},e.prototype.getDayText=function(Kt){return this.format(Kt,"d")},e.prototype.getHourText=function(Kt,nn){return nn?Kt.toFormat("hh"):Kt.toFormat("HH")},e.prototype.getMinuteText=function(Kt){return Kt.toFormat("mm")},e.prototype.getSecondText=function(Kt){return Kt.toFormat("ss")},e.prototype.getYearText=function(Kt){return Kt.toFormat("yyyy")},e.prototype.isNull=function(Kt){return null===Kt},e}()},43891:(Kt,nn,br)=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});var Sr,_r=Object.assign||function(Kt){for(var nn=1;nn<arguments.length;nn++){var br=arguments[nn];for(var Sr in br)Object.prototype.hasOwnProperty.call(br,Sr)&&(Kt[Sr]=br[Sr])}return Kt},Lr=(Sr=br(8156))&&Sr.__esModule?Sr:{default:Sr};nn.default=function(Kt){var nn=Kt.fill,br=void 0===nn?"currentColor":nn,Sr=Kt.width,Fr=void 0===Sr?24:Sr,Wr=Kt.height,$r=void 0===Wr?24:Wr,Gr=Kt.style,sa=void 0===Gr?{}:Gr,la=function(Kt,nn){var br={};for(var Sr in Kt)nn.indexOf(Sr)>=0||Object.prototype.hasOwnProperty.call(Kt,Sr)&&(br[Sr]=Kt[Sr]);return br}(Kt,["fill","width","height","style"]);return Lr.default.createElement("svg",_r({viewBox:"0 0 24 24",style:_r({fill:br,width:Fr,height:$r},sa)},la),Lr.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},36939:(Kt,nn,br)=>{"use strict";br.d(nn,{Z:()=>Za});var Sr=br(87462),_r=br(84506),Lr=br(29439),Fr=br(45987),Wr=br(8156),$r=(br(59864),br(86010)),Gr=br(66037),sa=br(79895),la=br(14670),ha=br(88078),xa=br(22775),_a=Wr.forwardRef((function(Kt,nn){var br=Kt.children,la=Kt.classes,_a=Kt.className,Za=Kt.defaultExpanded,Ka=void 0!==Za&&Za,Ja=Kt.disabled,bo=void 0!==Ja&&Ja,xo=Kt.expanded,Oo=Kt.onChange,Eo=Kt.square,So=void 0!==Eo&&Eo,_o=Kt.TransitionComponent,Lo=void 0===_o?Gr.Z:_o,Zo=Kt.TransitionProps,ni=(0,Fr.Z)(Kt,["children","classes","className","defaultExpanded","disabled","expanded","onChange","square","TransitionComponent","TransitionProps"]),ri=(0,xa.Z)({controlled:xo,default:Ka,name:"Accordion",state:"expanded"}),fi=(0,Lr.Z)(ri,2),pi=fi[0],hi=fi[1],mi=Wr.useCallback((function(Kt){hi(!pi),Oo&&Oo(Kt,!pi)}),[pi,Oo,hi]),gi=Wr.Children.toArray(br),bi=(0,_r.Z)(gi),vi=bi[0],yi=bi.slice(1),xi=Wr.useMemo((function(){return{expanded:pi,disabled:bo,toggle:mi}}),[pi,bo,mi]);return Wr.createElement(sa.Z,(0,Sr.Z)({className:(0,$r.default)(la.root,_a,pi&&la.expanded,bo&&la.disabled,!So&&la.rounded),ref:nn,square:So},ni),Wr.createElement(ha.Z.Provider,{value:xi},vi),Wr.createElement(Lo,(0,Sr.Z)({in:pi,timeout:"auto"},Zo),Wr.createElement("div",{"aria-labelledby":vi.props.id,id:vi.props["aria-controls"],role:"region"},yi)))}));const Za=(0,la.Z)((function(Kt){var nn={duration:Kt.transitions.duration.shortest};return{root:{position:"relative",transition:Kt.transitions.create(["margin"],nn),"&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:Kt.palette.divider,transition:Kt.transitions.create(["opacity","background-color"],nn)},"&:first-child":{"&:before":{display:"none"}},"&$expanded":{margin:"16px 0","&:first-child":{marginTop:0},"&:last-child":{marginBottom:0},"&:before":{opacity:0}},"&$expanded + &":{"&:before":{display:"none"}},"&$disabled":{backgroundColor:Kt.palette.action.disabledBackground}},rounded:{borderRadius:0,"&:first-child":{borderTopLeftRadius:Kt.shape.borderRadius,borderTopRightRadius:Kt.shape.borderRadius},"&:last-child":{borderBottomLeftRadius:Kt.shape.borderRadius,borderBottomRightRadius:Kt.shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},expanded:{},disabled:{}}}),{name:"MuiAccordion"})(_a)},88078:(Kt,nn,br)=>{"use strict";br.d(nn,{Z:()=>Sr});const Sr=br(8156).createContext({})},61201:(Kt,nn,br)=>{"use strict";br.d(nn,{Z:()=>Gr});var Sr=br(87462),_r=br(45987),Lr=br(8156),Fr=br(86010),Wr=br(14670),$r=Lr.forwardRef((function(Kt,nn){var br=Kt.classes,Wr=Kt.className,$r=(0,_r.Z)(Kt,["classes","className"]);return Lr.createElement("div",(0,Sr.Z)({className:(0,Fr.default)(br.root,Wr),ref:nn},$r))}));const Gr=(0,Wr.Z)((function(Kt){return{root:{display:"flex",padding:Kt.spacing(1,2,2)}}}),{name:"MuiAccordionDetails"})($r)},50743:(Kt,nn,br)=>{"use strict";br.d(nn,{Z:()=>ha});var Sr=br(87462),_r=br(45987),Lr=br(8156),Fr=br(86010),Wr=br(32467),$r=br(17812),Gr=br(14670),sa=br(88078),la=Lr.forwardRef((function(Kt,nn){var br=Kt.children,Gr=Kt.classes,la=Kt.className,ha=Kt.expandIcon,xa=Kt.focusVisibleClassName,_a=Kt.IconButtonProps,Za=void 0===_a?{}:_a,Ka=Kt.onClick,Ja=(0,_r.Z)(Kt,["children","classes","className","expandIcon","focusVisibleClassName","IconButtonProps","onClick"]),bo=Lr.useContext(sa.Z),xo=bo.disabled,Oo=void 0!==xo&&xo,Eo=bo.expanded,So=bo.toggle;return Lr.createElement(Wr.Z,(0,Sr.Z)({focusRipple:!1,disableRipple:!0,disabled:Oo,component:"div","aria-expanded":Eo,className:(0,Fr.default)(Gr.root,la,Oo&&Gr.disabled,Eo&&Gr.expanded),focusVisibleClassName:(0,Fr.default)(Gr.focusVisible,Gr.focused,xa),onClick:function(Kt){So&&So(Kt),Ka&&Ka(Kt)},ref:nn},Ja),Lr.createElement("div",{className:(0,Fr.default)(Gr.content,Eo&&Gr.expanded)},br),ha&&Lr.createElement($r.Z,(0,Sr.Z)({className:(0,Fr.default)(Gr.expandIcon,Eo&&Gr.expanded),edge:"end",component:"div",tabIndex:null,role:null,"aria-hidden":!0},Za),ha))}));const ha=(0,Gr.Z)((function(Kt){var nn={duration:Kt.transitions.duration.shortest};return{root:{display:"flex",minHeight:48,transition:Kt.transitions.create(["min-height","background-color"],nn),padding:Kt.spacing(0,2),"&:hover:not($disabled)":{cursor:"pointer"},"&$expanded":{minHeight:64},"&$focused, &$focusVisible":{backgroundColor:Kt.palette.action.focus},"&$disabled":{opacity:Kt.palette.action.disabledOpacity}},expanded:{},focused:{},focusVisible:{},disabled:{},content:{display:"flex",flexGrow:1,transition:Kt.transitions.create(["margin"],nn),margin:"12px 0","&$expanded":{margin:"20px 0"}},expandIcon:{transform:"rotate(0deg)",transition:Kt.transitions.create("transform",nn),"&:hover":{backgroundColor:"transparent"},"&$expanded":{transform:"rotate(180deg)"}}}}),{name:"MuiAccordionSummary"})(la)},282:(Kt,nn,br)=>{"use strict";br.d(nn,{Z:()=>ha});var Sr=br(45987),_r=br(87462),Lr=br(8156),Fr=br(86010),Wr=br(14670),$r=br(59693),Gr=br(32467),sa=br(93871),la=Lr.forwardRef((function(Kt,nn){var br=Kt.children,Wr=Kt.classes,$r=Kt.className,la=Kt.color,ha=void 0===la?"default":la,xa=Kt.component,_a=void 0===xa?"button":xa,Za=Kt.disabled,Ka=void 0!==Za&&Za,Ja=Kt.disableElevation,bo=void 0!==Ja&&Ja,xo=Kt.disableFocusRipple,Oo=void 0!==xo&&xo,Eo=Kt.endIcon,So=Kt.focusVisibleClassName,_o=Kt.fullWidth,Lo=void 0!==_o&&_o,Zo=Kt.size,ni=void 0===Zo?"medium":Zo,ri=Kt.startIcon,fi=Kt.type,pi=void 0===fi?"button":fi,hi=Kt.variant,mi=void 0===hi?"text":hi,gi=(0,Sr.Z)(Kt,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),bi=ri&&Lr.createElement("span",{className:(0,Fr.default)(Wr.startIcon,Wr["iconSize".concat((0,sa.Z)(ni))])},ri),vi=Eo&&Lr.createElement("span",{className:(0,Fr.default)(Wr.endIcon,Wr["iconSize".concat((0,sa.Z)(ni))])},Eo);return Lr.createElement(Gr.Z,(0,_r.Z)({className:(0,Fr.default)(Wr.root,Wr[mi],$r,"inherit"===ha?Wr.colorInherit:"default"!==ha&&Wr["".concat(mi).concat((0,sa.Z)(ha))],"medium"!==ni&&[Wr["".concat(mi,"Size").concat((0,sa.Z)(ni))],Wr["size".concat((0,sa.Z)(ni))]],bo&&Wr.disableElevation,Ka&&Wr.disabled,Lo&&Wr.fullWidth),component:_a,disabled:Ka,focusRipple:!Oo,focusVisibleClassName:(0,Fr.default)(Wr.focusVisible,So),ref:nn,type:pi},gi),Lr.createElement("span",{className:Wr.label},bi,br,vi))}));const ha=(0,Wr.Z)((function(Kt){return{root:(0,_r.Z)({},Kt.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:Kt.shape.borderRadius,color:Kt.palette.text.primary,transition:Kt.transitions.create(["background-color","box-shadow","border"],{duration:Kt.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,$r.Fq)(Kt.palette.text.primary,Kt.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:Kt.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:Kt.palette.primary.main,"&:hover":{backgroundColor:(0,$r.Fq)(Kt.palette.primary.main,Kt.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:Kt.palette.secondary.main,"&:hover":{backgroundColor:(0,$r.Fq)(Kt.palette.secondary.main,Kt.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===Kt.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(Kt.palette.action.disabledBackground)}},outlinedPrimary:{color:Kt.palette.primary.main,border:"1px solid ".concat((0,$r.Fq)(Kt.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(Kt.palette.primary.main),backgroundColor:(0,$r.Fq)(Kt.palette.primary.main,Kt.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:Kt.palette.secondary.main,border:"1px solid ".concat((0,$r.Fq)(Kt.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(Kt.palette.secondary.main),backgroundColor:(0,$r.Fq)(Kt.palette.secondary.main,Kt.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(Kt.palette.action.disabled)}},contained:{color:Kt.palette.getContrastText(Kt.palette.grey[300]),backgroundColor:Kt.palette.grey[300],boxShadow:Kt.shadows[2],"&:hover":{backgroundColor:Kt.palette.grey.A100,boxShadow:Kt.shadows[4],"@media (hover: none)":{boxShadow:Kt.shadows[2],backgroundColor:Kt.palette.grey[300]},"&$disabled":{backgroundColor:Kt.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:Kt.shadows[6]},"&:active":{boxShadow:Kt.shadows[8]},"&$disabled":{color:Kt.palette.action.disabled,boxShadow:Kt.shadows[0],backgroundColor:Kt.palette.action.disabledBackground}},containedPrimary:{color:Kt.palette.primary.contrastText,backgroundColor:Kt.palette.primary.main,"&:hover":{backgroundColor:Kt.palette.primary.dark,"@media (hover: none)":{backgroundColor:Kt.palette.primary.main}}},containedSecondary:{color:Kt.palette.secondary.contrastText,backgroundColor:Kt.palette.secondary.main,"&:hover":{backgroundColor:Kt.palette.secondary.dark,"@media (hover: none)":{backgroundColor:Kt.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:Kt.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:Kt.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:Kt.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:Kt.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:Kt.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:Kt.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(la)},28482:(Kt,nn,br)=>{"use strict";br.r(nn),br.d(nn,{default:()=>Sr.Z});var Sr=br(282)},32467:(Kt,nn,br)=>{"use strict";br.d(nn,{Z:()=>bo});var Sr=br(87462),_r=br(45987),Lr=br(8156),Fr=br(47111),Wr=br(86010),$r=br(17294),Gr=br(55192),sa=br(14670),la=br(24896),ha=br(93433),xa=br(94537),_a="undefined"==typeof window?Lr.useEffect:Lr.useLayoutEffect;const m=function(Kt){var nn=Kt.classes,br=Kt.pulsate,Sr=void 0!==br&&br,_r=Kt.rippleX,Fr=Kt.rippleY,$r=Kt.rippleSize,sa=Kt.in,la=Kt.onExited,ha=void 0===la?function(){}:la,xa=Kt.timeout,Za=Lr.useState(!1),Ka=Za[0],Ja=Za[1],bo=(0,Wr.default)(nn.ripple,nn.rippleVisible,Sr&&nn.ripplePulsate),xo={width:$r,height:$r,top:-$r/2+Fr,left:-$r/2+_r},Oo=(0,Wr.default)(nn.child,Ka&&nn.childLeaving,Sr&&nn.childPulsate),Eo=(0,Gr.Z)(ha);return _a((function(){if(!sa){Ja(!0);var Kt=setTimeout(Eo,xa);return function(){clearTimeout(Kt)}}}),[Eo,sa,xa]),Lr.createElement("span",{className:bo,style:xo},Lr.createElement("span",{className:Oo}))};var Za=Lr.forwardRef((function(Kt,nn){var br=Kt.center,Fr=void 0!==br&&br,$r=Kt.classes,Gr=Kt.className,sa=(0,_r.Z)(Kt,["center","classes","className"]),la=Lr.useState([]),_a=la[0],Za=la[1],Ka=Lr.useRef(0),Ja=Lr.useRef(null);Lr.useEffect((function(){Ja.current&&(Ja.current(),Ja.current=null)}),[_a]);var bo=Lr.useRef(!1),xo=Lr.useRef(null),Oo=Lr.useRef(null),Eo=Lr.useRef(null);Lr.useEffect((function(){return function(){clearTimeout(xo.current)}}),[]);var So=Lr.useCallback((function(Kt){var nn=Kt.pulsate,br=Kt.rippleX,Sr=Kt.rippleY,_r=Kt.rippleSize,Fr=Kt.cb;Za((function(Kt){return[].concat((0,ha.Z)(Kt),[Lr.createElement(m,{key:Ka.current,classes:$r,timeout:550,pulsate:nn,rippleX:br,rippleY:Sr,rippleSize:_r})])})),Ka.current+=1,Ja.current=Fr}),[$r]),_o=Lr.useCallback((function(){var Kt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},nn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},br=arguments.length>2?arguments[2]:void 0,Sr=nn.pulsate,_r=void 0!==Sr&&Sr,Lr=nn.center,Wr=void 0===Lr?Fr||nn.pulsate:Lr,$r=nn.fakeElement,Gr=void 0!==$r&&$r;if("mousedown"===Kt.type&&bo.current)bo.current=!1;else{"touchstart"===Kt.type&&(bo.current=!0);var sa,la,ha,xa=Gr?null:Eo.current,_a=xa?xa.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(Wr||0===Kt.clientX&&0===Kt.clientY||!Kt.clientX&&!Kt.touches)sa=Math.round(_a.width/2),la=Math.round(_a.height/2);else{var Za=Kt.touches?Kt.touches[0]:Kt,Ka=Za.clientX,Ja=Za.clientY;sa=Math.round(Ka-_a.left),la=Math.round(Ja-_a.top)}if(Wr)(ha=Math.sqrt((2*Math.pow(_a.width,2)+Math.pow(_a.height,2))/3))%2==0&&(ha+=1);else{var _o=2*Math.max(Math.abs((xa?xa.clientWidth:0)-sa),sa)+2,Lo=2*Math.max(Math.abs((xa?xa.clientHeight:0)-la),la)+2;ha=Math.sqrt(Math.pow(_o,2)+Math.pow(Lo,2))}Kt.touches?null===Oo.current&&(Oo.current=function(){So({pulsate:_r,rippleX:sa,rippleY:la,rippleSize:ha,cb:br})},xo.current=setTimeout((function(){Oo.current&&(Oo.current(),Oo.current=null)}),80)):So({pulsate:_r,rippleX:sa,rippleY:la,rippleSize:ha,cb:br})}}),[Fr,So]),Lo=Lr.useCallback((function(){_o({},{pulsate:!0})}),[_o]),Zo=Lr.useCallback((function(Kt,nn){if(clearTimeout(xo.current),"touchend"===Kt.type&&Oo.current)return Kt.persist(),Oo.current(),Oo.current=null,void(xo.current=setTimeout((function(){Zo(Kt,nn)})));Oo.current=null,Za((function(Kt){return Kt.length>0?Kt.slice(1):Kt})),Ja.current=nn}),[]);return Lr.useImperativeHandle(nn,(function(){return{pulsate:Lo,start:_o,stop:Zo}}),[Lo,_o,Zo]),Lr.createElement("span",(0,Sr.Z)({className:(0,Wr.default)($r.root,Gr),ref:Eo},sa),Lr.createElement(xa.Z,{component:null,exit:!0},_a))}));const Ka=(0,sa.Z)((function(Kt){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(Kt.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(Kt.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(Kt.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(Kt.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"})(Lr.memo(Za));var Ja=Lr.forwardRef((function(Kt,nn){var br=Kt.action,sa=Kt.buttonRef,ha=Kt.centerRipple,xa=void 0!==ha&&ha,_a=Kt.children,Za=Kt.classes,Ja=Kt.className,bo=Kt.component,xo=void 0===bo?"button":bo,Oo=Kt.disabled,Eo=void 0!==Oo&&Oo,So=Kt.disableRipple,_o=void 0!==So&&So,Lo=Kt.disableTouchRipple,Zo=void 0!==Lo&&Lo,ni=Kt.focusRipple,ri=void 0!==ni&&ni,fi=Kt.focusVisibleClassName,pi=Kt.onBlur,hi=Kt.onClick,mi=Kt.onFocus,gi=Kt.onFocusVisible,bi=Kt.onKeyDown,vi=Kt.onKeyUp,yi=Kt.onMouseDown,xi=Kt.onMouseLeave,wi=Kt.onMouseUp,Oi=Kt.onTouchEnd,Ei=Kt.onTouchMove,Si=Kt.onTouchStart,Ci=Kt.onDragLeave,_i=Kt.tabIndex,ki=void 0===_i?0:_i,Pi=Kt.TouchRippleProps,Ti=Kt.type,Mi=void 0===Ti?"button":Ti,Di=(0,_r.Z)(Kt,["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"]),Ni=Lr.useRef(null),Ii=Lr.useRef(null),Ai=Lr.useState(!1),Ri=Ai[0],ji=Ai[1];Eo&&Ri&&ji(!1);var Li=(0,la.Z)(),Zi=Li.isFocusVisible,zi=Li.onBlurVisible,Fi=Li.ref;function re(Kt,nn){var br=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Zo;return(0,Gr.Z)((function(Sr){return nn&&nn(Sr),!br&&Ii.current&&Ii.current[Kt](Sr),!0}))}Lr.useImperativeHandle(br,(function(){return{focusVisible:function(){ji(!0),Ni.current.focus()}}}),[]),Lr.useEffect((function(){Ri&&ri&&!_o&&Ii.current.pulsate()}),[_o,ri,Ri]);var Bi=re("start",yi),Wi=re("stop",Ci),Hi=re("stop",wi),Vi=re("stop",(function(Kt){Ri&&Kt.preventDefault(),xi&&xi(Kt)})),Ui=re("start",Si),Yi=re("stop",Oi),$i=re("stop",Ei),Gi=re("stop",(function(Kt){Ri&&(zi(Kt),ji(!1)),pi&&pi(Kt)}),!1),qi=(0,Gr.Z)((function(Kt){Ni.current||(Ni.current=Kt.currentTarget),Zi(Kt)&&(ji(!0),gi&&gi(Kt)),mi&&mi(Kt)})),pe=function(){var Kt=Fr.findDOMNode(Ni.current);return xo&&"button"!==xo&&!("A"===Kt.tagName&&Kt.href)},Ki=Lr.useRef(!1),Xi=(0,Gr.Z)((function(Kt){ri&&!Ki.current&&Ri&&Ii.current&&" "===Kt.key&&(Ki.current=!0,Kt.persist(),Ii.current.stop(Kt,(function(){Ii.current.start(Kt)}))),Kt.target===Kt.currentTarget&&pe()&&" "===Kt.key&&Kt.preventDefault(),bi&&bi(Kt),Kt.target===Kt.currentTarget&&pe()&&"Enter"===Kt.key&&!Eo&&(Kt.preventDefault(),hi&&hi(Kt))})),Qi=(0,Gr.Z)((function(Kt){ri&&" "===Kt.key&&Ii.current&&Ri&&!Kt.defaultPrevented&&(Ki.current=!1,Kt.persist(),Ii.current.stop(Kt,(function(){Ii.current.pulsate(Kt)}))),vi&&vi(Kt),hi&&Kt.target===Kt.currentTarget&&pe()&&" "===Kt.key&&!Kt.defaultPrevented&&hi(Kt)})),Ji=xo;"button"===Ji&&Di.href&&(Ji="a");var es={};"button"===Ji?(es.type=Mi,es.disabled=Eo):("a"===Ji&&Di.href||(es.role="button"),es["aria-disabled"]=Eo);var ts=(0,$r.Z)(sa,nn),ns=(0,$r.Z)(Fi,Ni),rs=(0,$r.Z)(ts,ns),as=Lr.useState(!1),os=as[0],is=as[1];Lr.useEffect((function(){is(!0)}),[]);var ss=os&&!_o&&!Eo;return Lr.createElement(Ji,(0,Sr.Z)({className:(0,Wr.default)(Za.root,Ja,Ri&&[Za.focusVisible,fi],Eo&&Za.disabled),onBlur:Gi,onClick:hi,onFocus:qi,onKeyDown:Xi,onKeyUp:Qi,onMouseDown:Bi,onMouseLeave:Vi,onMouseUp:Hi,onDragLeave:Wi,onTouchEnd:Yi,onTouchMove:$i,onTouchStart:Ui,ref:rs,tabIndex:Eo?-1:ki},es,Di),_a,ss?Lr.createElement(Ka,(0,Sr.Z)({ref:Ii,center:xa},Pi)):null)}));const bo=(0,sa.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"})(Ja)},27145:(Kt,nn,br)=>{"use strict";br.d(nn,{Z:()=>bo});var Sr=br(87462),_r=br(45987),Lr=br(8156),Fr=br(86010),Wr=br(56608),$r=br(77976),Gr=br(41216),sa=br(59693),la=br(22818),ha=br(93871),xa=br(14670),_a=Lr.createElement(Gr.Z,null),Za=Lr.createElement($r.Z,null),Ka=Lr.createElement(la.Z,null),Ja=Lr.forwardRef((function(Kt,nn){var br=Kt.checkedIcon,$r=void 0===br?_a:br,Gr=Kt.classes,sa=Kt.color,la=void 0===sa?"secondary":sa,xa=Kt.icon,Ja=void 0===xa?Za:xa,bo=Kt.indeterminate,xo=void 0!==bo&&bo,Oo=Kt.indeterminateIcon,Eo=void 0===Oo?Ka:Oo,So=Kt.inputProps,_o=Kt.size,Lo=void 0===_o?"medium":_o,Zo=(0,_r.Z)(Kt,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","size"]),ni=xo?Eo:Ja,ri=xo?Eo:$r;return Lr.createElement(Wr.Z,(0,Sr.Z)({type:"checkbox",classes:{root:(0,Fr.default)(Gr.root,Gr["color".concat((0,ha.Z)(la))],xo&&Gr.indeterminate),checked:Gr.checked,disabled:Gr.disabled},color:la,inputProps:(0,Sr.Z)({"data-indeterminate":xo},So),icon:Lr.cloneElement(ni,{fontSize:void 0===ni.props.fontSize&&"small"===Lo?Lo:ni.props.fontSize}),checkedIcon:Lr.cloneElement(ri,{fontSize:void 0===ri.props.fontSize&&"small"===Lo?Lo:ri.props.fontSize}),ref:nn},Zo))}));const bo=(0,xa.Z)((function(Kt){return{root:{color:Kt.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:Kt.palette.primary.main,"&:hover":{backgroundColor:(0,sa.Fq)(Kt.palette.primary.main,Kt.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:Kt.palette.action.disabled}},colorSecondary:{"&$checked":{color:Kt.palette.secondary.main,"&:hover":{backgroundColor:(0,sa.Fq)(Kt.palette.secondary.main,Kt.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:Kt.palette.action.disabled}}}}),{name:"MuiCheckbox"})(Ja)},99069:(Kt,nn,br)=>{"use strict";br.d(nn,{Z:()=>_a});var Sr=br(87462),_r=br(45987),Lr=br(8156),Fr=br(86010),Wr=br(36740),$r=br(14670),Gr=br(59693),sa=br(17294),la=br(93871),ha=br(32467);function p(Kt){return"Backspace"===Kt.key||"Delete"===Kt.key}var xa=Lr.forwardRef((function(Kt,nn){var br=Kt.avatar,$r=Kt.classes,Gr=Kt.className,xa=Kt.clickable,_a=Kt.color,Za=void 0===_a?"default":_a,Ka=Kt.component,Ja=Kt.deleteIcon,bo=Kt.disabled,xo=void 0!==bo&&bo,Oo=Kt.icon,Eo=Kt.label,So=Kt.onClick,_o=Kt.onDelete,Lo=Kt.onKeyDown,Zo=Kt.onKeyUp,ni=Kt.size,ri=void 0===ni?"medium":ni,fi=Kt.variant,pi=void 0===fi?"default":fi,hi=(0,_r.Z)(Kt,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),mi=Lr.useRef(null),gi=(0,sa.Z)(mi,nn),A=function(Kt){Kt.stopPropagation(),_o&&_o(Kt)},bi=!(!1===xa||!So)||xa,vi="small"===ri,yi=Ka||(bi?ha.Z:"div"),xi=yi===ha.Z?{component:"div"}:{},wi=null;if(_o){var Oi=(0,Fr.default)("default"!==Za&&("default"===pi?$r["deleteIconColor".concat((0,la.Z)(Za))]:$r["deleteIconOutlinedColor".concat((0,la.Z)(Za))]),vi&&$r.deleteIconSmall);wi=Ja&&Lr.isValidElement(Ja)?Lr.cloneElement(Ja,{className:(0,Fr.default)(Ja.props.className,$r.deleteIcon,Oi),onClick:A}):Lr.createElement(Wr.Z,{className:(0,Fr.default)($r.deleteIcon,Oi),onClick:A})}var Ei=null;br&&Lr.isValidElement(br)&&(Ei=Lr.cloneElement(br,{className:(0,Fr.default)($r.avatar,br.props.className,vi&&$r.avatarSmall,"default"!==Za&&$r["avatarColor".concat((0,la.Z)(Za))])}));var Si=null;return Oo&&Lr.isValidElement(Oo)&&(Si=Lr.cloneElement(Oo,{className:(0,Fr.default)($r.icon,Oo.props.className,vi&&$r.iconSmall,"default"!==Za&&$r["iconColor".concat((0,la.Z)(Za))])})),Lr.createElement(yi,(0,Sr.Z)({role:bi||_o?"button":void 0,className:(0,Fr.default)($r.root,Gr,"default"!==Za&&[$r["color".concat((0,la.Z)(Za))],bi&&$r["clickableColor".concat((0,la.Z)(Za))],_o&&$r["deletableColor".concat((0,la.Z)(Za))]],"default"!==pi&&[$r.outlined,{primary:$r.outlinedPrimary,secondary:$r.outlinedSecondary}[Za]],xo&&$r.disabled,vi&&$r.sizeSmall,bi&&$r.clickable,_o&&$r.deletable),"aria-disabled":!!xo||void 0,tabIndex:bi||_o?0:void 0,onClick:So,onKeyDown:function(Kt){Kt.currentTarget===Kt.target&&p(Kt)&&Kt.preventDefault(),Lo&&Lo(Kt)},onKeyUp:function(Kt){Kt.currentTarget===Kt.target&&(_o&&p(Kt)?_o(Kt):"Escape"===Kt.key&&mi.current&&mi.current.blur()),Zo&&Zo(Kt)},ref:gi},xi,hi),Ei||Si,Lr.createElement("span",{className:(0,Fr.default)($r.label,vi&&$r.labelSmall)},Eo),wi)}));const _a=(0,$r.Z)((function(Kt){var nn="light"===Kt.palette.type?Kt.palette.grey[300]:Kt.palette.grey[700],br=(0,Gr.Fq)(Kt.palette.text.primary,.26);return{root:{fontFamily:Kt.typography.fontFamily,fontSize:Kt.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:Kt.palette.getContrastText(nn),backgroundColor:nn,borderRadius:16,whiteSpace:"nowrap",transition:Kt.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"===Kt.palette.type?Kt.palette.grey[700]:Kt.palette.grey[300],fontSize:Kt.typography.pxToRem(12)},"& $avatarColorPrimary":{color:Kt.palette.primary.contrastText,backgroundColor:Kt.palette.primary.dark},"& $avatarColorSecondary":{color:Kt.palette.secondary.contrastText,backgroundColor:Kt.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:Kt.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:Kt.palette.primary.main,color:Kt.palette.primary.contrastText},colorSecondary:{backgroundColor:Kt.palette.secondary.main,color:Kt.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:(0,Gr._4)(nn,.08)},"&:active":{boxShadow:Kt.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:(0,Gr._4)(Kt.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:(0,Gr._4)(Kt.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:(0,Gr._4)(nn,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:(0,Gr._4)(Kt.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:(0,Gr._4)(Kt.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat("light"===Kt.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,Gr.Fq)(Kt.palette.text.primary,Kt.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:Kt.palette.primary.main,border:"1px solid ".concat(Kt.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,Gr.Fq)(Kt.palette.primary.main,Kt.palette.action.hoverOpacity)}},outlinedSecondary:{color:Kt.palette.secondary.main,border:"1px solid ".concat(Kt.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,Gr.Fq)(Kt.palette.secondary.main,Kt.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:"light"===Kt.palette.type?Kt.palette.grey[700]:Kt.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:br,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:(0,Gr.Fq)(br,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:(0,Gr.Fq)(Kt.palette.primary.contrastText,.7),"&:hover, &:active":{color:Kt.palette.primary.contrastText}},deleteIconColorSecondary:{color:(0,Gr.Fq)(Kt.palette.secondary.contrastText,.7),"&:hover, &:active":{color:Kt.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:(0,Gr.Fq)(Kt.palette.primary.main,.7),"&:hover, &:active":{color:Kt.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:(0,Gr.Fq)(Kt.palette.secondary.main,.7),"&:hover, &:active":{color:Kt.palette.secondary.main}}}}),{name:"MuiChip"})(xa)},68674:(Kt,nn,br)=>{"use strict";br.r(nn),br.d(nn,{default:()=>la});var Sr=br(87462),_r=br(45987),Lr=br(8156),Fr=br(86010),Wr=br(14670),$r=br(93871),Gr=44,sa=Lr.forwardRef((function(Kt,nn){var br=Kt.classes,Wr=Kt.className,sa=Kt.color,la=void 0===sa?"primary":sa,ha=Kt.disableShrink,xa=void 0!==ha&&ha,_a=Kt.size,Za=void 0===_a?40:_a,Ka=Kt.style,Ja=Kt.thickness,bo=void 0===Ja?3.6:Ja,xo=Kt.value,Oo=void 0===xo?0:xo,Eo=Kt.variant,So=void 0===Eo?"indeterminate":Eo,_o=(0,_r.Z)(Kt,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),Lo={},Zo={},ni={};if("determinate"===So||"static"===So){var ri=2*Math.PI*((Gr-bo)/2);Lo.strokeDasharray=ri.toFixed(3),ni["aria-valuenow"]=Math.round(Oo),Lo.strokeDashoffset="".concat(((100-Oo)/100*ri).toFixed(3),"px"),Zo.transform="rotate(-90deg)"}return Lr.createElement("div",(0,Sr.Z)({className:(0,Fr.default)(br.root,Wr,"inherit"!==la&&br["color".concat((0,$r.Z)(la))],{determinate:br.determinate,indeterminate:br.indeterminate,static:br.static}[So]),style:(0,Sr.Z)({width:Za,height:Za},Zo,Ka),ref:nn,role:"progressbar"},ni,_o),Lr.createElement("svg",{className:br.svg,viewBox:"".concat(22," ").concat(22," ").concat(Gr," ").concat(Gr)},Lr.createElement("circle",{className:(0,Fr.default)(br.circle,xa&&br.circleDisableShrink,{determinate:br.circleDeterminate,indeterminate:br.circleIndeterminate,static:br.circleStatic}[So]),style:Lo,cx:Gr,cy:Gr,r:(Gr-bo)/2,fill:"none",strokeWidth:bo})))}));const la=(0,Wr.Z)((function(Kt){return{root:{display:"inline-block"},static:{transition:Kt.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:Kt.transitions.create("transform")},colorPrimary:{color:Kt.palette.primary.main},colorSecondary:{color:Kt.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:Kt.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:Kt.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(sa)},52795:(Kt,nn,br)=>{"use strict";br.d(nn,{Z:()=>c});var Sr=br(8156),_r=br(47111),Lr=br(30626),Fr=br(17294),Wr=br(55192);function l(Kt){return Kt.substring(2).toLowerCase()}const c=function(Kt){var nn=Kt.children,br=Kt.disableReactTree,$r=void 0!==br&&br,Gr=Kt.mouseEvent,sa=void 0===Gr?"onClick":Gr,la=Kt.onClickAway,ha=Kt.touchEvent,xa=void 0===ha?"onTouchEnd":ha,_a=Sr.useRef(!1),Za=Sr.useRef(null),Ka=Sr.useRef(!1),Ja=Sr.useRef(!1);Sr.useEffect((function(){return setTimeout((function(){Ka.current=!0}),0),function(){Ka.current=!1}}),[]);var bo=Sr.useCallback((function(Kt){Za.current=_r.findDOMNode(Kt)}),[]),xo=(0,Fr.Z)(nn.ref,bo),Oo=(0,Wr.Z)((function(Kt){var nn=Ja.current;Ja.current=!1,Ka.current&&Za.current&&!function(Kt){return document.documentElement.clientWidth<Kt.clientX||document.documentElement.clientHeight<Kt.clientY}(Kt)&&(_a.current?_a.current=!1:(Kt.composedPath?Kt.composedPath().indexOf(Za.current)>-1:!(0,Lr.Z)(Za.current).documentElement.contains(Kt.target)||Za.current.contains(Kt.target))||!$r&&nn||la(Kt))})),O=function(Kt){return function(br){Ja.current=!0;var Sr=nn.props[Kt];Sr&&Sr(br)}},Eo={ref:xo};return!1!==xa&&(Eo[xa]=O(xa)),Sr.useEffect((function(){if(!1!==xa){var Kt=l(xa),nn=(0,Lr.Z)(Za.current),n=function(){_a.current=!0};return nn.addEventListener(Kt,Oo),nn.addEventListener("touchmove",n),function(){nn.removeEventListener(Kt,Oo),nn.removeEventListener("touchmove",n)}}}),[Oo,xa]),!1!==sa&&(Eo[sa]=O(sa)),Sr.useEffect((function(){if(!1!==sa){var Kt=l(sa),nn=(0,Lr.Z)(Za.current);return nn.addEventListener(Kt,Oo),function(){nn.removeEventListener(Kt,Oo)}}}),[Oo,sa]),Sr.createElement(Sr.Fragment,null,Sr.cloneElement(nn,Eo))}},66037:(Kt,nn,br)=>{"use strict";br.d(nn,{Z:()=>Za});var Sr=br(87462),_r=br(29439),Lr=br(45987),Fr=br(8156),Wr=br(86010),$r=br(96630),Gr=br(14670),sa=br(43366),la=br(5653),ha=br(8920),xa=br(17294),_a=Fr.forwardRef((function(Kt,nn){var br=Kt.children,Gr=Kt.classes,_a=Kt.className,Za=Kt.collapsedHeight,Ka=Kt.collapsedSize,Ja=void 0===Ka?"0px":Ka,bo=Kt.component,xo=void 0===bo?"div":bo,Oo=Kt.disableStrictModeCompat,Eo=void 0!==Oo&&Oo,So=Kt.in,_o=Kt.onEnter,Lo=Kt.onEntered,Zo=Kt.onEntering,ni=Kt.onExit,ri=Kt.onExited,fi=Kt.onExiting,pi=Kt.style,hi=Kt.timeout,mi=void 0===hi?sa.x9.standard:hi,gi=Kt.TransitionComponent,bi=void 0===gi?$r.ZP:gi,vi=(0,Lr.Z)(Kt,["children","classes","className","collapsedHeight","collapsedSize","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),yi=(0,ha.Z)(),xi=Fr.useRef(),wi=Fr.useRef(null),Oi=Fr.useRef(),Ei="number"==typeof(Za||Ja)?"".concat(Za||Ja,"px"):Za||Ja;Fr.useEffect((function(){return function(){clearTimeout(xi.current)}}),[]);var Si=yi.unstable_strictMode&&!Eo,Ci=Fr.useRef(null),_i=(0,xa.Z)(nn,Si?Ci:void 0),H=function(Kt){return function(nn,br){if(Kt){var Sr=Si?[Ci.current,nn]:[nn,br],Lr=(0,_r.Z)(Sr,2),Fr=Lr[0],Wr=Lr[1];void 0===Wr?Kt(Fr):Kt(Fr,Wr)}}},ki=H((function(Kt,nn){Kt.style.height=Ei,_o&&_o(Kt,nn)})),Pi=H((function(Kt,nn){var br=wi.current?wi.current.clientHeight:0,Sr=(0,la.C)({style:pi,timeout:mi},{mode:"enter"}).duration;if("auto"===mi){var _r=yi.transitions.getAutoHeightDuration(br);Kt.style.transitionDuration="".concat(_r,"ms"),Oi.current=_r}else Kt.style.transitionDuration="string"==typeof Sr?Sr:"".concat(Sr,"ms");Kt.style.height="".concat(br,"px"),Zo&&Zo(Kt,nn)})),Ti=H((function(Kt,nn){Kt.style.height="auto",Lo&&Lo(Kt,nn)})),Mi=H((function(Kt){var nn=wi.current?wi.current.clientHeight:0;Kt.style.height="".concat(nn,"px"),ni&&ni(Kt)})),Di=H(ri),Ni=H((function(Kt){var nn=wi.current?wi.current.clientHeight:0,br=(0,la.C)({style:pi,timeout:mi},{mode:"exit"}).duration;if("auto"===mi){var Sr=yi.transitions.getAutoHeightDuration(nn);Kt.style.transitionDuration="".concat(Sr,"ms"),Oi.current=Sr}else Kt.style.transitionDuration="string"==typeof br?br:"".concat(br,"ms");Kt.style.height=Ei,fi&&fi(Kt)}));return Fr.createElement(bi,(0,Sr.Z)({in:So,onEnter:ki,onEntered:Ti,onEntering:Pi,onExit:Mi,onExited:Di,onExiting:Ni,addEndListener:function(Kt,nn){var br=Si?Kt:nn;"auto"===mi&&(xi.current=setTimeout(br,Oi.current||0))},nodeRef:Si?Ci:void 0,timeout:"auto"===mi?null:mi},vi),(function(Kt,nn){return Fr.createElement(xo,(0,Sr.Z)({className:(0,Wr.default)(Gr.root,Gr.container,_a,{entered:Gr.entered,exited:!So&&"0px"===Ei&&Gr.hidden}[Kt]),style:(0,Sr.Z)({minHeight:Ei},pi),ref:_i},nn),Fr.createElement("div",{className:Gr.wrapper,ref:wi},Fr.createElement("div",{className:Gr.wrapperInner},br)))}))}));_a.muiSupportAuto=!0;const Za=(0,Gr.Z)((function(Kt){return{root:{height:0,overflow:"hidden",transition:Kt.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(_a)},75116:(Kt,nn,br)=>{"use strict";br.r(nn),br.d(nn,{default:()=>Zo});var Sr=br(87462),_r=br(45987),Lr=br(4942),Fr=br(8156),Wr=br(86010),$r=br(14670),Gr=br(93871),sa=br(1182),la=br(29439),ha=br(96630),xa=br(43366),_a=br(8920),Za=br(5653),Ka=br(17294),Ja={entering:{opacity:1},entered:{opacity:1}},bo={enter:xa.x9.enteringScreen,exit:xa.x9.leavingScreen};const xo=Fr.forwardRef((function(Kt,nn){var br=Kt.children,Lr=Kt.disableStrictModeCompat,Wr=void 0!==Lr&&Lr,$r=Kt.in,Gr=Kt.onEnter,sa=Kt.onEntered,xa=Kt.onEntering,xo=Kt.onExit,Oo=Kt.onExited,Eo=Kt.onExiting,So=Kt.style,_o=Kt.TransitionComponent,Lo=void 0===_o?ha.ZP:_o,Zo=Kt.timeout,ni=void 0===Zo?bo:Zo,ri=(0,_r.Z)(Kt,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),fi=(0,_a.Z)(),pi=fi.unstable_strictMode&&!Wr,hi=Fr.useRef(null),mi=(0,Ka.Z)(br.ref,nn),gi=(0,Ka.Z)(pi?hi:void 0,mi),I=function(Kt){return function(nn,br){if(Kt){var Sr=pi?[hi.current,nn]:[nn,br],_r=(0,la.Z)(Sr,2),Lr=_r[0],Fr=_r[1];void 0===Fr?Kt(Lr):Kt(Lr,Fr)}}},bi=I(xa),vi=I((function(Kt,nn){(0,Za.n)(Kt);var br=(0,Za.C)({style:So,timeout:ni},{mode:"enter"});Kt.style.webkitTransition=fi.transitions.create("opacity",br),Kt.style.transition=fi.transitions.create("opacity",br),Gr&&Gr(Kt,nn)})),yi=I(sa),xi=I(Eo),wi=I((function(Kt){var nn=(0,Za.C)({style:So,timeout:ni},{mode:"exit"});Kt.style.webkitTransition=fi.transitions.create("opacity",nn),Kt.style.transition=fi.transitions.create("opacity",nn),xo&&xo(Kt)})),Oi=I(Oo);return Fr.createElement(Lo,(0,Sr.Z)({appear:!0,in:$r,nodeRef:pi?hi:void 0,onEnter:vi,onEntered:yi,onEntering:bi,onExi