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