aiware-js 1.0.0-master.878 → 1.0.0-master.879
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/js-core.esm.js +3 -3
- package/js-core.esm.js.gz +0 -0
- package/js-core.esm31.js +1 -1
- package/js-core.esm31.js.gz +0 -0
- package/js-core.umd.js +148 -148
- package/js-core.umd.js.gz +0 -0
- package/locales/es.json +1 -1
- package/locales/fr.json +1 -1
- package/package.json +1 -1
package/js-core.esm.js
CHANGED
|
@@ -1345,7 +1345,7 @@ createScheduledJob(input:{
|
|
|
1345
1345
|
getUrl
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
|
-
`,operationName:"getUrl",variables:e},r)),t=e.getSignedWritableUrl["url"],n={method:"PUT",headers:{"Content-Type":i.type,"X-Veritone-Application":"aiware-sdk"},body:i};try{return yield fetch(t,n),e.getSignedWritableUrl}catch(e){throw console.log(e),e}})}var imageUploadApi=Object.freeze({__proto__:null,getImageURL:getImageURL});const ImageUpload=({handleChange:i,getUrl:o,image:e,fileTypes:n="image/*",maxFileSize:a=5,maxImageSize:t,disabled:r=!1,testId:s,outerHeight:l="160px",outerWidth:c="160px",outerBorder:u="1px dashed #D5DFE9",outerRadius:d="5px",innerHeight:p="150px",innerWidth:f="150px",innerBorder:h="none",innerRadius:m="5px",innerBackground:g="rgba(247, 247, 247, 0.8)",uploadIconBackground:y,uploadBackgroundRadius:v,uploadBackgroundWidthHeight:x,uploadIconColor:$="#555F7C",uploadIconWidthHeight:b="30px",uploadCustomIcon:C,deleteBackgroundWidthHeight:S="42px",deleteIconBackground:P="rgba(0, 0, 0, 0.25)",deleteIconBackgroundRadius:N="50%",deleteIconColor:D="#FFF",deleteIconWidthHeight:w="24px"})=>{const _=react$1.exports.useRef(null),[T,E]=react$1.exports.useState(e),[j,R]=react$1.exports.useState(!1),[I,O]=react$1.exports.useState(void 0),F=useSelector(selectApiConfigs$2),{maxWidth:k,maxHeight:A}=(react$1.exports.useEffect(()=>{E(e)},[e]),t||{}),V=e=>{let t=n.split(", ");return(t=t.includes("image/*")?t.concat(["image/png","image/jpeg","image/gif","image/webp","image/bmp","image/svg+xml","image/tiff"]):t).includes(e.type)};const M=e=>{if(e)if(V(e))if(e.size>1048576*a)t=jsxRuntime.exports.jsx(FormattedMessage$1,{id:"reusable-image-uploader-error-message-filesize",defaultMessage:"File size exceeds the limit",description:"Error message file size"}),O(t);else{if(k&&A){var t=new Image;const r=URL.createObjectURL(e);t.src=r,t.onload=function(){var e;this.naturalWidth>k&&this.naturalHeight>A?(e=jsxRuntime.exports.jsx(FormattedMessage$1,{id:"reusable-image-uploader-error-message-imagesize",defaultMessage:"Image size exceeds the limit",description:"Error message image size"}),O(e),URL.revokeObjectURL(r),L()):URL.revokeObjectURL(r)}}const n=new FileReader;n.onloadend=()=>__awaiter$5(void 0,void 0,void 0,function*(){E(n.result),O(void 0),o?yield H(e):i(e)}),n.readAsDataURL(e)}else t=jsxRuntime.exports.jsx(FormattedMessage$1,{id:"reusable-image-uploader-error-message-filetype",defaultMessage:"Filetype not accepted",description:"Error message file size"}),O(t)},H=e=>__awaiter$5(void 0,void 0,void 0,function*(){try{var t=yield getImageURL(F,e);i(t)}catch(e){t=jsxRuntime.exports.jsx(FormattedMessage$1,{id:"reusable-image-uploader-error-message",defaultMessage:"Error getting the Image Url",description:"Error message Image Url"});O(t),E(void 0),console.error("Error getting URL:",e)}}),L=()=>{E(void 0),i("");var e=document.getElementById("reusable-fileinput");e&&(e.value="")};return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Box$1,Object.assign({className:"image-uploader-"+(T?"active":"inactive"),onClick:()=>!T&&!r&&void(_.current&&_.current.click()),sx:{display:"flex",justifyContent:"center",alignItems:"center",height:l,width:c,border:u,borderRadius:d,transition:"border-color 0.25s ease","&.image-uploader-inactive:hover":{cursor:"pointer",borderColor:"#0C53B0"},"&.image-uploader-inactive:hover .image-uploader-inner-box":{backgroundColor:"rgba(228, 240, 252, 0.8)"},"&.image-uploader-inactive:hover svg path":{fill:"#0C53B0"}}},{children:jsxRuntime.exports.jsxs(Box$1,Object.assign({"data-test":"resusable-image-uploader-inner-box-"+s,className:"image-uploader-inner-box",onDrop:e=>{e.preventDefault(),R(!1),r||(e=e.dataTransfer.files[0],M(e))},onDragLeave:e=>{e.preventDefault(),R(!1)},onDragOver:e=>{e.preventDefault(),R(!0)},sx:{position:"relative",backgroundColor:g,height:p,width:f,border:j?"2px solid #1871E8":h,borderRadius:m,display:"flex",justifyContent:"center",alignItems:"center",transition:"background-color 0.25s ease"}},{children:[I&&jsxRuntime.exports.jsx(Box$1,Object.assign({"data-test":"resusable-image-uploader-error-"+s,style:{position:"absolute",top:"5%",left:"50%",width:"95%",transform:"translate(-50%, -5%)",textAlign:"center",color:"red"}},{children:I})),T&&jsxRuntime.exports.jsx("img",{"data-test":"resusable-image-uploader-image-"+s,style:{maxWidth:"100%",maxHeight:"100%",borderRadius:m},alt:"uploader",src:T}),!T&&jsxRuntime.exports.jsx(Box$1,Object.assign({"data-test":"resusable-image-uploader-upload-image-background-"+s,sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",textAlign:"center",backgroundColor:y,borderRadius:v,width:x,height:x,minWidth:b,minHeight:b}},{children:C||jsxRuntime.exports.jsx("svg",Object.assign({"data-test":"resusable-image-uploader-upload-image-icon-"+s,version:"1.2",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500",width:b,height:b},{children:jsxRuntime.exports.jsx("path",{fill:j?"#1871E8":$,fillRule:"evenodd",d:"M249.5 62c147.7 0 151.1 0 157.5 1.9 3.6 1.1 8.9 3.7 11.9 5.8 3 2.1 7.3 6.1 9.6 8.8 2.3 2.7 5.2 7.7 9 17l.3 101c.1 55.6.1 101.4-.2 102-.2.7-4.1.6-11.2-.3-6-.7-14-1-17.9-.7-3.9.3-8.4.8-13 1.6V104.5h-291v291H297l-.7 8c-.5 4.4-.8 9.8-.8 12 0 2.2.4 8.2 1.5 22.5h-97.3c-82.7 0-98.2-.3-104.2-1.5-3.8-.9-9-2.8-11.5-4.2-2.5-1.5-6-4.1-7.9-5.8-1.9-1.6-5.2-5.7-7.3-9-2.5-3.9-4.4-8.5-5.4-13-1.3-6.1-1.4-26.2-.9-309l2.4-6c1.4-3.3 4.3-8.3 6.6-11 2.3-2.8 6.6-6.7 9.6-8.8 3-2.1 8.1-4.6 11.4-5.7 5.8-1.8 11.6-1.9 157-2zm45.4 185c.3 0 12.2 15.8 52.6 70.3l-4 3.1c-2.2 1.7-7.7 6.7-12.3 11.1-4.6 4.4-10.6 11.3-18.7 22.5h-93.8c-90.2 0-93.7-.1-92.5-1.8.7-1 14.7-19 31-40 16.4-21 30-38.2 30.3-38.2.3 0 7.8 8.9 16.7 19.8 8.9 10.8 18.7 22.7 21.7 26.5 3.1 3.7 5.8 6.7 6.1 6.7.3-.1 14.4-18.1 31.4-40.1 17-21.9 31.2-39.9 31.5-39.9zm122.6 87.5c13.3.3 15.8.7 22 3 3.9 1.5 9.3 3.8 12 5.2 2.8 1.4 8.4 5.1 12.4 8.2 4.1 3.1 10 8.7 13.1 12.6 3 3.9 7.1 10.1 9.1 14 2 3.9 4.7 9.9 6 13.5 2.1 5.9 2.3 8.2 2.3 24.5s-.2 18.6-2.3 24.5c-1.3 3.6-4 9.6-6 13.5-2 3.9-6.1 10.1-9.1 14-3.1 3.9-9 9.5-13.1 12.5-4 3.1-9.6 6.7-12.4 8.2-2.7 1.5-8.1 3.9-12 5.4-6.8 2.7-7.6 2.8-26 2.8s-19.2-.1-26-2.8c-3.9-1.5-9.2-3.9-12-5.3-2.7-1.4-8.4-5.1-12.4-8.2-4.1-3.1-10-8.7-13.1-12.6-3-3.9-7.1-10.1-9.1-14-2-3.9-4.7-9.9-6-13.5-2.1-5.9-2.3-8.2-2.3-24.5s.2-18.6 2.3-24.5c1.3-3.6 4-9.6 6-13.5 2-3.9 6.1-10.1 9.1-14 3.1-3.9 9-9.5 13.1-12.5 4-3.1 9.7-6.7 12.4-8.2 2.8-1.4 7.5-3.6 10.5-4.8 3-1.2 8-2.6 11-3 3-.5 12.3-.7 20.5-.5zM390 355.6c-3.6 1.6-8.5 4-11 5.4-2.5 1.4-7.4 5.4-11 9-3.9 3.8-8.2 9.6-10.6 14-2.3 4.1-5 10-6 13-1.3 4.2-1.8 8.7-1.8 18.5s.5 14.3 1.8 18.5c1 3 3.7 8.9 5.9 13 2.7 4.8 6.8 10.1 11.3 14.5 5.2 5.1 9.3 8.1 15.5 11.1 4.6 2.3 10.2 4.7 12.4 5.5 2.5.8 8.8 1.3 17 1.3s14.5-.5 17-1.3c2.2-.8 7.8-3.2 12.4-5.5 6.5-3.1 10.2-5.9 16-11.7 5.8-5.7 8.6-9.6 11.8-16 2.3-4.6 4.7-10.2 5.4-12.4.7-2.4 1.3-9.3 1.3-17 0-7.7-.6-14.6-1.3-17-.7-2.2-3.1-7.8-5.4-12.4-3.2-6.4-6-10.3-11.8-16-5.6-5.7-9.6-8.6-15.5-11.5-4.3-2.1-9.7-4.5-11.9-5.3-2.2-.7-8.5-1.5-14-1.7-5.5-.3-12.5-.1-15.5.3s-8.4 2.1-12 3.7zm15 18.4h17v33h33v17h-33v33h-17v-33h-33v-17h33z"})}))})),T&&!r&&jsxRuntime.exports.jsx(Box$1,Object.assign({"data-test":"resusable-image-uploader-delete-background-"+s,onClick:()=>!r&&L(),sx:{position:"absolute",bottom:"0px",right:"0px",height:S,width:S,minWidth:w,minHeight:w,backgroundColor:P,borderRadius:N,display:"flex",justifyContent:"center",alignItems:"center"}},{children:jsxRuntime.exports.jsx(default_1$a,{"data-test":"resusable-image-uploader-delete-"+s,sx:{color:D,fontSize:w}})}))]}))})),jsxRuntime.exports.jsx("input",{id:"reusable-fileinput",disabled:r,type:"file",accept:n,ref:_,style:{display:"none"},onChange:e=>{e.target.files&&0<e.target.files.length&&(e=e.target.files[0],M(e))}})]})};var TAB_CAPTURE_MODE,imageUploadJsx=Object.freeze({__proto__:null,ImageUpload:ImageUpload});const useStyles$6$2=makeStyles()(e=>({backButton:{background:"none",color:"black",marginRight:"20px",":hover":{background:"#D3D3D3"}},root:{width:1020,position:"relative"},panel:{backgroundColor:e.palette.background.paper,boxShadow:"0px 0px 12px rgba(0, 0, 0, 0.25)",height:"100%"},container:{display:"flex",flexDirection:"column",height:"100%"},expand:{marginTop:"-20px"},fullScreen:{position:"fixed",width:"100%",height:"100vh",overflow:"auto",top:0,left:0,right:0,bottom:0,zIndex:1004},fullScreenButton:{marginTop:"-50px !important"},tabs:{"& .Sdk-MuiTabs-indicator":{backgroundColor:"black",color:"black"},"& .Sdk-Mui-selected":{color:"black"}},bottomButtons:{marginTop:"20px"},markdown:{height:"100% !important",background:"#303841"},previewMarkdown:{height:"100% !important",position:"relative",padding:"20px !important",background:"#303841"},previewMarkdownContent:{background:"white",padding:"15px",borderRadius:"3px"}})),useStyles$5$3=makeStyles()(e=>({checked:{color:"#6098D1"},rootSelectedForm:{padding:"0px !important"},rootSelectForm:{padding:"10px !important","&:hover":{background:"#F7F7F7"}},iconStyle:{marginRight:"5px"},iconComponent:{top:"20px"},iconBackground:{display:"inline-block",height:"32px",borderRadius:"32px",width:"32px",background:"#F2F5F9",marginRight:"15px",paddingLeft:"8px",paddingTop:"6px",marginLeft:"5px"},itemIcons:{verticalAlign:"middle"},itemIconsRow:{position:"absolute",top:"0px"},iconBackgroundSelected:{display:"inline-block",height:"25px",borderRadius:"25px",width:"25px",minHeight:"25px",minWidth:"25px",background:e.palette.primary.main,marginRight:"15px",paddingLeft:"7px",paddingTop:"7px",marginLeft:"15px"},helperDescription:{fontSize:"14px",marginBottom:"20px"},menuItem:{width:"958px",padding:"10px",whiteSpace:"initial",height:"fit-content",borderBottom:"0.5px solid "+e.palette.divider,borderRadius:"0px"},optionName:{marginLeft:"0px",textAlign:"left",verticalAlign:"top"},optionNameRow:{marginLeft:"50px"},summary:{fontSize:11,textTransform:"none",width:"900px"},selectForm:{width:"250px",fontWeight:"bold",fontSize:"18px"},selectedForm:{background:"#FAFAFA",width:"960px !important",fontWeight:"bold",fontSize:"18px"},selectedName:{textTransform:"capitalize",background:"#EEF3F9",width:"auto",height:"56px",lineHeight:"56px",fontWeight:"bold"},ul:{listStyle:"none"},selectedDescription:{fontSize:"12px",marginBottom:"10px"},classSelectedBox:{padding:"20px 32px",textOverflow:"wrap",fontSize:"12px",whiteSpace:"initial",wordWrap:"break-word",border:"1px solid "+e.palette.divider,borderTop:"none",lineHeight:"16px"},inputSelectCaption:{fontSize:"12px",fontWeight:600,marginTop:"16px",marginBottom:"11px"},inputSelect:{width:"228px",fontWeight:400,fontSize:"14px"},textInput:{paddingLeft:"15px",paddingTop:"12px",paddingBottom:"12px",fontWeight:400,fontSize:"14px"},selectionName:{marginLeft:"20px"},selectionDescription:{paddingLeft:"60px",marginTop:"-10px",fontSize:"12px"},icon:{textAlign:"center",height:"1rem !important",margin:"0 3px"}})),HelpDocs=({className:e,helpLink:t,sx:n})=>{const r=useDispatch();var i=useSelector(preferredLanguageSelector);const o=AIWareFormatMessage(i);return jsxRuntime.exports.jsx(default_1$9,{className:e,onClick:()=>{has_1(window,"aiware.helpCenter.openDocsPanel")?(window.aiware.helpCenter.openDocsPanel(t,!1),setTimeout(()=>{window.aiware.helpCenter.openDocsPanel(t,!1)},0)):r(showMessage({content:o({id:"os-engine-center-new.snackbar.helpCenterUnavailable",defaultMessage:[{type:0,value:"Help Center is not currently available."}]}),severity:MessageSeverity.Warning}))},sx:n,style:{cursor:"pointer"},color:"secondary"})},Heading=({testName:e,title:t,description:n,helpLink:r})=>{var i=useStyles$5$3()["classes"];return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs(Typography$1,Object.assign({"data-test":e+"-title",style:{fontWeight:"bold"},variant:"h5"},{children:[t,!isNil_1(r)&&jsxRuntime.exports.jsx(HelpDocs,{className:i.icon,helpLink:r})]})),jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":e+"-description",className:i.helperDescription},{children:n}))]})};function useTabCapturing({inputRef:o,onChange:a}){const[s,l]=react$1.exports.useState(TAB_CAPTURE_MODE.NON_CAPTURE_MODE);return[e=>{var t=e["key"];if(o&&!lodash.exports.isNil(o.current)){var{value:n,selectionStart:r,selectionEnd:i}=o.current;switch(t){case"Tab":return void(s===TAB_CAPTURE_MODE.CAPTURING_MODE&&(e.preventDefault(),lodash.exports.isNil(r)||lodash.exports.isNil(i)||(o.current.value=n.slice(0,r)+"\t"+n.slice(i),o.current.setSelectionRange(r+1,r+1)),a(e)));case"Escape":return void l(TAB_CAPTURE_MODE.NON_CAPTURE_MODE);case"m":return void(e.ctrlKey&&l(s===TAB_CAPTURE_MODE.CAPTURING_MODE?TAB_CAPTURE_MODE.NON_CAPTURE_MODE:TAB_CAPTURE_MODE.CAPTURING_MODE));case"Shift":return;default:l(TAB_CAPTURE_MODE.CAPTURING_MODE)}}},e=>{l(TAB_CAPTURE_MODE.CAPTURING_MODE)}]}function useLineNumbers(t){return react$1.exports.useMemo(()=>{var e=lodash.exports.size(lodash.exports.split(t,"\n"));return lodash.exports.map(new Array(e),(e,t)=>t+1).join("\n")},[t])}!function(e){e[e.CAPTURING_MODE=0]="CAPTURING_MODE",e[e.NON_CAPTURE_MODE=1]="NON_CAPTURE_MODE"}(TAB_CAPTURE_MODE=TAB_CAPTURE_MODE||{});const editorStyles={margin:"0",padding:"10px 0 !important",borderRadius:"0",resize:"none",fontSize:"1em !important",fontFamily:"Nunito, lucida console, courier new, courier, monospace",lineHeight:"1.6em !important",outline:"none",boxSizing:"border-box",whiteSpace:"nowrap","&:focus-visible":{outline:"none"},"& textarea":{lineHeight:"2em !important",whiteSpace:"pre"}},useStyles$4$3=makeStyles()(e=>({codeEditor:lodash.exports.merge(lodash.exports.cloneDeep(editorStyles),{paddingLeft:"calc(3rem + 10px) !important",width:"100%",backgroundColor:"#303841",borderColor:"#303841",color:"#ffffff !important",caretColor:"#FFBB0A"}),lineCounter:lodash.exports.merge(lodash.exports.cloneDeep(editorStyles),{display:"block",borderColor:"#4F565E",overflowY:"hidden",boxShadow:"none",color:"#9CA8B4 !important",backgroundColor:"#4F565E",position:"absolute !important",width:"3rem !important",paddingRight:".625rem !important",top:0,left:0,bottom:0,minHeight:"100%",pointerEvents:"none","& textarea":{textAlign:"right",fontWeight:"600 !important"}})})),InputTypeMarkdown=({value:e,name:t,onChange:n})=>{const r=react$1.exports.useRef();var i=react$1.exports.useRef(),o=react$1.exports.useRef(null),a=useStyles$4$3()["classes"],s=useLineNumbers(e),[l,c]=useTabCapturing({inputRef:o,onChange:n});return jsxRuntime.exports.jsxs(Box$1,Object.assign({position:"relative",padding:0,margin:0,width:"100%"},{children:[jsxRuntime.exports.jsx(InputUnstyled,{"data-test":"input-type-markdown-code-editor",name:t,ref:i,inputRef:o,className:a.codeEditor,onScroll:e=>{lodash.exports.isNil(r.current)||(r.current.scrollTop=e.currentTarget.scrollTop,r.current.scrollLeft=e.currentTarget.scrollLeft)},onKeyDown:l,onChange:e=>{n(e)},onClick:c,spellCheck:!1,value:e,multiline:!0}),jsxRuntime.exports.jsx(InputUnstyled,{"data-test":"input-type-markdown-line-numbers",ref:r,className:a.lineCounter,spellCheck:!1,value:s,multiline:!0,readOnly:!0})]}))},Markdown=({onValidate:e,data:t,idPrefix:n,title:r,description:i,handleChange:o})=>{const a=useStyles$6$2()["classes"],[s,l]=react$1.exports.useState(0),[c,u]=react$1.exports.useState(!1),d=(react$1.exports.useEffect(()=>{e&&e(!0)},[]),(e,t)=>{l(Number(t))}),p=()=>{u(!c)};return jsxRuntime.exports.jsx("div",Object.assign({"data-test":n+".use-cases-step-parent-container",className:c?classNames(a.root,a.panel,a.fullScreen):"",style:{height:"100%"}},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:a.container,"data-test":n+".use-cases-container"},{children:[jsxRuntime.exports.jsx(Box$1,Object.assign({padding:5,paddingBottom:0},{children:jsxRuntime.exports.jsx(Heading,{title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"markdown.use-cases-title",defaultMessage:"{title}",description:"label for use case title",values:{title:r}}),description:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"markdown.use-cases-description",defaultMessage:"{description}",description:"label for use case description",values:{description:i}}),testName:n+".use-cases"})})),jsxRuntime.exports.jsxs(Box$1,Object.assign({"data-test":n+"-tabs-list",padding:4,paddingTop:0,paddingBottom:1},{children:[jsxRuntime.exports.jsxs(Tabs$2,Object.assign({className:a.tabs,value:s,onChange:d,"aria-label":"icon label tabs example"},{children:[jsxRuntime.exports.jsx(Tab$2,{"data-test":n+".use-cases-step-markdown-tab",label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"markdown.use-cases-step-markdown-tab-label",defaultMessage:"Markdown",description:"tab label: Markdown"})}),jsxRuntime.exports.jsx(Tab$2,{"data-test":n+".use-cases-step-preview-tab",label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"markdown.use-cases-step-preview-tab-label",defaultMessage:"Preview",description:"tab label: Preview"})})]})),jsxRuntime.exports.jsx(Box$1,Object.assign({display:"flex",justifyContent:"flex-end"},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:c?jsxRuntime.exports.jsx(FormattedMessage$1,{id:"markdown-use-cases-exit-fullscreen",defaultMessage:"Exit Fullscreen",description:"Exit Fullscreen"}):jsxRuntime.exports.jsx(FormattedMessage$1,{id:"markdown-use-cases-enter-fullscreen",defaultMessage:"Enter Fullscreen",description:"Enter Fullscreen"})},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({onClick:p,className:a.fullScreenButton,"data-test":n+".use-cases-step-fullscreen-toggle",size:"large"},{children:c?jsxRuntime.exports.jsx(FullscreenExit,{}):jsxRuntime.exports.jsx(Fullscreen,{})}))}))}))]})),jsxRuntime.exports.jsxs(Box$1,Object.assign({flexGrow:1},{children:[jsxRuntime.exports.jsx(TabPanel,Object.assign({value:s,index:0},{children:jsxRuntime.exports.jsx("div",Object.assign({className:a.markdown},{children:jsxRuntime.exports.jsx(InputTypeMarkdown,{value:t,onChange:o})}))})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:s,index:1},{children:jsxRuntime.exports.jsx("div",Object.assign({className:a.previewMarkdown},{children:jsxRuntime.exports.jsx("div",Object.assign({className:!t||t.length<=0?"":a.previewMarkdownContent},{children:jsxRuntime.exports.jsx(ReactMarkdown,{children:t})}))}))}))]}))]}))}))};var DistributionType,MarkdownJsx=Object.freeze({__proto__:null,Markdown:Markdown});const useStyles$3$4=makeStyles()(e=>({rootSelectedForm:{padding:"0 4px 0 0 !important"},rootSelectForm:{padding:"10px","&:hover":{background:"#F7F7F7"}},iconStyle:{marginRight:"5px"},iconComponent:{top:"20px"},iconBackground:{display:"inline-block",height:"32px",borderRadius:"32px",width:"32px",background:"#F2F5F9",marginRight:"15px",paddingLeft:"8px",paddingTop:"6px",marginLeft:"5px"},itemIcons:{verticalAlign:"middle"},iconBackgroundSelected:{display:"inline-block",height:"25px",borderRadius:"25px",width:"25px",minHeight:"25px",minWidth:"25px",background:e.palette.primary.main,marginRight:"15px",paddingLeft:"7px",paddingTop:"7px",marginLeft:"15px"},helperDescription:{fontSize:"14px",marginBottom:"20px"},menuItem:{width:"958px",padding:"10px",whiteSpace:"initial",height:"fit-content",borderBottom:"0.5px solid "+e.palette.divider,borderRadius:"0px"},optionName:{marginLeft:"0px",textAlign:"left",verticalAlign:"top"},summary:{fontSize:11,textTransform:"none",width:"900px"},selectForm:{width:"250px",fontWeight:"bold",fontSize:"18px"},selectedForm:{background:"#FAFAFA",width:"960px",fontWeight:"bold",fontSize:"18px"},selectedName:{textTransform:"capitalize",background:"#EEF3F9",width:"auto",height:"56px",lineHeight:"56px",fontWeight:"bold"}})),renderErrorMessage=({message:e})=>{let t="This field is required";return isEmpty_1(e)||(t=e),jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.errorMessage",defaultMessage:"{errorMessage}",description:"Error message",values:{errorMessage:t}})},InputSelect=e=>{var{disabled:n,name:t,rules:r,variant:i="outlined",children:o,className:a,callFieldOnChange:s=!0,onChange:l,fullWidth:c=!1}=e,u=__rest$3(e,["disabled","name","rules","variant","children","className","callFieldOnChange","onChange","fullWidth"]),e=useFormContext()["control"];return jsxRuntime.exports.jsx(Controller,{control:e,name:t,rules:r,render:({field:t,fieldState:{error:e}})=>jsxRuntime.exports.jsxs(FormControl$1,Object.assign({disabled:n,className:a,variant:i,error:!isNil_1(e),fullWidth:c},{children:[jsxRuntime.exports.jsx(Select$1,Object.assign({},t,u,{onChange:e=>{s&&t.onChange(e),null!=l&&l(e)}},{children:o})),e&&r&&jsxRuntime.exports.jsx(FormHelperText$2,{children:renderErrorMessage(e)})]}))})},Dropdown=({dataTestPrefix:e,handleSelectFormValue:t,selectionItems:n,iconType:r,selectPlaceholder:i,selectIcon:o,selectedItem:a,selectFormName:s})=>{const l=useStyles$3$4()["classes"],c=useFormContext();return jsxRuntime.exports.jsx("div",Object.assign({className:a?l.selectedForm:l.selectForm},{children:jsxRuntime.exports.jsx(FormControl$1,Object.assign({fullWidth:!0,variant:"outlined"},{children:jsxRuntime.exports.jsx(InputSelect,Object.assign({name:s,rules:{required:!0},displayEmpty:!0,"data-test":e+"-select-form",IconComponent:()=>jsxRuntime.exports.jsx(UpDown,{className:l.iconStyle}),classes:a?{select:l.rootSelectedForm,icon:l.iconComponent}:{select:l.rootSelectForm},defaultValue:(e=isEmpty_1(a)?"":a,c.setValue(s,e),e),onChange:e=>{e=null==e?void 0:e.target.value,e=n[e];c.setValue(s,e),c.trigger(s),null!=t&&t(e)},onClick:()=>c.trigger(s),renderValue:e=>e?jsxRuntime.exports.jsxs("div",Object.assign({className:l.selectedName},{children:[jsxRuntime.exports.jsx(Icon$1,{classes:{root:l.iconBackgroundSelected},className:l.itemIcons,component:null!=a&&a.selectedIconName?null==r?void 0:r[a.selectedIconName]:"span"}),get_1(a,"formattedName")||get_1(a,"name")]})):jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"h6"},{children:[jsxRuntime.exports.jsx(Icon$1,{classes:{root:l.iconBackground},className:l.itemIcons,component:o}),i]}))},{children:n&&map_1(keys_1(n),e=>{var t;return jsxRuntime.exports.jsxs(MenuItem$1,Object.assign({disabled:"marketplace"===e,className:l.menuItem,"data-test":n[e].value||e,value:n[e].value||e},{children:[jsxRuntime.exports.jsx(Icon$1,{classes:{root:l.iconBackground},className:l.itemIcons,component:null!=(t=null==n?void 0:n[e])&&t.iconName?r[n[e].iconName||""]:"span"}),jsxRuntime.exports.jsxs(Grid$1,Object.assign({className:l.optionName,xs:2},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h6"},{children:n[e].formattedName||n[e].name})),jsxRuntime.exports.jsx(Typography$1,Object.assign({className:l.summary},{children:n[e].description}))]}))]}),n[e].value||e)})}))}))}))},distributionTypes$1=(!function(e){e.Private="private",e.OrgLocked="org_locked",e.Sharable="sharable",e.Public="public",e.Marketplace="marketplace",e.InstanceLocked="instance_locked"}(DistributionType=DistributionType||{}),{private:{formName:"distributionType",name:"Private",formattedName:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-formatted-name-private",defaultMessage:"Private",description:"label for sharable"}),iconName:"Private",selectedIconName:"PrivateWhite",shortDescription:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-short-description-private",defaultMessage:"Your engine will not be distributed and is private to your instance.",description:"short desc for private"}),description:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-description-private",defaultMessage:"Your engine will not be distributed and is private to your instance.",description:"desc for private"}),value:DistributionType.Private,link:""},org_locked:{formName:"distributionType",name:"Org Locked",formattedName:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-formatted-name-org-locked",defaultMessage:"Org Locked",description:"label for Org Locked"}),iconName:"OrgLocked",selectedIconName:"OrgLockedWhite",shortDescription:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-short-description-org-locked",defaultMessage:"Your engine will only be distributed to instances within your organization.",description:"short desc for Org Locked"}),description:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-description-org-locked",defaultMessage:"Your engine will only be distributed to instances within your organization.",description:"desc for org locked"}),value:DistributionType.OrgLocked,link:""},sharable:{formName:"distributionType",name:"Sharable",formattedName:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-formatted-name-sharable",defaultMessage:"Sharable",description:"label for sharable"}),iconName:"Sharable",selectedIconName:"SharableWhite",shortDescription:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-short-description-sharable",defaultMessage:"Your engine can be distributed to other organizations on any instance.",description:"short desc for sharable"}),description:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-description-sharable",defaultMessage:"Your engine can be distributed to other organizations on any instance.",description:"desc for sharable"}),value:DistributionType.Sharable,link:""},public:{formName:"distributionType",name:"Public",formattedName:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-message-name-public",defaultMessage:"Public",description:"label for public"}),iconName:"Public",selectedIconName:"PublicWhite",shortDescription:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-short-description-public",defaultMessage:"Your engine will be distributed to all instances in and outside of your organization.",description:"short desc for public"}),description:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-description-public",defaultMessage:"Your engine will be distributed to all instances in and outside of your organization.",description:"desc for public"}),value:DistributionType.Public,link:""},instance_locked:{formName:"distributionType",name:"Instance locked",formattedName:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-formatted-message-instance-locked",defaultMessage:"Instance locked",description:"label for Instance locked"}),iconName:"InstanceLocked",selectedIconName:"InstanceLockedWhite",shortDescription:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-short-description-instance-locked",defaultMessage:"Your engine will be sharable to other organizations on your instance only.",description:"short desc for Instance locked"}),description:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-description-instance-locked",defaultMessage:"Your engine will be sharable to other organizations on your instance only.",description:"desc for instance locked"}),value:"instance_locked",link:""},marketplace:{formName:"distributionType",name:"Marketplace",formattedName:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-formatted-name-marketplace",defaultMessage:"Marketplace",description:"label for marketplace"}),iconName:"Marketplace",selectedIconName:"MarketplaceWhite",shortDescription:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-short-description-marketplace",defaultMessage:"Coming soon...",description:"short desc for marketplace"}),description:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-description-marketplace",defaultMessage:"Coming soon...",description:"desc for marketplace"}),value:DistributionType.Marketplace,link:""}}),DistributionTypes=({handleSelectType:e,selectedType:t,description:n,idPrefix:r,inputName:i})=>{var o=useStyles$3$4()["classes"];return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":r+"-title",style:{fontWeight:"bold"},variant:"h5"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"{idPrefix}.distribution-type-generic-select-title",defaultMessage:"Distribution Types",description:"Form label for distribution types",values:{idPrefix:r}})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":r+"-description",className:o.helperDescription},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"{idPrefix}.distribution-type-generic-select-description",defaultMessage:"{description}",description:"Add Distribution Types for Engines | Hub",values:{idPrefix:r,description:n||"Add Distribution Types for Engines | Hub."}})})),jsxRuntime.exports.jsx(Dropdown,{selectFormName:i||"engineFlag",selectionItems:distributionTypes$1,iconType:EngineFlagIcons,selectIcon:Bookmark,selectPlaceholder:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"{idPrefix}.distribution-type-generic-select-placeholder",defaultMessage:"Instance Locked",description:"Placeholder for distribution type",values:{idPrefix:r}}),dataTestPrefix:r+".distribution-type",handleSelectFormValue:e,selectedItem:isEmpty_1(t)?null:find_1(distributionTypes$1,{value:t})})]})};var distributionTypeJsx=Object.freeze({__proto__:null,DistributionTypes:DistributionTypes});const formattedMessages=(e,t)=>({clearButtonLabel:e.formatMessage({id:"reusable-utils.filters.clear-button-label",defaultMessage:[{type:0,value:"Clear"}]}),statusFilterLabel:e.formatMessage({id:"reusable-utils.filters.status-label",defaultMessage:[{type:0,value:"Status"}]}),allLabel:e.formatMessage({id:"reusable-utils.filters.all-placeholder",defaultMessage:[{type:0,value:"All"}]}),okButtonLabel:e.formatMessage({id:"reusable-utils.filters.ok-button-label",defaultMessage:[{type:0,value:"OK"}]}),dateRangeFilterDefaultValueLabel:e.formatMessage({id:"reusable-utils.filters.any-time-label",defaultMessage:[{type:1,value:"days"},{type:0,value:" days"}]},{days:t||void 0}),userFilterLabel:e.formatMessage({id:"reusable-utils.filters.jobs.user-label",defaultMessage:[{type:0,value:"Email"}]})}),StatusFilter=({entity:t,status:n,setFilterValue:e,filterLabel:r,defaultPlaceholder:i,clearBtnLabel:o,clearAndApply:a})=>{var s="job"===t?["pending","running","complete","cancelled"]:["pending","running","complete","queued","accepted","failed","cancelled","standby_pending","waiting","resuming","aborted","paused"];const[l,c]=react$1.exports.useState([]),u=useStyles$7$2()["classes"];var d=useIntl();const p=useDispatch(),{statusFilterLabel:f,allLabel:h,clearButtonLabel:m}=formattedMessages(d);react$1.exports.useEffect(()=>{c(e=>0===e.length&&null===n||e.length===(null==n?void 0:n.length)?e:n||[])},[n]);return jsxRuntime.exports.jsxs(FormControl$1,Object.assign({size:"small",className:u.formControl},{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({sx:{display:"flex",justifyContent:"space-between"}},{children:[jsxRuntime.exports.jsx("label",Object.assign({className:u.label},{children:r||f})),0<l.length&&jsxRuntime.exports.jsx("span",Object.assign({onClick:()=>{c([]),p(e({filter:"status",value:[]})),a&&a()},className:u.clearButton},{children:o||m}))]})),jsxRuntime.exports.jsx(Select$1,Object.assign({multiple:!0,displayEmpty:!0,value:l,onChange:e=>{c(e.target.value)},onClose:()=>{p(e({filter:"status",value:l}))},variant:"outlined",renderValue:e=>{var t;return 0===e.length?jsxRuntime.exports.jsx("div",{children:i||h}):(t=e["length"],jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:e.join(", "),className:u.title},{children:jsxRuntime.exports.jsx("span",Object.assign({className:u.title},{children:1===t?e[0]:t+" Statuses"}))})))},className:u.selectField,"data-test":t+"s-filter-status-input"},{children:s.map(e=>jsxRuntime.exports.jsx(MenuItem$1,Object.assign({value:e,"data-test":t+"s-filter-status-input-option","data-value":e},{children:e.replace("_"," ")}),e))}))]}))};var statusFilterJsx=Object.freeze({__proto__:null,StatusFilter:StatusFilter});function buildFormatLongFn(t){return function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=e.width?String(e.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}function buildLocalizeFn(i){return function(e,t){t="formatting"===(null!=t&&t.context?String(t.context):"standalone")&&i.formattingValues?(r=i.defaultFormattingWidth||i.defaultWidth,n=null!=t&&t.width?String(t.width):r,i.formattingValues[n]||i.formattingValues[r]):(n=i.defaultWidth,r=null!=t&&t.width?String(t.width):i.defaultWidth,i.values[r]||i.values[n]);var n,r=i.argumentCallback?i.argumentCallback(e):e;return t[r]}}function buildMatchFn(o){return function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&o.matchPatterns[r]||o.matchPatterns[o.defaultMatchWidth],i=e.match(i);return i?(t=i[0],i=r&&o.parsePatterns[r]||o.parsePatterns[o.defaultParseWidth],r=Array.isArray(i)?findIndex$1(i,function(e){return e.test(t)}):findKey(i,function(e){return e.test(t)}),i=o.valueCallback?o.valueCallback(r):r,{value:i=n.valueCallback?n.valueCallback(i):i,rest:e.slice(t.length)}):null}}function findKey(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function findIndex$1(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function buildMatchPatternFn(i){return function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=e.match(i.matchPattern);return r&&(r=r[0],t=e.match(i.parsePattern))?(t=i.valueCallback?i.valueCallback(t[0]):t[0],{value:t=n.valueCallback?n.valueCallback(t):t,rest:e.slice(r.length)}):null}}var formatDistanceLocale$2={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},formatDistance$4=function(e,t,n){e=formatDistanceLocale$2[e],e="string"==typeof e?e:1===t?e.one:e.other.replace("{{count}}",t.toString());return null!=n&&n.addSuffix?n.comparison&&0<n.comparison?"in "+e:e+" ago":e},formatDistance$5=formatDistance$4,dateFormats$2={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},timeFormats$2={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats$2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$4={date:buildFormatLongFn({formats:dateFormats$2,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$2,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$2,defaultWidth:"full"})},formatLong$5=formatLong$4,formatRelativeLocale$2={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},formatRelative$4=function(e,t,n,r){return formatRelativeLocale$2[e]},formatRelative$5=formatRelative$4,eraValues$2={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},quarterValues$2={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},monthValues$2={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},dayValues$2={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriodValues$2={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},formattingDayPeriodValues$1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ordinalNumber$2=function(e,t){var n=Number(e),e=n%100;if(20<e||e<10)switch(e%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},localize$4={ordinalNumber:ordinalNumber$2,era:buildLocalizeFn({values:eraValues$2,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$2,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:buildLocalizeFn({values:monthValues$2,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$2,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$2,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$1,defaultFormattingWidth:"wide"})},localize$5=localize$4,matchOrdinalNumberPattern$2=/^(\d+)(th|st|nd|rd)?/i,parseOrdinalNumberPattern$2=/\d+/i,matchEraPatterns$2={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},parseEraPatterns$2={any:[/^b/i,/^(a|c)/i]},matchQuarterPatterns$2={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},parseQuarterPatterns$2={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$2={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},parseMonthPatterns$2={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$2={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},parseDayPatterns$2={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},matchDayPeriodPatterns$2={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},parseDayPeriodPatterns$2={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},match$4={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$2,parsePattern:parseOrdinalNumberPattern$2,valueCallback:function(e){return parseInt(e,10)}}),era:buildMatchFn({matchPatterns:matchEraPatterns$2,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$2,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$2,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$2,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:buildMatchFn({matchPatterns:matchMonthPatterns$2,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$2,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$2,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$2,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$2,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$2,defaultParseWidth:"any"})},match$5=match$4,locale$2={code:"en-US",formatDistance:formatDistance$5,formatLong:formatLong$5,formatRelative:formatRelative$5,localize:localize$5,match:match$4,options:{weekStartsOn:0,firstWeekContainsDate:1}},enUS=locale$2,formatDistanceLocale$1={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},formatDistance$2=function(e,t,n){e=formatDistanceLocale$1[e],e="string"==typeof e?e:1===t?e.one:e.other.replace("{{count}}",t.toString());return null!=n&&n.addSuffix?n.comparison&&0<n.comparison?"en "+e:"hace "+e:e},formatDistance$3=formatDistance$2,dateFormats$1={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},timeFormats$1={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$1={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$2={date:buildFormatLongFn({formats:dateFormats$1,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$1,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$1,defaultWidth:"full"})},formatLong$3=formatLong$2,formatRelativeLocale$1={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},formatRelativeLocalePlural={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},formatRelative$2=function(e,t,n,r){return(1!==t.getUTCHours()?formatRelativeLocalePlural:formatRelativeLocale$1)[e]},formatRelative$3=formatRelative$2,eraValues$1={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},quarterValues$1={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},monthValues$1={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},dayValues$1={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},dayPeriodValues$1={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},formattingDayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},ordinalNumber$1=function(e,t){return Number(e)+"º"},localize$2={ordinalNumber:ordinalNumber$1,era:buildLocalizeFn({values:eraValues$1,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$1,defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:buildLocalizeFn({values:monthValues$1,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$1,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$1,defaultWidth:"wide",formattingValues:formattingDayPeriodValues,defaultFormattingWidth:"wide"})},localize$3=localize$2,matchOrdinalNumberPattern$1=/^(\d+)(º)?/i,parseOrdinalNumberPattern$1=/\d+/i,matchEraPatterns$1={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},parseEraPatterns$1={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},matchQuarterPatterns$1={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},parseQuarterPatterns$1={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$1={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},parseMonthPatterns$1={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},matchDayPatterns$1={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},parseDayPatterns$1={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},matchDayPeriodPatterns$1={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},parseDayPeriodPatterns$1={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},match$2$1={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$1,parsePattern:parseOrdinalNumberPattern$1,valueCallback:function(e){return parseInt(e,10)}}),era:buildMatchFn({matchPatterns:matchEraPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$1,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$1,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:buildMatchFn({matchPatterns:matchMonthPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$1,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$1,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$1,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$1,defaultParseWidth:"any"})},match$3=match$2$1,locale$1={code:"es",formatDistance:formatDistance$3,formatLong:formatLong$3,formatRelative:formatRelative$3,localize:localize$3,match:match$2$1,options:{weekStartsOn:1,firstWeekContainsDate:1}},es=locale$1,formatDistanceLocale={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},formatDistance=function(e,t,n){e=formatDistanceLocale[e],e="string"==typeof e?e:1===t?e.one:e.other.replace("{{count}}",String(t));return null!=n&&n.addSuffix?n.comparison&&0<n.comparison?"dans "+e:"il y a "+e:e},formatDistance$1=formatDistance,dateFormats={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},timeFormats={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong={date:buildFormatLongFn({formats:dateFormats,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats,defaultWidth:"full"})},formatLong$1=formatLong,formatRelativeLocale={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},formatRelative=function(e,t,n,r){return formatRelativeLocale[e]},formatRelative$1=formatRelative,eraValues={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},quarterValues={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},monthValues={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},dayValues={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},dayPeriodValues={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},ordinalNumber=function(e,t){e=Number(e),t=null==t?void 0:t.unit;return 0===e?"0":e+(1===e?t&&["year","week","hour","minute","second"].includes(t)?"ère":"er":"ème")},localize={ordinalNumber:ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:buildLocalizeFn({values:monthValues,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues,defaultWidth:"wide"})},localize$1=localize,matchOrdinalNumberPattern=/^(\d+)(ième|ère|ème|er|e)?/i,parseOrdinalNumberPattern=/\d+/i,matchEraPatterns={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},parseEraPatterns={any:[/^av/i,/^ap/i]},matchQuarterPatterns={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},parseQuarterPatterns={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},parseMonthPatterns={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},parseDayPatterns={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},matchDayPeriodPatterns={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},parseDayPeriodPatterns={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},match$6={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:function(e){return parseInt(e)}}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:buildMatchFn({matchPatterns:matchMonthPatterns,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns,defaultParseWidth:"any"})},match$1$1=match$6,locale={code:"fr",formatDistance:formatDistance$1,formatLong:formatLong$1,formatRelative:formatRelative$1,localize:localize$1,match:match$6,options:{weekStartsOn:1,firstWeekContainsDate:4}},fr=locale;const locales={en:enUS,fr:locale,es:es},MAX_NUMBER_OF_DAYS=90,DAY_IN_MS=864e5,toDate=e=>void 0===e?e:new Date(e),DateRangeFilter=({entity:e="jobs",dateTimeFilter:t,setFilterValue:n,locale:r="en",dateRangeLimit:i=MAX_NUMBER_OF_DAYS,clearAndApply:o})=>{const[a,s]=react$1.exports.useState(!1),[l,c]=react$1.exports.useState({startDate:toDate(t.fromDateTime),endDate:toDate(t.toDateTime)});var u=useIntl();const d=useDispatch();var p=useStyles$7$2()["classes"];const f=Math.floor(i);var{okButtonLabel:i,clearButtonLabel:h,dateRangeFilterDefaultValueLabel:m}=formattedMessages(u,f),g=()=>{var e;d(n({filter:"dateTimeFilter",value:{fromDateTime:null==(e=l.startDate)?void 0:e.toISOString(),toDateTime:null==(e=l.endDate)?void 0:e.toISOString(),field:"createdDateTime"}})),s(!1)},y=()=>{d(n({filter:"dateTimeFilter",value:{field:"createdDateTime"}})),o&&o(),c({}),s(!1)},u=t.fromDateTime||t.toDateTime?u.formatDate(t.fromDateTime)+" - "+u.formatDate(t.toDateTime):m;return jsxRuntime.exports.jsxs(FormControl$1,Object.assign({size:"small",className:p.formControl},{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({sx:{display:"flex",justifyContent:"space-between"}},{children:[jsxRuntime.exports.jsx("label",Object.assign({htmlFor:e+"-filter-date-range",className:p.label},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"reusable-utils.filter-range-label",defaultMessage:"Date/time",description:"label for the jobs filter date range picker"})})),(t.fromDateTime||t.toDateTime)&&jsxRuntime.exports.jsx("span",Object.assign({className:p.clearButton,onClick:y,"data-testid":"date-time-filter.clear-btn"},{children:h}))]})),jsxRuntime.exports.jsx("div",Object.assign({id:e+"-filter-date-range","data-test":e+"-filter-date-range-display",className:p.dateRangeDisplay,onClick:()=>{c({startDate:toDate(t.fromDateTime),endDate:toDate(t.toDateTime)}),s(!0)}},{children:u})),jsxRuntime.exports.jsxs(Dialog$1,Object.assign({open:a,disableEscapeKeyDown:!0,onClose:g,maxWidth:"md"},{children:[jsxRuntime.exports.jsx(DialogContent$1,Object.assign({"data-test":e+"-filter-date-range-dialog-content"},{children:jsxRuntime.exports.jsx(FormControl$1,Object.assign({variant:"standard"},{children:jsxRuntime.exports.jsx(LocalizationProvider,Object.assign({dateAdapter:AdapterDateFns,adapterLocale:locales[r]},{children:jsxRuntime.exports.jsxs(Grid$1,Object.assign({container:!0,spacing:3},{children:[jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:12,md:6,"data-test":e+"-filter-date-range-start-calendar"},{children:jsxRuntime.exports.jsx(CalendarPicker,{date:l.startDate||null,onChange:e=>{const t=e;null!==t&&void 0!==t&&t.setHours(0,0,0,0),c(({endDate:e})=>{e=e||new Date;return t&&e.getTime()>t.getTime()+f*DAY_IN_MS&&e.setTime(t.getTime()+f*DAY_IN_MS),{startDate:t||void 0,endDate:e}})},maxDate:l.endDate||new Date,defaultCalendarMonth:l.startDate})})),jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:12,md:6,"data-test":e+"-filter-date-range-end-calendar"},{children:jsxRuntime.exports.jsx(CalendarPicker,{date:l.endDate||null,onChange:e=>{const t=e;null!==t&&void 0!==t&&t.setHours(23,59,59),c(e=>Object.assign(Object.assign({},e),{endDate:t||void 0}))},maxDate:new Date,disabled:!l.startDate,defaultCalendarMonth:l.endDate})}))]}))}))}))})),jsxRuntime.exports.jsxs(DialogActions$1,Object.assign({"data-test":e+"-filter-date-range-dialog-actions"},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({"data-test":e+"-filter-date-range-dialog-clear-button",onClick:y},{children:h})),jsxRuntime.exports.jsx(Button$1,Object.assign({"data-test":e+"-filter-date-range-dialog-ok-button",onClick:g},{children:i}))]}))]}))]}))};var dateRangeFilterJsx=Object.freeze({__proto__:null,DateRangeFilter:DateRangeFilter});const TableDebugMenu=e=>{const[t,n]=react$1.exports.useState(!0);var r=e=>jsxRuntime.exports.jsxs(Stack$4,Object.assign({direction:"row",spacing:1,justifyContent:"space-between"},{children:[jsxRuntime.exports.jsxs(Stack$4,Object.assign({sx:{width:"50%"}},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({sx:{fontWeight:"bold"}},{children:null==e?void 0:e.label})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"caption"},{children:null==e?void 0:e.description}))]})),jsxRuntime.exports.jsx(Box$1,Object.assign({sx:{display:"grid",placeItems:"center",fontSize:"20px",fontWeight:"bold",color:"#0c53b0"}},{children:null==e?void 0:e.value}))]}));return jsxRuntime.exports.jsx(Box$1,Object.assign({sx:{position:"absolute",bottom:"0",right:"0",border:"2px solid #d7d7d7",margin:"25px",marginTop:"0",marginRight:"50px",boxSizing:"border-box",background:"#fff",borderRadius:"10px",boxShadow:"rgba(0, 0, 0, 0.16) 0px 10px 36px 0px,rgba(0, 0, 0, 0.06) 0px 0px 0px 1px",display:"flex",flexDirection:"column",padding:"10px 30px"}},{children:jsxRuntime.exports.jsxs(Stack$4,Object.assign({width:"100%",spacing:2,divider:jsxRuntime.exports.jsx(Divider$1,{})},{children:[jsxRuntime.exports.jsxs(Stack$4,Object.assign({direction:"row",sx:{gap:"10px"},pt:"10px",pb:"10px",justifyContent:"space-between"},{children:[jsxRuntime.exports.jsx(()=>jsxRuntime.exports.jsxs(Stack$4,Object.assign({sx:{alignItems:"center",background:"#e9f3fd",padding:"5px",borderRadius:"7px",color:"#0b53b0",gap:"5px",paddingRight:"10px"},direction:"row"},{children:[jsxRuntime.exports.jsx(TableView,{}),jsxRuntime.exports.jsx(Typography$1,Object.assign({align:"center",variant:"h2"},{children:"TableInfiniteScroll"}))]})),{}),jsxRuntime.exports.jsx(LoadingButton$1,Object.assign({variant:"outlined",onClick:null==e?void 0:e.fetchMore,loading:null==e?void 0:e.isLoading},{children:"Fetch More Items"})),jsxRuntime.exports.jsx(()=>jsxRuntime.exports.jsxs(Box$1,Object.assign({onClick:()=>n(e=>!e),sx:{width:"40px",display:"grid",placeItems:"center",color:"gray","&:hover":{background:"#f7f7f7",cursor:"pointer",borderRadius:"5px",color:"black"}}},{children:[!t&&jsxRuntime.exports.jsx(ExpandLess,{}),t&&jsxRuntime.exports.jsx(ExpandMore,{})]})),{})]})),t&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(r,{label:"isLoading",value:null!=e&&e.isLoading?jsxRuntime.exports.jsx(Typography$1,Object.assign({color:"green"},{children:"Loading More"})):"false"}),jsxRuntime.exports.jsx(r,{label:"hasMore",description:"Are there more items to fetch from the server?",value:null!=e&&e.hasMore?"true":"false"}),jsxRuntime.exports.jsx(r,{label:"offset",description:"This is the next GraphQL page starting offset",value:null==e?void 0:e.offset}),jsxRuntime.exports.jsx(r,{label:"items.length",description:"Total amount of items fetched",value:null==e?void 0:e.items.length}),jsxRuntime.exports.jsx(r,{label:"itemHeight",description:"This is the Pixel height of each row",value:`${null==e?void 0:e.itemHeight}px`}),jsxRuntime.exports.jsx(r,{label:"Header Component",description:"Is a component passed as a header?",value:null!=e&&e.hasHeader?"true":"false"}),(null==e?void 0:e.hasHeader)&&jsxRuntime.exports.jsx(r,{label:"adjustTableHeight",description:"If including a header, you need to adjust the container height with this prop.",value:`${null==e?void 0:e.adjustTableHeight}px`}),!(null==e||!e.adjustTableWidth)&&jsxRuntime.exports.jsx(r,{label:"adjustTableWidth",description:"You can adjust the container width with this prop.",value:`${null==e?void 0:e.adjustTableWidth}px`})]})]}))}))},TableLoadingState=({itemHeight:n,LoadingComponent:r})=>{const t={overflow:"hidden",width:"100%"},i=({containerHeight:e})=>{e=Math.ceil(e/n);return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:new Array(e).fill(null).map((e,t)=>jsxRuntime.exports.jsx(TableRowLoader,{LoadingComponent:r,height:n},t))})};return jsxRuntime.exports.jsx(Grid$1,Object.assign({sx:{position:"relative",height:"99%",overflow:"hidden"}},{children:jsxRuntime.exports.jsx(AutoSizer,Object.assign({style:{height:"auto",width:"auto"}},{children:({height:e})=>jsxRuntime.exports.jsx(Box$1,Object.assign({sx:Object.assign(Object.assign({},t),{height:e})},{children:jsxRuntime.exports.jsx(i,{containerHeight:e})}))}))}))},TableRowLoader=({height:e,LoadingComponent:t})=>{return jsxRuntime.exports.jsxs(Box$1,Object.assign({sx:{height:e,display:"grid",placeItems:"center",overflow:"hidden"}},{children:[!t&&jsxRuntime.exports.jsx(Skeleton$1,{animation:"wave",sx:{transform:"none"},width:"99.5%",height:"90%"}),t&&jsxRuntime.exports.jsx(t,{})]}))};var img="data:image/svg+xml,%3csvg width='275' height='275' viewBox='0 0 275 275' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='137.5' cy='137.5' r='127.5' fill='white' stroke='%23F9F9F9' stroke-width='20'/%3e %3cpath d='M181 134.5L138.5 120.5V170L181 134.5Z' fill='%23FE8D00'/%3e %3cpath d='M138.5 120.5L94.5 135L138.5 170.5V120.5Z' fill='%23FD9F00'/%3e %3cpath d='M137.5 204V149L181.5 134.5V188.5L137.5 204Z' fill='%23FDC000'/%3e %3cpath d='M137.5 149L94.5 134.5V188.5L137.5 204V149Z' fill='%23FDB200'/%3e %3cpath d='M121.5 171L137 149L94.5 146V167L121.5 171Z' fill='%23FE8D00'/%3e %3cpath d='M159.5 163L137.5 149L181 134.5L200.5 148.5L159.5 163Z' fill='%23FEECB2'/%3e %3cpath d='M116 162.5L137.5 149L94.5 135L74 148L116 162.5Z' fill='%23FED966'/%3e %3cpath d='M159 107L138.5 120.5L181 134.5L202.5 122L159 107Z' fill='%23FDC000'/%3e %3cpath d='M75 121.5L94.5 135L138.5 120.5L118 107L75 121.5Z' fill='%23FEECB2'/%3e %3cpath d='M136.598 140.5C129.265 137.5 117.398 129.4 128.598 121C142.598 110.5 146.598 105.5 143.598 99.5C140.598 93.5 131.098 96 132.598 104C134.098 112 144.598 119 155.598 111.5C166.598 104 166.598 81 148.598 73' stroke='%23B9D1E1' stroke-dasharray='2 2'/%3e %3cpath d='M152.5 72.5C152.5 72.7215 152.381 72.9602 152.114 73.1607C151.847 73.3612 151.455 73.5 151 73.5C150.545 73.5 150.153 73.3612 149.886 73.1607C149.619 72.9602 149.5 72.7215 149.5 72.5C149.5 72.2785 149.619 72.0398 149.886 71.8393C150.153 71.6388 150.545 71.5 151 71.5C151.455 71.5 151.847 71.6388 152.114 71.8393C152.381 72.0398 152.5 72.2785 152.5 72.5Z' stroke='%23839DAE'/%3e %3ccircle cx='148.5' cy='72.5' r='1.5' fill='%23B9D1E1'/%3e%3cpath d='M150.5 75C150.5 75.4546 150.361 75.8468 150.161 76.1142C149.96 76.3814 149.722 76.5 149.5 76.5C149.278 76.5 149.04 76.3814 148.839 76.1142C148.639 75.8468 148.5 75.4546 148.5 75C148.5 74.5454 148.639 74.1532 148.839 73.8858C149.04 73.6186 149.278 73.5 149.5 73.5C149.722 73.5 149.96 73.6186 150.161 73.8858C150.361 74.1532 150.5 74.5454 150.5 75Z' stroke='%23839DAE'/%3e%3c/svg%3e";const TableEmptyState=({EmptyStateComponent:e,CustomMessage:t})=>{return e?jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:e}):jsxRuntime.exports.jsx(Grid$1,Object.assign({sx:{position:"relative",height:"99%",overflow:"hidden"}},{children:jsxRuntime.exports.jsx(Box$1,Object.assign({sx:Object.assign({},{overflow:"hidden",width:"100%",display:"flex",justifyContent:"center",marginTop:"80px"})},{children:jsxRuntime.exports.jsx(()=>{var e=t?jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:t}):jsxRuntime.exports.jsx(FormattedMessage$1,{id:"shared-utils.table-infinite-scroll.empty-state-message",defaultMessage:"No items found",description:"Table empty state, nothing found message"});return jsxRuntime.exports.jsxs(Stack$4,Object.assign({spacing:2,display:"flex",alignItems:"center"},{children:[jsxRuntime.exports.jsx("img",{width:"270px",draggable:"false",src:img,alt:"empty state image"}),jsxRuntime.exports.jsx(Typography$1,Object.assign({component:"div",fontWeight:"strong"},{children:e}))]}))},{})}))}))},TableErrorState=({ErrorStateComponent:e,CustomMessage:t,onRetry:n})=>{return e?jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:e}):jsxRuntime.exports.jsx(Grid$1,Object.assign({sx:{position:"relative",height:"99%",overflow:"hidden"}},{children:jsxRuntime.exports.jsx(Box$1,Object.assign({sx:Object.assign({},{overflow:"hidden",width:"100%",display:"grid",placeItems:"center",marginTop:"80px"})},{children:jsxRuntime.exports.jsx(()=>{var e=t?jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:t}):jsxRuntime.exports.jsx(FormattedMessage$1,{id:"shared-utils.table-infinite-scroll.error-state-message",defaultMessage:"Error Loading Items",description:"Table error state, unable to load items message"});return jsxRuntime.exports.jsxs(Stack$4,Object.assign({spacing:2,display:"flex",alignItems:"center"},{children:[jsxRuntime.exports.jsx(AlarmTwo,{fontSize:"large"}),jsxRuntime.exports.jsx(Typography$1,Object.assign({fontWeight:"strong"},{children:e})),jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:n,variant:"contained"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"shared-utils.table-infinite-scroll.error-state-button",defaultMessage:"Retry",description:"Table error state, retry button"})}))]}))},{})}))}))},TableInfiniteScroll=({hasMore:t,fetchMore:e,fetchOnMount:n=!1,offset:r,adjustTableHeight:i=0,adjustTableWidth:o=0,items:a,itemHeight:s,isLoading:l,error:c,onRetry:u,TableRowComponent:d,TableEmptyStateComponent:p,TableErrorStateComponent:f,TableHeaderComponent:h,TableRowLoadingComponent:m,sx:g={},testId:y="",showDebug:v=!1,FixedSizeListProps:x={},AutoSizerProps:$={},InfiniteLoaderProps:b={},ContainerProps:C={},RowContainerProps:S={},threshold:w=15,className:_="",MessageEmptyState:T,MessageErrorState:E,listRef:j})=>{var R;const I=react$1.exports.useRef(null),[O,k]=react$1.exports.useState(null!=x&&x.initialScrollOffset?null==x?void 0:x.initialScrollOffset:0),A=t?a.length+1:a.length,M=e=>!t||e<a.length,L=()=>{l||e()};const P=debounce_1(e=>{k(e)},500),N=({index:e,style:t,isScrolling:n})=>{var r=a[e];return M(e)?jsxRuntime.exports.jsx(Box$1,Object.assign({"data-testid":"sdk-table-infinite-scroller-row-"+(e+1),style:t},S,{children:jsxRuntime.exports.jsx(d,{item:r,index:e,isScrolling:n})}),e):jsxRuntime.exports.jsx(Box$1,Object.assign({"data-testid":"sdk-table-infinite-scroller-row-loading-"+(e+1),style:t},S,{children:jsxRuntime.exports.jsx(TableRowLoader,{height:s,LoadingComponent:m})}))};return react$1.exports.useEffect(()=>{n&&e()},[]),react$1.exports.useEffect(()=>{const t=O;setTimeout(()=>{var e;return I&&(null==(e=I.current)?void 0:e._listRef.scrollToItem(t,"start"))},0)},[s]),react$1.exports.useEffect(()=>{var e;j&&(j.current=null==(e=I.current)?void 0:e._listRef)},[null==(R=I.current)?void 0:R._listRef,j]),c?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(TableErrorState,{ErrorStateComponent:f,onRetry:()=>{(u||e)()},CustomMessage:E}),v&&jsxRuntime.exports.jsx(TableDebugMenu,{adjustTableHeight:i,adjustTableWidth:o,hasMore:t,hasHeader:!!h,isLoading:l,items:a,itemHeight:s,fetchMore:e,offset:r})]}):l&&!c&&0===a.length?jsxRuntime.exports.jsx(TableLoadingState,{itemHeight:s,LoadingComponent:m}):l||c||0!==a.length?jsxRuntime.exports.jsxs(Grid$1,Object.assign({"data-testid":y||"sdk-table-infinite-scroll-container",sx:Object.assign({position:"relative",height:"100%",overflow:"hidden"},g),className:_},C,{children:[h&&jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:h}),jsxRuntime.exports.jsx(AutoSizer,Object.assign({},$,{children:({height:n,width:r})=>jsxRuntime.exports.jsx(InfiniteLoader,Object.assign({ref:I,isItemLoaded:M,itemCount:A,loadMoreItems:L,threshold:w},b,{children:({onItemsRendered:t,ref:e})=>jsxRuntime.exports.jsx(FixedSizeList,Object.assign({ref:e,height:n+i,width:r+o,itemCount:a.length,itemSize:s,onItemsRendered:e=>{t(e),e=e.visibleStartIndex,l||P(e)},initialScrollOffset:0},x,{children:N}))}))})),v&&jsxRuntime.exports.jsx(TableDebugMenu,{adjustTableHeight:i,adjustTableWidth:o,hasMore:t,hasHeader:!!h,isLoading:l,items:a,itemHeight:s,fetchMore:e,offset:r})]})):jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(TableEmptyState,{EmptyStateComponent:p,CustomMessage:T}),v&&jsxRuntime.exports.jsx(TableDebugMenu,{adjustTableHeight:i,adjustTableWidth:o,hasMore:t,hasHeader:!!h,isLoading:l,items:a,itemHeight:s,fetchMore:e,offset:r})]})};var tableInfiniteScrollJsx=Object.freeze({__proto__:null,TableInfiniteScroll:TableInfiniteScroll});const formatTime=e=>{e=e.toLocaleTimeString().split(" ");return e[0]=e[0].split(":"),e[0].pop(),e[0]=e[0].join(":"),e[0]+" "+e[1]},truncatedString=(e,t)=>e.length>t?jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:e,arrow:!0},{children:jsxRuntime.exports.jsxs("span",{children:[e.slice(0,t).trim(),"..."]})})):jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:e});function usePrevious$3(e){const t=react$1.exports.useRef();return react$1.exports.useEffect(()=>{t.current=e},[e]),t.current}const getTimeDifference=e=>{var t=(new Date).getTime();return(new Date(e).getTime()-t)/1e3/60},totalRunTime=(e,t,n)=>{e=new Date(e).getTime();let r=(new Date(t).getTime()-e)/1e3,i="";var t=n.formatMessage({id:"processing-center-overview-tab.total-run-time-day",defaultMessage:[{type:0,value:"day"}]}),e=n.formatMessage({id:"processing-center-overview-tab.total-run-time.days",defaultMessage:[{type:0,value:"days"}]}),o=n.formatMessage({id:"processing-center-overview-tab.total-run-time.hour",defaultMessage:[{type:0,value:"hour"}]}),a=n.formatMessage({id:"processing-center-overview-tab.total-run-time.hours",defaultMessage:[{type:0,value:"hours"}]}),s=n.formatMessage({id:"processing-center-overview-tab.total-run-time.minute",defaultMessage:[{type:0,value:"minute"}]}),l=n.formatMessage({id:"processing-center-overview-tab.total-run-time.minutes",defaultMessage:[{type:0,value:"minutes"}]}),n=n.formatMessage({id:"processing-center-overview-tab.total-run-time.just-now",defaultMessage:[{type:0,value:"Just Now"}]}),c=Math.floor(r/86400),c=(c&&(r-=3600*c*24,i+=c+` ${1===c?t:e} `),Math.floor(r/3600)),t=(c&&(r-=3600*c,i+=c+` ${1===c?o:a} `),Math.floor(r/60));return t&&(i+=t+" "+(1===t?s:l)),i=i||n};var index$1=Object.freeze({__proto__:null,formatTime:formatTime,truncatedString:truncatedString,usePrevious:usePrevious$3,getTimeDifference:getTimeDifference,totalRunTime:totalRunTime});const visuallyHidden$3={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};var EStatusPillType,EngineFieldType,visuallyHidden$1$1=visuallyHidden$3;const SHARED_TEXT$2={closePanel:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"reusable-utils.panel-components.header.close-panel",defaultMessage:"Close",description:"Close panel icon for a panel header"})},PanelHeader$1=({title:e,height:t=64,PanelActions:n,testId:r,onPanelClose:i,disableBorder:o})=>jsxRuntime.exports.jsxs(Box$1,Object.assign({sx:{alignItems:"center",borderBottom:o?void 0:e=>"0.5px solid "+e.palette.divider,display:"flex",justifyContent:"space-between",height:t,padding:e=>e.spacing(2,2,2,6)}},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({sx:{userSelect:"none",fontStyle:"normal",fontSize:"18px",lineHeight:e=>e.spacing(5),letterSpacing:"0.25px",textTransform:"uppercase",color:e=>e.palette.text.secondary},variant:"h1","data-testid":"panel-header-"+r},{children:e})),jsxRuntime.exports.jsxs(Stack$4,Object.assign({direction:"row",alignItems:"center"},{children:[n,i&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({style:visuallyHidden$1$1,id:"panel-header-close-"+r},{children:SHARED_TEXT$2.closePanel()})),jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:SHARED_TEXT$2.closePanel()},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({onClick:i,"aria-labelledby":"panel-header-close-"+r,"data-testid":"panel-header-close-"+r,size:"large"},{children:jsxRuntime.exports.jsx(Close$1,{})}))}))]})]}))]})),PanelContainer=t=>{var e=(useSelector(panelsSelector)||[]).find(e=>e.panelId===t.panelId)||{panelConfig:{dimmed:0}},e=0<(null==(e=null===e?void 0:e.panelConfig)?void 0:e.dimmed);return jsxRuntime.exports.jsxs(Stack$4,Object.assign({"data-testid":null!=t&&t.testId?t.testId:"panel-container-testid",sx:{height:null!=t&&t.isFullScreen?"calc(100vh - 5px)":"calc(100vh - 60px)",position:"relative"}},{children:[e&&jsxRuntime.exports.jsx(Box$1,{sx:{backgroundColor:e=>e.palette.grey[50],opacity:"0.5 !important",height:"100%",position:"absolute",top:0,width:"100%",zIndex:1001}}),null==t?void 0:t.children]}))},PanelContent=({children:e,style:t={}})=>jsxRuntime.exports.jsx(Box$1,Object.assign({sx:Object.assign({display:"flex",flexDirection:"column",flex:"1 auto",boxSizing:"border-box",overflowY:"auto"},t)},{children:e})),tabsStyle={"& .Sdk-MuiButtonBase-root.MuiTab-root.MuiTab-textColorPrimary.Mui-selected":{color:"#2A323C!important"},"& .Sdk-MuiTabs-indicator":{backgroundColor:"#2A323C"}},PanelStepperTabs=({activeStep:o,steps:n,stepLabels:a,enableTabs:e=!1,onClickTab:r,onClickStep:s,TabProps:i={},TabsProps:t={},StepProps:l={},testId:c="sdk-stepper",disableBorder:u=!1})=>{const d=stepperStyles()["classes"],p=t=>{var e;return null==(e=n.find(e=>e.stepNumber===t))?void 0:e.disabled};return e?jsxRuntime.exports.jsx(Box$1,Object.assign({sx:{padding:e=>e.spacing(2,6,0,6),borderBottom:u?void 0:e=>"0.5px solid "+e.palette.divider}},{children:jsxRuntime.exports.jsx(Tabs$2,Object.assign({"data-testid":"panel-stepper-tabs.tabs.container-"+c,value:o,onChange:(e,t)=>{p(t)||r&&r(t)},variant:"scrollable",sx:Object.assign({["& ."+tabsClasses$1.scrollButtons]:{"&.Mui-disabled":{opacity:.3}}},tabsStyle),scrollButtons:!0},t,{children:n.map(e=>{const{stepNumber:t,error:n,disabled:r}=e;e=null==(e=a.find(e=>e.stepNumber===t))?void 0:e.stepLabel;return jsxRuntime.exports.jsx(Tab$2,Object.assign({disabled:r,sx:n?{color:"#d32f2f"}:{},label:jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:e}),value:t,"data-testid":`panel-stepper-tabs.tab.${t}.`+c},i),t)})}))})):jsxRuntime.exports.jsx(Box$1,Object.assign({sx:{padding:e=>e.spacing(4,6,4,6),borderBottom:u?void 0:e=>"0.5px solid "+e.palette.divider}},{children:jsxRuntime.exports.jsx(Stepper$1,Object.assign({activeStep:o},{children:n.map(e=>{const{stepNumber:n,completed:t}=e;var e=null==(e=a.find(e=>e.stepNumber===n))?void 0:e.stepLabel,r=n<o,i=n>o,i=`${d.step} ${i?d.futureStep:""} ${r?d.previousStep:""} `;return jsxRuntime.exports.jsx(Step$1,Object.assign({sx:{paddingLeft:1===n?"0px":void 0},className:i,onClick:e=>{var t;t=n,p(t)||s&&s(t)},completed:t},l,{"data-testid":`panel-stepper-tabs.stepper.${n}.`+c},{children:jsxRuntime.exports.jsx(StepLabel$1,{children:e})}),n)})}))}))},stepperStyles=makeStyles()(e=>({step:{"& svg":{fontSize:"37px",fill:"#465364"},"& text":{fontSize:"10px",translate:"0px -1px"}},previousStep:{"& svg":{borderRadius:"50%"},"&:not(.is-first-step)":{}},futureStep:{"& svg":{fill:"#F2F5F9!important",borderRadius:"50%"},"& text":{fill:"#5C6269"},"&:not(.is-last-step)":{}},hiddenStep:{paddingRight:"0","& svg":{fill:"#F2F5F9!important",border:"2px solid white",color:"#5C6269",fontSize:"32px"},"& text":{fill:"#5C6269"},"&+.MuiStepConnector-horizontal":{display:"none"}}})),STATUS_COLORS=(!function(e){e.engine="engine",e.engineBuild="engineBuild",e.schema="schema",e.application="application",e.library="library",e.flow="flow",e.applicationContentMenuExtension="applicationContentMenuExtension",e.applicationView="applicationView",e.package="package",e.sdo="sdo",e.tdo="tdo",e.scheduledJob="scheduledJob",e.dagTemplate="dagTemplate",e.nodeRedPalette="nodeRedPalette"}(EStatusPillType=EStatusPillType||{}),{[EStatusPillType.engine]:{active:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},disabled:{text:"#212121",background:"rgba(33, 33, 33, 0.1)"},pending:{text:"#F57C00",background:"rgba(249, 168, 37, 0.2)"},deleted:{text:"#B71C1C",background:"rgba(183, 28, 28, 0.2)"},draft:{text:"#4F5863",background:"#FFFFFF"},ready:{text:"#0D62D2",background:"rgba(13, 98, 210, 0.2)"},_default:{text:"#4F5863",background:"#FFFFFF"}},[EStatusPillType.engineBuild]:{fetching:{},invalid:{text:"#B71C1C",background:"rgba(183, 28, 28, 0.2)"},available:{text:"#388E3C",background:"rgba(96, 125, 180, 0.3)"},pending:{text:"#F57C00",background:"rgba(249, 168, 37, 0.2)"},disapproved:{text:"#212121",background:"rgba(255, 161, 104, 0.4)"},approved:{text:"#0D62D2",background:"rgba(13, 98, 210, 0.2)"},deploying:{text:"#F57C00",background:"rgba(20, 96, 121, 0.2)"},deployed:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},_default:{text:"#4F5863",background:"#FFFFFF"}},[EStatusPillType.schema]:{published:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},inactive:{text:"#212121",background:"rgba(33, 33, 33, 0.1)"},deleted:{text:"#B71C1C",background:"rgba(183, 28, 28, 0.2)"},draft:{text:"#4F5863",background:"#FFFFFF"},_default:{text:"#212121",background:"rgba(33, 33, 33, 0.1)"}},[EStatusPillType.application]:{active:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},draft:{text:"#4F5863",background:"#FFFFFF"},deleted:{text:"#B71C1C",background:"rgba(183, 28, 28, 0.2)"},pending:{text:"#F57C00",background:"rgba(249, 168, 37, 0.2)"},rejected:{text:"#388E3C",background:"rgba(183, 28, 28, 0.2)"},approved:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},disabled:{text:"#B71C1C",background:"rgba(33, 33, 33, 0.1)"},_default:{text:"#212121",background:"rgba(33, 33, 33, 0.1)"}},[EStatusPillType.flow]:{active:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},disabled:{text:"#212121",background:"rgba(33, 33, 33, 0.1)"},pending:{text:"#F57C00",background:"rgba(249, 168, 37, 0.2)"},deleted:{text:"#B71C1C",background:"rgba(183, 28, 28, 0.2)"},draft:{text:"#4F5863",background:"#FFFFFF"},ready:{text:"#0D62D2",background:"rgba(13, 98, 210, 0.2)"},_default:{text:"#4F5863",background:"#FFFFFF"}},[EStatusPillType.applicationContentMenuExtension]:{_default:{text:"#4F5863",background:"#FFFFFF"}},[EStatusPillType.package]:{active:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},approved:{text:"#0D62D2",background:"rgba(13, 98, 210, 0.2)"},published:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},pending:{text:"#F57C00",background:"rgba(249, 168, 37, 0.2)"},deactivated:{text:"#B71C1C",background:"rgba(183, 28, 28, 0.2)"},draft:{text:"#4F5863",background:"#F7F7F7"},_default:{text:"#212121",background:"rgba(33, 33, 33, 0.1)"}},[EStatusPillType.applicationView]:{_default:{text:"#4F5863",background:"#FFFFFF"}},[EStatusPillType.scheduledJob]:{_default:{text:"#4F5863",background:"#FFFFFF"}},[EStatusPillType.dagTemplate]:{_default:{text:"#4F5863",background:"#FFFFFF"}},[EStatusPillType.nodeRedPalette]:{_default:{text:"#4F5863",background:"#FFFFFF"}},[EStatusPillType.library]:{_default:{text:"#4F5863",background:"#FFFFFF"}},[EStatusPillType.tdo]:{_default:{text:"#4F5863",background:"#FFFFFF"}},[EStatusPillType.sdo]:{_default:{text:"#4F5863",background:"#FFFFFF"}}}),StatusPill=({statusType:e,status:t,ContainerProps:n={},TypographyProps:r={}})=>{var{background:e,color:i}=STATUS_COLORS[e][t]||(null==(e=STATUS_COLORS[e])?void 0:e._default);return jsxRuntime.exports.jsx(Box$1,Object.assign({sx:{width:"fit-content",height:"18px",left:"264px",top:"244px",borderRadius:"30px",textAlign:"center",letterSpacing:"-1.30385e-09px",display:"flex",flexDirection:"row",alignItems:"flex-start",padding:"3px 10px",gap:"10px",background:e}},n,{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":"status-pill",variant:"caption",sx:{color:i,fontFamily:"'Nunito'",fontStyle:"normal",fontWeight:800,fontSize:"9px",lineHeight:"12px",textTransform:"uppercase"}},r,{children:t}))}))},TableSearchBannerChip=({label:e,onDelete:t,sx:n={},TypographyProps:r={}})=>jsxRuntime.exports.jsx(Chip$1,{sx:Object.assign({backgroundColor:"rgb(255 255 255)",border:"1px solid #d5dfe9!important"},n),label:jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"caption",fontWeight:"bold"},r,{children:['"',e,'"']})),onDelete:t}),TableSearchBanner=({sx:e={},titleText:t,isLoading:n,hide:r,content:i,ContainerProps:o={},TitleProps:a={},LoaderComponent:s})=>{e=Object.assign({padding:"10px 30px",background:"#f2f5f9",borderBottom:"1px solid #d5dfe9",gap:"10px"},e);return r?null:jsxRuntime.exports.jsxs(Stack$4,Object.assign({sx:e,direction:"row",alignItems:"center"},o,{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},a,{children:t})),n?jsxRuntime.exports.jsx(()=>s?jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:s}):jsxRuntime.exports.jsx(Skeleton$1,{sx:{transform:"none"},width:"100px",height:"32px"}),{}):jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:i})]}))},useStyles$2$5=makeStyles()(e=>({searchInput:{opacity:0,width:"0px",MozTransition:"all 300ms ease",WebkitTransition:"all 300ms ease","&.is-visible":{width:"400px",opacity:1},"&:focus":{outline:"none",boxShadow:"0 -1px 1px rgba(255, 255, 255, 0.25), 0 1px 5px rgba(0, 0, 0, 0.15)"}},searchContainer:{display:"flex"}})),TableSearchInputButton=({onChange:e,onClear:t,onToggleSearch:n,testId:r,placeholderText:i,searchValue:o,inputValue:a,isSearching:s,isSearchVisible:l,searchItemTooltipText:c="",searchTooltipTextOverride:u,disabled:d=!1})=>{var p=useStyles$2$5()["classes"],f=!!o&&!l;return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(TextField$1,{autoFocus:l,inputRef:e=>{null!==e&&l&&e.focus()},"data-test":"table-search-components.search-label."+r,onClick:e=>e.stopPropagation(),className:p.searchInput+" "+(l?"is-visible":""),onChange:l?e:void 0,value:a,placeholder:l?i:"",InputProps:{style:{borderRadius:"50px",height:"35px"},endAdornment:jsxRuntime.exports.jsxs(InputAdornment$1,Object.assign({position:"end"},{children:[s&&jsxRuntime.exports.jsx(CircularProgress$1,{size:20,thickness:5}),!s&&a&&jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"table-search-components.clear-search.label",defaultMessage:"Clear Search",description:"Label for the button to clear the filter"})},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({size:"small",onClick:t},{children:jsxRuntime.exports.jsx(Clear,{})}))}))]}))}}),jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:d?jsxRuntime.exports.jsx(FormattedMessage$1,{id:"table-search-components.search-btn.search-disabled",defaultMessage:"Search is not available",description:"tooltip message on the table data search"}):l?jsxRuntime.exports.jsx(FormattedMessage$1,{id:"table-search-components.search-btn.hide-search",defaultMessage:"Hide Search",description:"tooltip message on the table data search"}):o?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(FormattedMessage$1,{id:"table-search-components.search-btn.searching-for",defaultMessage:"Searching for ",description:"tooltip message on the table data search"})," ",`"${o}"`]}):u?jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:u}):jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(FormattedMessage$1,{id:"table-search-components.search-btn.search-text",defaultMessage:"Search",description:"tooltip message on the table data search"}),c&&jsxRuntime.exports.jsx("span",Object.assign({style:{textTransform:"capitalize"}},{children:" "+c}))]})},{children:jsxRuntime.exports.jsx(Box$1,{children:jsxRuntime.exports.jsx(Badge$1,Object.assign({invisible:!f,badgeContent:jsxRuntime.exports.jsx(Typography$1,Object.assign({fontWeight:"bold",color:"white",variant:"caption"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"table-search-components.search-btn.active",defaultMessage:"Active",description:"badge message on the table data search"})})),color:"primary"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({onClick:n,"data-testid":"table-search-components.search-icon."+r,"aria-labelledby":"table-search-components.search-label."+r,size:"large",disabled:d},{children:jsxRuntime.exports.jsx(Search$1,{sx:f?{color:"#1871E8"}:{}})}))}))})}))]})},useStyles$1$5=makeStyles()((e,t,n)=>({engineIconContainer:{background:"#EEF3F9",padding:"3px",borderRadius:"5px",marginRight:"3px",maxWidth:"20px",maxHeight:"20px",verticalAlign:"middle",display:"flex"},iconWrapper:{position:"relative",["&:hover > ."+n.enginesList]:{display:"block !important"},display:"flex",alignItems:"center"},tooltipCatName:{color:"white",paddingLeft:"5px",fontWeight:"900"},engineIcon:{width:"14px",height:"14px"},enginesList:{background:"rgba(0,0,0,.75)",padding:e.spacing(.6),borderRadius:"5px",marginRight:e.spacing(.6),position:"absolute",top:20,left:0,display:"none",zIndex:"999"},tooltipDivider:{marginTop:"3px"},enginesUL:{padding:"0 7px 0 20px",margin:"3px 0 !important",color:"white",overflow:"hidden",whiteSpace:"nowrap","& *":{color:"white"}},tooltipIcon:{fill:"white",width:"12px",height:"12px"},tooltipCatIconWrapper:{display:"flex",alignItems:"center",paddingLeft:"3px"},moreDivider:{borderTop:"2px solid white",marginBottom:"9px",marginTop:"6px"},moreIcon:{width:"12px",height:"12px"}})),engineIconHelper=e=>void 0!==e&&e?EngineCategoryIcons[e]:null,getCat=e=>{return null==(e=null==(e=null==(e=null==e?void 0:e.engine)?void 0:e.category)?void 0:e.name)?void 0:e.replace(/[^a-zA-Z]/g,"")},getTooltip=(e,t,n)=>t.length?jsxRuntime.exports.jsxs(Box$1,{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({className:n.tooltipCatIconWrapper},{children:[jsxRuntime.exports.jsx(Icon$1,{component:engineIconHelper(e),className:n.tooltipIcon}),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"caption",className:n.tooltipCatName},{children:e}))]})),jsxRuntime.exports.jsx(Divider$1,{className:n.tooltipDivider}),jsxRuntime.exports.jsx("ul",Object.assign({className:n.enginesUL},{children:t.map(e=>jsxRuntime.exports.jsx("li",{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"caption"},{children:e}))},e))}))]}):null,EngineIconsRenderer=({tasks:e,iconsToRender:r=3,showMore:i=!1})=>{const n=useStyles$1$5()["classes"];if(!e||!e.length||e.find(e=>!e.engine))return jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"caption",sx:{color:"black"}},{children:"N/A"}));e=e.filter(e=>{e=getCat(e);return engineIconHelper(e)});const o={},a={};return e&&e.forEach(e=>{var t,n=getCat(e);Object.keys(o).length<r?(n&&!o[n]&&(o[n]=[]),n&&null!=(t=null==e?void 0:e.engine)&&t.name&&o[n].push(null==(t=null==e?void 0:e.engine)?void 0:t.name)):i&&(n&&!a[n]&&(a[n]=[]),n)&&null!=(t=null==e?void 0:e.engine)&&t.name&&a[n].push(null==(t=null==e?void 0:e.engine)?void 0:t.name)}),jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[Object.keys(o).map(e=>jsxRuntime.exports.jsx(Box$1,Object.assign({className:n.engineIconContainer},{children:jsxRuntime.exports.jsxs(Box$1,Object.assign({className:n.iconWrapper},{children:[jsxRuntime.exports.jsx(Icon$1,{component:engineIconHelper(e),className:n.engineIcon},e),jsxRuntime.exports.jsx(Box$1,Object.assign({className:n.enginesList},{children:getTooltip(e,o[e],n)}))]}))}),e)),0<Object.keys(a).length&&jsxRuntime.exports.jsxs(Box$1,Object.assign({className:n.iconWrapper},{children:[jsxRuntime.exports.jsx(MoreHor,{className:n.moreIcon}),jsxRuntime.exports.jsx(Box$1,Object.assign({className:n.enginesList},{children:Object.keys(a).map((e,t)=>jsxRuntime.exports.jsxs(Box$1,{children:[getTooltip(e,a[e],n),t<Object.keys(a).length-1&&jsxRuntime.exports.jsx(Divider$1,{className:n.moreDivider})]},e+"-"+t))}))]}))]})},generateSagas=e=>{function*t(e){if(!u.create)throw new Error("No apiCalls.create was defined for this redux saga");try{var t=yield select(selectApiConfigs$2),n=u.getAdditionalSelectors?u.getAdditionalSelectors():{};for(const o of Object.keys(n)){var r=yield select(n[o]);o,r}var i=yield call$j(u.create,{apiConfigs:t,itemToCreate:e.payload});yield put(l.actions.createSucceeded(i))}catch(e){yield put(l.actions.createFailed(null))}}function*n(){if(!u.read)throw new Error("No apiCalls.read was defined for this redux saga");try{var e=yield select(selectApiConfigs$2),t=yield select(c.selectOffset),n=yield select(c.selectSearchValue),r=u.getAdditionalSelectors?u.getAdditionalSelectors():{},i={};for(const s of Object.keys(r)){var o=yield select(r[s]);i[s]=o}var a=yield call$j(u.read,{apiConfigs:e,offset:t,limit:d,searchValue:n,additionalSelectors:i});yield put(l.actions.readSucceeded(a.filter(e=>null!==e))),a.length>=d?yield put(l.actions.setHasMore(!0)):yield put(l.actions.setHasMore(!1)),yield put(l.actions.setOffset(t+d))}catch(e){yield put(l.actions.readFailed(null))}}function*r(e){if(!u.update)throw new Error("No apiCalls.update was defined for this redux saga");try{var t=yield select(selectApiConfigs$2),n=u.getAdditionalSelectors?u.getAdditionalSelectors():{};for(const o of Object.keys(n)){var r=yield select(n[o]);o,r}var i=yield call$j(u.update,{apiConfigs:t,itemToUpdate:e.payload});yield put(l.actions.updateSucceeded(i))}catch(e){yield put(l.actions.updateFailed(null))}}function*i(e){if(!u.delete)throw new Error("No apiCalls.delete was defined for this redux saga");try{var t=yield select(selectApiConfigs$2),n=u.getAdditionalSelectors?u.getAdditionalSelectors():{};for(const o of Object.keys(n)){var r=yield select(n[o]);o,r}var i=yield call$j(u.delete,{apiConfigs:t,itemToDelete:e.payload});yield put(l.actions.deleteSucceeded(i))}catch(e){yield put(l.actions.deleteFailed(null))}}const{slice:l,selectors:c,apiCalls:u}=e,d=u.pageSize||30;return{watchCreate:function*(){yield takeEvery$1(l.actions.createStart,t)},watchRead:function*(){yield takeEvery$1(l.actions.readStart,n)},watchUpdate:function*(){yield takeEvery$1(l.actions.updateStart,r)},watchDelete:function*(){yield takeEvery$1(l.actions.deleteStart,i)}}},generateSelectors=({namespace:t,sliceName:n,customReduxNamespace:r,overrideSelectorBase:i})=>{const o=e=>i?i(e):r?e[r]:e[n][t];return{selectHasMore:e=>o(e).hasMore,selectItems:e=>o(e).items,selectOffset:e=>o(e).currentOffset,selectCreateStatus:e=>o(e).createStatus,selectReadStatus:e=>o(e).readStatus,selectUpdateStatus:e=>o(e).updateStatus,selectDeleteStatus:e=>o(e).deleteStatus,selectSearchValue:e=>o(e).searchValue}},generateSlice=e=>{const{sliceName:t,namespace:n,dedupeResponse:r,customReduxNamespace:i}=e,o=e.dedupeIdProp||"id";e={createStatus:"idle",readStatus:"idle",updateStatus:"idle",deleteStatus:"idle",currentOffset:0,hasMore:!0,items:[],filters:[],searchValue:""};return{slice:createSlice({name:i||t+"/"+n,initialState:e,reducers:{createStart(e,t){e.createStatus="pending"},createSucceeded(e,t){e.items.push(t.payload),e.createStatus="idle"},createFailed(e){e.createStatus="failure"},readStart(e){e.readStatus="pending"},readSucceeded(n,e){e.payload.forEach(t=>{var e;!r||-1===(e=n.items.findIndex(e=>t[o]===e[o]))?n.items.push(t):n.items[e]=t}),n.readStatus="idle"},readFailed(e){e.readStatus="failure"},updateStart(e,t){e.updateStatus="pending"},updateSucceeded(e,t){var n=e.items.findIndex(e=>t.payload[o]===e[o]);-1!==n?e.items[n]=t.payload:console.warn("Couldn't replace existing item with updated version in redux state",t.payload),e.updateStatus="idle"},updateFailed(e){e.updateStatus="failure"},deleteStart(e,t){e.deleteStatus="pending"},deleteSucceeded(e,t){var n=e.items.findIndex(e=>t.payload[o]===e[o]);-1!==n?e.items.splice(n,1):console.warn("Couldn't remove deleted item from redux state",t.payload),e.deleteStatus="idle"},deleteFailed(e){e.deleteStatus="failure"},setHasMore(e,t){e.hasMore=t.payload},setOffset(e,t){e.currentOffset=t.payload},resetList(e){e.items=[],e.currentOffset=0,e.hasMore=!0},setFilter(e,t){var n=e.filters.findIndex(e=>e.type===t.payload.type);-1===n?e.filters.push(t.payload):0===t.payload.values.length?e.filters.splice(n,1):e.filters[n].values=t.payload.values},clearFilters(e){e.filters=[]},setSearchValue(e,t){e.searchValue=t.payload},clearSearchValue(e){e.searchValue=""}}}),initialState:e}},generateState=e=>{var{sliceName:e,namespace:t,dedupeResponse:n,dedupeIdProp:r,apiCalls:i,customReduxNamespace:o,overrideSelectorBase:a}=e,{slice:n,initialState:r}=generateSlice({sliceName:e,namespace:t,dedupeResponse:n,dedupeIdProp:r,customReduxNamespace:o}),t=generateSelectors({namespace:t,sliceName:e,customReduxNamespace:o,overrideSelectorBase:a});return{slice:n,selectors:t,sagas:generateSagas({slice:n,selectors:t,apiCalls:i}),initialState:r}},devErrorLogger=e=>{isEqual_1("production","development")&&console.log(e)},TxtField=({id:e,required:t,type:n,value:r,onChange:i,error:o=!1})=>jsxRuntime.exports.jsx(TextField$1,{id:e,sx:{width:"100%"},InputLabelProps:{shrink:!0},autoComplete:"off",required:t,value:r,type:n||"",onChange:i,size:"small",error:o}),SelectList=({id:e,value:t,required:n,options:r,onChange:i,error:o=!1})=>jsxRuntime.exports.jsx(Select$1,Object.assign({id:e,required:n,value:null!=t?t:null,onChange:i,variant:"outlined",style:{width:"100%"},error:o,inputProps:{name:e,id:e},sx:{width:"100%"}},{children:null==r?void 0:r.map(e=>jsxRuntime.exports.jsx(MenuItem$1,Object.assign({value:null==e?void 0:e.value},{children:null==e?void 0:e.key}),null==e?void 0:e.value))})),MultiSelectList=({id:e,values:t,required:n,options:r,onChange:i,error:o=!1})=>{var a={PaperProps:{style:{maxHeight:224,width:250}}};return jsxRuntime.exports.jsx(Select$1,Object.assign({id:e,required:n,value:t,multiple:!0,onChange:i,variant:"outlined",error:o,input:jsxRuntime.exports.jsx(Input$3,{id:"select-multiple-chip-"+e}),renderValue:e=>jsxRuntime.exports.jsx("div",{children:null==e?void 0:e.map(e=>jsxRuntime.exports.jsx(Chip$1,{style:{marginRight:6},label:e},e))}),MenuProps:a},{children:null==r?void 0:r.map(e=>jsxRuntime.exports.jsx(MenuItem$1,Object.assign({value:null==e?void 0:e.value},{children:null==e?void 0:e.key}),null==e?void 0:e.key))}))},formatLabel=(!function(e){e.Number="Number",e.Picklist="Picklist",e.MultiPicklist="MultiPicklist",e.Text="Text",e.SchemaSelection="SchemaSelection"}(EngineFieldType=EngineFieldType||{}),(e="")=>startCase_1(e)),getFieldErrorMessage=e=>{var{required:e,value:t,min:n,max:r,type:i,values:o}=e;if(isEmpty_1(i===EngineFieldType.MultiPicklist?o:t))return e?"This field can't be blank!":"";if(i===EngineFieldType.Number){if(isNumber_1(n)&&Number(t)<n)return"The value can't be lower than "+n.toFixed(2);if(isNumber_1(r)&&Number(t)>r)return"The value can't be higher than "+r.toFixed(2)}return""},useStyles$m=makeStyles()(e=>({formControlWrapper:{marginTop:15},inputLabel:{fontFamily:"Nunito",fontWeight:300,display:"block",fontSize:14,color:"#5C6269",marginBottom:6},inputLabelError:{color:e.palette.error.main}})),EngineComponentLoader=({fields:e,onChange:s,showErrors:l=!1})=>{const c=useStyles$m()["classes"];return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:null==(e=e)?void 0:e.map((t,e)=>{var n=formatLabel((null==t?void 0:t.name)||""),r=`engine-configuration-input--${null==t?void 0:t.name}-idx-`+e,i=e=>{s({fieldName:null==t?void 0:t.name,fieldValue:e.target.value})};let o;var a=!!getFieldErrorMessage(t)&&l;switch(null==t?void 0:t.type){case EngineFieldType.Picklist:o=jsxRuntime.exports.jsx(SelectList,{id:r,label:n,required:null==t?void 0:t.required,options:null==t?void 0:t.options,value:null==t?void 0:t.value,onChange:i,error:a});break;case EngineFieldType.Text:o=jsxRuntime.exports.jsx(TxtField,{id:r,label:n,required:null==t?void 0:t.required,value:(null==t?void 0:t.value)||"",onChange:i,error:a});break;case EngineFieldType.Number:o=jsxRuntime.exports.jsx(TxtField,{id:r,label:n,required:null==t?void 0:t.required,value:(null==t?void 0:t.value)||"",type:"number",onChange:i,error:a});break;case EngineFieldType.MultiPicklist:o=jsxRuntime.exports.jsx(MultiSelectList,{id:r,label:null==t?void 0:t.name,required:null==t?void 0:t.required,options:null==t?void 0:t.options,values:(null==t?void 0:t.values)||[],onChange:i,error:a});break;default:return null}return jsxRuntime.exports.jsxs(FormControl$1,Object.assign({error:a,size:"small",className:c.formControlWrapper},{children:[jsxRuntime.exports.jsx("label",Object.assign({htmlFor:r,className:c.inputLabel+" "+(a&&c.inputLabelError)},{children:n})),o,a&&jsxRuntime.exports.jsx(FormHelperText$2,{children:getFieldErrorMessage(t)})]}),r)})})},characterCountTextField={jsx:characterCountTextFieldJsx},imageUpload={api:imageUploadApi,jsx:imageUploadJsx},enginesFilter={api:enginesFilterApi,jsx:enginesFilterJsx,helpers:enginesFilterHelpers},statusFilter={jsx:statusFilterJsx},dateRangeFilter={jsx:dateRangeFilterJsx},tableInfiniteScroll={jsx:tableInfiniteScrollJsx},panelComponents={header:PanelHeader$1,container:PanelContainer,content:PanelContent,stepper:PanelStepperTabs},tableSearchComponents={TableSearchBannerChip:TableSearchBannerChip,TableSearchBanner:TableSearchBanner,TableSearchInputButton:TableSearchInputButton},statusPill={jsx:StatusPill,colors:STATUS_COLORS},markdown={jsx:MarkdownJsx},distributionTypes={jsx:distributionTypeJsx};var Search={},_interopRequireDefault$8=interopRequireDefault.exports,default_1$8=(Object.defineProperty(Search,"__esModule",{value:!0}),Search.default=void 0),_createSvgIcon$8=_interopRequireDefault$8(createSvgIcon$1),_jsxRuntime$8=jsxRuntime.exports,_default$8=(0,_createSvgIcon$8.default)((0,_jsxRuntime$8.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");function formatProdErrorMessage(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var default_1$8=Search.default=_default$8,$$observable="function"==typeof Symbol&&Symbol.observable||"@@observable",randomString=function(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes={INIT:"@@redux/INIT"+randomString(),REPLACE:"@@redux/REPLACE"+randomString(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString()}};function isPlainObject(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function createStore$1(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(formatProdErrorMessage(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(formatProdErrorMessage(1));return n(createStore$1)(e,t)}if("function"!=typeof e)throw new Error(formatProdErrorMessage(2));var i=e,o=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error(formatProdErrorMessage(3));return o}function d(t){if("function"!=typeof t)throw new Error(formatProdErrorMessage(4));if(l)throw new Error(formatProdErrorMessage(5));var n=!0;return c(),s.push(t),function(){if(n){if(l)throw new Error(formatProdErrorMessage(6));n=!1,c();var e=s.indexOf(t);s.splice(e,1),a=null}}}function p(e){if(!isPlainObject(e))throw new Error(formatProdErrorMessage(7));if(void 0===e.type)throw new Error(formatProdErrorMessage(8));if(l)throw new Error(formatProdErrorMessage(9));try{l=!0,o=i(o,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++)(0,t[n])();return e}return p({type:ActionTypes.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(formatProdErrorMessage(10));i=e,p({type:ActionTypes.REPLACE})}})[$$observable]=function(){var n=d,e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(formatProdErrorMessage(11));function t(){e.next&&e.next(u())}return t(),{unsubscribe:n(t)}}};return e[$$observable]=function(){return this},e},r}function bindActionCreator(e,t){return function(){return t(e.apply(this,arguments))}}function bindActionCreators$1(e,t){if("function"==typeof e)return bindActionCreator(e,t);if("object"!=typeof e||null===e)throw new Error(formatProdErrorMessage(16));var n,r={};for(n in e){var i=e[n];"function"==typeof i&&(r[n]=bindActionCreator(i,t))}return r}function compose(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function applyMiddleware(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];return function(i){return function(){var e=i.apply(void 0,arguments),t=function(){throw new Error(formatProdErrorMessage(15))},n={getState:e.getState,dispatch:function(){return t.apply(void 0,arguments)}},r=o.filter(Boolean).map(function(e){return e(n)}),t=compose.apply(void 0,r)(e.dispatch);return _objectSpread2(_objectSpread2({},e),{},{dispatch:t})}}}var ReactReduxContext=React5.createContext(null);function defaultNoopBatch(e){e()}var batch=defaultNoopBatch,setBatch=function(e){return batch=e},getBatch=function(){return batch};function createListenerCollection(){var e=getBatch(),r=null,i=null;return{clear:function(){i=r=null},notify:function(){e(function(){for(var e=r;e;)e.callback(),e=e.next})},get:function(){for(var e=[],t=r;t;)e.push(t),t=t.next;return e},subscribe:function(e){var t=!0,n=i={callback:e,next:null,prev:i};return n.prev?n.prev.next=n:r=n,function(){t&&null!==r&&(t=!1,n.next?n.next.prev=n.prev:i=n.prev,n.prev?n.prev.next=n.next:r=n.next)}}}}var nullListeners={notify:function(){},get:function(){return[]}};function createSubscription(e,t){var n,r=nullListeners;function i(){a.onStateChange&&a.onStateChange()}function o(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=createListenerCollection())}var a={addNestedSub:function(e){return o(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=nullListeners)},getListeners:function(){return r}};return a}var useIsomorphicLayoutEffect$2="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?react$1.exports.useLayoutEffect:react$1.exports.useEffect;function Provider(e){var t=e.store,n=e.context,e=e.children,r=react$1.exports.useMemo(function(){var e=createSubscription(t);return{store:t,subscription:e}},[t]),i=react$1.exports.useMemo(function(){return t.getState()},[t]),n=(useIsomorphicLayoutEffect$2(function(){var e=r.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),i!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}},[r,i]),n||ReactReduxContext);return React5.createElement(n.Provider,{value:r},e)}var _excluded$2=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],_excluded2=["reactReduxForwardedRef"],EMPTY_ARRAY=[],NO_SUBSCRIPTION_ARRAY=[null,null];function storeStateUpdatesReducer(e,t){e=e[1];return[t.payload,e+1]}function useIsomorphicLayoutEffectWithArgs(e,t,n){useIsomorphicLayoutEffect$2(function(){return e.apply(void 0,t)},n)}function captureWrapperProps(e,t,n,r,i,o,a){e.current=r,t.current=i,n.current=!1,o.current&&(o.current=null,a())}function subscribeUpdates(e,r,t,i,o,a,s,l,c,u){var d,p;if(e)return d=!1,p=null,t.onStateChange=e=function(){if(!d){var e,t,n=r.getState();try{e=i(n,o.current)}catch(e){p=t=e}t||(p=null),e===a.current?s.current||c():(a.current=e,l.current=e,s.current=!0,u({type:"STORE_UPDATED",payload:{error:t}}))}},t.trySubscribe(),e(),function(){if(d=!0,t.tryUnsubscribe(),t.onStateChange=null,p)throw p}}var initStateUpdates=function(){return[null,0]};function connectAdvanced(S,e){var e=e=void 0===e?{}:e,t=e.getDisplayName,i=void 0===t?function(e){return"ConnectAdvanced("+e+")"}:t,t=e.methodName,o=void 0===t?"connectAdvanced":t,t=e.renderCountProp,a=void 0===t?void 0:t,t=e.shouldHandleStateChanges,w=void 0===t||t,t=e.storeKey,s=void 0===t?"store":t,t=(e.withRef,e.forwardRef),l=void 0!==t&&t,t=e.context,t=void 0===t?ReactReduxContext:t,c=_objectWithoutPropertiesLoose$2(e,_excluded$2),_=t;return function($){var e=$.displayName||$.name||"Component",t=i(e),b=_extends$5({},c,{getDisplayName:i,methodName:o,renderCountProp:a,shouldHandleStateChanges:w,storeKey:s,displayName:t,wrappedComponentName:e,WrappedComponent:$}),e=c.pure;var C=e?react$1.exports.useMemo:function(e){return e()};function n(n){var e=react$1.exports.useMemo(function(){var e=n.reactReduxForwardedRef,t=_objectWithoutPropertiesLoose$2(n,_excluded2);return[n.context,e,t]},[n]),t=e[0],r=e[1],i=e[2],o=react$1.exports.useMemo(function(){return t&&t.Consumer&&reactIs.exports.isContextConsumer(React5.createElement(t.Consumer,null))?t:_},[t,_]),a=react$1.exports.useContext(o),s=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch),l=(Boolean(a)&&Boolean(a.store),(s?n:a).store),c=react$1.exports.useMemo(function(){return S(l.dispatch,b)},[l]),e=react$1.exports.useMemo(function(){var e,t;return w?(t=(e=createSubscription(l,s?null:a.subscription)).notifyNestedSubs.bind(e),[e,t]):NO_SUBSCRIPTION_ARRAY},[l,s,a]),u=e[0],e=e[1],d=react$1.exports.useMemo(function(){return s?a:_extends$5({},a,{subscription:u})},[s,a,u]),p=react$1.exports.useReducer(storeStateUpdatesReducer,EMPTY_ARRAY,initStateUpdates),f=p[0][0],p=p[1];if(f&&f.error)throw f.error;var h=react$1.exports.useRef(),m=react$1.exports.useRef(i),g=react$1.exports.useRef(),y=react$1.exports.useRef(!1),v=C(function(){return g.current&&i===m.current?g.current:c(l.getState(),i)},[l,f,i]),x=(useIsomorphicLayoutEffectWithArgs(captureWrapperProps,[m,h,y,i,v,g,e]),useIsomorphicLayoutEffectWithArgs(subscribeUpdates,[w,l,u,c,m,h,y,g,e,p],[l,u,c]),react$1.exports.useMemo(function(){return React5.createElement($,_extends$5({},v,{ref:r}))},[r,$,v]));return react$1.exports.useMemo(function(){return w?React5.createElement(o.Provider,{value:d},x):x},[o,x,d])}var r=e?React5.memo(n):n;return r.WrappedComponent=$,r.displayName=n.displayName=t,l?((e=React5.forwardRef(function(e,t){return React5.createElement(r,_extends$5({},e,{reactReduxForwardedRef:t}))})).displayName=t,e.WrappedComponent=$,hoistNonReactStatics_cjs(e,$)):hoistNonReactStatics_cjs(r,$)}}function is(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function shallowEqual(e,t){if(!is(e,t)){if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!is(e[n[i]],t[n[i]]))return!1}return!0}function bindActionCreators(n,r){var e,i={};for(e in n)!function(e){var t=n[e];"function"==typeof t&&(i[e]=function(){return r(t.apply(void 0,arguments))})}(e);return i}function wrapMapToPropsConstant(i){return function(e,t){var n=i(e,t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function getDependsOnOwnProps(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function wrapMapToPropsFunc(i,e){return function(e,t){t.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(e,t){r.mapToProps=i,r.dependsOnOwnProps=getDependsOnOwnProps(i);var n=r(e,t);return"function"==typeof n&&(r.mapToProps=n,r.dependsOnOwnProps=getDependsOnOwnProps(n),n=r(e,t)),n},r}}function whenMapDispatchToPropsIsFunction(e){return"function"==typeof e?wrapMapToPropsFunc(e):void 0}function whenMapDispatchToPropsIsMissing(e){return e?void 0:wrapMapToPropsConstant(function(e){return{dispatch:e}})}function whenMapDispatchToPropsIsObject(t){return t&&"object"==typeof t?wrapMapToPropsConstant(function(e){return bindActionCreators(t,e)}):void 0}var defaultMapDispatchToPropsFactories=[whenMapDispatchToPropsIsFunction,whenMapDispatchToPropsIsMissing,whenMapDispatchToPropsIsObject];function whenMapStateToPropsIsFunction(e){return"function"==typeof e?wrapMapToPropsFunc(e):void 0}function whenMapStateToPropsIsMissing(e){return e?void 0:wrapMapToPropsConstant(function(){return{}})}var defaultMapStateToPropsFactories=[whenMapStateToPropsIsFunction,whenMapStateToPropsIsMissing];function defaultMergeProps(e,t,n){return _extends$5({},n,e,t)}function wrapMergePropsFunc(s){return function(e,t){t.displayName;var r,i=t.pure,o=t.areMergedPropsEqual,a=!1;return function(e,t,n){e=s(e,t,n);return a?i&&o(e,r)||(r=e):(a=!0,r=e),r}}}function whenMergePropsIsFunction(e){return"function"==typeof e?wrapMergePropsFunc(e):void 0}function whenMergePropsIsOmitted(e){return e?void 0:function(){return defaultMergeProps}}var defaultMergePropsFactories=[whenMergePropsIsFunction,whenMergePropsIsOmitted],_excluded$1=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function impureFinalPropsSelectorFactory(n,r,i,o){return function(e,t){return i(n(e,t),r(o,t),t)}}function pureFinalPropsSelectorFactory(i,o,a,s,e){var l,c,u,d,p,f=e.areStatesEqual,h=e.areOwnPropsEqual,m=e.areStatePropsEqual,n=!1;function r(e,t){var n=!h(t,c),r=!f(e,l,t,c);return l=e,c=t,n&&r?(u=i(l,c),o.dependsOnOwnProps&&(d=o(s,c)),p=a(u,d,c)):n?(i.dependsOnOwnProps&&(u=i(l,c)),o.dependsOnOwnProps&&(d=o(s,c)),p=a(u,d,c)):r?(e=i(l,c),t=!m(e,u),u=e,p=t?a(u,d,c):p):p}return function(e,t){return n?r(e,t):(u=i(l=e,c=t),d=o(s,c),p=a(u,d,c),n=!0,p)}}function finalPropsSelectorFactory(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,t=_objectWithoutPropertiesLoose$2(t,_excluded$1),n=n(e,t),r=r(e,t),i=i(e,t);return(t.pure?pureFinalPropsSelectorFactory:impureFinalPropsSelectorFactory)(n,r,i,e,t)}var _excluded=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function match$2(n,e,r){for(var t=e.length-1;0<=t;t--){var i=e[t](n);if(i)return i}return function(e,t){throw new Error("Invalid value of type "+typeof n+" for "+r+" argument when connecting component "+t.wrappedComponentName+".")}}function strictEqual(e,t){return e===t}function createConnect(e){var e=void 0===e?{}:e,t=e.connectHOC,u=void 0===t?connectAdvanced:t,t=e.mapStateToPropsFactories,d=void 0===t?defaultMapStateToPropsFactories:t,t=e.mapDispatchToPropsFactories,p=void 0===t?defaultMapDispatchToPropsFactories:t,t=e.mergePropsFactories,f=void 0===t?defaultMergePropsFactories:t,t=e.selectorFactory,h=void 0===t?finalPropsSelectorFactory:t;return function(e,t,n,r){var r=r=void 0===r?{}:r,i=r.pure,i=void 0===i||i,o=r.areStatesEqual,o=void 0===o?strictEqual:o,a=r.areOwnPropsEqual,a=void 0===a?shallowEqual:a,s=r.areStatePropsEqual,s=void 0===s?shallowEqual:s,l=r.areMergedPropsEqual,l=void 0===l?shallowEqual:l,r=_objectWithoutPropertiesLoose$2(r,_excluded),c=match$2(e,d,"mapStateToProps"),t=match$2(t,p,"mapDispatchToProps"),n=match$2(n,f,"mergeProps");return u(h,_extends$5({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:c,initMapDispatchToProps:t,initMergeProps:n,pure:i,areStatesEqual:o,areOwnPropsEqual:a,areStatePropsEqual:s,areMergedPropsEqual:l},r))}}var connect=createConnect();function areInputsEqual(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function useMemoOne(e,t){var n=react$1.exports.useState(function(){return{inputs:t,result:e()}})[0],r=react$1.exports.useRef(!0),i=react$1.exports.useRef(n),o=r.current||Boolean(t&&i.current.inputs&&areInputsEqual(t,i.current.inputs))?i.current:{inputs:t,result:e()};return react$1.exports.useEffect(function(){r.current=!1,i.current=o},[o]),o.result}function useCallbackOne(e,t){return useMemoOne(function(){return e},t)}setBatch(reactDom.exports.unstable_batchedUpdates);var useMemo=useMemoOne,useCallback=useCallbackOne,isProduction=!0,prefix$2="Invariant failed";function invariant$2(e,t){if(!e){if(isProduction)throw new Error(prefix$2);e="function"==typeof t?t():t,t=e?"".concat(prefix$2,": ").concat(e):prefix$2;throw new Error(t)}}var getRect=function(e){var t=e.top,n=e.right,r=e.bottom,e=e.left;return{top:t,right:n,bottom:r,left:e,width:n-e,height:r-t,x:e,y:t,center:{x:(n+e)/2,y:(r+t)/2}}},expand=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},shrink=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},shift=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},noSpacing$1={top:0,right:0,bottom:0,left:0},createBox=function(e){var t=e.borderBox,n=e.margin,n=void 0===n?noSpacing$1:n,r=e.border,r=void 0===r?noSpacing$1:r,e=e.padding,e=void 0===e?noSpacing$1:e,i=getRect(expand(t,n)),o=getRect(shrink(t,r)),a=getRect(shrink(o,e));return{marginBox:i,borderBox:getRect(t),paddingBox:o,contentBox:a,margin:n,border:r,padding:e}},parse$1=function(e){var t=e.slice(0,-2);return"px"!==e.slice(-2)?0:(e=Number(t),isNaN(e)&&invariant$2(!1),e)},getWindowScroll$1=function(){return{x:window.pageXOffset,y:window.pageYOffset}},offset$1=function(e,t){var n=e.borderBox,r=e.border,i=e.margin,e=e.padding,n=shift(n,t);return createBox({borderBox:n,border:r,margin:i,padding:e})},withScroll=function(e,t){return void 0===t&&(t=getWindowScroll$1()),offset$1(e,t)},calculateBox=function(e,t){var n={top:parse$1(t.marginTop),right:parse$1(t.marginRight),bottom:parse$1(t.marginBottom),left:parse$1(t.marginLeft)},r={top:parse$1(t.paddingTop),right:parse$1(t.paddingRight),bottom:parse$1(t.paddingBottom),left:parse$1(t.paddingLeft)},t={top:parse$1(t.borderTopWidth),right:parse$1(t.borderRightWidth),bottom:parse$1(t.borderBottomWidth),left:parse$1(t.borderLeftWidth)};return createBox({borderBox:e,margin:n,padding:r,border:t})},getBox=function(e){var t=e.getBoundingClientRect(),e=window.getComputedStyle(e);return calculateBox(t,e)},rafSchd=function(r){function e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i=t,o=o||requestAnimationFrame(function(){o=null,r.apply(void 0,i)})}var i,o=null;return e.cancel=function(){o&&(cancelAnimationFrame(o),o=null)},e},rafSchd$1=rafSchd;function log(e,t){}function noop$1(){}function getOptions(e,t){return _extends$5({},e,{},t)}function bindEvents(n,e,r){var t=e.map(function(e){var t=getOptions(r,e.options);return n.addEventListener(e.eventName,e.fn,t),function(){n.removeEventListener(e.eventName,e.fn,t)}});return function(){t.forEach(function(e){e()})}}log.bind(null,"warn"),log.bind(null,"error");var prefix="Invariant failed";function RbdInvariant(e){this.message=e}function invariant$1(e,t){if(!e)throw new RbdInvariant(prefix)}RbdInvariant.prototype.toString=function(){return this.message};var ErrorBoundary=function(i){function e(){for(var n,e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(n=i.call.apply(i,[this].concat(t))||this).callbacks=null,n.unbind=noop$1,n.onWindowError=function(e){var t=n.getCallbacks();t.isDragging()&&t.tryAbort(),e.error instanceof RbdInvariant&&e.preventDefault()},n.getCallbacks=function(){if(n.callbacks)return n.callbacks;throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>")},n.setCallbacks=function(e){n.callbacks=e},n}_inheritsLoose$2(e,i);var t=e.prototype;return t.componentDidMount=function(){this.unbind=bindEvents(window,[{eventName:"error",fn:this.onWindowError}])},t.componentDidCatch=function(e){if(!(e instanceof RbdInvariant))throw e;this.setState({})},t.componentWillUnmount=function(){this.unbind()},t.render=function(){return this.props.children(this.setCallbacks)},e}(React5.Component),dragHandleUsageInstructions="\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",position=function(e){return e+1},onDragStart=function(e){return"\n You have lifted an item in position "+position(e.source.index)+"\n"},withLocation=function(e,t){var n=e.droppableId===t.droppableId,r=position(e.index),i=position(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+i+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+i+"\n "},withCombine=function(e,t,n){return t.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},onDragUpdate=function(e){var t=e.destination;return t?withLocation(e.source,t):(t=e.combine)?withCombine(e.draggableId,e.source,t):"You are over an area that cannot be dropped on"},returnedToStart=function(e){return"\n The item has returned to its starting position\n of "+position(e.index)+"\n"},onDragEnd=function(e){var t,n;return"CANCEL"===e.reason?"\n Movement cancelled.\n "+returnedToStart(e.source)+"\n ":(t=e.destination,n=e.combine,t?"\n You have dropped the item.\n "+withLocation(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+withCombine(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+returnedToStart(e.source)+"\n ")},preset={dragHandleUsageInstructions:dragHandleUsageInstructions,onDragStart:onDragStart,onDragUpdate:onDragUpdate,onDragEnd:onDragEnd},origin={x:0,y:0},add=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},subtract=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},isEqual=function(e,t){return e.x===t.x&&e.y===t.y},negate=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},patch=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},distance=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},closest=function(t,e){return Math.min.apply(Math,e.map(function(e){return distance(t,e)}))},apply$2=function(t){return function(e){return{x:t(e.x),y:t(e.y)}}},executeClip=function(e,t){t=getRect({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return t.width<=0||t.height<=0?null:t},offsetByPosition=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},getCorners=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},noSpacing={top:0,right:0,bottom:0,left:0},scroll=function(e,t){return t?offsetByPosition(e,t.scroll.diff.displacement):e},increase=function(e,t,n){var r;return n&&n.increasedBy?_extends$5({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e},clip=function(e,t){return t&&t.shouldClipSubject?executeClip(t.pageMarginBox,e):getRect(e)},getSubject=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,e=e.frame,i=scroll(t.marginBox,e),i=increase(i,r,n);return{page:t,withPlaceholder:n,active:clip(i,e)}},scrollDroppable=function(e,t){e.frame||invariant$1(!1);var n=e.frame,r=subtract(t,n.scroll.initial),i=negate(r),t=_extends$5({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:i},max:n.scroll.max}});return _extends$5({},e,{frame:t,subject:getSubject({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:t})})};function values$1(t){return Object.values?Object.values(t):Object.keys(t).map(function(e){return t[e]})}function findIndex(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function find(e,t){return e.find?e.find(t):-1!==(t=findIndex(e,t))?e[t]:void 0}function toArray(e){return Array.prototype.slice.call(e)}var toDroppableMap=memoizeOne(function(e){return e.reduce(function(e,t){return e[t.descriptor.id]=t,e},{})}),toDraggableMap=memoizeOne(function(e){return e.reduce(function(e,t){return e[t.descriptor.id]=t,e},{})}),toDroppableList=memoizeOne(function(e){return values$1(e)}),toDraggableList=memoizeOne(function(e){return values$1(e)}),getDraggablesInsideDroppable=memoizeOne(function(t,e){return toDraggableList(e).filter(function(e){return t===e.descriptor.droppableId}).sort(function(e,t){return e.descriptor.index-t.descriptor.index})});function tryGetDestination(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function tryGetCombine(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var removeDraggableFromList=memoizeOne(function(t,e){return e.filter(function(e){return e.descriptor.id!==t.descriptor.id})}),moveToNextCombine=function(e){var t,n=e.isMovingForward,r=e.draggable,i=e.destination,o=e.insideDestination,a=e.previousImpact;return i.isCombineEnabled&&tryGetDestination(a)?(e=a.displaced.all,t=e.length?e[0]:null,n?t?s(t):null:(e=removeDraggableFromList(r,o),t?(-1===(n=findIndex(e,function(e){return e.descriptor.id===t}))&&invariant$1(!1),(r=n-1)<0?null:s(e[r].descriptor.id)):e.length?s(e[e.length-1].descriptor.id):null)):null;function s(e){e={type:"COMBINE",combine:{draggableId:e,droppableId:i.descriptor.id}};return _extends$5({},a,{at:e})}},isHomeOf=function(e,t){return e.descriptor.droppableId===t.descriptor.id},noDisplacedBy={point:origin,value:0},emptyGroups={invisible:{},visible:{},all:[]},noImpact={displaced:emptyGroups,displacedBy:noDisplacedBy,at:null},isWithin=function(t,n){return function(e){return t<=e&&e<=n}},isPartiallyVisibleThroughFrame=function(i){var o=isWithin(i.top,i.bottom),a=isWithin(i.left,i.right);return function(e){var t,n,r;return!!(o(e.top)&&o(e.bottom)&&a(e.left)&&a(e.right))||(t=o(e.top)||o(e.bottom),n=a(e.left)||a(e.right),!(!t||!n))||(r=e.top<i.top&&e.bottom>i.bottom,e=e.left<i.left&&e.right>i.right,r&&e)||r&&n||e&&t}},isTotallyVisibleThroughFrame=function(e){var t=isWithin(e.top,e.bottom),n=isWithin(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},vertical={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},horizontal={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},isTotallyVisibleThroughFrameOnAxis=function(r){return function(e){var t=isWithin(e.top,e.bottom),n=isWithin(e.left,e.right);return function(e){return r===vertical?t(e.top)&&t(e.bottom):n(e.left)&&n(e.right)}}},getDroppableDisplaced=function(e,t){t=t.frame?t.frame.scroll.diff.displacement:origin;return offsetByPosition(e,t)},isVisibleInDroppable=function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)},isVisibleInViewport=function(e,t,n){return n(t)(e)},isVisible=function(e){var t=e.target,n=e.destination,r=e.viewport,i=e.withDroppableDisplacement,e=e.isVisibleThroughFrameFn,i=i?getDroppableDisplaced(t,n):t;return isVisibleInDroppable(i,n,e)&&isVisibleInViewport(i,r,e)},isPartiallyVisible=function(e){return isVisible(_extends$5({},e,{isVisibleThroughFrameFn:isPartiallyVisibleThroughFrame}))},isTotallyVisible=function(e){return isVisible(_extends$5({},e,{isVisibleThroughFrameFn:isTotallyVisibleThroughFrame}))},isTotallyVisibleOnAxis=function(e){return isVisible(_extends$5({},e,{isVisibleThroughFrameFn:isTotallyVisibleThroughFrameOnAxis(e.destination.axis)}))},getShouldAnimate=function(e,t,n){return"boolean"==typeof n?n:!t||(n=t.invisible,t=t.visible,!n[e]&&(!(n=t[e])||n.shouldAnimate))};function getTarget(e,t){e=e.page.marginBox,t={top:t.point.y,right:0,bottom:0,left:t.point.x};return getRect(expand(e,t))}function getDisplacementGroups(e){var t=e.afterDragging,i=e.destination,o=e.displacedBy,a=e.viewport,s=e.forceShouldAnimate,l=e.last;return t.reduce(function(e,t){var n=getTarget(t,o),r=t.descriptor.id;return e.all.push(r),isPartiallyVisible({target:n,destination:i,viewport:a,withDroppableDisplacement:!0})?(n=getShouldAnimate(r,l,s),e.visible[r]={draggableId:r,shouldAnimate:n}):e.invisible[t.descriptor.id]=!0,e},{all:[],visible:{},invisible:{}})}function getIndexOfLastItem(e,t){return e.length?(e=e[e.length-1].descriptor.index,t.inHomeList?e:e+1):0}function goAtEnd(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,e=e.destination,t=getIndexOfLastItem(t,{inHomeList:n});return{displaced:emptyGroups,displacedBy:r,at:{type:"REORDER",destination:{droppableId:e.descriptor.id,index:t}}}}function calculateReorderImpact(e){var t,n=e.draggable,r=e.insideDestination,i=e.destination,o=e.viewport,a=e.displacedBy,s=e.last,l=e.index,e=e.forceShouldAnimate,c=isHomeOf(n,i);return null!=l&&(t=find(r,function(e){return e.descriptor.index===l}))?(n=removeDraggableFromList(n,r),t=r.indexOf(t),{displaced:getDisplacementGroups({afterDragging:n.slice(t),destination:i,displacedBy:a,last:s,viewport:o.frame,forceShouldAnimate:e}),displacedBy:a,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:l}}}):goAtEnd({insideDestination:r,inHomeList:c,displacedBy:a,destination:i})}function didStartAfterCritical(e,t){return Boolean(t.effected[e])}var fromCombine=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,i=e.combine,e=e.afterCritical;return n.isCombineEnabled?(r=r[n=i.draggableId].descriptor.index,didStartAfterCritical(n,e)?t?r:r-1:t?r+1:r):null},fromReorder=function(e){var t,n=e.isMovingForward,r=e.isInHomeList,i=e.insideDestination,e=e.location;return!i.length||(e=e.index,t=i[0].descriptor.index,i=i[i.length-1].descriptor.index,(n=n?e+1:e-1)<t)||(r?i:i+1)<n?null:n},moveToNextIndex=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,i=e.draggables,o=e.destination,a=e.insideDestination,s=e.previousImpact,l=e.viewport,e=e.afterCritical,c=s.at;return c||invariant$1(!1),"REORDER"===c.type?null==(n=fromReorder({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:a}))?null:calculateReorderImpact({draggable:r,insideDestination:a,destination:o,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:n}):null==(n=fromCombine({isMovingForward:t,destination:o,displaced:s.displaced,draggables:i,combine:c.combine,afterCritical:e}))?null:calculateReorderImpact({draggable:r,insideDestination:a,destination:o,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:n})},getCombinedItemDisplacement=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,e=e.displacedBy,t=Boolean(t.visible[r]||t.invisible[r]);return didStartAfterCritical(r,n)?t?origin:negate(e.point):t?e.point:origin},whenCombining=function(e){var t=e.afterCritical,n=e.impact,e=e.draggables,r=tryGetCombine(n),r=(r||invariant$1(!1),r.draggableId),e=e[r].page.borderBox.center,t=getCombinedItemDisplacement({displaced:n.displaced,afterCritical:t,combineWith:r,displacedBy:n.displacedBy});return add(e,t)},distanceFromStartToBorderBoxCenter=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},distanceFromEndToBorderBoxCenter=function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2},getCrossAxisBorderBoxCenter=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},goAfter=function(e){var t=e.axis,n=e.moveRelativeTo,e=e.isMoving;return patch(t.line,n.marginBox[t.end]+distanceFromStartToBorderBoxCenter(t,e),getCrossAxisBorderBoxCenter(t,n.marginBox,e))},goBefore=function(e){var t=e.axis,n=e.moveRelativeTo,e=e.isMoving;return patch(t.line,n.marginBox[t.start]-distanceFromEndToBorderBoxCenter(t,e),getCrossAxisBorderBoxCenter(t,n.marginBox,e))},goIntoStart=function(e){var t=e.axis,n=e.moveInto,e=e.isMoving;return patch(t.line,n.contentBox[t.start]+distanceFromStartToBorderBoxCenter(t,e),getCrossAxisBorderBoxCenter(t,n.contentBox,e))},whenReordering=function(e){var t,n=e.impact,r=e.draggable,i=e.draggables,o=e.droppable,e=e.afterCritical,a=getDraggablesInsideDroppable(o.descriptor.id,i),s=r.page,l=o.axis;return a.length?(t=n.displaced,n=n.displacedBy,(t=t.all[0])?(i=i[t],didStartAfterCritical(t,e)?goBefore({axis:l,moveRelativeTo:i.page,isMoving:s}):(t=offset$1(i.page,n.point),goBefore({axis:l,moveRelativeTo:t,isMoving:s}))):(i=a[a.length-1]).descriptor.id===r.descriptor.id?s.borderBox.center:didStartAfterCritical(i.descriptor.id,e)?(n=offset$1(i.page,negate(e.displacedBy.point)),goAfter({axis:l,moveRelativeTo:n,isMoving:s})):goAfter({axis:l,moveRelativeTo:i.page,isMoving:s})):goIntoStart({axis:l,moveInto:o.page,isMoving:s})},withDroppableDisplacement=function(e,t){e=e.frame;return e?add(t,e.scroll.diff.displacement):t},getResultWithoutDroppableDisplacement=function(e){var t=e.impact,n=e.draggable,r=e.droppable,i=e.draggables,e=e.afterCritical,o=n.page.borderBox.center,a=t.at;return r&&a?"REORDER"===a.type?whenReordering({impact:t,draggable:n,draggables:i,droppable:r,afterCritical:e}):whenCombining({impact:t,draggables:i,afterCritical:e}):o},getPageBorderBoxCenterFromImpact=function(e){var t=getResultWithoutDroppableDisplacement(e),e=e.droppable;return e?withDroppableDisplacement(e,t):t},scrollViewport=function(e,t){var n=subtract(t,e.scroll.initial),r=negate(n);return{frame:getRect({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function getDraggables(e,t){return e.map(function(e){return t[e]})}function tryGetVisible(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}var speculativelyIncrease=function(e){var t=e.impact,n=e.viewport,r=e.destination,i=e.draggables,e=e.maxScrollChange,o=scrollViewport(n,add(n.scroll.current,e)),e=r.frame?scrollDroppable(r,add(r.frame.scroll.current,e)):r,a=t.displaced,r=getDisplacementGroups({afterDragging:getDraggables(a.all,i),destination:r,displacedBy:t.displacedBy,viewport:o.frame,last:a,forceShouldAnimate:!1}),o=getDisplacementGroups({afterDragging:getDraggables(a.all,i),destination:e,displacedBy:t.displacedBy,viewport:n.frame,last:a,forceShouldAnimate:!1}),s={},l={},c=[a,r,o];return a.all.forEach(function(e){var t=tryGetVisible(e,c);t?l[e]=t:s[e]=!0}),_extends$5({},t,{displaced:{all:a.all,invisible:s,visible:l}})},withViewportDisplacement=function(e,t){return add(e.scroll.diff.displacement,t)},getClientFromPageBorderBoxCenter=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,e=e.viewport,e=withViewportDisplacement(e,t),t=subtract(e,n.page.borderBox.center);return add(n.client.borderBox.center,t)},isTotallyVisibleInNewLocation=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,i=e.viewport,o=e.withDroppableDisplacement,e=e.onlyOnMainAxis,e=void 0!==e&&e,r=subtract(r,t.page.borderBox.center),t={target:offsetByPosition(t.page.borderBox,r),destination:n,withDroppableDisplacement:o,viewport:i};return(e?isTotallyVisibleOnAxis:isTotallyVisible)(t)},moveToNextPlace=function(e){var t,n,r=e.isMovingForward,i=e.draggable,o=e.destination,a=e.draggables,s=e.previousImpact,l=e.viewport,c=e.previousPageBorderBoxCenter,u=e.previousClientSelection,e=e.afterCritical;return o.isEnabled&&(n=getDraggablesInsideDroppable(o.descriptor.id,a),t=isHomeOf(i,o),r=moveToNextCombine({isMovingForward:r,draggable:i,destination:o,insideDestination:n,previousImpact:s})||moveToNextIndex({isMovingForward:r,isInHomeList:t,draggable:i,draggables:a,destination:o,insideDestination:n,previousImpact:s,viewport:l,afterCritical:e}))?(t=getPageBorderBoxCenterFromImpact({impact:r,draggable:i,droppable:o,draggables:a,afterCritical:e}),isTotallyVisibleInNewLocation({draggable:i,destination:o,newPageBorderBoxCenter:t,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?{clientSelection:getClientFromPageBorderBoxCenter({pageBorderBoxCenter:t,draggable:i,viewport:l}),impact:r,scrollJumpRequest:null}:(n=subtract(t,c),{clientSelection:u,impact:speculativelyIncrease({impact:r,viewport:l,destination:o,draggables:a,maxScrollChange:n}),scrollJumpRequest:n})):null},getKnownActive=function(e){e=e.subject.active;return e||invariant$1(!1),e},getBestCrossAxisDroppable=function(e){var i,n,r=e.isMovingForward,o=e.pageBorderBoxCenter,t=e.source,a=e.droppables,s=e.viewport,l=t.subject.active;return l&&(i=t.axis,n=isWithin(l[i.start],l[i.end]),(e=toDroppableList(a).filter(function(e){return e!==t}).filter(function(e){return e.isEnabled}).filter(function(e){return Boolean(e.subject.active)}).filter(function(e){return isPartiallyVisibleThroughFrame(s.frame)(getKnownActive(e))}).filter(function(e){e=getKnownActive(e);return r?l[i.crossAxisEnd]<e[i.crossAxisEnd]:e[i.crossAxisStart]<l[i.crossAxisStart]}).filter(function(e){var e=getKnownActive(e),t=isWithin(e[i.start],e[i.end]);return n(e[i.start])||n(e[i.end])||t(l[i.start])||t(l[i.end])}).sort(function(e,t){e=getKnownActive(e)[i.crossAxisStart],t=getKnownActive(t)[i.crossAxisStart];return r?e-t:t-e}).filter(function(e,t,n){return getKnownActive(e)[i.crossAxisStart]===getKnownActive(n[0])[i.crossAxisStart]})).length)?(1===e.length?e:1===(a=e.filter(function(e){return isWithin(getKnownActive(e)[i.start],getKnownActive(e)[i.end])(o[i.line])})).length?a:1<a.length?a.sort(function(e,t){return getKnownActive(e)[i.start]-getKnownActive(t)[i.start]}):e.sort(function(e,t){var n=closest(o,getCorners(getKnownActive(e))),r=closest(o,getCorners(getKnownActive(t)));return n!==r?n-r:getKnownActive(e)[i.start]-getKnownActive(t)[i.start]}))[0]:null},getCurrentPageBorderBoxCenter=function(e,t){var n=e.page.borderBox.center;return didStartAfterCritical(e.descriptor.id,t)?subtract(n,t.displacedBy.point):n},getCurrentPageBorderBox=function(e,t){var n=e.page.borderBox;return didStartAfterCritical(e.descriptor.id,t)?offsetByPosition(n,negate(t.displacedBy.point)):n},getClosestDraggable=function(e){var i=e.pageBorderBoxCenter,t=e.viewport,o=e.destination,n=e.insideDestination,a=e.afterCritical;return n.filter(function(e){return isTotallyVisible({target:getCurrentPageBorderBox(e,a),destination:o,viewport:t.frame,withDroppableDisplacement:!0})}).sort(function(e,t){var n=distance(i,withDroppableDisplacement(o,getCurrentPageBorderBoxCenter(e,a))),r=distance(i,withDroppableDisplacement(o,getCurrentPageBorderBoxCenter(t,a)));return n<r?-1:r<n?1:e.descriptor.index-t.descriptor.index})[0]||null},getDisplacedBy=memoizeOne(function(e,t){t=t[e.line];return{value:t,point:patch(e.line,t)}}),getRequiredGrowthForPlaceholder=function(e,t,n){var r,i=e.axis;return"virtual"===e.descriptor.mode?patch(i.line,t[i.line]):(r=e.subject.page.contentBox[i.size],(e=getDraggablesInsideDroppable(e.descriptor.id,n).reduce(function(e,t){return e+t.client.marginBox[i.size]},0)+t[i.line]-r)<=0?null:patch(i.line,e))},withMaxScroll=function(e,t){return _extends$5({},e,{scroll:_extends$5({},e.scroll,{max:t})})},addPlaceholder=function(e,t,n){var r=e.frame,t=(isHomeOf(t,e)&&invariant$1(!1),e.subject.withPlaceholder&&invariant$1(!1),getDisplacedBy(e.axis,t.displaceBy).point),n=getRequiredGrowthForPlaceholder(e,t,n),t={placeholderSize:t,increasedBy:n,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};return r?(n=n?add(r.scroll.max,n):r.scroll.max,r=withMaxScroll(r,n),_extends$5({},e,{subject:getSubject({page:e.subject.page,withPlaceholder:t,axis:e.axis,frame:r}),frame:r})):_extends$5({},e,{subject:getSubject({page:e.subject.page,withPlaceholder:t,axis:e.axis,frame:e.frame})})},removePlaceholder=function(e){var t=e.subject.withPlaceholder,n=(t||invariant$1(!1),e.frame);return n?((t=t.oldFrameMaxScroll)||invariant$1(!1),n=withMaxScroll(n,t),_extends$5({},e,{subject:getSubject({page:e.subject.page,axis:e.axis,frame:n,withPlaceholder:null}),frame:n})):_extends$5({},e,{subject:getSubject({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null})})},moveToNewDroppable=function(e){var t,n=e.previousPageBorderBoxCenter,r=e.moveRelativeTo,i=e.insideDestination,o=e.draggable,a=e.draggables,s=e.destination,l=e.viewport,e=e.afterCritical;return r?(n=Boolean(n[s.axis.line]<=r.page.borderBox.center[s.axis.line]),t=r.descriptor.index,r=r.descriptor.id===o.descriptor.id||n?t:t+1,n=getDisplacedBy(s.axis,o.displaceBy),calculateReorderImpact({draggable:o,insideDestination:i,destination:s,viewport:l,displacedBy:n,last:emptyGroups,index:r})):!i.length&&(t={displaced:emptyGroups,displacedBy:noDisplacedBy,at:{type:"REORDER",destination:{droppableId:s.descriptor.id,index:0}}},n=getPageBorderBoxCenterFromImpact({impact:t,draggable:o,droppable:s,draggables:a,afterCritical:e}),r=isHomeOf(o,s)?s:addPlaceholder(s,o,a),isTotallyVisibleInNewLocation({draggable:o,destination:r,newPageBorderBoxCenter:n,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))?t:null},moveCrossAxis=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,i=e.isOver,o=e.draggables,a=e.droppables,s=e.viewport,e=e.afterCritical,t=getBestCrossAxisDroppable({isMovingForward:t,pageBorderBoxCenter:n,source:i,droppables:a,viewport:s});return t&&(i=getDraggablesInsideDroppable(t.descriptor.id,o),a=getClosestDraggable({pageBorderBoxCenter:n,viewport:s,destination:t,insideDestination:i,afterCritical:e}),n=moveToNewDroppable({previousPageBorderBoxCenter:n,destination:t,draggable:r,draggables:o,moveRelativeTo:a,insideDestination:i,viewport:s,afterCritical:e}))?(a=getPageBorderBoxCenterFromImpact({impact:n,draggable:r,droppable:t,draggables:o,afterCritical:e}),{clientSelection:getClientFromPageBorderBoxCenter({pageBorderBoxCenter:a,draggable:r,viewport:s}),impact:n,scrollJumpRequest:null}):null},whatIsDraggedOver=function(e){e=e.at;return e?("REORDER"===e.type?e.destination:e.combine).droppableId:null},getDroppableOver=function(e,t){e=whatIsDraggedOver(e);return e?t[e]:null},moveInDirection=function(e){var t,n,r,i=e.state,e=e.type,o=getDroppableOver(i.impact,i.dimensions.droppables),a=Boolean(o),s=i.dimensions.droppables[i.critical.droppable.id],o=o||s,s=o.axis.direction,s="vertical"===s&&("MOVE_UP"===e||"MOVE_DOWN"===e)||"horizontal"===s&&("MOVE_LEFT"===e||"MOVE_RIGHT"===e);return s&&!a?null:(a="MOVE_DOWN"===e||"MOVE_RIGHT"===e,e=i.dimensions.draggables[i.critical.draggable.id],t=i.current.page.borderBoxCenter,n=(r=i.dimensions).draggables,r=r.droppables,s?moveToNextPlace({isMovingForward:a,previousPageBorderBoxCenter:t,draggable:e,destination:o,draggables:n,viewport:i.viewport,previousClientSelection:i.current.client.selection,previousImpact:i.impact,afterCritical:i.afterCritical}):moveCrossAxis({isMovingForward:a,previousPageBorderBoxCenter:t,draggable:e,isOver:o,draggables:n,droppables:r,viewport:i.viewport,afterCritical:i.afterCritical}))};function isMovementAllowed(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function isPositionInFrame(e){var t=isWithin(e.top,e.bottom),n=isWithin(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function getHasOverlap(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}function getFurthestAway(e){var n=e.pageBorderBox,t=e.draggable,e=e.candidates,r=t.page.borderBox.center,t=e.map(function(e){var t=e.axis,t=patch(e.axis.line,n.center[t.line],e.page.borderBox.center[t.crossAxisLine]);return{id:e.descriptor.id,distance:distance(r,t)}}).sort(function(e,t){return t.distance-e.distance});return t[0]?t[0].id:null}function getDroppableOver$1(e){var o=e.pageBorderBox,t=e.draggable,e=e.droppables,e=toDroppableList(e).filter(function(e){var t,n,r,i;return!!e.isEnabled&&!!(i=e.subject.active)&&!(!getHasOverlap(o,i)||!isPositionInFrame(i)(o.center)&&(e=e.axis,t=i.center[e.crossAxisLine],n=o[e.crossAxisStart],r=o[e.crossAxisEnd],e=(i=isWithin(i[e.crossAxisStart],i[e.crossAxisEnd]))(n),i=i(r),e||i)&&!(e?n<t:t<r))});return e.length?1===e.length?e[0].descriptor.id:getFurthestAway({pageBorderBox:o,draggable:t,candidates:e}):null}var offsetRectByPosition=function(e,t){return getRect(offsetByPosition(e,t))},withDroppableScroll=function(e,t){e=e.frame;return e?offsetRectByPosition(t,e.scroll.diff.value):t};function getIsDisplaced(e){var t=e.displaced,e=e.id;return Boolean(t.visible[e]||t.invisible[e])}function atIndex(e){var t=e.draggable,n=e.closest,e=e.inHomeList;return n?e&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}var getReorderImpact=function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,i=e.insideDestination,o=e.last,a=e.viewport,s=e.afterCritical,l=r.axis,e=getDisplacedBy(r.axis,n.displaceBy),c=e.value,u=t[l.start],d=t[l.end],t=atIndex({draggable:n,closest:find(removeDraggableFromList(n,i),function(e){var t=e.descriptor.id,e=e.page.borderBox.center[l.line],n=didStartAfterCritical(t,s),t=getIsDisplaced({displaced:o,id:t});return n?t?d<=e:u<e-c:t?d<=e+c:u<e}),inHomeList:isHomeOf(n,r)});return calculateReorderImpact({draggable:n,insideDestination:i,destination:r,viewport:a,last:o,displacedBy:e,index:t})},combineThresholdDivisor=4,getCombineImpact=function(e){var i,o,a,s,t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,l=e.previousImpact,r=e.destination,c=e.insideDestination,u=e.afterCritical;return r.isCombineEnabled&&(i=r.axis,e=getDisplacedBy(r.axis,t.displaceBy),o=e.value,a=n[i.start],s=n[i.end],n=find(removeDraggableFromList(t,c),function(e){var t=e.descriptor.id,e=e.page.borderBox,n=e[i.size]/combineThresholdDivisor,r=didStartAfterCritical(t,u),t=getIsDisplaced({displaced:l.displaced,id:t});return r?t?s>e[i.start]+n&&s<e[i.end]-n:a>e[i.start]-o+n&&a<e[i.end]-o-n:t?s>e[i.start]+o+n&&s<e[i.end]+o-n:a>e[i.start]+n&&a<e[i.end]-n}))?{displacedBy:e,displaced:l.displaced,at:{type:"COMBINE",combine:{draggableId:n.descriptor.id,droppableId:r.descriptor.id}}}:null},getDragImpact=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,i=e.droppables,o=e.previousImpact,a=e.viewport,e=e.afterCritical,t=offsetRectByPosition(n.page.borderBox,t),s=getDroppableOver$1({pageBorderBox:t,draggable:n,droppables:i});return s?(i=i[s],s=getDraggablesInsideDroppable(i.descriptor.id,r),r=withDroppableScroll(i,t),getCombineImpact({pageBorderBoxWithDroppableScroll:r,draggable:n,previousImpact:o,destination:i,insideDestination:s,afterCritical:e})||getReorderImpact({pageBorderBoxWithDroppableScroll:r,draggable:n,destination:i,insideDestination:s,last:o.displaced,viewport:a,afterCritical:e})):noImpact},patchDroppableMap=function(e,t){return _extends$5({},e,((e={})[t.descriptor.id]=t,e))},clearUnusedPlaceholder=function(e){var t=e.previousImpact,n=e.impact,e=e.droppables,t=whatIsDraggedOver(t),n=whatIsDraggedOver(n);return t&&t!==n&&(n=e[t]).subject.withPlaceholder?(t=removePlaceholder(n),patchDroppableMap(e,t)):e},recomputePlaceholders=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,i=e.previousImpact,e=e.impact,i=clearUnusedPlaceholder({previousImpact:i,impact:e,droppables:r}),e=whatIsDraggedOver(e);return!e||(r=r[e],isHomeOf(t,r))||r.subject.withPlaceholder?i:(e=addPlaceholder(r,t,n),patchDroppableMap(i,e))},update=function(e){var t,n=e.state,r=e.clientSelection,i=e.dimensions,o=e.viewport,a=e.impact,e=e.scrollJumpRequest,o=o||n.viewport,i=i||n.dimensions,r=r||n.current.client.selection,s=subtract(r,n.initial.client.selection),r={offset:s,selection:r,borderBoxCenter:add(n.initial.client.borderBoxCenter,s)},s={selection:add(r.selection,o.scroll.current),borderBoxCenter:add(r.borderBoxCenter,o.scroll.current),offset:add(r.offset,o.scroll.diff.value)},r={client:r,page:s};return"COLLECTING"===n.phase?_extends$5({phase:"COLLECTING"},n,{dimensions:i,viewport:o,current:r}):(t=i.draggables[n.critical.draggable.id],a=a||getDragImpact({pageOffset:s.offset,draggable:t,draggables:i.draggables,droppables:i.droppables,previousImpact:n.impact,viewport:o,afterCritical:n.afterCritical}),s=recomputePlaceholders({draggable:t,impact:a,previousImpact:n.impact,draggables:i.draggables,droppables:i.droppables}),_extends$5({},n,{current:r,dimensions:{draggables:i.draggables,droppables:s},impact:a,viewport:o,scrollJumpRequest:e||null,forceShouldAnimate:!e&&null}))};function getDraggables$1(e,t){return e.map(function(e){return t[e]})}var recompute=function(e){var t=e.impact,n=e.viewport,r=e.draggables,i=e.destination,e=e.forceShouldAnimate,o=t.displaced;return _extends$5({},t,{displaced:getDisplacementGroups({afterDragging:getDraggables$1(o.all,r),destination:i,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:e,last:o})})},getClientBorderBoxCenter=function(e){var t=e.impact,n=e.draggable,r=e.droppable,i=e.draggables,o=e.viewport,e=e.afterCritical,t=getPageBorderBoxCenterFromImpact({impact:t,draggable:n,draggables:i,droppable:r,afterCritical:e});return getClientFromPageBorderBoxCenter({pageBorderBoxCenter:t,draggable:n,viewport:o})},refreshSnap=function(e){var t=e.state,n=e.dimensions,e=e.viewport,r=("SNAP"!==t.movementMode&&invariant$1(!1),t.impact),e=e||t.viewport,n=n||t.dimensions,i=n.draggables,o=n.droppables,a=i[t.critical.draggable.id],s=whatIsDraggedOver(r),o=(s||invariant$1(!1),o[s]),s=recompute({impact:r,viewport:e,destination:o,draggables:i}),r=getClientBorderBoxCenter({impact:s,draggable:a,droppable:o,draggables:i,viewport:e,afterCritical:t.afterCritical});return update({impact:s,clientSelection:r,state:t,dimensions:n,viewport:e})},getHomeLocation=function(e){return{index:e.index,droppableId:e.droppableId}},getLiftEffect=function(e){var t=e.draggable,n=e.home,r=e.draggables,e=e.viewport,i=getDisplacedBy(n.axis,t.displaceBy),r=getDraggablesInsideDroppable(n.descriptor.id,r),o=r.indexOf(t),r=(-1===o&&invariant$1(!1),r.slice(o+1)),o=r.reduce(function(e,t){return e[t.descriptor.id]=!0,e},{}),o={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:o};return{impact:{displaced:getDisplacementGroups({afterDragging:r,destination:n,displacedBy:i,last:null,viewport:e.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:getHomeLocation(t.descriptor)}},afterCritical:o}},patchDimensionMap=function(e,t){return{draggables:e.draggables,droppables:patchDroppableMap(e.droppables,t)}},offsetDraggable=function(e){var t=e.draggable,n=e.offset,e=e.initialWindowScroll,n=offset$1(t.client,n),e=withScroll(n,e);return _extends$5({},t,{placeholder:_extends$5({},t.placeholder,{client:n}),client:n,page:e})},getFrame=function(e){e=e.frame;return e||invariant$1(!1),e},adjustAdditionsForScrollChanges=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,i=r.scroll.diff.value;return t.map(function(e){var t=e.descriptor.droppableId,t=n[t],t=getFrame(t).scroll.diff.value,t=add(i,t);return offsetDraggable({draggable:e,offset:t,initialWindowScroll:r.scroll.initial})})},publishWhileDraggingInVirtual=function(e){var n=e.state,e=e.published,t=e.modified.map(function(e){var t=n.dimensions.droppables[e.droppableId];return scrollDroppable(t,e.scroll)}),t=_extends$5({},n.dimensions.droppables,{},toDroppableMap(t)),r=toDraggableMap(adjustAdditionsForScrollChanges({additions:e.additions,updatedDroppables:t,viewport:n.viewport})),i=_extends$5({},n.dimensions.draggables,{},r),r=(e.removals.forEach(function(e){delete i[e]}),{droppables:t,draggables:i}),e=whatIsDraggedOver(n.impact),t=e?r.droppables[e]:null,e=r.draggables[n.critical.draggable.id],o=r.droppables[n.critical.droppable.id],e=getLiftEffect({draggable:e,home:o,draggables:i,viewport:n.viewport}),o=e.impact,e=e.afterCritical,t=t&&t.isCombineEnabled?n.impact:o,t=getDragImpact({pageOffset:n.current.page.offset,draggable:r.draggables[n.critical.draggable.id],draggables:r.draggables,droppables:r.droppables,previousImpact:t,viewport:n.viewport,afterCritical:e}),t=_extends$5({phase:"DRAGGING"},n,{phase:"DRAGGING",impact:t,onLiftImpact:o,dimensions:r,afterCritical:e,forceShouldAnimate:!1});return"COLLECTING"===n.phase?t:_extends$5({phase:"DROP_PENDING"},t,{phase:"DROP_PENDING",reason:n.reason,isWaiting:!1})},isSnapping=function(e){return"SNAP"===e.movementMode},postDroppableChange=function(e,t,n){t=patchDimensionMap(e.dimensions,t);return(!isSnapping(e)||n?update:refreshSnap)({state:e,dimensions:t})};function removeScrollJumpRequest(e){return e.isDragging&&"SNAP"===e.movementMode?_extends$5({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var idle={phase:"IDLE",completed:null,shouldFlush:!1},reducer$1=function(e,t){if(void 0===e&&(e=idle),"FLUSH"===t.type)return _extends$5({},idle,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type)return"IDLE"!==e.phase&&invariant$1(!1),l=(n=t.payload).critical,a=n.clientSelection,s=n.viewport,o=n.dimensions,n=n.movementMode,r=o.draggables[l.draggable.id],i=o.droppables[l.droppable.id],{phase:"DRAGGING",isDragging:!0,critical:l,movementMode:n,dimensions:o,initial:n={client:l={selection:a,borderBoxCenter:r.client.borderBox.center,offset:origin},page:{selection:add(l.selection,s.scroll.initial),borderBoxCenter:add(l.selection,s.scroll.initial),offset:add(l.selection,s.scroll.diff.value)}},current:n,isWindowScrollAllowed:toDroppableList(o.droppables).every(function(e){return!e.isFixedOnPage}),impact:l=(a=getLiftEffect({draggable:r,home:i,draggables:o.draggables,viewport:s})).impact,afterCritical:a.afterCritical,onLiftImpact:l,viewport:s,scrollJumpRequest:null,forceShouldAnimate:null};if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&invariant$1(!1),_extends$5({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&invariant$1(!1),publishWhileDraggingInVirtual({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;isMovementAllowed(e)||invariant$1(!1);var n=t.payload.client;return isEqual(n,e.current.client.selection)?e:update({state:e,clientSelection:n,impact:isSnapping(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return removeScrollJumpRequest(e);if("COLLECTING"===e.phase)return removeScrollJumpRequest(e);isMovementAllowed(e)||invariant$1(!1);var r=t.payload,i=r.id,o=r.newScroll,a=e.dimensions.droppables[i];return a?(l=scrollDroppable(a,o),postDroppableChange(e,l,!1)):e}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;isMovementAllowed(e)||invariant$1(!1);var s=t.payload,n=s.id,r=s.isEnabled,i=e.dimensions.droppables[n],a=(i||invariant$1(!1),i.isEnabled===r&&invariant$1(!1),_extends$5({},i,{isEnabled:r}));return postDroppableChange(e,a,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;isMovementAllowed(e)||invariant$1(!1);var o=t.payload,l=o.id,s=o.isCombineEnabled,n=e.dimensions.droppables[l],i=(n||invariant$1(!1),n.isCombineEnabled===s&&invariant$1(!1),_extends$5({},n,{isCombineEnabled:s}));return postDroppableChange(e,i,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;isMovementAllowed(e)||invariant$1(!1),e.isWindowScrollAllowed||invariant$1(!1);r=t.payload.newScroll;return isEqual(e.viewport.scroll.current,r)?removeScrollJumpRequest(e):(a=scrollViewport(e.viewport,r),(isSnapping(e)?refreshSnap:update)({state:e,viewport:a}))}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type)return!isMovementAllowed(e)||(o=t.payload.maxScroll,isEqual(o,e.viewport.scroll.max))?e:(l=_extends$5({},e.viewport,{scroll:_extends$5({},e.viewport.scroll,{max:o})}),_extends$5({phase:"DRAGGING"},e,{viewport:l}));if("MOVE_UP"!==t.type&&"MOVE_DOWN"!==t.type&&"MOVE_LEFT"!==t.type&&"MOVE_RIGHT"!==t.type)return"DROP_PENDING"===t.type?(n=t.payload.reason,"COLLECTING"!==e.phase&&invariant$1(!1),_extends$5({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:n})):"DROP_ANIMATE"===t.type?(i=(s=t.payload).completed,r=s.dropDuration,a=s.newHomeClientOffset,"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&invariant$1(!1),{phase:"DROP_ANIMATING",completed:i,dropDuration:r,newHomeClientOffset:a,dimensions:e.dimensions}):"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e;if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&invariant$1(!1);o=moveInDirection({state:e,type:t.type});return o?update({state:e,impact:o.impact,clientSelection:o.clientSelection,scrollJumpRequest:o.scrollJumpRequest}):e},beforeInitialCapture=function(e){return{type:"BEFORE_INITIAL_CAPTURE",payload:e}},lift=function(e){return{type:"LIFT",payload:e}},initialPublish=function(e){return{type:"INITIAL_PUBLISH",payload:e}},publishWhileDragging=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},collectionStarting=function(){return{type:"COLLECTION_STARTING",payload:null}},updateDroppableScroll=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},updateDroppableIsEnabled=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},updateDroppableIsCombineEnabled=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},move=function(e){return{type:"MOVE",payload:e}},moveByWindowScroll=function(e){return{type:"MOVE_BY_WINDOW_SCROLL",payload:e}},updateViewportMaxScroll=function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}},moveUp=function(){return{type:"MOVE_UP",payload:null}},moveDown=function(){return{type:"MOVE_DOWN",payload:null}},moveRight=function(){return{type:"MOVE_RIGHT",payload:null}},moveLeft=function(){return{type:"MOVE_LEFT",payload:null}},flush$1=function(){return{type:"FLUSH",payload:null}},animateDrop=function(e){return{type:"DROP_ANIMATE",payload:e}},completeDrop=function(e){return{type:"DROP_COMPLETE",payload:e}},drop=function(e){return{type:"DROP",payload:e}},dropPending=function(e){return{type:"DROP_PENDING",payload:e}},dropAnimationFinished=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}},lift$1=function(l){return function(e){var a=e.getState,s=e.dispatch;return function(o){return function(e){var t,n,r,i;"LIFT"!==e.type?o(e):(n=(e=e.payload).id,t=e.clientSelection,e=e.movementMode,"DROP_ANIMATING"===(i=a()).phase&&s(completeDrop({completed:i.completed})),"IDLE"!==a().phase&&invariant$1(!1),s(flush$1()),s(beforeInitialCapture({draggableId:n,movementMode:e})),n=(i=l.startPublishing({draggableId:n,scrollOptions:{shouldPublishImmediately:"SNAP"===e}})).critical,r=i.dimensions,i=i.viewport,s(initialPublish({critical:n,dimensions:r,clientSelection:t,movementMode:e,viewport:i})))}}}},style=function(n){return function(){return function(t){return function(e){"INITIAL_PUBLISH"===e.type&&n.dragging(),"DROP_ANIMATE"===e.type&&n.dropping(e.payload.completed.result.reason),"FLUSH"!==e.type&&"DROP_COMPLETE"!==e.type||n.resting(),t(e)}}}},curves={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},combine={opacity:{drop:0,combining:.7},scale:{drop:.75}},timings={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},outOfTheWayTiming=timings.outOfTheWay+"s "+curves.outOfTheWay,transitions={fluid:"opacity "+outOfTheWayTiming,snap:"transform "+outOfTheWayTiming+", opacity "+outOfTheWayTiming,drop:function(e){e=e+"s "+curves.drop;return"transform "+e+", opacity "+e},outOfTheWay:"transform "+outOfTheWayTiming,placeholder:"height "+outOfTheWayTiming+", width "+outOfTheWayTiming+", margin "+outOfTheWayTiming},moveTo=function(e){return isEqual(e,origin)?null:"translate("+e.x+"px, "+e.y+"px)"},transforms={moveTo:moveTo,drop:function(e,t){e=moveTo(e);return e?t?e+" scale("+combine.scale.drop+")":e:null}},minDropTime=timings.minDropTime,maxDropTime=timings.maxDropTime,dropTimeRange=maxDropTime-minDropTime,maxDropTimeAtDistance=1500,cancelDropModifier=.6,getDropDuration=function(e){var t=e.current,n=e.destination,e=e.reason,t=distance(t,n);return t<=0?minDropTime:maxDropTimeAtDistance<=t?maxDropTime:(n=minDropTime+dropTimeRange*(t/maxDropTimeAtDistance),Number(("CANCEL"===e?n*cancelDropModifier:n).toFixed(2)))},getNewHomeClientOffset=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,i=e.viewport,e=e.afterCritical,o=r.draggables,r=r.droppables,a=whatIsDraggedOver(t),a=a?r[a]:null,r=r[n.descriptor.droppableId],t=getClientBorderBoxCenter({impact:t,draggable:n,draggables:o,afterCritical:e,droppable:a||r,viewport:i});return subtract(t,n.client.borderBox.center)},getDropImpact=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,i=e.home,o=e.viewport,e=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:_extends$5({},r,{displaced:emptyGroups}),didDropInsideDroppable:!0}:{impact:recompute({draggables:t,impact:e,destination:i,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1}},drop$1=function(e){var c=e.getState,u=e.dispatch;return function(l){return function(e){var t,n,r,i,o,a,s;"DROP"!==e.type?l(e):(t=c(),e=e.payload.reason,"COLLECTING"===t.phase?u(dropPending({reason:e})):"IDLE"!==t.phase&&("DROP_PENDING"===t.phase&&t.isWaiting&&invariant$1(!1),"DRAGGING"!==t.phase&&"DROP_PENDING"!==t.phase&&invariant$1(!1),i=t.critical,s=(n=t.dimensions).draggables[t.critical.draggable.id],r=(a=getDropImpact({reason:e,lastImpact:t.impact,afterCritical:t.afterCritical,onLiftImpact:t.onLiftImpact,home:t.dimensions.droppables[t.critical.droppable.id],viewport:t.viewport,draggables:t.dimensions.draggables})).impact,o=(a=a.didDropInsideDroppable)?tryGetDestination(r):null,a=a?tryGetCombine(r):null,i={index:i.draggable.index,droppableId:i.droppable.id},i={draggableId:s.descriptor.id,type:s.descriptor.type,source:i,reason:e,mode:t.movementMode,destination:o,combine:a},o=getNewHomeClientOffset({impact:r,draggable:s,dimensions:n,viewport:t.viewport,afterCritical:t.afterCritical}),a={critical:t.critical,afterCritical:t.afterCritical,result:i,impact:r},!isEqual(t.current.client.offset,o)||Boolean(i.combine)?(s=getDropDuration({current:t.current.client.offset,destination:o,reason:e}),u(animateDrop({newHomeClientOffset:o,dropDuration:s,completed:a}))):u(completeDrop({completed:a}))))}}},getWindowScroll=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function getWindowScrollBinding(t){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(e){e.target!==window&&e.target!==window.document||t()}}}function getScrollListener(e){var t=e.onWindowScroll;var n=rafSchd$1(function(){t(getWindowScroll())}),r=getWindowScrollBinding(n),i=noop$1;function o(){return i!==noop$1}return{start:function(){o()&&invariant$1(!1),i=bindEvents(window,[r])},stop:function(){o()||invariant$1(!1),n.cancel(),i(),i=noop$1},isActive:o}}var shouldEnd=function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type},scrollListener=function(t){var n=getScrollListener({onWindowScroll:function(e){t.dispatch(moveByWindowScroll({newScroll:e}))}});return function(t){return function(e){n.isActive()||"INITIAL_PUBLISH"!==e.type||n.start(),n.isActive()&&shouldEnd(e)&&n.stop(),t(e)}}},getExpiringAnnounce=function(t){function e(e){n||r||(n=!0,t(e),clearTimeout(i))}var n=!1,r=!1,i=setTimeout(function(){r=!0});return e.wasCalled=function(){return n},e},getAsyncMarshal=function(){var r=[];return{add:function(e){var n=setTimeout(function(){return t=n,-1===(e=findIndex(r,function(e){return e.timerId===t}))&&invariant$1(!1),void r.splice(e,1)[0].callback();var t,e});r.push({timerId:n,callback:e})},flush:function(){var e;r.length&&(e=[].concat(r),r.length=0,e.forEach(function(e){clearTimeout(e.timerId),e.callback()}))}}},areLocationsEqual=function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.droppableId===t.droppableId&&e.index===t.index},isCombineEqual=function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId},isCriticalEqual=function(e,t){var n;return e===t||(n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,e=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type,n&&e)},withTimings=function(e,t){t()},getDragStart=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},execute=function(e,t,n,r){e&&(e(t,{announce:e=getExpiringAnnounce(n)}),e.wasCalled())||n(r(t))},getPublisher=function(s,l){function t(e){u||invariant$1(!1),u=null,withTimings("onDragEnd",function(){return execute(s().onDragEnd,e,l,preset.onDragEnd)})}var c=getAsyncMarshal(),u=null;return{beforeCapture:function(t,n){u&&invariant$1(!1),withTimings("onBeforeCapture",function(){var e=s().onBeforeCapture;e&&e({draggableId:t,mode:n})})},beforeStart:function(t,n){u&&invariant$1(!1),withTimings("onBeforeDragStart",function(){var e=s().onBeforeDragStart;e&&e(getDragStart(t,n))})},start:function(e,t){u&&invariant$1(!1);var n=getDragStart(e,t);u={mode:t,lastCritical:e,lastLocation:n.source,lastCombine:null},c.add(function(){withTimings("onDragStart",function(){return execute(s().onDragStart,n,l,preset.onDragStart)})})},update:function(e,t){var n,r=tryGetDestination(t),t=tryGetCombine(t),i=(u||invariant$1(!1),!isCriticalEqual(e,u.lastCritical)),o=(i&&(u.lastCritical=e),!areLocationsEqual(u.lastLocation,r)),a=(o&&(u.lastLocation=r),!isCombineEqual(u.lastCombine,t));a&&(u.lastCombine=t),(i||o||a)&&(n=_extends$5({},getDragStart(e,u.mode),{combine:t,destination:r}),c.add(function(){withTimings("onDragUpdate",function(){return execute(s().onDragUpdate,n,l,preset.onDragUpdate)})}))},flush:function(){u||invariant$1(!1),c.flush()},drop:t,abort:function(){var e;u&&(e=_extends$5({},getDragStart(u.lastCritical,u.mode),{combine:null,destination:null,reason:"CANCEL"}),t(e))}}},responders=function(e,t){var i=getPublisher(e,t);return function(r){return function(n){return function(e){var t;"BEFORE_INITIAL_CAPTURE"===e.type?i.beforeCapture(e.payload.draggableId,e.payload.movementMode):"INITIAL_PUBLISH"===e.type?(t=e.payload.critical,i.beforeStart(t,e.payload.movementMode),n(e),i.start(t,e.payload.movementMode)):"DROP_COMPLETE"===e.type?(t=e.payload.completed.result,i.flush(),n(e),i.drop(t)):(n(e),"FLUSH"===e.type?i.abort():"DRAGGING"===(t=r.getState()).phase&&i.update(t.critical,t.impact))}}}},dropAnimationFinish=function(n){return function(t){return function(e){"DROP_ANIMATION_FINISHED"!==e.type?t(e):("DROP_ANIMATING"!==(e=n.getState()).phase&&invariant$1(!1),n.dispatch(completeDrop({completed:e.completed})))}}},dropAnimationFlushOnScroll=function(r){var i=null,o=null;return function(n){return function(e){var t;"FLUSH"!==e.type&&"DROP_COMPLETE"!==e.type&&"DROP_ANIMATION_FINISHED"!==e.type||(o&&(cancelAnimationFrame(o),o=null),i&&(i(),i=null)),n(e),"DROP_ANIMATE"===e.type&&(t={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===r.getState().phase&&r.dispatch(dropAnimationFinished())}},o=requestAnimationFrame(function(){o=null,i=bindEvents(window,[t])}))}}},dimensionMarshalStopper=function(n){return function(){return function(t){return function(e){"DROP_COMPLETE"!==e.type&&"FLUSH"!==e.type&&"DROP_ANIMATE"!==e.type||n.stopPublishing(),t(e)}}}},focus=function(n){var r=!1;return function(){return function(t){return function(e){"INITIAL_PUBLISH"===e.type?(r=!0,n.tryRecordFocus(e.payload.critical.draggable.id),t(e),n.tryRestoreFocusRecorded()):(t(e),r&&("FLUSH"===e.type?(r=!1,n.tryRestoreFocusRecorded()):"DROP_COMPLETE"===e.type&&(r=!1,(e=e.payload.completed.result).combine&&n.tryShiftRecord(e.draggableId,e.combine.draggableId),n.tryRestoreFocusRecorded())))}}}},shouldStop=function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type},autoScroll=function(i){return function(r){return function(n){return function(e){var t;shouldStop(e)?(i.stop(),n(e)):"INITIAL_PUBLISH"===e.type?(n(e),"DRAGGING"!==(t=r.getState()).phase&&invariant$1(!1),i.start(t)):(n(e),i.scroll(r.getState()))}}}},pendingDrop=function(n){return function(t){return function(e){t(e),"PUBLISH_WHILE_DRAGGING"!==e.type||"DROP_PENDING"!==(e=n.getState()).phase||e.isWaiting||n.dispatch(drop({reason:e.reason}))}}},composeEnhancers=compose,createStore=function(e){var t=e.dimensionMarshal,n=e.focusMarshal,r=e.styleMarshal,i=e.getResponders,o=e.announce,e=e.autoScroller;return createStore$1(reducer$1,composeEnhancers(applyMiddleware(style(r),dimensionMarshalStopper(t),lift$1(t),drop$1,dropAnimationFinish,dropAnimationFlushOnScroll,pendingDrop,autoScroll(e),scrollListener,focus(n),responders(i,o))))},clean$1=function(){return{additions:{},removals:{},modified:{}}};function createPublisher(e){function n(){a||(i.collectionStarting(),a=requestAnimationFrame(function(){a=null;var e=o,t=e.additions,n=e.removals,e=e.modified,t=Object.keys(t).map(function(e){return r.draggable.getById(e).getDimension(origin)}).sort(function(e,t){return e.descriptor.index-t.descriptor.index}),e=Object.keys(e).map(function(e){return{droppableId:e,scroll:r.droppable.getById(e).callbacks.getScrollWhileDragging()}}),t={additions:t,removals:Object.keys(n),modified:e};o=clean$1(),i.publish(t)}))}var r=e.registry,i=e.callbacks,o=clean$1(),a=null;return{add:function(e){var t=e.descriptor.id;o.additions[t]=e,o.modified[e.descriptor.droppableId]=!0,o.removals[t]&&delete o.removals[t],n()},remove:function(e){e=e.descriptor;o.removals[e.id]=!0,o.modified[e.droppableId]=!0,o.additions[e.id]&&delete o.additions[e.id],n()},stop:function(){a&&(cancelAnimationFrame(a),a=null,o=clean$1())}}}var getMaxScroll=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,e=e.width,n=subtract({x:n,y:t},{x:e,y:r});return{x:Math.max(0,n.x),y:Math.max(0,n.y)}},getDocumentElement=function(){var e=document.documentElement;return e||invariant$1(!1),e},getMaxWindowScroll=function(){var e=getDocumentElement();return getMaxScroll({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},getViewport=function(){var e=getWindowScroll(),t=getMaxWindowScroll(),n=e.y,r=e.x,i=getDocumentElement(),o=i.clientWidth,i=i.clientHeight;return{frame:getRect({top:n,left:r,right:r+o,bottom:n+i}),scroll:{initial:e,current:e,max:t,diff:{value:origin,displacement:origin}}}},getInitialPublish=function(e){var t=e.critical,n=e.scrollOptions,e=e.registry,r=getViewport(),i=r.scroll.current,o=t.droppable,o=e.droppable.getAllByType(o.type).map(function(e){return e.callbacks.getDimensionAndWatchScroll(i,n)}),e=e.draggable.getAllByType(t.draggable.type).map(function(e){return e.getDimension(i)});return{dimensions:{draggables:toDraggableMap(e),droppables:toDroppableMap(o)},critical:t,viewport:r}};function shouldPublishUpdate(e,t,n){return n.descriptor.id!==t.id&&n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode}var createDimensionMarshal=function(r,n){function i(e){o||invariant$1(!1);var t=o.critical.draggable;"ADDITION"===e.type&&shouldPublishUpdate(r,t,e.value)&&a.add(e.value),"REMOVAL"===e.type&&shouldPublishUpdate(r,t,e.value)&&a.remove(e.value)}var o=null,a=createPublisher({callbacks:{publish:n.publishWhileDragging,collectionStarting:n.collectionStarting},registry:r});return{updateDroppableIsEnabled:function(e,t){r.droppable.exists(e)||invariant$1(!1),o&&n.updateDroppableIsEnabled({id:e,isEnabled:t})},updateDroppableIsCombineEnabled:function(e,t){o&&(r.droppable.exists(e)||invariant$1(!1),n.updateDroppableIsCombineEnabled({id:e,isCombineEnabled:t}))},scrollDroppable:function(e,t){o&&r.droppable.getById(e).callbacks.scroll(t)},updateDroppableScroll:function(e,t){o&&(r.droppable.exists(e)||invariant$1(!1),n.updateDroppableScroll({id:e,newScroll:t}))},startPublishing:function(e){o&&invariant$1(!1);var t=r.draggable.getById(e.draggableId),n=r.droppable.getById(t.descriptor.droppableId),t={draggable:t.descriptor,droppable:n.descriptor},n=r.subscribe(i);return o={critical:t,unsubscribe:n},getInitialPublish({critical:t,registry:r,scrollOptions:e.scrollOptions})},stopPublishing:function(){var e;o&&(a.stop(),e=o.critical.droppable,r.droppable.getAllByType(e.type).forEach(function(e){return e.callbacks.dragStopped()}),o.unsubscribe(),o=null)}}},canStartDrag=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason},scrollWindow=function(e){window.scrollBy(e.x,e.y)},getScrollableDroppables=memoizeOne(function(e){return toDroppableList(e).filter(function(e){return!!e.isEnabled&&!!e.frame})}),getScrollableDroppableOver=function(t,e){return find(getScrollableDroppables(e),function(e){return e.frame||invariant$1(!1),isPositionInFrame(e.frame.pageMarginBox)(t)})},getBestScrollableDroppable=function(e){var t=e.center,n=e.destination,e=e.droppables;return n?(n=e[n]).frame?n:null:getScrollableDroppableOver(t,e)},config$1={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(e){return Math.pow(e,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},getDistanceThresholds=function(e,t){return{startScrollingFrom:e[t.size]*config$1.startFromPercentage,maxScrollValueAt:e[t.size]*config$1.maxScrollAtPercentage}},getPercentage=function(e){var t=e.startOfRange,n=e.endOfRange,e=e.current,n=n-t;return 0==n?0:(e-t)/n},minScroll=1,getValueFromDistance=function(e,t){return e>t.startScrollingFrom?0:e<=t.maxScrollValueAt?config$1.maxPixelScroll:e===t.startScrollingFrom?minScroll:(t=getPercentage({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),e=config$1.maxPixelScroll*config$1.ease(1-t),Math.ceil(e))},accelerateAt=config$1.durationDampening.accelerateAt,stopAt=config$1.durationDampening.stopDampeningAt,dampenValueByTime=function(e,t){var n=stopAt,t=Date.now()-t;return stopAt<=t?e:t<accelerateAt?minScroll:(n=getPercentage({startOfRange:accelerateAt,endOfRange:n,current:t}),t=e*config$1.ease(n),Math.ceil(t))},getValue=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,e=e.shouldUseTimeDampening,t=getValueFromDistance(t,n);return 0===t?0:e?Math.max(dampenValueByTime(t,r),minScroll):t},getScrollOnAxis=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,i=e.axis,e=e.shouldUseTimeDampening,t=getDistanceThresholds(t,i);return n[i.end]<n[i.start]?getValue({distanceToEdge:n[i.end],thresholds:t,dragStartTime:r,shouldUseTimeDampening:e}):-1*getValue({distanceToEdge:n[i.start],thresholds:t,dragStartTime:r,shouldUseTimeDampening:e})},adjustForSizeLimits=function(e){var t=e.container,n=e.subject,e=e.proposedScroll,r=n.height>t.height,n=n.width>t.width;return n||r?n&&r?null:{x:n?0:e.x,y:r?0:e.y}:e},clean$2=apply$2(function(e){return 0===e?0:e}),getScroll=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,i=e.center,e=e.shouldUseTimeDampening,i={top:i.y-n.top,right:n.right-i.x,bottom:n.bottom-i.y,left:i.x-n.left},o=getScrollOnAxis({container:n,distanceToEdges:i,dragStartTime:t,axis:vertical,shouldUseTimeDampening:e}),i=getScrollOnAxis({container:n,distanceToEdges:i,dragStartTime:t,axis:horizontal,shouldUseTimeDampening:e}),t=clean$2({x:i,y:o});return isEqual(t,origin)||!(e=adjustForSizeLimits({container:n,subject:r,proposedScroll:t}))||isEqual(e,origin)?null:e},smallestSigned=apply$2(function(e){return 0===e?0:0<e?1:-1}),getOverlap=function(){function r(e,t){return e<0?e:t<e?e-t:0}return function(e){var t=e.current,n=e.max,e=e.change,t=add(t,e),e={x:r(t.x,n.x),y:r(t.y,n.y)};return isEqual(e,origin)?null:e}}(),canPartiallyScroll=function(e){var t=e.max,n=e.current,e=e.change,t={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},e=smallestSigned(e),t=getOverlap({max:t,current:n,change:e});return!t||0!==e.x&&0===t.x||0!==e.y&&0===t.y},canScrollWindow=function(e,t){return canPartiallyScroll({current:e.scroll.current,max:e.scroll.max,change:t})},getWindowOverlap=function(e,t){var n;return canScrollWindow(e,t)?(n=e.scroll.max,e=e.scroll.current,getOverlap({current:e,max:n,change:t})):null},canScrollDroppable=function(e,t){e=e.frame;return!!e&&canPartiallyScroll({current:e.scroll.current,max:e.scroll.max,change:t})},getDroppableOverlap=function(e,t){var n=e.frame;return n&&canScrollDroppable(e,t)?getOverlap({current:n.scroll.current,max:n.scroll.max,change:t}):null},getWindowScrollChange=function(e){var t=e.viewport,n=e.subject,r=e.center,i=e.dragStartTime,e=e.shouldUseTimeDampening,i=getScroll({dragStartTime:i,container:t.frame,subject:n,center:r,shouldUseTimeDampening:e});return i&&canScrollWindow(t,i)?i:null},getDroppableScrollChange=function(e){var t=e.droppable,n=e.subject,r=e.center,i=e.dragStartTime,e=e.shouldUseTimeDampening,o=t.frame;return o&&(i=getScroll({dragStartTime:i,container:o.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:e}))&&canScrollDroppable(t,i)?i:null},scroll$1=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,i=e.scrollWindow,e=e.scrollDroppable,o=t.current.page.borderBoxCenter,a=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var s=t.viewport,s=getWindowScrollChange({dragStartTime:n,viewport:s,subject:a,center:o,shouldUseTimeDampening:r});if(s)return void i(s)}i=getBestScrollableDroppable({center:o,destination:whatIsDraggedOver(t.impact),droppables:t.dimensions.droppables});i&&(s=getDroppableScrollChange({dragStartTime:n,droppable:i,subject:a,center:o,shouldUseTimeDampening:r}))&&e(i.descriptor.id,s)},createFluidScroller=function(e){function i(e){a||invariant$1(!1);var t=a.shouldUseTimeDampening,n=(n=a).dragStartTime;scroll$1({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:n,shouldUseTimeDampening:t})}var t=e.scrollWindow,e=e.scrollDroppable,r=rafSchd$1(t),o=rafSchd$1(e),a=null;return{start:function(e){a&&invariant$1(!1);function t(){r=!0}var n=Date.now(),r=!1;scroll$1({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:t,scrollDroppable:t}),a={dragStartTime:n,shouldUseTimeDampening:r},r&&i(e)},stop:function(){a&&(r.cancel(),o.cancel(),a=null)},scroll:i}},createJumpScroller=function(e){var o=e.move,a=e.scrollDroppable,s=e.scrollWindow;return function(e){var t,n,r,i=e.scrollJumpRequest;i&&((r=whatIsDraggedOver(e.impact))||invariant$1(!1),r=e.dimensions.droppables[r],t=canScrollDroppable(r,i=i)?(t=getDroppableOverlap(r,i))?(t=subtract(i,t),a(r.descriptor.id,t),subtract(i,t)):(a(r.descriptor.id,i),null):i)&&(r=e.viewport,i=e.isWindowScrollAllowed,r=r,n=t,i=i&&canScrollWindow(r,n)?(i=getWindowOverlap(r,n))?(r=subtract(n,i),s(r),subtract(n,r)):(s(n),null):n)&&(r=add((r=e).current.client.selection,i),o({client:r}))}},createAutoScroller=function(e){var t=e.scrollDroppable,n=e.scrollWindow,e=e.move,r=createFluidScroller({scrollWindow:n,scrollDroppable:t}),i=createJumpScroller({move:e,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"===e.movementMode?r.scroll(e):e.scrollJumpRequest&&i(e))},start:r.start,stop:r.stop}},prefix$1="data-rbd",dragHandle=function(){var e=prefix$1+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),draggable=function(){var e=prefix$1+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),droppable=function(){var e=prefix$1+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),scrollContainer={contextId:prefix$1+"-scroll-container-context-id"},makeGetSelector=function(t){return function(e){return"["+e+'="'+t+'"]'}},getStyles=function(e,n){return e.map(function(e){var t=e.styles[n];return t?e.selector+" { "+t+" }":""}).join(" ")},noPointerEvents="pointer-events: none;",getStyles$1=function(e){var e=makeGetSelector(e),t=(t="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:e(dragHandle.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:t,dragging:noPointerEvents,dropAnimating:t}});n="\n transition: "+transitions.outOfTheWay+";\n ";var n=[{selector:e(draggable.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}},t,{selector:e(droppable.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:getStyles(n,"always"),resting:getStyles(n,"resting"),dragging:getStyles(n,"dragging"),dropAnimating:getStyles(n,"dropAnimating"),userCancel:getStyles(n,"userCancel")}},useIsomorphicLayoutEffect$1="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?react$1.exports.useLayoutEffect:react$1.exports.useEffect,getHead=function(){var e=document.querySelector("head");return e||invariant$1(!1),e},createStyleEl=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function useStyleMarshal(n,r){var i=useMemo(function(){return getStyles$1(n)},[n]),o=react$1.exports.useRef(null),a=react$1.exports.useRef(null),s=useCallback(memoizeOne(function(e){var t=a.current;t||invariant$1(!1),t.textContent=e}),[]),l=useCallback(function(e){var t=o.current;t||invariant$1(!1),t.textContent=e},[]),e=(useIsomorphicLayoutEffect$1(function(){(o.current||a.current)&&invariant$1(!1);var e=createStyleEl(r),t=createStyleEl(r);return o.current=e,a.current=t,e.setAttribute(prefix$1+"-always",n),t.setAttribute(prefix$1+"-dynamic",n),getHead().appendChild(e),getHead().appendChild(t),l(i.always),s(i.resting),function(){function e(e){var t=e.current;t||invariant$1(!1),getHead().removeChild(t),e.current=null}e(o),e(a)}},[r,l,s,i.always,i.resting,n]),useCallback(function(){return s(i.dragging)},[s,i.dragging])),t=useCallback(function(e){s("DROP"===e?i.dropAnimating:i.userCancel)},[s,i.dropAnimating,i.userCancel]),c=useCallback(function(){a.current&&s(i.resting)},[s,i.resting]);return useMemo(function(){return{dragging:e,dropping:t,resting:c}},[e,t,c])}var getWindowFromEl=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function isHtmlElement(e){return e instanceof getWindowFromEl(e).HTMLElement}function findDragHandle(e,t){var e="["+dragHandle.contextId+'="'+e+'"]',e=toArray(document.querySelectorAll(e));return e.length&&(e=find(e,function(e){return e.getAttribute(dragHandle.draggableId)===t}))&&isHtmlElement(e)?e:null}function useFocusMarshal(t){var r=react$1.exports.useRef({}),n=react$1.exports.useRef(null),i=react$1.exports.useRef(null),o=react$1.exports.useRef(!1),e=useCallback(function(t,e){var n={id:t,focus:e};return r.current[t]=n,function(){var e=r.current;e[t]!==n&&delete e[t]}},[]),a=useCallback(function(e){e=findDragHandle(t,e);e&&e!==document.activeElement&&e.focus()},[t]),s=useCallback(function(e,t){n.current===e&&(n.current=t)},[]),l=useCallback(function(){i.current||o.current&&(i.current=requestAnimationFrame(function(){i.current=null;var e=n.current;e&&a(e)}))},[a]),c=useCallback(function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(dragHandle.draggableId)===e&&(n.current=e)},[]);return useIsomorphicLayoutEffect$1(function(){return o.current=!0,function(){o.current=!1;var e=i.current;e&&cancelAnimationFrame(e)}},[]),useMemo(function(){return{register:e,tryRecordFocus:c,tryRestoreFocusRecorded:l,tryShiftRecord:s}},[e,c,l,s])}function createRegistry(){var r={draggables:{},droppables:{}},n=[];function i(t){n.length&&n.forEach(function(e){return e(t)})}function o(e){return r.draggables[e]||null}function a(e){return r.droppables[e]||null}return{draggable:{register:function(e){i({type:"ADDITION",value:r.draggables[e.descriptor.id]=e})},update:function(e,t){var n=r.draggables[t.descriptor.id];n&&n.uniqueId===e.uniqueId&&(delete r.draggables[t.descriptor.id],r.draggables[e.descriptor.id]=e)},unregister:function(e){var t=e.descriptor.id,n=o(t);n&&e.uniqueId===n.uniqueId&&(delete r.draggables[t],i({type:"REMOVAL",value:e}))},getById:function(e){return(e=o(e))||invariant$1(!1),e},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return values$1(r.draggables).filter(function(e){return e.descriptor.type===t})}},droppable:{register:function(e){r.droppables[e.descriptor.id]=e},unregister:function(e){var t=a(e.descriptor.id);t&&e.uniqueId===t.uniqueId&&delete r.droppables[e.descriptor.id]},getById:function(e){return(e=a(e))||invariant$1(!1),e},findById:a,exists:function(e){return Boolean(a(e))},getAllByType:function(t){return values$1(r.droppables).filter(function(e){return e.descriptor.type===t})}},subscribe:function(t){return n.push(t),function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}},clean:function(){r.draggables={},r.droppables={},n.length=0}}}function useRegistry(){var e=useMemo(createRegistry,[]);return react$1.exports.useEffect(function(){return function(){requestAnimationFrame(e.clean)}},[e]),e}var StoreContext=React5.createContext(null),getBodyElement=function(){var e=document.body;return e||invariant$1(!1),e},visuallyHidden$2={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},getId=function(e){return"rbd-announcement-"+e};function useAnnouncer(e){var n=useMemo(function(){return getId(e)},[e]),r=react$1.exports.useRef(null);return react$1.exports.useEffect(function(){var t=document.createElement("div");return(r.current=t).id=n,t.setAttribute("aria-live","assertive"),t.setAttribute("aria-atomic","true"),_extends$5(t.style,visuallyHidden$2),getBodyElement().appendChild(t),function(){setTimeout(function(){var e=getBodyElement();e.contains(t)&&e.removeChild(t),t===r.current&&(r.current=null)})}},[n]),useCallback(function(e){var t=r.current;t&&(t.textContent=e)},[])}var count=0,defaults={separator:"::"};function useUniqueId(e,t){return useMemo(function(){return""+e+t.separator+count++},[(t=void 0===t?defaults:t).separator,e])}function getElementId(e){return"rbd-hidden-text-"+e.contextId+"-"+e.uniqueId}function useHiddenTextElement(e){var t=e.contextId,n=e.text,r=useUniqueId("hidden-text",{separator:"-"}),i=useMemo(function(){return getElementId({contextId:t,uniqueId:r})},[r,t]);return react$1.exports.useEffect(function(){var t=document.createElement("div");return t.id=i,t.textContent=n,t.style.display="none",getBodyElement().appendChild(t),function(){var e=getBodyElement();e.contains(t)&&e.removeChild(t)}},[i,n]),i}var AppContext=React5.createContext(null);function usePrevious$2(e){var t=react$1.exports.useRef(e);return react$1.exports.useEffect(function(){t.current=e}),t}function create$2(){var t=null;function e(){t||invariant$1(!1),t=null}return{isClaimed:function(){return Boolean(t)},isActive:function(e){return e===t},claim:function(e){return t&&invariant$1(!1),t=e={abandon:e}},release:e,tryAbandon:function(){t&&(t.abandon(),e())}}}var _preventedKeys,tab=9,enter=13,escape$2=27,space=32,pageUp=33,pageDown=34,end=35,home=36,arrowLeft=37,arrowUp=38,arrowRight=39,arrowDown=40,preventedKeys=((_preventedKeys={})[enter]=!0,_preventedKeys[tab]=!0,_preventedKeys),preventStandardKeyEvents=function(e){preventedKeys[e.keyCode]&&e.preventDefault()},supportedEventName=function(){var e="visibilitychange";return"undefined"!=typeof document&&find([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],function(e){return"on"+e in document})||e}(),primaryButton=0,sloppyClickThreshold=5;function isSloppyClickThresholdExceeded(e,t){return Math.abs(t.x-e.x)>=sloppyClickThreshold||Math.abs(t.y-e.y)>=sloppyClickThreshold}var _scrollJumpKeys,idle$1={type:"IDLE"};function getCaptureBindings(e){var n=e.cancel,r=e.completed,i=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,r=e.clientY;t===primaryButton&&(t={x:n,y:r},"DRAGGING"===(n=i()).type?(e.preventDefault(),n.actions.move(t)):("PENDING"!==n.type&&invariant$1(!1),isSloppyClickThresholdExceeded(n.point,t)&&(e.preventDefault(),r=n.actions.fluidLift(t),o({type:"DRAGGING",actions:r}))))}},{eventName:"mouseup",fn:function(e){var t=i();("DRAGGING"!==t.type?n:(e.preventDefault(),t.actions.drop({shouldBlockNextClick:!0}),r))()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===i().type&&e.preventDefault(),n()}},{eventName:"keydown",fn:function(e){"PENDING"===i().type?n():e.keyCode===escape$2?(e.preventDefault(),n()):preventStandardKeyEvents(e)}},{eventName:"resize",fn:n},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===i().type&&n()}},{eventName:"webkitmouseforcedown",fn:function(e){var t=i();"IDLE"===t.type&&invariant$1(!1),t.actions.shouldRespectForcePress()?n():e.preventDefault()}},{eventName:supportedEventName,fn:n}]}function useMouseSensor(r){var n=react$1.exports.useRef(idle$1),i=react$1.exports.useRef(noop$1),e=useMemo(function(){return{eventName:"mousedown",fn:function(e){var t;e.defaultPrevented||e.button!==primaryButton||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||(t=r.findClosestDraggableId(e))&&(t=r.tryGetLock(t,a,{sourceEvent:e}))&&(e.preventDefault(),e={x:e.clientX,y:e.clientY},i.current(),c(t,e))}}},[r]),t=useMemo(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(e){var t,n;e.defaultPrevented||(t=r.findClosestDraggableId(e))&&(n=r.findOptionsForDraggable(t))&&!n.shouldRespectForcePress&&r.canGetLock(t)&&e.preventDefault()}}},[r]),o=useCallback(function(){i.current=bindEvents(window,[t,e],{passive:!1,capture:!0})},[t,e]),a=useCallback(function(){"IDLE"!==n.current.type&&(n.current=idle$1,i.current(),o())},[o]),s=useCallback(function(){var e=n.current;a(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[a]),l=useCallback(function(){var e=getCaptureBindings({cancel:s,completed:a,getPhase:function(){return n.current},setPhase:function(e){n.current=e}});i.current=bindEvents(window,e,{capture:!0,passive:!1})},[s,a]),c=useCallback(function(e,t){"IDLE"!==n.current.type&&invariant$1(!1),n.current={type:"PENDING",point:t,actions:e},l()},[l]);useIsomorphicLayoutEffect$1(function(){return o(),function(){i.current()}},[o])}function noop$1$1(){}(_scrollJumpKeys={})[pageDown]=!0,_scrollJumpKeys[pageUp]=!0,_scrollJumpKeys[home]=!0,_scrollJumpKeys[end]=!0;var scrollJumpKeys=_scrollJumpKeys;function getDraggingBindings(t,n){function r(){n(),t.cancel()}return[{eventName:"keydown",fn:function(e){e.keyCode===escape$2?(e.preventDefault(),r()):e.keyCode===space?(e.preventDefault(),n(),t.drop()):e.keyCode===arrowDown?(e.preventDefault(),t.moveDown()):e.keyCode===arrowUp?(e.preventDefault(),t.moveUp()):e.keyCode===arrowRight?(e.preventDefault(),t.moveRight()):e.keyCode===arrowLeft?(e.preventDefault(),t.moveLeft()):scrollJumpKeys[e.keyCode]?e.preventDefault():preventStandardKeyEvents(e)}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:supportedEventName,fn:r}]}function useKeyboardSensor(i){var o=react$1.exports.useRef(noop$1$1),e=useMemo(function(){return{eventName:"keydown",fn:function(e){var t,n;function r(){n||invariant$1(!1),n=!1,o.current(),a()}e.defaultPrevented||e.keyCode===space&&(t=i.findClosestDraggableId(e))&&(t=i.tryGetLock(t,r,{sourceEvent:e}))&&(e.preventDefault(),n=!0,e=t.snapLift(),o.current(),o.current=bindEvents(window,getDraggingBindings(e,r),{capture:!0,passive:!1}))}}},[i]),a=useCallback(function(){o.current=bindEvents(window,[e],{passive:!1,capture:!0})},[e]);useIsomorphicLayoutEffect$1(function(){return a(),function(){o.current()}},[a])}var idle$2={type:"IDLE"},timeForLongPress=120,forcePressThreshold=.15;function getWindowBindings(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"!==n().type||e.keyCode===escape$2&&e.preventDefault(),t()}},{eventName:supportedEventName,fn:t}]}function getHandleBindings(e){var r=e.cancel,n=e.completed,i=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var t,n=i();"DRAGGING"!==n.type?r():(n.hasMoved=!0,t={x:(t=e.touches[0]).clientX,y:t.clientY},e.preventDefault(),n.actions.move(t))}},{eventName:"touchend",fn:function(e){var t=i();("DRAGGING"!==t.type?r:(e.preventDefault(),t.actions.drop({shouldBlockNextClick:!0}),n))()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"!==i().type||e.preventDefault(),r()}},{eventName:"touchforcechange",fn:function(e){var t=i(),n=("IDLE"===t.type&&invariant$1(!1),e.touches[0]);if(n&&n.force>=forcePressThreshold){n=t.actions.shouldRespectForcePress();if("PENDING"!==t.type)return!n||t.hasMoved?void e.preventDefault():void r();n&&r()}}},{eventName:supportedEventName,fn:r}]}function useTouchSensor(n){var t=react$1.exports.useRef(idle$2),i=react$1.exports.useRef(noop$1),o=useCallback(function(){return t.current},[]),r=useCallback(function(e){t.current=e},[]),e=useMemo(function(){return{eventName:"touchstart",fn:function(e){var t;e.defaultPrevented||(t=n.findClosestDraggableId(e))&&(t=n.tryGetLock(t,s,{sourceEvent:e}))&&(e={x:(e=e.touches[0]).clientX,y:e.clientY},i.current(),d(t,e))}}},[n]),a=useCallback(function(){i.current=bindEvents(window,[e],{capture:!0,passive:!1})},[e]),s=useCallback(function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),r(idle$2),i.current(),a())},[a,r]),l=useCallback(function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[s]),c=useCallback(function(){var e={capture:!0,passive:!1},t={cancel:l,completed:s,getPhase:o},n=bindEvents(window,getHandleBindings(t),e),r=bindEvents(window,getWindowBindings(t),e);i.current=function(){n(),r()}},[l,o,s]),u=useCallback(function(){var e=o(),e=("PENDING"!==e.type&&invariant$1(!1),e.actions.fluidLift(e.point));r({type:"DRAGGING",actions:e,hasMoved:!1})},[o,r]),d=useCallback(function(e,t){"IDLE"!==o().type&&invariant$1(!1);var n=setTimeout(u,timeForLongPress);r({type:"PENDING",point:t,actions:e,longPressTimerId:n}),c()},[c,o,r,u]);useIsomorphicLayoutEffect$1(function(){return a(),function(){i.current();var e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),r(idle$2))}},[o,a,r]),useIsomorphicLayoutEffect$1(function(){return bindEvents(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])},[])}var interactiveTagNames={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function isAnInteractiveElement(e,t){var n;return null!=t&&(!!Boolean(interactiveTagNames[t.tagName.toLowerCase()])||"true"===(n=t.getAttribute("contenteditable"))||""===n||t!==e&&isAnInteractiveElement(e,t.parentElement))}function isEventInInteractiveElement(e,t){t=t.target;return!!isHtmlElement(t)&&isAnInteractiveElement(e,t)}var getBorderBoxCenterPosition=function(e){return getRect(e.getBoundingClientRect()).center};function isElement(e){return e instanceof getWindowFromEl(e).Element}var supportedMatchesName=function(){var e="matches";return"undefined"!=typeof document&&find([e,"msMatchesSelector","webkitMatchesSelector"],function(e){return e in Element.prototype})||e}();function closestPonyfill(e,t){return null==e?null:e[supportedMatchesName](t)?e:closestPonyfill(e.parentElement,t)}function closest$1(e,t){return e.closest?e.closest(t):closestPonyfill(e,t)}function getSelector(e){return"["+dragHandle.contextId+'="'+e+'"]'}function findClosestDragHandleFromEvent(e,t){var t=t.target;return isElement(t)&&(t=closest$1(t,getSelector(e)))&&isHtmlElement(t)?t:null}function tryGetClosestDraggableIdFromEvent(e,t){e=findClosestDragHandleFromEvent(e,t);return e?e.getAttribute(dragHandle.draggableId):null}function findDraggable(e,t){e="["+draggable.contextId+'="'+e+'"]',e=find(toArray(document.querySelectorAll(e)),function(e){return e.getAttribute(draggable.id)===t});return e&&isHtmlElement(e)?e:null}function preventDefault(e){e.preventDefault()}function _isActive(e){var t=e.expected,n=e.phase,r=e.isLockActive;return e.shouldWarn,!!r()&&t===n}function canStart(e){var t=e.lockAPI,n=e.store,r=e.registry,e=e.draggableId;return!(t.isClaimed()||!(t=r.draggable.findById(e))||!t.options.isEnabled||!canStartDrag(n.getState(),e))}function tryStart(e){var t,n,r,i,o,a=e.lockAPI,s=e.contextId,l=e.store,c=e.registry,u=e.draggableId,d=e.forceSensorStop,e=e.sourceEvent;return!canStart({lockAPI:a,store:l,registry:c,draggableId:u})||(t=c.draggable.getById(u),!(n=findDraggable(s,t.descriptor.id)))||e&&!t.options.canDragInteractiveElements&&isEventInInteractiveElement(n,e)?null:(r=a.claim(d||noop$1),i="PRE_DRAG",o=function(e,t){_isActive({expected:e,phase:i,isLockActive:f,shouldWarn:!0})&&l.dispatch(t())}.bind(null,"DRAGGING"),{isActive:function(){return _isActive({expected:"PRE_DRAG",phase:i,isLockActive:f,shouldWarn:!1})},shouldRespectForcePress:p,fluidLift:function(e){var t=rafSchd$1(function(e){o(function(){return move({client:e})})});return _extends$5({},h({liftActionArgs:{id:u,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}}),{move:t})},snapLift:function(){var e={moveUp:function(){return o(moveUp)},moveRight:function(){return o(moveRight)},moveDown:function(){return o(moveDown)},moveLeft:function(){return o(moveLeft)}};return h({liftActionArgs:{id:u,clientSelection:getBorderBoxCenterPosition(n),movementMode:"SNAP"},cleanup:noop$1,actions:e})},abort:function(){_isActive({expected:"PRE_DRAG",phase:i,isLockActive:f,shouldWarn:!0})&&a.release()}});function p(){return t.options.shouldRespectForcePress}function f(){return a.isActive(r)}function h(n){function r(){a.release(),i="COMPLETED"}function t(e,t){void 0===t&&(t={shouldBlockNextClick:!1}),n.cleanup(),t.shouldBlockNextClick&&(t=bindEvents(window,[{eventName:"click",fn:preventDefault,options:{once:!0,passive:!1,capture:!0}}]),setTimeout(t)),r(),l.dispatch(drop({reason:e}))}return"PRE_DRAG"!==i&&(r(),"PRE_DRAG"!==i)&&invariant$1(!1),l.dispatch(lift(n.liftActionArgs)),i="DRAGGING",_extends$5({isActive:function(){return _isActive({expected:"DRAGGING",phase:i,isLockActive:f,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(e){return t("DROP",e)},cancel:function(e){return t("CANCEL",e)}},n.actions)}}var defaultSensors=[useMouseSensor,useKeyboardSensor,useTouchSensor];function useSensorMarshal(e){for(var r=e.contextId,i=e.store,o=e.registry,t=e.customSensors,e=e.enableDefaultSensors,n=[].concat(e?defaultSensors:[],t||[]),a=react$1.exports.useState(function(){return create$2()})[0],s=useCallback(function(e,t){e.isDragging&&!t.isDragging&&a.tryAbandon()},[a]),l=(useIsomorphicLayoutEffect$1(function(){var t=i.getState();return i.subscribe(function(){var e=i.getState();s(t,e),t=e})},[a,i,s]),useIsomorphicLayoutEffect$1(function(){return a.tryAbandon},[a.tryAbandon]),useCallback(function(e){return canStart({lockAPI:a,registry:o,store:i,draggableId:e})},[a,o,i])),c=useCallback(function(e,t,n){return tryStart({lockAPI:a,registry:o,contextId:r,store:i,draggableId:e,forceSensorStop:t,sourceEvent:n&&n.sourceEvent?n.sourceEvent:null})},[r,a,o,i]),u=useCallback(function(e){return tryGetClosestDraggableIdFromEvent(r,e)},[r]),d=useCallback(function(e){e=o.draggable.findById(e);return e?e.options:null},[o.draggable]),p=useCallback(function(){a.isClaimed()&&(a.tryAbandon(),"IDLE"!==i.getState().phase)&&i.dispatch(flush$1())},[a,i]),f=useCallback(a.isClaimed,[a]),h=useMemo(function(){return{canGetLock:l,tryGetLock:c,findClosestDraggableId:u,findOptionsForDraggable:d,tryReleaseLock:p,isLockClaimed:f}},[l,c,u,d,p,f]),m=0;m<n.length;m++)n[m](h)}var createResponders=function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function getStore(e){return e.current||invariant$1(!1),e.current}function App$1(e){var t=e.contextId,n=e.setCallbacks,r=e.sensors,i=e.nonce,o=e.dragHandleUsageInstructions,a=react$1.exports.useRef(null),s=usePrevious$2(e),l=useCallback(function(){return createResponders(s.current)},[s]),c=useAnnouncer(t),u=useHiddenTextElement({contextId:t,text:o}),d=useStyleMarshal(t,i),p=useCallback(function(e){getStore(a).dispatch(e)},[]),f=useMemo(function(){return bindActionCreators$1({publishWhileDragging:publishWhileDragging,updateDroppableScroll:updateDroppableScroll,updateDroppableIsEnabled:updateDroppableIsEnabled,updateDroppableIsCombineEnabled:updateDroppableIsCombineEnabled,collectionStarting:collectionStarting},p)},[p]),h=useRegistry(),m=useMemo(function(){return createDimensionMarshal(h,f)},[h,f]),g=useMemo(function(){return createAutoScroller(_extends$5({scrollWindow:scrollWindow,scrollDroppable:m.scrollDroppable},bindActionCreators$1({move:move},p)))},[m.scrollDroppable,p]),y=useFocusMarshal(t),o=useMemo(function(){return createStore({announce:c,autoScroller:g,dimensionMarshal:m,focusMarshal:y,getResponders:l,styleMarshal:d})},[c,g,m,y,l,d]),v=(a.current=o,useCallback(function(){var e=getStore(a);"IDLE"!==e.getState().phase&&e.dispatch(flush$1())},[])),x=useCallback(function(){var e=getStore(a).getState();return e.isDragging||"DROP_ANIMATING"===e.phase},[]),$=(n(useMemo(function(){return{isDragging:x,tryAbort:v}},[x,v])),useCallback(function(e){return canStartDrag(getStore(a).getState(),e)},[])),b=useCallback(function(){return isMovementAllowed(getStore(a).getState())},[]),i=useMemo(function(){return{marshal:m,focus:y,contextId:t,canLift:$,isMovementAllowed:b,dragHandleUsageInstructionsId:u,registry:h}},[t,m,u,y,$,b,h]);return useSensorMarshal({contextId:t,store:o,registry:h,customSensors:r,enableDefaultSensors:!1!==e.enableDefaultSensors}),react$1.exports.useEffect(function(){return v},[v]),React5.createElement(AppContext.Provider,{value:i},React5.createElement(Provider,{context:StoreContext,store:o},e.children))}var count$1=0;function useInstanceCount(){return useMemo(function(){return""+count$1++},[])}function DragDropContext(t){var n=useInstanceCount(),r=t.dragHandleUsageInstructions||preset.dragHandleUsageInstructions;return React5.createElement(ErrorBoundary,null,function(e){return React5.createElement(App$1,{nonce:t.nonce,contextId:n,setCallbacks:e,dragHandleUsageInstructions:r,enableDefaultSensors:t.enableDefaultSensors,sensors:t.sensors,onBeforeCapture:t.onBeforeCapture,onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragUpdate:t.onDragUpdate,onDragEnd:t.onDragEnd},t.children)})}var isEqual$1=function(t){return function(e){return t===e}},isScroll=isEqual$1("scroll"),isAuto=isEqual$1("auto"),isEither=function(e,t){return t(e.overflowX)||t(e.overflowY)},isElementScrollable=function(e){e=window.getComputedStyle(e),e={overflowX:e.overflowX,overflowY:e.overflowY};return isEither(e,isScroll)||isEither(e,isAuto)},isBodyScrollable=function(){return!1},getClosestScrollable=function e(t){return null==t?null:t===document.body?isBodyScrollable()?t:null:t===document.documentElement?null:isElementScrollable(t)?t:e(t.parentElement)},getScroll$1=function(e){return{x:e.scrollLeft,y:e.scrollTop}},getIsFixed=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},getEnv=function(e){return{closestScrollable:getClosestScrollable(e),isFixedOnPage:getIsFixed(e)}},getDroppableDimension=function(e){var t,n=e.descriptor,r=e.isEnabled,i=e.isCombineEnabled,o=e.isFixedOnPage,a=e.direction,s=e.client,l=e.page,e=e.closest,c=e?(u=e.scrollSize,c=e.client,t=getMaxScroll({scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth,height:c.paddingBox.height,width:c.paddingBox.width}),{pageMarginBox:e.page.marginBox,frameClient:c,scrollSize:u,shouldClipSubject:e.shouldClipSubject,scroll:{initial:e.scroll,current:e.scroll,max:t,diff:{value:origin,displacement:origin}}}):null,u="vertical"===a?vertical:horizontal;return{descriptor:n,isCombineEnabled:i,isFixedOnPage:o,axis:u,isEnabled:r,client:s,page:l,frame:c,subject:getSubject({page:l,withPlaceholder:null,axis:u,frame:c})}},getClient=function(e,t){var n,r,i=getBox(e);return!t||e!==t?i:(e=i.paddingBox.top-t.scrollTop,n=i.paddingBox.left-t.scrollLeft,r=e+t.scrollHeight,t=n+t.scrollWidth,e=expand({top:e,right:t,bottom:r,left:n},i.border),createBox({borderBox:e,margin:i.margin,border:i.border,padding:i.padding}))},getDimension=function(e){var t,n=e.ref,r=e.descriptor,i=e.env,o=e.windowScroll,a=e.direction,s=e.isDropDisabled,l=e.isCombineEnabled,e=e.shouldClipSubject,c=i.closestScrollable,n=getClient(n,c),u=withScroll(n,o),d=c?(d=getBox(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth},{client:d,page:withScroll(d,o),scroll:getScroll$1(c),scrollSize:t,shouldClipSubject:e}):null;return getDroppableDimension({descriptor:r,isEnabled:!s,isCombineEnabled:l,isFixedOnPage:i.isFixedOnPage,direction:a,client:n,page:u,closest:d})},immediate={passive:!1},delayed={passive:!0},getListenerOptions=function(e){return e.shouldPublishImmediately?immediate:delayed};function useRequiredContext(e){e=react$1.exports.useContext(e);return e||invariant$1(!1),e}var getClosestScrollableFromDrag=function(e){return e&&e.env.closestScrollable||null};function useDroppablePublisher(e){var o=react$1.exports.useRef(null),a=useRequiredContext(AppContext),t=useUniqueId("droppable"),n=a.registry,r=a.marshal,s=usePrevious$2(e),l=useMemo(function(){return{id:e.droppableId,type:e.type,mode:e.mode}},[e.droppableId,e.mode,e.type]),i=react$1.exports.useRef(l),c=useMemo(function(){return memoizeOne(function(e,t){o.current||invariant$1(!1),r.updateDroppableScroll(l.id,{x:e,y:t})})},[l.id,r]),u=useCallback(function(){var e=o.current;return e&&e.env.closestScrollable?getScroll$1(e.env.closestScrollable):origin},[]),d=useCallback(function(){var e=u();c(e.x,e.y)},[u,c]),p=useMemo(function(){return rafSchd$1(d)},[d]),f=useCallback(function(){var e=o.current,t=getClosestScrollableFromDrag(e);e&&t||invariant$1(!1),(e.scrollOptions.shouldPublishImmediately?d:p)()},[p,d]),h=useCallback(function(e,t){o.current&&invariant$1(!1);var n=s.current,r=n.getDroppableRef(),i=(r||invariant$1(!1),getEnv(r)),t={ref:r,descriptor:l,env:i,scrollOptions:t},r=(o.current=t,getDimension({ref:r,descriptor:l,env:i,windowScroll:e,direction:n.direction,isDropDisabled:n.isDropDisabled,isCombineEnabled:n.isCombineEnabled,shouldClipSubject:!n.ignoreContainerClipping})),e=i.closestScrollable;return e&&(e.setAttribute(scrollContainer.contextId,a.contextId),e.addEventListener("scroll",f,getListenerOptions(t.scrollOptions))),r},[a.contextId,l,f,s]),m=useCallback(function(){var e=o.current,t=getClosestScrollableFromDrag(e);return e&&t||invariant$1(!1),getScroll$1(t)},[]),g=useCallback(function(){var e=o.current,t=(e||invariant$1(!1),getClosestScrollableFromDrag(e));o.current=null,t&&(p.cancel(),t.removeAttribute(scrollContainer.contextId),t.removeEventListener("scroll",f,getListenerOptions(e.scrollOptions)))},[f,p]),y=useCallback(function(e){var t=o.current,t=(t||invariant$1(!1),getClosestScrollableFromDrag(t));t||invariant$1(!1),t.scrollTop+=e.y,t.scrollLeft+=e.x},[]),v=useMemo(function(){return{getDimensionAndWatchScroll:h,getScrollWhileDragging:m,dragStopped:g,scroll:y}},[g,h,m,y]),x=useMemo(function(){return{uniqueId:t,descriptor:l,callbacks:v}},[v,l,t]);useIsomorphicLayoutEffect$1(function(){return i.current=x.descriptor,n.droppable.register(x),function(){o.current&&g(),n.droppable.unregister(x)}},[v,l,g,x,r,n.droppable]),useIsomorphicLayoutEffect$1(function(){o.current&&r.updateDroppableIsEnabled(i.current.id,!e.isDropDisabled)},[e.isDropDisabled,r]),useIsomorphicLayoutEffect$1(function(){o.current&&r.updateDroppableIsCombineEnabled(i.current.id,e.isCombineEnabled)},[e.isCombineEnabled,r])}function noop$2(){}var empty$1={width:0,height:0,margin:noSpacing},getSize=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,e=e.animate;return t||"close"===e?empty$1:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}},getStyle=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,e=e.animate,t=getSize({isAnimatingOpenOnMount:t,placeholder:n,animate:e});return{display:n.display,boxSizing:"border-box",width:t.width,height:t.height,marginTop:t.margin.top,marginRight:t.margin.right,marginBottom:t.margin.bottom,marginLeft:t.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==e?transitions.placeholder:null}};function Placeholder(e){var t=react$1.exports.useRef(null),n=useCallback(function(){t.current&&(clearTimeout(t.current),t.current=null)},[]),r=e.animate,i=e.onTransitionEnd,o=e.onClose,a=e.contextId,s=react$1.exports.useState("open"===e.animate),l=s[0],c=s[1],s=(react$1.exports.useEffect(function(){return l?"open"!==r?(n(),c(!1),noop$2):t.current?noop$2:(t.current=setTimeout(function(){t.current=null,c(!1)}),n):noop$2},[r,l,n]),useCallback(function(e){"height"===e.propertyName&&(i(),"close"===r)&&o()},[r,o,i])),u=getStyle({isAnimatingOpenOnMount:l,animate:e.animate,placeholder:e.placeholder});return React5.createElement(e.placeholder.tagName,{style:u,"data-rbd-placeholder-context-id":a,onTransitionEnd:s,ref:e.innerRef})}var Placeholder$1=React5.memo(Placeholder),DroppableContext=React5.createContext(null),AnimateInOut=function(i){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))||this).state={isVisible:Boolean(e.props.on),data:e.props.on,animate:e.props.shouldAnimate&&e.props.on?"open":"none"},e.onClose=function(){"close"===e.state.animate&&e.setState({isVisible:!1})},e}return _inheritsLoose$2(e,i),e.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},e.prototype.render=function(){var e;return this.state.isVisible?(e={onClose:this.onClose,data:this.state.data,animate:this.state.animate},this.props.children(e)):null},e}(React5.PureComponent),zIndexOptions={dragging:5e3,dropAnimating:4500},getDraggingTransition=function(e,t){return t?transitions.drop(t.duration):e?transitions.snap:transitions.fluid},getDraggingOpacity=function(e,t){return e?t?combine.opacity.drop:combine.opacity.combining:null},getShouldDraggingAnimate=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode};function getDraggingStyle(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,i=e.dropping,r=Boolean(r),e=getShouldDraggingAnimate(e),o=Boolean(i),n=o?transforms.drop(n,r):transforms.moveTo(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:getDraggingTransition(e,i),transform:n,opacity:getDraggingOpacity(r,o),zIndex:o?zIndexOptions.dropAnimating:zIndexOptions.dragging,pointerEvents:"none"}}function getSecondaryStyle(e){return{transform:transforms.moveTo(e.offset),transition:e.shouldAnimateDisplacement?null:"none"}}function getStyle$1(e){return("DRAGGING"===e.type?getDraggingStyle:getSecondaryStyle)(e)}function getDimension$1(e,t,n){void 0===n&&(n=origin);var r=window.getComputedStyle(t),i=t.getBoundingClientRect(),i=calculateBox(i,r),n=withScroll(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:n}}function useDraggablePublisher(e){var t=useUniqueId("draggable"),n=e.descriptor,r=e.registry,i=e.getDraggableRef,o=e.canDragInteractiveElements,a=e.shouldRespectForcePress,s=e.isEnabled,l=useMemo(function(){return{canDragInteractiveElements:o,shouldRespectForcePress:a,isEnabled:s}},[o,s,a]),c=useCallback(function(e){var t=i();return t||invariant$1(!1),getDimension$1(n,t,e)},[n,i]),u=useMemo(function(){return{uniqueId:t,descriptor:n,options:l,getDimension:c}},[n,c,l,t]),d=react$1.exports.useRef(u),p=react$1.exports.useRef(!0);useIsomorphicLayoutEffect$1(function(){return r.draggable.register(d.current),function(){return r.draggable.unregister(d.current)}},[r.draggable]),useIsomorphicLayoutEffect$1(function(){var e;p.current?p.current=!1:(e=d.current,d.current=u,r.draggable.update(u,e))},[u,r.draggable])}function preventHtml5Dnd(e){e.preventDefault()}function Draggable(e){var t=react$1.exports.useRef(null),n=useCallback(function(e){t.current=e},[]),r=useCallback(function(){return t.current},[]),i=useRequiredContext(AppContext),o=i.contextId,a=i.dragHandleUsageInstructionsId,s=i.registry,i=useRequiredContext(DroppableContext),l=i.type,c=i.droppableId,u=useMemo(function(){return{id:e.draggableId,index:e.index,type:l,droppableId:c}},[e.draggableId,e.index,l,c]),i=e.children,d=e.draggableId,p=e.isEnabled,f=e.shouldRespectForcePress,h=e.canDragInteractiveElements,m=e.isClone,g=e.mapped,y=e.dropAnimationFinished,v=(m||useDraggablePublisher(useMemo(function(){return{descriptor:u,registry:s,getDraggableRef:r,canDragInteractiveElements:h,shouldRespectForcePress:f,isEnabled:p}},[u,s,r,h,f,p])),useMemo(function(){return p?{tabIndex:0,role:"button","aria-describedby":a,"data-rbd-drag-handle-draggable-id":d,"data-rbd-drag-handle-context-id":o,draggable:!1,onDragStart:preventHtml5Dnd}:null},[o,a,d,p])),x=useCallback(function(e){"DRAGGING"===g.type&&g.dropping&&"transform"===e.propertyName&&y()},[y,g]),m=useMemo(function(){var e=getStyle$1(g),t="DRAGGING"===g.type&&g.dropping?x:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":o,"data-rbd-draggable-id":d,style:e,onTransitionEnd:t},dragHandleProps:v}},[o,v,d,g,x,n]),$=useMemo(function(){return{draggableId:u.id,type:u.type,source:{index:u.index,droppableId:u.droppableId}}},[u.droppableId,u.id,u.index,u.type]);return i(m,g.snapshot,$)}var isStrictEqual=function(e,t){return e===t},whatIsDraggedOverFromResult=function(e){var t=e.combine,e=e.destination;return e?e.droppableId:t?t.droppableId:null},getCombineWithFromResult=function(e){return e.combine?e.combine.draggableId:null},getCombineWithFromImpact=function(e){return e.at&&"COMBINE"===e.at.type?e.at.combine.draggableId:null};function getDraggableSelector(){var s=memoizeOne(function(e,t){return{x:e,y:t}}),l=memoizeOne(function(e,t,n,r,i){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(i),dropAnimation:i,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}}),c=memoizeOne(function(e,t,n,r,i,o,a){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:o,mode:t,offset:e,dimension:n,forceShouldAnimate:a,snapshot:l(t,r,i,o,null)}}});return function(e,t){var n,r,i,o,a;return e.isDragging?e.critical.draggable.id!==t.draggableId?null:(o=e.current.client.offset,n=e.dimensions.draggables[t.draggableId],r=whatIsDraggedOver(e.impact),a=getCombineWithFromImpact(e.impact),i=e.forceShouldAnimate,c(s(o.x,o.y),e.movementMode,n,t.isClone,r,a,i)):"DROP_ANIMATING"!==e.phase||(o=e.completed).result.draggableId!==t.draggableId?null:(n=t.isClone,r=e.dimensions.draggables[t.draggableId],i=(a=o.result).mode,t=whatIsDraggedOverFromResult(a),o=getCombineWithFromResult(a),a={duration:e.dropDuration,curve:curves.drop,moveTo:e.newHomeClientOffset,opacity:o?combine.opacity.drop:null,scale:o?combine.scale.drop:null},{mapped:{type:"DRAGGING",offset:e.newHomeClientOffset,dimension:r,dropping:a,draggingOver:t,combineWith:o,mode:i,forceShouldAnimate:null,snapshot:l(i,n,t,o,a)}})}}function getSecondarySnapshot(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var atRest={mapped:{type:"SECONDARY",offset:origin,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:getSecondarySnapshot(null)}};function getSecondarySelector(){function n(e,t,n,r){var i=n.displaced.visible[e],o=Boolean(r.inVirtualList&&r.effected[e]),a=(a=tryGetCombine(n))&&a.draggableId===e?t:null;return i?o?c(a):(t=n.displacedBy.point,t=s(t.x,t.y),l(t,a,i.shouldAnimate)):o?n.displaced.invisible[e]?null:(t=negate(r.displacedBy.point),i=s(t.x,t.y),l(i,a,!0)):c(a)}var s=memoizeOne(function(e,t){return{x:e,y:t}}),r=memoizeOne(getSecondarySnapshot),l=memoizeOne(function(e,t,n){return{mapped:{type:"SECONDARY",offset:e,combineTargetFor:t=void 0===t?null:t,shouldAnimateDisplacement:n,snapshot:r(t)}}}),c=function(e){return e?l(origin,e,!0):null};return function(e,t){return e.isDragging?e.critical.draggable.id===t.draggableId?null:n(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical):"DROP_ANIMATING"!==e.phase||(e=e.completed).result.draggableId===t.draggableId?null:n(t.draggableId,e.result.draggableId,e.impact,e.afterCritical)}}var makeMapStateToProps=function(){var n=getDraggableSelector(),r=getSecondarySelector();return function(e,t){return n(e,t)||r(e,t)||atRest}},mapDispatchToProps={dropAnimationFinished:dropAnimationFinished},ConnectedDraggable=connect(makeMapStateToProps,mapDispatchToProps,null,{context:StoreContext,pure:!0,areStatePropsEqual:isStrictEqual})(Draggable);function PrivateDraggable(e){return useRequiredContext(DroppableContext).isUsingCloneFor!==e.draggableId||e.isClone?React5.createElement(ConnectedDraggable,e):null}function PublicDraggable(e){var t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),r=Boolean(e.shouldRespectForcePress);return React5.createElement(PrivateDraggable,_extends$5({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}function Droppable(e){var n,r,t=react$1.exports.useContext(AppContext),i=(t||invariant$1(!1),t.contextId),o=t.isMovementAllowed,a=react$1.exports.useRef(null),s=react$1.exports.useRef(null),t=e.children,l=e.droppableId,c=e.type,u=e.mode,d=e.direction,p=e.ignoreContainerClipping,f=e.isDropDisabled,h=e.isCombineEnabled,m=e.snapshot,g=e.useClone,y=e.updateViewportMaxScroll,v=e.getContainerForClone,x=useCallback(function(){return a.current},[]),$=useCallback(function(e){a.current=e},[]),b=(useCallback(function(){return s.current},[]),useCallback(function(e){s.current=e},[])),C=useCallback(function(){o()&&y({maxScroll:getMaxWindowScroll()})},[o,y]),S=(useDroppablePublisher({droppableId:l,type:c,mode:u,direction:d,isDropDisabled:f,isCombineEnabled:h,ignoreContainerClipping:p,getDroppableRef:x}),React5.createElement(AnimateInOut,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},function(e){var t=e.onClose,n=e.data,e=e.animate;return React5.createElement(Placeholder$1,{placeholder:n,onClose:t,innerRef:b,animate:e,contextId:i,onTransitionEnd:C})})),u=useMemo(function(){return{innerRef:$,placeholder:S,droppableProps:{"data-rbd-droppable-id":l,"data-rbd-droppable-context-id":i}}},[i,l,S,$]),w=g?g.dragging.draggableId:null,d=useMemo(function(){return{droppableId:l,type:c,isUsingCloneFor:w}},[l,w,c]);return React5.createElement(DroppableContext.Provider,{value:d},t(u,m),g?(n=g.dragging,r=g.render,f=React5.createElement(PrivateDraggable,{draggableId:n.draggableId,index:n.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(e,t){return r(e,t,n)}),ReactDOM.createPortal(f,v())):null)}var isMatchingType=function(e,t){return e===t.droppable.type},getDraggable=function(e,t){return t.draggables[e.draggable.id]},makeMapStateToProps$1=function(){var s={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},l=_extends$5({},s,{shouldAnimatePlaceholder:!1}),c=memoizeOne(function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}}),u=memoizeOne(function(e,t,n,r,i,o){var a=i.descriptor.id;return i.descriptor.droppableId===e?(e=o?{render:o,dragging:c(i.descriptor)}:null,{placeholder:i.placeholder,shouldAnimatePlaceholder:!1,snapshot:{isDraggingOver:n,draggingOverWith:n?a:null,draggingFromThisWith:a,isUsingPlaceholder:!0},useClone:e}):t?r?{placeholder:i.placeholder,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:n,draggingOverWith:a,draggingFromThisWith:null,isUsingPlaceholder:!0},useClone:null}:s:l});return function(e,t){var n,r,i=t.droppableId,o=t.type,a=!t.isDropDisabled,t=t.renderClone;return e.isDragging?(r=e.critical,isMatchingType(o,r)?(r=getDraggable(r,e.dimensions),n=whatIsDraggedOver(e.impact)===i,u(i,a,n,n,r,t)):l):"DROP_ANIMATING"===e.phase?(n=e.completed,isMatchingType(o,n.critical)?(r=getDraggable(n.critical,e.dimensions),u(i,a,whatIsDraggedOverFromResult(n.result)===i,whatIsDraggedOver(n.impact)===i,r,t)):l):"IDLE"===e.phase&&e.completed&&!e.shouldFlush&&(a=e.completed,isMatchingType(o,a.critical))?(n=whatIsDraggedOver(a.impact)===i,r=Boolean(a.impact.at&&"COMBINE"===a.impact.at.type),t=a.critical.droppable.id===i,n?r?s:l:t?s:l):l}},mapDispatchToProps$1={updateViewportMaxScroll:updateViewportMaxScroll};function getBody(){return document.body||invariant$1(!1),document.body}var Action,ResultType,DataRouterHook$1,DataRouterStateHook$1,AwaitRenderStatus,DataRouterHook,DataRouterStateHook,defaultProps={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:getBody},ConnectedDroppable=connect(makeMapStateToProps$1,mapDispatchToProps$1,null,{context:StoreContext,pure:!0,areStatePropsEqual:isStrictEqual})(Droppable),naturalDragAnimationRbdnd=(ConnectedDroppable.defaultProps=defaultProps,{exports:{}}),NaturalDragAnimation=(!function(){function i(e){var t;return(o[e]||(t=o[e]={i:e,l:!1,exports:{}},r[e].call(t.exports,t,t.exports,i),t.l=!0,t)).exports}var n,r,o;window,naturalDragAnimationRbdnd.exports=(n=react$1.exports,r=[function(e,t,n){e.exports=n(4)()},function(e,t){e.exports=n},function(e,t,n){e.exports=n(3)},function(e,t,n){n.r(t);var l,r=n(1),i=n.n(r),o=n(0),n=n.n(o);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach(function(e){m(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(r){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t,n=h(r);return e=i?(e=h(this).constructor,Reflect.construct(n,arguments,e)):n.apply(this,arguments),n=this,!(t=e)||"object"!==a(t)&&"function"!=typeof t?f(n):t}}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}var g={transform:null,prevX:0,rotation:0},o=function(e){var t=s;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e);var o=p(s);function s(){var a,e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return m(f(a=o.call.apply(o,[this].concat(r))),"state",c({},g)),m(f(a),"patchTransform",function(){var e,t=a.props,n=t.snapshot.isDragging,r=t.style,i=t.animationRotationFade,o=t.rotationMultiplier,t=t.sigmoidFunction;n&&r.transform?(e=(n=r.transform.match(/translate\(.{1,}\)/g)[0].match(/-?[0-9]{1,}/g)[0])-a.state.prevX,i=a.state.rotation*i+t(e)*o,t="".concat(r.transform," rotate(").concat(i,"deg)"),Math.abs(i)<.01&&(i=0),a.setState({transform:t,prevX:n,rotation:i},function(){l=requestAnimationFrame(a.patchTransform)})):l=requestAnimationFrame(a.patchTransform)}),a}return t=[{key:"getDerivedStateFromProps",value:function(e,t){return e.snapshot.dropAnimation&&t.transform?c({},g):null}}],u((e=s).prototype,[{key:"componentDidMount",value:function(){this.props.snapshot.isDragging&&(l=requestAnimationFrame(this.patchTransform))}},{key:"componentDidUpdate",value:function(e){!e.snapshot.isDragging&&this.props.snapshot.isDragging&&(l=requestAnimationFrame(this.patchTransform)),e.snapshot.isDragging&&!this.props.snapshot.isDragging&&cancelAnimationFrame(l)}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(l)}},{key:"render",value:function(){var e=this.props.snapshot,t=e.isDragging,e=e.dropAnimation,t=t&&!e?c(c({},this.props.style),{},{transform:this.state.transform}):this.props.style;return i.a.createElement(r.Fragment,null,this.props.children(t))}}]),u(e,t),s}(r.Component);m(o,"propTypes",{snapshot:n.a.shape({isDragging:n.a.bool.isRequired,dropAnimation:n.a.shape()}).isRequired,style:n.a.shape().isRequired,children:n.a.func.isRequired,animationRotationFade:n.a.number,rotationMultiplier:n.a.number,sigmoidFunction:n.a.func}),m(o,"defaultProps",{animationRotationFade:.9,rotationMultiplier:1.3,sigmoidFunction:function(e){return e/(1+Math.abs(e))}}),t.default=o},function(e,t,n){var a=n(5);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,o){if(o!==a)throw(o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")).name="Invariant Violation",o}function t(){return e}var n={array:e.isRequired=e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n}},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}],o={},i.m=r,i.c=o,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i(i.s=2))}(),getDefaultExportFromCjs(naturalDragAnimationRbdnd.exports)),Link={},_interopRequireDefault$7=interopRequireDefault.exports,default_1$7=(Object.defineProperty(Link,"__esModule",{value:!0}),Link.default=void 0),_createSvgIcon$7=_interopRequireDefault$7(createSvgIcon$1),_jsxRuntime$7=jsxRuntime.exports,_default$7=(0,_createSvgIcon$7.default)((0,_jsxRuntime$7.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}),"Link");function _extends$1(){return(_extends$1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}default_1$7=Link.default=_default$7,function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(Action=Action||{});const PopStateEventType="popstate";function createBrowserHistory(e){return getUrlBasedHistory(function(e,t){var{pathname:e,search:n,hash:r}=e.location;return createLocation("",{pathname:e,search:n,hash:r},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:createPath(t)},null,e=void 0===e?{}:e)}function invariant(e,t){if(!1===e||null==e)throw new Error(t)}function warning(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function createKey(){return Math.random().toString(36).substr(2,8)}function getHistoryState(e,t){return{usr:e.state,key:e.key,idx:t}}function createLocation(e,t,n,r){return void 0===n&&(n=null),_extends$1({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?parsePath(t):t,{state:n,key:t&&t.key||r||createKey()})}function createPath(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function parsePath(e){var t,n={};return e&&(0<=(t=e.indexOf("#"))&&(n.hash=e.substr(t),e=e.substr(0,t)),0<=(t=e.indexOf("?"))&&(n.search=e.substr(t),e=e.substr(0,t)),e)&&(n.pathname=e),n}function getUrlBasedHistory(e,t,n,r){void 0===r&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=Action.Pop,l=null,c=u();function u(){return(a.state||{idx:null}).idx}function d(){s=Action.Pop;var e=u(),t=null==e?null:e-c;c=e,l&&l({action:s,location:f.location,delta:t})}function p(e){var t="null"!==i.location.origin?i.location.origin:i.location.href,e="string"==typeof e?e:createPath(e);return invariant(t,"No window.location.(origin|href) available to create URL for href: "+e),new URL(e,t)}null==c&&(c=0,a.replaceState(_extends$1({},a.state,{idx:c}),""));let f={get action(){return s},get location(){return e(i,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(PopStateEventType,d),l=e,()=>{i.removeEventListener(PopStateEventType,d),l=null}},createHref(e){return t(i,e)},createURL:p,encodeLocation(e){e=p(e);return{pathname:e.pathname,search:e.search,hash:e.hash}},push:function(e,t){s=Action.Push,t=createLocation(f.location,e,t),n&&n(t,e),e=getHistoryState(t,c=u()+1),t=f.createHref(t);try{a.pushState(e,"",t)}catch(e){i.location.assign(t)}o&&l&&l({action:s,location:f.location,delta:1})},replace:function(e,t){s=Action.Replace,t=createLocation(f.location,e,t),n&&n(t,e),e=getHistoryState(t,c=u()),t=f.createHref(t),a.replaceState(e,"",t),o&&l&&l({action:s,location:f.location,delta:0})},go(e){return a.go(e)}};return f}function matchRoutes(e,t,n){void 0===n&&(n="/");var r=stripBasename(("string"==typeof t?parsePath(t):t).pathname||"/",n);if(null==r)return null;var i=flattenRoutes(e);rankRouteBranches(i);let o=null;for(let e=0;null==o&&e<i.length;++e)o=matchRouteBranch(i[e],safelyDecodeURI(r));return o}function flattenRoutes(e,r,i,o){void 0===r&&(r=[]),void 0===i&&(i=[]),void 0===o&&(o="");let a=(e,t,n)=>{n={relativePath:void 0===n?e.path||"":n,caseSensitive:!0===e.caseSensitive,childrenIndex:t,route:e},n.relativePath.startsWith("/")&&(invariant(n.relativePath.startsWith(o),'Absolute route path "'+n.relativePath+'" nested under path "'+o+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),n.relativePath=n.relativePath.slice(o.length)),t=joinPaths([o,n.relativePath]),n=i.concat(n);e.children&&0<e.children.length&&(invariant(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+t+'".'),flattenRoutes(e.children,r,n,t)),null==e.path&&!e.index||r.push({path:t,score:computeScore(t,e.index),routesMeta:n})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(var r of explodeOptionalSegments(e.path))a(e,t,r);else a(e,t)}),r}function explodeOptionalSegments(t){var e=t.split("/");if(0===e.length)return[];var[e,...n]=e,r=e.endsWith("?");let i=e.replace(/\?$/,"");return 0===n.length?r?[i,""]:[i]:(e=explodeOptionalSegments(n.join("/")),(n=[]).push(...e.map(e=>""===e?i:[i,e].join("/"))),r&&n.push(...e),n.map(e=>t.startsWith("/")&&""===e?"/":e))}function rankRouteBranches(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:compareIndexes(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(ResultType=ResultType||{});const paramRe=/^:\w+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=e=>"*"===e;function computeScore(e,t){e=e.split("/");let n=e.length;return e.some(isSplat)&&(n+=splatPenalty),t&&(n+=indexRouteValue),e.filter(e=>!isSplat(e)).reduce((e,t)=>e+(paramRe.test(t)?dynamicSegmentValue:""===t?emptySegmentValue:staticSegmentValue),n)}function compareIndexes(e,n){return e.length===n.length&&e.slice(0,-1).every((e,t)=>e===n[t])?e[e.length-1]-n[n.length-1]:0}function matchRouteBranch(e,t){var n=e["routesMeta"],r={};let i="/";var o=[];for(let e=0;e<n.length;++e){var a=n[e],s=e===n.length-1,l="/"===i?t:t.slice(i.length)||"/",s=matchPath({path:a.relativePath,caseSensitive:a.caseSensitive,end:s},l);if(!s)return null;Object.assign(r,s.params);l=a.route;o.push({params:r,pathname:joinPaths([i,s.pathname]),pathnameBase:normalizePathname(joinPaths([i,s.pathnameBase])),route:l}),"/"!==s.pathnameBase&&(i=joinPaths([i,s.pathnameBase]))}return o}function matchPath(e,t){var[n,r]=compilePath((e="string"==typeof e?{path:e,caseSensitive:!1,end:!0}:e).path,e.caseSensitive,e.end),t=t.match(n);if(!t)return null;let i=t[0],o=i.replace(/(.)\/+$/,"$1"),a=t.slice(1);return{params:r.reduce((e,t,n)=>{var r;return"*"===t&&(r=a[n]||"",o=i.slice(0,i.length-r.length).replace(/(.)\/+$/,"$1")),e[t]=safelyDecodeURIComponent(a[n]||"",t),e},{}),pathname:i,pathnameBase:o,pattern:e}}function compilePath(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),warning("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(e,t)=>(r.push(t),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function safelyDecodeURI(t){try{return decodeURI(t)}catch(e){return warning(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+e+")."),t}}function safelyDecodeURIComponent(t,n){try{return decodeURIComponent(t)}catch(e){return warning(!1,'The value for the URL param "'+n+'" will not be decoded because the string "'+t+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+e+")."),t}}function stripBasename(e,t){var n;return"/"===t?e:!e.toLowerCase().startsWith(t.toLowerCase())||(t=t.endsWith("/")?t.length-1:t.length,(n=e.charAt(t))&&"/"!==n)?null:e.slice(t)||"/"}function resolvePath(e,t){void 0===t&&(t="/");var{pathname:e,search:n="",hash:r=""}="string"==typeof e?parsePath(e):e;return{pathname:e?e.startsWith("/")?e:resolvePathname(e,t):t,search:normalizeSearch(n),hash:normalizeHash(r)}}function resolvePathname(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?1<n.length&&n.pop():"."!==e&&n.push(e)}),1<n.length?n.join("/"):"/"}function getInvalidPathError(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function getPathContributingMatches(e){return e.filter((e,t)=>0===t||e.route.path&&0<e.route.path.length)}function resolveTo(e,t,n,r){void 0===r&&(r=!1);let i;"string"==typeof e?i=parsePath(e):(invariant(!(i=_extends$1({},e)).pathname||!i.pathname.includes("?"),getInvalidPathError("?","pathname","search",i)),invariant(!i.pathname||!i.pathname.includes("#"),getInvalidPathError("#","pathname","hash",i)),invariant(!i.search||!i.search.includes("#"),getInvalidPathError("#","search","hash",i)));var e=""===e||""===i.pathname,o=e?"/":i.pathname;let a;if(r||null==o)a=n;else{let e=t.length-1;if(o.startsWith("..")){for(var s=o.split("/");".."===s[0];)s.shift(),--e;i.pathname=s.join("/")}a=0<=e?t[e]:"/"}r=resolvePath(i,a),t=o&&"/"!==o&&o.endsWith("/"),e=(e||"."===o)&&n.endsWith("/");return r.pathname.endsWith("/")||!t&&!e||(r.pathname+="/"),r}const joinPaths=e=>e.join("/").replace(/\/\/+/g,"/"),normalizePathname=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",normalizeHash=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function isRouteErrorResponse(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const validMutationMethodsArr=["post","put","patch","delete"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}[...validMutationMethodsArr];const DataRouterContext=react$1.exports.createContext(null),DataRouterStateContext=react$1.exports.createContext(null),NavigationContext=react$1.exports.createContext(null),LocationContext=react$1.exports.createContext(null),RouteContext=react$1.exports.createContext({outlet:null,matches:[],isDataRoute:!1}),RouteErrorContext=react$1.exports.createContext(null);function useInRouterContext(){return null!=react$1.exports.useContext(LocationContext)}function useLocation(){return useInRouterContext()||invariant(!1),react$1.exports.useContext(LocationContext).location}function useIsomorphicLayoutEffect(e){react$1.exports.useContext(NavigationContext).static||react$1.exports.useLayoutEffect(e)}function useNavigate(){var e=react$1.exports.useContext(RouteContext)["isDataRoute"];return(e?useNavigateStable:useNavigateUnstable)()}function useNavigateUnstable(){useInRouterContext()||invariant(!1);let{basename:n,navigator:r}=react$1.exports.useContext(NavigationContext);var e=react$1.exports.useContext(RouteContext)["matches"];let i=useLocation()["pathname"],o=JSON.stringify(getPathContributingMatches(e).map(e=>e.pathnameBase)),a=react$1.exports.useRef(!1);return useIsomorphicLayoutEffect(()=>{a.current=!0}),react$1.exports.useCallback(function(e,t){void 0===t&&(t={}),a.current&&("number"==typeof e?r.go(e):(e=resolveTo(e,JSON.parse(o),i,"path"===t.relative),"/"!==n&&(e.pathname="/"===e.pathname?n:joinPaths([n,e.pathname])),(t.replace?r.replace:r.push)(e,t.state,t)))},[n,r,o,i])}function useRoutes(e,t){return useRoutesImpl(e,t)}function useRoutesImpl(e,t,n){useInRouterContext()||invariant(!1);let r=react$1.exports.useContext(NavigationContext)["navigator"];var i=react$1.exports.useContext(RouteContext)["matches"],o=i[i.length-1];let a=o?o.params:{},s=(o&&o.pathname,o?o.pathnameBase:"/");o&&o.route;o=useLocation();let l;var c=(l=t?(u="string"==typeof t?parsePath(t):t,"/"===s||null!=(c=u.pathname)&&c.startsWith(s)||invariant(!1),u):o).pathname||"/",u=matchRoutes(e,{pathname:"/"===s?c:c.slice(s.length)||"/"}),o=_renderMatches(u&&u.map(e=>Object.assign({},e,{params:Object.assign({},a,e.params),pathname:joinPaths([s,(r.encodeLocation?r.encodeLocation(e.pathname):e).pathname]),pathnameBase:"/"===e.pathnameBase?s:joinPaths([s,r.encodeLocation?r.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),i,n);return t&&o?react$1.exports.createElement(LocationContext.Provider,{value:{location:_extends({pathname:"/",search:"",hash:"",state:null,key:"default"},l),navigationType:Action.Pop}},o):o}function DefaultErrorComponent(){var e=useRouteError(),t=isRouteErrorResponse(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),e=e instanceof Error?e.stack:null;return react$1.exports.createElement(react$1.exports.Fragment,null,react$1.exports.createElement("h2",null,"Unexpected Application Error!"),react$1.exports.createElement("h3",{style:{fontStyle:"italic"}},t),e?react$1.exports.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},e):null,null)}const defaultErrorElement=react$1.exports.createElement(DefaultErrorComponent,null);class RenderErrorBoundary extends react$1.exports.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?react$1.exports.createElement(RouteContext.Provider,{value:this.props.routeContext},react$1.exports.createElement(RouteErrorContext.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function RenderedRoute(e){var{routeContext:e,match:t,children:n}=e,r=react$1.exports.useContext(DataRouterContext);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),react$1.exports.createElement(RouteContext.Provider,{value:e},n)}function _renderMatches(e,s,l){if(void 0===s&&(s=[]),void 0===l&&(l=null),null==e){if(null==l||!l.errors)return null;e=l.matches}let c=e,u=null==l?void 0:l.errors;return null!=u&&(0<=(e=c.findIndex(e=>e.route.id&&(null==u?void 0:u[e.route.id])))||invariant(!1),c=c.slice(0,Math.min(c.length,e+1))),c.reduceRight((t,n,e)=>{let r=n.route.id?null==u?void 0:u[n.route.id]:null,i=null,o=(l&&(i=n.route.errorElement||defaultErrorElement),s.concat(c.slice(0,e+1)));var a=()=>{let e;return e=r?i:n.route.Component?react$1.exports.createElement(n.route.Component,null):n.route.element||t,react$1.exports.createElement(RenderedRoute,{match:n,routeContext:{outlet:t,matches:o,isDataRoute:null!=l},children:e})};return l&&(n.route.ErrorBoundary||n.route.errorElement||0===e)?react$1.exports.createElement(RenderErrorBoundary,{location:l.location,revalidation:l.revalidation,component:i,error:r,children:a(),routeContext:{outlet:null,matches:o,isDataRoute:!0}}):a()},null)}function useDataRouterContext(e){var t=react$1.exports.useContext(DataRouterContext);return t||invariant(!1),t}function useDataRouterState(e){var t=react$1.exports.useContext(DataRouterStateContext);return t||invariant(!1),t}function useRouteContext(e){var t=react$1.exports.useContext(RouteContext);return t||invariant(!1),t}function useCurrentRouteId(e){var t=useRouteContext(),t=t.matches[t.matches.length-1];return t.route.id||invariant(!1),t.route.id}function useRouteError(){var e=react$1.exports.useContext(RouteErrorContext),t=useDataRouterState(DataRouterStateHook$1.UseRouteError),n=useCurrentRouteId(DataRouterStateHook$1.UseRouteError);return e||(null==(e=t.errors)?void 0:e[n])}function useNavigateStable(){let n=useDataRouterContext(DataRouterHook$1.UseNavigateStable)["router"],r=useCurrentRouteId(DataRouterStateHook$1.UseNavigateStable),i=react$1.exports.useRef(!1);return useIsomorphicLayoutEffect(()=>{i.current=!0}),react$1.exports.useCallback(function(e,t){void 0===t&&(t={}),i.current&&("number"==typeof e?n.navigate(e):n.navigate(e,_extends({fromRouteId:r},t)))},[n,r])}function Route(e){invariant(!1)}function Router(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Action.Pop,navigator:o,static:a=!1}=e,s=(useInRouterContext()&&invariant(!1),t.replace(/^\/*/,"/"));e=react$1.exports.useMemo(()=>({basename:s,navigator:o,static:a}),[s,o,a]);let{pathname:l="/",search:c="",hash:u="",state:d=null,key:p="default"}=r="string"==typeof r?parsePath(r):r;var f=react$1.exports.useMemo(()=>{var e=stripBasename(l,s);return null==e?null:{location:{pathname:e,search:c,hash:u,state:d,key:p},navigationType:i}},[s,l,c,u,d,p,i]);return null==f?null:react$1.exports.createElement(NavigationContext.Provider,{value:e},react$1.exports.createElement(LocationContext.Provider,{children:n,value:f}))}function Routes(e){var{children:e,location:t}=e;return useRoutes(createRoutesFromChildren(e),t)}function createRoutesFromChildren(e,r){void 0===r&&(r=[]);let i=[];return react$1.exports.Children.forEach(e,(e,t)=>{var n;react$1.exports.isValidElement(e)&&(t=[...r,t],e.type===react$1.exports.Fragment?i.push.apply(i,createRoutesFromChildren(e.props.children,t)):(e.type!==Route&&invariant(!1),e.props.index&&e.props.children&&invariant(!1),n={id:e.props.id||t.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy},e.props.children&&(n.children=createRoutesFromChildren(e.props.children,t)),i.push(n)))}),i}function createSearchParams(r){return void 0===r&&(r=""),new URLSearchParams("string"==typeof r||Array.isArray(r)||r instanceof URLSearchParams?r:Object.keys(r).reduce((e,t)=>{var n=r[t];return e.concat(Array.isArray(n)?n.map(e=>[t,e]):[[t,n]])},[]))}function getSearchParamsForLocation(e,n){let r=createSearchParams(e);if(n)for(let t of n.keys())r.has(t)||n.getAll(t).forEach(e=>{r.append(t,e)});return r}function BrowserRouter(e){var{basename:e,children:t,window:n}=e,r=react$1.exports.useRef();null==r.current&&(r.current=createBrowserHistory({window:n,v5Compat:!0}));let i=r.current,[o,a]=react$1.exports.useState({action:i.action,location:i.location});return react$1.exports.useLayoutEffect(()=>i.listen(a),[i]),react$1.exports.createElement(Router,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:i})}function useSearchParams(e){let t=react$1.exports.useRef(createSearchParams(e)),n=react$1.exports.useRef(!1),r=useLocation(),i=react$1.exports.useMemo(()=>getSearchParamsForLocation(r.search,n.current?null:t.current),[r.search]),o=useNavigate();e=react$1.exports.useCallback((e,t)=>{e=createSearchParams("function"==typeof e?e(i):e);n.current=!0,o("?"+e,t)},[o,i]);return[i,e]}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"}(DataRouterHook$1=DataRouterHook$1||{}),function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"}(DataRouterStateHook$1=DataRouterStateHook$1||{}),function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(AwaitRenderStatus=AwaitRenderStatus||{}),new Promise(()=>{}),function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"}(DataRouterHook=DataRouterHook||{}),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(DataRouterStateHook=DataRouterStateHook||{});var cropper={exports:{}},Cropper=(!function(){function P(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function N(r){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?P(Object(i),!0).forEach(function(e){var t,n;t=r,n=i[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):P(Object(i)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(i,e))})}return r}function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function F(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function V(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){var n;if(e)return"string"==typeof e?r(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e){return"number"==typeof e&&!ie(e)}function i(e){return void 0===e}function o(e){return"object"===D(e)&&null!==e}function f(e){if(!o(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&ae.call(n,"isPrototypeOf")}catch(e){return!1}}function c(e){return"function"==typeof e}function H(e){return Array.from?Array.from(e):se.call(e)}function _(n,r){return n&&c(r)&&(Array.isArray(n)||p(n.length)?H(n).forEach(function(e,t){r.call(n,e,t,n)}):o(n)&&Object.keys(n).forEach(function(e){r.call(n,n[e],e,n)})),n}function j(e,t){var n=1<arguments.length&&void 0!==t?t:1e11;return le.test(e)?Math.round(e*n)/n:e}function h(e,t){var n=e.style;_(t,function(e,t){ce.test(t)&&p(e)&&(e="".concat(e,"px")),n[t]=e})}function u(e,t){var n;t&&(p(e.length)?_(e,function(e){u(e,t)}):e.classList?e.classList.add(t):(n=e.className.trim())?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t)}function T(e,t){t&&(p(e.length)?_(e,function(e){T(e,t)}):e.classList?e.classList.remove(t):0<=e.className.indexOf(t)&&(e.className=e.className.replace(t,"")))}function a(e,t,n){t&&(p(e.length)?_(e,function(e){a(e,t,n)}):(n?u:T)(e,t))}function s(e){return e.replace(ue,"$1-$2").toLowerCase()}function B(e,t){return o(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(s(t)))}function d(e,t,n){o(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(s(t)),n)}function l(n,e,r,t){var i=3<arguments.length&&void 0!==t?t:{},o=r;e.trim().split(de).forEach(function(e){var t;pe||(t=n.listeners)&&t[e]&&t[e][r]&&(o=t[e][r],delete t[e][r],0===Object.keys(t[e]).length&&delete t[e],0===Object.keys(t).length)&&delete n.listeners,n.removeEventListener(e,o,i)})}function m(o,e,a,t){var s=3<arguments.length&&void 0!==t?t:{},l=a;e.trim().split(de).forEach(function(r){var e,i;s.once&&!pe&&(e=o.listeners,l=function(){delete i[r][a],o.removeEventListener(r,l,s);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];a.apply(o,t)},(i=void 0===e?{}:e)[r]||(i[r]={}),i[r][a]&&o.removeEventListener(r,i[r][a],s),i[r][a]=l,o.listeners=i),o.addEventListener(r,l,s)})}function g(e,t,n){var r;return c(Event)&&c(CustomEvent)?r=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,n),e.dispatchEvent(r)}function U(e){e=e.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}function z(e){e=e.match(fe);return null!==e&&(e[1]!==t.protocol||e[2]!==t.hostname||e[3]!==t.port)}function W(e){var t="timestamp=".concat((new Date).getTime());return e+(-1===e.indexOf("?")?"?":"&")+t}function y(e){var t=e.rotate,n=e.scaleX,r=e.scaleY,i=e.translateX,e=e.translateY,o=[],i=(p(i)&&0!==i&&o.push("translateX(".concat(i,"px)")),p(e)&&0!==e&&o.push("translateY(".concat(e,"px)")),p(t)&&0!==t&&o.push("rotate(".concat(t,"deg)")),p(n)&&1!==n&&o.push("scaleX(".concat(n,")")),p(r)&&1!==r&&o.push("scaleY(".concat(r,")")),o.length?o.join(" "):"none");return{WebkitTransform:i,msTransform:i,transform:i}}function v(e,t){var n=e.pageX,e=e.pageY,r={endX:n,endY:e};return t?r:N({startX:n,startY:e},r)}function R(e,t){var n,r=e.aspectRatio,i=e.height,o=e.width,a=1<arguments.length&&void 0!==t?t:"contain",s=oe(o),l=oe(i);return s&&l?(n=i*r,"contain"===a&&o<n||"cover"===a&&n<o?i=o/r:o=i*r):s?i=o/r:l&&(o=i*r),{width:o,height:i}}var x,$,b,C,Z,E,G,q,S,w,I,O,k,A,M,K,Y,Q,X,J,ee,te,ne,re,ie,oe,ae,se,L,le,ce,ue,de,pe,t,fe,he,me,e,n,ge,ye,ve,xe,$e,be;cropper.exports=(x="undefined"!=typeof window&&void 0!==window.document,$=x?window:{},n=!(!x||!$.document.documentElement)&&"ontouchstart"in $.document.documentElement,e=x&&"PointerEvent"in $,C="".concat(b="cropper","-crop"),Z="".concat(b,"-disabled"),E="".concat(b,"-hidden"),G="".concat(b,"-hide"),q="".concat(b,"-invisible"),S="".concat(b,"-modal"),w="".concat(b,"-move"),I="".concat(b,"Action"),O="".concat(b,"Preview"),k="cropend",A="cropmove",M="cropstart",K=e?"pointerdown":n?"touchstart":"mousedown",Y=e?"pointermove":n?"touchmove":"mousemove",Q=e?"pointerup pointercancel":n?"touchend touchcancel":"mouseup",X="image/jpeg",J=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,ee=/^data:/,te=/^data:image\/jpeg;base64,/,ne=/^img|canvas$/i,re={viewMode:0,dragMode:"crop",initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},ie=Number.isNaN||$.isNaN,oe=function(e){return 0<e&&e<1/0},ae=Object.prototype.hasOwnProperty,se=Array.prototype.slice,L=Object.assign||function(n){for(var e=arguments.length,t=new Array(1<e?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];return o(n)&&0<t.length&&t.forEach(function(t){o(t)&&Object.keys(t).forEach(function(e){n[e]=t[e]})}),n},le=/\.\d*(?:0|9){12}\d*$/,ce=/^width|height|left|top|marginLeft|marginTop$/,ue=/([a-z\d])([A-Z])/g,de=/\s\s*/,pe=function(){var t,e,n,r=!1;return x&&(t=!1,e=function(){},n=Object.defineProperty({},"once",{get:function(){return r=!0,t},set:function(e){t=e}}),$.addEventListener("test",e,n),$.removeEventListener("test",e,n)),r}(),t=$.location,fe=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i,he=String.fromCharCode,me=/^data:.*,/,e={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,t=this.options,n=this.container,r=this.cropper,i=Number(t.minContainerWidth),t=Number(t.minContainerHeight),i=(u(r,E),T(e,E),{width:Math.max(n.offsetWidth,0<=i?i:200),height:Math.max(n.offsetHeight,0<=t?t:100)});h(r,{width:(this.containerData=i).width,height:i.height}),u(e,E),T(r,E)},initCanvas:function(){var e=this.containerData,t=this.imageData,n=this.options.viewMode,r=Math.abs(t.rotate)%180==90,i=r?t.naturalHeight:t.naturalWidth,r=r?t.naturalWidth:t.naturalHeight,t=i/r,o=e.width,a=e.height,t=(e.height*t>e.width?3===n?o=e.height*t:a=e.width/t:3===n?a=e.width/t:o=e.height*t,{aspectRatio:t,naturalWidth:i,naturalHeight:r,width:o,height:a});this.canvasData=t,this.limited=1===n||2===n,this.limitCanvas(!0,!0),t.width=Math.min(Math.max(t.width,t.minWidth),t.maxWidth),t.height=Math.min(Math.max(t.height,t.minHeight),t.maxHeight),t.left=(e.width-t.width)/2,t.top=(e.height-t.height)/2,t.oldLeft=t.left,t.oldTop=t.top,this.initialCanvasData=L({},t)},limitCanvas:function(e,t){var n=this.options,r=this.containerData,i=this.canvasData,o=this.cropBoxData,a=n.viewMode,s=i.aspectRatio,l=this.cropped&&o;e&&(e=Number(n.minCanvasWidth)||0,n=Number(n.minCanvasHeight)||0,1<a?(e=Math.max(e,r.width),n=Math.max(n,r.height),3===a&&(e<n*s?e=n*s:n=e/s)):0<a&&(e?e=Math.max(e,l?o.width:0):n?n=Math.max(n,l?o.height:0):l&&((e=o.width)<(n=o.height)*s?e=n*s:n=e/s)),e=(s=R({aspectRatio:s,width:e,height:n})).width,n=s.height,i.minWidth=e,i.minHeight=n,i.maxWidth=1/0,i.maxHeight=1/0),t&&((l?0:1)<a?(s=r.width-i.width,e=r.height-i.height,i.minLeft=Math.min(0,s),i.minTop=Math.min(0,e),i.maxLeft=Math.max(0,s),i.maxTop=Math.max(0,e),l&&this.limited&&(i.minLeft=Math.min(o.left,o.left+(o.width-i.width)),i.minTop=Math.min(o.top,o.top+(o.height-i.height)),i.maxLeft=o.left,i.maxTop=o.top,2===a)&&(i.width>=r.width&&(i.minLeft=Math.min(0,s),i.maxLeft=Math.max(0,s)),i.height>=r.height)&&(i.minTop=Math.min(0,e),i.maxTop=Math.max(0,e))):(i.minLeft=-i.width,i.minTop=-i.height,i.maxLeft=r.width,i.maxTop=r.height))},renderCanvas:function(e,t){var n,r,i=this.canvasData,o=this.imageData;t&&(o=(t=function(e){var t=e.width,n=e.height,e=e.degree;if(90==(e=Math.abs(e)%180))return{width:n,height:t};var r=e%90*Math.PI/180,i=Math.sin(r),r=Math.cos(r),o=t*r+n*i,t=t*i+n*r;return 90<e?{width:t,height:o}:{width:o,height:t}}({width:o.naturalWidth*Math.abs(o.scaleX||1),height:o.naturalHeight*Math.abs(o.scaleY||1),degree:o.rotate||0})).width,t=t.height,n=i.width*(o/i.naturalWidth),r=i.height*(t/i.naturalHeight),i.left-=(n-i.width)/2,i.top-=(r-i.height)/2,i.width=n,i.height=r,i.aspectRatio=o/t,i.naturalWidth=o,i.naturalHeight=t,this.limitCanvas(!0,!1)),(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCanvas(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,h(this.canvas,L({width:i.width,height:i.height},y({translateX:i.left,translateY:i.top}))),this.renderImage(e),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(e){var t=this.canvasData,n=this.imageData,r=n.naturalWidth*(t.width/t.naturalWidth),i=n.naturalHeight*(t.height/t.naturalHeight);L(n,{width:r,height:i,left:(t.width-r)/2,top:(t.height-i)/2}),h(this.image,L({width:n.width,height:n.height},y(L({translateX:n.left,translateY:n.top},n)))),e&&this.output()},initCropBox:function(){var e=this.options,t=this.canvasData,n=e.aspectRatio||e.initialAspectRatio,e=Number(e.autoCropArea)||.8,r={width:t.width,height:t.height};n&&(t.height*n>t.width?r.height=r.width/n:r.width=r.height*n),this.cropBoxData=r,this.limitCropBox(!0,!0),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),r.width=Math.max(r.minWidth,r.width*e),r.height=Math.max(r.minHeight,r.height*e),r.left=t.left+(t.width-r.width)/2,r.top=t.top+(t.height-r.height)/2,r.oldLeft=r.left,r.oldTop=r.top,this.initialCropBoxData=L({},r)},limitCropBox:function(e,t){var n,r,i=this.options,o=this.containerData,a=this.canvasData,s=this.cropBoxData,l=this.limited,c=i.aspectRatio;e&&(e=Number(i.minCropBoxWidth)||0,i=Number(i.minCropBoxHeight)||0,n=l?Math.min(o.width,a.width,a.width+a.left,o.width-a.left):o.width,r=l?Math.min(o.height,a.height,a.height+a.top,o.height-a.top):o.height,e=Math.min(e,o.width),i=Math.min(i,o.height),c&&(e&&i?e<i*c?i=e/c:e=i*c:e?i=e/c:i&&(e=i*c),n<r*c?r=n/c:n=r*c),s.minWidth=Math.min(e,n),s.minHeight=Math.min(i,r),s.maxWidth=n,s.maxHeight=r),t&&(l?(s.minLeft=Math.max(0,a.left),s.minTop=Math.max(0,a.top),s.maxLeft=Math.min(o.width,a.left+a.width)-s.width,s.maxTop=Math.min(o.height,a.top+a.height)-s.height):(s.minLeft=0,s.minTop=0,s.maxLeft=o.width-s.width,s.maxTop=o.height-s.height))},renderCropBox:function(){var e=this.options,t=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCropBox(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,e.movable&&e.cropBoxMovable&&d(this.face,I,n.width>=t.width&&n.height>=t.height?"move":"all"),h(this.cropBox,L({width:n.width,height:n.height},y({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),g(this.element,"crop",this.getData())}},n={initPreview:function(){var e=this.element,n=this.crossOrigin,t=this.options.preview,r=n?this.crossOriginUrl:this.url,i=e.alt||"The image to preview",o=document.createElement("img");n&&(o.crossOrigin=n),o.src=r,o.alt=i,this.viewBox.appendChild(o),this.viewBoxImage=o,t&&("string"==typeof(o=t)?o=e.ownerDocument.querySelectorAll(t):t.querySelector&&(o=[t]),_(this.previews=o,function(e){var t=document.createElement("img");d(e,O,{width:e.offsetWidth,height:e.offsetHeight,html:e.innerHTML}),n&&(t.crossOrigin=n),t.src=r,t.alt=i,t.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',e.innerHTML="",e.appendChild(t)}))},resetPreview:function(){_(this.previews,function(t){var n=B(t,O),n=(h(t,{width:n.width,height:n.height}),t.innerHTML=n.html,t),t=O;if(o(n[t]))try{delete n[t]}catch(e){n[t]=void 0}else if(n.dataset)try{delete n.dataset[t]}catch(e){n.dataset[t]=void 0}else n.removeAttribute("data-".concat(s(t)))})},preview:function(){var a=this.imageData,e=this.canvasData,t=this.cropBoxData,s=t.width,l=t.height,c=a.width,u=a.height,d=t.left-e.left-a.left,p=t.top-e.top-a.top;this.cropped&&!this.disabled&&(h(this.viewBoxImage,L({width:c,height:u},y(L({translateX:-d,translateY:-p},a)))),_(this.previews,function(e){var t=B(e,O),n=t.width,t=t.height,r=n,i=t,o=1;s&&(i=l*(o=n/s)),l&&t<i&&(r=s*(o=t/l),i=t),h(e,{width:r,height:i}),h(e.getElementsByTagName("img")[0],L({width:c*o,height:u*o},y(L({translateX:-d*o,translateY:-p*o},a))))}))}},ge={bind:function(){var e=this.element,t=this.options,n=this.cropper;c(t.cropstart)&&m(e,M,t.cropstart),c(t.cropmove)&&m(e,A,t.cropmove),c(t.cropend)&&m(e,k,t.cropend),c(t.crop)&&m(e,"crop",t.crop),c(t.zoom)&&m(e,"zoom",t.zoom),m(n,K,this.onCropStart=this.cropStart.bind(this)),t.zoomable&&t.zoomOnWheel&&m(n,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&m(n,"dblclick",this.onDblclick=this.dblclick.bind(this)),m(e.ownerDocument,Y,this.onCropMove=this.cropMove.bind(this)),m(e.ownerDocument,Q,this.onCropEnd=this.cropEnd.bind(this)),t.responsive&&m(window,"resize",this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,t=this.options,n=this.cropper;c(t.cropstart)&&l(e,M,t.cropstart),c(t.cropmove)&&l(e,A,t.cropmove),c(t.cropend)&&l(e,k,t.cropend),c(t.crop)&&l(e,"crop",t.crop),c(t.zoom)&&l(e,"zoom",t.zoom),l(n,K,this.onCropStart),t.zoomable&&t.zoomOnWheel&&l(n,"wheel",this.onWheel,{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&l(n,"dblclick",this.onDblclick),l(e.ownerDocument,Y,this.onCropMove),l(e.ownerDocument,Q,this.onCropEnd),t.responsive&&l(window,"resize",this.onResize)}},ye={resize:function(){var e,t,n,r,i,o,a;this.disabled||(e=this.options,r=this.container,t=this.containerData,n=r.offsetWidth/t.width,r=r.offsetHeight/t.height,1!=(i=Math.abs(n-1)>Math.abs(r-1)?n:r)&&(e.restore&&(o=this.getCanvasData(),a=this.getCropBoxData()),this.render(),e.restore)&&(this.setCanvasData(_(o,function(e,t){o[t]=e*i})),this.setCropBoxData(_(a,function(e,t){a[t]=e*i}))))},dblclick:function(){var e,t;this.disabled||"none"===this.options.dragMode||this.setDragMode((e=this.dragBox,t=C,(e.classList?e.classList.contains(t):-1<e.className.indexOf(t))?"move":"crop"))},wheel:function(e){var t=this,n=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(e.preventDefault(),this.wheeling)||(this.wheeling=!0,setTimeout(function(){t.wheeling=!1},50),e.deltaY?r=0<e.deltaY?1:-1:e.wheelDelta?r=-e.wheelDelta/120:e.detail&&(r=0<e.detail?1:-1),this.zoom(-r*n,e))},cropStart:function(e){var t,n=e.buttons,r=e.button;this.disabled||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(p(n)&&1!==n||p(r)&&0!==r||e.ctrlKey)||(n=this.options,t=this.pointers,e.changedTouches?_(e.changedTouches,function(e){t[e.identifier]=v(e)}):t[e.pointerId||0]=v(e),r=1<Object.keys(t).length&&n.zoomable&&n.zoomOnTouch?"zoom":B(e.target,I),J.test(r)&&!1!==g(this.element,M,{originalEvent:e,action:r})&&(e.preventDefault(),this.action=r,this.cropping=!1,"crop"===r)&&(this.cropping=!0,u(this.dragBox,S)))},cropMove:function(e){var t,n=this.action;!this.disabled&&n&&(t=this.pointers,e.preventDefault(),!1!==g(this.element,A,{originalEvent:e,action:n}))&&(e.changedTouches?_(e.changedTouches,function(e){L(t[e.identifier]||{},v(e,!0))}):L(t[e.pointerId||0]||{},v(e,!0)),this.change(e))},cropEnd:function(e){var t,n;this.disabled||(t=this.action,n=this.pointers,e.changedTouches?_(e.changedTouches,function(e){delete n[e.identifier]}):delete n[e.pointerId||0],t&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,a(this.dragBox,S,this.cropped&&this.options.modal)),g(this.element,k,{originalEvent:e,action:t})))}},ve={change:function(e){function t(e){switch(e){case"e":g+w.x>$&&(w.x=$-g);break;case"w":p+w.x<v&&(w.x=v-p);break;case"n":f+w.y<x&&(w.y=x-f);break;case"s":y+w.y>b&&(w.y=b-y)}}var n,r,o,i=this.options,a=this.canvasData,s=this.containerData,l=this.cropBoxData,c=this.pointers,u=this.action,d=i.aspectRatio,p=l.left,f=l.top,h=l.width,m=l.height,g=p+h,y=f+m,v=0,x=0,$=s.width,b=s.height,C=!0,S=(!d&&e.shiftKey&&(d=h&&m?h/m:1),this.limited&&(v=l.minLeft,x=l.minTop,$=v+Math.min(s.width,a.width,a.left+a.width),b=x+Math.min(s.height,a.height,a.top+a.height)),c[Object.keys(c)[0]]),w={x:S.endX-S.startX,y:S.endY-S.startY};switch(u){case"all":p+=w.x,f+=w.y;break;case"e":0<=w.x&&($<=g||d&&(f<=x||b<=y))?C=!1:(t("e"),(h+=w.x)<0&&(u="w",p-=h=-h),d&&(f+=(l.height-(m=h/d))/2));break;case"n":w.y<=0&&(f<=x||d&&(p<=v||$<=g))?C=!1:(t("n"),m-=w.y,f+=w.y,m<0&&(u="s",f-=m=-m),d&&(p+=(l.width-(h=m*d))/2));break;case"w":w.x<=0&&(p<=v||d&&(f<=x||b<=y))?C=!1:(t("w"),h-=w.x,p+=w.x,h<0&&(u="e",p-=h=-h),d&&(f+=(l.height-(m=h/d))/2));break;case"s":0<=w.y&&(b<=y||d&&(p<=v||$<=g))?C=!1:(t("s"),(m+=w.y)<0&&(u="n",f-=m=-m),d&&(p+=(l.width-(h=m*d))/2));break;case"ne":if(d){if(w.y<=0&&(f<=x||$<=g)){C=!1;break}t("n"),m-=w.y,f+=w.y,h=m*d}else t("n"),t("e"),!(0<=w.x)||g<$?h+=w.x:w.y<=0&&f<=x&&(C=!1),(!(w.y<=0)||x<f)&&(m-=w.y,f+=w.y);h<0&&m<0?(u="sw",f-=m=-m,p-=h=-h):h<0?(u="nw",p-=h=-h):m<0&&(u="se",f-=m=-m);break;case"nw":if(d){if(w.y<=0&&(f<=x||p<=v)){C=!1;break}t("n"),m-=w.y,f+=w.y,p+=l.width-(h=m*d)}else t("n"),t("w"),!(w.x<=0)||v<p?(h-=w.x,p+=w.x):w.y<=0&&f<=x&&(C=!1),(!(w.y<=0)||x<f)&&(m-=w.y,f+=w.y);h<0&&m<0?(u="se",f-=m=-m,p-=h=-h):h<0?(u="ne",p-=h=-h):m<0&&(u="sw",f-=m=-m);break;case"sw":if(d){if(w.x<=0&&(p<=v||b<=y)){C=!1;break}t("w"),h-=w.x,p+=w.x,m=h/d}else t("s"),t("w"),!(w.x<=0)||v<p?(h-=w.x,p+=w.x):0<=w.y&&b<=y&&(C=!1),(!(0<=w.y)||y<b)&&(m+=w.y);h<0&&m<0?(u="ne",f-=m=-m,p-=h=-h):h<0?(u="se",p-=h=-h):m<0&&(u="nw",f-=m=-m);break;case"se":if(d){if(0<=w.x&&($<=g||b<=y)){C=!1;break}t("e"),m=(h+=w.x)/d}else t("s"),t("e"),!(0<=w.x)||g<$?h+=w.x:0<=w.y&&b<=y&&(C=!1),(!(0<=w.y)||y<b)&&(m+=w.y);h<0&&m<0?(u="nw",f-=m=-m,p-=h=-h):h<0?(u="sw",p-=h=-h):m<0&&(u="ne",f-=m=-m);break;case"move":this.move(w.x,w.y),C=!1;break;case"zoom":this.zoom((r=N({},n=c),o=0,_(n,function(i,e){delete r[e],_(r,function(e){var t=Math.abs(i.startX-e.startX),n=Math.abs(i.startY-e.startY),r=Math.abs(i.endX-e.endX),e=Math.abs(i.endY-e.endY),t=Math.sqrt(t*t+n*n),n=(Math.sqrt(r*r+e*e)-t)/t;Math.abs(n)>Math.abs(o)&&(o=n)})}),o),e),C=!1;break;case"crop":w.x&&w.y?(n=U(this.cropper),p=S.startX-n.left,f=S.startY-n.top,h=l.minWidth,m=l.minHeight,0<w.x?u=0<w.y?"se":"ne":w.x<0&&(p-=h,u=0<w.y?"sw":"nw"),w.y<0&&(f-=m),this.cropped||(T(this.cropBox,E),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))):C=!1}C&&(l.width=h,l.height=m,l.left=p,l.top=f,this.action=u,this.renderCropBox()),_(c,function(e){e.startX=e.endX,e.startY=e.endY})}},xe={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&u(this.dragBox,S),T(this.cropBox,E),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=L({},this.initialImageData),this.canvasData=L({},this.initialCanvasData),this.cropBoxData=L({},this.initialCropBoxData),this.renderCanvas(),this.cropped)&&this.renderCropBox(),this},clear:function(){return this.cropped&&!this.disabled&&(L(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),T(this.dragBox,S),u(this.cropBox,E)),this},replace:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&t&&(this.isImg&&(this.element.src=t),e?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,_(this.previews,function(e){e.getElementsByTagName("img")[0].src=t}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,T(this.cropper,Z)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,u(this.cropper,Z)),this},destroy:function(){var e=this.element;return e[b]&&(e[b]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate()),this},move:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,r=n.left,n=n.top;return this.moveTo(i(e)?e:r+Number(e),i(t)?t:n+Number(t))},moveTo:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.movable&&(p(e)&&(n.left=e,r=!0),p(t)&&(n.top=t,r=!0),r)&&this.renderCanvas(!0),this},zoom:function(e,t){var n=this.canvasData;return e=Number(e),this.zoomTo(n.width*(e=e<0?1/(1-e):1+e)/n.naturalWidth,null,t)},zoomTo:function(e,t,n){var r,i,o,a=this.options,s=this.canvasData,l=s.width,c=s.height,u=s.naturalWidth,d=s.naturalHeight;if(0<=(e=Number(e))&&this.ready&&!this.disabled&&a.zoomable){a=u*e,d=d*e;if(!1===g(this.element,"zoom",{ratio:e,oldRatio:l/u,originalEvent:n}))return this;n?(e=this.pointers,u=U(this.cropper),e=e&&Object.keys(e).length?(o=i=r=0,_(e,function(e){var t=e.startX,e=e.startY;r+=t,i+=e,o+=1}),{pageX:r/=o,pageY:i/=o}):{pageX:n.pageX,pageY:n.pageY},s.left-=(a-l)*((e.pageX-u.left-s.left)/l),s.top-=(d-c)*((e.pageY-u.top-s.top)/c)):f(t)&&p(t.x)&&p(t.y)?(s.left-=(a-l)*((t.x-s.left)/l),s.top-=(d-c)*((t.y-s.top)/c)):(s.left-=(a-l)/2,s.top-=(d-c)/2),s.width=a,s.height=d,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return p(e=Number(e))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var t=this.imageData.scaleY;return this.scale(e,p(t)?t:1)},scaleY:function(e){var t=this.imageData.scaleX;return this.scale(p(t)?t:1,e)},scale:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.scalable&&(p(e)&&(n.scaleX=e,r=!0),p(t)&&(n.scaleY=t,r=!0),r)&&this.renderCanvas(!0,!0),this},getData:function(){var n,r,e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],t=this.options,i=this.imageData,o=this.canvasData,a=this.cropBoxData;return this.ready&&this.cropped?(n={x:a.left-o.left,y:a.top-o.top,width:a.width,height:a.height},r=i.width/i.naturalWidth,_(n,function(e,t){n[t]=e/r}),e&&(o=Math.round(n.y+n.height),a=Math.round(n.x+n.width),n.x=Math.round(n.x),n.y=Math.round(n.y),n.width=a-n.x,n.height=o-n.y)):n={x:0,y:0,width:0,height:0},t.rotatable&&(n.rotate=i.rotate||0),t.scalable&&(n.scaleX=i.scaleX||1,n.scaleY=i.scaleY||1),n},setData:function(e){var t,n=this.options,r=this.imageData,i=this.canvasData,o={};return this.ready&&!this.disabled&&f(e)&&(t=!1,n.rotatable&&p(e.rotate)&&e.rotate!==r.rotate&&(r.rotate=e.rotate,t=!0),n.scalable&&(p(e.scaleX)&&e.scaleX!==r.scaleX&&(r.scaleX=e.scaleX,t=!0),p(e.scaleY))&&e.scaleY!==r.scaleY&&(r.scaleY=e.scaleY,t=!0),t&&this.renderCanvas(!0,!0),n=r.width/r.naturalWidth,p(e.x)&&(o.left=e.x*n+i.left),p(e.y)&&(o.top=e.y*n+i.top),p(e.width)&&(o.width=e.width*n),p(e.height)&&(o.height=e.height*n),this.setCropBoxData(o)),this},getContainerData:function(){return this.ready?L({},this.containerData):{}},getImageData:function(){return this.sized?L({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,n={};return this.ready&&_(["left","top","width","height","naturalWidth","naturalHeight"],function(e){n[e]=t[e]}),n},setCanvasData:function(e){var t=this.canvasData,n=t.aspectRatio;return this.ready&&!this.disabled&&f(e)&&(p(e.left)&&(t.left=e.left),p(e.top)&&(t.top=e.top),p(e.width)?(t.width=e.width,t.height=e.width/n):p(e.height)&&(t.height=e.height,t.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e,t=this.cropBoxData;return(e=this.ready&&this.cropped?{left:t.left,top:t.top,width:t.width,height:t.height}:e)||{}},setCropBoxData:function(e){var t,n,r=this.cropBoxData,i=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&f(e)&&(p(e.left)&&(r.left=e.left),p(e.top)&&(r.top=e.top),p(e.width)&&e.width!==r.width&&(t=!0,r.width=e.width),p(e.height)&&e.height!==r.height&&(n=!0,r.height=e.height),i&&(t?r.height=r.width/i:n&&(r.width=r.height*i)),this.renderCropBox()),this},getCroppedCanvas:function(){var e,t,n,r,i,o,a,s,l,c,u,d,p,f,h,m,g,y,v,x,$,b,C,S,w,_,T,E=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this.ready&&window.HTMLCanvasElement?(_=this.canvasData,h=this.image,d=this.imageData,r=_,y=E,m=d.aspectRatio,t=d.naturalWidth,i=d.naturalHeight,c=void 0===(c=d.rotate)?0:c,u=void 0===(u=d.scaleX)?1:u,d=void 0===(d=d.scaleY)?1:d,n=r.aspectRatio,s=r.naturalWidth,r=r.naturalHeight,a=void 0===(a=y.fillColor)?"transparent":a,p=void 0===(p=y.imageSmoothingEnabled)||p,f=void 0===(f=y.imageSmoothingQuality)?"low":f,o=void 0===(o=y.maxWidth)?1/0:o,T=void 0===(T=y.maxHeight)?1/0:T,e=void 0===(e=y.minWidth)?0:e,y=void 0===(y=y.minHeight)?0:y,v=document.createElement("canvas"),g=v.getContext("2d"),l=R({aspectRatio:n,width:o,height:T}),n=R({aspectRatio:n,width:e,height:y},"cover"),s=Math.min(l.width,Math.max(n.width,s)),l=Math.min(l.height,Math.max(n.height,r)),n=R({aspectRatio:m,width:o,height:T}),r=R({aspectRatio:m,width:e,height:y},"cover"),o=Math.min(n.width,Math.max(r.width,t)),T=Math.min(n.height,Math.max(r.height,i)),m=[-o/2,-T/2,o,T],v.width=j(s),v.height=j(l),g.fillStyle=a,g.fillRect(0,0,s,l),g.save(),g.translate(s/2,l/2),g.rotate(c*Math.PI/180),g.scale(u,d),g.imageSmoothingEnabled=p,g.imageSmoothingQuality=f,g.drawImage.apply(g,[h].concat(V(m.map(function(e){return Math.floor(j(e))})))),g.restore(),e=v,this.cropped?(t=(y=this.getData()).x,n=y.y,r=y.width,i=y.height,1!=(o=e.width/Math.floor(_.naturalWidth))&&(t*=o,n*=o,r*=o,i*=o),a=R({aspectRatio:T=r/i,width:E.maxWidth||1/0,height:E.maxHeight||1/0}),s=R({aspectRatio:T,width:E.minWidth||0,height:E.minHeight||0},"cover"),c=(l=R({aspectRatio:T,width:E.width||(1!=o?e.width:r),height:E.height||(1!=o?e.height:i)})).width,u=l.height,c=Math.min(a.width,Math.max(s.width,c)),u=Math.min(a.height,Math.max(s.height,u)),p=(d=document.createElement("canvas")).getContext("2d"),d.width=j(c),d.height=j(u),p.fillStyle=E.fillColor||"transparent",p.fillRect(0,0,c,u),f=E.imageSmoothingEnabled,h=E.imageSmoothingQuality,p.imageSmoothingEnabled=void 0===f||f,h&&(p.imageSmoothingQuality=h),m=e.width,g=e.height,v=n,(y=t)<=-r||m<y?S=b=x=y=0:y<=0?(b=-y,y=0,S=x=Math.min(m,r+y)):y<=m&&(b=0,S=x=Math.min(r,m-y)),x<=0||v<=-i||g<v?w=C=$=v=0:v<=0?(C=-v,v=0,w=$=Math.min(g,i+v)):v<=g&&(C=0,w=$=Math.min(i,g-v)),_=[y,v,x,$],0<S&&0<w&&_.push(b*(T=c/r),C*T,S*T,w*T),p.drawImage.apply(p,[e].concat(V(_.map(function(e){return Math.floor(j(e))})))),d):e):null},setAspectRatio:function(e){var t=this.options;return this.disabled||i(e)||(t.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped)&&this.renderCropBox()),this},setDragMode:function(e){var t,n,r=this.options,i=this.dragBox,o=this.face;return this.ready&&!this.disabled&&(n=r.movable&&"move"===e,r.dragMode=e=(t="crop"===e)||n?e:"none",d(i,I,e),a(i,C,t),a(i,w,n),r.cropBoxMovable||(d(o,I,e),a(o,C,t),a(o,w,n))),this}},$e=$.Cropper,be=function(){function i(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=this,r=i;if(!(n instanceof r))throw new TypeError("Cannot call a class as a function");if(!e||!ne.test(e.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=e,this.options=L({},re,f(t)&&t),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}var e=i,t=[{key:"init",value:function(){var e,t=this.element,n=t.tagName.toLowerCase();if(!t[b]){if(t[b]=this,"img"===n){if(this.isImg=!0,e=t.getAttribute("src")||"",!(this.originalUrl=e))return;e=t.src}else"canvas"===n&&window.HTMLCanvasElement&&(e=t.toDataURL());this.load(e)}}},{key:"load",value:function(e){var t,n,r,i,o,a,s=this;e&&(this.url=e,this.imageData={},t=this.element,(n=this.options).rotatable||n.scalable||(n.checkOrientation=!1),n.checkOrientation&&window.ArrayBuffer?ee.test(e)?te.test(e)?this.read((a=(a=e).replace(me,""),r=atob(a),a=new ArrayBuffer(r.length),_(i=new Uint8Array(a),function(e,t){i[t]=r.charCodeAt(t)}),a)):this.clone():(o=new XMLHttpRequest,a=this.clone.bind(this),this.reloading=!0,(this.xhr=o).onabort=a,o.onerror=a,o.ontimeout=a,o.onprogress=function(){o.getResponseHeader("content-type")!==X&&o.abort()},o.onload=function(){s.read(o.response)},o.onloadend=function(){s.reloading=!1,s.xhr=null},n.checkCrossOrigin&&z(e)&&t.crossOrigin&&(e=W(e)),o.open("GET",e,!0),o.responseType="arraybuffer",o.withCredentials="use-credentials"===t.crossOrigin,o.send()):this.clone())}},{key:"read",value:function(e){var t=this.options,n=this.imageData,r=function(e){var t,n,r,i,o,a,s=new DataView(e);try{if(255===s.getUint8(0)&&216===s.getUint8(1))for(var l=s.byteLength,c=2;c+1<l;){if(255===s.getUint8(c)&&225===s.getUint8(c+1)){r=c;break}c+=1}var u,d,p;if(i=r&&(u=r+10,"Exif"===function(e,t,n){var r="";n+=t;for(var i=t;i<n;i+=1)r+=he(e.getUint8(i));return r}(s,r+4,4))&&(d=s.getUint16(u),(n=18761===d)||19789===d)&&42===s.getUint16(u+2,n)&&8<=(p=s.getUint32(u+4,n))?u+p:i){var f=s.getUint16(i,n);for(a=0;a<f;a+=1)if(o=i+12*a+2,274===s.getUint16(o,n)){o+=8,t=s.getUint16(o,n),s.setUint16(o,1,n);break}}}catch(e){t=1}return t}(e),i=0,o=1,a=1;1<r&&(this.url=function(e,t){var n=[],r=new Uint8Array(e);for(;0<r.length;)n.push(he.apply(null,H(r.subarray(0,8192)))),r=r.subarray(8192);return"data:".concat(t,";base64,").concat(btoa(n.join("")))}(e,X),i=(e=function(e){var t=0,n=1,r=1;switch(e){case 2:n=-1;break;case 3:t=-180;break;case 4:r=-1;break;case 5:t=90,r=-1;break;case 6:t=90;break;case 7:t=90,n=-1;break;case 8:t=-90}return{rotate:t,scaleX:n,scaleY:r}}(r)).rotate,o=e.scaleX,a=e.scaleY),t.rotatable&&(n.rotate=i),t.scalable&&(n.scaleX=o,n.scaleY=a),this.clone()}},{key:"clone",value:function(){var e=this.element,t=this.url,n=e.crossOrigin,r=t,i=(this.options.checkCrossOrigin&&z(t)&&(n=n||"anonymous",r=W(t)),this.crossOrigin=n,this.crossOriginUrl=r,document.createElement("img"));n&&(i.crossOrigin=n),i.src=r||t,i.alt=e.alt||"The image to crop",(this.image=i).onload=this.start.bind(this),i.onerror=this.stop.bind(this),u(i,G),e.parentNode.insertBefore(i,e.nextSibling)}},{key:"start",value:function(){function e(e,t){L(r.imageData,{naturalWidth:e,naturalHeight:t,aspectRatio:e/t}),r.initialImageData=L({},r.imageData),r.sizing=!1,r.sized=!0,r.build()}var t,n,r=this,i=this.image,o=(i.onload=null,i.onerror=null,this.sizing=!0,$.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test($.navigator.userAgent));i.naturalWidth&&!o?e(i.naturalWidth,i.naturalHeight):(t=document.createElement("img"),n=document.body||document.documentElement,(this.sizingImage=t).onload=function(){e(t.width,t.height),o||n.removeChild(t)},t.src=i.src,o||(t.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",n.appendChild(t)))}},{key:"stop",value:function(){var e=this.image;e.onload=null,e.onerror=null,e.parentNode.removeChild(e),this.image=null}},{key:"build",value:function(){var e,t,n,r,i,o,a,s,l;this.sized&&!this.ready&&(e=this.element,t=this.options,n=this.image,r=e.parentNode,(i=document.createElement("div")).innerHTML='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',o=(i=i.querySelector(".".concat(b,"-container"))).querySelector(".".concat(b,"-canvas")),a=i.querySelector(".".concat(b,"-drag-box")),l=(s=i.querySelector(".".concat(b,"-crop-box"))).querySelector(".".concat(b,"-face")),this.container=r,this.cropper=i,this.canvas=o,this.dragBox=a,this.cropBox=s,this.viewBox=i.querySelector(".".concat(b,"-view-box")),this.face=l,o.appendChild(n),u(e,E),r.insertBefore(i,e.nextSibling),T(n,G),this.initPreview(),this.bind(),t.initialAspectRatio=Math.max(0,t.initialAspectRatio)||NaN,t.aspectRatio=Math.max(0,t.aspectRatio)||NaN,t.viewMode=Math.max(0,Math.min(3,Math.round(t.viewMode)))||0,u(s,E),t.guides||u(s.getElementsByClassName("".concat(b,"-dashed")),E),t.center||u(s.getElementsByClassName("".concat(b,"-center")),E),t.background&&u(i,"".concat(b,"-bg")),t.highlight||u(l,q),t.cropBoxMovable&&(u(l,w),d(l,I,"all")),t.cropBoxResizable||(u(s.getElementsByClassName("".concat(b,"-line")),E),u(s.getElementsByClassName("".concat(b,"-point")),E)),this.render(),this.ready=!0,this.setDragMode(t.dragMode),t.autoCrop&&this.crop(),this.setData(t.data),c(t.ready)&&m(e,"ready",t.ready,{once:!0}),g(e,"ready"))}},{key:"unbuild",value:function(){var e;this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),(e=this.cropper.parentNode)&&e.removeChild(this.cropper),T(this.element,E))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],n=[{key:"noConflict",value:function(){return window.Cropper=$e,i}},{key:"setDefaults",value:function(e){L(re,f(e)&&e)}}];return t&&F(e.prototype,t),n&&F(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(),L(be.prototype,e,n,ge,ye,ve,xe),be)}(),cropper.exports),__assign=function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function __rest$2(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}var AuthStatus,applyDefaultOptions=function(e,t){var n=(t=void 0===t?{}:t).enable,r=t.scaleX,r=void 0===r?1:r,i=t.scaleY,i=void 0===i?1:i,o=t.zoomTo,o=void 0===o?0:o,t=t.rotateTo;void 0===n||n?e.enable():e.disable(),e.scaleX(r),e.scaleY(i),void 0!==t&&e.rotateTo(t),0<o&&e.zoomTo(o)},useCombinedRefs=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=react$1.exports.useRef(null);return React5.useEffect(function(){e.forEach(function(e){e&&("function"==typeof e?e(n.current):e.current=n.current)})},[e]),n},ReactCropper=React5.forwardRef(function(e,t){var e=__rest$2(e,[]),n=e.dragMode,r=void 0===n?"crop":n,i=e.src,n=e.style,o=e.className,a=e.crossOrigin,s=e.scaleX,l=e.scaleY,c=e.enable,u=e.zoomTo,d=e.rotateTo,p=e.alt,p=void 0===p?"picture":p,f=e.ready,h=e.onInitialized,m=__rest$2(e,["dragMode","src","style","className","crossOrigin","scaleX","scaleY","enable","zoomTo","rotateTo","alt","ready","onInitialized"]),g={scaleY:l,scaleX:s,enable:c,zoomTo:u,rotateTo:d},l=react$1.exports.useRef(null),y=useCombinedRefs(t,l);return react$1.exports.useEffect(function(){var e;null!=(e=y.current)&&e.cropper&&"number"==typeof u&&y.current.cropper.zoomTo(u)},[e.zoomTo]),react$1.exports.useEffect(function(){var e;null!=(e=y.current)&&e.cropper&&void 0!==i&&y.current.cropper.reset().clear().replace(i)},[i]),react$1.exports.useEffect(function(){var e;return null!==y.current&&(e=new Cropper(y.current,__assign(__assign({dragMode:r},m),{ready:function(e){null!==e.currentTarget&&applyDefaultOptions(e.currentTarget.cropper,g),f&&f(e)}})),h)&&h(e),function(){var e;null!=(e=null==(e=y.current)?void 0:e.cropper)&&e.destroy()}},[y]),React5.createElement("div",{style:n,className:o},React5.createElement("img",{crossOrigin:a,src:i,alt:p,style:{opacity:0,maxWidth:"100%"},ref:y}))});const namespace$4$1="users",userSelector$1=e=>{return null==(e=null==e?void 0:e.aiWareHeaderBarPanel)?void 0:e[namespace$4$1]},userAuthStatusSelector=e=>{return null==(e=null==(e=null==e?void 0:e.aiWareHeaderBarPanel)?void 0:e[namespace$4$1])?void 0:e.authStatus},GET_CURRENT_USER$1=`os-app-bar-panel/${namespace$4$1}/get current user`,GET_CURRENT_USER_SUCCESS$1=`os-app-bar-panel/${namespace$4$1}/get current user success`,GET_CURRENT_USER_FAIL$1=`os-app-bar-panel/${namespace$4$1}/get current user fail`,RESET_BIOMETRIC=`os-app-bar-panel/${namespace$4$1}/reset biometric`,RESET_PASSWORD=`os-app-bar-panel/${namespace$4$1}/reset password`,RESET_PASSWORD_FAIL=`os-app-bar-panel/${namespace$4$1}/reset password fail`,UPDATE_PROFILE=`os-app-bar-panel/${namespace$4$1}/update profile`,UPDATE_PROFILE_FAIL=`os-app-bar-panel/${namespace$4$1}/update profile fail`,UPLOAD__AVATAR=`os-app-bar-panel/${namespace$4$1}/upload avatar`,UPDATE__AVATAR=`os-app-bar-panel/${namespace$4$1}/update avatar`,LOGOUT_USER=`os-app-bar-panel/${namespace$4$1}/logout`,LOGOUT_SUCCESS=`os-app-bar-panel/${namespace$4$1}/logout success`,LOGOUT_FAIL=`os-app-bar-panel/${namespace$4$1}/logout fail`,UPLOADING_AVATAR=`os-app-bar-panel/${namespace$4$1}/uploading`,UPDATE_ACTIVITY=`os-app-bar-panel/${namespace$4$1}/updateActivityStatus`;function getCurrentUser$1(){return{type:GET_CURRENT_USER$1}}function getCurrentUserFail$1(){return{type:GET_CURRENT_USER_FAIL$1}}function getCurrentUserSuccess$1(e){return{type:GET_CURRENT_USER_SUCCESS$1,payload:e}}function resetBiometric(){return{type:RESET_BIOMETRIC}}function resetPassword(e){return{type:RESET_PASSWORD,payload:e}}function resetPasswordFail(){return{type:RESET_PASSWORD_FAIL}}function updateProfile(e){return{type:UPDATE_PROFILE,payload:e}}function updateProfileFail(){return{type:UPDATE_PROFILE_FAIL}}function uploadAvatar(e){return{type:UPLOAD__AVATAR,payload:e}}function updateAvatar(e){return{type:UPDATE__AVATAR,payload:e}}function logoutUser$1(){return{type:LOGOUT_USER}}function logoutUserSuccess(){return{type:LOGOUT_SUCCESS}}function logoutUserFail(){return{type:LOGOUT_FAIL}}function uploadingAvatar(e){return{type:UPLOADING_AVATAR,payload:e}}!function(e){e.AUTHENTICATED="authenticated",e.LOGGING_OUT="logging_out",e.LOGGED_OUT="logged_out"}(AuthStatus=AuthStatus||{});const initialState$4$1={currentUser:{},status:"idle",authStatus:AuthStatus.AUTHENTICATED};function userReducer$1(e,t){return void 0===e?initialState$4$1:t.type===GET_CURRENT_USER_SUCCESS$1?Object.assign(Object.assign({},e),{currentUser:t.payload,status:"success"}):t.type===UPLOADING_AVATAR?Object.assign(Object.assign({},e),{loading:t.payload}):t.type===LOGOUT_USER?Object.assign(Object.assign({},e),{authStatus:AuthStatus.LOGGING_OUT}):t.type===LOGOUT_SUCCESS?Object.assign(Object.assign({},e),{authStatus:AuthStatus.LOGGED_OUT}):t.type===LOGOUT_FAIL?Object.assign(Object.assign({},e),{authStatus:AuthStatus.AUTHENTICATED}):e}var luxon={};function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function _construct(e,t,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);t=new(Function.bind.apply(e,r));return n&&_setPrototypeOf(t,n.prototype),t}).apply(null,arguments)}function _isNativeFunction(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _wrapNativeSuper(e){var n="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(t,e)})(e)}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};for(var n,r={},i=Object.keys(e),o=0;o<i.length;o++)n=i[o],0<=t.indexOf(n)||(r[n]=e[n]);return r}function _unsupportedIterableToArray(e,t){var n;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _createForOfIteratorHelperLoose(e){var t=0;if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator])return(t=e[Symbol.iterator]()).next.bind(t);if(Array.isArray(e)||(e=_unsupportedIterableToArray(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(luxon,"__esModule",{value:!0});var LuxonError=function(e){function t(){return e.apply(this,arguments)||this}return _inheritsLoose(t,e),t}(_wrapNativeSuper(Error)),InvalidDateTimeError=function(t){function e(e){return t.call(this,"Invalid DateTime: "+e.toMessage())||this}return _inheritsLoose(e,t),e}(LuxonError),InvalidIntervalError=function(t){function e(e){return t.call(this,"Invalid Interval: "+e.toMessage())||this}return _inheritsLoose(e,t),e}(LuxonError),InvalidDurationError=function(t){function e(e){return t.call(this,"Invalid Duration: "+e.toMessage())||this}return _inheritsLoose(e,t),e}(LuxonError),ConflictingSpecificationError=function(e){function t(){return e.apply(this,arguments)||this}return _inheritsLoose(t,e),t}(LuxonError),InvalidUnitError=function(t){function e(e){return t.call(this,"Invalid unit "+e)||this}return _inheritsLoose(e,t),e}(LuxonError),InvalidArgumentError=function(e){function t(){return e.apply(this,arguments)||this}return _inheritsLoose(t,e),t}(LuxonError),ZoneIsAbstractError=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return _inheritsLoose(t,e),t}(LuxonError),n$1="numeric",s="short",l$1="long",DATE_SHORT={year:n$1,month:n$1,day:n$1},DATE_MED={year:n$1,month:s,day:n$1},DATE_MED_WITH_WEEKDAY={year:n$1,month:s,day:n$1,weekday:s},DATE_FULL={year:n$1,month:l$1,day:n$1},DATE_HUGE={year:n$1,month:l$1,day:n$1,weekday:l$1},TIME_SIMPLE={hour:n$1,minute:n$1},TIME_WITH_SECONDS={hour:n$1,minute:n$1,second:n$1},TIME_WITH_SHORT_OFFSET={hour:n$1,minute:n$1,second:n$1,timeZoneName:s},TIME_WITH_LONG_OFFSET={hour:n$1,minute:n$1,second:n$1,timeZoneName:l$1},TIME_24_SIMPLE={hour:n$1,minute:n$1,hour12:!1},TIME_24_WITH_SECONDS={hour:n$1,minute:n$1,second:n$1,hour12:!1},TIME_24_WITH_SHORT_OFFSET={hour:n$1,minute:n$1,second:n$1,hour12:!1,timeZoneName:s},TIME_24_WITH_LONG_OFFSET={hour:n$1,minute:n$1,second:n$1,hour12:!1,timeZoneName:l$1},DATETIME_SHORT={year:n$1,month:n$1,day:n$1,hour:n$1,minute:n$1},DATETIME_SHORT_WITH_SECONDS={year:n$1,month:n$1,day:n$1,hour:n$1,minute:n$1,second:n$1},DATETIME_MED={year:n$1,month:s,day:n$1,hour:n$1,minute:n$1},DATETIME_MED_WITH_SECONDS={year:n$1,month:s,day:n$1,hour:n$1,minute:n$1,second:n$1},DATETIME_MED_WITH_WEEKDAY={year:n$1,month:s,day:n$1,weekday:s,hour:n$1,minute:n$1},DATETIME_FULL={year:n$1,month:l$1,day:n$1,hour:n$1,minute:n$1,timeZoneName:s},DATETIME_FULL_WITH_SECONDS={year:n$1,month:l$1,day:n$1,hour:n$1,minute:n$1,second:n$1,timeZoneName:s},DATETIME_HUGE={year:n$1,month:l$1,day:n$1,weekday:l$1,hour:n$1,minute:n$1,timeZoneName:l$1},DATETIME_HUGE_WITH_SECONDS={year:n$1,month:l$1,day:n$1,weekday:l$1,hour:n$1,minute:n$1,second:n$1,timeZoneName:l$1};function isUndefined(e){return void 0===e}function isNumber(e){return"number"==typeof e}function isInteger(e){return"number"==typeof e&&e%1==0}function isString(e){return"string"==typeof e}function isDate(e){return"[object Date]"===Object.prototype.toString.call(e)}function hasIntl(){try{return"undefined"!=typeof Intl&&Intl.DateTimeFormat}catch(e){return!1}}function hasFormatToParts(){return!isUndefined(Intl.DateTimeFormat.prototype.formatToParts)}function hasRelative(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function maybeArray(e){return Array.isArray(e)?e:[e]}function bestBy(e,n,r){if(0!==e.length)return e.reduce(function(e,t){t=[n(t),t];return e&&r(e[0],t[0])===e[0]?e:t},null)[1]}function pick(n,e){return e.reduce(function(e,t){return e[t]=n[t],e},{})}function hasOwnProperty$1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function integerBetween(e,t,n){return isInteger(e)&&t<=e&&e<=n}function floorMod(e,t){return e-t*Math.floor(e/t)}function padStart(e,t){void 0===t&&(t=2);var n=e<0?"-":"",e=n?-1*e:e,t=e.toString().length<t?("0".repeat(t)+e).slice(-t):e.toString();return n+t}function parseInteger(e){if(!isUndefined(e)&&null!==e&&""!==e)return parseInt(e,10)}function parseMillis(e){if(!isUndefined(e)&&null!==e&&""!==e)return e=1e3*parseFloat("0."+e),Math.floor(e)}function roundTo(e,t,n){void 0===n&&(n=!1);t=Math.pow(10,t);return(n?Math.trunc:Math.round)(e*t)/t}function isLeapYear(e){return e%4==0&&(e%100!=0||e%400==0)}function daysInYear(e){return isLeapYear(e)?366:365}function daysInMonth(e,t){var n=floorMod(t-1,12)+1;return 2===n?isLeapYear(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function objToLocalTS(e){var t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&0<=e.year&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function weeksInWeekYear(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,e=e-1,e=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7;return 4==t||3==e?53:52}function untruncateYear(e){return 99<e?e:60<e?1900+e:2e3+e}function parseZoneInfo(e,t,n,r){void 0===r&&(r=null);var i,e=new Date(e),o={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"},r=(r&&(o.timeZone=r),Object.assign({timeZoneName:t},o)),t=hasIntl();return t&&hasFormatToParts()?(i=new Intl.DateTimeFormat(n,r).formatToParts(e).find(function(e){return"timezonename"===e.type.toLowerCase()}))?i.value:null:t?(i=new Intl.DateTimeFormat(n,o).format(e),new Intl.DateTimeFormat(n,r).format(e).substring(i.length).replace(/^[, \u200e]+/,"")):null}function signedOffset(e,t){e=parseInt(e,10),Number.isNaN(e)&&(e=0),t=parseInt(t,10)||0;return 60*e+(e<0||Object.is(e,-0)?-t:t)}function asNumber(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new InvalidArgumentError("Invalid unit value "+e);return t}function normalizeObject(e,t,n){var r,i,o={};for(r in e)!hasOwnProperty$1(e,r)||0<=n.indexOf(r)||null!=(i=e[r])&&(o[t(r)]=asNumber(i));return o}function formatOffset(e,t){var n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=0<=e?"+":"-";switch(t){case"short":return i+padStart(n,2)+":"+padStart(r,2);case"narrow":return i+n+(0<r?":"+r:"");case"techie":return i+padStart(n,2)+padStart(r,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function timeObject(e){return pick(e,["hour","minute","second","millisecond"])}var ianaRegex=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function stringify(e){return JSON.stringify(e,Object.keys(e).sort())}var monthsLong=["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthsNarrow=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(e){switch(e){case"narrow":return[].concat(monthsNarrow);case"short":return[].concat(monthsShort);case"long":return[].concat(monthsLong);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var weekdaysLong=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],weekdaysShort=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],weekdaysNarrow=["M","T","W","T","F","S","S"];function weekdays(e){switch(e){case"narrow":return[].concat(weekdaysNarrow);case"short":return[].concat(weekdaysShort);case"long":return[].concat(weekdaysLong);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var meridiems=["AM","PM"],erasLong=["Before Christ","Anno Domini"],erasShort=["BC","AD"],erasNarrow=["B","A"];function eras(e){switch(e){case"narrow":return[].concat(erasNarrow);case"short":return[].concat(erasShort);case"long":return[].concat(erasLong);default:return null}}function meridiemForDateTime(e){return meridiems[e.hour<12?0:1]}function weekdayForDateTime(e,t){return weekdays(t)[e.weekday-1]}function monthForDateTime(e,t){return months(t)[e.month-1]}function eraForDateTime(e,t){return eras(t)[e.year<0?0:1]}function formatRelativeTime(e,t,n,r){void 0===n&&(n="always"),void 0===r&&(r=!1);var i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&o){var a="days"===e;switch(t){case 1:return a?"tomorrow":"next "+i[e][0];case-1:return a?"yesterday":"last "+i[e][0];case 0:return a?"today":"this "+i[e][0]}}var n=Object.is(t,-0)||t<0,o=Math.abs(t),t=1===o,s=i[e],r=r?!t&&s[2]||s[1]:t?i[e][0]:e;return n?o+" "+r+" ago":"in "+o+" "+r}function formatString(e){var t="EEEE, LLLL d, yyyy, h:mm a";switch(stringify(pick(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]))){case stringify(DATE_SHORT):return"M/d/yyyy";case stringify(DATE_MED):return"LLL d, yyyy";case stringify(DATE_MED_WITH_WEEKDAY):return"EEE, LLL d, yyyy";case stringify(DATE_FULL):return"LLLL d, yyyy";case stringify(DATE_HUGE):return"EEEE, LLLL d, yyyy";case stringify(TIME_SIMPLE):return"h:mm a";case stringify(TIME_WITH_SECONDS):return"h:mm:ss a";case stringify(TIME_WITH_SHORT_OFFSET):case stringify(TIME_WITH_LONG_OFFSET):return"h:mm a";case stringify(TIME_24_SIMPLE):return"HH:mm";case stringify(TIME_24_WITH_SECONDS):return"HH:mm:ss";case stringify(TIME_24_WITH_SHORT_OFFSET):case stringify(TIME_24_WITH_LONG_OFFSET):return"HH:mm";case stringify(DATETIME_SHORT):return"M/d/yyyy, h:mm a";case stringify(DATETIME_MED):return"LLL d, yyyy, h:mm a";case stringify(DATETIME_FULL):return"LLLL d, yyyy, h:mm a";case stringify(DATETIME_HUGE):return t;case stringify(DATETIME_SHORT_WITH_SECONDS):return"M/d/yyyy, h:mm:ss a";case stringify(DATETIME_MED_WITH_SECONDS):return"LLL d, yyyy, h:mm:ss a";case stringify(DATETIME_MED_WITH_WEEKDAY):return"EEE, d LLL yyyy, h:mm a";case stringify(DATETIME_FULL_WITH_SECONDS):return"LLLL d, yyyy, h:mm:ss a";case stringify(DATETIME_HUGE_WITH_SECONDS):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return t}}function stringifyTokens(e,t){for(var n="",r=_createForOfIteratorHelperLoose(e);!(i=r()).done;){var i=i.value;i.literal?n+=i.val:n+=t(i.val)}return n}var _macroTokenToFormatOpts={D:DATE_SHORT,DD:DATE_MED,DDD:DATE_FULL,DDDD:DATE_HUGE,t:TIME_SIMPLE,tt:TIME_WITH_SECONDS,ttt:TIME_WITH_SHORT_OFFSET,tttt:TIME_WITH_LONG_OFFSET,T:TIME_24_SIMPLE,TT:TIME_24_WITH_SECONDS,TTT:TIME_24_WITH_SHORT_OFFSET,TTTT:TIME_24_WITH_LONG_OFFSET,f:DATETIME_SHORT,ff:DATETIME_MED,fff:DATETIME_FULL,ffff:DATETIME_HUGE,F:DATETIME_SHORT_WITH_SECONDS,FF:DATETIME_MED_WITH_SECONDS,FFF:DATETIME_FULL_WITH_SECONDS,FFFF:DATETIME_HUGE_WITH_SECONDS},Formatter=function(){function p(e,t){this.opts=t,this.loc=e,this.systemLoc=null}p.create=function(e,t){return new p(e,t=void 0===t?{}:t)},p.parseFormat=function(e){for(var t=null,n="",r=!1,i=[],o=0;o<e.length;o++){var a=e.charAt(o);"'"===a?(0<n.length&&i.push({literal:r,val:n}),t=null,n="",r=!r):r||a===t?n+=a:(0<n.length&&i.push({literal:!1,val:n}),t=n=a)}return 0<n.length&&i.push({literal:r,val:n}),i},p.macroTokenToFormatOpts=function(e){return _macroTokenToFormatOpts[e]};var e=p.prototype;return e.formatWithSystemDefault=function(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,Object.assign({},this.opts,t)).format()},e.formatDateTime=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).format()},e.formatDateTimeParts=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).formatToParts()},e.resolvedOptions=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).resolvedOptions()},e.num=function(e,t){var n;return void 0===t&&(t=0),this.opts.forceSimple?padStart(e,t):(n=Object.assign({},this.opts),0<t&&(n.padTo=t),this.loc.numberFormatter(n).format(e))},e.formatDateTimeFromString=function(n,e){var r=this,i="en"===this.loc.listingMode(),t=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar&&hasFormatToParts(),o=function(e,t){return r.loc.extract(n,e,t)},a=function(e){return n.isOffsetFixed&&0===n.offset&&e.allowZ?"Z":n.isValid?n.zone.formatOffset(n.ts,e.format):""},s=function(){return i?meridiemForDateTime(n):o({hour:"numeric",hour12:!0},"dayperiod")},l=function(e,t){return i?monthForDateTime(n,e):o(t?{month:e}:{month:e,day:"numeric"},"month")},c=function(e,t){return i?weekdayForDateTime(n,e):o(t?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},u=function(e){var t=p.macroTokenToFormatOpts(e);return t?r.formatWithSystemDefault(n,t):e},d=function(e){return i?eraForDateTime(n,e):o({era:e},"era")};return stringifyTokens(p.parseFormat(e),function(e){switch(e){case"S":return r.num(n.millisecond);case"u":case"SSS":return r.num(n.millisecond,3);case"s":return r.num(n.second);case"ss":return r.num(n.second,2);case"m":return r.num(n.minute);case"mm":return r.num(n.minute,2);case"h":return r.num(n.hour%12==0?12:n.hour%12);case"hh":return r.num(n.hour%12==0?12:n.hour%12,2);case"H":return r.num(n.hour);case"HH":return r.num(n.hour,2);case"Z":return a({format:"narrow",allowZ:r.opts.allowZ});case"ZZ":return a({format:"short",allowZ:r.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:r.opts.allowZ});case"ZZZZ":return n.zone.offsetName(n.ts,{format:"short",locale:r.loc.locale});case"ZZZZZ":return n.zone.offsetName(n.ts,{format:"long",locale:r.loc.locale});case"z":return n.zoneName;case"a":return s();case"d":return t?o({day:"numeric"},"day"):r.num(n.day);case"dd":return t?o({day:"2-digit"},"day"):r.num(n.day,2);case"c":return r.num(n.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return r.num(n.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return t?o({month:"numeric",day:"numeric"},"month"):r.num(n.month);case"LL":return t?o({month:"2-digit",day:"numeric"},"month"):r.num(n.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return t?o({month:"numeric"},"month"):r.num(n.month);case"MM":return t?o({month:"2-digit"},"month"):r.num(n.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return t?o({year:"numeric"},"year"):r.num(n.year);case"yy":return t?o({year:"2-digit"},"year"):r.num(n.year.toString().slice(-2),2);case"yyyy":return t?o({year:"numeric"},"year"):r.num(n.year,4);case"yyyyyy":return t?o({year:"numeric"},"year"):r.num(n.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return r.num(n.weekYear.toString().slice(-2),2);case"kkkk":return r.num(n.weekYear,4);case"W":return r.num(n.weekNumber);case"WW":return r.num(n.weekNumber,2);case"o":return r.num(n.ordinal);case"ooo":return r.num(n.ordinal,3);case"q":return r.num(n.quarter);case"qq":return r.num(n.quarter,2);case"X":return r.num(Math.floor(n.ts/1e3));case"x":return r.num(n.ts);default:return u(e)}})},e.formatDurationFromString=function(e,t){var n,r=this,i=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},t=p.parseFormat(t),o=t.reduce(function(e,t){var n=t.literal,t=t.val;return n?e:e.concat(t)},[]),e=e.shiftTo.apply(e,o.map(i).filter(function(e){return e}));return stringifyTokens(t,(n=e,function(e){var t=i(e);return t?r.num(n.get(t),e.length):e}))},p}(),Invalid=function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),Zone=function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new ZoneIsAbstractError},t.formatOffset=function(e,t){throw new ZoneIsAbstractError},t.offset=function(e){throw new ZoneIsAbstractError},t.equals=function(e){throw new ZoneIsAbstractError},_createClass(e,[{key:"type",get:function(){throw new ZoneIsAbstractError}},{key:"name",get:function(){throw new ZoneIsAbstractError}},{key:"universal",get:function(){throw new ZoneIsAbstractError}},{key:"isValid",get:function(){throw new ZoneIsAbstractError}}]),e}(),singleton=null,LocalZone=function(e){function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var n=t.prototype;return n.offsetName=function(e,t){return parseZoneInfo(e,t.format,t.locale)},n.formatOffset=function(e,t){return formatOffset(this.offset(e),t)},n.offset=function(e){return-new Date(e).getTimezoneOffset()},n.equals=function(e){return"local"===e.type},_createClass(t,[{key:"type",get:function(){return"local"}},{key:"name",get:function(){return hasIntl()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return singleton=null===singleton?new t:singleton}}]),t}(Zone),matchingRegex=RegExp("^"+ianaRegex.source+"$"),dtfCache={};function makeDTF(e){return dtfCache[e]||(dtfCache[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),dtfCache[e]}var typeToPos={year:0,month:1,day:2,hour:3,minute:4,second:5};function hackyOffset(e,t){var e=e.format(t).replace(/\u200E/g,""),t=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(e),e=t[1],n=t[2];return[t[3],e,n,t[4],t[5],t[6]]}function partsOffset(e,t){for(var n=e.formatToParts(t),r=[],i=0;i<n.length;i++){var o=n[i],a=o.type,o=o.value,a=typeToPos[a];isUndefined(a)||(r[a]=parseInt(o,10))}return r}var ianaZoneCache={},IANAZone=function(n){function r(e){var t=n.call(this)||this;return t.zoneName=e,t.valid=r.isValidZone(e),t}_inheritsLoose(r,n),r.create=function(e){return ianaZoneCache[e]||(ianaZoneCache[e]=new r(e)),ianaZoneCache[e]},r.resetCache=function(){ianaZoneCache={},dtfCache={}},r.isValidSpecifier=function(e){return!(!e||!e.match(matchingRegex))},r.isValidZone=function(e){try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}},r.parseGMTOffset=function(e){if(e){e=e.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);if(e)return-60*parseInt(e[1])}return null};var e=r.prototype;return e.offsetName=function(e,t){return parseZoneInfo(e,t.format,t.locale,this.name)},e.formatOffset=function(e,t){return formatOffset(this.offset(e),t)},e.offset=function(e){var t,n,r,e=new Date(e);return isNaN(e)?NaN:(r=(n=+e)%1e3,(objToLocalTS({year:(t=((t=makeDTF(this.name)).formatToParts?partsOffset:hackyOffset)(t,e))[0],month:t[1],day:t[2],hour:24===(e=t[3])?0:e,minute:t[4],second:t[5],millisecond:0})-(n-=0<=r?r:1e3+r))/6e4)},e.equals=function(e){return"iana"===e.type&&e.name===this.name},_createClass(r,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),r}(Zone),singleton$1=null,FixedOffsetZone=function(n){function t(e){var t=n.call(this)||this;return t.fixed=e,t}_inheritsLoose(t,n),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){e=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new t(signedOffset(e[1],e[2]))}return null},_createClass(t,null,[{key:"utcInstance",get:function(){return singleton$1=null===singleton$1?new t(0):singleton$1}}]);var e=t.prototype;return e.offsetName=function(){return this.name},e.formatOffset=function(e,t){return formatOffset(this.fixed,t)},e.offset=function(){return this.fixed},e.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},_createClass(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+formatOffset(this.fixed,"narrow")}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),t}(Zone),InvalidZone=function(n){function e(e){var t=n.call(this)||this;return t.zoneName=e,t}_inheritsLoose(e,n);var t=e.prototype;return t.offsetName=function(){return null},t.formatOffset=function(){return""},t.offset=function(){return NaN},t.equals=function(){return!1},_createClass(e,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),e}(Zone);function normalizeZone(e,t){var n;return isUndefined(e)||null===e?t:e instanceof Zone?e:isString(e)?"local"===(n=e.toLowerCase())?t:"utc"===n||"gmt"===n?FixedOffsetZone.utcInstance:null!=(t=IANAZone.parseGMTOffset(e))?FixedOffsetZone.instance(t):IANAZone.isValidSpecifier(n)?IANAZone.create(e):FixedOffsetZone.parseSpecifier(n)||new InvalidZone(e):isNumber(e)?FixedOffsetZone.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new InvalidZone(e)}var now=function(){return Date.now()},defaultZone=null,defaultLocale$1=null,defaultNumberingSystem=null,defaultOutputCalendar=null,throwOnInvalid=!1,Settings=function(){function e(){}return e.resetCaches=function(){Locale.resetCache(),IANAZone.resetCache()},_createClass(e,null,[{key:"now",get:function(){return now},set:function(e){now=e}},{key:"defaultZoneName",get:function(){return e.defaultZone.name},set:function(e){defaultZone=e?normalizeZone(e):null}},{key:"defaultZone",get:function(){return defaultZone||LocalZone.instance}},{key:"defaultLocale",get:function(){return defaultLocale$1},set:function(e){defaultLocale$1=e}},{key:"defaultNumberingSystem",get:function(){return defaultNumberingSystem},set:function(e){defaultNumberingSystem=e}},{key:"defaultOutputCalendar",get:function(){return defaultOutputCalendar},set:function(e){defaultOutputCalendar=e}},{key:"throwOnInvalid",get:function(){return throwOnInvalid},set:function(e){throwOnInvalid=e}}]),e}(),intlDTCache={};function getCachedDTF(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=intlDTCache[n];return r||(r=new Intl.DateTimeFormat(e,t),intlDTCache[n]=r),r}var intlNumCache={};function getCachedINF(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=intlNumCache[n];return r||(r=new Intl.NumberFormat(e,t),intlNumCache[n]=r),r}var intlRelCache={};function getCachedRTF(e,t){var n=t=void 0===t?{}:t,n=(n.base,_objectWithoutPropertiesLoose(n,["base"])),n=JSON.stringify([e,n]),r=intlRelCache[n];return r||(r=new Intl.RelativeTimeFormat(e,t),intlRelCache[n]=r),r}var sysLocaleCache=null;function systemLocale(){var e;return sysLocaleCache=sysLocaleCache||(hasIntl()&&(e=(new Intl.DateTimeFormat).resolvedOptions().locale)&&"und"!==e?e:"en-US")}function parseLocaleString(e){var t=e.indexOf("-u-");if(-1===t)return[e];var n,t=e.substring(0,t);try{n=getCachedDTF(e).resolvedOptions()}catch(e){n=getCachedDTF(t).resolvedOptions()}e=n;return[t,e.numberingSystem,e.calendar]}function intlConfigString(e,t,n){return hasIntl()?((n||t)&&(e+="-u",n&&(e+="-ca-"+n),t)&&(e+="-nu-"+t),e):[]}function mapMonths(e){for(var t=[],n=1;n<=12;n++){var r=DateTime.utc(2016,n,1);t.push(e(r))}return t}function mapWeekdays(e){for(var t=[],n=1;n<=7;n++){var r=DateTime.utc(2016,11,13+n);t.push(e(r))}return t}function listStuff(e,t,n,r,i){e=e.listingMode(n);return"error"===e?null:("en"===e?r:i)(t)}function supportsFastNumbers(e){return(!e.numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||hasIntl()&&"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)}var PolyNumberFormatter=function(){function e(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1,!t&&hasIntl()&&(t={useGrouping:!1},0<n.padTo&&(t.minimumIntegerDigits=n.padTo),this.inf=getCachedINF(e,t))}return e.prototype.format=function(e){var t;return this.inf?(t=this.floor?Math.floor(e):e,this.inf.format(t)):padStart(this.floor?Math.floor(e):roundTo(e,3),this.padTo)},e}(),PolyDateFormatter=function(){function e(e,t,n){var r,i,o;this.opts=n,this.hasIntl=hasIntl(),e.zone.universal&&this.hasIntl?(i=e.offset/60*-1,o=IANAZone.isValidZone(i=0<=i?"Etc/GMT+"+i:"Etc/GMT"+i),0!==e.offset&&o?(r=i,this.dt=e):(r="UTC",n.timeZoneName?this.dt=e:this.dt=0===e.offset?e:DateTime.fromMillis(e.ts+60*e.offset*1e3))):"local"===e.zone.type?this.dt=e:r=(this.dt=e).zone.name,this.hasIntl&&(o=Object.assign({},this.opts),r&&(o.timeZone=r),this.dtf=getCachedDTF(t,o))}var t=e.prototype;return t.format=function(){var e,t;return this.hasIntl?this.dtf.format(this.dt.toJSDate()):(e=formatString(this.opts),t=Locale.create("en-US"),Formatter.create(t).formatDateTimeFromString(this.dt,e))},t.formatToParts=function(){return this.hasIntl&&hasFormatToParts()?this.dtf.formatToParts(this.dt.toJSDate()):[]},t.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},e}(),PolyRelFormatter=function(){function e(e,t,n){this.opts=Object.assign({style:"long"},n),!t&&hasRelative()&&(this.rtf=getCachedRTF(e,n))}var t=e.prototype;return t.format=function(e,t){return this.rtf?this.rtf.format(e,t):formatRelativeTime(t,e,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e}(),Locale=function(){function i(e,t,n,r){var e=parseLocaleString(e),i=e[0],o=e[1],e=e[2];this.locale=i,this.numberingSystem=t||o||null,this.outputCalendar=n||e||null,this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}i.fromOpts=function(e){return i.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)},i.create=function(e,t,n,r){void 0===r&&(r=!1);e=e||Settings.defaultLocale;return new i(e||(r?"en-US":systemLocale()),t||Settings.defaultNumberingSystem,n||Settings.defaultOutputCalendar,e)},i.resetCache=function(){sysLocaleCache=null,intlDTCache={},intlNumCache={},intlRelCache={}},i.fromObject=function(e){var e=void 0===e?{}:e,t=e.locale,n=e.numberingSystem,e=e.outputCalendar;return i.create(t,n,e)};var e=i.prototype;return e.listingMode=function(e){void 0===e&&(e=!0);var t=hasIntl()&&hasFormatToParts(),n=this.isEnglish(),r=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t||n&&r||e?!t||n&&r?"en":"intl":"error"},e.clone=function(e){return e&&0!==Object.getOwnPropertyNames(e).length?i.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this},e.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!0}))},e.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!1}))},e.months=function(n,r,e){var i=this;return void 0===r&&(r=!1),listStuff(this,n,e=void 0===e?!0:e,months,function(){var t=r?{month:n,day:"numeric"}:{month:n},e=r?"format":"standalone";return i.monthsCache[e][n]||(i.monthsCache[e][n]=mapMonths(function(e){return i.extract(e,t,"month")})),i.monthsCache[e][n]})},e.weekdays=function(n,r,e){var i=this;return void 0===r&&(r=!1),listStuff(this,n,e=void 0===e?!0:e,weekdays,function(){var t=r?{weekday:n,year:"numeric",month:"long",day:"numeric"}:{weekday:n},e=r?"format":"standalone";return i.weekdaysCache[e][n]||(i.weekdaysCache[e][n]=mapWeekdays(function(e){return i.extract(e,t,"weekday")})),i.weekdaysCache[e][n]})},e.meridiems=function(e){var n=this;return listStuff(this,void 0,e=void 0===e?!0:e,function(){return meridiems},function(){var t;return n.meridiemCache||(t={hour:"numeric",hour12:!0},n.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map(function(e){return n.extract(e,t,"dayperiod")})),n.meridiemCache})},e.eras=function(e,t){var n=this;return listStuff(this,e,t=void 0===t?!0:t,eras,function(){var t={era:e};return n.eraCache[e]||(n.eraCache[e]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map(function(e){return n.extract(e,t,"era")})),n.eraCache[e]})},e.extract=function(e,t,n){e=this.dtFormatter(e,t).formatToParts().find(function(e){return e.type.toLowerCase()===n});return e?e.value:null},e.numberFormatter=function(e){return new PolyNumberFormatter(this.intl,(e=void 0===e?{}:e).forceSimple||this.fastNumbers,e)},e.dtFormatter=function(e,t){return new PolyDateFormatter(e,this.intl,t=void 0===t?{}:t)},e.relFormatter=function(e){return void 0===e&&(e={}),new PolyRelFormatter(this.intl,this.isEnglish(),e)},e.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||hasIntl()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},e.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},_createClass(i,[{key:"fastNumbers",get:function(){return null==this.fastNumbersCached&&(this.fastNumbersCached=supportsFastNumbers(this)),this.fastNumbersCached}}]),i}();function combineRegexes(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce(function(e,t){return e+t.source},"");return RegExp("^"+r+"$")}function combineExtractors(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(o){return t.reduce(function(e,t){var n=e[0],r=e[1],e=e[2],t=t(o,e),e=t[0],i=t[1],t=t[2];return[Object.assign(n,e),r||i,t]},[{},null,1]).slice(0,2)}}function parse(e){if(null!=e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i],s=a[0],a=a[1],s=s.exec(e);if(s)return a(s)}}return[null,null]}function simpleParse(){for(var e=arguments.length,i=new Array(e),t=0;t<e;t++)i[t]=arguments[t];return function(e,t){for(var n={},r=0;r<i.length;r++)n[i[r]]=parseInteger(e[t+r]);return[n,null,t+r]}}var offsetRegex=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,isoTimeBaseRegex=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex=RegExp(""+isoTimeBaseRegex.source+offsetRegex.source+"?"),isoTimeExtensionRegex=RegExp("(?:T"+isoTimeRegex.source+")?"),isoYmdRegex=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex=/(\d{4})-?(\d{3})/,extractISOWeekData=simpleParse("weekYear","weekNumber","weekDay"),extractISOOrdinalData=simpleParse("year","ordinal"),sqlYmdRegex=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex=RegExp(isoTimeBaseRegex.source+" ?(?:"+offsetRegex.source+"|("+ianaRegex.source+"))?"),sqlTimeExtensionRegex=RegExp("(?: "+sqlTimeRegex.source+")?");function int(e,t,n){e=e[t];return isUndefined(e)?n:parseInteger(e)}function extractISOYmd(e,t){return[{year:int(e,t),month:int(e,t+1,1),day:int(e,t+2,1)},null,t+3]}function extractISOTime(e,t){return[{hours:int(e,t,0),minutes:int(e,t+1,0),seconds:int(e,t+2,0),milliseconds:parseMillis(e[t+3])},null,t+4]}function extractISOOffset(e,t){var n=!e[t]&&!e[t+1],e=signedOffset(e[t+1],e[t+2]);return[{},n?null:FixedOffsetZone.instance(e),t+3]}function extractIANAZone(e,t){return[{},e[t]?IANAZone.create(e[t]):null,t+1]}var isoTimeOnly=RegExp("^T?"+isoTimeBaseRegex.source+"$"),isoDuration=/^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function extractISODuration(e){function t(e,t){return void 0===t&&(t=!1),void 0!==e&&(t||e&&u)?-e:e}var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],e=e[8],u="-"===n[0],n=c&&"-"===c[0];return[{years:t(parseInteger(r)),months:t(parseInteger(i)),weeks:t(parseInteger(o)),days:t(parseInteger(a)),hours:t(parseInteger(s)),minutes:t(parseInteger(l)),seconds:t(parseInteger(c),"-0"===c),milliseconds:t(parseMillis(e),n)}]}var obsOffsets={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function fromStrings(e,t,n,r,i,o,a){t={year:2===t.length?untruncateYear(parseInteger(t)):parseInteger(t),month:monthsShort.indexOf(n)+1,day:parseInteger(r),hour:parseInteger(i),minute:parseInteger(o)};return a&&(t.second=parseInteger(a)),e&&(t.weekday=3<e.length?weekdaysLong.indexOf(e)+1:weekdaysShort.indexOf(e)+1),t}var rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(e){var t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6],s=e[7],l=e[8],c=e[9],u=e[10],e=e[11],t=fromStrings(t,i,r,n,o,a,s),i=l?obsOffsets[l]:c?0:signedOffset(u,e);return[t,new FixedOffsetZone(i)]}function preprocessRFC2822(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var rfc1123=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,rfc850=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ascii=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(e){var t=e[1],n=e[2],r=e[3];return[fromStrings(t,e[4],r,n,e[5],e[6],e[7]),FixedOffsetZone.utcInstance]}function extractASCII(e){var t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6];return[fromStrings(t,e[7],n,r,i,o,a),FixedOffsetZone.utcInstance]}var isoYmdWithTimeExtensionRegex=combineRegexes(isoYmdRegex,isoTimeExtensionRegex),isoWeekWithTimeExtensionRegex=combineRegexes(isoWeekRegex,isoTimeExtensionRegex),isoOrdinalWithTimeExtensionRegex=combineRegexes(isoOrdinalRegex,isoTimeExtensionRegex),isoTimeCombinedRegex=combineRegexes(isoTimeRegex),extractISOYmdTimeAndOffset=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset),extractISOWeekTimeAndOffset=combineExtractors(extractISOWeekData,extractISOTime,extractISOOffset),extractISOOrdinalDateAndTime=combineExtractors(extractISOOrdinalData,extractISOTime,extractISOOffset),extractISOTimeAndOffset=combineExtractors(extractISOTime,extractISOOffset);function parseISODate(e){return parse(e,[isoYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[isoWeekWithTimeExtensionRegex,extractISOWeekTimeAndOffset],[isoOrdinalWithTimeExtensionRegex,extractISOOrdinalDateAndTime],[isoTimeCombinedRegex,extractISOTimeAndOffset])}function parseRFC2822Date(e){return parse(preprocessRFC2822(e),[rfc2822,extractRFC2822])}function parseHTTPDate(e){return parse(e,[rfc1123,extractRFC1123Or850],[rfc850,extractRFC1123Or850],[ascii,extractASCII])}function parseISODuration(e){return parse(e,[isoDuration,extractISODuration])}var extractISOTimeOnly=combineExtractors(extractISOTime);function parseISOTimeOnly(e){return parse(e,[isoTimeOnly,extractISOTimeOnly])}var sqlYmdWithTimeExtensionRegex=combineRegexes(sqlYmdRegex,sqlTimeExtensionRegex),sqlTimeCombinedRegex=combineRegexes(sqlTimeRegex),extractISOYmdTimeOffsetAndIANAZone=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone),extractISOTimeOffsetAndIANAZone=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(e){return parse(e,[sqlYmdWithTimeExtensionRegex,extractISOYmdTimeOffsetAndIANAZone],[sqlTimeCombinedRegex,extractISOTimeOffsetAndIANAZone])}var INVALID="Invalid Duration",lowOrderMatrix={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},casualMatrix=Object.assign({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},lowOrderMatrix),daysInYearAccurate=365.2425,daysInMonthAccurate=30.436875,accurateMatrix=Object.assign({years:{quarters:4,months:12,weeks:daysInYearAccurate/7,days:daysInYearAccurate,hours:24*daysInYearAccurate,minutes:24*daysInYearAccurate*60,seconds:24*daysInYearAccurate*60*60,milliseconds:24*daysInYearAccurate*60*60*1e3},quarters:{months:3,weeks:daysInYearAccurate/28,days:daysInYearAccurate/4,hours:24*daysInYearAccurate/4,minutes:24*daysInYearAccurate*60/4,seconds:24*daysInYearAccurate*60*60/4,milliseconds:24*daysInYearAccurate*60*60*1e3/4},months:{weeks:daysInMonthAccurate/7,days:daysInMonthAccurate,hours:24*daysInMonthAccurate,minutes:24*daysInMonthAccurate*60,seconds:24*daysInMonthAccurate*60*60,milliseconds:24*daysInMonthAccurate*60*60*1e3}},lowOrderMatrix),orderedUnits=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],reverseUnits=orderedUnits.slice(0).reverse();function clone(e,t,n){n={values:(n=void 0===n?!1:n)?t.values:Object.assign({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new Duration(n)}function antiTrunc(e){return e<0?Math.floor(e):Math.ceil(e)}function convert(e,t,n,r,i){var e=e[i][n],o=t[n]/e,o=!(Math.sign(o)===Math.sign(r[i]))&&0!==r[i]&&Math.abs(o)<=1?antiTrunc(o):Math.trunc(o);r[i]+=o,t[n]-=o*e}function normalizeValues(n,r){reverseUnits.reduce(function(e,t){return isUndefined(r[t])?e:(e&&convert(n,r,e,r,t),t)},null)}var Duration=function(){function h(e){var t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||Locale.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?accurateMatrix:casualMatrix,this.isLuxonDuration=!0}h.fromMillis=function(e,t){return h.fromObject(Object.assign({milliseconds:e},t))},h.fromObject=function(e){if(null==e||"object"!=typeof e)throw new InvalidArgumentError("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new h({values:normalizeObject(e,h.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:Locale.fromObject(e),conversionAccuracy:e.conversionAccuracy})},h.fromISO=function(e,t){var n=parseISODuration(e)[0];return n?(n=Object.assign(n,t),h.fromObject(n)):h.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},h.fromISOTime=function(e,t){var n=parseISOTimeOnly(e)[0];return n?(n=Object.assign(n,t),h.fromObject(n)):h.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},h.invalid=function(e,t){if(void 0===t&&(t=null),!e)throw new InvalidArgumentError("need to specify a reason the Duration is invalid");e=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid)throw new InvalidDurationError(e);return new h({invalid:e})},h.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(t)return t;throw new InvalidUnitError(e)},h.isDuration=function(e){return e&&e.isLuxonDuration||!1};var e=h.prototype;return e.toFormat=function(e,t){void 0===t&&(t={});t=Object.assign({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?Formatter.create(this.loc,t).formatDurationFromString(this,e):INVALID},e.toObject=function(e){var t;return void 0===e&&(e={}),this.isValid?(t=Object.assign({},this.values),e.includeConfig&&(t.conversionAccuracy=this.conversionAccuracy,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t):{}},e.toISO=function(){var e;return this.isValid?(e="P",0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e):null},e.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var t=this.toMillis();if(t<0||864e5<=t)return null;e=Object.assign({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e);var t=this.shiftTo("hours","minutes","seconds","milliseconds"),n="basic"===e.format?"hhmm":"hh:mm",t=(e.suppressSeconds&&0===t.seconds&&0===t.milliseconds||(n+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===t.milliseconds)||(n+=".SSS"),t.toFormat(n));return t=e.includePrefix?"T"+t:t},e.toJSON=function(){return this.toISO()},e.toString=function(){return this.toISO()},e.toMillis=function(){return this.as("milliseconds")},e.valueOf=function(){return this.toMillis()},e.plus=function(e){if(!this.isValid)return this;for(var t=friendlyDuration(e),n={},r=_createForOfIteratorHelperLoose(orderedUnits);!(i=r()).done;){var i=i.value;(hasOwnProperty$1(t.values,i)||hasOwnProperty$1(this.values,i))&&(n[i]=t.get(i)+this.get(i))}return clone(this,{values:n},!0)},e.minus=function(e){return this.isValid?(e=friendlyDuration(e),this.plus(e.negate())):this},e.mapUnits=function(e){if(!this.isValid)return this;for(var t={},n=0,r=Object.keys(this.values);n<r.length;n++){var i=r[n];t[i]=asNumber(e(this.values[i],i))}return clone(this,{values:t},!0)},e.get=function(e){return this[h.normalizeUnit(e)]},e.set=function(e){return this.isValid?clone(this,{values:Object.assign(this.values,normalizeObject(e,h.normalizeUnit,[]))}):this},e.reconfigure=function(e){var e=void 0===e?{}:e,t=e.locale,n=e.numberingSystem,e=e.conversionAccuracy,t={loc:this.loc.clone({locale:t,numberingSystem:n})};return e&&(t.conversionAccuracy=e),clone(this,t)},e.as=function(e){return this.isValid?this.shiftTo(e).get(e):NaN},e.normalize=function(){var e;return this.isValid?(e=this.toObject(),normalizeValues(this.matrix,e),clone(this,{values:e},!0)):this},e.shiftTo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!this.isValid)return this;if(0===t.length)return this;for(var r,t=t.map(function(e){return h.normalizeUnit(e)}),i={},o={},a=this.toObject(),s=_createForOfIteratorHelperLoose(orderedUnits);!(f=s()).done;){var l=f.value;if(0<=t.indexOf(l)){var c,u=l,d=0;for(c in o)d+=this.matrix[c][l]*o[c],o[c]=0;isNumber(a[l])&&(d+=a[l]);var p,f=Math.trunc(d);for(p in o[l]=d-(i[l]=f),a)orderedUnits.indexOf(p)>orderedUnits.indexOf(l)&&convert(this.matrix,a,p,i,l)}else isNumber(a[l])&&(o[l]=a[l])}for(r in o)0!==o[r]&&(i[u]+=r===u?o[r]:o[r]/this.matrix[u][r]);return clone(this,{values:i},!0).normalize()},e.negate=function(){if(!this.isValid)return this;for(var e={},t=0,n=Object.keys(this.values);t<n.length;t++){var r=n[t];e[r]=-this.values[r]}return clone(this,{values:e},!0)},e.equals=function(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(var t,n=_createForOfIteratorHelperLoose(orderedUnits);!(r=n()).done;){var r=r.value;if(t=this.values[r],r=e.values[r],!(void 0===t||0===t?void 0===r||0===r:t===r))return!1}return!0},_createClass(h,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),h}();function friendlyDuration(e){if(isNumber(e))return Duration.fromMillis(e);if(Duration.isDuration(e))return e;if("object"==typeof e)return Duration.fromObject(e);throw new InvalidArgumentError("Unknown duration argument "+e+" of type "+typeof e)}var INVALID$1="Invalid Interval";function validateStartEnd(e,t){return e&&e.isValid?t&&t.isValid?t<e?Interval.invalid("end before start","The end of an interval must be after its start, but you had start="+e.toISO()+" and end="+t.toISO()):null:Interval.invalid("missing or invalid end"):Interval.invalid("missing or invalid start")}var Interval=function(){function c(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}c.invalid=function(e,t){if(void 0===t&&(t=null),!e)throw new InvalidArgumentError("need to specify a reason the Interval is invalid");e=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid)throw new InvalidIntervalError(e);return new c({invalid:e})},c.fromDateTimes=function(e,t){var e=friendlyDateTime(e),t=friendlyDateTime(t),n=validateStartEnd(e,t);return null==n?new c({start:e,end:t}):n},c.after=function(e,t){t=friendlyDuration(t),e=friendlyDateTime(e);return c.fromDateTimes(e,e.plus(t))},c.before=function(e,t){t=friendlyDuration(t),e=friendlyDateTime(e);return c.fromDateTimes(e.minus(t),e)},c.fromISO=function(e,t){var n,r,i,o=(e||"").split("/",2),a=o[0],s=o[1];if(a&&s){try{l=(n=DateTime.fromISO(a,t)).isValid}catch(s){l=!1}try{i=(r=DateTime.fromISO(s,t)).isValid}catch(s){i=!1}if(l&&i)return c.fromDateTimes(n,r);if(l){o=Duration.fromISO(s,t);if(o.isValid)return c.after(n,o)}else if(i){var l=Duration.fromISO(a,t);if(l.isValid)return c.before(r,l)}}return c.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},c.isInterval=function(e){return e&&e.isLuxonInterval||!1};var e=c.prototype;return e.length=function(e){return void 0===e&&(e="milliseconds"),this.isValid?this.toDuration.apply(this,[e]).get(e):NaN},e.count=function(e){var t,n;return void 0===e&&(e="milliseconds"),this.isValid?(t=this.start.startOf(e),n=this.end.startOf(e),Math.floor(n.diff(t,e).get(e))+1):NaN},e.hasSame=function(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))},e.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},e.isAfter=function(e){return!!this.isValid&&this.s>e},e.isBefore=function(e){return!!this.isValid&&this.e<=e},e.contains=function(e){return!!this.isValid&&this.s<=e&&this.e>e},e.set=function(e){var e=void 0===e?{}:e,t=e.start,e=e.end;return this.isValid?c.fromDateTimes(t||this.s,e||this.e):this},e.splitAt=function(){var t=this;if(!this.isValid)return[];for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var i=n.map(friendlyDateTime).filter(function(e){return t.contains(e)}).sort(),o=[],a=this.s,s=0;a<this.e;){var l=i[s]||this.e,l=+l>+this.e?this.e:l;o.push(c.fromDateTimes(a,l)),a=l,s+=1}return o},e.splitBy=function(e){var t=friendlyDuration(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];for(var n=this.s,r=1,i=[];n<this.e;){var o=this.start.plus(t.mapUnits(function(e){return e*r})),o=+o>+this.e?this.e:o;i.push(c.fromDateTimes(n,o)),n=o,r+=1}return i},e.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},e.overlaps=function(e){return this.e>e.s&&this.s<e.e},e.abutsStart=function(e){return!!this.isValid&&+this.e==+e.s},e.abutsEnd=function(e){return!!this.isValid&&+e.e==+this.s},e.engulfs=function(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e},e.equals=function(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)},e.intersection=function(e){var t;return this.isValid?(t=(this.s>e.s?this:e).s,(e=(this.e<e.e?this:e).e)<=t?null:c.fromDateTimes(t,e)):this},e.union=function(e){var t;return this.isValid?(t=(this.s<e.s?this:e).s,e=(this.e>e.e?this:e).e,c.fromDateTimes(t,e)):this},c.merge=function(e){var e=e.sort(function(e,t){return e.s-t.s}).reduce(function(e,t){var n=e[0],e=e[1];return e?e.overlaps(t)||e.abutsStart(t)?[n,e.union(t)]:[n.concat([e]),t]:[n,t]},[[],null]),t=e[0],e=e[1];return e&&t.push(e),t},c.xor=function(e){for(var t,n=null,r=0,i=[],e=e.map(function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]}),o=_createForOfIteratorHelperLoose((t=Array.prototype).concat.apply(t,e).sort(function(e,t){return e.time-t.time}));!(a=o()).done;)var a=a.value,n=1===(r+="s"===a.type?1:-1)?a.time:(n&&+n!=+a.time&&i.push(c.fromDateTimes(n,a.time)),null);return c.merge(i)},e.difference=function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return c.xor([this].concat(n)).map(function(e){return t.intersection(e)}).filter(function(e){return e&&!e.isEmpty()})},e.toString=function(){return this.isValid?"["+this.s.toISO()+" – "+this.e.toISO()+")":INVALID$1},e.toISO=function(e){return this.isValid?this.s.toISO(e)+"/"+this.e.toISO(e):INVALID$1},e.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():INVALID$1},e.toISOTime=function(e){return this.isValid?this.s.toISOTime(e)+"/"+this.e.toISOTime(e):INVALID$1},e.toFormat=function(e,t){t=(void 0===t?{}:t).separator,t=void 0===t?" – ":t;return this.isValid?""+this.s.toFormat(e)+t+this.e.toFormat(e):INVALID$1},e.toDuration=function(e,t){return this.isValid?this.e.diff(this.s,e,t):Duration.invalid(this.invalidReason)},e.mapEndpoints=function(e){return c.fromDateTimes(e(this.s),e(this.e))},_createClass(c,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),c}(),Info=function(){function e(){}return e.hasDST=function(e){void 0===e&&(e=Settings.defaultZone);var t=DateTime.now().setZone(e).set({month:12});return!e.universal&&t.offset!==t.set({month:6}).offset},e.isValidIANAZone=function(e){return IANAZone.isValidSpecifier(e)&&IANAZone.isValidZone(e)},e.normalizeZone=function(e){return normalizeZone(e,Settings.defaultZone)},e.months=function(e,t){void 0===e&&(e="long");var t=void 0===t?{}:t,n=t.locale,r=t.numberingSystem,i=t.locObj,i=void 0===i?null:i,t=t.outputCalendar;return(i||Locale.create(void 0===n?null:n,void 0===r?null:r,void 0===t?"gregory":t)).months(e)},e.monthsFormat=function(e,t){void 0===e&&(e="long");var t=void 0===t?{}:t,n=t.locale,r=t.numberingSystem,i=t.locObj,i=void 0===i?null:i,t=t.outputCalendar;return(i||Locale.create(void 0===n?null:n,void 0===r?null:r,void 0===t?"gregory":t)).months(e,!0)},e.weekdays=function(e,t){void 0===e&&(e="long");var t=void 0===t?{}:t,n=t.locale,r=t.numberingSystem,t=t.locObj;return((void 0===t?null:t)||Locale.create(void 0===n?null:n,void 0===r?null:r,null)).weekdays(e)},e.weekdaysFormat=function(e,t){void 0===e&&(e="long");var t=void 0===t?{}:t,n=t.locale,r=t.numberingSystem,t=t.locObj;return((void 0===t?null:t)||Locale.create(void 0===n?null:n,void 0===r?null:r,null)).weekdays(e,!0)},e.meridiems=function(e){e=(void 0===e?{}:e).locale;return Locale.create(void 0===e?null:e).meridiems()},e.eras=function(e,t){void 0===e&&(e="short");t=(void 0===t?{}:t).locale;return Locale.create(void 0===t?null:t,null,"gregory").eras(e)},e.features=function(){var e=!1,t=!1,n=!1,r=!1;if(hasIntl()){e=!0,t=hasFormatToParts(),r=hasRelative();try{n="America/New_York"===new Intl.DateTimeFormat("en",{timeZone:"America/New_York"}).resolvedOptions().timeZone}catch(e){n=!1}}return{intl:e,intlTokens:t,zones:n,relative:r}},e}();function dayDiff(e,t){function n(e){return e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()}t=n(t)-n(e);return Math.floor(Duration.fromMillis(t).as("days"))}function highOrderDiffs(e,t,n){for(var r={},i=0,o=[["years",function(e,t){return t.year-e.year}],["quarters",function(e,t){return t.quarter-e.quarter}],["months",function(e,t){return t.month-e.month+12*(t.year-e.year)}],["weeks",function(e,t){e=dayDiff(e,t);return(e-e%7)/7}],["days",dayDiff]];i<o.length;i++){var a,s,l,c=o[i],u=c[0],c=c[1];0<=n.indexOf(u)&&(a=u,c=c(e,t),t<(l=e.plus(((s={})[u]=c,s)))?(e=e.plus(((s={})[u]=c-1,s)),--c):e=l,r[u]=c)}return[e,r,l,a]}function _diff(e,t,n,r){var e=highOrderDiffs(e,t,n),i=e[0],o=e[1],a=e[2],e=e[3],s=t-i,n=n.filter(function(e){return 0<=["hours","minutes","seconds","milliseconds"].indexOf(e)}),t=(0===n.length&&(a=a<t?i.plus(((t={})[e]=1,t)):a)!==i&&(o[e]=(o[e]||0)+s/(a-i)),Duration.fromObject(Object.assign(o,r)));return 0<n.length?(e=Duration.fromMillis(s,r)).shiftTo.apply(e,n).plus(t):t}var numberingSystems={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},numberingSystemsUTF16={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},hanidecChars=numberingSystems.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(e){var t=parseInt(e,10);if(isNaN(t)){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);if(-1!==e[n].search(numberingSystems.hanidec))t+=hanidecChars.indexOf(e[n]);else for(var i in numberingSystemsUTF16){var i=numberingSystemsUTF16[i],o=i[0],i=i[1];o<=r&&r<=i&&(t+=r-o)}}return parseInt(t,10)}return t}function digitRegex(e,t){e=e.numberingSystem;return void 0===t&&(t=""),new RegExp(""+numberingSystems[e||"latn"]+t)}var MISSING_FTP="missing Intl.DateTimeFormat.formatToParts support";function intUnit(e,t){return void 0===t&&(t=function(e){return e}),{regex:e,deser:function(e){e=e[0];return t(parseDigits(e))}}}var NBSP=String.fromCharCode(160),spaceOrNBSP="( |"+NBSP+")",spaceOrNBSPRegExp=new RegExp(spaceOrNBSP,"g");function fixListRegex(e){return e.replace(/\./g,"\\.?").replace(spaceOrNBSPRegExp,spaceOrNBSP)}function stripInsensitivities(e){return e.replace(/\./g,"").replace(spaceOrNBSPRegExp," ").toLowerCase()}function oneOf(n,r){return null===n?null:{regex:RegExp(n.map(fixListRegex).join("|")),deser:function(e){var t=e[0];return n.findIndex(function(e){return stripInsensitivities(t)===stripInsensitivities(e)})+r}}}function offset(e,t){return{regex:e,deser:function(e){return signedOffset(e[1],e[2])},groups:t}}function simple(e){return{regex:e,deser:function(e){return e[0]}}}function escapeToken(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(t,n){function r(e){return{regex:RegExp(escapeToken(e.val)),deser:function(e){return e[0]},literal:!0}}var i=digitRegex(n),o=digitRegex(n,"{2}"),a=digitRegex(n,"{3}"),s=digitRegex(n,"{4}"),l=digitRegex(n,"{6}"),c=digitRegex(n,"{1,2}"),u=digitRegex(n,"{1,3}"),d=digitRegex(n,"{1,6}"),p=digitRegex(n,"{1,9}"),f=digitRegex(n,"{2,4}"),h=digitRegex(n,"{4,6}"),e=function(e){if(t.literal)return r(e);switch(e.val){case"G":return oneOf(n.eras("short",!1),0);case"GG":return oneOf(n.eras("long",!1),0);case"y":return intUnit(d);case"yy":return intUnit(f,untruncateYear);case"yyyy":return intUnit(s);case"yyyyy":return intUnit(h);case"yyyyyy":return intUnit(l);case"M":return intUnit(c);case"MM":return intUnit(o);case"MMM":return oneOf(n.months("short",!0,!1),1);case"MMMM":return oneOf(n.months("long",!0,!1),1);case"L":return intUnit(c);case"LL":return intUnit(o);case"LLL":return oneOf(n.months("short",!1,!1),1);case"LLLL":return oneOf(n.months("long",!1,!1),1);case"d":return intUnit(c);case"dd":return intUnit(o);case"o":return intUnit(u);case"ooo":return intUnit(a);case"HH":return intUnit(o);case"H":return intUnit(c);case"hh":return intUnit(o);case"h":return intUnit(c);case"mm":return intUnit(o);case"m":case"q":return intUnit(c);case"qq":return intUnit(o);case"s":return intUnit(c);case"ss":return intUnit(o);case"S":return intUnit(u);case"SSS":return intUnit(a);case"u":return simple(p);case"a":return oneOf(n.meridiems(),0);case"kkkk":return intUnit(s);case"kk":return intUnit(f,untruncateYear);case"W":return intUnit(c);case"WW":return intUnit(o);case"E":case"c":return intUnit(i);case"EEE":return oneOf(n.weekdays("short",!1,!1),1);case"EEEE":return oneOf(n.weekdays("long",!1,!1),1);case"ccc":return oneOf(n.weekdays("short",!0,!1),1);case"cccc":return oneOf(n.weekdays("long",!0,!1),1);case"Z":case"ZZ":return offset(new RegExp("([+-]"+c.source+")(?::("+o.source+"))?"),2);case"ZZZ":return offset(new RegExp("([+-]"+c.source+")("+o.source+")?"),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);default:return r(e)}}(t)||{invalidReason:MISSING_FTP};return e.token=t,e}var partTypeStyleToTokenVal={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function tokenForPart(e,t,n){var r=e.type,e=e.value;return"literal"===r?{literal:!0,val:e}:(e=n[r],(n="object"==typeof(n=partTypeStyleToTokenVal[r])?n[e]:n)?{literal:!1,val:n}:void 0)}function buildRegex(e){return["^"+e.map(function(e){return e.regex}).reduce(function(e,t){return e+"("+t.source+")"},"")+"$",e]}function match$1(e,t,n){var r=e.match(t);if(r){var i,o,a,s={},l=1;for(i in n)hasOwnProperty$1(n,i)&&(a=(o=n[i]).groups?o.groups+1:1,!o.literal&&o.token&&(s[o.token.val[0]]=o.deser(r.slice(l,l+a))),l+=a);return[r,s]}return[r,{}]}function dateTimeFromMatches(r){var e=isUndefined(r.Z)?isUndefined(r.z)?null:IANAZone.create(r.z):new FixedOffsetZone(r.Z);return isUndefined(r.q)||(r.M=3*(r.q-1)+1),isUndefined(r.h)||(r.h<12&&1===r.a?r.h+=12:12===r.h&&0===r.a&&(r.h=0)),0===r.G&&r.y&&(r.y=-r.y),isUndefined(r.u)||(r.S=parseMillis(r.u)),[Object.keys(r).reduce(function(e,t){var n=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(t);return n&&(e[n]=r[t]),e},{}),e]}var dummyDateTimeCache=null;function getDummyDateTime(){return dummyDateTimeCache=dummyDateTimeCache||DateTime.fromMillis(1555555555555)}function maybeExpandMacroToken(e,t){var n,r;return e.literal||!(n=Formatter.macroTokenToFormatOpts(e.val))||(r=Formatter.create(t,n).formatDateTimeParts(getDummyDateTime()).map(function(e){return tokenForPart(e,t,n)})).includes(void 0)?e:r}function expandMacroTokens(e,t){var n;return(n=Array.prototype).concat.apply(n,e.map(function(e){return maybeExpandMacroToken(e,t)}))}function explainFromTokens(t,e,n){var n=expandMacroTokens(Formatter.parseFormat(n),t),r=n.map(function(e){return unitForToken(e,t)}),i=r.find(function(e){return e.invalidReason});if(i)return{input:e,tokens:n,invalidReason:i.invalidReason};var i=buildRegex(r),r=i[0],i=i[1],r=RegExp(r,"i"),i=match$1(e,r,i),o=i[0],i=i[1],a=i?dateTimeFromMatches(i):[null,null],s=a[0],a=a[1];if(hasOwnProperty$1(i,"a")&&hasOwnProperty$1(i,"H"))throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:n,regex:r,rawMatches:o,matches:i,result:s,zone:a}}function parseFromTokens(e,t,n){e=explainFromTokens(e,t,n);return[e.result,e.zone,e.invalidReason]}var nonLeapLadder=[0,31,59,90,120,151,181,212,243,273,304,334],leapLadder=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(e,t){return new Invalid("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function dayOfWeek(e,t,n){e=new Date(Date.UTC(e,t-1,n)).getUTCDay();return 0===e?7:e}function computeOrdinal(e,t,n){return n+(isLeapYear(e)?leapLadder:nonLeapLadder)[t-1]}function uncomputeOrdinal(e,t){var e=isLeapYear(e)?leapLadder:nonLeapLadder,n=e.findIndex(function(e){return e<t});return{month:n+1,day:t-e[n]}}function gregorianToWeek(e){var t,n=e.year,r=e.month,i=e.day,o=computeOrdinal(n,r,i),r=dayOfWeek(n,r,i),i=Math.floor((o-r+10)/7);return i<1?i=weeksInWeekYear(t=n-1):i>weeksInWeekYear(n)?(t=n+1,i=1):t=n,Object.assign({weekYear:t,weekNumber:i,weekday:r},timeObject(e))}function weekToGregorian(e){var t,n=e.weekYear,r=e.weekNumber,i=e.weekday,o=dayOfWeek(n,1,4),a=daysInYear(n),r=7*r+i-o-3,i=(r<1?r+=daysInYear(t=n-1):a<r?(t=n+1,r-=daysInYear(n)):t=n,uncomputeOrdinal(t,r)),o=i.month,a=i.day;return Object.assign({year:t,month:o,day:a},timeObject(e))}function gregorianToOrdinal(e){var t=e.year,n=computeOrdinal(t,e.month,e.day);return Object.assign({year:t,ordinal:n},timeObject(e))}function ordinalToGregorian(e){var t=e.year,n=uncomputeOrdinal(t,e.ordinal),r=n.month,n=n.day;return Object.assign({year:t,month:r,day:n},timeObject(e))}function hasInvalidWeekData(e){var t=isInteger(e.weekYear),n=integerBetween(e.weekNumber,1,weeksInWeekYear(e.weekYear)),r=integerBetween(e.weekday,1,7);return t?n?!r&&unitOutOfRange("weekday",e.weekday):unitOutOfRange("week",e.week):unitOutOfRange("weekYear",e.weekYear)}function hasInvalidOrdinalData(e){var t=isInteger(e.year),n=integerBetween(e.ordinal,1,daysInYear(e.year));return t?!n&&unitOutOfRange("ordinal",e.ordinal):unitOutOfRange("year",e.year)}function hasInvalidGregorianData(e){var t=isInteger(e.year),n=integerBetween(e.month,1,12),r=integerBetween(e.day,1,daysInMonth(e.year,e.month));return t?n?!r&&unitOutOfRange("day",e.day):unitOutOfRange("month",e.month):unitOutOfRange("year",e.year)}function hasInvalidTimeData(e){var t=e.hour,n=e.minute,r=e.second,e=e.millisecond,i=integerBetween(t,0,23)||24===t&&0===n&&0===r&&0===e,o=integerBetween(n,0,59),a=integerBetween(r,0,59),s=integerBetween(e,0,999);return i?o?a?!s&&unitOutOfRange("millisecond",e):unitOutOfRange("second",r):unitOutOfRange("minute",n):unitOutOfRange("hour",t)}var INVALID$2="Invalid DateTime",MAX_DATE=864e13;function unsupportedZone(e){return new Invalid("unsupported zone",'the zone "'+e.name+'" is not supported')}function possiblyCachedWeekData(e){return null===e.weekData&&(e.weekData=gregorianToWeek(e.c)),e.weekData}function clone$1(e,t){e={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new DateTime(Object.assign({},e,t,{old:e}))}function fixOffset(e,t,n){var r=e-60*t*1e3,i=n.offset(r);return t===i?[r,t]:i===(n=n.offset(r-=60*(i-t)*1e3))?[r,i]:[e-60*Math.min(i,n)*1e3,Math.max(i,n)]}function tsToObj(e,t){e+=60*t*1e3;t=new Date(e);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function objToTS(e,t,n){return fixOffset(objToLocalTS(e),t,n)}function adjustTime(e,t){var n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),r=Object.assign({},e.c,{year:r,month:i,day:Math.min(e.c.day,daysInMonth(r,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),i=Duration.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),t=fixOffset(objToLocalTS(r),n,e.zone),r=t[0],n=t[1];return 0!==i&&(n=e.zone.offset(r+=i)),{ts:r,o:n}}function parseDataToDateTime(e,t,n,r,i){var o=n.setZone,a=n.zone;return e&&0!==Object.keys(e).length?(e=DateTime.fromObject(Object.assign(e,n,{zone:t||a,setZone:void 0})),o?e:e.setZone(a)):DateTime.invalid(new Invalid("unparsable",'the input "'+i+"\" can't be parsed as "+r))}function toTechFormat(e,t,n){return void 0===n&&(n=!0),e.isValid?Formatter.create(Locale.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function toTechTimeFormat(e,t){var n=t.suppressSeconds,r=t.suppressMilliseconds,i=t.includeOffset,o=t.includePrefix,o=void 0!==o&&o,a=t.includeZone,a=void 0!==a&&a,s=t.spaceZone,t=t.format,t=void 0===t?"extended":t,l="basic"===t?"HHmm":"HH:mm",n=(void 0!==n&&n&&0===e.second&&0===e.millisecond||(l+="basic"===t?"ss":":ss",void 0!==r&&r&&0===e.millisecond)||(l+=".SSS"),(a||i)&&(void 0!==s&&s)&&(l+=" "),a?l+="z":i&&(l+="basic"===t?"ZZZ":"ZZ"),toTechFormat(e,l));return n=o?"T"+n:n}var defaultUnitValues={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},defaultWeekUnitValues={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},defaultOrdinalUnitValues={ordinal:1,hour:0,minute:0,second:0,millisecond:0},orderedUnits$1=["year","month","day","hour","minute","second","millisecond"],orderedWeekUnits=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],orderedOrdinalUnits=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(t)return t;throw new InvalidUnitError(e)}function quickDT(e,t){for(var n=_createForOfIteratorHelperLoose(orderedUnits$1);!(r=n()).done;){var r=r.value;isUndefined(e[r])&&(e[r]=defaultUnitValues[r])}var i,o=hasInvalidGregorianData(e)||hasInvalidTimeData(e);return o?DateTime.invalid(o):(o=Settings.now(),i=(o=objToTS(e,t.offset(o),t))[0],o=o[1],new DateTime({ts:i,zone:t,o:o}))}function diffRelative(t,n,r){function e(e,t){return e=roundTo(e,o||r.calendary?0:2,!0),n.loc.clone(r).relFormatter(r).format(e,t)}function i(e){return r.calendary?n.hasSame(t,e)?0:n.startOf(e).diff(t.startOf(e),e).get(e):n.diff(t,e).get(e)}var o=!!isUndefined(r.round)||r.round;if(r.unit)return e(i(r.unit),r.unit);for(var a=_createForOfIteratorHelperLoose(r.units);!(s=a()).done;){var s=s.value,l=i(s);if(1<=Math.abs(l))return e(l,s)}return e(n<t?-0:0,r.units[r.units.length-1])}var DateTime=function(){function g(e){var t,n=e.zone||Settings.defaultZone,r=e.invalid||(Number.isNaN(e.ts)?new Invalid("invalid input"):null)||(n.isValid?null:unsupportedZone(n)),i=(this.ts=isUndefined(e.ts)?Settings.now():e.ts,null),o=null;r||(o=e.old&&e.old.ts===this.ts&&e.old.zone.equals(n)?(i=(t=[e.old.c,e.old.o])[0],t[1]):(t=n.offset(this.ts),i=tsToObj(this.ts,t),i=(r=Number.isNaN(i.year)?new Invalid("invalid input"):null)?null:i,r?null:t)),this._zone=n,this.loc=e.loc||Locale.create(),this.invalid=r,this.weekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}g.now=function(){return new g({})},g.local=function(e,t,n,r,i,o,a){return isUndefined(e)?g.now():quickDT({year:e,month:t,day:n,hour:r,minute:i,second:o,millisecond:a},Settings.defaultZone)},g.utc=function(e,t,n,r,i,o,a){return isUndefined(e)?new g({ts:Settings.now(),zone:FixedOffsetZone.utcInstance}):quickDT({year:e,month:t,day:n,hour:r,minute:i,second:o,millisecond:a},FixedOffsetZone.utcInstance)},g.fromJSDate=function(e,t){void 0===t&&(t={});var n,e=isDate(e)?e.valueOf():NaN;return Number.isNaN(e)?g.invalid("invalid input"):(n=normalizeZone(t.zone,Settings.defaultZone)).isValid?new g({ts:e,zone:n,loc:Locale.fromObject(t)}):g.invalid(unsupportedZone(n))},g.fromMillis=function(e,t){if(void 0===t&&(t={}),isNumber(e))return e<-MAX_DATE||MAX_DATE<e?g.invalid("Timestamp out of range"):new g({ts:e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)});throw new InvalidArgumentError("fromMillis requires a numerical input, but received a "+typeof e+" with value "+e)},g.fromSeconds=function(e,t){if(void 0===t&&(t={}),isNumber(e))return new g({ts:1e3*e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)});throw new InvalidArgumentError("fromSeconds requires a numerical input")},g.fromObject=function(e){var t=normalizeZone(e.zone,Settings.defaultZone);if(!t.isValid)return g.invalid(unsupportedZone(t));var n=Settings.now(),r=t.offset(n),i=normalizeObject(e,normalizeUnit,["zone","locale","outputCalendar","numberingSystem"]),o=!isUndefined(i.ordinal),a=!isUndefined(i.year),s=!isUndefined(i.month)||!isUndefined(i.day),a=a||s,l=i.weekYear||i.weekNumber,c=Locale.fromObject(e);if((a||o)&&l)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&o)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");for(var u,s=l||i.weekday&&!a,d=tsToObj(n,r),p=(s?(m=orderedWeekUnits,u=defaultWeekUnitValues,d=gregorianToWeek(d)):o?(m=orderedOrdinalUnits,u=defaultOrdinalUnitValues,d=gregorianToOrdinal(d)):(m=orderedUnits$1,u=defaultUnitValues),!1),f=_createForOfIteratorHelperLoose(m);!(h=f()).done;){var h=h.value;isUndefined(i[h])?i[h]=(p?u:d)[h]:p=!0}var m,l=(s?hasInvalidWeekData:o?hasInvalidOrdinalData:hasInvalidGregorianData)(i)||hasInvalidTimeData(i);return l?g.invalid(l):(m=new g({ts:(n=objToTS(s?weekToGregorian(i):o?ordinalToGregorian(i):i,r,t))[0],zone:t,o:n[1],loc:c}),i.weekday&&a&&e.weekday!==m.weekday?g.invalid("mismatched weekday","you can't specify both a weekday of "+i.weekday+" and a date of "+m.toISO()):m)},g.fromISO=function(e,t){void 0===t&&(t={});var n=parseISODate(e);return parseDataToDateTime(n[0],n[1],t,"ISO 8601",e)},g.fromRFC2822=function(e,t){void 0===t&&(t={});var n=parseRFC2822Date(e);return parseDataToDateTime(n[0],n[1],t,"RFC 2822",e)},g.fromHTTP=function(e,t){void 0===t&&(t={});e=parseHTTPDate(e);return parseDataToDateTime(e[0],e[1],t,"HTTP",t)},g.fromFormat=function(e,t,n){if(void 0===n&&(n={}),isUndefined(e)||isUndefined(t))throw new InvalidArgumentError("fromFormat requires an input string and a format");var r=n,i=r.locale,r=r.numberingSystem,i=parseFromTokens(Locale.fromOpts({locale:void 0===i?null:i,numberingSystem:void 0===r?null:r,defaultToEN:!0}),e,t),r=i[0],o=i[1],i=i[2];return i?g.invalid(i):parseDataToDateTime(r,o,n,"format "+t,e)},g.fromString=function(e,t,n){return g.fromFormat(e,t,n=void 0===n?{}:n)},g.fromSQL=function(e,t){void 0===t&&(t={});var n=parseSQL(e);return parseDataToDateTime(n[0],n[1],t,"SQL",e)},g.invalid=function(e,t){if(void 0===t&&(t=null),!e)throw new InvalidArgumentError("need to specify a reason the DateTime is invalid");e=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid)throw new InvalidDateTimeError(e);return new g({invalid:e})},g.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var e=g.prototype;return e.get=function(e){return this[e]},e.resolvedLocaleOpts=function(e){e=Formatter.create(this.loc.clone(e=void 0===e?{}:e),e).resolvedOptions(this);return{locale:e.locale,numberingSystem:e.numberingSystem,outputCalendar:e.calendar}},e.toUTC=function(e,t){return void 0===t&&(t={}),this.setZone(FixedOffsetZone.instance(e=void 0===e?0:e),t)},e.toLocal=function(){return this.setZone(Settings.defaultZone)},e.setZone=function(e,t){var n,t=void 0===t?{}:t,r=t.keepLocalTime,r=void 0!==r&&r,t=t.keepCalendarTime,t=void 0!==t&&t;return(e=normalizeZone(e,Settings.defaultZone)).equals(this.zone)?this:e.isValid?(n=this.ts,(r||t)&&(r=e.offset(this.ts),n=objToTS(this.toObject(),r,e)[0]),clone$1(this,{ts:n,zone:e})):g.invalid(unsupportedZone(e))},e.reconfigure=function(e){var e=void 0===e?{}:e,t=e.locale,n=e.numberingSystem,e=e.outputCalendar,t=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:e});return clone$1(this,{loc:t})},e.setLocale=function(e){return this.reconfigure({locale:e})},e.set=function(e){if(!this.isValid)return this;var t,e=normalizeObject(e,normalizeUnit,[]),n=!isUndefined(e.weekYear)||!isUndefined(e.weekNumber)||!isUndefined(e.weekday),r=!isUndefined(e.ordinal),i=!isUndefined(e.year),o=!isUndefined(e.month)||!isUndefined(e.day),a=e.weekYear||e.weekNumber;if((i||o||r)&&a)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&r)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");n?t=weekToGregorian(Object.assign(gregorianToWeek(this.c),e)):isUndefined(e.ordinal)?(t=Object.assign(this.toObject(),e),isUndefined(e.day)&&(t.day=Math.min(daysInMonth(t.year,t.month),t.day))):t=ordinalToGregorian(Object.assign(gregorianToOrdinal(this.c),e));i=objToTS(t,this.o,this.zone);return clone$1(this,{ts:i[0],o:i[1]})},e.plus=function(e){return this.isValid?clone$1(this,adjustTime(this,friendlyDuration(e))):this},e.minus=function(e){return this.isValid?clone$1(this,adjustTime(this,friendlyDuration(e).negate())):this},e.startOf=function(e){if(!this.isValid)return this;var t={},e=Duration.normalizeUnit(e);switch(e){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}return"weeks"===e&&(t.weekday=1),"quarters"===e&&(e=Math.ceil(this.month/3),t.month=3*(e-1)+1),this.set(t)},e.endOf=function(e){var t;return this.isValid?this.plus(((t={})[e]=1,t)).startOf(e).minus(1):this},e.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?Formatter.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):INVALID$2},e.toLocaleString=function(e){return void 0===e&&(e=DATE_SHORT),this.isValid?Formatter.create(this.loc.clone(e),e).formatDateTime(this):INVALID$2},e.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?Formatter.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},e.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate(e)+"T"+this.toISOTime(e):null},e.toISODate=function(e){e=(void 0===e?{}:e).format,e="basic"===(void 0===e?"extended":e)?"yyyyMMdd":"yyyy-MM-dd";return toTechFormat(this,e=9999<this.year?"+"+e:e)},e.toISOWeekDate=function(){return toTechFormat(this,"kkkk-'W'WW-c")},e.toISOTime=function(e){var e=void 0===e?{}:e,t=e.suppressMilliseconds,n=e.suppressSeconds,r=e.includeOffset,i=e.includePrefix,e=e.format;return toTechTimeFormat(this,{suppressSeconds:void 0!==n&&n,suppressMilliseconds:void 0!==t&&t,includeOffset:void 0===r||r,includePrefix:void 0!==i&&i,format:void 0===e?"extended":e})},e.toRFC2822=function(){return toTechFormat(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},e.toHTTP=function(){return toTechFormat(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},e.toSQLDate=function(){return toTechFormat(this,"yyyy-MM-dd")},e.toSQLTime=function(e){var e=void 0===e?{}:e,t=e.includeOffset,e=e.includeZone;return toTechTimeFormat(this,{includeOffset:void 0===t||t,includeZone:void 0!==e&&e,spaceZone:!0})},e.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},e.toString=function(){return this.isValid?this.toISO():INVALID$2},e.valueOf=function(){return this.toMillis()},e.toMillis=function(){return this.isValid?this.ts:NaN},e.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},e.toJSON=function(){return this.toISO()},e.toBSON=function(){return this.toJSDate()},e.toObject=function(e){var t;return void 0===e&&(e={}),this.isValid?(t=Object.assign({},this.c),e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t):{}},e.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},e.diff=function(e,t,n){var r;return void 0===t&&(t="milliseconds"),void 0===n&&(n={}),this.isValid&&e.isValid?(n=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},n),t=maybeArray(t).map(Duration.normalizeUnit),t=_diff((r=e.valueOf()>this.valueOf())?this:e,r?e:this,t,n),r?t.negate():t):Duration.invalid(this.invalid||e.invalid,"created by diffing an invalid DateTime")},e.diffNow=function(e,t){return void 0===e&&(e="milliseconds"),void 0===t&&(t={}),this.diff(g.now(),e,t)},e.until=function(e){return this.isValid?Interval.fromDateTimes(this,e):this},e.hasSame=function(e,t){var n;return!!this.isValid&&(n=e.valueOf(),(e=this.setZone(e.zone,{keepLocalTime:!0})).startOf(t)<=n)&&n<=e.endOf(t)},e.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},e.toRelative=function(e){var t,n,r,i;return this.isValid?(t=(e=void 0===e?{}:e).base||g.fromObject({zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0,r=["years","months","days","hours","minutes","seconds"],i=e.unit,Array.isArray(e.unit)&&(r=e.unit,i=void 0),diffRelative(t,this.plus(n),Object.assign(e,{numeric:"always",units:r,unit:i}))):null},e.toRelativeCalendar=function(e){return void 0===e&&(e={}),this.isValid?diffRelative(e.base||g.fromObject({zone:this.zone}),this,Object.assign(e,{numeric:"auto",units:["years","months","days"],calendary:!0})):null},g.min=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.every(g.isDateTime))return bestBy(t,function(e){return e.valueOf()},Math.min);throw new InvalidArgumentError("min requires all arguments be DateTimes")},g.max=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.every(g.isDateTime))return bestBy(t,function(e){return e.valueOf()},Math.max);throw new InvalidArgumentError("max requires all arguments be DateTimes")},g.fromFormatExplain=function(e,t,n){var n=n=void 0===n?{}:n,r=n.locale,n=n.numberingSystem;return explainFromTokens(Locale.fromOpts({locale:void 0===r?null:r,numberingSystem:void 0===n?null:n,defaultToEN:!0}),e,t)},g.fromStringExplain=function(e,t,n){return g.fromFormatExplain(e,t,n=void 0===n?{}:n)},_createClass(g,[{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:NaN}},{key:"weekYear",get:function(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}},{key:"ordinal",get:function(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?Info.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o:NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.universal:null}},{key:"isInDST",get:function(){return!this.isOffsetFixed&&(this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return isLeapYear(this.year)}},{key:"daysInMonth",get:function(){return daysInMonth(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?daysInYear(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return DATE_SHORT}},{key:"DATE_MED",get:function(){return DATE_MED}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return DATE_MED_WITH_WEEKDAY}},{key:"DATE_FULL",get:function(){return DATE_FULL}},{key:"DATE_HUGE",get:function(){return DATE_HUGE}},{key:"TIME_SIMPLE",get:function(){return TIME_SIMPLE}},{key:"TIME_WITH_SECONDS",get:function(){return TIME_WITH_SECONDS}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return TIME_WITH_SHORT_OFFSET}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return TIME_WITH_LONG_OFFSET}},{key:"TIME_24_SIMPLE",get:function(){return TIME_24_SIMPLE}},{key:"TIME_24_WITH_SECONDS",get:function(){return TIME_24_WITH_SECONDS}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return TIME_24_WITH_SHORT_OFFSET}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return TIME_24_WITH_LONG_OFFSET}},{key:"DATETIME_SHORT",get:function(){return DATETIME_SHORT}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return DATETIME_SHORT_WITH_SECONDS}},{key:"DATETIME_MED",get:function(){return DATETIME_MED}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return DATETIME_MED_WITH_SECONDS}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return DATETIME_MED_WITH_WEEKDAY}},{key:"DATETIME_FULL",get:function(){return DATETIME_FULL}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return DATETIME_FULL_WITH_SECONDS}},{key:"DATETIME_HUGE",get:function(){return DATETIME_HUGE}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return DATETIME_HUGE_WITH_SECONDS}}]),g}();function friendlyDateTime(e){if(DateTime.isDateTime(e))return e;if(e&&e.valueOf&&isNumber(e.valueOf()))return DateTime.fromJSDate(e);if(e&&"object"==typeof e)return DateTime.fromObject(e);throw new InvalidArgumentError("Unknown datetime argument: "+e+", of type "+typeof e)}var VERSION="1.28.1",DateTime_1=luxon.DateTime=DateTime;luxon.Duration=Duration,luxon.FixedOffsetZone=FixedOffsetZone,luxon.IANAZone=IANAZone,luxon.Info=Info,luxon.Interval=Interval,luxon.InvalidZone=InvalidZone,luxon.LocalZone=LocalZone,luxon.Settings=Settings,luxon.VERSION=VERSION,luxon.Zone=Zone;const useStyles$f$1=makeStyles()(()=>({root:{padding:"15px 30px"},title:{display:"flex"},action:{fontWeight:600},time:{fontSize:"12px",paddingLeft:"15px",lineHeight:"21px"},description:{lineHeight:"150%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},divider:{margin:"0 30px",backgroundColor:"#D5DFE9",height:"0.5px"}})),ActivityCard=({longFormatTime:e=!1,data:{createdDateTime:t,event:n,description:r}})=>{var i=useStyles$f$1()["classes"];return jsxRuntime.exports.jsxs(react$1.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:i.root,"data-testid":"activity-card"},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:i.title},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:i.action},{children:n})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:i.time},{children:e?DateTime_1.fromISO(t||"").toFormat("F"):DateTime_1.fromISO(t||"").toFormat("tt")}))]})),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({placement:"top-start",title:r||""},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:i.description},{children:r}))}))})]})),jsxRuntime.exports.jsx(Divider$1,{className:i.divider})]})},useStyles$e$1=makeStyles()(e=>({root:{width:"100%",height:"100%"},header:{opacity:.9,display:"flex",justifyContent:"space-between",padding:e.spacing(4,6),position:"relative"},title:{opacity:.9,padding:e.spacing(4,6,2,6)},titleText:{textTransform:"uppercase",color:e.palette.secondary.main},scrollContent:{overflowY:"auto",height:"calc(100% - 65px)"}})),filters$2=[{value:"all",title:"All Activities"},{value:"today",title:"Activities today"}],today$1=DateTime_1.local().startOf("day"),yesterday=DateTime_1.local().plus({days:-1}).startOf("day"),ActivityPanel=({data:e,filter:t,onChangeFilter:n})=>{var r=useStyles$e$1()["classes"],i=null==e?void 0:e.filter(e=>DateTime_1.fromISO(e.createdDateTime||"").hasSame(today$1,"day")),o=null==e?void 0:e.filter(e=>DateTime_1.fromISO(e.createdDateTime||"").hasSame(yesterday,"day")),e=null==e?void 0:e.filter(e=>DateTime_1.fromISO(e.createdDateTime||"").startOf("day")<yesterday);return jsxRuntime.exports.jsxs("div",Object.assign({className:r.root},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:r.header},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:r.titleText},{children:"Today"})),jsxRuntime.exports.jsx(Filter,{data:filters$2,filter:t,onFilter:e=>{n(null==(e=null==e?void 0:e.target)?void 0:e.value)}})]})),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.scrollContent},{children:[jsxRuntime.exports.jsx(Box$1,{children:null==i?void 0:i.map((e,t)=>jsxRuntime.exports.jsx(ActivityCard,{longFormatTime:!1,data:e},t))}),"all"===t&&jsxRuntime.exports.jsxs(react$1.exports.Fragment,{children:[0<(null==o?void 0:o.length)&&jsxRuntime.exports.jsxs(react$1.exports.Fragment,{children:[jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.title,"data-testid":"filter-all-box"},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:r.titleText},{children:"Yesterday"}))})),jsxRuntime.exports.jsx(Box$1,{children:o.map((e,t)=>jsxRuntime.exports.jsx(ActivityCard,{longFormatTime:!1,data:e},t))})]}),0<(null==e?void 0:e.length)&&jsxRuntime.exports.jsxs(react$1.exports.Fragment,{children:[jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.title},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:r.titleText},{children:"Older"}))})),jsxRuntime.exports.jsx(Box$1,{children:e.map((e,t)=>jsxRuntime.exports.jsx(ActivityCard,{longFormatTime:!0,data:e},t))})]})]})]}))]}))},useStyles$d$1=makeStyles()((e,{appListV2:t,type:n},r)=>({listItem:{display:"flex",cursor:"pointer",alignItems:"center",height:t?"unset":70,width:"100%",padding:t?0:e.spacing(0,6),"&:hover":{backgroundColor:"#EEF3F9"},["& ."+r.appName]:{marginLeft:e.spacing(3)}},iconButton:{borderRadius:4,textAlign:"center",width:"94px",height:"110px",cursor:"pointer",["& ."+r.appName]:{marginBottom:e.spacing(3)}},appName:{textAlign:"center",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",textTransform:"capitalize",width:"switcherGrid"===n?"80%":"unset",margin:"switcherGrid"===n?"auto":"unset"},image:{display:"flex",justifyContent:"center",alignItems:"center",margin:t?"10px":e.spacing(3.8,0)},bounding:{padding:"17px 27px 19px 27px"},img:{width:40,height:40},switcherGrid:{borderRadius:4,textAlign:"center",padding:"20px 0 20px 0",cursor:"pointer","&:hover":{backgroundColor:"#EEF3F9"}},dialogTitle:{fontSize:"18px",fontFamily:"Nunito",fontStyle:"normal",lineHeight:"24px",letterSpacing:"-1.30385e-09px",fontWeight:400,cursor:"default"}})),namespace$3$1="user-app-group",initialState$3$2={appGroups:[],uiStatus:Status.idle,appGroupsRootFolderId:""},appGroupSlice=createSlice({name:namespace$3$1,initialState:initialState$3$2,reducers:{fetchUserAppGroupsStart(e){e.uiStatus=Status.loading},fetchUserAppGroupSuccess(e,t){e.uiStatus=Status.success,e.appGroups=t.payload},fetchUserAppGroupsFailed(e){e.uiStatus=Status.failure},addAppToGroup(e,t){const{destination:n,appId:r}=t.payload;var t=(e.appGroups||[]).findIndex(e=>e.id===n),i=(((e.appGroups||[])[t]||{}).apps||[]).find(e=>e===r);-1===t||i||(e.appGroups||[])[t].apps.push(r)},removeAppFromGroup(e,t){const{source:n,appId:r}=t.payload;t=(e.appGroups||[]).findIndex(e=>e.id===n);-1!==t&&((e.appGroups||[])[t].apps=(e.appGroups||[])[t].apps.filter(e=>e!==r))},updateGroupPriority(e,t){var n=[...e.appGroups||[]];const{groupId:r,newPriority:i}=t.payload,o=n.find(e=>e.id===r);o&&(i>o.priority?(n.forEach(e=>{e.priority<=i&&e.priority>o.priority&&--e.priority}),o.priority=i):i<o.priority&&(n.forEach(e=>{e.priority>=i&&e.priority<o.priority&&(e.priority+=1)}),o.priority=i),n.sort((e,t)=>e.priority-t.priority),e.appGroups=n)},createNewAppGroupPlaceholder(e){var t;e.appGroups.find(e=>e.isNew)||((t=[...e.appGroups]).forEach(e=>e.priority+=1),t.unshift({groupName:"",id:"new-group-placeholder",treeObjectId:"",isNew:!0,apps:[],priority:0,expanded:!0,isEdited:!0}),e.appGroups=t)},removeNewAppGroupPlaceholder(e){e.appGroups=(e.appGroups||[]).filter(e=>!e.isNew&&(--e.priority,!0))},createNewAppGroupStart(e,t){return e},editAppGroup(e,t){const{edit:n,groupId:r,newGroupName:i}=t.payload;if(n&&(e.appGroups||[]).find(e=>e.isEdited))return;var o,t=(e.appGroups||[]).findIndex(e=>e.id===r);-1!==t&&(!((o=[...e.appGroups||[]])[t].isEdited=n)&&i&&(o[t].groupName=i),e.appGroups=o)},deleteAppGroup(e,t){return e},expandCollapse(e,t){var n,r=(e.appGroups||[]).findIndex(e=>e.id===t.payload);-1!==r&&(n=(e.appGroups||[])[r].isExpanded,(e.appGroups||[])[r].isExpanded=!n&&void 0!==n)},fetchUserAppGroupsRootFolderIdSuccess(e,t){e.appGroupsRootFolderId=t.payload}}}),{addAppToGroup,removeAppFromGroup,updateGroupPriority,removeNewAppGroupPlaceholder,createNewAppGroupStart,editAppGroup,deleteAppGroup,expandCollapse,fetchUserAppGroupsStart,fetchUserAppGroupSuccess,fetchUserAppGroupsFailed,fetchUserAppGroupsRootFolderIdSuccess}=appGroupSlice.actions,appGroupReducer=appGroupSlice.reducer;function __awaiter$4(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}const fetchUserAppGroupsRootFolderIdApi=(e,t)=>__awaiter$4(void 0,void 0,void 0,function*(){return(yield baseGraphQLApiWithError({query:`
|
|
1348
|
+
`,operationName:"getUrl",variables:e},r)),t=e.getSignedWritableUrl["url"],n={method:"PUT",headers:{"Content-Type":i.type,"X-Veritone-Application":"aiware-sdk"},body:i};try{return yield fetch(t,n),e.getSignedWritableUrl}catch(e){throw console.log(e),e}})}var imageUploadApi=Object.freeze({__proto__:null,getImageURL:getImageURL});const ImageUpload=({handleChange:i,getUrl:o,image:e,fileTypes:n="image/*",maxFileSize:a=5,maxImageSize:t,disabled:r=!1,testId:s,outerHeight:l="160px",outerWidth:c="160px",outerBorder:u="1px dashed #D5DFE9",outerRadius:d="5px",innerHeight:p="150px",innerWidth:f="150px",innerBorder:h="none",innerRadius:m="5px",innerBackground:g="rgba(247, 247, 247, 0.8)",uploadIconBackground:y,uploadBackgroundRadius:v,uploadBackgroundWidthHeight:x,uploadIconColor:$="#555F7C",uploadIconWidthHeight:b="30px",uploadCustomIcon:C,deleteBackgroundWidthHeight:S="42px",deleteIconBackground:P="rgba(0, 0, 0, 0.25)",deleteIconBackgroundRadius:N="50%",deleteIconColor:D="#FFF",deleteIconWidthHeight:w="24px"})=>{const _=react$1.exports.useRef(null),[T,E]=react$1.exports.useState(e),[j,R]=react$1.exports.useState(!1),[I,O]=react$1.exports.useState(void 0),F=useSelector(selectApiConfigs$2),{maxWidth:k,maxHeight:A}=(react$1.exports.useEffect(()=>{E(e)},[e]),t||{}),V=e=>{let t=n.split(", ");return(t=t.includes("image/*")?t.concat(["image/png","image/jpeg","image/gif","image/webp","image/bmp","image/svg+xml","image/tiff"]):t).includes(e.type)};const M=e=>{if(e)if(V(e))if(e.size>1048576*a)t=jsxRuntime.exports.jsx(FormattedMessage$1,{id:"reusable-image-uploader-error-message-filesize",defaultMessage:"File size exceeds the limit",description:"Error message file size"}),O(t);else{if(k&&A){var t=new Image;const r=URL.createObjectURL(e);t.src=r,t.onload=function(){var e;this.naturalWidth>k&&this.naturalHeight>A?(e=jsxRuntime.exports.jsx(FormattedMessage$1,{id:"reusable-image-uploader-error-message-imagesize",defaultMessage:"Image size exceeds the limit",description:"Error message image size"}),O(e),URL.revokeObjectURL(r),L()):URL.revokeObjectURL(r)}}const n=new FileReader;n.onloadend=()=>__awaiter$5(void 0,void 0,void 0,function*(){E(n.result),O(void 0),o?yield H(e):i(e)}),n.readAsDataURL(e)}else t=jsxRuntime.exports.jsx(FormattedMessage$1,{id:"reusable-image-uploader-error-message-filetype",defaultMessage:"Filetype not accepted",description:"Error message file size"}),O(t)},H=e=>__awaiter$5(void 0,void 0,void 0,function*(){try{var t=yield getImageURL(F,e);i(t)}catch(e){t=jsxRuntime.exports.jsx(FormattedMessage$1,{id:"reusable-image-uploader-error-message",defaultMessage:"Error getting the Image Url",description:"Error message Image Url"});O(t),E(void 0),console.error("Error getting URL:",e)}}),L=()=>{E(void 0),i("");var e=document.getElementById("reusable-fileinput");e&&(e.value="")};return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Box$1,Object.assign({className:"image-uploader-"+(T?"active":"inactive"),onClick:()=>!T&&!r&&void(_.current&&_.current.click()),sx:{display:"flex",justifyContent:"center",alignItems:"center",height:l,width:c,border:u,borderRadius:d,transition:"border-color 0.25s ease","&.image-uploader-inactive:hover":{cursor:"pointer",borderColor:"#0C53B0"},"&.image-uploader-inactive:hover .image-uploader-inner-box":{backgroundColor:"rgba(228, 240, 252, 0.8)"},"&.image-uploader-inactive:hover svg path":{fill:"#0C53B0"}}},{children:jsxRuntime.exports.jsxs(Box$1,Object.assign({"data-test":"resusable-image-uploader-inner-box-"+s,className:"image-uploader-inner-box",onDrop:e=>{e.preventDefault(),R(!1),r||(e=e.dataTransfer.files[0],M(e))},onDragLeave:e=>{e.preventDefault(),R(!1)},onDragOver:e=>{e.preventDefault(),R(!0)},sx:{position:"relative",backgroundColor:g,height:p,width:f,border:j?"2px solid #1871E8":h,borderRadius:m,display:"flex",justifyContent:"center",alignItems:"center",transition:"background-color 0.25s ease"}},{children:[I&&jsxRuntime.exports.jsx(Box$1,Object.assign({"data-test":"resusable-image-uploader-error-"+s,style:{position:"absolute",top:"5%",left:"50%",width:"95%",transform:"translate(-50%, -5%)",textAlign:"center",color:"red"}},{children:I})),T&&jsxRuntime.exports.jsx("img",{"data-test":"resusable-image-uploader-image-"+s,style:{maxWidth:"100%",maxHeight:"100%",borderRadius:m},alt:"uploader",src:T}),!T&&jsxRuntime.exports.jsx(Box$1,Object.assign({"data-test":"resusable-image-uploader-upload-image-background-"+s,sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",textAlign:"center",backgroundColor:y,borderRadius:v,width:x,height:x,minWidth:b,minHeight:b}},{children:C||jsxRuntime.exports.jsx("svg",Object.assign({"data-test":"resusable-image-uploader-upload-image-icon-"+s,version:"1.2",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500",width:b,height:b},{children:jsxRuntime.exports.jsx("path",{fill:j?"#1871E8":$,fillRule:"evenodd",d:"M249.5 62c147.7 0 151.1 0 157.5 1.9 3.6 1.1 8.9 3.7 11.9 5.8 3 2.1 7.3 6.1 9.6 8.8 2.3 2.7 5.2 7.7 9 17l.3 101c.1 55.6.1 101.4-.2 102-.2.7-4.1.6-11.2-.3-6-.7-14-1-17.9-.7-3.9.3-8.4.8-13 1.6V104.5h-291v291H297l-.7 8c-.5 4.4-.8 9.8-.8 12 0 2.2.4 8.2 1.5 22.5h-97.3c-82.7 0-98.2-.3-104.2-1.5-3.8-.9-9-2.8-11.5-4.2-2.5-1.5-6-4.1-7.9-5.8-1.9-1.6-5.2-5.7-7.3-9-2.5-3.9-4.4-8.5-5.4-13-1.3-6.1-1.4-26.2-.9-309l2.4-6c1.4-3.3 4.3-8.3 6.6-11 2.3-2.8 6.6-6.7 9.6-8.8 3-2.1 8.1-4.6 11.4-5.7 5.8-1.8 11.6-1.9 157-2zm45.4 185c.3 0 12.2 15.8 52.6 70.3l-4 3.1c-2.2 1.7-7.7 6.7-12.3 11.1-4.6 4.4-10.6 11.3-18.7 22.5h-93.8c-90.2 0-93.7-.1-92.5-1.8.7-1 14.7-19 31-40 16.4-21 30-38.2 30.3-38.2.3 0 7.8 8.9 16.7 19.8 8.9 10.8 18.7 22.7 21.7 26.5 3.1 3.7 5.8 6.7 6.1 6.7.3-.1 14.4-18.1 31.4-40.1 17-21.9 31.2-39.9 31.5-39.9zm122.6 87.5c13.3.3 15.8.7 22 3 3.9 1.5 9.3 3.8 12 5.2 2.8 1.4 8.4 5.1 12.4 8.2 4.1 3.1 10 8.7 13.1 12.6 3 3.9 7.1 10.1 9.1 14 2 3.9 4.7 9.9 6 13.5 2.1 5.9 2.3 8.2 2.3 24.5s-.2 18.6-2.3 24.5c-1.3 3.6-4 9.6-6 13.5-2 3.9-6.1 10.1-9.1 14-3.1 3.9-9 9.5-13.1 12.5-4 3.1-9.6 6.7-12.4 8.2-2.7 1.5-8.1 3.9-12 5.4-6.8 2.7-7.6 2.8-26 2.8s-19.2-.1-26-2.8c-3.9-1.5-9.2-3.9-12-5.3-2.7-1.4-8.4-5.1-12.4-8.2-4.1-3.1-10-8.7-13.1-12.6-3-3.9-7.1-10.1-9.1-14-2-3.9-4.7-9.9-6-13.5-2.1-5.9-2.3-8.2-2.3-24.5s.2-18.6 2.3-24.5c1.3-3.6 4-9.6 6-13.5 2-3.9 6.1-10.1 9.1-14 3.1-3.9 9-9.5 13.1-12.5 4-3.1 9.7-6.7 12.4-8.2 2.8-1.4 7.5-3.6 10.5-4.8 3-1.2 8-2.6 11-3 3-.5 12.3-.7 20.5-.5zM390 355.6c-3.6 1.6-8.5 4-11 5.4-2.5 1.4-7.4 5.4-11 9-3.9 3.8-8.2 9.6-10.6 14-2.3 4.1-5 10-6 13-1.3 4.2-1.8 8.7-1.8 18.5s.5 14.3 1.8 18.5c1 3 3.7 8.9 5.9 13 2.7 4.8 6.8 10.1 11.3 14.5 5.2 5.1 9.3 8.1 15.5 11.1 4.6 2.3 10.2 4.7 12.4 5.5 2.5.8 8.8 1.3 17 1.3s14.5-.5 17-1.3c2.2-.8 7.8-3.2 12.4-5.5 6.5-3.1 10.2-5.9 16-11.7 5.8-5.7 8.6-9.6 11.8-16 2.3-4.6 4.7-10.2 5.4-12.4.7-2.4 1.3-9.3 1.3-17 0-7.7-.6-14.6-1.3-17-.7-2.2-3.1-7.8-5.4-12.4-3.2-6.4-6-10.3-11.8-16-5.6-5.7-9.6-8.6-15.5-11.5-4.3-2.1-9.7-4.5-11.9-5.3-2.2-.7-8.5-1.5-14-1.7-5.5-.3-12.5-.1-15.5.3s-8.4 2.1-12 3.7zm15 18.4h17v33h33v17h-33v33h-17v-33h-33v-17h33z"})}))})),T&&!r&&jsxRuntime.exports.jsx(Box$1,Object.assign({"data-test":"resusable-image-uploader-delete-background-"+s,onClick:()=>!r&&L(),sx:{position:"absolute",bottom:"0px",right:"0px",height:S,width:S,minWidth:w,minHeight:w,backgroundColor:P,borderRadius:N,display:"flex",justifyContent:"center",alignItems:"center"}},{children:jsxRuntime.exports.jsx(default_1$a,{"data-test":"resusable-image-uploader-delete-"+s,sx:{color:D,fontSize:w}})}))]}))})),jsxRuntime.exports.jsx("input",{id:"reusable-fileinput",disabled:r,type:"file",accept:n,ref:_,style:{display:"none"},onChange:e=>{e.target.files&&0<e.target.files.length&&(e=e.target.files[0],M(e))}})]})};var TAB_CAPTURE_MODE,imageUploadJsx=Object.freeze({__proto__:null,ImageUpload:ImageUpload});const useStyles$6$2=makeStyles()(e=>({backButton:{background:"none",color:"black",marginRight:"20px",":hover":{background:"#D3D3D3"}},root:{width:1020,position:"relative"},panel:{backgroundColor:e.palette.background.paper,boxShadow:"0px 0px 12px rgba(0, 0, 0, 0.25)",height:"100%"},container:{display:"flex",flexDirection:"column",height:"100%"},expand:{marginTop:"-20px"},fullScreen:{position:"fixed",width:"100%",height:"100vh",overflow:"auto",top:0,left:0,right:0,bottom:0,zIndex:1004},fullScreenButton:{marginTop:"-50px !important"},tabs:{"& .Sdk-MuiTabs-indicator":{backgroundColor:"black",color:"black"},"& .Sdk-Mui-selected":{color:"black"}},bottomButtons:{marginTop:"20px"},markdown:{height:"100% !important",background:"#303841"},previewMarkdown:{height:"100% !important",position:"relative",padding:"20px !important",background:"#303841"},previewMarkdownContent:{background:"white",padding:"15px",borderRadius:"3px"}})),useStyles$5$3=makeStyles()(e=>({checked:{color:"#6098D1"},rootSelectedForm:{padding:"0px !important"},rootSelectForm:{padding:"10px !important","&:hover":{background:"#F7F7F7"}},iconStyle:{marginRight:"5px"},iconComponent:{top:"20px"},iconBackground:{display:"inline-block",height:"32px",borderRadius:"32px",width:"32px",background:"#F2F5F9",marginRight:"15px",paddingLeft:"8px",paddingTop:"6px",marginLeft:"5px"},itemIcons:{verticalAlign:"middle"},itemIconsRow:{position:"absolute",top:"0px"},iconBackgroundSelected:{display:"inline-block",height:"25px",borderRadius:"25px",width:"25px",minHeight:"25px",minWidth:"25px",background:e.palette.primary.main,marginRight:"15px",paddingLeft:"7px",paddingTop:"7px",marginLeft:"15px"},helperDescription:{fontSize:"14px",marginBottom:"20px"},menuItem:{width:"958px",padding:"10px",whiteSpace:"initial",height:"fit-content",borderBottom:"0.5px solid "+e.palette.divider,borderRadius:"0px"},optionName:{marginLeft:"0px",textAlign:"left",verticalAlign:"top"},optionNameRow:{marginLeft:"50px"},summary:{fontSize:11,textTransform:"none",width:"900px"},selectForm:{width:"250px",fontWeight:"bold",fontSize:"18px"},selectedForm:{background:"#FAFAFA",width:"960px !important",fontWeight:"bold",fontSize:"18px"},selectedName:{textTransform:"capitalize",background:"#EEF3F9",width:"auto",height:"56px",lineHeight:"56px",fontWeight:"bold"},ul:{listStyle:"none"},selectedDescription:{fontSize:"12px",marginBottom:"10px"},classSelectedBox:{padding:"20px 32px",textOverflow:"wrap",fontSize:"12px",whiteSpace:"initial",wordWrap:"break-word",border:"1px solid "+e.palette.divider,borderTop:"none",lineHeight:"16px"},inputSelectCaption:{fontSize:"12px",fontWeight:600,marginTop:"16px",marginBottom:"11px"},inputSelect:{width:"228px",fontWeight:400,fontSize:"14px"},textInput:{paddingLeft:"15px",paddingTop:"12px",paddingBottom:"12px",fontWeight:400,fontSize:"14px"},selectionName:{marginLeft:"20px"},selectionDescription:{paddingLeft:"60px",marginTop:"-10px",fontSize:"12px"},icon:{textAlign:"center",height:"1rem !important",margin:"0 3px"}})),HelpDocs=({className:e,helpLink:t,sx:n})=>{const r=useDispatch();var i=useSelector(preferredLanguageSelector);const o=AIWareFormatMessage(i);return jsxRuntime.exports.jsx(default_1$9,{className:e,onClick:()=>{has_1(window,"aiware.helpCenter.openDocsPanel")?(window.aiware.helpCenter.openDocsPanel(t,!1),setTimeout(()=>{window.aiware.helpCenter.openDocsPanel(t,!1)},0)):r(showMessage({content:o({id:"os-engine-center-new.snackbar.helpCenterUnavailable",defaultMessage:[{type:0,value:"Help Center is not currently available."}]}),severity:MessageSeverity.Warning}))},sx:n,style:{cursor:"pointer"},color:"secondary"})},Heading=({testName:e,title:t,description:n,helpLink:r})=>{var i=useStyles$5$3()["classes"];return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs(Typography$1,Object.assign({"data-test":e+"-title",style:{fontWeight:"bold"},variant:"h5"},{children:[t,!isNil_1(r)&&jsxRuntime.exports.jsx(HelpDocs,{className:i.icon,helpLink:r})]})),jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":e+"-description",className:i.helperDescription},{children:n}))]})};function useTabCapturing({inputRef:o,onChange:a}){const[s,l]=react$1.exports.useState(TAB_CAPTURE_MODE.NON_CAPTURE_MODE);return[e=>{var t=e["key"];if(o&&!lodash.exports.isNil(o.current)){var{value:n,selectionStart:r,selectionEnd:i}=o.current;switch(t){case"Tab":return void(s===TAB_CAPTURE_MODE.CAPTURING_MODE&&(e.preventDefault(),lodash.exports.isNil(r)||lodash.exports.isNil(i)||(o.current.value=n.slice(0,r)+"\t"+n.slice(i),o.current.setSelectionRange(r+1,r+1)),a(e)));case"Escape":return void l(TAB_CAPTURE_MODE.NON_CAPTURE_MODE);case"m":return void(e.ctrlKey&&l(s===TAB_CAPTURE_MODE.CAPTURING_MODE?TAB_CAPTURE_MODE.NON_CAPTURE_MODE:TAB_CAPTURE_MODE.CAPTURING_MODE));case"Shift":return;default:l(TAB_CAPTURE_MODE.CAPTURING_MODE)}}},e=>{l(TAB_CAPTURE_MODE.CAPTURING_MODE)}]}function useLineNumbers(t){return react$1.exports.useMemo(()=>{var e=lodash.exports.size(lodash.exports.split(t,"\n"));return lodash.exports.map(new Array(e),(e,t)=>t+1).join("\n")},[t])}!function(e){e[e.CAPTURING_MODE=0]="CAPTURING_MODE",e[e.NON_CAPTURE_MODE=1]="NON_CAPTURE_MODE"}(TAB_CAPTURE_MODE=TAB_CAPTURE_MODE||{});const editorStyles={margin:"0",padding:"10px 0 !important",borderRadius:"0",resize:"none",fontSize:"1em !important",fontFamily:"Nunito, lucida console, courier new, courier, monospace",lineHeight:"1.6em !important",outline:"none",boxSizing:"border-box",whiteSpace:"nowrap","&:focus-visible":{outline:"none"},"& textarea":{lineHeight:"2em !important",whiteSpace:"pre"}},useStyles$4$3=makeStyles()(e=>({codeEditor:lodash.exports.merge(lodash.exports.cloneDeep(editorStyles),{paddingLeft:"calc(3rem + 10px) !important",width:"100%",backgroundColor:"#303841",borderColor:"#303841",color:"#ffffff !important",caretColor:"#FFBB0A"}),lineCounter:lodash.exports.merge(lodash.exports.cloneDeep(editorStyles),{display:"block",borderColor:"#4F565E",overflowY:"hidden",boxShadow:"none",color:"#9CA8B4 !important",backgroundColor:"#4F565E",position:"absolute !important",width:"3rem !important",paddingRight:".625rem !important",top:0,left:0,bottom:0,minHeight:"100%",pointerEvents:"none","& textarea":{textAlign:"right",fontWeight:"600 !important"}})})),InputTypeMarkdown=({value:e,name:t,onChange:n})=>{const r=react$1.exports.useRef();var i=react$1.exports.useRef(),o=react$1.exports.useRef(null),a=useStyles$4$3()["classes"],s=useLineNumbers(e),[l,c]=useTabCapturing({inputRef:o,onChange:n});return jsxRuntime.exports.jsxs(Box$1,Object.assign({position:"relative",padding:0,margin:0,width:"100%"},{children:[jsxRuntime.exports.jsx(InputUnstyled,{"data-test":"input-type-markdown-code-editor",name:t,ref:i,inputRef:o,className:a.codeEditor,onScroll:e=>{lodash.exports.isNil(r.current)||(r.current.scrollTop=e.currentTarget.scrollTop,r.current.scrollLeft=e.currentTarget.scrollLeft)},onKeyDown:l,onChange:e=>{n(e)},onClick:c,spellCheck:!1,value:e,multiline:!0}),jsxRuntime.exports.jsx(InputUnstyled,{"data-test":"input-type-markdown-line-numbers",ref:r,className:a.lineCounter,spellCheck:!1,value:s,multiline:!0,readOnly:!0})]}))},Markdown=({onValidate:e,data:t,idPrefix:n,title:r,description:i,handleChange:o})=>{const a=useStyles$6$2()["classes"],[s,l]=react$1.exports.useState(0),[c,u]=react$1.exports.useState(!1),d=(react$1.exports.useEffect(()=>{e&&e(!0)},[]),(e,t)=>{l(Number(t))}),p=()=>{u(!c)};return jsxRuntime.exports.jsx("div",Object.assign({"data-test":n+".use-cases-step-parent-container",className:c?classNames(a.root,a.panel,a.fullScreen):"",style:{height:"100%"}},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:a.container,"data-test":n+".use-cases-container"},{children:[jsxRuntime.exports.jsx(Box$1,Object.assign({padding:5,paddingBottom:0},{children:jsxRuntime.exports.jsx(Heading,{title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"markdown.use-cases-title",defaultMessage:"{title}",description:"label for use case title",values:{title:r}}),description:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"markdown.use-cases-description",defaultMessage:"{description}",description:"label for use case description",values:{description:i}}),testName:n+".use-cases"})})),jsxRuntime.exports.jsxs(Box$1,Object.assign({"data-test":n+"-tabs-list",padding:4,paddingTop:0,paddingBottom:1},{children:[jsxRuntime.exports.jsxs(Tabs$2,Object.assign({className:a.tabs,value:s,onChange:d,"aria-label":"icon label tabs example"},{children:[jsxRuntime.exports.jsx(Tab$2,{"data-test":n+".use-cases-step-markdown-tab",label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"markdown.use-cases-step-markdown-tab-label",defaultMessage:"Markdown",description:"tab label: Markdown"})}),jsxRuntime.exports.jsx(Tab$2,{"data-test":n+".use-cases-step-preview-tab",label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"markdown.use-cases-step-preview-tab-label",defaultMessage:"Preview",description:"tab label: Preview"})})]})),jsxRuntime.exports.jsx(Box$1,Object.assign({display:"flex",justifyContent:"flex-end"},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:c?jsxRuntime.exports.jsx(FormattedMessage$1,{id:"markdown-use-cases-exit-fullscreen",defaultMessage:"Exit Fullscreen",description:"Exit Fullscreen"}):jsxRuntime.exports.jsx(FormattedMessage$1,{id:"markdown-use-cases-enter-fullscreen",defaultMessage:"Enter Fullscreen",description:"Enter Fullscreen"})},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({onClick:p,className:a.fullScreenButton,"data-test":n+".use-cases-step-fullscreen-toggle",size:"large"},{children:c?jsxRuntime.exports.jsx(FullscreenExit,{}):jsxRuntime.exports.jsx(Fullscreen,{})}))}))}))]})),jsxRuntime.exports.jsxs(Box$1,Object.assign({flexGrow:1},{children:[jsxRuntime.exports.jsx(TabPanel,Object.assign({value:s,index:0},{children:jsxRuntime.exports.jsx("div",Object.assign({className:a.markdown},{children:jsxRuntime.exports.jsx(InputTypeMarkdown,{value:t,onChange:o})}))})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:s,index:1},{children:jsxRuntime.exports.jsx("div",Object.assign({className:a.previewMarkdown},{children:jsxRuntime.exports.jsx("div",Object.assign({className:!t||t.length<=0?"":a.previewMarkdownContent},{children:jsxRuntime.exports.jsx(ReactMarkdown,{children:t})}))}))}))]}))]}))}))};var DistributionType,MarkdownJsx=Object.freeze({__proto__:null,Markdown:Markdown});const useStyles$3$4=makeStyles()(e=>({rootSelectedForm:{padding:"0 4px 0 0 !important"},rootSelectForm:{padding:"10px","&:hover":{background:"#F7F7F7"}},iconStyle:{marginRight:"5px"},iconComponent:{top:"20px"},iconBackground:{display:"inline-block",height:"32px",borderRadius:"32px",width:"32px",background:"#F2F5F9",marginRight:"15px",paddingLeft:"8px",paddingTop:"6px",marginLeft:"5px"},itemIcons:{verticalAlign:"middle"},iconBackgroundSelected:{display:"inline-block",height:"25px",borderRadius:"25px",width:"25px",minHeight:"25px",minWidth:"25px",background:e.palette.primary.main,marginRight:"15px",paddingLeft:"7px",paddingTop:"7px",marginLeft:"15px"},helperDescription:{fontSize:"14px",marginBottom:"20px"},menuItem:{width:"958px",padding:"10px",whiteSpace:"initial",height:"fit-content",borderBottom:"0.5px solid "+e.palette.divider,borderRadius:"0px"},optionName:{marginLeft:"0px",textAlign:"left",verticalAlign:"top"},summary:{fontSize:11,textTransform:"none",width:"900px"},selectForm:{width:"250px",fontWeight:"bold",fontSize:"18px"},selectedForm:{background:"#FAFAFA",width:"960px",fontWeight:"bold",fontSize:"18px"},selectedName:{textTransform:"capitalize",background:"#EEF3F9",width:"auto",height:"56px",lineHeight:"56px",fontWeight:"bold"}})),renderErrorMessage=({message:e})=>{let t="This field is required";return isEmpty_1(e)||(t=e),jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.errorMessage",defaultMessage:"{errorMessage}",description:"Error message",values:{errorMessage:t}})},InputSelect=e=>{var{disabled:n,name:t,rules:r,variant:i="outlined",children:o,className:a,callFieldOnChange:s=!0,onChange:l,fullWidth:c=!1}=e,u=__rest$3(e,["disabled","name","rules","variant","children","className","callFieldOnChange","onChange","fullWidth"]),e=useFormContext()["control"];return jsxRuntime.exports.jsx(Controller,{control:e,name:t,rules:r,render:({field:t,fieldState:{error:e}})=>jsxRuntime.exports.jsxs(FormControl$1,Object.assign({disabled:n,className:a,variant:i,error:!isNil_1(e),fullWidth:c},{children:[jsxRuntime.exports.jsx(Select$1,Object.assign({},t,u,{onChange:e=>{s&&t.onChange(e),null!=l&&l(e)}},{children:o})),e&&r&&jsxRuntime.exports.jsx(FormHelperText$2,{children:renderErrorMessage(e)})]}))})},Dropdown=({dataTestPrefix:e,handleSelectFormValue:t,selectionItems:n,iconType:r,selectPlaceholder:i,selectIcon:o,selectedItem:a,selectFormName:s})=>{const l=useStyles$3$4()["classes"],c=useFormContext();return jsxRuntime.exports.jsx("div",Object.assign({className:a?l.selectedForm:l.selectForm},{children:jsxRuntime.exports.jsx(FormControl$1,Object.assign({fullWidth:!0,variant:"outlined"},{children:jsxRuntime.exports.jsx(InputSelect,Object.assign({name:s,rules:{required:!0},displayEmpty:!0,"data-test":e+"-select-form",IconComponent:()=>jsxRuntime.exports.jsx(UpDown,{className:l.iconStyle}),classes:a?{select:l.rootSelectedForm,icon:l.iconComponent}:{select:l.rootSelectForm},defaultValue:(e=isEmpty_1(a)?"":a,c.setValue(s,e),e),onChange:e=>{e=null==e?void 0:e.target.value,e=n[e];c.setValue(s,e),c.trigger(s),null!=t&&t(e)},onClick:()=>c.trigger(s),renderValue:e=>e?jsxRuntime.exports.jsxs("div",Object.assign({className:l.selectedName},{children:[jsxRuntime.exports.jsx(Icon$1,{classes:{root:l.iconBackgroundSelected},className:l.itemIcons,component:null!=a&&a.selectedIconName?null==r?void 0:r[a.selectedIconName]:"span"}),get_1(a,"formattedName")||get_1(a,"name")]})):jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"h6"},{children:[jsxRuntime.exports.jsx(Icon$1,{classes:{root:l.iconBackground},className:l.itemIcons,component:o}),i]}))},{children:n&&map_1(keys_1(n),e=>{var t;return jsxRuntime.exports.jsxs(MenuItem$1,Object.assign({disabled:"marketplace"===e,className:l.menuItem,"data-test":n[e].value||e,value:n[e].value||e},{children:[jsxRuntime.exports.jsx(Icon$1,{classes:{root:l.iconBackground},className:l.itemIcons,component:null!=(t=null==n?void 0:n[e])&&t.iconName?r[n[e].iconName||""]:"span"}),jsxRuntime.exports.jsxs(Grid$1,Object.assign({className:l.optionName,xs:2},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h6"},{children:n[e].formattedName||n[e].name})),jsxRuntime.exports.jsx(Typography$1,Object.assign({className:l.summary},{children:n[e].description}))]}))]}),n[e].value||e)})}))}))}))},distributionTypes$1=(!function(e){e.Private="private",e.OrgLocked="org_locked",e.Sharable="sharable",e.Public="public",e.Marketplace="marketplace",e.InstanceLocked="instance_locked"}(DistributionType=DistributionType||{}),{private:{formName:"distributionType",name:"Private",formattedName:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-formatted-name-private",defaultMessage:"Private",description:"label for sharable"}),iconName:"Private",selectedIconName:"PrivateWhite",shortDescription:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-short-description-private",defaultMessage:"Your engine will not be distributed and is private to your instance.",description:"short desc for private"}),description:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-description-private",defaultMessage:"Your engine will not be distributed and is private to your instance.",description:"desc for private"}),value:DistributionType.Private,link:""},org_locked:{formName:"distributionType",name:"Org Locked",formattedName:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-formatted-name-org-locked",defaultMessage:"Org Locked",description:"label for Org Locked"}),iconName:"OrgLocked",selectedIconName:"OrgLockedWhite",shortDescription:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-short-description-org-locked",defaultMessage:"Your engine will only be distributed to instances within your organization.",description:"short desc for Org Locked"}),description:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-description-org-locked",defaultMessage:"Your engine will only be distributed to instances within your organization.",description:"desc for org locked"}),value:DistributionType.OrgLocked,link:""},sharable:{formName:"distributionType",name:"Sharable",formattedName:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-formatted-name-sharable",defaultMessage:"Sharable",description:"label for sharable"}),iconName:"Sharable",selectedIconName:"SharableWhite",shortDescription:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-short-description-sharable",defaultMessage:"Your engine can be distributed to other organizations on any instance.",description:"short desc for sharable"}),description:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-description-sharable",defaultMessage:"Your engine can be distributed to other organizations on any instance.",description:"desc for sharable"}),value:DistributionType.Sharable,link:""},public:{formName:"distributionType",name:"Public",formattedName:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-message-name-public",defaultMessage:"Public",description:"label for public"}),iconName:"Public",selectedIconName:"PublicWhite",shortDescription:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-short-description-public",defaultMessage:"Your engine will be distributed to all instances in and outside of your organization.",description:"short desc for public"}),description:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-description-public",defaultMessage:"Your engine will be distributed to all instances in and outside of your organization.",description:"desc for public"}),value:DistributionType.Public,link:""},instance_locked:{formName:"distributionType",name:"Instance locked",formattedName:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-formatted-message-instance-locked",defaultMessage:"Instance locked",description:"label for Instance locked"}),iconName:"InstanceLocked",selectedIconName:"InstanceLockedWhite",shortDescription:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-short-description-instance-locked",defaultMessage:"Your engine will be sharable to other organizations on your instance only.",description:"short desc for Instance locked"}),description:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-description-instance-locked",defaultMessage:"Your engine will be sharable to other organizations on your instance only.",description:"desc for instance locked"}),value:"instance_locked",link:""},marketplace:{formName:"distributionType",name:"Marketplace",formattedName:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-formatted-name-marketplace",defaultMessage:"Marketplace",description:"label for marketplace"}),iconName:"Marketplace",selectedIconName:"MarketplaceWhite",shortDescription:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-short-description-marketplace",defaultMessage:"Coming soon...",description:"short desc for marketplace"}),description:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-engine-center-new.distribution-type-description-marketplace",defaultMessage:"Coming soon...",description:"desc for marketplace"}),value:DistributionType.Marketplace,link:""}}),DistributionTypes=({handleSelectType:e,selectedType:t,description:n,idPrefix:r,inputName:i})=>{var o=useStyles$3$4()["classes"];return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":r+"-title",style:{fontWeight:"bold"},variant:"h5"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"{idPrefix}.distribution-type-generic-select-title",defaultMessage:"Distribution Types",description:"Form label for distribution types",values:{idPrefix:r}})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":r+"-description",className:o.helperDescription},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"{idPrefix}.distribution-type-generic-select-description",defaultMessage:"{description}",description:"Add Distribution Types for Engines | Hub",values:{idPrefix:r,description:n||"Add Distribution Types for Engines | Hub."}})})),jsxRuntime.exports.jsx(Dropdown,{selectFormName:i||"engineFlag",selectionItems:distributionTypes$1,iconType:EngineFlagIcons,selectIcon:Bookmark,selectPlaceholder:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"{idPrefix}.distribution-type-generic-select-placeholder",defaultMessage:"Instance Locked",description:"Placeholder for distribution type",values:{idPrefix:r}}),dataTestPrefix:r+".distribution-type",handleSelectFormValue:e,selectedItem:isEmpty_1(t)?null:find_1(distributionTypes$1,{value:t})})]})};var distributionTypeJsx=Object.freeze({__proto__:null,DistributionTypes:DistributionTypes});const formattedMessages=(e,t)=>({clearButtonLabel:e.formatMessage({id:"reusable-utils.filters.clear-button-label",defaultMessage:[{type:0,value:"Clear"}]}),statusFilterLabel:e.formatMessage({id:"reusable-utils.filters.status-label",defaultMessage:[{type:0,value:"Status"}]}),allLabel:e.formatMessage({id:"reusable-utils.filters.all-placeholder",defaultMessage:[{type:0,value:"All"}]}),okButtonLabel:e.formatMessage({id:"reusable-utils.filters.ok-button-label",defaultMessage:[{type:0,value:"OK"}]}),dateRangeFilterDefaultValueLabel:e.formatMessage({id:"reusable-utils.filters.any-time-label",defaultMessage:[{type:1,value:"days"},{type:0,value:" days"}]},{days:t||void 0}),userFilterLabel:e.formatMessage({id:"reusable-utils.filters.jobs.user-label",defaultMessage:[{type:0,value:"Email"}]})}),StatusFilter=({entity:t,status:n,setFilterValue:e,filterLabel:r,defaultPlaceholder:i,clearBtnLabel:o,clearAndApply:a})=>{var s="job"===t?["pending","running","complete","cancelled"]:["pending","running","complete","queued","accepted","failed","cancelled","standby_pending","waiting","resuming","aborted","paused"];const[l,c]=react$1.exports.useState([]),u=useStyles$7$2()["classes"];var d=useIntl();const p=useDispatch(),{statusFilterLabel:f,allLabel:h,clearButtonLabel:m}=formattedMessages(d);react$1.exports.useEffect(()=>{c(e=>0===e.length&&null===n||e.length===(null==n?void 0:n.length)?e:n||[])},[n]);return jsxRuntime.exports.jsxs(FormControl$1,Object.assign({size:"small",className:u.formControl},{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({sx:{display:"flex",justifyContent:"space-between"}},{children:[jsxRuntime.exports.jsx("label",Object.assign({className:u.label},{children:r||f})),0<l.length&&jsxRuntime.exports.jsx("span",Object.assign({onClick:()=>{c([]),p(e({filter:"status",value:[]})),a&&a()},className:u.clearButton},{children:o||m}))]})),jsxRuntime.exports.jsx(Select$1,Object.assign({multiple:!0,displayEmpty:!0,value:l,onChange:e=>{c(e.target.value)},onClose:()=>{p(e({filter:"status",value:l}))},variant:"outlined",renderValue:e=>{var t;return 0===e.length?jsxRuntime.exports.jsx("div",{children:i||h}):(t=e["length"],jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:e.join(", "),className:u.title},{children:jsxRuntime.exports.jsx("span",Object.assign({className:u.title},{children:1===t?e[0]:t+" Statuses"}))})))},className:u.selectField,"data-test":t+"s-filter-status-input"},{children:s.map(e=>jsxRuntime.exports.jsx(MenuItem$1,Object.assign({value:e,"data-test":t+"s-filter-status-input-option","data-value":e},{children:e.replace("_"," ")}),e))}))]}))};var statusFilterJsx=Object.freeze({__proto__:null,StatusFilter:StatusFilter});function buildFormatLongFn(t){return function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=e.width?String(e.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}function buildLocalizeFn(i){return function(e,t){t="formatting"===(null!=t&&t.context?String(t.context):"standalone")&&i.formattingValues?(r=i.defaultFormattingWidth||i.defaultWidth,n=null!=t&&t.width?String(t.width):r,i.formattingValues[n]||i.formattingValues[r]):(n=i.defaultWidth,r=null!=t&&t.width?String(t.width):i.defaultWidth,i.values[r]||i.values[n]);var n,r=i.argumentCallback?i.argumentCallback(e):e;return t[r]}}function buildMatchFn(o){return function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&o.matchPatterns[r]||o.matchPatterns[o.defaultMatchWidth],i=e.match(i);return i?(t=i[0],i=r&&o.parsePatterns[r]||o.parsePatterns[o.defaultParseWidth],r=Array.isArray(i)?findIndex$1(i,function(e){return e.test(t)}):findKey(i,function(e){return e.test(t)}),i=o.valueCallback?o.valueCallback(r):r,{value:i=n.valueCallback?n.valueCallback(i):i,rest:e.slice(t.length)}):null}}function findKey(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function findIndex$1(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function buildMatchPatternFn(i){return function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=e.match(i.matchPattern);return r&&(r=r[0],t=e.match(i.parsePattern))?(t=i.valueCallback?i.valueCallback(t[0]):t[0],{value:t=n.valueCallback?n.valueCallback(t):t,rest:e.slice(r.length)}):null}}var formatDistanceLocale$2={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},formatDistance$4=function(e,t,n){e=formatDistanceLocale$2[e],e="string"==typeof e?e:1===t?e.one:e.other.replace("{{count}}",t.toString());return null!=n&&n.addSuffix?n.comparison&&0<n.comparison?"in "+e:e+" ago":e},formatDistance$5=formatDistance$4,dateFormats$2={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},timeFormats$2={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats$2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$4={date:buildFormatLongFn({formats:dateFormats$2,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$2,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$2,defaultWidth:"full"})},formatLong$5=formatLong$4,formatRelativeLocale$2={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},formatRelative$4=function(e,t,n,r){return formatRelativeLocale$2[e]},formatRelative$5=formatRelative$4,eraValues$2={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},quarterValues$2={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},monthValues$2={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},dayValues$2={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriodValues$2={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},formattingDayPeriodValues$1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ordinalNumber$2=function(e,t){var n=Number(e),e=n%100;if(20<e||e<10)switch(e%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},localize$4={ordinalNumber:ordinalNumber$2,era:buildLocalizeFn({values:eraValues$2,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$2,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:buildLocalizeFn({values:monthValues$2,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$2,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$2,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$1,defaultFormattingWidth:"wide"})},localize$5=localize$4,matchOrdinalNumberPattern$2=/^(\d+)(th|st|nd|rd)?/i,parseOrdinalNumberPattern$2=/\d+/i,matchEraPatterns$2={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},parseEraPatterns$2={any:[/^b/i,/^(a|c)/i]},matchQuarterPatterns$2={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},parseQuarterPatterns$2={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$2={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},parseMonthPatterns$2={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns$2={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},parseDayPatterns$2={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},matchDayPeriodPatterns$2={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},parseDayPeriodPatterns$2={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},match$4={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$2,parsePattern:parseOrdinalNumberPattern$2,valueCallback:function(e){return parseInt(e,10)}}),era:buildMatchFn({matchPatterns:matchEraPatterns$2,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$2,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$2,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$2,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:buildMatchFn({matchPatterns:matchMonthPatterns$2,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$2,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$2,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$2,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$2,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$2,defaultParseWidth:"any"})},match$5=match$4,locale$2={code:"en-US",formatDistance:formatDistance$5,formatLong:formatLong$5,formatRelative:formatRelative$5,localize:localize$5,match:match$4,options:{weekStartsOn:0,firstWeekContainsDate:1}},enUS=locale$2,formatDistanceLocale$1={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},formatDistance$2=function(e,t,n){e=formatDistanceLocale$1[e],e="string"==typeof e?e:1===t?e.one:e.other.replace("{{count}}",t.toString());return null!=n&&n.addSuffix?n.comparison&&0<n.comparison?"en "+e:"hace "+e:e},formatDistance$3=formatDistance$2,dateFormats$1={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},timeFormats$1={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats$1={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$2={date:buildFormatLongFn({formats:dateFormats$1,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$1,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$1,defaultWidth:"full"})},formatLong$3=formatLong$2,formatRelativeLocale$1={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},formatRelativeLocalePlural={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},formatRelative$2=function(e,t,n,r){return(1!==t.getUTCHours()?formatRelativeLocalePlural:formatRelativeLocale$1)[e]},formatRelative$3=formatRelative$2,eraValues$1={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},quarterValues$1={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},monthValues$1={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},dayValues$1={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},dayPeriodValues$1={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},formattingDayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},ordinalNumber$1=function(e,t){return Number(e)+"º"},localize$2={ordinalNumber:ordinalNumber$1,era:buildLocalizeFn({values:eraValues$1,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$1,defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:buildLocalizeFn({values:monthValues$1,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$1,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$1,defaultWidth:"wide",formattingValues:formattingDayPeriodValues,defaultFormattingWidth:"wide"})},localize$3=localize$2,matchOrdinalNumberPattern$1=/^(\d+)(º)?/i,parseOrdinalNumberPattern$1=/\d+/i,matchEraPatterns$1={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},parseEraPatterns$1={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},matchQuarterPatterns$1={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},parseQuarterPatterns$1={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns$1={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},parseMonthPatterns$1={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},matchDayPatterns$1={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},parseDayPatterns$1={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},matchDayPeriodPatterns$1={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},parseDayPeriodPatterns$1={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},match$2$1={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$1,parsePattern:parseOrdinalNumberPattern$1,valueCallback:function(e){return parseInt(e,10)}}),era:buildMatchFn({matchPatterns:matchEraPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$1,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$1,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:buildMatchFn({matchPatterns:matchMonthPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$1,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$1,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$1,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$1,defaultParseWidth:"any"})},match$3=match$2$1,locale$1={code:"es",formatDistance:formatDistance$3,formatLong:formatLong$3,formatRelative:formatRelative$3,localize:localize$3,match:match$2$1,options:{weekStartsOn:1,firstWeekContainsDate:1}},es=locale$1,formatDistanceLocale={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},formatDistance=function(e,t,n){e=formatDistanceLocale[e],e="string"==typeof e?e:1===t?e.one:e.other.replace("{{count}}",String(t));return null!=n&&n.addSuffix?n.comparison&&0<n.comparison?"dans "+e:"il y a "+e:e},formatDistance$1=formatDistance,dateFormats={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},timeFormats={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateTimeFormats={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong={date:buildFormatLongFn({formats:dateFormats,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats,defaultWidth:"full"})},formatLong$1=formatLong,formatRelativeLocale={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},formatRelative=function(e,t,n,r){return formatRelativeLocale[e]},formatRelative$1=formatRelative,eraValues={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},quarterValues={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},monthValues={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},dayValues={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},dayPeriodValues={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},ordinalNumber=function(e,t){e=Number(e),t=null==t?void 0:t.unit;return 0===e?"0":e+(1===e?t&&["year","week","hour","minute","second"].includes(t)?"ère":"er":"ème")},localize={ordinalNumber:ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:buildLocalizeFn({values:monthValues,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues,defaultWidth:"wide"})},localize$1=localize,matchOrdinalNumberPattern=/^(\d+)(ième|ère|ème|er|e)?/i,parseOrdinalNumberPattern=/\d+/i,matchEraPatterns={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},parseEraPatterns={any:[/^av/i,/^ap/i]},matchQuarterPatterns={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},parseQuarterPatterns={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},parseMonthPatterns={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},parseDayPatterns={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},matchDayPeriodPatterns={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},parseDayPeriodPatterns={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},match$6={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:function(e){return parseInt(e)}}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:buildMatchFn({matchPatterns:matchMonthPatterns,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns,defaultParseWidth:"any"})},match$1$1=match$6,locale={code:"fr",formatDistance:formatDistance$1,formatLong:formatLong$1,formatRelative:formatRelative$1,localize:localize$1,match:match$6,options:{weekStartsOn:1,firstWeekContainsDate:4}},fr=locale;const locales={en:enUS,fr:locale,es:es},MAX_NUMBER_OF_DAYS=90,DAY_IN_MS=864e5,toDate=e=>void 0===e?e:new Date(e),DateRangeFilter=({entity:e="jobs",dateTimeFilter:t,setFilterValue:n,locale:r="en",dateRangeLimit:i=MAX_NUMBER_OF_DAYS,clearAndApply:o})=>{const[a,s]=react$1.exports.useState(!1),[l,c]=react$1.exports.useState({startDate:toDate(t.fromDateTime),endDate:toDate(t.toDateTime)});var u=useIntl();const d=useDispatch();var p=useStyles$7$2()["classes"];const f=Math.floor(i);var{okButtonLabel:i,clearButtonLabel:h,dateRangeFilterDefaultValueLabel:m}=formattedMessages(u,f),g=()=>{var e;d(n({filter:"dateTimeFilter",value:{fromDateTime:null==(e=l.startDate)?void 0:e.toISOString(),toDateTime:null==(e=l.endDate)?void 0:e.toISOString(),field:"createdDateTime"}})),s(!1)},y=()=>{d(n({filter:"dateTimeFilter",value:{field:"createdDateTime"}})),o&&o(),c({}),s(!1)},u=t.fromDateTime||t.toDateTime?u.formatDate(t.fromDateTime)+" - "+u.formatDate(t.toDateTime):m;return jsxRuntime.exports.jsxs(FormControl$1,Object.assign({size:"small",className:p.formControl},{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({sx:{display:"flex",justifyContent:"space-between"}},{children:[jsxRuntime.exports.jsx("label",Object.assign({htmlFor:e+"-filter-date-range",className:p.label},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"reusable-utils.filter-range-label",defaultMessage:"Date/time",description:"label for the jobs filter date range picker"})})),(t.fromDateTime||t.toDateTime)&&jsxRuntime.exports.jsx("span",Object.assign({className:p.clearButton,onClick:y,"data-testid":"date-time-filter.clear-btn"},{children:h}))]})),jsxRuntime.exports.jsx("div",Object.assign({id:e+"-filter-date-range","data-test":e+"-filter-date-range-display",className:p.dateRangeDisplay,onClick:()=>{c({startDate:toDate(t.fromDateTime),endDate:toDate(t.toDateTime)}),s(!0)}},{children:u})),jsxRuntime.exports.jsxs(Dialog$1,Object.assign({open:a,disableEscapeKeyDown:!0,onClose:g,maxWidth:"md"},{children:[jsxRuntime.exports.jsx(DialogContent$1,Object.assign({"data-test":e+"-filter-date-range-dialog-content"},{children:jsxRuntime.exports.jsx(FormControl$1,Object.assign({variant:"standard"},{children:jsxRuntime.exports.jsx(LocalizationProvider,Object.assign({dateAdapter:AdapterDateFns,adapterLocale:locales[r]},{children:jsxRuntime.exports.jsxs(Grid$1,Object.assign({container:!0,spacing:3},{children:[jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:12,md:6,"data-test":e+"-filter-date-range-start-calendar"},{children:jsxRuntime.exports.jsx(CalendarPicker,{date:l.startDate||null,onChange:e=>{const t=e;null!==t&&void 0!==t&&t.setHours(0,0,0,0),c(({endDate:e})=>{e=e||new Date;return t&&e.getTime()>t.getTime()+f*DAY_IN_MS&&e.setTime(t.getTime()+f*DAY_IN_MS),{startDate:t||void 0,endDate:e}})},maxDate:l.endDate||new Date,defaultCalendarMonth:l.startDate})})),jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:12,md:6,"data-test":e+"-filter-date-range-end-calendar"},{children:jsxRuntime.exports.jsx(CalendarPicker,{date:l.endDate||null,onChange:e=>{const t=e;null!==t&&void 0!==t&&t.setHours(23,59,59),c(e=>Object.assign(Object.assign({},e),{endDate:t||void 0}))},maxDate:new Date,disabled:!l.startDate,defaultCalendarMonth:l.endDate})}))]}))}))}))})),jsxRuntime.exports.jsxs(DialogActions$1,Object.assign({"data-test":e+"-filter-date-range-dialog-actions"},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({"data-test":e+"-filter-date-range-dialog-clear-button",onClick:y},{children:h})),jsxRuntime.exports.jsx(Button$1,Object.assign({"data-test":e+"-filter-date-range-dialog-ok-button",onClick:g},{children:i}))]}))]}))]}))};var dateRangeFilterJsx=Object.freeze({__proto__:null,DateRangeFilter:DateRangeFilter});const TableDebugMenu=e=>{const[t,n]=react$1.exports.useState(!0);var r=e=>jsxRuntime.exports.jsxs(Stack$4,Object.assign({direction:"row",spacing:1,justifyContent:"space-between"},{children:[jsxRuntime.exports.jsxs(Stack$4,Object.assign({sx:{width:"50%"}},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({sx:{fontWeight:"bold"}},{children:null==e?void 0:e.label})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"caption"},{children:null==e?void 0:e.description}))]})),jsxRuntime.exports.jsx(Box$1,Object.assign({sx:{display:"grid",placeItems:"center",fontSize:"20px",fontWeight:"bold",color:"#0c53b0"}},{children:null==e?void 0:e.value}))]}));return jsxRuntime.exports.jsx(Box$1,Object.assign({sx:{position:"absolute",bottom:"0",right:"0",border:"2px solid #d7d7d7",margin:"25px",marginTop:"0",marginRight:"50px",boxSizing:"border-box",background:"#fff",borderRadius:"10px",boxShadow:"rgba(0, 0, 0, 0.16) 0px 10px 36px 0px,rgba(0, 0, 0, 0.06) 0px 0px 0px 1px",display:"flex",flexDirection:"column",padding:"10px 30px"}},{children:jsxRuntime.exports.jsxs(Stack$4,Object.assign({width:"100%",spacing:2,divider:jsxRuntime.exports.jsx(Divider$1,{})},{children:[jsxRuntime.exports.jsxs(Stack$4,Object.assign({direction:"row",sx:{gap:"10px"},pt:"10px",pb:"10px",justifyContent:"space-between"},{children:[jsxRuntime.exports.jsx(()=>jsxRuntime.exports.jsxs(Stack$4,Object.assign({sx:{alignItems:"center",background:"#e9f3fd",padding:"5px",borderRadius:"7px",color:"#0b53b0",gap:"5px",paddingRight:"10px"},direction:"row"},{children:[jsxRuntime.exports.jsx(TableView,{}),jsxRuntime.exports.jsx(Typography$1,Object.assign({align:"center",variant:"h2"},{children:"TableInfiniteScroll"}))]})),{}),jsxRuntime.exports.jsx(LoadingButton$1,Object.assign({variant:"outlined",onClick:null==e?void 0:e.fetchMore,loading:null==e?void 0:e.isLoading},{children:"Fetch More Items"})),jsxRuntime.exports.jsx(()=>jsxRuntime.exports.jsxs(Box$1,Object.assign({onClick:()=>n(e=>!e),sx:{width:"40px",display:"grid",placeItems:"center",color:"gray","&:hover":{background:"#f7f7f7",cursor:"pointer",borderRadius:"5px",color:"black"}}},{children:[!t&&jsxRuntime.exports.jsx(ExpandLess,{}),t&&jsxRuntime.exports.jsx(ExpandMore,{})]})),{})]})),t&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(r,{label:"isLoading",value:null!=e&&e.isLoading?jsxRuntime.exports.jsx(Typography$1,Object.assign({color:"green"},{children:"Loading More"})):"false"}),jsxRuntime.exports.jsx(r,{label:"hasMore",description:"Are there more items to fetch from the server?",value:null!=e&&e.hasMore?"true":"false"}),jsxRuntime.exports.jsx(r,{label:"offset",description:"This is the next GraphQL page starting offset",value:null==e?void 0:e.offset}),jsxRuntime.exports.jsx(r,{label:"items.length",description:"Total amount of items fetched",value:null==e?void 0:e.items.length}),jsxRuntime.exports.jsx(r,{label:"itemHeight",description:"This is the Pixel height of each row",value:`${null==e?void 0:e.itemHeight}px`}),jsxRuntime.exports.jsx(r,{label:"Header Component",description:"Is a component passed as a header?",value:null!=e&&e.hasHeader?"true":"false"}),(null==e?void 0:e.hasHeader)&&jsxRuntime.exports.jsx(r,{label:"adjustTableHeight",description:"If including a header, you need to adjust the container height with this prop.",value:`${null==e?void 0:e.adjustTableHeight}px`}),!(null==e||!e.adjustTableWidth)&&jsxRuntime.exports.jsx(r,{label:"adjustTableWidth",description:"You can adjust the container width with this prop.",value:`${null==e?void 0:e.adjustTableWidth}px`})]})]}))}))},TableLoadingState=({itemHeight:n,LoadingComponent:r})=>{const t={overflow:"hidden",width:"100%"},i=({containerHeight:e})=>{e=Math.ceil(e/n);return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:new Array(e).fill(null).map((e,t)=>jsxRuntime.exports.jsx(TableRowLoader,{LoadingComponent:r,height:n},t))})};return jsxRuntime.exports.jsx(Grid$1,Object.assign({sx:{position:"relative",height:"99%",overflow:"hidden"}},{children:jsxRuntime.exports.jsx(AutoSizer,Object.assign({style:{height:"auto",width:"auto"}},{children:({height:e})=>jsxRuntime.exports.jsx(Box$1,Object.assign({sx:Object.assign(Object.assign({},t),{height:e})},{children:jsxRuntime.exports.jsx(i,{containerHeight:e})}))}))}))},TableRowLoader=({height:e,LoadingComponent:t})=>{return jsxRuntime.exports.jsxs(Box$1,Object.assign({sx:{height:e,display:"grid",placeItems:"center",overflow:"hidden"}},{children:[!t&&jsxRuntime.exports.jsx(Skeleton$1,{animation:"wave",sx:{transform:"none"},width:"99.5%",height:"90%"}),t&&jsxRuntime.exports.jsx(t,{})]}))};var img="data:image/svg+xml,%3csvg width='275' height='275' viewBox='0 0 275 275' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='137.5' cy='137.5' r='127.5' fill='white' stroke='%23F9F9F9' stroke-width='20'/%3e %3cpath d='M181 134.5L138.5 120.5V170L181 134.5Z' fill='%23FE8D00'/%3e %3cpath d='M138.5 120.5L94.5 135L138.5 170.5V120.5Z' fill='%23FD9F00'/%3e %3cpath d='M137.5 204V149L181.5 134.5V188.5L137.5 204Z' fill='%23FDC000'/%3e %3cpath d='M137.5 149L94.5 134.5V188.5L137.5 204V149Z' fill='%23FDB200'/%3e %3cpath d='M121.5 171L137 149L94.5 146V167L121.5 171Z' fill='%23FE8D00'/%3e %3cpath d='M159.5 163L137.5 149L181 134.5L200.5 148.5L159.5 163Z' fill='%23FEECB2'/%3e %3cpath d='M116 162.5L137.5 149L94.5 135L74 148L116 162.5Z' fill='%23FED966'/%3e %3cpath d='M159 107L138.5 120.5L181 134.5L202.5 122L159 107Z' fill='%23FDC000'/%3e %3cpath d='M75 121.5L94.5 135L138.5 120.5L118 107L75 121.5Z' fill='%23FEECB2'/%3e %3cpath d='M136.598 140.5C129.265 137.5 117.398 129.4 128.598 121C142.598 110.5 146.598 105.5 143.598 99.5C140.598 93.5 131.098 96 132.598 104C134.098 112 144.598 119 155.598 111.5C166.598 104 166.598 81 148.598 73' stroke='%23B9D1E1' stroke-dasharray='2 2'/%3e %3cpath d='M152.5 72.5C152.5 72.7215 152.381 72.9602 152.114 73.1607C151.847 73.3612 151.455 73.5 151 73.5C150.545 73.5 150.153 73.3612 149.886 73.1607C149.619 72.9602 149.5 72.7215 149.5 72.5C149.5 72.2785 149.619 72.0398 149.886 71.8393C150.153 71.6388 150.545 71.5 151 71.5C151.455 71.5 151.847 71.6388 152.114 71.8393C152.381 72.0398 152.5 72.2785 152.5 72.5Z' stroke='%23839DAE'/%3e %3ccircle cx='148.5' cy='72.5' r='1.5' fill='%23B9D1E1'/%3e%3cpath d='M150.5 75C150.5 75.4546 150.361 75.8468 150.161 76.1142C149.96 76.3814 149.722 76.5 149.5 76.5C149.278 76.5 149.04 76.3814 148.839 76.1142C148.639 75.8468 148.5 75.4546 148.5 75C148.5 74.5454 148.639 74.1532 148.839 73.8858C149.04 73.6186 149.278 73.5 149.5 73.5C149.722 73.5 149.96 73.6186 150.161 73.8858C150.361 74.1532 150.5 74.5454 150.5 75Z' stroke='%23839DAE'/%3e%3c/svg%3e";const TableEmptyState=({EmptyStateComponent:e,CustomMessage:t})=>{return e?jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:e}):jsxRuntime.exports.jsx(Grid$1,Object.assign({sx:{position:"relative",height:"99%",overflow:"hidden"}},{children:jsxRuntime.exports.jsx(Box$1,Object.assign({sx:Object.assign({},{overflow:"hidden",width:"100%",display:"flex",justifyContent:"center",marginTop:"80px"})},{children:jsxRuntime.exports.jsx(()=>{var e=t?jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:t}):jsxRuntime.exports.jsx(FormattedMessage$1,{id:"shared-utils.table-infinite-scroll.empty-state-message",defaultMessage:"No items found",description:"Table empty state, nothing found message"});return jsxRuntime.exports.jsxs(Stack$4,Object.assign({spacing:2,display:"flex",alignItems:"center"},{children:[jsxRuntime.exports.jsx("img",{width:"270px",draggable:"false",src:img,alt:"empty state image"}),jsxRuntime.exports.jsx(Typography$1,Object.assign({component:"div",fontWeight:"strong"},{children:e}))]}))},{})}))}))},TableErrorState=({ErrorStateComponent:e,CustomMessage:t,onRetry:n})=>{return e?jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:e}):jsxRuntime.exports.jsx(Grid$1,Object.assign({sx:{position:"relative",height:"99%",overflow:"hidden"}},{children:jsxRuntime.exports.jsx(Box$1,Object.assign({sx:Object.assign({},{overflow:"hidden",width:"100%",display:"grid",placeItems:"center",marginTop:"80px"})},{children:jsxRuntime.exports.jsx(()=>{var e=t?jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:t}):jsxRuntime.exports.jsx(FormattedMessage$1,{id:"shared-utils.table-infinite-scroll.error-state-message",defaultMessage:"Error Loading Items",description:"Table error state, unable to load items message"});return jsxRuntime.exports.jsxs(Stack$4,Object.assign({spacing:2,display:"flex",alignItems:"center"},{children:[jsxRuntime.exports.jsx(AlarmTwo,{fontSize:"large"}),jsxRuntime.exports.jsx(Typography$1,Object.assign({fontWeight:"strong"},{children:e})),jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:n,variant:"contained"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"shared-utils.table-infinite-scroll.error-state-button",defaultMessage:"Retry",description:"Table error state, retry button"})}))]}))},{})}))}))},TableInfiniteScroll=({hasMore:t,fetchMore:e,fetchOnMount:n=!1,offset:r,adjustTableHeight:i=0,adjustTableWidth:o=0,items:a,itemHeight:s,isLoading:l,error:c,onRetry:u,TableRowComponent:d,TableEmptyStateComponent:p,TableErrorStateComponent:f,TableHeaderComponent:h,TableRowLoadingComponent:m,sx:g={},testId:y="",showDebug:v=!1,FixedSizeListProps:x={},AutoSizerProps:$={},InfiniteLoaderProps:b={},ContainerProps:C={},RowContainerProps:S={},threshold:w=15,className:_="",MessageEmptyState:T,MessageErrorState:E,listRef:j})=>{var R;const I=react$1.exports.useRef(null),[O,k]=react$1.exports.useState(null!=x&&x.initialScrollOffset?null==x?void 0:x.initialScrollOffset:0),A=t?a.length+1:a.length,M=e=>!t||e<a.length,L=()=>{l||e()};const P=debounce_1(e=>{k(e)},500),N=({index:e,style:t,isScrolling:n})=>{var r=a[e];return M(e)?jsxRuntime.exports.jsx(Box$1,Object.assign({"data-testid":"sdk-table-infinite-scroller-row-"+(e+1),style:t},S,{children:jsxRuntime.exports.jsx(d,{item:r,index:e,isScrolling:n})}),e):jsxRuntime.exports.jsx(Box$1,Object.assign({"data-testid":"sdk-table-infinite-scroller-row-loading-"+(e+1),style:t},S,{children:jsxRuntime.exports.jsx(TableRowLoader,{height:s,LoadingComponent:m})}))};return react$1.exports.useEffect(()=>{n&&e()},[]),react$1.exports.useEffect(()=>{const t=O;setTimeout(()=>{var e;return I&&(null==(e=I.current)?void 0:e._listRef.scrollToItem(t,"start"))},0)},[s]),react$1.exports.useEffect(()=>{var e;j&&(j.current=null==(e=I.current)?void 0:e._listRef)},[null==(R=I.current)?void 0:R._listRef,j]),c?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(TableErrorState,{ErrorStateComponent:f,onRetry:()=>{(u||e)()},CustomMessage:E}),v&&jsxRuntime.exports.jsx(TableDebugMenu,{adjustTableHeight:i,adjustTableWidth:o,hasMore:t,hasHeader:!!h,isLoading:l,items:a,itemHeight:s,fetchMore:e,offset:r})]}):l&&!c&&0===a.length?jsxRuntime.exports.jsx(TableLoadingState,{itemHeight:s,LoadingComponent:m}):l||c||0!==a.length?jsxRuntime.exports.jsxs(Grid$1,Object.assign({"data-testid":y||"sdk-table-infinite-scroll-container",sx:Object.assign({position:"relative",height:"100%",overflow:"hidden"},g),className:_},C,{children:[h&&jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:h}),jsxRuntime.exports.jsx(AutoSizer,Object.assign({},$,{children:({height:n,width:r})=>jsxRuntime.exports.jsx(InfiniteLoader,Object.assign({ref:I,isItemLoaded:M,itemCount:A,loadMoreItems:L,threshold:w},b,{children:({onItemsRendered:t,ref:e})=>jsxRuntime.exports.jsx(FixedSizeList,Object.assign({ref:e,height:n+i,width:r+o,itemCount:a.length,itemSize:s,onItemsRendered:e=>{t(e),e=e.visibleStartIndex,l||P(e)},initialScrollOffset:0},x,{children:N}))}))})),v&&jsxRuntime.exports.jsx(TableDebugMenu,{adjustTableHeight:i,adjustTableWidth:o,hasMore:t,hasHeader:!!h,isLoading:l,items:a,itemHeight:s,fetchMore:e,offset:r})]})):jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(TableEmptyState,{EmptyStateComponent:p,CustomMessage:T}),v&&jsxRuntime.exports.jsx(TableDebugMenu,{adjustTableHeight:i,adjustTableWidth:o,hasMore:t,hasHeader:!!h,isLoading:l,items:a,itemHeight:s,fetchMore:e,offset:r})]})};var tableInfiniteScrollJsx=Object.freeze({__proto__:null,TableInfiniteScroll:TableInfiniteScroll});const formatTime=e=>{e=e.toLocaleTimeString().split(" ");return e[0]=e[0].split(":"),e[0].pop(),e[0]=e[0].join(":"),e[0]+" "+e[1]},truncatedString=(e,t)=>e.length>t?jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:e,arrow:!0},{children:jsxRuntime.exports.jsxs("span",{children:[e.slice(0,t).trim(),"..."]})})):jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:e});function usePrevious$3(e){const t=react$1.exports.useRef();return react$1.exports.useEffect(()=>{t.current=e},[e]),t.current}const getTimeDifference=e=>{var t=(new Date).getTime();return(new Date(e).getTime()-t)/1e3/60},totalRunTime=(e,t,n)=>{e=new Date(e).getTime();let r=(new Date(t).getTime()-e)/1e3,i="";var t=n.formatMessage({id:"processing-center-overview-tab.total-run-time-day",defaultMessage:[{type:0,value:"day"}]}),e=n.formatMessage({id:"processing-center-overview-tab.total-run-time.days",defaultMessage:[{type:0,value:"days"}]}),o=n.formatMessage({id:"processing-center-overview-tab.total-run-time.hour",defaultMessage:[{type:0,value:"hour"}]}),a=n.formatMessage({id:"processing-center-overview-tab.total-run-time.hours",defaultMessage:[{type:0,value:"hours"}]}),s=n.formatMessage({id:"processing-center-overview-tab.total-run-time.minute",defaultMessage:[{type:0,value:"minute"}]}),l=n.formatMessage({id:"processing-center-overview-tab.total-run-time.minutes",defaultMessage:[{type:0,value:"minutes"}]}),n=n.formatMessage({id:"processing-center-overview-tab.total-run-time.just-now",defaultMessage:[{type:0,value:"Just Now"}]}),c=Math.floor(r/86400),c=(c&&(r-=3600*c*24,i+=c+` ${1===c?t:e} `),Math.floor(r/3600)),t=(c&&(r-=3600*c,i+=c+` ${1===c?o:a} `),Math.floor(r/60));return t&&(i+=t+" "+(1===t?s:l)),i=i||n};var index$1=Object.freeze({__proto__:null,formatTime:formatTime,truncatedString:truncatedString,usePrevious:usePrevious$3,getTimeDifference:getTimeDifference,totalRunTime:totalRunTime});const visuallyHidden$3={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};var EStatusPillType,EngineFieldType,visuallyHidden$1$1=visuallyHidden$3;const SHARED_TEXT$2={closePanel:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"reusable-utils.panel-components.header.close-panel",defaultMessage:"Close",description:"Close panel icon for a panel header"})},PanelHeader$1=({title:e,height:t=64,PanelActions:n,testId:r,onPanelClose:i,disableBorder:o})=>jsxRuntime.exports.jsxs(Box$1,Object.assign({sx:{alignItems:"center",borderBottom:o?void 0:e=>"0.5px solid "+e.palette.divider,display:"flex",justifyContent:"space-between",height:t,padding:e=>e.spacing(2,2,2,6)}},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({sx:{userSelect:"none",fontStyle:"normal",fontSize:"18px",lineHeight:e=>e.spacing(5),letterSpacing:"0.25px",textTransform:"uppercase",color:e=>e.palette.text.secondary},variant:"h1","data-testid":"panel-header-"+r},{children:e})),jsxRuntime.exports.jsxs(Stack$4,Object.assign({direction:"row",alignItems:"center"},{children:[n,i&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({style:visuallyHidden$1$1,id:"panel-header-close-"+r},{children:SHARED_TEXT$2.closePanel()})),jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:SHARED_TEXT$2.closePanel()},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({onClick:i,"aria-labelledby":"panel-header-close-"+r,"data-testid":"panel-header-close-"+r,size:"large"},{children:jsxRuntime.exports.jsx(Close$1,{})}))}))]})]}))]})),PanelContainer=t=>{var e=(useSelector(panelsSelector)||[]).find(e=>e.panelId===t.panelId)||{panelConfig:{dimmed:0}},e=0<(null==(e=null===e?void 0:e.panelConfig)?void 0:e.dimmed);return jsxRuntime.exports.jsxs(Stack$4,Object.assign({"data-testid":null!=t&&t.testId?t.testId:"panel-container-testid",sx:{height:null!=t&&t.isFullScreen?"calc(100vh - 5px)":"calc(100vh - 60px)",position:"relative"}},{children:[e&&jsxRuntime.exports.jsx(Box$1,{sx:{backgroundColor:e=>e.palette.grey[50],opacity:"0.5 !important",height:"100%",position:"absolute",top:0,width:"100%",zIndex:1001}}),null==t?void 0:t.children]}))},PanelContent=({children:e,style:t={}})=>jsxRuntime.exports.jsx(Box$1,Object.assign({sx:Object.assign({display:"flex",flexDirection:"column",flex:"1 auto",boxSizing:"border-box",overflowY:"auto"},t)},{children:e})),tabsStyle={"& .Sdk-MuiButtonBase-root.MuiTab-root.MuiTab-textColorPrimary.Mui-selected":{color:"#2A323C!important"},"& .Sdk-MuiTabs-indicator":{backgroundColor:"#2A323C"}},PanelStepperTabs=({activeStep:o,steps:n,stepLabels:a,enableTabs:e=!1,onClickTab:r,onClickStep:s,TabProps:i={},TabsProps:t={},StepProps:l={},testId:c="sdk-stepper",disableBorder:u=!1})=>{const d=stepperStyles()["classes"],p=t=>{var e;return null==(e=n.find(e=>e.stepNumber===t))?void 0:e.disabled};return e?jsxRuntime.exports.jsx(Box$1,Object.assign({sx:{padding:e=>e.spacing(2,6,0,6),borderBottom:u?void 0:e=>"0.5px solid "+e.palette.divider}},{children:jsxRuntime.exports.jsx(Tabs$2,Object.assign({"data-testid":"panel-stepper-tabs.tabs.container-"+c,value:o,onChange:(e,t)=>{p(t)||r&&r(t)},variant:"scrollable",sx:Object.assign({["& ."+tabsClasses$1.scrollButtons]:{"&.Mui-disabled":{opacity:.3}}},tabsStyle),scrollButtons:!0},t,{children:n.map(e=>{const{stepNumber:t,error:n,disabled:r}=e;e=null==(e=a.find(e=>e.stepNumber===t))?void 0:e.stepLabel;return jsxRuntime.exports.jsx(Tab$2,Object.assign({disabled:r,sx:n?{color:"#d32f2f"}:{},label:jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:e}),value:t,"data-testid":`panel-stepper-tabs.tab.${t}.`+c},i),t)})}))})):jsxRuntime.exports.jsx(Box$1,Object.assign({sx:{padding:e=>e.spacing(4,6,4,6),borderBottom:u?void 0:e=>"0.5px solid "+e.palette.divider}},{children:jsxRuntime.exports.jsx(Stepper$1,Object.assign({activeStep:o},{children:n.map(e=>{const{stepNumber:n,completed:t}=e;var e=null==(e=a.find(e=>e.stepNumber===n))?void 0:e.stepLabel,r=n<o,i=n>o,i=`${d.step} ${i?d.futureStep:""} ${r?d.previousStep:""} `;return jsxRuntime.exports.jsx(Step$1,Object.assign({sx:{paddingLeft:1===n?"0px":void 0},className:i,onClick:e=>{var t;t=n,p(t)||s&&s(t)},completed:t},l,{"data-testid":`panel-stepper-tabs.stepper.${n}.`+c},{children:jsxRuntime.exports.jsx(StepLabel$1,{children:e})}),n)})}))}))},stepperStyles=makeStyles()(e=>({step:{"& svg":{fontSize:"37px",fill:"#465364"},"& text":{fontSize:"10px",translate:"0px -1px"}},previousStep:{"& svg":{borderRadius:"50%"},"&:not(.is-first-step)":{}},futureStep:{"& svg":{fill:"#F2F5F9!important",borderRadius:"50%"},"& text":{fill:"#5C6269"},"&:not(.is-last-step)":{}},hiddenStep:{paddingRight:"0","& svg":{fill:"#F2F5F9!important",border:"2px solid white",color:"#5C6269",fontSize:"32px"},"& text":{fill:"#5C6269"},"&+.MuiStepConnector-horizontal":{display:"none"}}})),STATUS_COLORS=(!function(e){e.engine="engine",e.engineBuild="engineBuild",e.schema="schema",e.application="application",e.library="library",e.flow="flow",e.applicationContentMenuExtension="applicationContentMenuExtension",e.applicationView="applicationView",e.package="package",e.sdo="sdo",e.tdo="tdo",e.scheduledJob="scheduledJob",e.dagTemplate="dagTemplate",e.nodeRedPalette="nodeRedPalette"}(EStatusPillType=EStatusPillType||{}),{[EStatusPillType.engine]:{active:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},disabled:{text:"#212121",background:"rgba(33, 33, 33, 0.1)"},pending:{text:"#F57C00",background:"rgba(249, 168, 37, 0.2)"},deleted:{text:"#B71C1C",background:"rgba(183, 28, 28, 0.2)"},draft:{text:"#4F5863",background:"#FFFFFF"},ready:{text:"#0D62D2",background:"rgba(13, 98, 210, 0.2)"},_default:{text:"#4F5863",background:"#FFFFFF"}},[EStatusPillType.engineBuild]:{fetching:{},invalid:{text:"#B71C1C",background:"rgba(183, 28, 28, 0.2)"},available:{text:"#388E3C",background:"rgba(96, 125, 180, 0.3)"},pending:{text:"#F57C00",background:"rgba(249, 168, 37, 0.2)"},disapproved:{text:"#212121",background:"rgba(255, 161, 104, 0.4)"},approved:{text:"#0D62D2",background:"rgba(13, 98, 210, 0.2)"},deploying:{text:"#F57C00",background:"rgba(20, 96, 121, 0.2)"},deployed:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},_default:{text:"#4F5863",background:"#FFFFFF"}},[EStatusPillType.schema]:{published:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},inactive:{text:"#212121",background:"rgba(33, 33, 33, 0.1)"},deleted:{text:"#B71C1C",background:"rgba(183, 28, 28, 0.2)"},draft:{text:"#4F5863",background:"#FFFFFF"},_default:{text:"#212121",background:"rgba(33, 33, 33, 0.1)"}},[EStatusPillType.application]:{active:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},draft:{text:"#4F5863",background:"#FFFFFF"},deleted:{text:"#B71C1C",background:"rgba(183, 28, 28, 0.2)"},pending:{text:"#F57C00",background:"rgba(249, 168, 37, 0.2)"},rejected:{text:"#388E3C",background:"rgba(183, 28, 28, 0.2)"},approved:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},disabled:{text:"#B71C1C",background:"rgba(33, 33, 33, 0.1)"},_default:{text:"#212121",background:"rgba(33, 33, 33, 0.1)"}},[EStatusPillType.flow]:{active:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},disabled:{text:"#212121",background:"rgba(33, 33, 33, 0.1)"},pending:{text:"#F57C00",background:"rgba(249, 168, 37, 0.2)"},deleted:{text:"#B71C1C",background:"rgba(183, 28, 28, 0.2)"},draft:{text:"#4F5863",background:"#FFFFFF"},ready:{text:"#0D62D2",background:"rgba(13, 98, 210, 0.2)"},_default:{text:"#4F5863",background:"#FFFFFF"}},[EStatusPillType.applicationContentMenuExtension]:{_default:{text:"#4F5863",background:"#FFFFFF"}},[EStatusPillType.package]:{active:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},approved:{text:"#0D62D2",background:"rgba(13, 98, 210, 0.2)"},published:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},pending:{text:"#F57C00",background:"rgba(249, 168, 37, 0.2)"},deactivated:{text:"#B71C1C",background:"rgba(183, 28, 28, 0.2)"},draft:{text:"#4F5863",background:"#F7F7F7"},_default:{text:"#212121",background:"rgba(33, 33, 33, 0.1)"}},[EStatusPillType.applicationView]:{_default:{text:"#4F5863",background:"#FFFFFF"}},[EStatusPillType.scheduledJob]:{_default:{text:"#4F5863",background:"#FFFFFF"}},[EStatusPillType.dagTemplate]:{_default:{text:"#4F5863",background:"#FFFFFF"}},[EStatusPillType.nodeRedPalette]:{_default:{text:"#4F5863",background:"#FFFFFF"}},[EStatusPillType.library]:{_default:{text:"#4F5863",background:"#FFFFFF"}},[EStatusPillType.tdo]:{_default:{text:"#4F5863",background:"#FFFFFF"}},[EStatusPillType.sdo]:{_default:{text:"#4F5863",background:"#FFFFFF"}}}),StatusPill=({statusType:e,status:t,ContainerProps:n={},TypographyProps:r={}})=>{var{background:e,color:i}=STATUS_COLORS[e][t]||(null==(e=STATUS_COLORS[e])?void 0:e._default);return jsxRuntime.exports.jsx(Box$1,Object.assign({sx:{width:"fit-content",height:"18px",left:"264px",top:"244px",borderRadius:"30px",textAlign:"center",letterSpacing:"-1.30385e-09px",display:"flex",flexDirection:"row",alignItems:"flex-start",padding:"3px 10px",gap:"10px",background:e}},n,{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":"status-pill",variant:"caption",sx:{color:i,fontFamily:"'Nunito'",fontStyle:"normal",fontWeight:800,fontSize:"9px",lineHeight:"12px",textTransform:"uppercase"}},r,{children:t}))}))},TableSearchBannerChip=({label:e,onDelete:t,sx:n={},TypographyProps:r={}})=>jsxRuntime.exports.jsx(Chip$1,{sx:Object.assign({backgroundColor:"rgb(255 255 255)",border:"1px solid #d5dfe9!important"},n),label:jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"caption",fontWeight:"bold"},r,{children:['"',e,'"']})),onDelete:t}),TableSearchBanner=({sx:e={},titleText:t,isLoading:n,hide:r,content:i,ContainerProps:o={},TitleProps:a={},LoaderComponent:s})=>{e=Object.assign({padding:"10px 30px",background:"#f2f5f9",borderBottom:"1px solid #d5dfe9",gap:"10px"},e);return r?null:jsxRuntime.exports.jsxs(Stack$4,Object.assign({sx:e,direction:"row",alignItems:"center"},o,{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},a,{children:t})),n?jsxRuntime.exports.jsx(()=>s?jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:s}):jsxRuntime.exports.jsx(Skeleton$1,{sx:{transform:"none"},width:"100px",height:"32px"}),{}):jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:i})]}))},useStyles$2$5=makeStyles()(e=>({searchInput:{opacity:0,width:"0px",MozTransition:"all 300ms ease",WebkitTransition:"all 300ms ease","&.is-visible":{width:"400px",opacity:1},"&:focus":{outline:"none",boxShadow:"0 -1px 1px rgba(255, 255, 255, 0.25), 0 1px 5px rgba(0, 0, 0, 0.15)"}},searchContainer:{display:"flex"}})),TableSearchInputButton=({onChange:e,onClear:t,onToggleSearch:n,testId:r,placeholderText:i,searchValue:o,inputValue:a,isSearching:s,isSearchVisible:l,searchItemTooltipText:c="",searchTooltipTextOverride:u,disabled:d=!1})=>{var p=useStyles$2$5()["classes"],f=!!o&&!l;return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(TextField$1,{autoFocus:l,inputRef:e=>{null!==e&&l&&e.focus()},"data-test":"table-search-components.search-label."+r,onClick:e=>e.stopPropagation(),className:p.searchInput+" "+(l?"is-visible":""),onChange:l?e:void 0,value:a,placeholder:l?i:"",InputProps:{style:{borderRadius:"50px",height:"35px"},endAdornment:jsxRuntime.exports.jsxs(InputAdornment$1,Object.assign({position:"end"},{children:[s&&jsxRuntime.exports.jsx(CircularProgress$1,{size:20,thickness:5}),!s&&a&&jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"table-search-components.clear-search.label",defaultMessage:"Clear Search",description:"Label for the button to clear the filter"})},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({size:"small",onClick:t},{children:jsxRuntime.exports.jsx(Clear,{})}))}))]}))}}),jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:d?jsxRuntime.exports.jsx(FormattedMessage$1,{id:"table-search-components.search-btn.search-disabled",defaultMessage:"Search is not available",description:"tooltip message on the table data search"}):l?jsxRuntime.exports.jsx(FormattedMessage$1,{id:"table-search-components.search-btn.hide-search",defaultMessage:"Hide Search",description:"tooltip message on the table data search"}):o?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(FormattedMessage$1,{id:"table-search-components.search-btn.searching-for",defaultMessage:"Searching for ",description:"tooltip message on the table data search"})," ",`"${o}"`]}):u?jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:u}):jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(FormattedMessage$1,{id:"table-search-components.search-btn.search-text",defaultMessage:"Search",description:"tooltip message on the table data search"}),c&&jsxRuntime.exports.jsx("span",Object.assign({style:{textTransform:"capitalize"}},{children:" "+c}))]})},{children:jsxRuntime.exports.jsx(Box$1,{children:jsxRuntime.exports.jsx(Badge$1,Object.assign({invisible:!f,badgeContent:jsxRuntime.exports.jsx(Typography$1,Object.assign({fontWeight:"bold",color:"white",variant:"caption"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"table-search-components.search-btn.active",defaultMessage:"Active",description:"badge message on the table data search"})})),color:"primary"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({onClick:n,"data-testid":"table-search-components.search-icon."+r,"aria-labelledby":"table-search-components.search-label."+r,size:"large",disabled:d},{children:jsxRuntime.exports.jsx(Search$1,{sx:f?{color:"#1871E8"}:{}})}))}))})}))]})},useStyles$1$5=makeStyles()((e,t,n)=>({engineIconContainer:{background:"#EEF3F9",padding:"3px",borderRadius:"5px",marginRight:"3px",maxWidth:"20px",maxHeight:"20px",verticalAlign:"middle",display:"flex"},iconWrapper:{position:"relative",["&:hover > ."+n.enginesList]:{display:"block !important"},display:"flex",alignItems:"center"},tooltipCatName:{color:"white",paddingLeft:"5px",fontWeight:"900"},engineIcon:{width:"14px",height:"14px"},enginesList:{background:"rgba(0,0,0,.75)",padding:e.spacing(.6),borderRadius:"5px",marginRight:e.spacing(.6),position:"absolute",top:20,left:0,display:"none",zIndex:"999"},tooltipDivider:{marginTop:"3px"},enginesUL:{padding:"0 7px 0 20px",margin:"3px 0 !important",color:"white",overflow:"hidden",whiteSpace:"nowrap","& *":{color:"white"}},tooltipIcon:{fill:"white",width:"12px",height:"12px"},tooltipCatIconWrapper:{display:"flex",alignItems:"center",paddingLeft:"3px"},moreDivider:{borderTop:"2px solid white",marginBottom:"9px",marginTop:"6px"},moreIcon:{width:"12px",height:"12px"}})),engineIconHelper=e=>void 0!==e&&e?EngineCategoryIcons[e]:null,getCat=e=>{return null==(e=null==(e=null==(e=null==e?void 0:e.engine)?void 0:e.category)?void 0:e.name)?void 0:e.replace(/[^a-zA-Z]/g,"")},getTooltip=(e,t,n)=>t.length?jsxRuntime.exports.jsxs(Box$1,{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({className:n.tooltipCatIconWrapper},{children:[jsxRuntime.exports.jsx(Icon$1,{component:engineIconHelper(e),className:n.tooltipIcon}),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"caption",className:n.tooltipCatName},{children:e}))]})),jsxRuntime.exports.jsx(Divider$1,{className:n.tooltipDivider}),jsxRuntime.exports.jsx("ul",Object.assign({className:n.enginesUL},{children:t.map(e=>jsxRuntime.exports.jsx("li",{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"caption"},{children:e}))},e))}))]}):null,EngineIconsRenderer=({tasks:e,iconsToRender:r=3,showMore:i=!1})=>{const n=useStyles$1$5()["classes"];if(!e||!e.length||e.find(e=>!e.engine))return jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"caption",sx:{color:"black"}},{children:"N/A"}));e=e.filter(e=>{e=getCat(e);return engineIconHelper(e)});const o={},a={};return e&&e.forEach(e=>{var t,n=getCat(e);Object.keys(o).length<r?(n&&!o[n]&&(o[n]=[]),n&&null!=(t=null==e?void 0:e.engine)&&t.name&&o[n].push(null==(t=null==e?void 0:e.engine)?void 0:t.name)):i&&(n&&!a[n]&&(a[n]=[]),n)&&null!=(t=null==e?void 0:e.engine)&&t.name&&a[n].push(null==(t=null==e?void 0:e.engine)?void 0:t.name)}),jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[Object.keys(o).map(e=>jsxRuntime.exports.jsx(Box$1,Object.assign({className:n.engineIconContainer},{children:jsxRuntime.exports.jsxs(Box$1,Object.assign({className:n.iconWrapper},{children:[jsxRuntime.exports.jsx(Icon$1,{component:engineIconHelper(e),className:n.engineIcon},e),jsxRuntime.exports.jsx(Box$1,Object.assign({className:n.enginesList},{children:getTooltip(e,o[e],n)}))]}))}),e)),0<Object.keys(a).length&&jsxRuntime.exports.jsxs(Box$1,Object.assign({className:n.iconWrapper},{children:[jsxRuntime.exports.jsx(MoreHor,{className:n.moreIcon}),jsxRuntime.exports.jsx(Box$1,Object.assign({className:n.enginesList},{children:Object.keys(a).map((e,t)=>jsxRuntime.exports.jsxs(Box$1,{children:[getTooltip(e,a[e],n),t<Object.keys(a).length-1&&jsxRuntime.exports.jsx(Divider$1,{className:n.moreDivider})]},e+"-"+t))}))]}))]})},generateSagas=e=>{function*t(e){if(!u.create)throw new Error("No apiCalls.create was defined for this redux saga");try{var t=yield select(selectApiConfigs$2),n=u.getAdditionalSelectors?u.getAdditionalSelectors():{};for(const o of Object.keys(n)){var r=yield select(n[o]);o,r}var i=yield call$j(u.create,{apiConfigs:t,itemToCreate:e.payload});yield put(l.actions.createSucceeded(i))}catch(e){yield put(l.actions.createFailed(null))}}function*n(){if(!u.read)throw new Error("No apiCalls.read was defined for this redux saga");try{var e=yield select(selectApiConfigs$2),t=yield select(c.selectOffset),n=yield select(c.selectSearchValue),r=u.getAdditionalSelectors?u.getAdditionalSelectors():{},i={};for(const s of Object.keys(r)){var o=yield select(r[s]);i[s]=o}var a=yield call$j(u.read,{apiConfigs:e,offset:t,limit:d,searchValue:n,additionalSelectors:i});yield put(l.actions.readSucceeded(a.filter(e=>null!==e))),a.length>=d?yield put(l.actions.setHasMore(!0)):yield put(l.actions.setHasMore(!1)),yield put(l.actions.setOffset(t+d))}catch(e){yield put(l.actions.readFailed(null))}}function*r(e){if(!u.update)throw new Error("No apiCalls.update was defined for this redux saga");try{var t=yield select(selectApiConfigs$2),n=u.getAdditionalSelectors?u.getAdditionalSelectors():{};for(const o of Object.keys(n)){var r=yield select(n[o]);o,r}var i=yield call$j(u.update,{apiConfigs:t,itemToUpdate:e.payload});yield put(l.actions.updateSucceeded(i))}catch(e){yield put(l.actions.updateFailed(null))}}function*i(e){if(!u.delete)throw new Error("No apiCalls.delete was defined for this redux saga");try{var t=yield select(selectApiConfigs$2),n=u.getAdditionalSelectors?u.getAdditionalSelectors():{};for(const o of Object.keys(n)){var r=yield select(n[o]);o,r}var i=yield call$j(u.delete,{apiConfigs:t,itemToDelete:e.payload});yield put(l.actions.deleteSucceeded(i))}catch(e){yield put(l.actions.deleteFailed(null))}}const{slice:l,selectors:c,apiCalls:u}=e,d=u.pageSize||30;return{watchCreate:function*(){yield takeEvery$1(l.actions.createStart,t)},watchRead:function*(){yield takeEvery$1(l.actions.readStart,n)},watchUpdate:function*(){yield takeEvery$1(l.actions.updateStart,r)},watchDelete:function*(){yield takeEvery$1(l.actions.deleteStart,i)}}},generateSelectors=({namespace:t,sliceName:n,customReduxNamespace:r,overrideSelectorBase:i})=>{const o=e=>i?i(e):r?e[r]:e[n][t];return{selectHasMore:e=>o(e).hasMore,selectItems:e=>o(e).items,selectOffset:e=>o(e).currentOffset,selectCreateStatus:e=>o(e).createStatus,selectReadStatus:e=>o(e).readStatus,selectUpdateStatus:e=>o(e).updateStatus,selectDeleteStatus:e=>o(e).deleteStatus,selectSearchValue:e=>o(e).searchValue}},generateSlice=e=>{const{sliceName:t,namespace:n,dedupeResponse:r,customReduxNamespace:i}=e,o=e.dedupeIdProp||"id";e={createStatus:"idle",readStatus:"idle",updateStatus:"idle",deleteStatus:"idle",currentOffset:0,hasMore:!0,items:[],filters:[],searchValue:""};return{slice:createSlice({name:i||t+"/"+n,initialState:e,reducers:{createStart(e,t){e.createStatus="pending"},createSucceeded(e,t){e.items.push(t.payload),e.createStatus="idle"},createFailed(e){e.createStatus="failure"},readStart(e){e.readStatus="pending"},readSucceeded(n,e){e.payload.forEach(t=>{var e;!r||-1===(e=n.items.findIndex(e=>t[o]===e[o]))?n.items.push(t):n.items[e]=t}),n.readStatus="idle"},readFailed(e){e.readStatus="failure"},updateStart(e,t){e.updateStatus="pending"},updateSucceeded(e,t){var n=e.items.findIndex(e=>t.payload[o]===e[o]);-1!==n?e.items[n]=t.payload:console.warn("Couldn't replace existing item with updated version in redux state",t.payload),e.updateStatus="idle"},updateFailed(e){e.updateStatus="failure"},deleteStart(e,t){e.deleteStatus="pending"},deleteSucceeded(e,t){var n=e.items.findIndex(e=>t.payload[o]===e[o]);-1!==n?e.items.splice(n,1):console.warn("Couldn't remove deleted item from redux state",t.payload),e.deleteStatus="idle"},deleteFailed(e){e.deleteStatus="failure"},setHasMore(e,t){e.hasMore=t.payload},setOffset(e,t){e.currentOffset=t.payload},resetList(e){e.items=[],e.currentOffset=0,e.hasMore=!0},setFilter(e,t){var n=e.filters.findIndex(e=>e.type===t.payload.type);-1===n?e.filters.push(t.payload):0===t.payload.values.length?e.filters.splice(n,1):e.filters[n].values=t.payload.values},clearFilters(e){e.filters=[]},setSearchValue(e,t){e.searchValue=t.payload},clearSearchValue(e){e.searchValue=""}}}),initialState:e}},generateState=e=>{var{sliceName:e,namespace:t,dedupeResponse:n,dedupeIdProp:r,apiCalls:i,customReduxNamespace:o,overrideSelectorBase:a}=e,{slice:n,initialState:r}=generateSlice({sliceName:e,namespace:t,dedupeResponse:n,dedupeIdProp:r,customReduxNamespace:o}),t=generateSelectors({namespace:t,sliceName:e,customReduxNamespace:o,overrideSelectorBase:a});return{slice:n,selectors:t,sagas:generateSagas({slice:n,selectors:t,apiCalls:i}),initialState:r}},devErrorLogger=e=>{isEqual_1("production","development")&&console.log(e)},TxtField=({id:e,required:t,type:n,value:r,onChange:i,error:o=!1})=>jsxRuntime.exports.jsx(TextField$1,{id:e,sx:{width:"100%"},InputLabelProps:{shrink:!0},autoComplete:"off",required:t,value:r,type:n||"",onChange:i,size:"small",error:o}),SelectList=({id:e,value:t,required:n,options:r,onChange:i,error:o=!1})=>jsxRuntime.exports.jsx(Select$1,Object.assign({id:e,required:n,value:null!=t?t:null,onChange:i,variant:"outlined",style:{width:"100%"},error:o,inputProps:{name:e,id:e},sx:{width:"100%"}},{children:null==r?void 0:r.map(e=>jsxRuntime.exports.jsx(MenuItem$1,Object.assign({value:null==e?void 0:e.value},{children:null==e?void 0:e.key}),null==e?void 0:e.value))})),MultiSelectList=({id:e,values:t,required:n,options:r,onChange:i,error:o=!1})=>{var a={PaperProps:{style:{maxHeight:224,width:250}}};return jsxRuntime.exports.jsx(Select$1,Object.assign({id:e,required:n,value:t,multiple:!0,onChange:i,variant:"outlined",error:o,input:jsxRuntime.exports.jsx(Input$3,{id:"select-multiple-chip-"+e}),renderValue:e=>jsxRuntime.exports.jsx("div",{children:null==e?void 0:e.map(e=>jsxRuntime.exports.jsx(Chip$1,{style:{marginRight:6},label:e},e))}),MenuProps:a},{children:null==r?void 0:r.map(e=>jsxRuntime.exports.jsx(MenuItem$1,Object.assign({value:null==e?void 0:e.value},{children:null==e?void 0:e.key}),null==e?void 0:e.key))}))},formatLabel=(!function(e){e.Number="Number",e.Picklist="Picklist",e.MultiPicklist="MultiPicklist",e.Text="Text",e.SchemaSelection="SchemaSelection"}(EngineFieldType=EngineFieldType||{}),(e="")=>startCase_1(e)),getFieldErrorMessage=e=>{var{required:e,value:t,min:n,max:r,type:i,values:o}=e;if(isEmpty_1(i===EngineFieldType.MultiPicklist?o:t))return e?"This field can't be blank!":"";if(i===EngineFieldType.Number){if(isNumber_1(n)&&Number(t)<n)return"The value can't be lower than "+n.toFixed(2);if(isNumber_1(r)&&Number(t)>r)return"The value can't be higher than "+r.toFixed(2)}return""},useStyles$m=makeStyles()(e=>({formControlWrapper:{marginTop:15},inputLabel:{fontFamily:"Nunito",fontWeight:300,display:"block",fontSize:14,color:"#5C6269",marginBottom:6},inputLabelError:{color:e.palette.error.main}})),EngineComponentLoader=({fields:e,onChange:s,showErrors:l=!1})=>{const c=useStyles$m()["classes"];return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:null==(e=e)?void 0:e.map((t,e)=>{var n=formatLabel((null==t?void 0:t.name)||""),r=`engine-configuration-input--${null==t?void 0:t.name}-idx-`+e,i=e=>{s({fieldName:null==t?void 0:t.name,fieldValue:e.target.value})};let o;var a=!!getFieldErrorMessage(t)&&l;switch(null==t?void 0:t.type){case EngineFieldType.Picklist:o=jsxRuntime.exports.jsx(SelectList,{id:r,label:n,required:null==t?void 0:t.required,options:null==t?void 0:t.options,value:null==t?void 0:t.value,onChange:i,error:a});break;case EngineFieldType.Text:o=jsxRuntime.exports.jsx(TxtField,{id:r,label:n,required:null==t?void 0:t.required,value:(null==t?void 0:t.value)||"",onChange:i,error:a});break;case EngineFieldType.Number:o=jsxRuntime.exports.jsx(TxtField,{id:r,label:n,required:null==t?void 0:t.required,value:(null==t?void 0:t.value)||"",type:"number",onChange:i,error:a});break;case EngineFieldType.MultiPicklist:o=jsxRuntime.exports.jsx(MultiSelectList,{id:r,label:null==t?void 0:t.name,required:null==t?void 0:t.required,options:null==t?void 0:t.options,values:(null==t?void 0:t.values)||[],onChange:i,error:a});break;default:return null}return jsxRuntime.exports.jsxs(FormControl$1,Object.assign({error:a,size:"small",className:c.formControlWrapper},{children:[jsxRuntime.exports.jsx("label",Object.assign({htmlFor:r,className:c.inputLabel+" "+(a&&c.inputLabelError)},{children:n})),o,a&&jsxRuntime.exports.jsx(FormHelperText$2,{children:getFieldErrorMessage(t)})]}),r)})})},characterCountTextField={jsx:characterCountTextFieldJsx},imageUpload={api:imageUploadApi,jsx:imageUploadJsx},enginesFilter={api:enginesFilterApi,jsx:enginesFilterJsx,helpers:enginesFilterHelpers},statusFilter={jsx:statusFilterJsx},dateRangeFilter={jsx:dateRangeFilterJsx},tableInfiniteScroll={jsx:tableInfiniteScrollJsx},panelComponents={header:PanelHeader$1,container:PanelContainer,content:PanelContent,stepper:PanelStepperTabs},tableSearchComponents={TableSearchBannerChip:TableSearchBannerChip,TableSearchBanner:TableSearchBanner,TableSearchInputButton:TableSearchInputButton},statusPill={jsx:StatusPill,colors:STATUS_COLORS},markdown={jsx:MarkdownJsx},distributionTypes={jsx:distributionTypeJsx};var Search={},_interopRequireDefault$8=interopRequireDefault.exports,default_1$8=(Object.defineProperty(Search,"__esModule",{value:!0}),Search.default=void 0),_createSvgIcon$8=_interopRequireDefault$8(createSvgIcon$1),_jsxRuntime$8=jsxRuntime.exports,_default$8=(0,_createSvgIcon$8.default)((0,_jsxRuntime$8.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");function formatProdErrorMessage(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var default_1$8=Search.default=_default$8,$$observable="function"==typeof Symbol&&Symbol.observable||"@@observable",randomString=function(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes={INIT:"@@redux/INIT"+randomString(),REPLACE:"@@redux/REPLACE"+randomString(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString()}};function isPlainObject(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function createStore$1(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(formatProdErrorMessage(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(formatProdErrorMessage(1));return n(createStore$1)(e,t)}if("function"!=typeof e)throw new Error(formatProdErrorMessage(2));var i=e,o=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error(formatProdErrorMessage(3));return o}function d(t){if("function"!=typeof t)throw new Error(formatProdErrorMessage(4));if(l)throw new Error(formatProdErrorMessage(5));var n=!0;return c(),s.push(t),function(){if(n){if(l)throw new Error(formatProdErrorMessage(6));n=!1,c();var e=s.indexOf(t);s.splice(e,1),a=null}}}function p(e){if(!isPlainObject(e))throw new Error(formatProdErrorMessage(7));if(void 0===e.type)throw new Error(formatProdErrorMessage(8));if(l)throw new Error(formatProdErrorMessage(9));try{l=!0,o=i(o,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++)(0,t[n])();return e}return p({type:ActionTypes.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(formatProdErrorMessage(10));i=e,p({type:ActionTypes.REPLACE})}})[$$observable]=function(){var n=d,e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(formatProdErrorMessage(11));function t(){e.next&&e.next(u())}return t(),{unsubscribe:n(t)}}};return e[$$observable]=function(){return this},e},r}function bindActionCreator(e,t){return function(){return t(e.apply(this,arguments))}}function bindActionCreators$1(e,t){if("function"==typeof e)return bindActionCreator(e,t);if("object"!=typeof e||null===e)throw new Error(formatProdErrorMessage(16));var n,r={};for(n in e){var i=e[n];"function"==typeof i&&(r[n]=bindActionCreator(i,t))}return r}function compose(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function applyMiddleware(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];return function(i){return function(){var e=i.apply(void 0,arguments),t=function(){throw new Error(formatProdErrorMessage(15))},n={getState:e.getState,dispatch:function(){return t.apply(void 0,arguments)}},r=o.filter(Boolean).map(function(e){return e(n)}),t=compose.apply(void 0,r)(e.dispatch);return _objectSpread2(_objectSpread2({},e),{},{dispatch:t})}}}var ReactReduxContext=React5.createContext(null);function defaultNoopBatch(e){e()}var batch=defaultNoopBatch,setBatch=function(e){return batch=e},getBatch=function(){return batch};function createListenerCollection(){var e=getBatch(),r=null,i=null;return{clear:function(){i=r=null},notify:function(){e(function(){for(var e=r;e;)e.callback(),e=e.next})},get:function(){for(var e=[],t=r;t;)e.push(t),t=t.next;return e},subscribe:function(e){var t=!0,n=i={callback:e,next:null,prev:i};return n.prev?n.prev.next=n:r=n,function(){t&&null!==r&&(t=!1,n.next?n.next.prev=n.prev:i=n.prev,n.prev?n.prev.next=n.next:r=n.next)}}}}var nullListeners={notify:function(){},get:function(){return[]}};function createSubscription(e,t){var n,r=nullListeners;function i(){a.onStateChange&&a.onStateChange()}function o(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=createListenerCollection())}var a={addNestedSub:function(e){return o(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=nullListeners)},getListeners:function(){return r}};return a}var useIsomorphicLayoutEffect$2="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?react$1.exports.useLayoutEffect:react$1.exports.useEffect;function Provider(e){var t=e.store,n=e.context,e=e.children,r=react$1.exports.useMemo(function(){var e=createSubscription(t);return{store:t,subscription:e}},[t]),i=react$1.exports.useMemo(function(){return t.getState()},[t]),n=(useIsomorphicLayoutEffect$2(function(){var e=r.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),i!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}},[r,i]),n||ReactReduxContext);return React5.createElement(n.Provider,{value:r},e)}var _excluded$2=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],_excluded2=["reactReduxForwardedRef"],EMPTY_ARRAY=[],NO_SUBSCRIPTION_ARRAY=[null,null];function storeStateUpdatesReducer(e,t){e=e[1];return[t.payload,e+1]}function useIsomorphicLayoutEffectWithArgs(e,t,n){useIsomorphicLayoutEffect$2(function(){return e.apply(void 0,t)},n)}function captureWrapperProps(e,t,n,r,i,o,a){e.current=r,t.current=i,n.current=!1,o.current&&(o.current=null,a())}function subscribeUpdates(e,r,t,i,o,a,s,l,c,u){var d,p;if(e)return d=!1,p=null,t.onStateChange=e=function(){if(!d){var e,t,n=r.getState();try{e=i(n,o.current)}catch(e){p=t=e}t||(p=null),e===a.current?s.current||c():(a.current=e,l.current=e,s.current=!0,u({type:"STORE_UPDATED",payload:{error:t}}))}},t.trySubscribe(),e(),function(){if(d=!0,t.tryUnsubscribe(),t.onStateChange=null,p)throw p}}var initStateUpdates=function(){return[null,0]};function connectAdvanced(S,e){var e=e=void 0===e?{}:e,t=e.getDisplayName,i=void 0===t?function(e){return"ConnectAdvanced("+e+")"}:t,t=e.methodName,o=void 0===t?"connectAdvanced":t,t=e.renderCountProp,a=void 0===t?void 0:t,t=e.shouldHandleStateChanges,w=void 0===t||t,t=e.storeKey,s=void 0===t?"store":t,t=(e.withRef,e.forwardRef),l=void 0!==t&&t,t=e.context,t=void 0===t?ReactReduxContext:t,c=_objectWithoutPropertiesLoose$2(e,_excluded$2),_=t;return function($){var e=$.displayName||$.name||"Component",t=i(e),b=_extends$5({},c,{getDisplayName:i,methodName:o,renderCountProp:a,shouldHandleStateChanges:w,storeKey:s,displayName:t,wrappedComponentName:e,WrappedComponent:$}),e=c.pure;var C=e?react$1.exports.useMemo:function(e){return e()};function n(n){var e=react$1.exports.useMemo(function(){var e=n.reactReduxForwardedRef,t=_objectWithoutPropertiesLoose$2(n,_excluded2);return[n.context,e,t]},[n]),t=e[0],r=e[1],i=e[2],o=react$1.exports.useMemo(function(){return t&&t.Consumer&&reactIs.exports.isContextConsumer(React5.createElement(t.Consumer,null))?t:_},[t,_]),a=react$1.exports.useContext(o),s=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch),l=(Boolean(a)&&Boolean(a.store),(s?n:a).store),c=react$1.exports.useMemo(function(){return S(l.dispatch,b)},[l]),e=react$1.exports.useMemo(function(){var e,t;return w?(t=(e=createSubscription(l,s?null:a.subscription)).notifyNestedSubs.bind(e),[e,t]):NO_SUBSCRIPTION_ARRAY},[l,s,a]),u=e[0],e=e[1],d=react$1.exports.useMemo(function(){return s?a:_extends$5({},a,{subscription:u})},[s,a,u]),p=react$1.exports.useReducer(storeStateUpdatesReducer,EMPTY_ARRAY,initStateUpdates),f=p[0][0],p=p[1];if(f&&f.error)throw f.error;var h=react$1.exports.useRef(),m=react$1.exports.useRef(i),g=react$1.exports.useRef(),y=react$1.exports.useRef(!1),v=C(function(){return g.current&&i===m.current?g.current:c(l.getState(),i)},[l,f,i]),x=(useIsomorphicLayoutEffectWithArgs(captureWrapperProps,[m,h,y,i,v,g,e]),useIsomorphicLayoutEffectWithArgs(subscribeUpdates,[w,l,u,c,m,h,y,g,e,p],[l,u,c]),react$1.exports.useMemo(function(){return React5.createElement($,_extends$5({},v,{ref:r}))},[r,$,v]));return react$1.exports.useMemo(function(){return w?React5.createElement(o.Provider,{value:d},x):x},[o,x,d])}var r=e?React5.memo(n):n;return r.WrappedComponent=$,r.displayName=n.displayName=t,l?((e=React5.forwardRef(function(e,t){return React5.createElement(r,_extends$5({},e,{reactReduxForwardedRef:t}))})).displayName=t,e.WrappedComponent=$,hoistNonReactStatics_cjs(e,$)):hoistNonReactStatics_cjs(r,$)}}function is(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function shallowEqual(e,t){if(!is(e,t)){if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!is(e[n[i]],t[n[i]]))return!1}return!0}function bindActionCreators(n,r){var e,i={};for(e in n)!function(e){var t=n[e];"function"==typeof t&&(i[e]=function(){return r(t.apply(void 0,arguments))})}(e);return i}function wrapMapToPropsConstant(i){return function(e,t){var n=i(e,t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function getDependsOnOwnProps(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function wrapMapToPropsFunc(i,e){return function(e,t){t.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(e,t){r.mapToProps=i,r.dependsOnOwnProps=getDependsOnOwnProps(i);var n=r(e,t);return"function"==typeof n&&(r.mapToProps=n,r.dependsOnOwnProps=getDependsOnOwnProps(n),n=r(e,t)),n},r}}function whenMapDispatchToPropsIsFunction(e){return"function"==typeof e?wrapMapToPropsFunc(e):void 0}function whenMapDispatchToPropsIsMissing(e){return e?void 0:wrapMapToPropsConstant(function(e){return{dispatch:e}})}function whenMapDispatchToPropsIsObject(t){return t&&"object"==typeof t?wrapMapToPropsConstant(function(e){return bindActionCreators(t,e)}):void 0}var defaultMapDispatchToPropsFactories=[whenMapDispatchToPropsIsFunction,whenMapDispatchToPropsIsMissing,whenMapDispatchToPropsIsObject];function whenMapStateToPropsIsFunction(e){return"function"==typeof e?wrapMapToPropsFunc(e):void 0}function whenMapStateToPropsIsMissing(e){return e?void 0:wrapMapToPropsConstant(function(){return{}})}var defaultMapStateToPropsFactories=[whenMapStateToPropsIsFunction,whenMapStateToPropsIsMissing];function defaultMergeProps(e,t,n){return _extends$5({},n,e,t)}function wrapMergePropsFunc(s){return function(e,t){t.displayName;var r,i=t.pure,o=t.areMergedPropsEqual,a=!1;return function(e,t,n){e=s(e,t,n);return a?i&&o(e,r)||(r=e):(a=!0,r=e),r}}}function whenMergePropsIsFunction(e){return"function"==typeof e?wrapMergePropsFunc(e):void 0}function whenMergePropsIsOmitted(e){return e?void 0:function(){return defaultMergeProps}}var defaultMergePropsFactories=[whenMergePropsIsFunction,whenMergePropsIsOmitted],_excluded$1=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function impureFinalPropsSelectorFactory(n,r,i,o){return function(e,t){return i(n(e,t),r(o,t),t)}}function pureFinalPropsSelectorFactory(i,o,a,s,e){var l,c,u,d,p,f=e.areStatesEqual,h=e.areOwnPropsEqual,m=e.areStatePropsEqual,n=!1;function r(e,t){var n=!h(t,c),r=!f(e,l,t,c);return l=e,c=t,n&&r?(u=i(l,c),o.dependsOnOwnProps&&(d=o(s,c)),p=a(u,d,c)):n?(i.dependsOnOwnProps&&(u=i(l,c)),o.dependsOnOwnProps&&(d=o(s,c)),p=a(u,d,c)):r?(e=i(l,c),t=!m(e,u),u=e,p=t?a(u,d,c):p):p}return function(e,t){return n?r(e,t):(u=i(l=e,c=t),d=o(s,c),p=a(u,d,c),n=!0,p)}}function finalPropsSelectorFactory(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,t=_objectWithoutPropertiesLoose$2(t,_excluded$1),n=n(e,t),r=r(e,t),i=i(e,t);return(t.pure?pureFinalPropsSelectorFactory:impureFinalPropsSelectorFactory)(n,r,i,e,t)}var _excluded=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function match$2(n,e,r){for(var t=e.length-1;0<=t;t--){var i=e[t](n);if(i)return i}return function(e,t){throw new Error("Invalid value of type "+typeof n+" for "+r+" argument when connecting component "+t.wrappedComponentName+".")}}function strictEqual(e,t){return e===t}function createConnect(e){var e=void 0===e?{}:e,t=e.connectHOC,u=void 0===t?connectAdvanced:t,t=e.mapStateToPropsFactories,d=void 0===t?defaultMapStateToPropsFactories:t,t=e.mapDispatchToPropsFactories,p=void 0===t?defaultMapDispatchToPropsFactories:t,t=e.mergePropsFactories,f=void 0===t?defaultMergePropsFactories:t,t=e.selectorFactory,h=void 0===t?finalPropsSelectorFactory:t;return function(e,t,n,r){var r=r=void 0===r?{}:r,i=r.pure,i=void 0===i||i,o=r.areStatesEqual,o=void 0===o?strictEqual:o,a=r.areOwnPropsEqual,a=void 0===a?shallowEqual:a,s=r.areStatePropsEqual,s=void 0===s?shallowEqual:s,l=r.areMergedPropsEqual,l=void 0===l?shallowEqual:l,r=_objectWithoutPropertiesLoose$2(r,_excluded),c=match$2(e,d,"mapStateToProps"),t=match$2(t,p,"mapDispatchToProps"),n=match$2(n,f,"mergeProps");return u(h,_extends$5({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:c,initMapDispatchToProps:t,initMergeProps:n,pure:i,areStatesEqual:o,areOwnPropsEqual:a,areStatePropsEqual:s,areMergedPropsEqual:l},r))}}var connect=createConnect();function areInputsEqual(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function useMemoOne(e,t){var n=react$1.exports.useState(function(){return{inputs:t,result:e()}})[0],r=react$1.exports.useRef(!0),i=react$1.exports.useRef(n),o=r.current||Boolean(t&&i.current.inputs&&areInputsEqual(t,i.current.inputs))?i.current:{inputs:t,result:e()};return react$1.exports.useEffect(function(){r.current=!1,i.current=o},[o]),o.result}function useCallbackOne(e,t){return useMemoOne(function(){return e},t)}setBatch(reactDom.exports.unstable_batchedUpdates);var useMemo=useMemoOne,useCallback=useCallbackOne,isProduction=!0,prefix$2="Invariant failed";function invariant$2(e,t){if(!e){if(isProduction)throw new Error(prefix$2);e="function"==typeof t?t():t,t=e?"".concat(prefix$2,": ").concat(e):prefix$2;throw new Error(t)}}var getRect=function(e){var t=e.top,n=e.right,r=e.bottom,e=e.left;return{top:t,right:n,bottom:r,left:e,width:n-e,height:r-t,x:e,y:t,center:{x:(n+e)/2,y:(r+t)/2}}},expand=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},shrink=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},shift=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},noSpacing$1={top:0,right:0,bottom:0,left:0},createBox=function(e){var t=e.borderBox,n=e.margin,n=void 0===n?noSpacing$1:n,r=e.border,r=void 0===r?noSpacing$1:r,e=e.padding,e=void 0===e?noSpacing$1:e,i=getRect(expand(t,n)),o=getRect(shrink(t,r)),a=getRect(shrink(o,e));return{marginBox:i,borderBox:getRect(t),paddingBox:o,contentBox:a,margin:n,border:r,padding:e}},parse$1=function(e){var t=e.slice(0,-2);return"px"!==e.slice(-2)?0:(e=Number(t),isNaN(e)&&invariant$2(!1),e)},getWindowScroll$1=function(){return{x:window.pageXOffset,y:window.pageYOffset}},offset$1=function(e,t){var n=e.borderBox,r=e.border,i=e.margin,e=e.padding,n=shift(n,t);return createBox({borderBox:n,border:r,margin:i,padding:e})},withScroll=function(e,t){return void 0===t&&(t=getWindowScroll$1()),offset$1(e,t)},calculateBox=function(e,t){var n={top:parse$1(t.marginTop),right:parse$1(t.marginRight),bottom:parse$1(t.marginBottom),left:parse$1(t.marginLeft)},r={top:parse$1(t.paddingTop),right:parse$1(t.paddingRight),bottom:parse$1(t.paddingBottom),left:parse$1(t.paddingLeft)},t={top:parse$1(t.borderTopWidth),right:parse$1(t.borderRightWidth),bottom:parse$1(t.borderBottomWidth),left:parse$1(t.borderLeftWidth)};return createBox({borderBox:e,margin:n,padding:r,border:t})},getBox=function(e){var t=e.getBoundingClientRect(),e=window.getComputedStyle(e);return calculateBox(t,e)},rafSchd=function(r){function e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i=t,o=o||requestAnimationFrame(function(){o=null,r.apply(void 0,i)})}var i,o=null;return e.cancel=function(){o&&(cancelAnimationFrame(o),o=null)},e},rafSchd$1=rafSchd;function log(e,t){}function noop$1(){}function getOptions(e,t){return _extends$5({},e,{},t)}function bindEvents(n,e,r){var t=e.map(function(e){var t=getOptions(r,e.options);return n.addEventListener(e.eventName,e.fn,t),function(){n.removeEventListener(e.eventName,e.fn,t)}});return function(){t.forEach(function(e){e()})}}log.bind(null,"warn"),log.bind(null,"error");var prefix="Invariant failed";function RbdInvariant(e){this.message=e}function invariant$1(e,t){if(!e)throw new RbdInvariant(prefix)}RbdInvariant.prototype.toString=function(){return this.message};var ErrorBoundary=function(i){function e(){for(var n,e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(n=i.call.apply(i,[this].concat(t))||this).callbacks=null,n.unbind=noop$1,n.onWindowError=function(e){var t=n.getCallbacks();t.isDragging()&&t.tryAbort(),e.error instanceof RbdInvariant&&e.preventDefault()},n.getCallbacks=function(){if(n.callbacks)return n.callbacks;throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>")},n.setCallbacks=function(e){n.callbacks=e},n}_inheritsLoose$2(e,i);var t=e.prototype;return t.componentDidMount=function(){this.unbind=bindEvents(window,[{eventName:"error",fn:this.onWindowError}])},t.componentDidCatch=function(e){if(!(e instanceof RbdInvariant))throw e;this.setState({})},t.componentWillUnmount=function(){this.unbind()},t.render=function(){return this.props.children(this.setCallbacks)},e}(React5.Component),dragHandleUsageInstructions="\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",position=function(e){return e+1},onDragStart=function(e){return"\n You have lifted an item in position "+position(e.source.index)+"\n"},withLocation=function(e,t){var n=e.droppableId===t.droppableId,r=position(e.index),i=position(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+i+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+i+"\n "},withCombine=function(e,t,n){return t.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},onDragUpdate=function(e){var t=e.destination;return t?withLocation(e.source,t):(t=e.combine)?withCombine(e.draggableId,e.source,t):"You are over an area that cannot be dropped on"},returnedToStart=function(e){return"\n The item has returned to its starting position\n of "+position(e.index)+"\n"},onDragEnd=function(e){var t,n;return"CANCEL"===e.reason?"\n Movement cancelled.\n "+returnedToStart(e.source)+"\n ":(t=e.destination,n=e.combine,t?"\n You have dropped the item.\n "+withLocation(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+withCombine(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+returnedToStart(e.source)+"\n ")},preset={dragHandleUsageInstructions:dragHandleUsageInstructions,onDragStart:onDragStart,onDragUpdate:onDragUpdate,onDragEnd:onDragEnd},origin={x:0,y:0},add=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},subtract=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},isEqual=function(e,t){return e.x===t.x&&e.y===t.y},negate=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},patch=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},distance=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},closest=function(t,e){return Math.min.apply(Math,e.map(function(e){return distance(t,e)}))},apply$2=function(t){return function(e){return{x:t(e.x),y:t(e.y)}}},executeClip=function(e,t){t=getRect({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return t.width<=0||t.height<=0?null:t},offsetByPosition=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},getCorners=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},noSpacing={top:0,right:0,bottom:0,left:0},scroll=function(e,t){return t?offsetByPosition(e,t.scroll.diff.displacement):e},increase=function(e,t,n){var r;return n&&n.increasedBy?_extends$5({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e},clip=function(e,t){return t&&t.shouldClipSubject?executeClip(t.pageMarginBox,e):getRect(e)},getSubject=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,e=e.frame,i=scroll(t.marginBox,e),i=increase(i,r,n);return{page:t,withPlaceholder:n,active:clip(i,e)}},scrollDroppable=function(e,t){e.frame||invariant$1(!1);var n=e.frame,r=subtract(t,n.scroll.initial),i=negate(r),t=_extends$5({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:i},max:n.scroll.max}});return _extends$5({},e,{frame:t,subject:getSubject({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:t})})};function values$1(t){return Object.values?Object.values(t):Object.keys(t).map(function(e){return t[e]})}function findIndex(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function find(e,t){return e.find?e.find(t):-1!==(t=findIndex(e,t))?e[t]:void 0}function toArray(e){return Array.prototype.slice.call(e)}var toDroppableMap=memoizeOne(function(e){return e.reduce(function(e,t){return e[t.descriptor.id]=t,e},{})}),toDraggableMap=memoizeOne(function(e){return e.reduce(function(e,t){return e[t.descriptor.id]=t,e},{})}),toDroppableList=memoizeOne(function(e){return values$1(e)}),toDraggableList=memoizeOne(function(e){return values$1(e)}),getDraggablesInsideDroppable=memoizeOne(function(t,e){return toDraggableList(e).filter(function(e){return t===e.descriptor.droppableId}).sort(function(e,t){return e.descriptor.index-t.descriptor.index})});function tryGetDestination(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function tryGetCombine(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var removeDraggableFromList=memoizeOne(function(t,e){return e.filter(function(e){return e.descriptor.id!==t.descriptor.id})}),moveToNextCombine=function(e){var t,n=e.isMovingForward,r=e.draggable,i=e.destination,o=e.insideDestination,a=e.previousImpact;return i.isCombineEnabled&&tryGetDestination(a)?(e=a.displaced.all,t=e.length?e[0]:null,n?t?s(t):null:(e=removeDraggableFromList(r,o),t?(-1===(n=findIndex(e,function(e){return e.descriptor.id===t}))&&invariant$1(!1),(r=n-1)<0?null:s(e[r].descriptor.id)):e.length?s(e[e.length-1].descriptor.id):null)):null;function s(e){e={type:"COMBINE",combine:{draggableId:e,droppableId:i.descriptor.id}};return _extends$5({},a,{at:e})}},isHomeOf=function(e,t){return e.descriptor.droppableId===t.descriptor.id},noDisplacedBy={point:origin,value:0},emptyGroups={invisible:{},visible:{},all:[]},noImpact={displaced:emptyGroups,displacedBy:noDisplacedBy,at:null},isWithin=function(t,n){return function(e){return t<=e&&e<=n}},isPartiallyVisibleThroughFrame=function(i){var o=isWithin(i.top,i.bottom),a=isWithin(i.left,i.right);return function(e){var t,n,r;return!!(o(e.top)&&o(e.bottom)&&a(e.left)&&a(e.right))||(t=o(e.top)||o(e.bottom),n=a(e.left)||a(e.right),!(!t||!n))||(r=e.top<i.top&&e.bottom>i.bottom,e=e.left<i.left&&e.right>i.right,r&&e)||r&&n||e&&t}},isTotallyVisibleThroughFrame=function(e){var t=isWithin(e.top,e.bottom),n=isWithin(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},vertical={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},horizontal={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},isTotallyVisibleThroughFrameOnAxis=function(r){return function(e){var t=isWithin(e.top,e.bottom),n=isWithin(e.left,e.right);return function(e){return r===vertical?t(e.top)&&t(e.bottom):n(e.left)&&n(e.right)}}},getDroppableDisplaced=function(e,t){t=t.frame?t.frame.scroll.diff.displacement:origin;return offsetByPosition(e,t)},isVisibleInDroppable=function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)},isVisibleInViewport=function(e,t,n){return n(t)(e)},isVisible=function(e){var t=e.target,n=e.destination,r=e.viewport,i=e.withDroppableDisplacement,e=e.isVisibleThroughFrameFn,i=i?getDroppableDisplaced(t,n):t;return isVisibleInDroppable(i,n,e)&&isVisibleInViewport(i,r,e)},isPartiallyVisible=function(e){return isVisible(_extends$5({},e,{isVisibleThroughFrameFn:isPartiallyVisibleThroughFrame}))},isTotallyVisible=function(e){return isVisible(_extends$5({},e,{isVisibleThroughFrameFn:isTotallyVisibleThroughFrame}))},isTotallyVisibleOnAxis=function(e){return isVisible(_extends$5({},e,{isVisibleThroughFrameFn:isTotallyVisibleThroughFrameOnAxis(e.destination.axis)}))},getShouldAnimate=function(e,t,n){return"boolean"==typeof n?n:!t||(n=t.invisible,t=t.visible,!n[e]&&(!(n=t[e])||n.shouldAnimate))};function getTarget(e,t){e=e.page.marginBox,t={top:t.point.y,right:0,bottom:0,left:t.point.x};return getRect(expand(e,t))}function getDisplacementGroups(e){var t=e.afterDragging,i=e.destination,o=e.displacedBy,a=e.viewport,s=e.forceShouldAnimate,l=e.last;return t.reduce(function(e,t){var n=getTarget(t,o),r=t.descriptor.id;return e.all.push(r),isPartiallyVisible({target:n,destination:i,viewport:a,withDroppableDisplacement:!0})?(n=getShouldAnimate(r,l,s),e.visible[r]={draggableId:r,shouldAnimate:n}):e.invisible[t.descriptor.id]=!0,e},{all:[],visible:{},invisible:{}})}function getIndexOfLastItem(e,t){return e.length?(e=e[e.length-1].descriptor.index,t.inHomeList?e:e+1):0}function goAtEnd(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,e=e.destination,t=getIndexOfLastItem(t,{inHomeList:n});return{displaced:emptyGroups,displacedBy:r,at:{type:"REORDER",destination:{droppableId:e.descriptor.id,index:t}}}}function calculateReorderImpact(e){var t,n=e.draggable,r=e.insideDestination,i=e.destination,o=e.viewport,a=e.displacedBy,s=e.last,l=e.index,e=e.forceShouldAnimate,c=isHomeOf(n,i);return null!=l&&(t=find(r,function(e){return e.descriptor.index===l}))?(n=removeDraggableFromList(n,r),t=r.indexOf(t),{displaced:getDisplacementGroups({afterDragging:n.slice(t),destination:i,displacedBy:a,last:s,viewport:o.frame,forceShouldAnimate:e}),displacedBy:a,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:l}}}):goAtEnd({insideDestination:r,inHomeList:c,displacedBy:a,destination:i})}function didStartAfterCritical(e,t){return Boolean(t.effected[e])}var fromCombine=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,i=e.combine,e=e.afterCritical;return n.isCombineEnabled?(r=r[n=i.draggableId].descriptor.index,didStartAfterCritical(n,e)?t?r:r-1:t?r+1:r):null},fromReorder=function(e){var t,n=e.isMovingForward,r=e.isInHomeList,i=e.insideDestination,e=e.location;return!i.length||(e=e.index,t=i[0].descriptor.index,i=i[i.length-1].descriptor.index,(n=n?e+1:e-1)<t)||(r?i:i+1)<n?null:n},moveToNextIndex=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,i=e.draggables,o=e.destination,a=e.insideDestination,s=e.previousImpact,l=e.viewport,e=e.afterCritical,c=s.at;return c||invariant$1(!1),"REORDER"===c.type?null==(n=fromReorder({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:a}))?null:calculateReorderImpact({draggable:r,insideDestination:a,destination:o,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:n}):null==(n=fromCombine({isMovingForward:t,destination:o,displaced:s.displaced,draggables:i,combine:c.combine,afterCritical:e}))?null:calculateReorderImpact({draggable:r,insideDestination:a,destination:o,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:n})},getCombinedItemDisplacement=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,e=e.displacedBy,t=Boolean(t.visible[r]||t.invisible[r]);return didStartAfterCritical(r,n)?t?origin:negate(e.point):t?e.point:origin},whenCombining=function(e){var t=e.afterCritical,n=e.impact,e=e.draggables,r=tryGetCombine(n),r=(r||invariant$1(!1),r.draggableId),e=e[r].page.borderBox.center,t=getCombinedItemDisplacement({displaced:n.displaced,afterCritical:t,combineWith:r,displacedBy:n.displacedBy});return add(e,t)},distanceFromStartToBorderBoxCenter=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},distanceFromEndToBorderBoxCenter=function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2},getCrossAxisBorderBoxCenter=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},goAfter=function(e){var t=e.axis,n=e.moveRelativeTo,e=e.isMoving;return patch(t.line,n.marginBox[t.end]+distanceFromStartToBorderBoxCenter(t,e),getCrossAxisBorderBoxCenter(t,n.marginBox,e))},goBefore=function(e){var t=e.axis,n=e.moveRelativeTo,e=e.isMoving;return patch(t.line,n.marginBox[t.start]-distanceFromEndToBorderBoxCenter(t,e),getCrossAxisBorderBoxCenter(t,n.marginBox,e))},goIntoStart=function(e){var t=e.axis,n=e.moveInto,e=e.isMoving;return patch(t.line,n.contentBox[t.start]+distanceFromStartToBorderBoxCenter(t,e),getCrossAxisBorderBoxCenter(t,n.contentBox,e))},whenReordering=function(e){var t,n=e.impact,r=e.draggable,i=e.draggables,o=e.droppable,e=e.afterCritical,a=getDraggablesInsideDroppable(o.descriptor.id,i),s=r.page,l=o.axis;return a.length?(t=n.displaced,n=n.displacedBy,(t=t.all[0])?(i=i[t],didStartAfterCritical(t,e)?goBefore({axis:l,moveRelativeTo:i.page,isMoving:s}):(t=offset$1(i.page,n.point),goBefore({axis:l,moveRelativeTo:t,isMoving:s}))):(i=a[a.length-1]).descriptor.id===r.descriptor.id?s.borderBox.center:didStartAfterCritical(i.descriptor.id,e)?(n=offset$1(i.page,negate(e.displacedBy.point)),goAfter({axis:l,moveRelativeTo:n,isMoving:s})):goAfter({axis:l,moveRelativeTo:i.page,isMoving:s})):goIntoStart({axis:l,moveInto:o.page,isMoving:s})},withDroppableDisplacement=function(e,t){e=e.frame;return e?add(t,e.scroll.diff.displacement):t},getResultWithoutDroppableDisplacement=function(e){var t=e.impact,n=e.draggable,r=e.droppable,i=e.draggables,e=e.afterCritical,o=n.page.borderBox.center,a=t.at;return r&&a?"REORDER"===a.type?whenReordering({impact:t,draggable:n,draggables:i,droppable:r,afterCritical:e}):whenCombining({impact:t,draggables:i,afterCritical:e}):o},getPageBorderBoxCenterFromImpact=function(e){var t=getResultWithoutDroppableDisplacement(e),e=e.droppable;return e?withDroppableDisplacement(e,t):t},scrollViewport=function(e,t){var n=subtract(t,e.scroll.initial),r=negate(n);return{frame:getRect({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function getDraggables(e,t){return e.map(function(e){return t[e]})}function tryGetVisible(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}var speculativelyIncrease=function(e){var t=e.impact,n=e.viewport,r=e.destination,i=e.draggables,e=e.maxScrollChange,o=scrollViewport(n,add(n.scroll.current,e)),e=r.frame?scrollDroppable(r,add(r.frame.scroll.current,e)):r,a=t.displaced,r=getDisplacementGroups({afterDragging:getDraggables(a.all,i),destination:r,displacedBy:t.displacedBy,viewport:o.frame,last:a,forceShouldAnimate:!1}),o=getDisplacementGroups({afterDragging:getDraggables(a.all,i),destination:e,displacedBy:t.displacedBy,viewport:n.frame,last:a,forceShouldAnimate:!1}),s={},l={},c=[a,r,o];return a.all.forEach(function(e){var t=tryGetVisible(e,c);t?l[e]=t:s[e]=!0}),_extends$5({},t,{displaced:{all:a.all,invisible:s,visible:l}})},withViewportDisplacement=function(e,t){return add(e.scroll.diff.displacement,t)},getClientFromPageBorderBoxCenter=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,e=e.viewport,e=withViewportDisplacement(e,t),t=subtract(e,n.page.borderBox.center);return add(n.client.borderBox.center,t)},isTotallyVisibleInNewLocation=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,i=e.viewport,o=e.withDroppableDisplacement,e=e.onlyOnMainAxis,e=void 0!==e&&e,r=subtract(r,t.page.borderBox.center),t={target:offsetByPosition(t.page.borderBox,r),destination:n,withDroppableDisplacement:o,viewport:i};return(e?isTotallyVisibleOnAxis:isTotallyVisible)(t)},moveToNextPlace=function(e){var t,n,r=e.isMovingForward,i=e.draggable,o=e.destination,a=e.draggables,s=e.previousImpact,l=e.viewport,c=e.previousPageBorderBoxCenter,u=e.previousClientSelection,e=e.afterCritical;return o.isEnabled&&(n=getDraggablesInsideDroppable(o.descriptor.id,a),t=isHomeOf(i,o),r=moveToNextCombine({isMovingForward:r,draggable:i,destination:o,insideDestination:n,previousImpact:s})||moveToNextIndex({isMovingForward:r,isInHomeList:t,draggable:i,draggables:a,destination:o,insideDestination:n,previousImpact:s,viewport:l,afterCritical:e}))?(t=getPageBorderBoxCenterFromImpact({impact:r,draggable:i,droppable:o,draggables:a,afterCritical:e}),isTotallyVisibleInNewLocation({draggable:i,destination:o,newPageBorderBoxCenter:t,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?{clientSelection:getClientFromPageBorderBoxCenter({pageBorderBoxCenter:t,draggable:i,viewport:l}),impact:r,scrollJumpRequest:null}:(n=subtract(t,c),{clientSelection:u,impact:speculativelyIncrease({impact:r,viewport:l,destination:o,draggables:a,maxScrollChange:n}),scrollJumpRequest:n})):null},getKnownActive=function(e){e=e.subject.active;return e||invariant$1(!1),e},getBestCrossAxisDroppable=function(e){var i,n,r=e.isMovingForward,o=e.pageBorderBoxCenter,t=e.source,a=e.droppables,s=e.viewport,l=t.subject.active;return l&&(i=t.axis,n=isWithin(l[i.start],l[i.end]),(e=toDroppableList(a).filter(function(e){return e!==t}).filter(function(e){return e.isEnabled}).filter(function(e){return Boolean(e.subject.active)}).filter(function(e){return isPartiallyVisibleThroughFrame(s.frame)(getKnownActive(e))}).filter(function(e){e=getKnownActive(e);return r?l[i.crossAxisEnd]<e[i.crossAxisEnd]:e[i.crossAxisStart]<l[i.crossAxisStart]}).filter(function(e){var e=getKnownActive(e),t=isWithin(e[i.start],e[i.end]);return n(e[i.start])||n(e[i.end])||t(l[i.start])||t(l[i.end])}).sort(function(e,t){e=getKnownActive(e)[i.crossAxisStart],t=getKnownActive(t)[i.crossAxisStart];return r?e-t:t-e}).filter(function(e,t,n){return getKnownActive(e)[i.crossAxisStart]===getKnownActive(n[0])[i.crossAxisStart]})).length)?(1===e.length?e:1===(a=e.filter(function(e){return isWithin(getKnownActive(e)[i.start],getKnownActive(e)[i.end])(o[i.line])})).length?a:1<a.length?a.sort(function(e,t){return getKnownActive(e)[i.start]-getKnownActive(t)[i.start]}):e.sort(function(e,t){var n=closest(o,getCorners(getKnownActive(e))),r=closest(o,getCorners(getKnownActive(t)));return n!==r?n-r:getKnownActive(e)[i.start]-getKnownActive(t)[i.start]}))[0]:null},getCurrentPageBorderBoxCenter=function(e,t){var n=e.page.borderBox.center;return didStartAfterCritical(e.descriptor.id,t)?subtract(n,t.displacedBy.point):n},getCurrentPageBorderBox=function(e,t){var n=e.page.borderBox;return didStartAfterCritical(e.descriptor.id,t)?offsetByPosition(n,negate(t.displacedBy.point)):n},getClosestDraggable=function(e){var i=e.pageBorderBoxCenter,t=e.viewport,o=e.destination,n=e.insideDestination,a=e.afterCritical;return n.filter(function(e){return isTotallyVisible({target:getCurrentPageBorderBox(e,a),destination:o,viewport:t.frame,withDroppableDisplacement:!0})}).sort(function(e,t){var n=distance(i,withDroppableDisplacement(o,getCurrentPageBorderBoxCenter(e,a))),r=distance(i,withDroppableDisplacement(o,getCurrentPageBorderBoxCenter(t,a)));return n<r?-1:r<n?1:e.descriptor.index-t.descriptor.index})[0]||null},getDisplacedBy=memoizeOne(function(e,t){t=t[e.line];return{value:t,point:patch(e.line,t)}}),getRequiredGrowthForPlaceholder=function(e,t,n){var r,i=e.axis;return"virtual"===e.descriptor.mode?patch(i.line,t[i.line]):(r=e.subject.page.contentBox[i.size],(e=getDraggablesInsideDroppable(e.descriptor.id,n).reduce(function(e,t){return e+t.client.marginBox[i.size]},0)+t[i.line]-r)<=0?null:patch(i.line,e))},withMaxScroll=function(e,t){return _extends$5({},e,{scroll:_extends$5({},e.scroll,{max:t})})},addPlaceholder=function(e,t,n){var r=e.frame,t=(isHomeOf(t,e)&&invariant$1(!1),e.subject.withPlaceholder&&invariant$1(!1),getDisplacedBy(e.axis,t.displaceBy).point),n=getRequiredGrowthForPlaceholder(e,t,n),t={placeholderSize:t,increasedBy:n,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};return r?(n=n?add(r.scroll.max,n):r.scroll.max,r=withMaxScroll(r,n),_extends$5({},e,{subject:getSubject({page:e.subject.page,withPlaceholder:t,axis:e.axis,frame:r}),frame:r})):_extends$5({},e,{subject:getSubject({page:e.subject.page,withPlaceholder:t,axis:e.axis,frame:e.frame})})},removePlaceholder=function(e){var t=e.subject.withPlaceholder,n=(t||invariant$1(!1),e.frame);return n?((t=t.oldFrameMaxScroll)||invariant$1(!1),n=withMaxScroll(n,t),_extends$5({},e,{subject:getSubject({page:e.subject.page,axis:e.axis,frame:n,withPlaceholder:null}),frame:n})):_extends$5({},e,{subject:getSubject({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null})})},moveToNewDroppable=function(e){var t,n=e.previousPageBorderBoxCenter,r=e.moveRelativeTo,i=e.insideDestination,o=e.draggable,a=e.draggables,s=e.destination,l=e.viewport,e=e.afterCritical;return r?(n=Boolean(n[s.axis.line]<=r.page.borderBox.center[s.axis.line]),t=r.descriptor.index,r=r.descriptor.id===o.descriptor.id||n?t:t+1,n=getDisplacedBy(s.axis,o.displaceBy),calculateReorderImpact({draggable:o,insideDestination:i,destination:s,viewport:l,displacedBy:n,last:emptyGroups,index:r})):!i.length&&(t={displaced:emptyGroups,displacedBy:noDisplacedBy,at:{type:"REORDER",destination:{droppableId:s.descriptor.id,index:0}}},n=getPageBorderBoxCenterFromImpact({impact:t,draggable:o,droppable:s,draggables:a,afterCritical:e}),r=isHomeOf(o,s)?s:addPlaceholder(s,o,a),isTotallyVisibleInNewLocation({draggable:o,destination:r,newPageBorderBoxCenter:n,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))?t:null},moveCrossAxis=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,i=e.isOver,o=e.draggables,a=e.droppables,s=e.viewport,e=e.afterCritical,t=getBestCrossAxisDroppable({isMovingForward:t,pageBorderBoxCenter:n,source:i,droppables:a,viewport:s});return t&&(i=getDraggablesInsideDroppable(t.descriptor.id,o),a=getClosestDraggable({pageBorderBoxCenter:n,viewport:s,destination:t,insideDestination:i,afterCritical:e}),n=moveToNewDroppable({previousPageBorderBoxCenter:n,destination:t,draggable:r,draggables:o,moveRelativeTo:a,insideDestination:i,viewport:s,afterCritical:e}))?(a=getPageBorderBoxCenterFromImpact({impact:n,draggable:r,droppable:t,draggables:o,afterCritical:e}),{clientSelection:getClientFromPageBorderBoxCenter({pageBorderBoxCenter:a,draggable:r,viewport:s}),impact:n,scrollJumpRequest:null}):null},whatIsDraggedOver=function(e){e=e.at;return e?("REORDER"===e.type?e.destination:e.combine).droppableId:null},getDroppableOver=function(e,t){e=whatIsDraggedOver(e);return e?t[e]:null},moveInDirection=function(e){var t,n,r,i=e.state,e=e.type,o=getDroppableOver(i.impact,i.dimensions.droppables),a=Boolean(o),s=i.dimensions.droppables[i.critical.droppable.id],o=o||s,s=o.axis.direction,s="vertical"===s&&("MOVE_UP"===e||"MOVE_DOWN"===e)||"horizontal"===s&&("MOVE_LEFT"===e||"MOVE_RIGHT"===e);return s&&!a?null:(a="MOVE_DOWN"===e||"MOVE_RIGHT"===e,e=i.dimensions.draggables[i.critical.draggable.id],t=i.current.page.borderBoxCenter,n=(r=i.dimensions).draggables,r=r.droppables,s?moveToNextPlace({isMovingForward:a,previousPageBorderBoxCenter:t,draggable:e,destination:o,draggables:n,viewport:i.viewport,previousClientSelection:i.current.client.selection,previousImpact:i.impact,afterCritical:i.afterCritical}):moveCrossAxis({isMovingForward:a,previousPageBorderBoxCenter:t,draggable:e,isOver:o,draggables:n,droppables:r,viewport:i.viewport,afterCritical:i.afterCritical}))};function isMovementAllowed(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function isPositionInFrame(e){var t=isWithin(e.top,e.bottom),n=isWithin(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function getHasOverlap(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}function getFurthestAway(e){var n=e.pageBorderBox,t=e.draggable,e=e.candidates,r=t.page.borderBox.center,t=e.map(function(e){var t=e.axis,t=patch(e.axis.line,n.center[t.line],e.page.borderBox.center[t.crossAxisLine]);return{id:e.descriptor.id,distance:distance(r,t)}}).sort(function(e,t){return t.distance-e.distance});return t[0]?t[0].id:null}function getDroppableOver$1(e){var o=e.pageBorderBox,t=e.draggable,e=e.droppables,e=toDroppableList(e).filter(function(e){var t,n,r,i;return!!e.isEnabled&&!!(i=e.subject.active)&&!(!getHasOverlap(o,i)||!isPositionInFrame(i)(o.center)&&(e=e.axis,t=i.center[e.crossAxisLine],n=o[e.crossAxisStart],r=o[e.crossAxisEnd],e=(i=isWithin(i[e.crossAxisStart],i[e.crossAxisEnd]))(n),i=i(r),e||i)&&!(e?n<t:t<r))});return e.length?1===e.length?e[0].descriptor.id:getFurthestAway({pageBorderBox:o,draggable:t,candidates:e}):null}var offsetRectByPosition=function(e,t){return getRect(offsetByPosition(e,t))},withDroppableScroll=function(e,t){e=e.frame;return e?offsetRectByPosition(t,e.scroll.diff.value):t};function getIsDisplaced(e){var t=e.displaced,e=e.id;return Boolean(t.visible[e]||t.invisible[e])}function atIndex(e){var t=e.draggable,n=e.closest,e=e.inHomeList;return n?e&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}var getReorderImpact=function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,i=e.insideDestination,o=e.last,a=e.viewport,s=e.afterCritical,l=r.axis,e=getDisplacedBy(r.axis,n.displaceBy),c=e.value,u=t[l.start],d=t[l.end],t=atIndex({draggable:n,closest:find(removeDraggableFromList(n,i),function(e){var t=e.descriptor.id,e=e.page.borderBox.center[l.line],n=didStartAfterCritical(t,s),t=getIsDisplaced({displaced:o,id:t});return n?t?d<=e:u<e-c:t?d<=e+c:u<e}),inHomeList:isHomeOf(n,r)});return calculateReorderImpact({draggable:n,insideDestination:i,destination:r,viewport:a,last:o,displacedBy:e,index:t})},combineThresholdDivisor=4,getCombineImpact=function(e){var i,o,a,s,t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,l=e.previousImpact,r=e.destination,c=e.insideDestination,u=e.afterCritical;return r.isCombineEnabled&&(i=r.axis,e=getDisplacedBy(r.axis,t.displaceBy),o=e.value,a=n[i.start],s=n[i.end],n=find(removeDraggableFromList(t,c),function(e){var t=e.descriptor.id,e=e.page.borderBox,n=e[i.size]/combineThresholdDivisor,r=didStartAfterCritical(t,u),t=getIsDisplaced({displaced:l.displaced,id:t});return r?t?s>e[i.start]+n&&s<e[i.end]-n:a>e[i.start]-o+n&&a<e[i.end]-o-n:t?s>e[i.start]+o+n&&s<e[i.end]+o-n:a>e[i.start]+n&&a<e[i.end]-n}))?{displacedBy:e,displaced:l.displaced,at:{type:"COMBINE",combine:{draggableId:n.descriptor.id,droppableId:r.descriptor.id}}}:null},getDragImpact=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,i=e.droppables,o=e.previousImpact,a=e.viewport,e=e.afterCritical,t=offsetRectByPosition(n.page.borderBox,t),s=getDroppableOver$1({pageBorderBox:t,draggable:n,droppables:i});return s?(i=i[s],s=getDraggablesInsideDroppable(i.descriptor.id,r),r=withDroppableScroll(i,t),getCombineImpact({pageBorderBoxWithDroppableScroll:r,draggable:n,previousImpact:o,destination:i,insideDestination:s,afterCritical:e})||getReorderImpact({pageBorderBoxWithDroppableScroll:r,draggable:n,destination:i,insideDestination:s,last:o.displaced,viewport:a,afterCritical:e})):noImpact},patchDroppableMap=function(e,t){return _extends$5({},e,((e={})[t.descriptor.id]=t,e))},clearUnusedPlaceholder=function(e){var t=e.previousImpact,n=e.impact,e=e.droppables,t=whatIsDraggedOver(t),n=whatIsDraggedOver(n);return t&&t!==n&&(n=e[t]).subject.withPlaceholder?(t=removePlaceholder(n),patchDroppableMap(e,t)):e},recomputePlaceholders=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,i=e.previousImpact,e=e.impact,i=clearUnusedPlaceholder({previousImpact:i,impact:e,droppables:r}),e=whatIsDraggedOver(e);return!e||(r=r[e],isHomeOf(t,r))||r.subject.withPlaceholder?i:(e=addPlaceholder(r,t,n),patchDroppableMap(i,e))},update=function(e){var t,n=e.state,r=e.clientSelection,i=e.dimensions,o=e.viewport,a=e.impact,e=e.scrollJumpRequest,o=o||n.viewport,i=i||n.dimensions,r=r||n.current.client.selection,s=subtract(r,n.initial.client.selection),r={offset:s,selection:r,borderBoxCenter:add(n.initial.client.borderBoxCenter,s)},s={selection:add(r.selection,o.scroll.current),borderBoxCenter:add(r.borderBoxCenter,o.scroll.current),offset:add(r.offset,o.scroll.diff.value)},r={client:r,page:s};return"COLLECTING"===n.phase?_extends$5({phase:"COLLECTING"},n,{dimensions:i,viewport:o,current:r}):(t=i.draggables[n.critical.draggable.id],a=a||getDragImpact({pageOffset:s.offset,draggable:t,draggables:i.draggables,droppables:i.droppables,previousImpact:n.impact,viewport:o,afterCritical:n.afterCritical}),s=recomputePlaceholders({draggable:t,impact:a,previousImpact:n.impact,draggables:i.draggables,droppables:i.droppables}),_extends$5({},n,{current:r,dimensions:{draggables:i.draggables,droppables:s},impact:a,viewport:o,scrollJumpRequest:e||null,forceShouldAnimate:!e&&null}))};function getDraggables$1(e,t){return e.map(function(e){return t[e]})}var recompute=function(e){var t=e.impact,n=e.viewport,r=e.draggables,i=e.destination,e=e.forceShouldAnimate,o=t.displaced;return _extends$5({},t,{displaced:getDisplacementGroups({afterDragging:getDraggables$1(o.all,r),destination:i,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:e,last:o})})},getClientBorderBoxCenter=function(e){var t=e.impact,n=e.draggable,r=e.droppable,i=e.draggables,o=e.viewport,e=e.afterCritical,t=getPageBorderBoxCenterFromImpact({impact:t,draggable:n,draggables:i,droppable:r,afterCritical:e});return getClientFromPageBorderBoxCenter({pageBorderBoxCenter:t,draggable:n,viewport:o})},refreshSnap=function(e){var t=e.state,n=e.dimensions,e=e.viewport,r=("SNAP"!==t.movementMode&&invariant$1(!1),t.impact),e=e||t.viewport,n=n||t.dimensions,i=n.draggables,o=n.droppables,a=i[t.critical.draggable.id],s=whatIsDraggedOver(r),o=(s||invariant$1(!1),o[s]),s=recompute({impact:r,viewport:e,destination:o,draggables:i}),r=getClientBorderBoxCenter({impact:s,draggable:a,droppable:o,draggables:i,viewport:e,afterCritical:t.afterCritical});return update({impact:s,clientSelection:r,state:t,dimensions:n,viewport:e})},getHomeLocation=function(e){return{index:e.index,droppableId:e.droppableId}},getLiftEffect=function(e){var t=e.draggable,n=e.home,r=e.draggables,e=e.viewport,i=getDisplacedBy(n.axis,t.displaceBy),r=getDraggablesInsideDroppable(n.descriptor.id,r),o=r.indexOf(t),r=(-1===o&&invariant$1(!1),r.slice(o+1)),o=r.reduce(function(e,t){return e[t.descriptor.id]=!0,e},{}),o={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:o};return{impact:{displaced:getDisplacementGroups({afterDragging:r,destination:n,displacedBy:i,last:null,viewport:e.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:getHomeLocation(t.descriptor)}},afterCritical:o}},patchDimensionMap=function(e,t){return{draggables:e.draggables,droppables:patchDroppableMap(e.droppables,t)}},offsetDraggable=function(e){var t=e.draggable,n=e.offset,e=e.initialWindowScroll,n=offset$1(t.client,n),e=withScroll(n,e);return _extends$5({},t,{placeholder:_extends$5({},t.placeholder,{client:n}),client:n,page:e})},getFrame=function(e){e=e.frame;return e||invariant$1(!1),e},adjustAdditionsForScrollChanges=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,i=r.scroll.diff.value;return t.map(function(e){var t=e.descriptor.droppableId,t=n[t],t=getFrame(t).scroll.diff.value,t=add(i,t);return offsetDraggable({draggable:e,offset:t,initialWindowScroll:r.scroll.initial})})},publishWhileDraggingInVirtual=function(e){var n=e.state,e=e.published,t=e.modified.map(function(e){var t=n.dimensions.droppables[e.droppableId];return scrollDroppable(t,e.scroll)}),t=_extends$5({},n.dimensions.droppables,{},toDroppableMap(t)),r=toDraggableMap(adjustAdditionsForScrollChanges({additions:e.additions,updatedDroppables:t,viewport:n.viewport})),i=_extends$5({},n.dimensions.draggables,{},r),r=(e.removals.forEach(function(e){delete i[e]}),{droppables:t,draggables:i}),e=whatIsDraggedOver(n.impact),t=e?r.droppables[e]:null,e=r.draggables[n.critical.draggable.id],o=r.droppables[n.critical.droppable.id],e=getLiftEffect({draggable:e,home:o,draggables:i,viewport:n.viewport}),o=e.impact,e=e.afterCritical,t=t&&t.isCombineEnabled?n.impact:o,t=getDragImpact({pageOffset:n.current.page.offset,draggable:r.draggables[n.critical.draggable.id],draggables:r.draggables,droppables:r.droppables,previousImpact:t,viewport:n.viewport,afterCritical:e}),t=_extends$5({phase:"DRAGGING"},n,{phase:"DRAGGING",impact:t,onLiftImpact:o,dimensions:r,afterCritical:e,forceShouldAnimate:!1});return"COLLECTING"===n.phase?t:_extends$5({phase:"DROP_PENDING"},t,{phase:"DROP_PENDING",reason:n.reason,isWaiting:!1})},isSnapping=function(e){return"SNAP"===e.movementMode},postDroppableChange=function(e,t,n){t=patchDimensionMap(e.dimensions,t);return(!isSnapping(e)||n?update:refreshSnap)({state:e,dimensions:t})};function removeScrollJumpRequest(e){return e.isDragging&&"SNAP"===e.movementMode?_extends$5({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var idle={phase:"IDLE",completed:null,shouldFlush:!1},reducer$1=function(e,t){if(void 0===e&&(e=idle),"FLUSH"===t.type)return _extends$5({},idle,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type)return"IDLE"!==e.phase&&invariant$1(!1),l=(n=t.payload).critical,a=n.clientSelection,s=n.viewport,o=n.dimensions,n=n.movementMode,r=o.draggables[l.draggable.id],i=o.droppables[l.droppable.id],{phase:"DRAGGING",isDragging:!0,critical:l,movementMode:n,dimensions:o,initial:n={client:l={selection:a,borderBoxCenter:r.client.borderBox.center,offset:origin},page:{selection:add(l.selection,s.scroll.initial),borderBoxCenter:add(l.selection,s.scroll.initial),offset:add(l.selection,s.scroll.diff.value)}},current:n,isWindowScrollAllowed:toDroppableList(o.droppables).every(function(e){return!e.isFixedOnPage}),impact:l=(a=getLiftEffect({draggable:r,home:i,draggables:o.draggables,viewport:s})).impact,afterCritical:a.afterCritical,onLiftImpact:l,viewport:s,scrollJumpRequest:null,forceShouldAnimate:null};if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&invariant$1(!1),_extends$5({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&invariant$1(!1),publishWhileDraggingInVirtual({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;isMovementAllowed(e)||invariant$1(!1);var n=t.payload.client;return isEqual(n,e.current.client.selection)?e:update({state:e,clientSelection:n,impact:isSnapping(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return removeScrollJumpRequest(e);if("COLLECTING"===e.phase)return removeScrollJumpRequest(e);isMovementAllowed(e)||invariant$1(!1);var r=t.payload,i=r.id,o=r.newScroll,a=e.dimensions.droppables[i];return a?(l=scrollDroppable(a,o),postDroppableChange(e,l,!1)):e}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;isMovementAllowed(e)||invariant$1(!1);var s=t.payload,n=s.id,r=s.isEnabled,i=e.dimensions.droppables[n],a=(i||invariant$1(!1),i.isEnabled===r&&invariant$1(!1),_extends$5({},i,{isEnabled:r}));return postDroppableChange(e,a,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;isMovementAllowed(e)||invariant$1(!1);var o=t.payload,l=o.id,s=o.isCombineEnabled,n=e.dimensions.droppables[l],i=(n||invariant$1(!1),n.isCombineEnabled===s&&invariant$1(!1),_extends$5({},n,{isCombineEnabled:s}));return postDroppableChange(e,i,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;isMovementAllowed(e)||invariant$1(!1),e.isWindowScrollAllowed||invariant$1(!1);r=t.payload.newScroll;return isEqual(e.viewport.scroll.current,r)?removeScrollJumpRequest(e):(a=scrollViewport(e.viewport,r),(isSnapping(e)?refreshSnap:update)({state:e,viewport:a}))}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type)return!isMovementAllowed(e)||(o=t.payload.maxScroll,isEqual(o,e.viewport.scroll.max))?e:(l=_extends$5({},e.viewport,{scroll:_extends$5({},e.viewport.scroll,{max:o})}),_extends$5({phase:"DRAGGING"},e,{viewport:l}));if("MOVE_UP"!==t.type&&"MOVE_DOWN"!==t.type&&"MOVE_LEFT"!==t.type&&"MOVE_RIGHT"!==t.type)return"DROP_PENDING"===t.type?(n=t.payload.reason,"COLLECTING"!==e.phase&&invariant$1(!1),_extends$5({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:n})):"DROP_ANIMATE"===t.type?(i=(s=t.payload).completed,r=s.dropDuration,a=s.newHomeClientOffset,"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&invariant$1(!1),{phase:"DROP_ANIMATING",completed:i,dropDuration:r,newHomeClientOffset:a,dimensions:e.dimensions}):"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e;if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&invariant$1(!1);o=moveInDirection({state:e,type:t.type});return o?update({state:e,impact:o.impact,clientSelection:o.clientSelection,scrollJumpRequest:o.scrollJumpRequest}):e},beforeInitialCapture=function(e){return{type:"BEFORE_INITIAL_CAPTURE",payload:e}},lift=function(e){return{type:"LIFT",payload:e}},initialPublish=function(e){return{type:"INITIAL_PUBLISH",payload:e}},publishWhileDragging=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},collectionStarting=function(){return{type:"COLLECTION_STARTING",payload:null}},updateDroppableScroll=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},updateDroppableIsEnabled=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},updateDroppableIsCombineEnabled=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},move=function(e){return{type:"MOVE",payload:e}},moveByWindowScroll=function(e){return{type:"MOVE_BY_WINDOW_SCROLL",payload:e}},updateViewportMaxScroll=function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}},moveUp=function(){return{type:"MOVE_UP",payload:null}},moveDown=function(){return{type:"MOVE_DOWN",payload:null}},moveRight=function(){return{type:"MOVE_RIGHT",payload:null}},moveLeft=function(){return{type:"MOVE_LEFT",payload:null}},flush$1=function(){return{type:"FLUSH",payload:null}},animateDrop=function(e){return{type:"DROP_ANIMATE",payload:e}},completeDrop=function(e){return{type:"DROP_COMPLETE",payload:e}},drop=function(e){return{type:"DROP",payload:e}},dropPending=function(e){return{type:"DROP_PENDING",payload:e}},dropAnimationFinished=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}},lift$1=function(l){return function(e){var a=e.getState,s=e.dispatch;return function(o){return function(e){var t,n,r,i;"LIFT"!==e.type?o(e):(n=(e=e.payload).id,t=e.clientSelection,e=e.movementMode,"DROP_ANIMATING"===(i=a()).phase&&s(completeDrop({completed:i.completed})),"IDLE"!==a().phase&&invariant$1(!1),s(flush$1()),s(beforeInitialCapture({draggableId:n,movementMode:e})),n=(i=l.startPublishing({draggableId:n,scrollOptions:{shouldPublishImmediately:"SNAP"===e}})).critical,r=i.dimensions,i=i.viewport,s(initialPublish({critical:n,dimensions:r,clientSelection:t,movementMode:e,viewport:i})))}}}},style=function(n){return function(){return function(t){return function(e){"INITIAL_PUBLISH"===e.type&&n.dragging(),"DROP_ANIMATE"===e.type&&n.dropping(e.payload.completed.result.reason),"FLUSH"!==e.type&&"DROP_COMPLETE"!==e.type||n.resting(),t(e)}}}},curves={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},combine={opacity:{drop:0,combining:.7},scale:{drop:.75}},timings={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},outOfTheWayTiming=timings.outOfTheWay+"s "+curves.outOfTheWay,transitions={fluid:"opacity "+outOfTheWayTiming,snap:"transform "+outOfTheWayTiming+", opacity "+outOfTheWayTiming,drop:function(e){e=e+"s "+curves.drop;return"transform "+e+", opacity "+e},outOfTheWay:"transform "+outOfTheWayTiming,placeholder:"height "+outOfTheWayTiming+", width "+outOfTheWayTiming+", margin "+outOfTheWayTiming},moveTo=function(e){return isEqual(e,origin)?null:"translate("+e.x+"px, "+e.y+"px)"},transforms={moveTo:moveTo,drop:function(e,t){e=moveTo(e);return e?t?e+" scale("+combine.scale.drop+")":e:null}},minDropTime=timings.minDropTime,maxDropTime=timings.maxDropTime,dropTimeRange=maxDropTime-minDropTime,maxDropTimeAtDistance=1500,cancelDropModifier=.6,getDropDuration=function(e){var t=e.current,n=e.destination,e=e.reason,t=distance(t,n);return t<=0?minDropTime:maxDropTimeAtDistance<=t?maxDropTime:(n=minDropTime+dropTimeRange*(t/maxDropTimeAtDistance),Number(("CANCEL"===e?n*cancelDropModifier:n).toFixed(2)))},getNewHomeClientOffset=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,i=e.viewport,e=e.afterCritical,o=r.draggables,r=r.droppables,a=whatIsDraggedOver(t),a=a?r[a]:null,r=r[n.descriptor.droppableId],t=getClientBorderBoxCenter({impact:t,draggable:n,draggables:o,afterCritical:e,droppable:a||r,viewport:i});return subtract(t,n.client.borderBox.center)},getDropImpact=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,i=e.home,o=e.viewport,e=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:_extends$5({},r,{displaced:emptyGroups}),didDropInsideDroppable:!0}:{impact:recompute({draggables:t,impact:e,destination:i,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1}},drop$1=function(e){var c=e.getState,u=e.dispatch;return function(l){return function(e){var t,n,r,i,o,a,s;"DROP"!==e.type?l(e):(t=c(),e=e.payload.reason,"COLLECTING"===t.phase?u(dropPending({reason:e})):"IDLE"!==t.phase&&("DROP_PENDING"===t.phase&&t.isWaiting&&invariant$1(!1),"DRAGGING"!==t.phase&&"DROP_PENDING"!==t.phase&&invariant$1(!1),i=t.critical,s=(n=t.dimensions).draggables[t.critical.draggable.id],r=(a=getDropImpact({reason:e,lastImpact:t.impact,afterCritical:t.afterCritical,onLiftImpact:t.onLiftImpact,home:t.dimensions.droppables[t.critical.droppable.id],viewport:t.viewport,draggables:t.dimensions.draggables})).impact,o=(a=a.didDropInsideDroppable)?tryGetDestination(r):null,a=a?tryGetCombine(r):null,i={index:i.draggable.index,droppableId:i.droppable.id},i={draggableId:s.descriptor.id,type:s.descriptor.type,source:i,reason:e,mode:t.movementMode,destination:o,combine:a},o=getNewHomeClientOffset({impact:r,draggable:s,dimensions:n,viewport:t.viewport,afterCritical:t.afterCritical}),a={critical:t.critical,afterCritical:t.afterCritical,result:i,impact:r},!isEqual(t.current.client.offset,o)||Boolean(i.combine)?(s=getDropDuration({current:t.current.client.offset,destination:o,reason:e}),u(animateDrop({newHomeClientOffset:o,dropDuration:s,completed:a}))):u(completeDrop({completed:a}))))}}},getWindowScroll=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function getWindowScrollBinding(t){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(e){e.target!==window&&e.target!==window.document||t()}}}function getScrollListener(e){var t=e.onWindowScroll;var n=rafSchd$1(function(){t(getWindowScroll())}),r=getWindowScrollBinding(n),i=noop$1;function o(){return i!==noop$1}return{start:function(){o()&&invariant$1(!1),i=bindEvents(window,[r])},stop:function(){o()||invariant$1(!1),n.cancel(),i(),i=noop$1},isActive:o}}var shouldEnd=function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type},scrollListener=function(t){var n=getScrollListener({onWindowScroll:function(e){t.dispatch(moveByWindowScroll({newScroll:e}))}});return function(t){return function(e){n.isActive()||"INITIAL_PUBLISH"!==e.type||n.start(),n.isActive()&&shouldEnd(e)&&n.stop(),t(e)}}},getExpiringAnnounce=function(t){function e(e){n||r||(n=!0,t(e),clearTimeout(i))}var n=!1,r=!1,i=setTimeout(function(){r=!0});return e.wasCalled=function(){return n},e},getAsyncMarshal=function(){var r=[];return{add:function(e){var n=setTimeout(function(){return t=n,-1===(e=findIndex(r,function(e){return e.timerId===t}))&&invariant$1(!1),void r.splice(e,1)[0].callback();var t,e});r.push({timerId:n,callback:e})},flush:function(){var e;r.length&&(e=[].concat(r),r.length=0,e.forEach(function(e){clearTimeout(e.timerId),e.callback()}))}}},areLocationsEqual=function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.droppableId===t.droppableId&&e.index===t.index},isCombineEqual=function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId},isCriticalEqual=function(e,t){var n;return e===t||(n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,e=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type,n&&e)},withTimings=function(e,t){t()},getDragStart=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},execute=function(e,t,n,r){e&&(e(t,{announce:e=getExpiringAnnounce(n)}),e.wasCalled())||n(r(t))},getPublisher=function(s,l){function t(e){u||invariant$1(!1),u=null,withTimings("onDragEnd",function(){return execute(s().onDragEnd,e,l,preset.onDragEnd)})}var c=getAsyncMarshal(),u=null;return{beforeCapture:function(t,n){u&&invariant$1(!1),withTimings("onBeforeCapture",function(){var e=s().onBeforeCapture;e&&e({draggableId:t,mode:n})})},beforeStart:function(t,n){u&&invariant$1(!1),withTimings("onBeforeDragStart",function(){var e=s().onBeforeDragStart;e&&e(getDragStart(t,n))})},start:function(e,t){u&&invariant$1(!1);var n=getDragStart(e,t);u={mode:t,lastCritical:e,lastLocation:n.source,lastCombine:null},c.add(function(){withTimings("onDragStart",function(){return execute(s().onDragStart,n,l,preset.onDragStart)})})},update:function(e,t){var n,r=tryGetDestination(t),t=tryGetCombine(t),i=(u||invariant$1(!1),!isCriticalEqual(e,u.lastCritical)),o=(i&&(u.lastCritical=e),!areLocationsEqual(u.lastLocation,r)),a=(o&&(u.lastLocation=r),!isCombineEqual(u.lastCombine,t));a&&(u.lastCombine=t),(i||o||a)&&(n=_extends$5({},getDragStart(e,u.mode),{combine:t,destination:r}),c.add(function(){withTimings("onDragUpdate",function(){return execute(s().onDragUpdate,n,l,preset.onDragUpdate)})}))},flush:function(){u||invariant$1(!1),c.flush()},drop:t,abort:function(){var e;u&&(e=_extends$5({},getDragStart(u.lastCritical,u.mode),{combine:null,destination:null,reason:"CANCEL"}),t(e))}}},responders=function(e,t){var i=getPublisher(e,t);return function(r){return function(n){return function(e){var t;"BEFORE_INITIAL_CAPTURE"===e.type?i.beforeCapture(e.payload.draggableId,e.payload.movementMode):"INITIAL_PUBLISH"===e.type?(t=e.payload.critical,i.beforeStart(t,e.payload.movementMode),n(e),i.start(t,e.payload.movementMode)):"DROP_COMPLETE"===e.type?(t=e.payload.completed.result,i.flush(),n(e),i.drop(t)):(n(e),"FLUSH"===e.type?i.abort():"DRAGGING"===(t=r.getState()).phase&&i.update(t.critical,t.impact))}}}},dropAnimationFinish=function(n){return function(t){return function(e){"DROP_ANIMATION_FINISHED"!==e.type?t(e):("DROP_ANIMATING"!==(e=n.getState()).phase&&invariant$1(!1),n.dispatch(completeDrop({completed:e.completed})))}}},dropAnimationFlushOnScroll=function(r){var i=null,o=null;return function(n){return function(e){var t;"FLUSH"!==e.type&&"DROP_COMPLETE"!==e.type&&"DROP_ANIMATION_FINISHED"!==e.type||(o&&(cancelAnimationFrame(o),o=null),i&&(i(),i=null)),n(e),"DROP_ANIMATE"===e.type&&(t={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===r.getState().phase&&r.dispatch(dropAnimationFinished())}},o=requestAnimationFrame(function(){o=null,i=bindEvents(window,[t])}))}}},dimensionMarshalStopper=function(n){return function(){return function(t){return function(e){"DROP_COMPLETE"!==e.type&&"FLUSH"!==e.type&&"DROP_ANIMATE"!==e.type||n.stopPublishing(),t(e)}}}},focus=function(n){var r=!1;return function(){return function(t){return function(e){"INITIAL_PUBLISH"===e.type?(r=!0,n.tryRecordFocus(e.payload.critical.draggable.id),t(e),n.tryRestoreFocusRecorded()):(t(e),r&&("FLUSH"===e.type?(r=!1,n.tryRestoreFocusRecorded()):"DROP_COMPLETE"===e.type&&(r=!1,(e=e.payload.completed.result).combine&&n.tryShiftRecord(e.draggableId,e.combine.draggableId),n.tryRestoreFocusRecorded())))}}}},shouldStop=function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type},autoScroll=function(i){return function(r){return function(n){return function(e){var t;shouldStop(e)?(i.stop(),n(e)):"INITIAL_PUBLISH"===e.type?(n(e),"DRAGGING"!==(t=r.getState()).phase&&invariant$1(!1),i.start(t)):(n(e),i.scroll(r.getState()))}}}},pendingDrop=function(n){return function(t){return function(e){t(e),"PUBLISH_WHILE_DRAGGING"!==e.type||"DROP_PENDING"!==(e=n.getState()).phase||e.isWaiting||n.dispatch(drop({reason:e.reason}))}}},composeEnhancers=compose,createStore=function(e){var t=e.dimensionMarshal,n=e.focusMarshal,r=e.styleMarshal,i=e.getResponders,o=e.announce,e=e.autoScroller;return createStore$1(reducer$1,composeEnhancers(applyMiddleware(style(r),dimensionMarshalStopper(t),lift$1(t),drop$1,dropAnimationFinish,dropAnimationFlushOnScroll,pendingDrop,autoScroll(e),scrollListener,focus(n),responders(i,o))))},clean$1=function(){return{additions:{},removals:{},modified:{}}};function createPublisher(e){function n(){a||(i.collectionStarting(),a=requestAnimationFrame(function(){a=null;var e=o,t=e.additions,n=e.removals,e=e.modified,t=Object.keys(t).map(function(e){return r.draggable.getById(e).getDimension(origin)}).sort(function(e,t){return e.descriptor.index-t.descriptor.index}),e=Object.keys(e).map(function(e){return{droppableId:e,scroll:r.droppable.getById(e).callbacks.getScrollWhileDragging()}}),t={additions:t,removals:Object.keys(n),modified:e};o=clean$1(),i.publish(t)}))}var r=e.registry,i=e.callbacks,o=clean$1(),a=null;return{add:function(e){var t=e.descriptor.id;o.additions[t]=e,o.modified[e.descriptor.droppableId]=!0,o.removals[t]&&delete o.removals[t],n()},remove:function(e){e=e.descriptor;o.removals[e.id]=!0,o.modified[e.droppableId]=!0,o.additions[e.id]&&delete o.additions[e.id],n()},stop:function(){a&&(cancelAnimationFrame(a),a=null,o=clean$1())}}}var getMaxScroll=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,e=e.width,n=subtract({x:n,y:t},{x:e,y:r});return{x:Math.max(0,n.x),y:Math.max(0,n.y)}},getDocumentElement=function(){var e=document.documentElement;return e||invariant$1(!1),e},getMaxWindowScroll=function(){var e=getDocumentElement();return getMaxScroll({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},getViewport=function(){var e=getWindowScroll(),t=getMaxWindowScroll(),n=e.y,r=e.x,i=getDocumentElement(),o=i.clientWidth,i=i.clientHeight;return{frame:getRect({top:n,left:r,right:r+o,bottom:n+i}),scroll:{initial:e,current:e,max:t,diff:{value:origin,displacement:origin}}}},getInitialPublish=function(e){var t=e.critical,n=e.scrollOptions,e=e.registry,r=getViewport(),i=r.scroll.current,o=t.droppable,o=e.droppable.getAllByType(o.type).map(function(e){return e.callbacks.getDimensionAndWatchScroll(i,n)}),e=e.draggable.getAllByType(t.draggable.type).map(function(e){return e.getDimension(i)});return{dimensions:{draggables:toDraggableMap(e),droppables:toDroppableMap(o)},critical:t,viewport:r}};function shouldPublishUpdate(e,t,n){return n.descriptor.id!==t.id&&n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode}var createDimensionMarshal=function(r,n){function i(e){o||invariant$1(!1);var t=o.critical.draggable;"ADDITION"===e.type&&shouldPublishUpdate(r,t,e.value)&&a.add(e.value),"REMOVAL"===e.type&&shouldPublishUpdate(r,t,e.value)&&a.remove(e.value)}var o=null,a=createPublisher({callbacks:{publish:n.publishWhileDragging,collectionStarting:n.collectionStarting},registry:r});return{updateDroppableIsEnabled:function(e,t){r.droppable.exists(e)||invariant$1(!1),o&&n.updateDroppableIsEnabled({id:e,isEnabled:t})},updateDroppableIsCombineEnabled:function(e,t){o&&(r.droppable.exists(e)||invariant$1(!1),n.updateDroppableIsCombineEnabled({id:e,isCombineEnabled:t}))},scrollDroppable:function(e,t){o&&r.droppable.getById(e).callbacks.scroll(t)},updateDroppableScroll:function(e,t){o&&(r.droppable.exists(e)||invariant$1(!1),n.updateDroppableScroll({id:e,newScroll:t}))},startPublishing:function(e){o&&invariant$1(!1);var t=r.draggable.getById(e.draggableId),n=r.droppable.getById(t.descriptor.droppableId),t={draggable:t.descriptor,droppable:n.descriptor},n=r.subscribe(i);return o={critical:t,unsubscribe:n},getInitialPublish({critical:t,registry:r,scrollOptions:e.scrollOptions})},stopPublishing:function(){var e;o&&(a.stop(),e=o.critical.droppable,r.droppable.getAllByType(e.type).forEach(function(e){return e.callbacks.dragStopped()}),o.unsubscribe(),o=null)}}},canStartDrag=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason},scrollWindow=function(e){window.scrollBy(e.x,e.y)},getScrollableDroppables=memoizeOne(function(e){return toDroppableList(e).filter(function(e){return!!e.isEnabled&&!!e.frame})}),getScrollableDroppableOver=function(t,e){return find(getScrollableDroppables(e),function(e){return e.frame||invariant$1(!1),isPositionInFrame(e.frame.pageMarginBox)(t)})},getBestScrollableDroppable=function(e){var t=e.center,n=e.destination,e=e.droppables;return n?(n=e[n]).frame?n:null:getScrollableDroppableOver(t,e)},config$1={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(e){return Math.pow(e,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},getDistanceThresholds=function(e,t){return{startScrollingFrom:e[t.size]*config$1.startFromPercentage,maxScrollValueAt:e[t.size]*config$1.maxScrollAtPercentage}},getPercentage=function(e){var t=e.startOfRange,n=e.endOfRange,e=e.current,n=n-t;return 0==n?0:(e-t)/n},minScroll=1,getValueFromDistance=function(e,t){return e>t.startScrollingFrom?0:e<=t.maxScrollValueAt?config$1.maxPixelScroll:e===t.startScrollingFrom?minScroll:(t=getPercentage({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),e=config$1.maxPixelScroll*config$1.ease(1-t),Math.ceil(e))},accelerateAt=config$1.durationDampening.accelerateAt,stopAt=config$1.durationDampening.stopDampeningAt,dampenValueByTime=function(e,t){var n=stopAt,t=Date.now()-t;return stopAt<=t?e:t<accelerateAt?minScroll:(n=getPercentage({startOfRange:accelerateAt,endOfRange:n,current:t}),t=e*config$1.ease(n),Math.ceil(t))},getValue=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,e=e.shouldUseTimeDampening,t=getValueFromDistance(t,n);return 0===t?0:e?Math.max(dampenValueByTime(t,r),minScroll):t},getScrollOnAxis=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,i=e.axis,e=e.shouldUseTimeDampening,t=getDistanceThresholds(t,i);return n[i.end]<n[i.start]?getValue({distanceToEdge:n[i.end],thresholds:t,dragStartTime:r,shouldUseTimeDampening:e}):-1*getValue({distanceToEdge:n[i.start],thresholds:t,dragStartTime:r,shouldUseTimeDampening:e})},adjustForSizeLimits=function(e){var t=e.container,n=e.subject,e=e.proposedScroll,r=n.height>t.height,n=n.width>t.width;return n||r?n&&r?null:{x:n?0:e.x,y:r?0:e.y}:e},clean$2=apply$2(function(e){return 0===e?0:e}),getScroll=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,i=e.center,e=e.shouldUseTimeDampening,i={top:i.y-n.top,right:n.right-i.x,bottom:n.bottom-i.y,left:i.x-n.left},o=getScrollOnAxis({container:n,distanceToEdges:i,dragStartTime:t,axis:vertical,shouldUseTimeDampening:e}),i=getScrollOnAxis({container:n,distanceToEdges:i,dragStartTime:t,axis:horizontal,shouldUseTimeDampening:e}),t=clean$2({x:i,y:o});return isEqual(t,origin)||!(e=adjustForSizeLimits({container:n,subject:r,proposedScroll:t}))||isEqual(e,origin)?null:e},smallestSigned=apply$2(function(e){return 0===e?0:0<e?1:-1}),getOverlap=function(){function r(e,t){return e<0?e:t<e?e-t:0}return function(e){var t=e.current,n=e.max,e=e.change,t=add(t,e),e={x:r(t.x,n.x),y:r(t.y,n.y)};return isEqual(e,origin)?null:e}}(),canPartiallyScroll=function(e){var t=e.max,n=e.current,e=e.change,t={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},e=smallestSigned(e),t=getOverlap({max:t,current:n,change:e});return!t||0!==e.x&&0===t.x||0!==e.y&&0===t.y},canScrollWindow=function(e,t){return canPartiallyScroll({current:e.scroll.current,max:e.scroll.max,change:t})},getWindowOverlap=function(e,t){var n;return canScrollWindow(e,t)?(n=e.scroll.max,e=e.scroll.current,getOverlap({current:e,max:n,change:t})):null},canScrollDroppable=function(e,t){e=e.frame;return!!e&&canPartiallyScroll({current:e.scroll.current,max:e.scroll.max,change:t})},getDroppableOverlap=function(e,t){var n=e.frame;return n&&canScrollDroppable(e,t)?getOverlap({current:n.scroll.current,max:n.scroll.max,change:t}):null},getWindowScrollChange=function(e){var t=e.viewport,n=e.subject,r=e.center,i=e.dragStartTime,e=e.shouldUseTimeDampening,i=getScroll({dragStartTime:i,container:t.frame,subject:n,center:r,shouldUseTimeDampening:e});return i&&canScrollWindow(t,i)?i:null},getDroppableScrollChange=function(e){var t=e.droppable,n=e.subject,r=e.center,i=e.dragStartTime,e=e.shouldUseTimeDampening,o=t.frame;return o&&(i=getScroll({dragStartTime:i,container:o.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:e}))&&canScrollDroppable(t,i)?i:null},scroll$1=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,i=e.scrollWindow,e=e.scrollDroppable,o=t.current.page.borderBoxCenter,a=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var s=t.viewport,s=getWindowScrollChange({dragStartTime:n,viewport:s,subject:a,center:o,shouldUseTimeDampening:r});if(s)return void i(s)}i=getBestScrollableDroppable({center:o,destination:whatIsDraggedOver(t.impact),droppables:t.dimensions.droppables});i&&(s=getDroppableScrollChange({dragStartTime:n,droppable:i,subject:a,center:o,shouldUseTimeDampening:r}))&&e(i.descriptor.id,s)},createFluidScroller=function(e){function i(e){a||invariant$1(!1);var t=a.shouldUseTimeDampening,n=(n=a).dragStartTime;scroll$1({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:n,shouldUseTimeDampening:t})}var t=e.scrollWindow,e=e.scrollDroppable,r=rafSchd$1(t),o=rafSchd$1(e),a=null;return{start:function(e){a&&invariant$1(!1);function t(){r=!0}var n=Date.now(),r=!1;scroll$1({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:t,scrollDroppable:t}),a={dragStartTime:n,shouldUseTimeDampening:r},r&&i(e)},stop:function(){a&&(r.cancel(),o.cancel(),a=null)},scroll:i}},createJumpScroller=function(e){var o=e.move,a=e.scrollDroppable,s=e.scrollWindow;return function(e){var t,n,r,i=e.scrollJumpRequest;i&&((r=whatIsDraggedOver(e.impact))||invariant$1(!1),r=e.dimensions.droppables[r],t=canScrollDroppable(r,i=i)?(t=getDroppableOverlap(r,i))?(t=subtract(i,t),a(r.descriptor.id,t),subtract(i,t)):(a(r.descriptor.id,i),null):i)&&(r=e.viewport,i=e.isWindowScrollAllowed,r=r,n=t,i=i&&canScrollWindow(r,n)?(i=getWindowOverlap(r,n))?(r=subtract(n,i),s(r),subtract(n,r)):(s(n),null):n)&&(r=add((r=e).current.client.selection,i),o({client:r}))}},createAutoScroller=function(e){var t=e.scrollDroppable,n=e.scrollWindow,e=e.move,r=createFluidScroller({scrollWindow:n,scrollDroppable:t}),i=createJumpScroller({move:e,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"===e.movementMode?r.scroll(e):e.scrollJumpRequest&&i(e))},start:r.start,stop:r.stop}},prefix$1="data-rbd",dragHandle=function(){var e=prefix$1+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),draggable=function(){var e=prefix$1+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),droppable=function(){var e=prefix$1+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),scrollContainer={contextId:prefix$1+"-scroll-container-context-id"},makeGetSelector=function(t){return function(e){return"["+e+'="'+t+'"]'}},getStyles=function(e,n){return e.map(function(e){var t=e.styles[n];return t?e.selector+" { "+t+" }":""}).join(" ")},noPointerEvents="pointer-events: none;",getStyles$1=function(e){var e=makeGetSelector(e),t=(t="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:e(dragHandle.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:t,dragging:noPointerEvents,dropAnimating:t}});n="\n transition: "+transitions.outOfTheWay+";\n ";var n=[{selector:e(draggable.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}},t,{selector:e(droppable.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:getStyles(n,"always"),resting:getStyles(n,"resting"),dragging:getStyles(n,"dragging"),dropAnimating:getStyles(n,"dropAnimating"),userCancel:getStyles(n,"userCancel")}},useIsomorphicLayoutEffect$1="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?react$1.exports.useLayoutEffect:react$1.exports.useEffect,getHead=function(){var e=document.querySelector("head");return e||invariant$1(!1),e},createStyleEl=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function useStyleMarshal(n,r){var i=useMemo(function(){return getStyles$1(n)},[n]),o=react$1.exports.useRef(null),a=react$1.exports.useRef(null),s=useCallback(memoizeOne(function(e){var t=a.current;t||invariant$1(!1),t.textContent=e}),[]),l=useCallback(function(e){var t=o.current;t||invariant$1(!1),t.textContent=e},[]),e=(useIsomorphicLayoutEffect$1(function(){(o.current||a.current)&&invariant$1(!1);var e=createStyleEl(r),t=createStyleEl(r);return o.current=e,a.current=t,e.setAttribute(prefix$1+"-always",n),t.setAttribute(prefix$1+"-dynamic",n),getHead().appendChild(e),getHead().appendChild(t),l(i.always),s(i.resting),function(){function e(e){var t=e.current;t||invariant$1(!1),getHead().removeChild(t),e.current=null}e(o),e(a)}},[r,l,s,i.always,i.resting,n]),useCallback(function(){return s(i.dragging)},[s,i.dragging])),t=useCallback(function(e){s("DROP"===e?i.dropAnimating:i.userCancel)},[s,i.dropAnimating,i.userCancel]),c=useCallback(function(){a.current&&s(i.resting)},[s,i.resting]);return useMemo(function(){return{dragging:e,dropping:t,resting:c}},[e,t,c])}var getWindowFromEl=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function isHtmlElement(e){return e instanceof getWindowFromEl(e).HTMLElement}function findDragHandle(e,t){var e="["+dragHandle.contextId+'="'+e+'"]',e=toArray(document.querySelectorAll(e));return e.length&&(e=find(e,function(e){return e.getAttribute(dragHandle.draggableId)===t}))&&isHtmlElement(e)?e:null}function useFocusMarshal(t){var r=react$1.exports.useRef({}),n=react$1.exports.useRef(null),i=react$1.exports.useRef(null),o=react$1.exports.useRef(!1),e=useCallback(function(t,e){var n={id:t,focus:e};return r.current[t]=n,function(){var e=r.current;e[t]!==n&&delete e[t]}},[]),a=useCallback(function(e){e=findDragHandle(t,e);e&&e!==document.activeElement&&e.focus()},[t]),s=useCallback(function(e,t){n.current===e&&(n.current=t)},[]),l=useCallback(function(){i.current||o.current&&(i.current=requestAnimationFrame(function(){i.current=null;var e=n.current;e&&a(e)}))},[a]),c=useCallback(function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(dragHandle.draggableId)===e&&(n.current=e)},[]);return useIsomorphicLayoutEffect$1(function(){return o.current=!0,function(){o.current=!1;var e=i.current;e&&cancelAnimationFrame(e)}},[]),useMemo(function(){return{register:e,tryRecordFocus:c,tryRestoreFocusRecorded:l,tryShiftRecord:s}},[e,c,l,s])}function createRegistry(){var r={draggables:{},droppables:{}},n=[];function i(t){n.length&&n.forEach(function(e){return e(t)})}function o(e){return r.draggables[e]||null}function a(e){return r.droppables[e]||null}return{draggable:{register:function(e){i({type:"ADDITION",value:r.draggables[e.descriptor.id]=e})},update:function(e,t){var n=r.draggables[t.descriptor.id];n&&n.uniqueId===e.uniqueId&&(delete r.draggables[t.descriptor.id],r.draggables[e.descriptor.id]=e)},unregister:function(e){var t=e.descriptor.id,n=o(t);n&&e.uniqueId===n.uniqueId&&(delete r.draggables[t],i({type:"REMOVAL",value:e}))},getById:function(e){return(e=o(e))||invariant$1(!1),e},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return values$1(r.draggables).filter(function(e){return e.descriptor.type===t})}},droppable:{register:function(e){r.droppables[e.descriptor.id]=e},unregister:function(e){var t=a(e.descriptor.id);t&&e.uniqueId===t.uniqueId&&delete r.droppables[e.descriptor.id]},getById:function(e){return(e=a(e))||invariant$1(!1),e},findById:a,exists:function(e){return Boolean(a(e))},getAllByType:function(t){return values$1(r.droppables).filter(function(e){return e.descriptor.type===t})}},subscribe:function(t){return n.push(t),function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}},clean:function(){r.draggables={},r.droppables={},n.length=0}}}function useRegistry(){var e=useMemo(createRegistry,[]);return react$1.exports.useEffect(function(){return function(){requestAnimationFrame(e.clean)}},[e]),e}var StoreContext=React5.createContext(null),getBodyElement=function(){var e=document.body;return e||invariant$1(!1),e},visuallyHidden$2={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},getId=function(e){return"rbd-announcement-"+e};function useAnnouncer(e){var n=useMemo(function(){return getId(e)},[e]),r=react$1.exports.useRef(null);return react$1.exports.useEffect(function(){var t=document.createElement("div");return(r.current=t).id=n,t.setAttribute("aria-live","assertive"),t.setAttribute("aria-atomic","true"),_extends$5(t.style,visuallyHidden$2),getBodyElement().appendChild(t),function(){setTimeout(function(){var e=getBodyElement();e.contains(t)&&e.removeChild(t),t===r.current&&(r.current=null)})}},[n]),useCallback(function(e){var t=r.current;t&&(t.textContent=e)},[])}var count=0,defaults={separator:"::"};function useUniqueId(e,t){return useMemo(function(){return""+e+t.separator+count++},[(t=void 0===t?defaults:t).separator,e])}function getElementId(e){return"rbd-hidden-text-"+e.contextId+"-"+e.uniqueId}function useHiddenTextElement(e){var t=e.contextId,n=e.text,r=useUniqueId("hidden-text",{separator:"-"}),i=useMemo(function(){return getElementId({contextId:t,uniqueId:r})},[r,t]);return react$1.exports.useEffect(function(){var t=document.createElement("div");return t.id=i,t.textContent=n,t.style.display="none",getBodyElement().appendChild(t),function(){var e=getBodyElement();e.contains(t)&&e.removeChild(t)}},[i,n]),i}var AppContext=React5.createContext(null);function usePrevious$2(e){var t=react$1.exports.useRef(e);return react$1.exports.useEffect(function(){t.current=e}),t}function create$2(){var t=null;function e(){t||invariant$1(!1),t=null}return{isClaimed:function(){return Boolean(t)},isActive:function(e){return e===t},claim:function(e){return t&&invariant$1(!1),t=e={abandon:e}},release:e,tryAbandon:function(){t&&(t.abandon(),e())}}}var _preventedKeys,tab=9,enter=13,escape$2=27,space=32,pageUp=33,pageDown=34,end=35,home=36,arrowLeft=37,arrowUp=38,arrowRight=39,arrowDown=40,preventedKeys=((_preventedKeys={})[enter]=!0,_preventedKeys[tab]=!0,_preventedKeys),preventStandardKeyEvents=function(e){preventedKeys[e.keyCode]&&e.preventDefault()},supportedEventName=function(){var e="visibilitychange";return"undefined"!=typeof document&&find([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],function(e){return"on"+e in document})||e}(),primaryButton=0,sloppyClickThreshold=5;function isSloppyClickThresholdExceeded(e,t){return Math.abs(t.x-e.x)>=sloppyClickThreshold||Math.abs(t.y-e.y)>=sloppyClickThreshold}var _scrollJumpKeys,idle$1={type:"IDLE"};function getCaptureBindings(e){var n=e.cancel,r=e.completed,i=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,r=e.clientY;t===primaryButton&&(t={x:n,y:r},"DRAGGING"===(n=i()).type?(e.preventDefault(),n.actions.move(t)):("PENDING"!==n.type&&invariant$1(!1),isSloppyClickThresholdExceeded(n.point,t)&&(e.preventDefault(),r=n.actions.fluidLift(t),o({type:"DRAGGING",actions:r}))))}},{eventName:"mouseup",fn:function(e){var t=i();("DRAGGING"!==t.type?n:(e.preventDefault(),t.actions.drop({shouldBlockNextClick:!0}),r))()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===i().type&&e.preventDefault(),n()}},{eventName:"keydown",fn:function(e){"PENDING"===i().type?n():e.keyCode===escape$2?(e.preventDefault(),n()):preventStandardKeyEvents(e)}},{eventName:"resize",fn:n},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===i().type&&n()}},{eventName:"webkitmouseforcedown",fn:function(e){var t=i();"IDLE"===t.type&&invariant$1(!1),t.actions.shouldRespectForcePress()?n():e.preventDefault()}},{eventName:supportedEventName,fn:n}]}function useMouseSensor(r){var n=react$1.exports.useRef(idle$1),i=react$1.exports.useRef(noop$1),e=useMemo(function(){return{eventName:"mousedown",fn:function(e){var t;e.defaultPrevented||e.button!==primaryButton||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||(t=r.findClosestDraggableId(e))&&(t=r.tryGetLock(t,a,{sourceEvent:e}))&&(e.preventDefault(),e={x:e.clientX,y:e.clientY},i.current(),c(t,e))}}},[r]),t=useMemo(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(e){var t,n;e.defaultPrevented||(t=r.findClosestDraggableId(e))&&(n=r.findOptionsForDraggable(t))&&!n.shouldRespectForcePress&&r.canGetLock(t)&&e.preventDefault()}}},[r]),o=useCallback(function(){i.current=bindEvents(window,[t,e],{passive:!1,capture:!0})},[t,e]),a=useCallback(function(){"IDLE"!==n.current.type&&(n.current=idle$1,i.current(),o())},[o]),s=useCallback(function(){var e=n.current;a(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[a]),l=useCallback(function(){var e=getCaptureBindings({cancel:s,completed:a,getPhase:function(){return n.current},setPhase:function(e){n.current=e}});i.current=bindEvents(window,e,{capture:!0,passive:!1})},[s,a]),c=useCallback(function(e,t){"IDLE"!==n.current.type&&invariant$1(!1),n.current={type:"PENDING",point:t,actions:e},l()},[l]);useIsomorphicLayoutEffect$1(function(){return o(),function(){i.current()}},[o])}function noop$1$1(){}(_scrollJumpKeys={})[pageDown]=!0,_scrollJumpKeys[pageUp]=!0,_scrollJumpKeys[home]=!0,_scrollJumpKeys[end]=!0;var scrollJumpKeys=_scrollJumpKeys;function getDraggingBindings(t,n){function r(){n(),t.cancel()}return[{eventName:"keydown",fn:function(e){e.keyCode===escape$2?(e.preventDefault(),r()):e.keyCode===space?(e.preventDefault(),n(),t.drop()):e.keyCode===arrowDown?(e.preventDefault(),t.moveDown()):e.keyCode===arrowUp?(e.preventDefault(),t.moveUp()):e.keyCode===arrowRight?(e.preventDefault(),t.moveRight()):e.keyCode===arrowLeft?(e.preventDefault(),t.moveLeft()):scrollJumpKeys[e.keyCode]?e.preventDefault():preventStandardKeyEvents(e)}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:supportedEventName,fn:r}]}function useKeyboardSensor(i){var o=react$1.exports.useRef(noop$1$1),e=useMemo(function(){return{eventName:"keydown",fn:function(e){var t,n;function r(){n||invariant$1(!1),n=!1,o.current(),a()}e.defaultPrevented||e.keyCode===space&&(t=i.findClosestDraggableId(e))&&(t=i.tryGetLock(t,r,{sourceEvent:e}))&&(e.preventDefault(),n=!0,e=t.snapLift(),o.current(),o.current=bindEvents(window,getDraggingBindings(e,r),{capture:!0,passive:!1}))}}},[i]),a=useCallback(function(){o.current=bindEvents(window,[e],{passive:!1,capture:!0})},[e]);useIsomorphicLayoutEffect$1(function(){return a(),function(){o.current()}},[a])}var idle$2={type:"IDLE"},timeForLongPress=120,forcePressThreshold=.15;function getWindowBindings(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"!==n().type||e.keyCode===escape$2&&e.preventDefault(),t()}},{eventName:supportedEventName,fn:t}]}function getHandleBindings(e){var r=e.cancel,n=e.completed,i=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var t,n=i();"DRAGGING"!==n.type?r():(n.hasMoved=!0,t={x:(t=e.touches[0]).clientX,y:t.clientY},e.preventDefault(),n.actions.move(t))}},{eventName:"touchend",fn:function(e){var t=i();("DRAGGING"!==t.type?r:(e.preventDefault(),t.actions.drop({shouldBlockNextClick:!0}),n))()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"!==i().type||e.preventDefault(),r()}},{eventName:"touchforcechange",fn:function(e){var t=i(),n=("IDLE"===t.type&&invariant$1(!1),e.touches[0]);if(n&&n.force>=forcePressThreshold){n=t.actions.shouldRespectForcePress();if("PENDING"!==t.type)return!n||t.hasMoved?void e.preventDefault():void r();n&&r()}}},{eventName:supportedEventName,fn:r}]}function useTouchSensor(n){var t=react$1.exports.useRef(idle$2),i=react$1.exports.useRef(noop$1),o=useCallback(function(){return t.current},[]),r=useCallback(function(e){t.current=e},[]),e=useMemo(function(){return{eventName:"touchstart",fn:function(e){var t;e.defaultPrevented||(t=n.findClosestDraggableId(e))&&(t=n.tryGetLock(t,s,{sourceEvent:e}))&&(e={x:(e=e.touches[0]).clientX,y:e.clientY},i.current(),d(t,e))}}},[n]),a=useCallback(function(){i.current=bindEvents(window,[e],{capture:!0,passive:!1})},[e]),s=useCallback(function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),r(idle$2),i.current(),a())},[a,r]),l=useCallback(function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[s]),c=useCallback(function(){var e={capture:!0,passive:!1},t={cancel:l,completed:s,getPhase:o},n=bindEvents(window,getHandleBindings(t),e),r=bindEvents(window,getWindowBindings(t),e);i.current=function(){n(),r()}},[l,o,s]),u=useCallback(function(){var e=o(),e=("PENDING"!==e.type&&invariant$1(!1),e.actions.fluidLift(e.point));r({type:"DRAGGING",actions:e,hasMoved:!1})},[o,r]),d=useCallback(function(e,t){"IDLE"!==o().type&&invariant$1(!1);var n=setTimeout(u,timeForLongPress);r({type:"PENDING",point:t,actions:e,longPressTimerId:n}),c()},[c,o,r,u]);useIsomorphicLayoutEffect$1(function(){return a(),function(){i.current();var e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),r(idle$2))}},[o,a,r]),useIsomorphicLayoutEffect$1(function(){return bindEvents(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])},[])}var interactiveTagNames={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function isAnInteractiveElement(e,t){var n;return null!=t&&(!!Boolean(interactiveTagNames[t.tagName.toLowerCase()])||"true"===(n=t.getAttribute("contenteditable"))||""===n||t!==e&&isAnInteractiveElement(e,t.parentElement))}function isEventInInteractiveElement(e,t){t=t.target;return!!isHtmlElement(t)&&isAnInteractiveElement(e,t)}var getBorderBoxCenterPosition=function(e){return getRect(e.getBoundingClientRect()).center};function isElement(e){return e instanceof getWindowFromEl(e).Element}var supportedMatchesName=function(){var e="matches";return"undefined"!=typeof document&&find([e,"msMatchesSelector","webkitMatchesSelector"],function(e){return e in Element.prototype})||e}();function closestPonyfill(e,t){return null==e?null:e[supportedMatchesName](t)?e:closestPonyfill(e.parentElement,t)}function closest$1(e,t){return e.closest?e.closest(t):closestPonyfill(e,t)}function getSelector(e){return"["+dragHandle.contextId+'="'+e+'"]'}function findClosestDragHandleFromEvent(e,t){var t=t.target;return isElement(t)&&(t=closest$1(t,getSelector(e)))&&isHtmlElement(t)?t:null}function tryGetClosestDraggableIdFromEvent(e,t){e=findClosestDragHandleFromEvent(e,t);return e?e.getAttribute(dragHandle.draggableId):null}function findDraggable(e,t){e="["+draggable.contextId+'="'+e+'"]',e=find(toArray(document.querySelectorAll(e)),function(e){return e.getAttribute(draggable.id)===t});return e&&isHtmlElement(e)?e:null}function preventDefault(e){e.preventDefault()}function _isActive(e){var t=e.expected,n=e.phase,r=e.isLockActive;return e.shouldWarn,!!r()&&t===n}function canStart(e){var t=e.lockAPI,n=e.store,r=e.registry,e=e.draggableId;return!(t.isClaimed()||!(t=r.draggable.findById(e))||!t.options.isEnabled||!canStartDrag(n.getState(),e))}function tryStart(e){var t,n,r,i,o,a=e.lockAPI,s=e.contextId,l=e.store,c=e.registry,u=e.draggableId,d=e.forceSensorStop,e=e.sourceEvent;return!canStart({lockAPI:a,store:l,registry:c,draggableId:u})||(t=c.draggable.getById(u),!(n=findDraggable(s,t.descriptor.id)))||e&&!t.options.canDragInteractiveElements&&isEventInInteractiveElement(n,e)?null:(r=a.claim(d||noop$1),i="PRE_DRAG",o=function(e,t){_isActive({expected:e,phase:i,isLockActive:f,shouldWarn:!0})&&l.dispatch(t())}.bind(null,"DRAGGING"),{isActive:function(){return _isActive({expected:"PRE_DRAG",phase:i,isLockActive:f,shouldWarn:!1})},shouldRespectForcePress:p,fluidLift:function(e){var t=rafSchd$1(function(e){o(function(){return move({client:e})})});return _extends$5({},h({liftActionArgs:{id:u,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}}),{move:t})},snapLift:function(){var e={moveUp:function(){return o(moveUp)},moveRight:function(){return o(moveRight)},moveDown:function(){return o(moveDown)},moveLeft:function(){return o(moveLeft)}};return h({liftActionArgs:{id:u,clientSelection:getBorderBoxCenterPosition(n),movementMode:"SNAP"},cleanup:noop$1,actions:e})},abort:function(){_isActive({expected:"PRE_DRAG",phase:i,isLockActive:f,shouldWarn:!0})&&a.release()}});function p(){return t.options.shouldRespectForcePress}function f(){return a.isActive(r)}function h(n){function r(){a.release(),i="COMPLETED"}function t(e,t){void 0===t&&(t={shouldBlockNextClick:!1}),n.cleanup(),t.shouldBlockNextClick&&(t=bindEvents(window,[{eventName:"click",fn:preventDefault,options:{once:!0,passive:!1,capture:!0}}]),setTimeout(t)),r(),l.dispatch(drop({reason:e}))}return"PRE_DRAG"!==i&&(r(),"PRE_DRAG"!==i)&&invariant$1(!1),l.dispatch(lift(n.liftActionArgs)),i="DRAGGING",_extends$5({isActive:function(){return _isActive({expected:"DRAGGING",phase:i,isLockActive:f,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(e){return t("DROP",e)},cancel:function(e){return t("CANCEL",e)}},n.actions)}}var defaultSensors=[useMouseSensor,useKeyboardSensor,useTouchSensor];function useSensorMarshal(e){for(var r=e.contextId,i=e.store,o=e.registry,t=e.customSensors,e=e.enableDefaultSensors,n=[].concat(e?defaultSensors:[],t||[]),a=react$1.exports.useState(function(){return create$2()})[0],s=useCallback(function(e,t){e.isDragging&&!t.isDragging&&a.tryAbandon()},[a]),l=(useIsomorphicLayoutEffect$1(function(){var t=i.getState();return i.subscribe(function(){var e=i.getState();s(t,e),t=e})},[a,i,s]),useIsomorphicLayoutEffect$1(function(){return a.tryAbandon},[a.tryAbandon]),useCallback(function(e){return canStart({lockAPI:a,registry:o,store:i,draggableId:e})},[a,o,i])),c=useCallback(function(e,t,n){return tryStart({lockAPI:a,registry:o,contextId:r,store:i,draggableId:e,forceSensorStop:t,sourceEvent:n&&n.sourceEvent?n.sourceEvent:null})},[r,a,o,i]),u=useCallback(function(e){return tryGetClosestDraggableIdFromEvent(r,e)},[r]),d=useCallback(function(e){e=o.draggable.findById(e);return e?e.options:null},[o.draggable]),p=useCallback(function(){a.isClaimed()&&(a.tryAbandon(),"IDLE"!==i.getState().phase)&&i.dispatch(flush$1())},[a,i]),f=useCallback(a.isClaimed,[a]),h=useMemo(function(){return{canGetLock:l,tryGetLock:c,findClosestDraggableId:u,findOptionsForDraggable:d,tryReleaseLock:p,isLockClaimed:f}},[l,c,u,d,p,f]),m=0;m<n.length;m++)n[m](h)}var createResponders=function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function getStore(e){return e.current||invariant$1(!1),e.current}function App$1(e){var t=e.contextId,n=e.setCallbacks,r=e.sensors,i=e.nonce,o=e.dragHandleUsageInstructions,a=react$1.exports.useRef(null),s=usePrevious$2(e),l=useCallback(function(){return createResponders(s.current)},[s]),c=useAnnouncer(t),u=useHiddenTextElement({contextId:t,text:o}),d=useStyleMarshal(t,i),p=useCallback(function(e){getStore(a).dispatch(e)},[]),f=useMemo(function(){return bindActionCreators$1({publishWhileDragging:publishWhileDragging,updateDroppableScroll:updateDroppableScroll,updateDroppableIsEnabled:updateDroppableIsEnabled,updateDroppableIsCombineEnabled:updateDroppableIsCombineEnabled,collectionStarting:collectionStarting},p)},[p]),h=useRegistry(),m=useMemo(function(){return createDimensionMarshal(h,f)},[h,f]),g=useMemo(function(){return createAutoScroller(_extends$5({scrollWindow:scrollWindow,scrollDroppable:m.scrollDroppable},bindActionCreators$1({move:move},p)))},[m.scrollDroppable,p]),y=useFocusMarshal(t),o=useMemo(function(){return createStore({announce:c,autoScroller:g,dimensionMarshal:m,focusMarshal:y,getResponders:l,styleMarshal:d})},[c,g,m,y,l,d]),v=(a.current=o,useCallback(function(){var e=getStore(a);"IDLE"!==e.getState().phase&&e.dispatch(flush$1())},[])),x=useCallback(function(){var e=getStore(a).getState();return e.isDragging||"DROP_ANIMATING"===e.phase},[]),$=(n(useMemo(function(){return{isDragging:x,tryAbort:v}},[x,v])),useCallback(function(e){return canStartDrag(getStore(a).getState(),e)},[])),b=useCallback(function(){return isMovementAllowed(getStore(a).getState())},[]),i=useMemo(function(){return{marshal:m,focus:y,contextId:t,canLift:$,isMovementAllowed:b,dragHandleUsageInstructionsId:u,registry:h}},[t,m,u,y,$,b,h]);return useSensorMarshal({contextId:t,store:o,registry:h,customSensors:r,enableDefaultSensors:!1!==e.enableDefaultSensors}),react$1.exports.useEffect(function(){return v},[v]),React5.createElement(AppContext.Provider,{value:i},React5.createElement(Provider,{context:StoreContext,store:o},e.children))}var count$1=0;function useInstanceCount(){return useMemo(function(){return""+count$1++},[])}function DragDropContext(t){var n=useInstanceCount(),r=t.dragHandleUsageInstructions||preset.dragHandleUsageInstructions;return React5.createElement(ErrorBoundary,null,function(e){return React5.createElement(App$1,{nonce:t.nonce,contextId:n,setCallbacks:e,dragHandleUsageInstructions:r,enableDefaultSensors:t.enableDefaultSensors,sensors:t.sensors,onBeforeCapture:t.onBeforeCapture,onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragUpdate:t.onDragUpdate,onDragEnd:t.onDragEnd},t.children)})}var isEqual$1=function(t){return function(e){return t===e}},isScroll=isEqual$1("scroll"),isAuto=isEqual$1("auto"),isEither=function(e,t){return t(e.overflowX)||t(e.overflowY)},isElementScrollable=function(e){e=window.getComputedStyle(e),e={overflowX:e.overflowX,overflowY:e.overflowY};return isEither(e,isScroll)||isEither(e,isAuto)},isBodyScrollable=function(){return!1},getClosestScrollable=function e(t){return null==t?null:t===document.body?isBodyScrollable()?t:null:t===document.documentElement?null:isElementScrollable(t)?t:e(t.parentElement)},getScroll$1=function(e){return{x:e.scrollLeft,y:e.scrollTop}},getIsFixed=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},getEnv=function(e){return{closestScrollable:getClosestScrollable(e),isFixedOnPage:getIsFixed(e)}},getDroppableDimension=function(e){var t,n=e.descriptor,r=e.isEnabled,i=e.isCombineEnabled,o=e.isFixedOnPage,a=e.direction,s=e.client,l=e.page,e=e.closest,c=e?(u=e.scrollSize,c=e.client,t=getMaxScroll({scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth,height:c.paddingBox.height,width:c.paddingBox.width}),{pageMarginBox:e.page.marginBox,frameClient:c,scrollSize:u,shouldClipSubject:e.shouldClipSubject,scroll:{initial:e.scroll,current:e.scroll,max:t,diff:{value:origin,displacement:origin}}}):null,u="vertical"===a?vertical:horizontal;return{descriptor:n,isCombineEnabled:i,isFixedOnPage:o,axis:u,isEnabled:r,client:s,page:l,frame:c,subject:getSubject({page:l,withPlaceholder:null,axis:u,frame:c})}},getClient=function(e,t){var n,r,i=getBox(e);return!t||e!==t?i:(e=i.paddingBox.top-t.scrollTop,n=i.paddingBox.left-t.scrollLeft,r=e+t.scrollHeight,t=n+t.scrollWidth,e=expand({top:e,right:t,bottom:r,left:n},i.border),createBox({borderBox:e,margin:i.margin,border:i.border,padding:i.padding}))},getDimension=function(e){var t,n=e.ref,r=e.descriptor,i=e.env,o=e.windowScroll,a=e.direction,s=e.isDropDisabled,l=e.isCombineEnabled,e=e.shouldClipSubject,c=i.closestScrollable,n=getClient(n,c),u=withScroll(n,o),d=c?(d=getBox(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth},{client:d,page:withScroll(d,o),scroll:getScroll$1(c),scrollSize:t,shouldClipSubject:e}):null;return getDroppableDimension({descriptor:r,isEnabled:!s,isCombineEnabled:l,isFixedOnPage:i.isFixedOnPage,direction:a,client:n,page:u,closest:d})},immediate={passive:!1},delayed={passive:!0},getListenerOptions=function(e){return e.shouldPublishImmediately?immediate:delayed};function useRequiredContext(e){e=react$1.exports.useContext(e);return e||invariant$1(!1),e}var getClosestScrollableFromDrag=function(e){return e&&e.env.closestScrollable||null};function useDroppablePublisher(e){var o=react$1.exports.useRef(null),a=useRequiredContext(AppContext),t=useUniqueId("droppable"),n=a.registry,r=a.marshal,s=usePrevious$2(e),l=useMemo(function(){return{id:e.droppableId,type:e.type,mode:e.mode}},[e.droppableId,e.mode,e.type]),i=react$1.exports.useRef(l),c=useMemo(function(){return memoizeOne(function(e,t){o.current||invariant$1(!1),r.updateDroppableScroll(l.id,{x:e,y:t})})},[l.id,r]),u=useCallback(function(){var e=o.current;return e&&e.env.closestScrollable?getScroll$1(e.env.closestScrollable):origin},[]),d=useCallback(function(){var e=u();c(e.x,e.y)},[u,c]),p=useMemo(function(){return rafSchd$1(d)},[d]),f=useCallback(function(){var e=o.current,t=getClosestScrollableFromDrag(e);e&&t||invariant$1(!1),(e.scrollOptions.shouldPublishImmediately?d:p)()},[p,d]),h=useCallback(function(e,t){o.current&&invariant$1(!1);var n=s.current,r=n.getDroppableRef(),i=(r||invariant$1(!1),getEnv(r)),t={ref:r,descriptor:l,env:i,scrollOptions:t},r=(o.current=t,getDimension({ref:r,descriptor:l,env:i,windowScroll:e,direction:n.direction,isDropDisabled:n.isDropDisabled,isCombineEnabled:n.isCombineEnabled,shouldClipSubject:!n.ignoreContainerClipping})),e=i.closestScrollable;return e&&(e.setAttribute(scrollContainer.contextId,a.contextId),e.addEventListener("scroll",f,getListenerOptions(t.scrollOptions))),r},[a.contextId,l,f,s]),m=useCallback(function(){var e=o.current,t=getClosestScrollableFromDrag(e);return e&&t||invariant$1(!1),getScroll$1(t)},[]),g=useCallback(function(){var e=o.current,t=(e||invariant$1(!1),getClosestScrollableFromDrag(e));o.current=null,t&&(p.cancel(),t.removeAttribute(scrollContainer.contextId),t.removeEventListener("scroll",f,getListenerOptions(e.scrollOptions)))},[f,p]),y=useCallback(function(e){var t=o.current,t=(t||invariant$1(!1),getClosestScrollableFromDrag(t));t||invariant$1(!1),t.scrollTop+=e.y,t.scrollLeft+=e.x},[]),v=useMemo(function(){return{getDimensionAndWatchScroll:h,getScrollWhileDragging:m,dragStopped:g,scroll:y}},[g,h,m,y]),x=useMemo(function(){return{uniqueId:t,descriptor:l,callbacks:v}},[v,l,t]);useIsomorphicLayoutEffect$1(function(){return i.current=x.descriptor,n.droppable.register(x),function(){o.current&&g(),n.droppable.unregister(x)}},[v,l,g,x,r,n.droppable]),useIsomorphicLayoutEffect$1(function(){o.current&&r.updateDroppableIsEnabled(i.current.id,!e.isDropDisabled)},[e.isDropDisabled,r]),useIsomorphicLayoutEffect$1(function(){o.current&&r.updateDroppableIsCombineEnabled(i.current.id,e.isCombineEnabled)},[e.isCombineEnabled,r])}function noop$2(){}var empty$1={width:0,height:0,margin:noSpacing},getSize=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,e=e.animate;return t||"close"===e?empty$1:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}},getStyle=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,e=e.animate,t=getSize({isAnimatingOpenOnMount:t,placeholder:n,animate:e});return{display:n.display,boxSizing:"border-box",width:t.width,height:t.height,marginTop:t.margin.top,marginRight:t.margin.right,marginBottom:t.margin.bottom,marginLeft:t.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==e?transitions.placeholder:null}};function Placeholder(e){var t=react$1.exports.useRef(null),n=useCallback(function(){t.current&&(clearTimeout(t.current),t.current=null)},[]),r=e.animate,i=e.onTransitionEnd,o=e.onClose,a=e.contextId,s=react$1.exports.useState("open"===e.animate),l=s[0],c=s[1],s=(react$1.exports.useEffect(function(){return l?"open"!==r?(n(),c(!1),noop$2):t.current?noop$2:(t.current=setTimeout(function(){t.current=null,c(!1)}),n):noop$2},[r,l,n]),useCallback(function(e){"height"===e.propertyName&&(i(),"close"===r)&&o()},[r,o,i])),u=getStyle({isAnimatingOpenOnMount:l,animate:e.animate,placeholder:e.placeholder});return React5.createElement(e.placeholder.tagName,{style:u,"data-rbd-placeholder-context-id":a,onTransitionEnd:s,ref:e.innerRef})}var Placeholder$1=React5.memo(Placeholder),DroppableContext=React5.createContext(null),AnimateInOut=function(i){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))||this).state={isVisible:Boolean(e.props.on),data:e.props.on,animate:e.props.shouldAnimate&&e.props.on?"open":"none"},e.onClose=function(){"close"===e.state.animate&&e.setState({isVisible:!1})},e}return _inheritsLoose$2(e,i),e.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},e.prototype.render=function(){var e;return this.state.isVisible?(e={onClose:this.onClose,data:this.state.data,animate:this.state.animate},this.props.children(e)):null},e}(React5.PureComponent),zIndexOptions={dragging:5e3,dropAnimating:4500},getDraggingTransition=function(e,t){return t?transitions.drop(t.duration):e?transitions.snap:transitions.fluid},getDraggingOpacity=function(e,t){return e?t?combine.opacity.drop:combine.opacity.combining:null},getShouldDraggingAnimate=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode};function getDraggingStyle(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,i=e.dropping,r=Boolean(r),e=getShouldDraggingAnimate(e),o=Boolean(i),n=o?transforms.drop(n,r):transforms.moveTo(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:getDraggingTransition(e,i),transform:n,opacity:getDraggingOpacity(r,o),zIndex:o?zIndexOptions.dropAnimating:zIndexOptions.dragging,pointerEvents:"none"}}function getSecondaryStyle(e){return{transform:transforms.moveTo(e.offset),transition:e.shouldAnimateDisplacement?null:"none"}}function getStyle$1(e){return("DRAGGING"===e.type?getDraggingStyle:getSecondaryStyle)(e)}function getDimension$1(e,t,n){void 0===n&&(n=origin);var r=window.getComputedStyle(t),i=t.getBoundingClientRect(),i=calculateBox(i,r),n=withScroll(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:n}}function useDraggablePublisher(e){var t=useUniqueId("draggable"),n=e.descriptor,r=e.registry,i=e.getDraggableRef,o=e.canDragInteractiveElements,a=e.shouldRespectForcePress,s=e.isEnabled,l=useMemo(function(){return{canDragInteractiveElements:o,shouldRespectForcePress:a,isEnabled:s}},[o,s,a]),c=useCallback(function(e){var t=i();return t||invariant$1(!1),getDimension$1(n,t,e)},[n,i]),u=useMemo(function(){return{uniqueId:t,descriptor:n,options:l,getDimension:c}},[n,c,l,t]),d=react$1.exports.useRef(u),p=react$1.exports.useRef(!0);useIsomorphicLayoutEffect$1(function(){return r.draggable.register(d.current),function(){return r.draggable.unregister(d.current)}},[r.draggable]),useIsomorphicLayoutEffect$1(function(){var e;p.current?p.current=!1:(e=d.current,d.current=u,r.draggable.update(u,e))},[u,r.draggable])}function preventHtml5Dnd(e){e.preventDefault()}function Draggable(e){var t=react$1.exports.useRef(null),n=useCallback(function(e){t.current=e},[]),r=useCallback(function(){return t.current},[]),i=useRequiredContext(AppContext),o=i.contextId,a=i.dragHandleUsageInstructionsId,s=i.registry,i=useRequiredContext(DroppableContext),l=i.type,c=i.droppableId,u=useMemo(function(){return{id:e.draggableId,index:e.index,type:l,droppableId:c}},[e.draggableId,e.index,l,c]),i=e.children,d=e.draggableId,p=e.isEnabled,f=e.shouldRespectForcePress,h=e.canDragInteractiveElements,m=e.isClone,g=e.mapped,y=e.dropAnimationFinished,v=(m||useDraggablePublisher(useMemo(function(){return{descriptor:u,registry:s,getDraggableRef:r,canDragInteractiveElements:h,shouldRespectForcePress:f,isEnabled:p}},[u,s,r,h,f,p])),useMemo(function(){return p?{tabIndex:0,role:"button","aria-describedby":a,"data-rbd-drag-handle-draggable-id":d,"data-rbd-drag-handle-context-id":o,draggable:!1,onDragStart:preventHtml5Dnd}:null},[o,a,d,p])),x=useCallback(function(e){"DRAGGING"===g.type&&g.dropping&&"transform"===e.propertyName&&y()},[y,g]),m=useMemo(function(){var e=getStyle$1(g),t="DRAGGING"===g.type&&g.dropping?x:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":o,"data-rbd-draggable-id":d,style:e,onTransitionEnd:t},dragHandleProps:v}},[o,v,d,g,x,n]),$=useMemo(function(){return{draggableId:u.id,type:u.type,source:{index:u.index,droppableId:u.droppableId}}},[u.droppableId,u.id,u.index,u.type]);return i(m,g.snapshot,$)}var isStrictEqual=function(e,t){return e===t},whatIsDraggedOverFromResult=function(e){var t=e.combine,e=e.destination;return e?e.droppableId:t?t.droppableId:null},getCombineWithFromResult=function(e){return e.combine?e.combine.draggableId:null},getCombineWithFromImpact=function(e){return e.at&&"COMBINE"===e.at.type?e.at.combine.draggableId:null};function getDraggableSelector(){var s=memoizeOne(function(e,t){return{x:e,y:t}}),l=memoizeOne(function(e,t,n,r,i){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(i),dropAnimation:i,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}}),c=memoizeOne(function(e,t,n,r,i,o,a){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:o,mode:t,offset:e,dimension:n,forceShouldAnimate:a,snapshot:l(t,r,i,o,null)}}});return function(e,t){var n,r,i,o,a;return e.isDragging?e.critical.draggable.id!==t.draggableId?null:(o=e.current.client.offset,n=e.dimensions.draggables[t.draggableId],r=whatIsDraggedOver(e.impact),a=getCombineWithFromImpact(e.impact),i=e.forceShouldAnimate,c(s(o.x,o.y),e.movementMode,n,t.isClone,r,a,i)):"DROP_ANIMATING"!==e.phase||(o=e.completed).result.draggableId!==t.draggableId?null:(n=t.isClone,r=e.dimensions.draggables[t.draggableId],i=(a=o.result).mode,t=whatIsDraggedOverFromResult(a),o=getCombineWithFromResult(a),a={duration:e.dropDuration,curve:curves.drop,moveTo:e.newHomeClientOffset,opacity:o?combine.opacity.drop:null,scale:o?combine.scale.drop:null},{mapped:{type:"DRAGGING",offset:e.newHomeClientOffset,dimension:r,dropping:a,draggingOver:t,combineWith:o,mode:i,forceShouldAnimate:null,snapshot:l(i,n,t,o,a)}})}}function getSecondarySnapshot(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var atRest={mapped:{type:"SECONDARY",offset:origin,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:getSecondarySnapshot(null)}};function getSecondarySelector(){function n(e,t,n,r){var i=n.displaced.visible[e],o=Boolean(r.inVirtualList&&r.effected[e]),a=(a=tryGetCombine(n))&&a.draggableId===e?t:null;return i?o?c(a):(t=n.displacedBy.point,t=s(t.x,t.y),l(t,a,i.shouldAnimate)):o?n.displaced.invisible[e]?null:(t=negate(r.displacedBy.point),i=s(t.x,t.y),l(i,a,!0)):c(a)}var s=memoizeOne(function(e,t){return{x:e,y:t}}),r=memoizeOne(getSecondarySnapshot),l=memoizeOne(function(e,t,n){return{mapped:{type:"SECONDARY",offset:e,combineTargetFor:t=void 0===t?null:t,shouldAnimateDisplacement:n,snapshot:r(t)}}}),c=function(e){return e?l(origin,e,!0):null};return function(e,t){return e.isDragging?e.critical.draggable.id===t.draggableId?null:n(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical):"DROP_ANIMATING"!==e.phase||(e=e.completed).result.draggableId===t.draggableId?null:n(t.draggableId,e.result.draggableId,e.impact,e.afterCritical)}}var makeMapStateToProps=function(){var n=getDraggableSelector(),r=getSecondarySelector();return function(e,t){return n(e,t)||r(e,t)||atRest}},mapDispatchToProps={dropAnimationFinished:dropAnimationFinished},ConnectedDraggable=connect(makeMapStateToProps,mapDispatchToProps,null,{context:StoreContext,pure:!0,areStatePropsEqual:isStrictEqual})(Draggable);function PrivateDraggable(e){return useRequiredContext(DroppableContext).isUsingCloneFor!==e.draggableId||e.isClone?React5.createElement(ConnectedDraggable,e):null}function PublicDraggable(e){var t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),r=Boolean(e.shouldRespectForcePress);return React5.createElement(PrivateDraggable,_extends$5({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}function Droppable(e){var n,r,t=react$1.exports.useContext(AppContext),i=(t||invariant$1(!1),t.contextId),o=t.isMovementAllowed,a=react$1.exports.useRef(null),s=react$1.exports.useRef(null),t=e.children,l=e.droppableId,c=e.type,u=e.mode,d=e.direction,p=e.ignoreContainerClipping,f=e.isDropDisabled,h=e.isCombineEnabled,m=e.snapshot,g=e.useClone,y=e.updateViewportMaxScroll,v=e.getContainerForClone,x=useCallback(function(){return a.current},[]),$=useCallback(function(e){a.current=e},[]),b=(useCallback(function(){return s.current},[]),useCallback(function(e){s.current=e},[])),C=useCallback(function(){o()&&y({maxScroll:getMaxWindowScroll()})},[o,y]),S=(useDroppablePublisher({droppableId:l,type:c,mode:u,direction:d,isDropDisabled:f,isCombineEnabled:h,ignoreContainerClipping:p,getDroppableRef:x}),React5.createElement(AnimateInOut,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},function(e){var t=e.onClose,n=e.data,e=e.animate;return React5.createElement(Placeholder$1,{placeholder:n,onClose:t,innerRef:b,animate:e,contextId:i,onTransitionEnd:C})})),u=useMemo(function(){return{innerRef:$,placeholder:S,droppableProps:{"data-rbd-droppable-id":l,"data-rbd-droppable-context-id":i}}},[i,l,S,$]),w=g?g.dragging.draggableId:null,d=useMemo(function(){return{droppableId:l,type:c,isUsingCloneFor:w}},[l,w,c]);return React5.createElement(DroppableContext.Provider,{value:d},t(u,m),g?(n=g.dragging,r=g.render,f=React5.createElement(PrivateDraggable,{draggableId:n.draggableId,index:n.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(e,t){return r(e,t,n)}),ReactDOM.createPortal(f,v())):null)}var isMatchingType=function(e,t){return e===t.droppable.type},getDraggable=function(e,t){return t.draggables[e.draggable.id]},makeMapStateToProps$1=function(){var s={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},l=_extends$5({},s,{shouldAnimatePlaceholder:!1}),c=memoizeOne(function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}}),u=memoizeOne(function(e,t,n,r,i,o){var a=i.descriptor.id;return i.descriptor.droppableId===e?(e=o?{render:o,dragging:c(i.descriptor)}:null,{placeholder:i.placeholder,shouldAnimatePlaceholder:!1,snapshot:{isDraggingOver:n,draggingOverWith:n?a:null,draggingFromThisWith:a,isUsingPlaceholder:!0},useClone:e}):t?r?{placeholder:i.placeholder,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:n,draggingOverWith:a,draggingFromThisWith:null,isUsingPlaceholder:!0},useClone:null}:s:l});return function(e,t){var n,r,i=t.droppableId,o=t.type,a=!t.isDropDisabled,t=t.renderClone;return e.isDragging?(r=e.critical,isMatchingType(o,r)?(r=getDraggable(r,e.dimensions),n=whatIsDraggedOver(e.impact)===i,u(i,a,n,n,r,t)):l):"DROP_ANIMATING"===e.phase?(n=e.completed,isMatchingType(o,n.critical)?(r=getDraggable(n.critical,e.dimensions),u(i,a,whatIsDraggedOverFromResult(n.result)===i,whatIsDraggedOver(n.impact)===i,r,t)):l):"IDLE"===e.phase&&e.completed&&!e.shouldFlush&&(a=e.completed,isMatchingType(o,a.critical))?(n=whatIsDraggedOver(a.impact)===i,r=Boolean(a.impact.at&&"COMBINE"===a.impact.at.type),t=a.critical.droppable.id===i,n?r?s:l:t?s:l):l}},mapDispatchToProps$1={updateViewportMaxScroll:updateViewportMaxScroll};function getBody(){return document.body||invariant$1(!1),document.body}var Action,ResultType,DataRouterHook$1,DataRouterStateHook$1,AwaitRenderStatus,DataRouterHook,DataRouterStateHook,defaultProps={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:getBody},ConnectedDroppable=connect(makeMapStateToProps$1,mapDispatchToProps$1,null,{context:StoreContext,pure:!0,areStatePropsEqual:isStrictEqual})(Droppable),naturalDragAnimationRbdnd=(ConnectedDroppable.defaultProps=defaultProps,{exports:{}}),NaturalDragAnimation=(!function(){function i(e){var t;return(o[e]||(t=o[e]={i:e,l:!1,exports:{}},r[e].call(t.exports,t,t.exports,i),t.l=!0,t)).exports}var n,r,o;window,naturalDragAnimationRbdnd.exports=(n=react$1.exports,r=[function(e,t,n){e.exports=n(4)()},function(e,t){e.exports=n},function(e,t,n){e.exports=n(3)},function(e,t,n){n.r(t);var l,r=n(1),i=n.n(r),o=n(0),n=n.n(o);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach(function(e){m(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(r){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t,n=h(r);return e=i?(e=h(this).constructor,Reflect.construct(n,arguments,e)):n.apply(this,arguments),n=this,!(t=e)||"object"!==a(t)&&"function"!=typeof t?f(n):t}}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}var g={transform:null,prevX:0,rotation:0},o=function(e){var t=s;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e);var o=p(s);function s(){var a,e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return m(f(a=o.call.apply(o,[this].concat(r))),"state",c({},g)),m(f(a),"patchTransform",function(){var e,t=a.props,n=t.snapshot.isDragging,r=t.style,i=t.animationRotationFade,o=t.rotationMultiplier,t=t.sigmoidFunction;n&&r.transform?(e=(n=r.transform.match(/translate\(.{1,}\)/g)[0].match(/-?[0-9]{1,}/g)[0])-a.state.prevX,i=a.state.rotation*i+t(e)*o,t="".concat(r.transform," rotate(").concat(i,"deg)"),Math.abs(i)<.01&&(i=0),a.setState({transform:t,prevX:n,rotation:i},function(){l=requestAnimationFrame(a.patchTransform)})):l=requestAnimationFrame(a.patchTransform)}),a}return t=[{key:"getDerivedStateFromProps",value:function(e,t){return e.snapshot.dropAnimation&&t.transform?c({},g):null}}],u((e=s).prototype,[{key:"componentDidMount",value:function(){this.props.snapshot.isDragging&&(l=requestAnimationFrame(this.patchTransform))}},{key:"componentDidUpdate",value:function(e){!e.snapshot.isDragging&&this.props.snapshot.isDragging&&(l=requestAnimationFrame(this.patchTransform)),e.snapshot.isDragging&&!this.props.snapshot.isDragging&&cancelAnimationFrame(l)}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(l)}},{key:"render",value:function(){var e=this.props.snapshot,t=e.isDragging,e=e.dropAnimation,t=t&&!e?c(c({},this.props.style),{},{transform:this.state.transform}):this.props.style;return i.a.createElement(r.Fragment,null,this.props.children(t))}}]),u(e,t),s}(r.Component);m(o,"propTypes",{snapshot:n.a.shape({isDragging:n.a.bool.isRequired,dropAnimation:n.a.shape()}).isRequired,style:n.a.shape().isRequired,children:n.a.func.isRequired,animationRotationFade:n.a.number,rotationMultiplier:n.a.number,sigmoidFunction:n.a.func}),m(o,"defaultProps",{animationRotationFade:.9,rotationMultiplier:1.3,sigmoidFunction:function(e){return e/(1+Math.abs(e))}}),t.default=o},function(e,t,n){var a=n(5);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,o){if(o!==a)throw(o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")).name="Invariant Violation",o}function t(){return e}var n={array:e.isRequired=e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n}},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}],o={},i.m=r,i.c=o,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i(i.s=2))}(),getDefaultExportFromCjs(naturalDragAnimationRbdnd.exports)),Link={},_interopRequireDefault$7=interopRequireDefault.exports,default_1$7=(Object.defineProperty(Link,"__esModule",{value:!0}),Link.default=void 0),_createSvgIcon$7=_interopRequireDefault$7(createSvgIcon$1),_jsxRuntime$7=jsxRuntime.exports,_default$7=(0,_createSvgIcon$7.default)((0,_jsxRuntime$7.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}),"Link");function _extends$1(){return(_extends$1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}default_1$7=Link.default=_default$7,function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(Action=Action||{});const PopStateEventType="popstate";function createBrowserHistory(e){return getUrlBasedHistory(function(e,t){var{pathname:e,search:n,hash:r}=e.location;return createLocation("",{pathname:e,search:n,hash:r},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:createPath(t)},null,e=void 0===e?{}:e)}function invariant(e,t){if(!1===e||null==e)throw new Error(t)}function warning(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function createKey(){return Math.random().toString(36).substr(2,8)}function getHistoryState(e,t){return{usr:e.state,key:e.key,idx:t}}function createLocation(e,t,n,r){return void 0===n&&(n=null),_extends$1({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?parsePath(t):t,{state:n,key:t&&t.key||r||createKey()})}function createPath(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function parsePath(e){var t,n={};return e&&(0<=(t=e.indexOf("#"))&&(n.hash=e.substr(t),e=e.substr(0,t)),0<=(t=e.indexOf("?"))&&(n.search=e.substr(t),e=e.substr(0,t)),e)&&(n.pathname=e),n}function getUrlBasedHistory(e,t,n,r){void 0===r&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=Action.Pop,l=null,c=u();function u(){return(a.state||{idx:null}).idx}function d(){s=Action.Pop;var e=u(),t=null==e?null:e-c;c=e,l&&l({action:s,location:f.location,delta:t})}function p(e){var t="null"!==i.location.origin?i.location.origin:i.location.href,e="string"==typeof e?e:createPath(e);return invariant(t,"No window.location.(origin|href) available to create URL for href: "+e),new URL(e,t)}null==c&&(c=0,a.replaceState(_extends$1({},a.state,{idx:c}),""));let f={get action(){return s},get location(){return e(i,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(PopStateEventType,d),l=e,()=>{i.removeEventListener(PopStateEventType,d),l=null}},createHref(e){return t(i,e)},createURL:p,encodeLocation(e){e=p(e);return{pathname:e.pathname,search:e.search,hash:e.hash}},push:function(e,t){s=Action.Push,t=createLocation(f.location,e,t),n&&n(t,e),e=getHistoryState(t,c=u()+1),t=f.createHref(t);try{a.pushState(e,"",t)}catch(e){i.location.assign(t)}o&&l&&l({action:s,location:f.location,delta:1})},replace:function(e,t){s=Action.Replace,t=createLocation(f.location,e,t),n&&n(t,e),e=getHistoryState(t,c=u()),t=f.createHref(t),a.replaceState(e,"",t),o&&l&&l({action:s,location:f.location,delta:0})},go(e){return a.go(e)}};return f}function matchRoutes(e,t,n){void 0===n&&(n="/");var r=stripBasename(("string"==typeof t?parsePath(t):t).pathname||"/",n);if(null==r)return null;var i=flattenRoutes(e);rankRouteBranches(i);let o=null;for(let e=0;null==o&&e<i.length;++e)o=matchRouteBranch(i[e],safelyDecodeURI(r));return o}function flattenRoutes(e,r,i,o){void 0===r&&(r=[]),void 0===i&&(i=[]),void 0===o&&(o="");let a=(e,t,n)=>{n={relativePath:void 0===n?e.path||"":n,caseSensitive:!0===e.caseSensitive,childrenIndex:t,route:e},n.relativePath.startsWith("/")&&(invariant(n.relativePath.startsWith(o),'Absolute route path "'+n.relativePath+'" nested under path "'+o+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),n.relativePath=n.relativePath.slice(o.length)),t=joinPaths([o,n.relativePath]),n=i.concat(n);e.children&&0<e.children.length&&(invariant(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+t+'".'),flattenRoutes(e.children,r,n,t)),null==e.path&&!e.index||r.push({path:t,score:computeScore(t,e.index),routesMeta:n})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(var r of explodeOptionalSegments(e.path))a(e,t,r);else a(e,t)}),r}function explodeOptionalSegments(t){var e=t.split("/");if(0===e.length)return[];var[e,...n]=e,r=e.endsWith("?");let i=e.replace(/\?$/,"");return 0===n.length?r?[i,""]:[i]:(e=explodeOptionalSegments(n.join("/")),(n=[]).push(...e.map(e=>""===e?i:[i,e].join("/"))),r&&n.push(...e),n.map(e=>t.startsWith("/")&&""===e?"/":e))}function rankRouteBranches(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:compareIndexes(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(ResultType=ResultType||{});const paramRe=/^:\w+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=e=>"*"===e;function computeScore(e,t){e=e.split("/");let n=e.length;return e.some(isSplat)&&(n+=splatPenalty),t&&(n+=indexRouteValue),e.filter(e=>!isSplat(e)).reduce((e,t)=>e+(paramRe.test(t)?dynamicSegmentValue:""===t?emptySegmentValue:staticSegmentValue),n)}function compareIndexes(e,n){return e.length===n.length&&e.slice(0,-1).every((e,t)=>e===n[t])?e[e.length-1]-n[n.length-1]:0}function matchRouteBranch(e,t){var n=e["routesMeta"],r={};let i="/";var o=[];for(let e=0;e<n.length;++e){var a=n[e],s=e===n.length-1,l="/"===i?t:t.slice(i.length)||"/",s=matchPath({path:a.relativePath,caseSensitive:a.caseSensitive,end:s},l);if(!s)return null;Object.assign(r,s.params);l=a.route;o.push({params:r,pathname:joinPaths([i,s.pathname]),pathnameBase:normalizePathname(joinPaths([i,s.pathnameBase])),route:l}),"/"!==s.pathnameBase&&(i=joinPaths([i,s.pathnameBase]))}return o}function matchPath(e,t){var[n,r]=compilePath((e="string"==typeof e?{path:e,caseSensitive:!1,end:!0}:e).path,e.caseSensitive,e.end),t=t.match(n);if(!t)return null;let i=t[0],o=i.replace(/(.)\/+$/,"$1"),a=t.slice(1);return{params:r.reduce((e,t,n)=>{var r;return"*"===t&&(r=a[n]||"",o=i.slice(0,i.length-r.length).replace(/(.)\/+$/,"$1")),e[t]=safelyDecodeURIComponent(a[n]||"",t),e},{}),pathname:i,pathnameBase:o,pattern:e}}function compilePath(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),warning("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(e,t)=>(r.push(t),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function safelyDecodeURI(t){try{return decodeURI(t)}catch(e){return warning(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+e+")."),t}}function safelyDecodeURIComponent(t,n){try{return decodeURIComponent(t)}catch(e){return warning(!1,'The value for the URL param "'+n+'" will not be decoded because the string "'+t+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+e+")."),t}}function stripBasename(e,t){var n;return"/"===t?e:!e.toLowerCase().startsWith(t.toLowerCase())||(t=t.endsWith("/")?t.length-1:t.length,(n=e.charAt(t))&&"/"!==n)?null:e.slice(t)||"/"}function resolvePath(e,t){void 0===t&&(t="/");var{pathname:e,search:n="",hash:r=""}="string"==typeof e?parsePath(e):e;return{pathname:e?e.startsWith("/")?e:resolvePathname(e,t):t,search:normalizeSearch(n),hash:normalizeHash(r)}}function resolvePathname(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?1<n.length&&n.pop():"."!==e&&n.push(e)}),1<n.length?n.join("/"):"/"}function getInvalidPathError(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function getPathContributingMatches(e){return e.filter((e,t)=>0===t||e.route.path&&0<e.route.path.length)}function resolveTo(e,t,n,r){void 0===r&&(r=!1);let i;"string"==typeof e?i=parsePath(e):(invariant(!(i=_extends$1({},e)).pathname||!i.pathname.includes("?"),getInvalidPathError("?","pathname","search",i)),invariant(!i.pathname||!i.pathname.includes("#"),getInvalidPathError("#","pathname","hash",i)),invariant(!i.search||!i.search.includes("#"),getInvalidPathError("#","search","hash",i)));var e=""===e||""===i.pathname,o=e?"/":i.pathname;let a;if(r||null==o)a=n;else{let e=t.length-1;if(o.startsWith("..")){for(var s=o.split("/");".."===s[0];)s.shift(),--e;i.pathname=s.join("/")}a=0<=e?t[e]:"/"}r=resolvePath(i,a),t=o&&"/"!==o&&o.endsWith("/"),e=(e||"."===o)&&n.endsWith("/");return r.pathname.endsWith("/")||!t&&!e||(r.pathname+="/"),r}const joinPaths=e=>e.join("/").replace(/\/\/+/g,"/"),normalizePathname=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",normalizeHash=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function isRouteErrorResponse(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const validMutationMethodsArr=["post","put","patch","delete"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}[...validMutationMethodsArr];const DataRouterContext=react$1.exports.createContext(null),DataRouterStateContext=react$1.exports.createContext(null),NavigationContext=react$1.exports.createContext(null),LocationContext=react$1.exports.createContext(null),RouteContext=react$1.exports.createContext({outlet:null,matches:[],isDataRoute:!1}),RouteErrorContext=react$1.exports.createContext(null);function useInRouterContext(){return null!=react$1.exports.useContext(LocationContext)}function useLocation(){return useInRouterContext()||invariant(!1),react$1.exports.useContext(LocationContext).location}function useIsomorphicLayoutEffect(e){react$1.exports.useContext(NavigationContext).static||react$1.exports.useLayoutEffect(e)}function useNavigate(){var e=react$1.exports.useContext(RouteContext)["isDataRoute"];return(e?useNavigateStable:useNavigateUnstable)()}function useNavigateUnstable(){useInRouterContext()||invariant(!1);let{basename:n,navigator:r}=react$1.exports.useContext(NavigationContext);var e=react$1.exports.useContext(RouteContext)["matches"];let i=useLocation()["pathname"],o=JSON.stringify(getPathContributingMatches(e).map(e=>e.pathnameBase)),a=react$1.exports.useRef(!1);return useIsomorphicLayoutEffect(()=>{a.current=!0}),react$1.exports.useCallback(function(e,t){void 0===t&&(t={}),a.current&&("number"==typeof e?r.go(e):(e=resolveTo(e,JSON.parse(o),i,"path"===t.relative),"/"!==n&&(e.pathname="/"===e.pathname?n:joinPaths([n,e.pathname])),(t.replace?r.replace:r.push)(e,t.state,t)))},[n,r,o,i])}function useRoutes(e,t){return useRoutesImpl(e,t)}function useRoutesImpl(e,t,n){useInRouterContext()||invariant(!1);let r=react$1.exports.useContext(NavigationContext)["navigator"];var i=react$1.exports.useContext(RouteContext)["matches"],o=i[i.length-1];let a=o?o.params:{},s=(o&&o.pathname,o?o.pathnameBase:"/");o&&o.route;o=useLocation();let l;var c=(l=t?(u="string"==typeof t?parsePath(t):t,"/"===s||null!=(c=u.pathname)&&c.startsWith(s)||invariant(!1),u):o).pathname||"/",u=matchRoutes(e,{pathname:"/"===s?c:c.slice(s.length)||"/"}),o=_renderMatches(u&&u.map(e=>Object.assign({},e,{params:Object.assign({},a,e.params),pathname:joinPaths([s,(r.encodeLocation?r.encodeLocation(e.pathname):e).pathname]),pathnameBase:"/"===e.pathnameBase?s:joinPaths([s,r.encodeLocation?r.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),i,n);return t&&o?react$1.exports.createElement(LocationContext.Provider,{value:{location:_extends({pathname:"/",search:"",hash:"",state:null,key:"default"},l),navigationType:Action.Pop}},o):o}function DefaultErrorComponent(){var e=useRouteError(),t=isRouteErrorResponse(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),e=e instanceof Error?e.stack:null;return react$1.exports.createElement(react$1.exports.Fragment,null,react$1.exports.createElement("h2",null,"Unexpected Application Error!"),react$1.exports.createElement("h3",{style:{fontStyle:"italic"}},t),e?react$1.exports.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},e):null,null)}const defaultErrorElement=react$1.exports.createElement(DefaultErrorComponent,null);class RenderErrorBoundary extends react$1.exports.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?react$1.exports.createElement(RouteContext.Provider,{value:this.props.routeContext},react$1.exports.createElement(RouteErrorContext.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function RenderedRoute(e){var{routeContext:e,match:t,children:n}=e,r=react$1.exports.useContext(DataRouterContext);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),react$1.exports.createElement(RouteContext.Provider,{value:e},n)}function _renderMatches(e,s,l){if(void 0===s&&(s=[]),void 0===l&&(l=null),null==e){if(null==l||!l.errors)return null;e=l.matches}let c=e,u=null==l?void 0:l.errors;return null!=u&&(0<=(e=c.findIndex(e=>e.route.id&&(null==u?void 0:u[e.route.id])))||invariant(!1),c=c.slice(0,Math.min(c.length,e+1))),c.reduceRight((t,n,e)=>{let r=n.route.id?null==u?void 0:u[n.route.id]:null,i=null,o=(l&&(i=n.route.errorElement||defaultErrorElement),s.concat(c.slice(0,e+1)));var a=()=>{let e;return e=r?i:n.route.Component?react$1.exports.createElement(n.route.Component,null):n.route.element||t,react$1.exports.createElement(RenderedRoute,{match:n,routeContext:{outlet:t,matches:o,isDataRoute:null!=l},children:e})};return l&&(n.route.ErrorBoundary||n.route.errorElement||0===e)?react$1.exports.createElement(RenderErrorBoundary,{location:l.location,revalidation:l.revalidation,component:i,error:r,children:a(),routeContext:{outlet:null,matches:o,isDataRoute:!0}}):a()},null)}function useDataRouterContext(e){var t=react$1.exports.useContext(DataRouterContext);return t||invariant(!1),t}function useDataRouterState(e){var t=react$1.exports.useContext(DataRouterStateContext);return t||invariant(!1),t}function useRouteContext(e){var t=react$1.exports.useContext(RouteContext);return t||invariant(!1),t}function useCurrentRouteId(e){var t=useRouteContext(),t=t.matches[t.matches.length-1];return t.route.id||invariant(!1),t.route.id}function useRouteError(){var e=react$1.exports.useContext(RouteErrorContext),t=useDataRouterState(DataRouterStateHook$1.UseRouteError),n=useCurrentRouteId(DataRouterStateHook$1.UseRouteError);return e||(null==(e=t.errors)?void 0:e[n])}function useNavigateStable(){let n=useDataRouterContext(DataRouterHook$1.UseNavigateStable)["router"],r=useCurrentRouteId(DataRouterStateHook$1.UseNavigateStable),i=react$1.exports.useRef(!1);return useIsomorphicLayoutEffect(()=>{i.current=!0}),react$1.exports.useCallback(function(e,t){void 0===t&&(t={}),i.current&&("number"==typeof e?n.navigate(e):n.navigate(e,_extends({fromRouteId:r},t)))},[n,r])}function Route(e){invariant(!1)}function Router(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Action.Pop,navigator:o,static:a=!1}=e,s=(useInRouterContext()&&invariant(!1),t.replace(/^\/*/,"/"));e=react$1.exports.useMemo(()=>({basename:s,navigator:o,static:a}),[s,o,a]);let{pathname:l="/",search:c="",hash:u="",state:d=null,key:p="default"}=r="string"==typeof r?parsePath(r):r;var f=react$1.exports.useMemo(()=>{var e=stripBasename(l,s);return null==e?null:{location:{pathname:e,search:c,hash:u,state:d,key:p},navigationType:i}},[s,l,c,u,d,p,i]);return null==f?null:react$1.exports.createElement(NavigationContext.Provider,{value:e},react$1.exports.createElement(LocationContext.Provider,{children:n,value:f}))}function Routes(e){var{children:e,location:t}=e;return useRoutes(createRoutesFromChildren(e),t)}function createRoutesFromChildren(e,r){void 0===r&&(r=[]);let i=[];return react$1.exports.Children.forEach(e,(e,t)=>{var n;react$1.exports.isValidElement(e)&&(t=[...r,t],e.type===react$1.exports.Fragment?i.push.apply(i,createRoutesFromChildren(e.props.children,t)):(e.type!==Route&&invariant(!1),e.props.index&&e.props.children&&invariant(!1),n={id:e.props.id||t.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy},e.props.children&&(n.children=createRoutesFromChildren(e.props.children,t)),i.push(n)))}),i}function createSearchParams(r){return void 0===r&&(r=""),new URLSearchParams("string"==typeof r||Array.isArray(r)||r instanceof URLSearchParams?r:Object.keys(r).reduce((e,t)=>{var n=r[t];return e.concat(Array.isArray(n)?n.map(e=>[t,e]):[[t,n]])},[]))}function getSearchParamsForLocation(e,n){let r=createSearchParams(e);if(n)for(let t of n.keys())r.has(t)||n.getAll(t).forEach(e=>{r.append(t,e)});return r}function BrowserRouter(e){var{basename:e,children:t,window:n}=e,r=react$1.exports.useRef();null==r.current&&(r.current=createBrowserHistory({window:n,v5Compat:!0}));let i=r.current,[o,a]=react$1.exports.useState({action:i.action,location:i.location});return react$1.exports.useLayoutEffect(()=>i.listen(a),[i]),react$1.exports.createElement(Router,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:i})}function useSearchParams(e){let t=react$1.exports.useRef(createSearchParams(e)),n=react$1.exports.useRef(!1),r=useLocation(),i=react$1.exports.useMemo(()=>getSearchParamsForLocation(r.search,n.current?null:t.current),[r.search]),o=useNavigate();e=react$1.exports.useCallback((e,t)=>{e=createSearchParams("function"==typeof e?e(i):e);n.current=!0,o("?"+e,t)},[o,i]);return[i,e]}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"}(DataRouterHook$1=DataRouterHook$1||{}),function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"}(DataRouterStateHook$1=DataRouterStateHook$1||{}),function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(AwaitRenderStatus=AwaitRenderStatus||{}),new Promise(()=>{}),function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"}(DataRouterHook=DataRouterHook||{}),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(DataRouterStateHook=DataRouterStateHook||{});var cropper={exports:{}},Cropper=(!function(){function P(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function N(r){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?P(Object(i),!0).forEach(function(e){var t,n;t=r,n=i[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):P(Object(i)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(i,e))})}return r}function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function F(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function V(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){var n;if(e)return"string"==typeof e?r(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e){return"number"==typeof e&&!ie(e)}function i(e){return void 0===e}function o(e){return"object"===D(e)&&null!==e}function f(e){if(!o(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&ae.call(n,"isPrototypeOf")}catch(e){return!1}}function c(e){return"function"==typeof e}function H(e){return Array.from?Array.from(e):se.call(e)}function _(n,r){return n&&c(r)&&(Array.isArray(n)||p(n.length)?H(n).forEach(function(e,t){r.call(n,e,t,n)}):o(n)&&Object.keys(n).forEach(function(e){r.call(n,n[e],e,n)})),n}function j(e,t){var n=1<arguments.length&&void 0!==t?t:1e11;return le.test(e)?Math.round(e*n)/n:e}function h(e,t){var n=e.style;_(t,function(e,t){ce.test(t)&&p(e)&&(e="".concat(e,"px")),n[t]=e})}function u(e,t){var n;t&&(p(e.length)?_(e,function(e){u(e,t)}):e.classList?e.classList.add(t):(n=e.className.trim())?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t)}function T(e,t){t&&(p(e.length)?_(e,function(e){T(e,t)}):e.classList?e.classList.remove(t):0<=e.className.indexOf(t)&&(e.className=e.className.replace(t,"")))}function a(e,t,n){t&&(p(e.length)?_(e,function(e){a(e,t,n)}):(n?u:T)(e,t))}function s(e){return e.replace(ue,"$1-$2").toLowerCase()}function B(e,t){return o(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(s(t)))}function d(e,t,n){o(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(s(t)),n)}function l(n,e,r,t){var i=3<arguments.length&&void 0!==t?t:{},o=r;e.trim().split(de).forEach(function(e){var t;pe||(t=n.listeners)&&t[e]&&t[e][r]&&(o=t[e][r],delete t[e][r],0===Object.keys(t[e]).length&&delete t[e],0===Object.keys(t).length)&&delete n.listeners,n.removeEventListener(e,o,i)})}function m(o,e,a,t){var s=3<arguments.length&&void 0!==t?t:{},l=a;e.trim().split(de).forEach(function(r){var e,i;s.once&&!pe&&(e=o.listeners,l=function(){delete i[r][a],o.removeEventListener(r,l,s);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];a.apply(o,t)},(i=void 0===e?{}:e)[r]||(i[r]={}),i[r][a]&&o.removeEventListener(r,i[r][a],s),i[r][a]=l,o.listeners=i),o.addEventListener(r,l,s)})}function g(e,t,n){var r;return c(Event)&&c(CustomEvent)?r=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,n),e.dispatchEvent(r)}function U(e){e=e.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}function z(e){e=e.match(fe);return null!==e&&(e[1]!==t.protocol||e[2]!==t.hostname||e[3]!==t.port)}function W(e){var t="timestamp=".concat((new Date).getTime());return e+(-1===e.indexOf("?")?"?":"&")+t}function y(e){var t=e.rotate,n=e.scaleX,r=e.scaleY,i=e.translateX,e=e.translateY,o=[],i=(p(i)&&0!==i&&o.push("translateX(".concat(i,"px)")),p(e)&&0!==e&&o.push("translateY(".concat(e,"px)")),p(t)&&0!==t&&o.push("rotate(".concat(t,"deg)")),p(n)&&1!==n&&o.push("scaleX(".concat(n,")")),p(r)&&1!==r&&o.push("scaleY(".concat(r,")")),o.length?o.join(" "):"none");return{WebkitTransform:i,msTransform:i,transform:i}}function v(e,t){var n=e.pageX,e=e.pageY,r={endX:n,endY:e};return t?r:N({startX:n,startY:e},r)}function R(e,t){var n,r=e.aspectRatio,i=e.height,o=e.width,a=1<arguments.length&&void 0!==t?t:"contain",s=oe(o),l=oe(i);return s&&l?(n=i*r,"contain"===a&&o<n||"cover"===a&&n<o?i=o/r:o=i*r):s?i=o/r:l&&(o=i*r),{width:o,height:i}}var x,$,b,C,Z,E,G,q,S,w,I,O,k,A,M,K,Y,Q,X,J,ee,te,ne,re,ie,oe,ae,se,L,le,ce,ue,de,pe,t,fe,he,me,e,n,ge,ye,ve,xe,$e,be;cropper.exports=(x="undefined"!=typeof window&&void 0!==window.document,$=x?window:{},n=!(!x||!$.document.documentElement)&&"ontouchstart"in $.document.documentElement,e=x&&"PointerEvent"in $,C="".concat(b="cropper","-crop"),Z="".concat(b,"-disabled"),E="".concat(b,"-hidden"),G="".concat(b,"-hide"),q="".concat(b,"-invisible"),S="".concat(b,"-modal"),w="".concat(b,"-move"),I="".concat(b,"Action"),O="".concat(b,"Preview"),k="cropend",A="cropmove",M="cropstart",K=e?"pointerdown":n?"touchstart":"mousedown",Y=e?"pointermove":n?"touchmove":"mousemove",Q=e?"pointerup pointercancel":n?"touchend touchcancel":"mouseup",X="image/jpeg",J=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,ee=/^data:/,te=/^data:image\/jpeg;base64,/,ne=/^img|canvas$/i,re={viewMode:0,dragMode:"crop",initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},ie=Number.isNaN||$.isNaN,oe=function(e){return 0<e&&e<1/0},ae=Object.prototype.hasOwnProperty,se=Array.prototype.slice,L=Object.assign||function(n){for(var e=arguments.length,t=new Array(1<e?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];return o(n)&&0<t.length&&t.forEach(function(t){o(t)&&Object.keys(t).forEach(function(e){n[e]=t[e]})}),n},le=/\.\d*(?:0|9){12}\d*$/,ce=/^width|height|left|top|marginLeft|marginTop$/,ue=/([a-z\d])([A-Z])/g,de=/\s\s*/,pe=function(){var t,e,n,r=!1;return x&&(t=!1,e=function(){},n=Object.defineProperty({},"once",{get:function(){return r=!0,t},set:function(e){t=e}}),$.addEventListener("test",e,n),$.removeEventListener("test",e,n)),r}(),t=$.location,fe=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i,he=String.fromCharCode,me=/^data:.*,/,e={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,t=this.options,n=this.container,r=this.cropper,i=Number(t.minContainerWidth),t=Number(t.minContainerHeight),i=(u(r,E),T(e,E),{width:Math.max(n.offsetWidth,0<=i?i:200),height:Math.max(n.offsetHeight,0<=t?t:100)});h(r,{width:(this.containerData=i).width,height:i.height}),u(e,E),T(r,E)},initCanvas:function(){var e=this.containerData,t=this.imageData,n=this.options.viewMode,r=Math.abs(t.rotate)%180==90,i=r?t.naturalHeight:t.naturalWidth,r=r?t.naturalWidth:t.naturalHeight,t=i/r,o=e.width,a=e.height,t=(e.height*t>e.width?3===n?o=e.height*t:a=e.width/t:3===n?a=e.width/t:o=e.height*t,{aspectRatio:t,naturalWidth:i,naturalHeight:r,width:o,height:a});this.canvasData=t,this.limited=1===n||2===n,this.limitCanvas(!0,!0),t.width=Math.min(Math.max(t.width,t.minWidth),t.maxWidth),t.height=Math.min(Math.max(t.height,t.minHeight),t.maxHeight),t.left=(e.width-t.width)/2,t.top=(e.height-t.height)/2,t.oldLeft=t.left,t.oldTop=t.top,this.initialCanvasData=L({},t)},limitCanvas:function(e,t){var n=this.options,r=this.containerData,i=this.canvasData,o=this.cropBoxData,a=n.viewMode,s=i.aspectRatio,l=this.cropped&&o;e&&(e=Number(n.minCanvasWidth)||0,n=Number(n.minCanvasHeight)||0,1<a?(e=Math.max(e,r.width),n=Math.max(n,r.height),3===a&&(e<n*s?e=n*s:n=e/s)):0<a&&(e?e=Math.max(e,l?o.width:0):n?n=Math.max(n,l?o.height:0):l&&((e=o.width)<(n=o.height)*s?e=n*s:n=e/s)),e=(s=R({aspectRatio:s,width:e,height:n})).width,n=s.height,i.minWidth=e,i.minHeight=n,i.maxWidth=1/0,i.maxHeight=1/0),t&&((l?0:1)<a?(s=r.width-i.width,e=r.height-i.height,i.minLeft=Math.min(0,s),i.minTop=Math.min(0,e),i.maxLeft=Math.max(0,s),i.maxTop=Math.max(0,e),l&&this.limited&&(i.minLeft=Math.min(o.left,o.left+(o.width-i.width)),i.minTop=Math.min(o.top,o.top+(o.height-i.height)),i.maxLeft=o.left,i.maxTop=o.top,2===a)&&(i.width>=r.width&&(i.minLeft=Math.min(0,s),i.maxLeft=Math.max(0,s)),i.height>=r.height)&&(i.minTop=Math.min(0,e),i.maxTop=Math.max(0,e))):(i.minLeft=-i.width,i.minTop=-i.height,i.maxLeft=r.width,i.maxTop=r.height))},renderCanvas:function(e,t){var n,r,i=this.canvasData,o=this.imageData;t&&(o=(t=function(e){var t=e.width,n=e.height,e=e.degree;if(90==(e=Math.abs(e)%180))return{width:n,height:t};var r=e%90*Math.PI/180,i=Math.sin(r),r=Math.cos(r),o=t*r+n*i,t=t*i+n*r;return 90<e?{width:t,height:o}:{width:o,height:t}}({width:o.naturalWidth*Math.abs(o.scaleX||1),height:o.naturalHeight*Math.abs(o.scaleY||1),degree:o.rotate||0})).width,t=t.height,n=i.width*(o/i.naturalWidth),r=i.height*(t/i.naturalHeight),i.left-=(n-i.width)/2,i.top-=(r-i.height)/2,i.width=n,i.height=r,i.aspectRatio=o/t,i.naturalWidth=o,i.naturalHeight=t,this.limitCanvas(!0,!1)),(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCanvas(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,h(this.canvas,L({width:i.width,height:i.height},y({translateX:i.left,translateY:i.top}))),this.renderImage(e),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(e){var t=this.canvasData,n=this.imageData,r=n.naturalWidth*(t.width/t.naturalWidth),i=n.naturalHeight*(t.height/t.naturalHeight);L(n,{width:r,height:i,left:(t.width-r)/2,top:(t.height-i)/2}),h(this.image,L({width:n.width,height:n.height},y(L({translateX:n.left,translateY:n.top},n)))),e&&this.output()},initCropBox:function(){var e=this.options,t=this.canvasData,n=e.aspectRatio||e.initialAspectRatio,e=Number(e.autoCropArea)||.8,r={width:t.width,height:t.height};n&&(t.height*n>t.width?r.height=r.width/n:r.width=r.height*n),this.cropBoxData=r,this.limitCropBox(!0,!0),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),r.width=Math.max(r.minWidth,r.width*e),r.height=Math.max(r.minHeight,r.height*e),r.left=t.left+(t.width-r.width)/2,r.top=t.top+(t.height-r.height)/2,r.oldLeft=r.left,r.oldTop=r.top,this.initialCropBoxData=L({},r)},limitCropBox:function(e,t){var n,r,i=this.options,o=this.containerData,a=this.canvasData,s=this.cropBoxData,l=this.limited,c=i.aspectRatio;e&&(e=Number(i.minCropBoxWidth)||0,i=Number(i.minCropBoxHeight)||0,n=l?Math.min(o.width,a.width,a.width+a.left,o.width-a.left):o.width,r=l?Math.min(o.height,a.height,a.height+a.top,o.height-a.top):o.height,e=Math.min(e,o.width),i=Math.min(i,o.height),c&&(e&&i?e<i*c?i=e/c:e=i*c:e?i=e/c:i&&(e=i*c),n<r*c?r=n/c:n=r*c),s.minWidth=Math.min(e,n),s.minHeight=Math.min(i,r),s.maxWidth=n,s.maxHeight=r),t&&(l?(s.minLeft=Math.max(0,a.left),s.minTop=Math.max(0,a.top),s.maxLeft=Math.min(o.width,a.left+a.width)-s.width,s.maxTop=Math.min(o.height,a.top+a.height)-s.height):(s.minLeft=0,s.minTop=0,s.maxLeft=o.width-s.width,s.maxTop=o.height-s.height))},renderCropBox:function(){var e=this.options,t=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCropBox(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,e.movable&&e.cropBoxMovable&&d(this.face,I,n.width>=t.width&&n.height>=t.height?"move":"all"),h(this.cropBox,L({width:n.width,height:n.height},y({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),g(this.element,"crop",this.getData())}},n={initPreview:function(){var e=this.element,n=this.crossOrigin,t=this.options.preview,r=n?this.crossOriginUrl:this.url,i=e.alt||"The image to preview",o=document.createElement("img");n&&(o.crossOrigin=n),o.src=r,o.alt=i,this.viewBox.appendChild(o),this.viewBoxImage=o,t&&("string"==typeof(o=t)?o=e.ownerDocument.querySelectorAll(t):t.querySelector&&(o=[t]),_(this.previews=o,function(e){var t=document.createElement("img");d(e,O,{width:e.offsetWidth,height:e.offsetHeight,html:e.innerHTML}),n&&(t.crossOrigin=n),t.src=r,t.alt=i,t.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',e.innerHTML="",e.appendChild(t)}))},resetPreview:function(){_(this.previews,function(t){var n=B(t,O),n=(h(t,{width:n.width,height:n.height}),t.innerHTML=n.html,t),t=O;if(o(n[t]))try{delete n[t]}catch(e){n[t]=void 0}else if(n.dataset)try{delete n.dataset[t]}catch(e){n.dataset[t]=void 0}else n.removeAttribute("data-".concat(s(t)))})},preview:function(){var a=this.imageData,e=this.canvasData,t=this.cropBoxData,s=t.width,l=t.height,c=a.width,u=a.height,d=t.left-e.left-a.left,p=t.top-e.top-a.top;this.cropped&&!this.disabled&&(h(this.viewBoxImage,L({width:c,height:u},y(L({translateX:-d,translateY:-p},a)))),_(this.previews,function(e){var t=B(e,O),n=t.width,t=t.height,r=n,i=t,o=1;s&&(i=l*(o=n/s)),l&&t<i&&(r=s*(o=t/l),i=t),h(e,{width:r,height:i}),h(e.getElementsByTagName("img")[0],L({width:c*o,height:u*o},y(L({translateX:-d*o,translateY:-p*o},a))))}))}},ge={bind:function(){var e=this.element,t=this.options,n=this.cropper;c(t.cropstart)&&m(e,M,t.cropstart),c(t.cropmove)&&m(e,A,t.cropmove),c(t.cropend)&&m(e,k,t.cropend),c(t.crop)&&m(e,"crop",t.crop),c(t.zoom)&&m(e,"zoom",t.zoom),m(n,K,this.onCropStart=this.cropStart.bind(this)),t.zoomable&&t.zoomOnWheel&&m(n,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&m(n,"dblclick",this.onDblclick=this.dblclick.bind(this)),m(e.ownerDocument,Y,this.onCropMove=this.cropMove.bind(this)),m(e.ownerDocument,Q,this.onCropEnd=this.cropEnd.bind(this)),t.responsive&&m(window,"resize",this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,t=this.options,n=this.cropper;c(t.cropstart)&&l(e,M,t.cropstart),c(t.cropmove)&&l(e,A,t.cropmove),c(t.cropend)&&l(e,k,t.cropend),c(t.crop)&&l(e,"crop",t.crop),c(t.zoom)&&l(e,"zoom",t.zoom),l(n,K,this.onCropStart),t.zoomable&&t.zoomOnWheel&&l(n,"wheel",this.onWheel,{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&l(n,"dblclick",this.onDblclick),l(e.ownerDocument,Y,this.onCropMove),l(e.ownerDocument,Q,this.onCropEnd),t.responsive&&l(window,"resize",this.onResize)}},ye={resize:function(){var e,t,n,r,i,o,a;this.disabled||(e=this.options,r=this.container,t=this.containerData,n=r.offsetWidth/t.width,r=r.offsetHeight/t.height,1!=(i=Math.abs(n-1)>Math.abs(r-1)?n:r)&&(e.restore&&(o=this.getCanvasData(),a=this.getCropBoxData()),this.render(),e.restore)&&(this.setCanvasData(_(o,function(e,t){o[t]=e*i})),this.setCropBoxData(_(a,function(e,t){a[t]=e*i}))))},dblclick:function(){var e,t;this.disabled||"none"===this.options.dragMode||this.setDragMode((e=this.dragBox,t=C,(e.classList?e.classList.contains(t):-1<e.className.indexOf(t))?"move":"crop"))},wheel:function(e){var t=this,n=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(e.preventDefault(),this.wheeling)||(this.wheeling=!0,setTimeout(function(){t.wheeling=!1},50),e.deltaY?r=0<e.deltaY?1:-1:e.wheelDelta?r=-e.wheelDelta/120:e.detail&&(r=0<e.detail?1:-1),this.zoom(-r*n,e))},cropStart:function(e){var t,n=e.buttons,r=e.button;this.disabled||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(p(n)&&1!==n||p(r)&&0!==r||e.ctrlKey)||(n=this.options,t=this.pointers,e.changedTouches?_(e.changedTouches,function(e){t[e.identifier]=v(e)}):t[e.pointerId||0]=v(e),r=1<Object.keys(t).length&&n.zoomable&&n.zoomOnTouch?"zoom":B(e.target,I),J.test(r)&&!1!==g(this.element,M,{originalEvent:e,action:r})&&(e.preventDefault(),this.action=r,this.cropping=!1,"crop"===r)&&(this.cropping=!0,u(this.dragBox,S)))},cropMove:function(e){var t,n=this.action;!this.disabled&&n&&(t=this.pointers,e.preventDefault(),!1!==g(this.element,A,{originalEvent:e,action:n}))&&(e.changedTouches?_(e.changedTouches,function(e){L(t[e.identifier]||{},v(e,!0))}):L(t[e.pointerId||0]||{},v(e,!0)),this.change(e))},cropEnd:function(e){var t,n;this.disabled||(t=this.action,n=this.pointers,e.changedTouches?_(e.changedTouches,function(e){delete n[e.identifier]}):delete n[e.pointerId||0],t&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,a(this.dragBox,S,this.cropped&&this.options.modal)),g(this.element,k,{originalEvent:e,action:t})))}},ve={change:function(e){function t(e){switch(e){case"e":g+w.x>$&&(w.x=$-g);break;case"w":p+w.x<v&&(w.x=v-p);break;case"n":f+w.y<x&&(w.y=x-f);break;case"s":y+w.y>b&&(w.y=b-y)}}var n,r,o,i=this.options,a=this.canvasData,s=this.containerData,l=this.cropBoxData,c=this.pointers,u=this.action,d=i.aspectRatio,p=l.left,f=l.top,h=l.width,m=l.height,g=p+h,y=f+m,v=0,x=0,$=s.width,b=s.height,C=!0,S=(!d&&e.shiftKey&&(d=h&&m?h/m:1),this.limited&&(v=l.minLeft,x=l.minTop,$=v+Math.min(s.width,a.width,a.left+a.width),b=x+Math.min(s.height,a.height,a.top+a.height)),c[Object.keys(c)[0]]),w={x:S.endX-S.startX,y:S.endY-S.startY};switch(u){case"all":p+=w.x,f+=w.y;break;case"e":0<=w.x&&($<=g||d&&(f<=x||b<=y))?C=!1:(t("e"),(h+=w.x)<0&&(u="w",p-=h=-h),d&&(f+=(l.height-(m=h/d))/2));break;case"n":w.y<=0&&(f<=x||d&&(p<=v||$<=g))?C=!1:(t("n"),m-=w.y,f+=w.y,m<0&&(u="s",f-=m=-m),d&&(p+=(l.width-(h=m*d))/2));break;case"w":w.x<=0&&(p<=v||d&&(f<=x||b<=y))?C=!1:(t("w"),h-=w.x,p+=w.x,h<0&&(u="e",p-=h=-h),d&&(f+=(l.height-(m=h/d))/2));break;case"s":0<=w.y&&(b<=y||d&&(p<=v||$<=g))?C=!1:(t("s"),(m+=w.y)<0&&(u="n",f-=m=-m),d&&(p+=(l.width-(h=m*d))/2));break;case"ne":if(d){if(w.y<=0&&(f<=x||$<=g)){C=!1;break}t("n"),m-=w.y,f+=w.y,h=m*d}else t("n"),t("e"),!(0<=w.x)||g<$?h+=w.x:w.y<=0&&f<=x&&(C=!1),(!(w.y<=0)||x<f)&&(m-=w.y,f+=w.y);h<0&&m<0?(u="sw",f-=m=-m,p-=h=-h):h<0?(u="nw",p-=h=-h):m<0&&(u="se",f-=m=-m);break;case"nw":if(d){if(w.y<=0&&(f<=x||p<=v)){C=!1;break}t("n"),m-=w.y,f+=w.y,p+=l.width-(h=m*d)}else t("n"),t("w"),!(w.x<=0)||v<p?(h-=w.x,p+=w.x):w.y<=0&&f<=x&&(C=!1),(!(w.y<=0)||x<f)&&(m-=w.y,f+=w.y);h<0&&m<0?(u="se",f-=m=-m,p-=h=-h):h<0?(u="ne",p-=h=-h):m<0&&(u="sw",f-=m=-m);break;case"sw":if(d){if(w.x<=0&&(p<=v||b<=y)){C=!1;break}t("w"),h-=w.x,p+=w.x,m=h/d}else t("s"),t("w"),!(w.x<=0)||v<p?(h-=w.x,p+=w.x):0<=w.y&&b<=y&&(C=!1),(!(0<=w.y)||y<b)&&(m+=w.y);h<0&&m<0?(u="ne",f-=m=-m,p-=h=-h):h<0?(u="se",p-=h=-h):m<0&&(u="nw",f-=m=-m);break;case"se":if(d){if(0<=w.x&&($<=g||b<=y)){C=!1;break}t("e"),m=(h+=w.x)/d}else t("s"),t("e"),!(0<=w.x)||g<$?h+=w.x:0<=w.y&&b<=y&&(C=!1),(!(0<=w.y)||y<b)&&(m+=w.y);h<0&&m<0?(u="nw",f-=m=-m,p-=h=-h):h<0?(u="sw",p-=h=-h):m<0&&(u="ne",f-=m=-m);break;case"move":this.move(w.x,w.y),C=!1;break;case"zoom":this.zoom((r=N({},n=c),o=0,_(n,function(i,e){delete r[e],_(r,function(e){var t=Math.abs(i.startX-e.startX),n=Math.abs(i.startY-e.startY),r=Math.abs(i.endX-e.endX),e=Math.abs(i.endY-e.endY),t=Math.sqrt(t*t+n*n),n=(Math.sqrt(r*r+e*e)-t)/t;Math.abs(n)>Math.abs(o)&&(o=n)})}),o),e),C=!1;break;case"crop":w.x&&w.y?(n=U(this.cropper),p=S.startX-n.left,f=S.startY-n.top,h=l.minWidth,m=l.minHeight,0<w.x?u=0<w.y?"se":"ne":w.x<0&&(p-=h,u=0<w.y?"sw":"nw"),w.y<0&&(f-=m),this.cropped||(T(this.cropBox,E),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))):C=!1}C&&(l.width=h,l.height=m,l.left=p,l.top=f,this.action=u,this.renderCropBox()),_(c,function(e){e.startX=e.endX,e.startY=e.endY})}},xe={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&u(this.dragBox,S),T(this.cropBox,E),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=L({},this.initialImageData),this.canvasData=L({},this.initialCanvasData),this.cropBoxData=L({},this.initialCropBoxData),this.renderCanvas(),this.cropped)&&this.renderCropBox(),this},clear:function(){return this.cropped&&!this.disabled&&(L(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),T(this.dragBox,S),u(this.cropBox,E)),this},replace:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&t&&(this.isImg&&(this.element.src=t),e?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,_(this.previews,function(e){e.getElementsByTagName("img")[0].src=t}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,T(this.cropper,Z)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,u(this.cropper,Z)),this},destroy:function(){var e=this.element;return e[b]&&(e[b]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate()),this},move:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,r=n.left,n=n.top;return this.moveTo(i(e)?e:r+Number(e),i(t)?t:n+Number(t))},moveTo:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.movable&&(p(e)&&(n.left=e,r=!0),p(t)&&(n.top=t,r=!0),r)&&this.renderCanvas(!0),this},zoom:function(e,t){var n=this.canvasData;return e=Number(e),this.zoomTo(n.width*(e=e<0?1/(1-e):1+e)/n.naturalWidth,null,t)},zoomTo:function(e,t,n){var r,i,o,a=this.options,s=this.canvasData,l=s.width,c=s.height,u=s.naturalWidth,d=s.naturalHeight;if(0<=(e=Number(e))&&this.ready&&!this.disabled&&a.zoomable){a=u*e,d=d*e;if(!1===g(this.element,"zoom",{ratio:e,oldRatio:l/u,originalEvent:n}))return this;n?(e=this.pointers,u=U(this.cropper),e=e&&Object.keys(e).length?(o=i=r=0,_(e,function(e){var t=e.startX,e=e.startY;r+=t,i+=e,o+=1}),{pageX:r/=o,pageY:i/=o}):{pageX:n.pageX,pageY:n.pageY},s.left-=(a-l)*((e.pageX-u.left-s.left)/l),s.top-=(d-c)*((e.pageY-u.top-s.top)/c)):f(t)&&p(t.x)&&p(t.y)?(s.left-=(a-l)*((t.x-s.left)/l),s.top-=(d-c)*((t.y-s.top)/c)):(s.left-=(a-l)/2,s.top-=(d-c)/2),s.width=a,s.height=d,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return p(e=Number(e))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var t=this.imageData.scaleY;return this.scale(e,p(t)?t:1)},scaleY:function(e){var t=this.imageData.scaleX;return this.scale(p(t)?t:1,e)},scale:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.scalable&&(p(e)&&(n.scaleX=e,r=!0),p(t)&&(n.scaleY=t,r=!0),r)&&this.renderCanvas(!0,!0),this},getData:function(){var n,r,e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],t=this.options,i=this.imageData,o=this.canvasData,a=this.cropBoxData;return this.ready&&this.cropped?(n={x:a.left-o.left,y:a.top-o.top,width:a.width,height:a.height},r=i.width/i.naturalWidth,_(n,function(e,t){n[t]=e/r}),e&&(o=Math.round(n.y+n.height),a=Math.round(n.x+n.width),n.x=Math.round(n.x),n.y=Math.round(n.y),n.width=a-n.x,n.height=o-n.y)):n={x:0,y:0,width:0,height:0},t.rotatable&&(n.rotate=i.rotate||0),t.scalable&&(n.scaleX=i.scaleX||1,n.scaleY=i.scaleY||1),n},setData:function(e){var t,n=this.options,r=this.imageData,i=this.canvasData,o={};return this.ready&&!this.disabled&&f(e)&&(t=!1,n.rotatable&&p(e.rotate)&&e.rotate!==r.rotate&&(r.rotate=e.rotate,t=!0),n.scalable&&(p(e.scaleX)&&e.scaleX!==r.scaleX&&(r.scaleX=e.scaleX,t=!0),p(e.scaleY))&&e.scaleY!==r.scaleY&&(r.scaleY=e.scaleY,t=!0),t&&this.renderCanvas(!0,!0),n=r.width/r.naturalWidth,p(e.x)&&(o.left=e.x*n+i.left),p(e.y)&&(o.top=e.y*n+i.top),p(e.width)&&(o.width=e.width*n),p(e.height)&&(o.height=e.height*n),this.setCropBoxData(o)),this},getContainerData:function(){return this.ready?L({},this.containerData):{}},getImageData:function(){return this.sized?L({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,n={};return this.ready&&_(["left","top","width","height","naturalWidth","naturalHeight"],function(e){n[e]=t[e]}),n},setCanvasData:function(e){var t=this.canvasData,n=t.aspectRatio;return this.ready&&!this.disabled&&f(e)&&(p(e.left)&&(t.left=e.left),p(e.top)&&(t.top=e.top),p(e.width)?(t.width=e.width,t.height=e.width/n):p(e.height)&&(t.height=e.height,t.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e,t=this.cropBoxData;return(e=this.ready&&this.cropped?{left:t.left,top:t.top,width:t.width,height:t.height}:e)||{}},setCropBoxData:function(e){var t,n,r=this.cropBoxData,i=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&f(e)&&(p(e.left)&&(r.left=e.left),p(e.top)&&(r.top=e.top),p(e.width)&&e.width!==r.width&&(t=!0,r.width=e.width),p(e.height)&&e.height!==r.height&&(n=!0,r.height=e.height),i&&(t?r.height=r.width/i:n&&(r.width=r.height*i)),this.renderCropBox()),this},getCroppedCanvas:function(){var e,t,n,r,i,o,a,s,l,c,u,d,p,f,h,m,g,y,v,x,$,b,C,S,w,_,T,E=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this.ready&&window.HTMLCanvasElement?(_=this.canvasData,h=this.image,d=this.imageData,r=_,y=E,m=d.aspectRatio,t=d.naturalWidth,i=d.naturalHeight,c=void 0===(c=d.rotate)?0:c,u=void 0===(u=d.scaleX)?1:u,d=void 0===(d=d.scaleY)?1:d,n=r.aspectRatio,s=r.naturalWidth,r=r.naturalHeight,a=void 0===(a=y.fillColor)?"transparent":a,p=void 0===(p=y.imageSmoothingEnabled)||p,f=void 0===(f=y.imageSmoothingQuality)?"low":f,o=void 0===(o=y.maxWidth)?1/0:o,T=void 0===(T=y.maxHeight)?1/0:T,e=void 0===(e=y.minWidth)?0:e,y=void 0===(y=y.minHeight)?0:y,v=document.createElement("canvas"),g=v.getContext("2d"),l=R({aspectRatio:n,width:o,height:T}),n=R({aspectRatio:n,width:e,height:y},"cover"),s=Math.min(l.width,Math.max(n.width,s)),l=Math.min(l.height,Math.max(n.height,r)),n=R({aspectRatio:m,width:o,height:T}),r=R({aspectRatio:m,width:e,height:y},"cover"),o=Math.min(n.width,Math.max(r.width,t)),T=Math.min(n.height,Math.max(r.height,i)),m=[-o/2,-T/2,o,T],v.width=j(s),v.height=j(l),g.fillStyle=a,g.fillRect(0,0,s,l),g.save(),g.translate(s/2,l/2),g.rotate(c*Math.PI/180),g.scale(u,d),g.imageSmoothingEnabled=p,g.imageSmoothingQuality=f,g.drawImage.apply(g,[h].concat(V(m.map(function(e){return Math.floor(j(e))})))),g.restore(),e=v,this.cropped?(t=(y=this.getData()).x,n=y.y,r=y.width,i=y.height,1!=(o=e.width/Math.floor(_.naturalWidth))&&(t*=o,n*=o,r*=o,i*=o),a=R({aspectRatio:T=r/i,width:E.maxWidth||1/0,height:E.maxHeight||1/0}),s=R({aspectRatio:T,width:E.minWidth||0,height:E.minHeight||0},"cover"),c=(l=R({aspectRatio:T,width:E.width||(1!=o?e.width:r),height:E.height||(1!=o?e.height:i)})).width,u=l.height,c=Math.min(a.width,Math.max(s.width,c)),u=Math.min(a.height,Math.max(s.height,u)),p=(d=document.createElement("canvas")).getContext("2d"),d.width=j(c),d.height=j(u),p.fillStyle=E.fillColor||"transparent",p.fillRect(0,0,c,u),f=E.imageSmoothingEnabled,h=E.imageSmoothingQuality,p.imageSmoothingEnabled=void 0===f||f,h&&(p.imageSmoothingQuality=h),m=e.width,g=e.height,v=n,(y=t)<=-r||m<y?S=b=x=y=0:y<=0?(b=-y,y=0,S=x=Math.min(m,r+y)):y<=m&&(b=0,S=x=Math.min(r,m-y)),x<=0||v<=-i||g<v?w=C=$=v=0:v<=0?(C=-v,v=0,w=$=Math.min(g,i+v)):v<=g&&(C=0,w=$=Math.min(i,g-v)),_=[y,v,x,$],0<S&&0<w&&_.push(b*(T=c/r),C*T,S*T,w*T),p.drawImage.apply(p,[e].concat(V(_.map(function(e){return Math.floor(j(e))})))),d):e):null},setAspectRatio:function(e){var t=this.options;return this.disabled||i(e)||(t.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped)&&this.renderCropBox()),this},setDragMode:function(e){var t,n,r=this.options,i=this.dragBox,o=this.face;return this.ready&&!this.disabled&&(n=r.movable&&"move"===e,r.dragMode=e=(t="crop"===e)||n?e:"none",d(i,I,e),a(i,C,t),a(i,w,n),r.cropBoxMovable||(d(o,I,e),a(o,C,t),a(o,w,n))),this}},$e=$.Cropper,be=function(){function i(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=this,r=i;if(!(n instanceof r))throw new TypeError("Cannot call a class as a function");if(!e||!ne.test(e.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=e,this.options=L({},re,f(t)&&t),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}var e=i,t=[{key:"init",value:function(){var e,t=this.element,n=t.tagName.toLowerCase();if(!t[b]){if(t[b]=this,"img"===n){if(this.isImg=!0,e=t.getAttribute("src")||"",!(this.originalUrl=e))return;e=t.src}else"canvas"===n&&window.HTMLCanvasElement&&(e=t.toDataURL());this.load(e)}}},{key:"load",value:function(e){var t,n,r,i,o,a,s=this;e&&(this.url=e,this.imageData={},t=this.element,(n=this.options).rotatable||n.scalable||(n.checkOrientation=!1),n.checkOrientation&&window.ArrayBuffer?ee.test(e)?te.test(e)?this.read((a=(a=e).replace(me,""),r=atob(a),a=new ArrayBuffer(r.length),_(i=new Uint8Array(a),function(e,t){i[t]=r.charCodeAt(t)}),a)):this.clone():(o=new XMLHttpRequest,a=this.clone.bind(this),this.reloading=!0,(this.xhr=o).onabort=a,o.onerror=a,o.ontimeout=a,o.onprogress=function(){o.getResponseHeader("content-type")!==X&&o.abort()},o.onload=function(){s.read(o.response)},o.onloadend=function(){s.reloading=!1,s.xhr=null},n.checkCrossOrigin&&z(e)&&t.crossOrigin&&(e=W(e)),o.open("GET",e,!0),o.responseType="arraybuffer",o.withCredentials="use-credentials"===t.crossOrigin,o.send()):this.clone())}},{key:"read",value:function(e){var t=this.options,n=this.imageData,r=function(e){var t,n,r,i,o,a,s=new DataView(e);try{if(255===s.getUint8(0)&&216===s.getUint8(1))for(var l=s.byteLength,c=2;c+1<l;){if(255===s.getUint8(c)&&225===s.getUint8(c+1)){r=c;break}c+=1}var u,d,p;if(i=r&&(u=r+10,"Exif"===function(e,t,n){var r="";n+=t;for(var i=t;i<n;i+=1)r+=he(e.getUint8(i));return r}(s,r+4,4))&&(d=s.getUint16(u),(n=18761===d)||19789===d)&&42===s.getUint16(u+2,n)&&8<=(p=s.getUint32(u+4,n))?u+p:i){var f=s.getUint16(i,n);for(a=0;a<f;a+=1)if(o=i+12*a+2,274===s.getUint16(o,n)){o+=8,t=s.getUint16(o,n),s.setUint16(o,1,n);break}}}catch(e){t=1}return t}(e),i=0,o=1,a=1;1<r&&(this.url=function(e,t){var n=[],r=new Uint8Array(e);for(;0<r.length;)n.push(he.apply(null,H(r.subarray(0,8192)))),r=r.subarray(8192);return"data:".concat(t,";base64,").concat(btoa(n.join("")))}(e,X),i=(e=function(e){var t=0,n=1,r=1;switch(e){case 2:n=-1;break;case 3:t=-180;break;case 4:r=-1;break;case 5:t=90,r=-1;break;case 6:t=90;break;case 7:t=90,n=-1;break;case 8:t=-90}return{rotate:t,scaleX:n,scaleY:r}}(r)).rotate,o=e.scaleX,a=e.scaleY),t.rotatable&&(n.rotate=i),t.scalable&&(n.scaleX=o,n.scaleY=a),this.clone()}},{key:"clone",value:function(){var e=this.element,t=this.url,n=e.crossOrigin,r=t,i=(this.options.checkCrossOrigin&&z(t)&&(n=n||"anonymous",r=W(t)),this.crossOrigin=n,this.crossOriginUrl=r,document.createElement("img"));n&&(i.crossOrigin=n),i.src=r||t,i.alt=e.alt||"The image to crop",(this.image=i).onload=this.start.bind(this),i.onerror=this.stop.bind(this),u(i,G),e.parentNode.insertBefore(i,e.nextSibling)}},{key:"start",value:function(){function e(e,t){L(r.imageData,{naturalWidth:e,naturalHeight:t,aspectRatio:e/t}),r.initialImageData=L({},r.imageData),r.sizing=!1,r.sized=!0,r.build()}var t,n,r=this,i=this.image,o=(i.onload=null,i.onerror=null,this.sizing=!0,$.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test($.navigator.userAgent));i.naturalWidth&&!o?e(i.naturalWidth,i.naturalHeight):(t=document.createElement("img"),n=document.body||document.documentElement,(this.sizingImage=t).onload=function(){e(t.width,t.height),o||n.removeChild(t)},t.src=i.src,o||(t.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",n.appendChild(t)))}},{key:"stop",value:function(){var e=this.image;e.onload=null,e.onerror=null,e.parentNode.removeChild(e),this.image=null}},{key:"build",value:function(){var e,t,n,r,i,o,a,s,l;this.sized&&!this.ready&&(e=this.element,t=this.options,n=this.image,r=e.parentNode,(i=document.createElement("div")).innerHTML='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',o=(i=i.querySelector(".".concat(b,"-container"))).querySelector(".".concat(b,"-canvas")),a=i.querySelector(".".concat(b,"-drag-box")),l=(s=i.querySelector(".".concat(b,"-crop-box"))).querySelector(".".concat(b,"-face")),this.container=r,this.cropper=i,this.canvas=o,this.dragBox=a,this.cropBox=s,this.viewBox=i.querySelector(".".concat(b,"-view-box")),this.face=l,o.appendChild(n),u(e,E),r.insertBefore(i,e.nextSibling),T(n,G),this.initPreview(),this.bind(),t.initialAspectRatio=Math.max(0,t.initialAspectRatio)||NaN,t.aspectRatio=Math.max(0,t.aspectRatio)||NaN,t.viewMode=Math.max(0,Math.min(3,Math.round(t.viewMode)))||0,u(s,E),t.guides||u(s.getElementsByClassName("".concat(b,"-dashed")),E),t.center||u(s.getElementsByClassName("".concat(b,"-center")),E),t.background&&u(i,"".concat(b,"-bg")),t.highlight||u(l,q),t.cropBoxMovable&&(u(l,w),d(l,I,"all")),t.cropBoxResizable||(u(s.getElementsByClassName("".concat(b,"-line")),E),u(s.getElementsByClassName("".concat(b,"-point")),E)),this.render(),this.ready=!0,this.setDragMode(t.dragMode),t.autoCrop&&this.crop(),this.setData(t.data),c(t.ready)&&m(e,"ready",t.ready,{once:!0}),g(e,"ready"))}},{key:"unbuild",value:function(){var e;this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),(e=this.cropper.parentNode)&&e.removeChild(this.cropper),T(this.element,E))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],n=[{key:"noConflict",value:function(){return window.Cropper=$e,i}},{key:"setDefaults",value:function(e){L(re,f(e)&&e)}}];return t&&F(e.prototype,t),n&&F(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(),L(be.prototype,e,n,ge,ye,ve,xe),be)}(),cropper.exports),__assign=function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function __rest$2(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}var AuthStatus,applyDefaultOptions=function(e,t){var n=(t=void 0===t?{}:t).enable,r=t.scaleX,r=void 0===r?1:r,i=t.scaleY,i=void 0===i?1:i,o=t.zoomTo,o=void 0===o?0:o,t=t.rotateTo;void 0===n||n?e.enable():e.disable(),e.scaleX(r),e.scaleY(i),void 0!==t&&e.rotateTo(t),0<o&&e.zoomTo(o)},useCombinedRefs=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=react$1.exports.useRef(null);return React5.useEffect(function(){e.forEach(function(e){e&&("function"==typeof e?e(n.current):e.current=n.current)})},[e]),n},ReactCropper=React5.forwardRef(function(e,t){var e=__rest$2(e,[]),n=e.dragMode,r=void 0===n?"crop":n,i=e.src,n=e.style,o=e.className,a=e.crossOrigin,s=e.scaleX,l=e.scaleY,c=e.enable,u=e.zoomTo,d=e.rotateTo,p=e.alt,p=void 0===p?"picture":p,f=e.ready,h=e.onInitialized,m=__rest$2(e,["dragMode","src","style","className","crossOrigin","scaleX","scaleY","enable","zoomTo","rotateTo","alt","ready","onInitialized"]),g={scaleY:l,scaleX:s,enable:c,zoomTo:u,rotateTo:d},l=react$1.exports.useRef(null),y=useCombinedRefs(t,l);return react$1.exports.useEffect(function(){var e;null!=(e=y.current)&&e.cropper&&"number"==typeof u&&y.current.cropper.zoomTo(u)},[e.zoomTo]),react$1.exports.useEffect(function(){var e;null!=(e=y.current)&&e.cropper&&void 0!==i&&y.current.cropper.reset().clear().replace(i)},[i]),react$1.exports.useEffect(function(){var e;return null!==y.current&&(e=new Cropper(y.current,__assign(__assign({dragMode:r},m),{ready:function(e){null!==e.currentTarget&&applyDefaultOptions(e.currentTarget.cropper,g),f&&f(e)}})),h)&&h(e),function(){var e;null!=(e=null==(e=y.current)?void 0:e.cropper)&&e.destroy()}},[y]),React5.createElement("div",{style:n,className:o},React5.createElement("img",{crossOrigin:a,src:i,alt:p,style:{opacity:0,maxWidth:"100%"},ref:y}))});const namespace$4$1="users",userSelector$1=e=>{return null==(e=null==e?void 0:e.aiWareHeaderBarPanel)?void 0:e[namespace$4$1]},currentUserSelector=e=>{return null==(e=null==(e=null==e?void 0:e.aiWareHeaderBarPanel)?void 0:e[namespace$4$1])?void 0:e.currentUser},userAuthStatusSelector=e=>{return null==(e=null==(e=null==e?void 0:e.aiWareHeaderBarPanel)?void 0:e[namespace$4$1])?void 0:e.authStatus},hubRoleSelector=e=>{return null==(e=null==(e=null==e?void 0:e.aiWareHeaderBarPanel)?void 0:e[namespace$4$1])?void 0:e.hubRole},GET_CURRENT_USER$1=`os-app-bar-panel/${namespace$4$1}/get current user`,GET_CURRENT_USER_SUCCESS$1=`os-app-bar-panel/${namespace$4$1}/get current user success`,GET_CURRENT_USER_FAIL$1=`os-app-bar-panel/${namespace$4$1}/get current user fail`,RESET_BIOMETRIC=`os-app-bar-panel/${namespace$4$1}/reset biometric`,RESET_PASSWORD=`os-app-bar-panel/${namespace$4$1}/reset password`,RESET_PASSWORD_FAIL=`os-app-bar-panel/${namespace$4$1}/reset password fail`,UPDATE_PROFILE=`os-app-bar-panel/${namespace$4$1}/update profile`,UPDATE_PROFILE_FAIL=`os-app-bar-panel/${namespace$4$1}/update profile fail`,UPLOAD__AVATAR=`os-app-bar-panel/${namespace$4$1}/upload avatar`,UPDATE__AVATAR=`os-app-bar-panel/${namespace$4$1}/update avatar`,LOGOUT_USER=`os-app-bar-panel/${namespace$4$1}/logout`,LOGOUT_SUCCESS=`os-app-bar-panel/${namespace$4$1}/logout success`,LOGOUT_FAIL=`os-app-bar-panel/${namespace$4$1}/logout fail`,UPLOADING_AVATAR=`os-app-bar-panel/${namespace$4$1}/uploading`,UPDATE_ACTIVITY=`os-app-bar-panel/${namespace$4$1}/updateActivityStatus`,SET_HUB_ROLE=`os-app-bar-panel/${namespace$4$1}/set hub role`;function getCurrentUser$1(){return{type:GET_CURRENT_USER$1}}function getCurrentUserFail$1(){return{type:GET_CURRENT_USER_FAIL$1}}function getCurrentUserSuccess$1(e){return{type:GET_CURRENT_USER_SUCCESS$1,payload:e}}function resetBiometric(){return{type:RESET_BIOMETRIC}}function resetPassword(e){return{type:RESET_PASSWORD,payload:e}}function resetPasswordFail(){return{type:RESET_PASSWORD_FAIL}}function updateProfile(e){return{type:UPDATE_PROFILE,payload:e}}function updateProfileFail(){return{type:UPDATE_PROFILE_FAIL}}function uploadAvatar(e){return{type:UPLOAD__AVATAR,payload:e}}function updateAvatar(e){return{type:UPDATE__AVATAR,payload:e}}function logoutUser$1(){return{type:LOGOUT_USER}}function logoutUserSuccess(){return{type:LOGOUT_SUCCESS}}function logoutUserFail(){return{type:LOGOUT_FAIL}}function uploadingAvatar(e){return{type:UPLOADING_AVATAR,payload:e}}function setHubRole(e){return{type:SET_HUB_ROLE,payload:e}}!function(e){e.AUTHENTICATED="authenticated",e.LOGGING_OUT="logging_out",e.LOGGED_OUT="logged_out"}(AuthStatus=AuthStatus||{});const initialState$4$1={currentUser:{},status:"idle",authStatus:AuthStatus.AUTHENTICATED};function userReducer$1(e,t){return void 0===e?initialState$4$1:t.type===GET_CURRENT_USER_SUCCESS$1?Object.assign(Object.assign({},e),{currentUser:t.payload,status:"success"}):t.type===UPLOADING_AVATAR?Object.assign(Object.assign({},e),{loading:t.payload}):t.type===LOGOUT_USER?Object.assign(Object.assign({},e),{authStatus:AuthStatus.LOGGING_OUT}):t.type===LOGOUT_SUCCESS?Object.assign(Object.assign({},e),{authStatus:AuthStatus.LOGGED_OUT}):t.type===LOGOUT_FAIL?Object.assign(Object.assign({},e),{authStatus:AuthStatus.AUTHENTICATED}):t.type===SET_HUB_ROLE?Object.assign(Object.assign({},e),{hubRole:t.payload}):e}var luxon={};function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function _construct(e,t,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);t=new(Function.bind.apply(e,r));return n&&_setPrototypeOf(t,n.prototype),t}).apply(null,arguments)}function _isNativeFunction(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _wrapNativeSuper(e){var n="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(t,e)})(e)}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};for(var n,r={},i=Object.keys(e),o=0;o<i.length;o++)n=i[o],0<=t.indexOf(n)||(r[n]=e[n]);return r}function _unsupportedIterableToArray(e,t){var n;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _createForOfIteratorHelperLoose(e){var t=0;if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator])return(t=e[Symbol.iterator]()).next.bind(t);if(Array.isArray(e)||(e=_unsupportedIterableToArray(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(luxon,"__esModule",{value:!0});var LuxonError=function(e){function t(){return e.apply(this,arguments)||this}return _inheritsLoose(t,e),t}(_wrapNativeSuper(Error)),InvalidDateTimeError=function(t){function e(e){return t.call(this,"Invalid DateTime: "+e.toMessage())||this}return _inheritsLoose(e,t),e}(LuxonError),InvalidIntervalError=function(t){function e(e){return t.call(this,"Invalid Interval: "+e.toMessage())||this}return _inheritsLoose(e,t),e}(LuxonError),InvalidDurationError=function(t){function e(e){return t.call(this,"Invalid Duration: "+e.toMessage())||this}return _inheritsLoose(e,t),e}(LuxonError),ConflictingSpecificationError=function(e){function t(){return e.apply(this,arguments)||this}return _inheritsLoose(t,e),t}(LuxonError),InvalidUnitError=function(t){function e(e){return t.call(this,"Invalid unit "+e)||this}return _inheritsLoose(e,t),e}(LuxonError),InvalidArgumentError=function(e){function t(){return e.apply(this,arguments)||this}return _inheritsLoose(t,e),t}(LuxonError),ZoneIsAbstractError=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return _inheritsLoose(t,e),t}(LuxonError),n$1="numeric",s="short",l$1="long",DATE_SHORT={year:n$1,month:n$1,day:n$1},DATE_MED={year:n$1,month:s,day:n$1},DATE_MED_WITH_WEEKDAY={year:n$1,month:s,day:n$1,weekday:s},DATE_FULL={year:n$1,month:l$1,day:n$1},DATE_HUGE={year:n$1,month:l$1,day:n$1,weekday:l$1},TIME_SIMPLE={hour:n$1,minute:n$1},TIME_WITH_SECONDS={hour:n$1,minute:n$1,second:n$1},TIME_WITH_SHORT_OFFSET={hour:n$1,minute:n$1,second:n$1,timeZoneName:s},TIME_WITH_LONG_OFFSET={hour:n$1,minute:n$1,second:n$1,timeZoneName:l$1},TIME_24_SIMPLE={hour:n$1,minute:n$1,hour12:!1},TIME_24_WITH_SECONDS={hour:n$1,minute:n$1,second:n$1,hour12:!1},TIME_24_WITH_SHORT_OFFSET={hour:n$1,minute:n$1,second:n$1,hour12:!1,timeZoneName:s},TIME_24_WITH_LONG_OFFSET={hour:n$1,minute:n$1,second:n$1,hour12:!1,timeZoneName:l$1},DATETIME_SHORT={year:n$1,month:n$1,day:n$1,hour:n$1,minute:n$1},DATETIME_SHORT_WITH_SECONDS={year:n$1,month:n$1,day:n$1,hour:n$1,minute:n$1,second:n$1},DATETIME_MED={year:n$1,month:s,day:n$1,hour:n$1,minute:n$1},DATETIME_MED_WITH_SECONDS={year:n$1,month:s,day:n$1,hour:n$1,minute:n$1,second:n$1},DATETIME_MED_WITH_WEEKDAY={year:n$1,month:s,day:n$1,weekday:s,hour:n$1,minute:n$1},DATETIME_FULL={year:n$1,month:l$1,day:n$1,hour:n$1,minute:n$1,timeZoneName:s},DATETIME_FULL_WITH_SECONDS={year:n$1,month:l$1,day:n$1,hour:n$1,minute:n$1,second:n$1,timeZoneName:s},DATETIME_HUGE={year:n$1,month:l$1,day:n$1,weekday:l$1,hour:n$1,minute:n$1,timeZoneName:l$1},DATETIME_HUGE_WITH_SECONDS={year:n$1,month:l$1,day:n$1,weekday:l$1,hour:n$1,minute:n$1,second:n$1,timeZoneName:l$1};function isUndefined(e){return void 0===e}function isNumber(e){return"number"==typeof e}function isInteger(e){return"number"==typeof e&&e%1==0}function isString(e){return"string"==typeof e}function isDate(e){return"[object Date]"===Object.prototype.toString.call(e)}function hasIntl(){try{return"undefined"!=typeof Intl&&Intl.DateTimeFormat}catch(e){return!1}}function hasFormatToParts(){return!isUndefined(Intl.DateTimeFormat.prototype.formatToParts)}function hasRelative(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function maybeArray(e){return Array.isArray(e)?e:[e]}function bestBy(e,n,r){if(0!==e.length)return e.reduce(function(e,t){t=[n(t),t];return e&&r(e[0],t[0])===e[0]?e:t},null)[1]}function pick(n,e){return e.reduce(function(e,t){return e[t]=n[t],e},{})}function hasOwnProperty$1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function integerBetween(e,t,n){return isInteger(e)&&t<=e&&e<=n}function floorMod(e,t){return e-t*Math.floor(e/t)}function padStart(e,t){void 0===t&&(t=2);var n=e<0?"-":"",e=n?-1*e:e,t=e.toString().length<t?("0".repeat(t)+e).slice(-t):e.toString();return n+t}function parseInteger(e){if(!isUndefined(e)&&null!==e&&""!==e)return parseInt(e,10)}function parseMillis(e){if(!isUndefined(e)&&null!==e&&""!==e)return e=1e3*parseFloat("0."+e),Math.floor(e)}function roundTo(e,t,n){void 0===n&&(n=!1);t=Math.pow(10,t);return(n?Math.trunc:Math.round)(e*t)/t}function isLeapYear(e){return e%4==0&&(e%100!=0||e%400==0)}function daysInYear(e){return isLeapYear(e)?366:365}function daysInMonth(e,t){var n=floorMod(t-1,12)+1;return 2===n?isLeapYear(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function objToLocalTS(e){var t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&0<=e.year&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function weeksInWeekYear(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,e=e-1,e=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7;return 4==t||3==e?53:52}function untruncateYear(e){return 99<e?e:60<e?1900+e:2e3+e}function parseZoneInfo(e,t,n,r){void 0===r&&(r=null);var i,e=new Date(e),o={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"},r=(r&&(o.timeZone=r),Object.assign({timeZoneName:t},o)),t=hasIntl();return t&&hasFormatToParts()?(i=new Intl.DateTimeFormat(n,r).formatToParts(e).find(function(e){return"timezonename"===e.type.toLowerCase()}))?i.value:null:t?(i=new Intl.DateTimeFormat(n,o).format(e),new Intl.DateTimeFormat(n,r).format(e).substring(i.length).replace(/^[, \u200e]+/,"")):null}function signedOffset(e,t){e=parseInt(e,10),Number.isNaN(e)&&(e=0),t=parseInt(t,10)||0;return 60*e+(e<0||Object.is(e,-0)?-t:t)}function asNumber(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new InvalidArgumentError("Invalid unit value "+e);return t}function normalizeObject(e,t,n){var r,i,o={};for(r in e)!hasOwnProperty$1(e,r)||0<=n.indexOf(r)||null!=(i=e[r])&&(o[t(r)]=asNumber(i));return o}function formatOffset(e,t){var n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=0<=e?"+":"-";switch(t){case"short":return i+padStart(n,2)+":"+padStart(r,2);case"narrow":return i+n+(0<r?":"+r:"");case"techie":return i+padStart(n,2)+padStart(r,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function timeObject(e){return pick(e,["hour","minute","second","millisecond"])}var ianaRegex=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function stringify(e){return JSON.stringify(e,Object.keys(e).sort())}var monthsLong=["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthsNarrow=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(e){switch(e){case"narrow":return[].concat(monthsNarrow);case"short":return[].concat(monthsShort);case"long":return[].concat(monthsLong);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var weekdaysLong=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],weekdaysShort=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],weekdaysNarrow=["M","T","W","T","F","S","S"];function weekdays(e){switch(e){case"narrow":return[].concat(weekdaysNarrow);case"short":return[].concat(weekdaysShort);case"long":return[].concat(weekdaysLong);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var meridiems=["AM","PM"],erasLong=["Before Christ","Anno Domini"],erasShort=["BC","AD"],erasNarrow=["B","A"];function eras(e){switch(e){case"narrow":return[].concat(erasNarrow);case"short":return[].concat(erasShort);case"long":return[].concat(erasLong);default:return null}}function meridiemForDateTime(e){return meridiems[e.hour<12?0:1]}function weekdayForDateTime(e,t){return weekdays(t)[e.weekday-1]}function monthForDateTime(e,t){return months(t)[e.month-1]}function eraForDateTime(e,t){return eras(t)[e.year<0?0:1]}function formatRelativeTime(e,t,n,r){void 0===n&&(n="always"),void 0===r&&(r=!1);var i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&o){var a="days"===e;switch(t){case 1:return a?"tomorrow":"next "+i[e][0];case-1:return a?"yesterday":"last "+i[e][0];case 0:return a?"today":"this "+i[e][0]}}var n=Object.is(t,-0)||t<0,o=Math.abs(t),t=1===o,s=i[e],r=r?!t&&s[2]||s[1]:t?i[e][0]:e;return n?o+" "+r+" ago":"in "+o+" "+r}function formatString(e){var t="EEEE, LLLL d, yyyy, h:mm a";switch(stringify(pick(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]))){case stringify(DATE_SHORT):return"M/d/yyyy";case stringify(DATE_MED):return"LLL d, yyyy";case stringify(DATE_MED_WITH_WEEKDAY):return"EEE, LLL d, yyyy";case stringify(DATE_FULL):return"LLLL d, yyyy";case stringify(DATE_HUGE):return"EEEE, LLLL d, yyyy";case stringify(TIME_SIMPLE):return"h:mm a";case stringify(TIME_WITH_SECONDS):return"h:mm:ss a";case stringify(TIME_WITH_SHORT_OFFSET):case stringify(TIME_WITH_LONG_OFFSET):return"h:mm a";case stringify(TIME_24_SIMPLE):return"HH:mm";case stringify(TIME_24_WITH_SECONDS):return"HH:mm:ss";case stringify(TIME_24_WITH_SHORT_OFFSET):case stringify(TIME_24_WITH_LONG_OFFSET):return"HH:mm";case stringify(DATETIME_SHORT):return"M/d/yyyy, h:mm a";case stringify(DATETIME_MED):return"LLL d, yyyy, h:mm a";case stringify(DATETIME_FULL):return"LLLL d, yyyy, h:mm a";case stringify(DATETIME_HUGE):return t;case stringify(DATETIME_SHORT_WITH_SECONDS):return"M/d/yyyy, h:mm:ss a";case stringify(DATETIME_MED_WITH_SECONDS):return"LLL d, yyyy, h:mm:ss a";case stringify(DATETIME_MED_WITH_WEEKDAY):return"EEE, d LLL yyyy, h:mm a";case stringify(DATETIME_FULL_WITH_SECONDS):return"LLLL d, yyyy, h:mm:ss a";case stringify(DATETIME_HUGE_WITH_SECONDS):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return t}}function stringifyTokens(e,t){for(var n="",r=_createForOfIteratorHelperLoose(e);!(i=r()).done;){var i=i.value;i.literal?n+=i.val:n+=t(i.val)}return n}var _macroTokenToFormatOpts={D:DATE_SHORT,DD:DATE_MED,DDD:DATE_FULL,DDDD:DATE_HUGE,t:TIME_SIMPLE,tt:TIME_WITH_SECONDS,ttt:TIME_WITH_SHORT_OFFSET,tttt:TIME_WITH_LONG_OFFSET,T:TIME_24_SIMPLE,TT:TIME_24_WITH_SECONDS,TTT:TIME_24_WITH_SHORT_OFFSET,TTTT:TIME_24_WITH_LONG_OFFSET,f:DATETIME_SHORT,ff:DATETIME_MED,fff:DATETIME_FULL,ffff:DATETIME_HUGE,F:DATETIME_SHORT_WITH_SECONDS,FF:DATETIME_MED_WITH_SECONDS,FFF:DATETIME_FULL_WITH_SECONDS,FFFF:DATETIME_HUGE_WITH_SECONDS},Formatter=function(){function p(e,t){this.opts=t,this.loc=e,this.systemLoc=null}p.create=function(e,t){return new p(e,t=void 0===t?{}:t)},p.parseFormat=function(e){for(var t=null,n="",r=!1,i=[],o=0;o<e.length;o++){var a=e.charAt(o);"'"===a?(0<n.length&&i.push({literal:r,val:n}),t=null,n="",r=!r):r||a===t?n+=a:(0<n.length&&i.push({literal:!1,val:n}),t=n=a)}return 0<n.length&&i.push({literal:r,val:n}),i},p.macroTokenToFormatOpts=function(e){return _macroTokenToFormatOpts[e]};var e=p.prototype;return e.formatWithSystemDefault=function(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,Object.assign({},this.opts,t)).format()},e.formatDateTime=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).format()},e.formatDateTimeParts=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).formatToParts()},e.resolvedOptions=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).resolvedOptions()},e.num=function(e,t){var n;return void 0===t&&(t=0),this.opts.forceSimple?padStart(e,t):(n=Object.assign({},this.opts),0<t&&(n.padTo=t),this.loc.numberFormatter(n).format(e))},e.formatDateTimeFromString=function(n,e){var r=this,i="en"===this.loc.listingMode(),t=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar&&hasFormatToParts(),o=function(e,t){return r.loc.extract(n,e,t)},a=function(e){return n.isOffsetFixed&&0===n.offset&&e.allowZ?"Z":n.isValid?n.zone.formatOffset(n.ts,e.format):""},s=function(){return i?meridiemForDateTime(n):o({hour:"numeric",hour12:!0},"dayperiod")},l=function(e,t){return i?monthForDateTime(n,e):o(t?{month:e}:{month:e,day:"numeric"},"month")},c=function(e,t){return i?weekdayForDateTime(n,e):o(t?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},u=function(e){var t=p.macroTokenToFormatOpts(e);return t?r.formatWithSystemDefault(n,t):e},d=function(e){return i?eraForDateTime(n,e):o({era:e},"era")};return stringifyTokens(p.parseFormat(e),function(e){switch(e){case"S":return r.num(n.millisecond);case"u":case"SSS":return r.num(n.millisecond,3);case"s":return r.num(n.second);case"ss":return r.num(n.second,2);case"m":return r.num(n.minute);case"mm":return r.num(n.minute,2);case"h":return r.num(n.hour%12==0?12:n.hour%12);case"hh":return r.num(n.hour%12==0?12:n.hour%12,2);case"H":return r.num(n.hour);case"HH":return r.num(n.hour,2);case"Z":return a({format:"narrow",allowZ:r.opts.allowZ});case"ZZ":return a({format:"short",allowZ:r.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:r.opts.allowZ});case"ZZZZ":return n.zone.offsetName(n.ts,{format:"short",locale:r.loc.locale});case"ZZZZZ":return n.zone.offsetName(n.ts,{format:"long",locale:r.loc.locale});case"z":return n.zoneName;case"a":return s();case"d":return t?o({day:"numeric"},"day"):r.num(n.day);case"dd":return t?o({day:"2-digit"},"day"):r.num(n.day,2);case"c":return r.num(n.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return r.num(n.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return t?o({month:"numeric",day:"numeric"},"month"):r.num(n.month);case"LL":return t?o({month:"2-digit",day:"numeric"},"month"):r.num(n.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return t?o({month:"numeric"},"month"):r.num(n.month);case"MM":return t?o({month:"2-digit"},"month"):r.num(n.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return t?o({year:"numeric"},"year"):r.num(n.year);case"yy":return t?o({year:"2-digit"},"year"):r.num(n.year.toString().slice(-2),2);case"yyyy":return t?o({year:"numeric"},"year"):r.num(n.year,4);case"yyyyyy":return t?o({year:"numeric"},"year"):r.num(n.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return r.num(n.weekYear.toString().slice(-2),2);case"kkkk":return r.num(n.weekYear,4);case"W":return r.num(n.weekNumber);case"WW":return r.num(n.weekNumber,2);case"o":return r.num(n.ordinal);case"ooo":return r.num(n.ordinal,3);case"q":return r.num(n.quarter);case"qq":return r.num(n.quarter,2);case"X":return r.num(Math.floor(n.ts/1e3));case"x":return r.num(n.ts);default:return u(e)}})},e.formatDurationFromString=function(e,t){var n,r=this,i=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},t=p.parseFormat(t),o=t.reduce(function(e,t){var n=t.literal,t=t.val;return n?e:e.concat(t)},[]),e=e.shiftTo.apply(e,o.map(i).filter(function(e){return e}));return stringifyTokens(t,(n=e,function(e){var t=i(e);return t?r.num(n.get(t),e.length):e}))},p}(),Invalid=function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),Zone=function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new ZoneIsAbstractError},t.formatOffset=function(e,t){throw new ZoneIsAbstractError},t.offset=function(e){throw new ZoneIsAbstractError},t.equals=function(e){throw new ZoneIsAbstractError},_createClass(e,[{key:"type",get:function(){throw new ZoneIsAbstractError}},{key:"name",get:function(){throw new ZoneIsAbstractError}},{key:"universal",get:function(){throw new ZoneIsAbstractError}},{key:"isValid",get:function(){throw new ZoneIsAbstractError}}]),e}(),singleton=null,LocalZone=function(e){function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var n=t.prototype;return n.offsetName=function(e,t){return parseZoneInfo(e,t.format,t.locale)},n.formatOffset=function(e,t){return formatOffset(this.offset(e),t)},n.offset=function(e){return-new Date(e).getTimezoneOffset()},n.equals=function(e){return"local"===e.type},_createClass(t,[{key:"type",get:function(){return"local"}},{key:"name",get:function(){return hasIntl()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return singleton=null===singleton?new t:singleton}}]),t}(Zone),matchingRegex=RegExp("^"+ianaRegex.source+"$"),dtfCache={};function makeDTF(e){return dtfCache[e]||(dtfCache[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),dtfCache[e]}var typeToPos={year:0,month:1,day:2,hour:3,minute:4,second:5};function hackyOffset(e,t){var e=e.format(t).replace(/\u200E/g,""),t=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(e),e=t[1],n=t[2];return[t[3],e,n,t[4],t[5],t[6]]}function partsOffset(e,t){for(var n=e.formatToParts(t),r=[],i=0;i<n.length;i++){var o=n[i],a=o.type,o=o.value,a=typeToPos[a];isUndefined(a)||(r[a]=parseInt(o,10))}return r}var ianaZoneCache={},IANAZone=function(n){function r(e){var t=n.call(this)||this;return t.zoneName=e,t.valid=r.isValidZone(e),t}_inheritsLoose(r,n),r.create=function(e){return ianaZoneCache[e]||(ianaZoneCache[e]=new r(e)),ianaZoneCache[e]},r.resetCache=function(){ianaZoneCache={},dtfCache={}},r.isValidSpecifier=function(e){return!(!e||!e.match(matchingRegex))},r.isValidZone=function(e){try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}},r.parseGMTOffset=function(e){if(e){e=e.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);if(e)return-60*parseInt(e[1])}return null};var e=r.prototype;return e.offsetName=function(e,t){return parseZoneInfo(e,t.format,t.locale,this.name)},e.formatOffset=function(e,t){return formatOffset(this.offset(e),t)},e.offset=function(e){var t,n,r,e=new Date(e);return isNaN(e)?NaN:(r=(n=+e)%1e3,(objToLocalTS({year:(t=((t=makeDTF(this.name)).formatToParts?partsOffset:hackyOffset)(t,e))[0],month:t[1],day:t[2],hour:24===(e=t[3])?0:e,minute:t[4],second:t[5],millisecond:0})-(n-=0<=r?r:1e3+r))/6e4)},e.equals=function(e){return"iana"===e.type&&e.name===this.name},_createClass(r,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),r}(Zone),singleton$1=null,FixedOffsetZone=function(n){function t(e){var t=n.call(this)||this;return t.fixed=e,t}_inheritsLoose(t,n),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){e=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new t(signedOffset(e[1],e[2]))}return null},_createClass(t,null,[{key:"utcInstance",get:function(){return singleton$1=null===singleton$1?new t(0):singleton$1}}]);var e=t.prototype;return e.offsetName=function(){return this.name},e.formatOffset=function(e,t){return formatOffset(this.fixed,t)},e.offset=function(){return this.fixed},e.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},_createClass(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+formatOffset(this.fixed,"narrow")}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),t}(Zone),InvalidZone=function(n){function e(e){var t=n.call(this)||this;return t.zoneName=e,t}_inheritsLoose(e,n);var t=e.prototype;return t.offsetName=function(){return null},t.formatOffset=function(){return""},t.offset=function(){return NaN},t.equals=function(){return!1},_createClass(e,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),e}(Zone);function normalizeZone(e,t){var n;return isUndefined(e)||null===e?t:e instanceof Zone?e:isString(e)?"local"===(n=e.toLowerCase())?t:"utc"===n||"gmt"===n?FixedOffsetZone.utcInstance:null!=(t=IANAZone.parseGMTOffset(e))?FixedOffsetZone.instance(t):IANAZone.isValidSpecifier(n)?IANAZone.create(e):FixedOffsetZone.parseSpecifier(n)||new InvalidZone(e):isNumber(e)?FixedOffsetZone.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new InvalidZone(e)}var now=function(){return Date.now()},defaultZone=null,defaultLocale$1=null,defaultNumberingSystem=null,defaultOutputCalendar=null,throwOnInvalid=!1,Settings=function(){function e(){}return e.resetCaches=function(){Locale.resetCache(),IANAZone.resetCache()},_createClass(e,null,[{key:"now",get:function(){return now},set:function(e){now=e}},{key:"defaultZoneName",get:function(){return e.defaultZone.name},set:function(e){defaultZone=e?normalizeZone(e):null}},{key:"defaultZone",get:function(){return defaultZone||LocalZone.instance}},{key:"defaultLocale",get:function(){return defaultLocale$1},set:function(e){defaultLocale$1=e}},{key:"defaultNumberingSystem",get:function(){return defaultNumberingSystem},set:function(e){defaultNumberingSystem=e}},{key:"defaultOutputCalendar",get:function(){return defaultOutputCalendar},set:function(e){defaultOutputCalendar=e}},{key:"throwOnInvalid",get:function(){return throwOnInvalid},set:function(e){throwOnInvalid=e}}]),e}(),intlDTCache={};function getCachedDTF(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=intlDTCache[n];return r||(r=new Intl.DateTimeFormat(e,t),intlDTCache[n]=r),r}var intlNumCache={};function getCachedINF(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=intlNumCache[n];return r||(r=new Intl.NumberFormat(e,t),intlNumCache[n]=r),r}var intlRelCache={};function getCachedRTF(e,t){var n=t=void 0===t?{}:t,n=(n.base,_objectWithoutPropertiesLoose(n,["base"])),n=JSON.stringify([e,n]),r=intlRelCache[n];return r||(r=new Intl.RelativeTimeFormat(e,t),intlRelCache[n]=r),r}var sysLocaleCache=null;function systemLocale(){var e;return sysLocaleCache=sysLocaleCache||(hasIntl()&&(e=(new Intl.DateTimeFormat).resolvedOptions().locale)&&"und"!==e?e:"en-US")}function parseLocaleString(e){var t=e.indexOf("-u-");if(-1===t)return[e];var n,t=e.substring(0,t);try{n=getCachedDTF(e).resolvedOptions()}catch(e){n=getCachedDTF(t).resolvedOptions()}e=n;return[t,e.numberingSystem,e.calendar]}function intlConfigString(e,t,n){return hasIntl()?((n||t)&&(e+="-u",n&&(e+="-ca-"+n),t)&&(e+="-nu-"+t),e):[]}function mapMonths(e){for(var t=[],n=1;n<=12;n++){var r=DateTime.utc(2016,n,1);t.push(e(r))}return t}function mapWeekdays(e){for(var t=[],n=1;n<=7;n++){var r=DateTime.utc(2016,11,13+n);t.push(e(r))}return t}function listStuff(e,t,n,r,i){e=e.listingMode(n);return"error"===e?null:("en"===e?r:i)(t)}function supportsFastNumbers(e){return(!e.numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||hasIntl()&&"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)}var PolyNumberFormatter=function(){function e(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1,!t&&hasIntl()&&(t={useGrouping:!1},0<n.padTo&&(t.minimumIntegerDigits=n.padTo),this.inf=getCachedINF(e,t))}return e.prototype.format=function(e){var t;return this.inf?(t=this.floor?Math.floor(e):e,this.inf.format(t)):padStart(this.floor?Math.floor(e):roundTo(e,3),this.padTo)},e}(),PolyDateFormatter=function(){function e(e,t,n){var r,i,o;this.opts=n,this.hasIntl=hasIntl(),e.zone.universal&&this.hasIntl?(i=e.offset/60*-1,o=IANAZone.isValidZone(i=0<=i?"Etc/GMT+"+i:"Etc/GMT"+i),0!==e.offset&&o?(r=i,this.dt=e):(r="UTC",n.timeZoneName?this.dt=e:this.dt=0===e.offset?e:DateTime.fromMillis(e.ts+60*e.offset*1e3))):"local"===e.zone.type?this.dt=e:r=(this.dt=e).zone.name,this.hasIntl&&(o=Object.assign({},this.opts),r&&(o.timeZone=r),this.dtf=getCachedDTF(t,o))}var t=e.prototype;return t.format=function(){var e,t;return this.hasIntl?this.dtf.format(this.dt.toJSDate()):(e=formatString(this.opts),t=Locale.create("en-US"),Formatter.create(t).formatDateTimeFromString(this.dt,e))},t.formatToParts=function(){return this.hasIntl&&hasFormatToParts()?this.dtf.formatToParts(this.dt.toJSDate()):[]},t.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},e}(),PolyRelFormatter=function(){function e(e,t,n){this.opts=Object.assign({style:"long"},n),!t&&hasRelative()&&(this.rtf=getCachedRTF(e,n))}var t=e.prototype;return t.format=function(e,t){return this.rtf?this.rtf.format(e,t):formatRelativeTime(t,e,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e}(),Locale=function(){function i(e,t,n,r){var e=parseLocaleString(e),i=e[0],o=e[1],e=e[2];this.locale=i,this.numberingSystem=t||o||null,this.outputCalendar=n||e||null,this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}i.fromOpts=function(e){return i.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)},i.create=function(e,t,n,r){void 0===r&&(r=!1);e=e||Settings.defaultLocale;return new i(e||(r?"en-US":systemLocale()),t||Settings.defaultNumberingSystem,n||Settings.defaultOutputCalendar,e)},i.resetCache=function(){sysLocaleCache=null,intlDTCache={},intlNumCache={},intlRelCache={}},i.fromObject=function(e){var e=void 0===e?{}:e,t=e.locale,n=e.numberingSystem,e=e.outputCalendar;return i.create(t,n,e)};var e=i.prototype;return e.listingMode=function(e){void 0===e&&(e=!0);var t=hasIntl()&&hasFormatToParts(),n=this.isEnglish(),r=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t||n&&r||e?!t||n&&r?"en":"intl":"error"},e.clone=function(e){return e&&0!==Object.getOwnPropertyNames(e).length?i.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this},e.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!0}))},e.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!1}))},e.months=function(n,r,e){var i=this;return void 0===r&&(r=!1),listStuff(this,n,e=void 0===e?!0:e,months,function(){var t=r?{month:n,day:"numeric"}:{month:n},e=r?"format":"standalone";return i.monthsCache[e][n]||(i.monthsCache[e][n]=mapMonths(function(e){return i.extract(e,t,"month")})),i.monthsCache[e][n]})},e.weekdays=function(n,r,e){var i=this;return void 0===r&&(r=!1),listStuff(this,n,e=void 0===e?!0:e,weekdays,function(){var t=r?{weekday:n,year:"numeric",month:"long",day:"numeric"}:{weekday:n},e=r?"format":"standalone";return i.weekdaysCache[e][n]||(i.weekdaysCache[e][n]=mapWeekdays(function(e){return i.extract(e,t,"weekday")})),i.weekdaysCache[e][n]})},e.meridiems=function(e){var n=this;return listStuff(this,void 0,e=void 0===e?!0:e,function(){return meridiems},function(){var t;return n.meridiemCache||(t={hour:"numeric",hour12:!0},n.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map(function(e){return n.extract(e,t,"dayperiod")})),n.meridiemCache})},e.eras=function(e,t){var n=this;return listStuff(this,e,t=void 0===t?!0:t,eras,function(){var t={era:e};return n.eraCache[e]||(n.eraCache[e]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map(function(e){return n.extract(e,t,"era")})),n.eraCache[e]})},e.extract=function(e,t,n){e=this.dtFormatter(e,t).formatToParts().find(function(e){return e.type.toLowerCase()===n});return e?e.value:null},e.numberFormatter=function(e){return new PolyNumberFormatter(this.intl,(e=void 0===e?{}:e).forceSimple||this.fastNumbers,e)},e.dtFormatter=function(e,t){return new PolyDateFormatter(e,this.intl,t=void 0===t?{}:t)},e.relFormatter=function(e){return void 0===e&&(e={}),new PolyRelFormatter(this.intl,this.isEnglish(),e)},e.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||hasIntl()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},e.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},_createClass(i,[{key:"fastNumbers",get:function(){return null==this.fastNumbersCached&&(this.fastNumbersCached=supportsFastNumbers(this)),this.fastNumbersCached}}]),i}();function combineRegexes(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce(function(e,t){return e+t.source},"");return RegExp("^"+r+"$")}function combineExtractors(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(o){return t.reduce(function(e,t){var n=e[0],r=e[1],e=e[2],t=t(o,e),e=t[0],i=t[1],t=t[2];return[Object.assign(n,e),r||i,t]},[{},null,1]).slice(0,2)}}function parse(e){if(null!=e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i],s=a[0],a=a[1],s=s.exec(e);if(s)return a(s)}}return[null,null]}function simpleParse(){for(var e=arguments.length,i=new Array(e),t=0;t<e;t++)i[t]=arguments[t];return function(e,t){for(var n={},r=0;r<i.length;r++)n[i[r]]=parseInteger(e[t+r]);return[n,null,t+r]}}var offsetRegex=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,isoTimeBaseRegex=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex=RegExp(""+isoTimeBaseRegex.source+offsetRegex.source+"?"),isoTimeExtensionRegex=RegExp("(?:T"+isoTimeRegex.source+")?"),isoYmdRegex=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex=/(\d{4})-?(\d{3})/,extractISOWeekData=simpleParse("weekYear","weekNumber","weekDay"),extractISOOrdinalData=simpleParse("year","ordinal"),sqlYmdRegex=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex=RegExp(isoTimeBaseRegex.source+" ?(?:"+offsetRegex.source+"|("+ianaRegex.source+"))?"),sqlTimeExtensionRegex=RegExp("(?: "+sqlTimeRegex.source+")?");function int(e,t,n){e=e[t];return isUndefined(e)?n:parseInteger(e)}function extractISOYmd(e,t){return[{year:int(e,t),month:int(e,t+1,1),day:int(e,t+2,1)},null,t+3]}function extractISOTime(e,t){return[{hours:int(e,t,0),minutes:int(e,t+1,0),seconds:int(e,t+2,0),milliseconds:parseMillis(e[t+3])},null,t+4]}function extractISOOffset(e,t){var n=!e[t]&&!e[t+1],e=signedOffset(e[t+1],e[t+2]);return[{},n?null:FixedOffsetZone.instance(e),t+3]}function extractIANAZone(e,t){return[{},e[t]?IANAZone.create(e[t]):null,t+1]}var isoTimeOnly=RegExp("^T?"+isoTimeBaseRegex.source+"$"),isoDuration=/^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function extractISODuration(e){function t(e,t){return void 0===t&&(t=!1),void 0!==e&&(t||e&&u)?-e:e}var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],e=e[8],u="-"===n[0],n=c&&"-"===c[0];return[{years:t(parseInteger(r)),months:t(parseInteger(i)),weeks:t(parseInteger(o)),days:t(parseInteger(a)),hours:t(parseInteger(s)),minutes:t(parseInteger(l)),seconds:t(parseInteger(c),"-0"===c),milliseconds:t(parseMillis(e),n)}]}var obsOffsets={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function fromStrings(e,t,n,r,i,o,a){t={year:2===t.length?untruncateYear(parseInteger(t)):parseInteger(t),month:monthsShort.indexOf(n)+1,day:parseInteger(r),hour:parseInteger(i),minute:parseInteger(o)};return a&&(t.second=parseInteger(a)),e&&(t.weekday=3<e.length?weekdaysLong.indexOf(e)+1:weekdaysShort.indexOf(e)+1),t}var rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(e){var t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6],s=e[7],l=e[8],c=e[9],u=e[10],e=e[11],t=fromStrings(t,i,r,n,o,a,s),i=l?obsOffsets[l]:c?0:signedOffset(u,e);return[t,new FixedOffsetZone(i)]}function preprocessRFC2822(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var rfc1123=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,rfc850=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ascii=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(e){var t=e[1],n=e[2],r=e[3];return[fromStrings(t,e[4],r,n,e[5],e[6],e[7]),FixedOffsetZone.utcInstance]}function extractASCII(e){var t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6];return[fromStrings(t,e[7],n,r,i,o,a),FixedOffsetZone.utcInstance]}var isoYmdWithTimeExtensionRegex=combineRegexes(isoYmdRegex,isoTimeExtensionRegex),isoWeekWithTimeExtensionRegex=combineRegexes(isoWeekRegex,isoTimeExtensionRegex),isoOrdinalWithTimeExtensionRegex=combineRegexes(isoOrdinalRegex,isoTimeExtensionRegex),isoTimeCombinedRegex=combineRegexes(isoTimeRegex),extractISOYmdTimeAndOffset=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset),extractISOWeekTimeAndOffset=combineExtractors(extractISOWeekData,extractISOTime,extractISOOffset),extractISOOrdinalDateAndTime=combineExtractors(extractISOOrdinalData,extractISOTime,extractISOOffset),extractISOTimeAndOffset=combineExtractors(extractISOTime,extractISOOffset);function parseISODate(e){return parse(e,[isoYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[isoWeekWithTimeExtensionRegex,extractISOWeekTimeAndOffset],[isoOrdinalWithTimeExtensionRegex,extractISOOrdinalDateAndTime],[isoTimeCombinedRegex,extractISOTimeAndOffset])}function parseRFC2822Date(e){return parse(preprocessRFC2822(e),[rfc2822,extractRFC2822])}function parseHTTPDate(e){return parse(e,[rfc1123,extractRFC1123Or850],[rfc850,extractRFC1123Or850],[ascii,extractASCII])}function parseISODuration(e){return parse(e,[isoDuration,extractISODuration])}var extractISOTimeOnly=combineExtractors(extractISOTime);function parseISOTimeOnly(e){return parse(e,[isoTimeOnly,extractISOTimeOnly])}var sqlYmdWithTimeExtensionRegex=combineRegexes(sqlYmdRegex,sqlTimeExtensionRegex),sqlTimeCombinedRegex=combineRegexes(sqlTimeRegex),extractISOYmdTimeOffsetAndIANAZone=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone),extractISOTimeOffsetAndIANAZone=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(e){return parse(e,[sqlYmdWithTimeExtensionRegex,extractISOYmdTimeOffsetAndIANAZone],[sqlTimeCombinedRegex,extractISOTimeOffsetAndIANAZone])}var INVALID="Invalid Duration",lowOrderMatrix={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},casualMatrix=Object.assign({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},lowOrderMatrix),daysInYearAccurate=365.2425,daysInMonthAccurate=30.436875,accurateMatrix=Object.assign({years:{quarters:4,months:12,weeks:daysInYearAccurate/7,days:daysInYearAccurate,hours:24*daysInYearAccurate,minutes:24*daysInYearAccurate*60,seconds:24*daysInYearAccurate*60*60,milliseconds:24*daysInYearAccurate*60*60*1e3},quarters:{months:3,weeks:daysInYearAccurate/28,days:daysInYearAccurate/4,hours:24*daysInYearAccurate/4,minutes:24*daysInYearAccurate*60/4,seconds:24*daysInYearAccurate*60*60/4,milliseconds:24*daysInYearAccurate*60*60*1e3/4},months:{weeks:daysInMonthAccurate/7,days:daysInMonthAccurate,hours:24*daysInMonthAccurate,minutes:24*daysInMonthAccurate*60,seconds:24*daysInMonthAccurate*60*60,milliseconds:24*daysInMonthAccurate*60*60*1e3}},lowOrderMatrix),orderedUnits=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],reverseUnits=orderedUnits.slice(0).reverse();function clone(e,t,n){n={values:(n=void 0===n?!1:n)?t.values:Object.assign({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new Duration(n)}function antiTrunc(e){return e<0?Math.floor(e):Math.ceil(e)}function convert(e,t,n,r,i){var e=e[i][n],o=t[n]/e,o=!(Math.sign(o)===Math.sign(r[i]))&&0!==r[i]&&Math.abs(o)<=1?antiTrunc(o):Math.trunc(o);r[i]+=o,t[n]-=o*e}function normalizeValues(n,r){reverseUnits.reduce(function(e,t){return isUndefined(r[t])?e:(e&&convert(n,r,e,r,t),t)},null)}var Duration=function(){function h(e){var t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||Locale.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?accurateMatrix:casualMatrix,this.isLuxonDuration=!0}h.fromMillis=function(e,t){return h.fromObject(Object.assign({milliseconds:e},t))},h.fromObject=function(e){if(null==e||"object"!=typeof e)throw new InvalidArgumentError("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new h({values:normalizeObject(e,h.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:Locale.fromObject(e),conversionAccuracy:e.conversionAccuracy})},h.fromISO=function(e,t){var n=parseISODuration(e)[0];return n?(n=Object.assign(n,t),h.fromObject(n)):h.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},h.fromISOTime=function(e,t){var n=parseISOTimeOnly(e)[0];return n?(n=Object.assign(n,t),h.fromObject(n)):h.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},h.invalid=function(e,t){if(void 0===t&&(t=null),!e)throw new InvalidArgumentError("need to specify a reason the Duration is invalid");e=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid)throw new InvalidDurationError(e);return new h({invalid:e})},h.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(t)return t;throw new InvalidUnitError(e)},h.isDuration=function(e){return e&&e.isLuxonDuration||!1};var e=h.prototype;return e.toFormat=function(e,t){void 0===t&&(t={});t=Object.assign({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?Formatter.create(this.loc,t).formatDurationFromString(this,e):INVALID},e.toObject=function(e){var t;return void 0===e&&(e={}),this.isValid?(t=Object.assign({},this.values),e.includeConfig&&(t.conversionAccuracy=this.conversionAccuracy,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t):{}},e.toISO=function(){var e;return this.isValid?(e="P",0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e):null},e.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var t=this.toMillis();if(t<0||864e5<=t)return null;e=Object.assign({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e);var t=this.shiftTo("hours","minutes","seconds","milliseconds"),n="basic"===e.format?"hhmm":"hh:mm",t=(e.suppressSeconds&&0===t.seconds&&0===t.milliseconds||(n+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===t.milliseconds)||(n+=".SSS"),t.toFormat(n));return t=e.includePrefix?"T"+t:t},e.toJSON=function(){return this.toISO()},e.toString=function(){return this.toISO()},e.toMillis=function(){return this.as("milliseconds")},e.valueOf=function(){return this.toMillis()},e.plus=function(e){if(!this.isValid)return this;for(var t=friendlyDuration(e),n={},r=_createForOfIteratorHelperLoose(orderedUnits);!(i=r()).done;){var i=i.value;(hasOwnProperty$1(t.values,i)||hasOwnProperty$1(this.values,i))&&(n[i]=t.get(i)+this.get(i))}return clone(this,{values:n},!0)},e.minus=function(e){return this.isValid?(e=friendlyDuration(e),this.plus(e.negate())):this},e.mapUnits=function(e){if(!this.isValid)return this;for(var t={},n=0,r=Object.keys(this.values);n<r.length;n++){var i=r[n];t[i]=asNumber(e(this.values[i],i))}return clone(this,{values:t},!0)},e.get=function(e){return this[h.normalizeUnit(e)]},e.set=function(e){return this.isValid?clone(this,{values:Object.assign(this.values,normalizeObject(e,h.normalizeUnit,[]))}):this},e.reconfigure=function(e){var e=void 0===e?{}:e,t=e.locale,n=e.numberingSystem,e=e.conversionAccuracy,t={loc:this.loc.clone({locale:t,numberingSystem:n})};return e&&(t.conversionAccuracy=e),clone(this,t)},e.as=function(e){return this.isValid?this.shiftTo(e).get(e):NaN},e.normalize=function(){var e;return this.isValid?(e=this.toObject(),normalizeValues(this.matrix,e),clone(this,{values:e},!0)):this},e.shiftTo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!this.isValid)return this;if(0===t.length)return this;for(var r,t=t.map(function(e){return h.normalizeUnit(e)}),i={},o={},a=this.toObject(),s=_createForOfIteratorHelperLoose(orderedUnits);!(f=s()).done;){var l=f.value;if(0<=t.indexOf(l)){var c,u=l,d=0;for(c in o)d+=this.matrix[c][l]*o[c],o[c]=0;isNumber(a[l])&&(d+=a[l]);var p,f=Math.trunc(d);for(p in o[l]=d-(i[l]=f),a)orderedUnits.indexOf(p)>orderedUnits.indexOf(l)&&convert(this.matrix,a,p,i,l)}else isNumber(a[l])&&(o[l]=a[l])}for(r in o)0!==o[r]&&(i[u]+=r===u?o[r]:o[r]/this.matrix[u][r]);return clone(this,{values:i},!0).normalize()},e.negate=function(){if(!this.isValid)return this;for(var e={},t=0,n=Object.keys(this.values);t<n.length;t++){var r=n[t];e[r]=-this.values[r]}return clone(this,{values:e},!0)},e.equals=function(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(var t,n=_createForOfIteratorHelperLoose(orderedUnits);!(r=n()).done;){var r=r.value;if(t=this.values[r],r=e.values[r],!(void 0===t||0===t?void 0===r||0===r:t===r))return!1}return!0},_createClass(h,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),h}();function friendlyDuration(e){if(isNumber(e))return Duration.fromMillis(e);if(Duration.isDuration(e))return e;if("object"==typeof e)return Duration.fromObject(e);throw new InvalidArgumentError("Unknown duration argument "+e+" of type "+typeof e)}var INVALID$1="Invalid Interval";function validateStartEnd(e,t){return e&&e.isValid?t&&t.isValid?t<e?Interval.invalid("end before start","The end of an interval must be after its start, but you had start="+e.toISO()+" and end="+t.toISO()):null:Interval.invalid("missing or invalid end"):Interval.invalid("missing or invalid start")}var Interval=function(){function c(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}c.invalid=function(e,t){if(void 0===t&&(t=null),!e)throw new InvalidArgumentError("need to specify a reason the Interval is invalid");e=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid)throw new InvalidIntervalError(e);return new c({invalid:e})},c.fromDateTimes=function(e,t){var e=friendlyDateTime(e),t=friendlyDateTime(t),n=validateStartEnd(e,t);return null==n?new c({start:e,end:t}):n},c.after=function(e,t){t=friendlyDuration(t),e=friendlyDateTime(e);return c.fromDateTimes(e,e.plus(t))},c.before=function(e,t){t=friendlyDuration(t),e=friendlyDateTime(e);return c.fromDateTimes(e.minus(t),e)},c.fromISO=function(e,t){var n,r,i,o=(e||"").split("/",2),a=o[0],s=o[1];if(a&&s){try{l=(n=DateTime.fromISO(a,t)).isValid}catch(s){l=!1}try{i=(r=DateTime.fromISO(s,t)).isValid}catch(s){i=!1}if(l&&i)return c.fromDateTimes(n,r);if(l){o=Duration.fromISO(s,t);if(o.isValid)return c.after(n,o)}else if(i){var l=Duration.fromISO(a,t);if(l.isValid)return c.before(r,l)}}return c.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},c.isInterval=function(e){return e&&e.isLuxonInterval||!1};var e=c.prototype;return e.length=function(e){return void 0===e&&(e="milliseconds"),this.isValid?this.toDuration.apply(this,[e]).get(e):NaN},e.count=function(e){var t,n;return void 0===e&&(e="milliseconds"),this.isValid?(t=this.start.startOf(e),n=this.end.startOf(e),Math.floor(n.diff(t,e).get(e))+1):NaN},e.hasSame=function(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))},e.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},e.isAfter=function(e){return!!this.isValid&&this.s>e},e.isBefore=function(e){return!!this.isValid&&this.e<=e},e.contains=function(e){return!!this.isValid&&this.s<=e&&this.e>e},e.set=function(e){var e=void 0===e?{}:e,t=e.start,e=e.end;return this.isValid?c.fromDateTimes(t||this.s,e||this.e):this},e.splitAt=function(){var t=this;if(!this.isValid)return[];for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var i=n.map(friendlyDateTime).filter(function(e){return t.contains(e)}).sort(),o=[],a=this.s,s=0;a<this.e;){var l=i[s]||this.e,l=+l>+this.e?this.e:l;o.push(c.fromDateTimes(a,l)),a=l,s+=1}return o},e.splitBy=function(e){var t=friendlyDuration(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];for(var n=this.s,r=1,i=[];n<this.e;){var o=this.start.plus(t.mapUnits(function(e){return e*r})),o=+o>+this.e?this.e:o;i.push(c.fromDateTimes(n,o)),n=o,r+=1}return i},e.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},e.overlaps=function(e){return this.e>e.s&&this.s<e.e},e.abutsStart=function(e){return!!this.isValid&&+this.e==+e.s},e.abutsEnd=function(e){return!!this.isValid&&+e.e==+this.s},e.engulfs=function(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e},e.equals=function(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)},e.intersection=function(e){var t;return this.isValid?(t=(this.s>e.s?this:e).s,(e=(this.e<e.e?this:e).e)<=t?null:c.fromDateTimes(t,e)):this},e.union=function(e){var t;return this.isValid?(t=(this.s<e.s?this:e).s,e=(this.e>e.e?this:e).e,c.fromDateTimes(t,e)):this},c.merge=function(e){var e=e.sort(function(e,t){return e.s-t.s}).reduce(function(e,t){var n=e[0],e=e[1];return e?e.overlaps(t)||e.abutsStart(t)?[n,e.union(t)]:[n.concat([e]),t]:[n,t]},[[],null]),t=e[0],e=e[1];return e&&t.push(e),t},c.xor=function(e){for(var t,n=null,r=0,i=[],e=e.map(function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]}),o=_createForOfIteratorHelperLoose((t=Array.prototype).concat.apply(t,e).sort(function(e,t){return e.time-t.time}));!(a=o()).done;)var a=a.value,n=1===(r+="s"===a.type?1:-1)?a.time:(n&&+n!=+a.time&&i.push(c.fromDateTimes(n,a.time)),null);return c.merge(i)},e.difference=function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return c.xor([this].concat(n)).map(function(e){return t.intersection(e)}).filter(function(e){return e&&!e.isEmpty()})},e.toString=function(){return this.isValid?"["+this.s.toISO()+" – "+this.e.toISO()+")":INVALID$1},e.toISO=function(e){return this.isValid?this.s.toISO(e)+"/"+this.e.toISO(e):INVALID$1},e.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():INVALID$1},e.toISOTime=function(e){return this.isValid?this.s.toISOTime(e)+"/"+this.e.toISOTime(e):INVALID$1},e.toFormat=function(e,t){t=(void 0===t?{}:t).separator,t=void 0===t?" – ":t;return this.isValid?""+this.s.toFormat(e)+t+this.e.toFormat(e):INVALID$1},e.toDuration=function(e,t){return this.isValid?this.e.diff(this.s,e,t):Duration.invalid(this.invalidReason)},e.mapEndpoints=function(e){return c.fromDateTimes(e(this.s),e(this.e))},_createClass(c,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),c}(),Info=function(){function e(){}return e.hasDST=function(e){void 0===e&&(e=Settings.defaultZone);var t=DateTime.now().setZone(e).set({month:12});return!e.universal&&t.offset!==t.set({month:6}).offset},e.isValidIANAZone=function(e){return IANAZone.isValidSpecifier(e)&&IANAZone.isValidZone(e)},e.normalizeZone=function(e){return normalizeZone(e,Settings.defaultZone)},e.months=function(e,t){void 0===e&&(e="long");var t=void 0===t?{}:t,n=t.locale,r=t.numberingSystem,i=t.locObj,i=void 0===i?null:i,t=t.outputCalendar;return(i||Locale.create(void 0===n?null:n,void 0===r?null:r,void 0===t?"gregory":t)).months(e)},e.monthsFormat=function(e,t){void 0===e&&(e="long");var t=void 0===t?{}:t,n=t.locale,r=t.numberingSystem,i=t.locObj,i=void 0===i?null:i,t=t.outputCalendar;return(i||Locale.create(void 0===n?null:n,void 0===r?null:r,void 0===t?"gregory":t)).months(e,!0)},e.weekdays=function(e,t){void 0===e&&(e="long");var t=void 0===t?{}:t,n=t.locale,r=t.numberingSystem,t=t.locObj;return((void 0===t?null:t)||Locale.create(void 0===n?null:n,void 0===r?null:r,null)).weekdays(e)},e.weekdaysFormat=function(e,t){void 0===e&&(e="long");var t=void 0===t?{}:t,n=t.locale,r=t.numberingSystem,t=t.locObj;return((void 0===t?null:t)||Locale.create(void 0===n?null:n,void 0===r?null:r,null)).weekdays(e,!0)},e.meridiems=function(e){e=(void 0===e?{}:e).locale;return Locale.create(void 0===e?null:e).meridiems()},e.eras=function(e,t){void 0===e&&(e="short");t=(void 0===t?{}:t).locale;return Locale.create(void 0===t?null:t,null,"gregory").eras(e)},e.features=function(){var e=!1,t=!1,n=!1,r=!1;if(hasIntl()){e=!0,t=hasFormatToParts(),r=hasRelative();try{n="America/New_York"===new Intl.DateTimeFormat("en",{timeZone:"America/New_York"}).resolvedOptions().timeZone}catch(e){n=!1}}return{intl:e,intlTokens:t,zones:n,relative:r}},e}();function dayDiff(e,t){function n(e){return e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()}t=n(t)-n(e);return Math.floor(Duration.fromMillis(t).as("days"))}function highOrderDiffs(e,t,n){for(var r={},i=0,o=[["years",function(e,t){return t.year-e.year}],["quarters",function(e,t){return t.quarter-e.quarter}],["months",function(e,t){return t.month-e.month+12*(t.year-e.year)}],["weeks",function(e,t){e=dayDiff(e,t);return(e-e%7)/7}],["days",dayDiff]];i<o.length;i++){var a,s,l,c=o[i],u=c[0],c=c[1];0<=n.indexOf(u)&&(a=u,c=c(e,t),t<(l=e.plus(((s={})[u]=c,s)))?(e=e.plus(((s={})[u]=c-1,s)),--c):e=l,r[u]=c)}return[e,r,l,a]}function _diff(e,t,n,r){var e=highOrderDiffs(e,t,n),i=e[0],o=e[1],a=e[2],e=e[3],s=t-i,n=n.filter(function(e){return 0<=["hours","minutes","seconds","milliseconds"].indexOf(e)}),t=(0===n.length&&(a=a<t?i.plus(((t={})[e]=1,t)):a)!==i&&(o[e]=(o[e]||0)+s/(a-i)),Duration.fromObject(Object.assign(o,r)));return 0<n.length?(e=Duration.fromMillis(s,r)).shiftTo.apply(e,n).plus(t):t}var numberingSystems={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},numberingSystemsUTF16={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},hanidecChars=numberingSystems.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(e){var t=parseInt(e,10);if(isNaN(t)){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);if(-1!==e[n].search(numberingSystems.hanidec))t+=hanidecChars.indexOf(e[n]);else for(var i in numberingSystemsUTF16){var i=numberingSystemsUTF16[i],o=i[0],i=i[1];o<=r&&r<=i&&(t+=r-o)}}return parseInt(t,10)}return t}function digitRegex(e,t){e=e.numberingSystem;return void 0===t&&(t=""),new RegExp(""+numberingSystems[e||"latn"]+t)}var MISSING_FTP="missing Intl.DateTimeFormat.formatToParts support";function intUnit(e,t){return void 0===t&&(t=function(e){return e}),{regex:e,deser:function(e){e=e[0];return t(parseDigits(e))}}}var NBSP=String.fromCharCode(160),spaceOrNBSP="( |"+NBSP+")",spaceOrNBSPRegExp=new RegExp(spaceOrNBSP,"g");function fixListRegex(e){return e.replace(/\./g,"\\.?").replace(spaceOrNBSPRegExp,spaceOrNBSP)}function stripInsensitivities(e){return e.replace(/\./g,"").replace(spaceOrNBSPRegExp," ").toLowerCase()}function oneOf(n,r){return null===n?null:{regex:RegExp(n.map(fixListRegex).join("|")),deser:function(e){var t=e[0];return n.findIndex(function(e){return stripInsensitivities(t)===stripInsensitivities(e)})+r}}}function offset(e,t){return{regex:e,deser:function(e){return signedOffset(e[1],e[2])},groups:t}}function simple(e){return{regex:e,deser:function(e){return e[0]}}}function escapeToken(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(t,n){function r(e){return{regex:RegExp(escapeToken(e.val)),deser:function(e){return e[0]},literal:!0}}var i=digitRegex(n),o=digitRegex(n,"{2}"),a=digitRegex(n,"{3}"),s=digitRegex(n,"{4}"),l=digitRegex(n,"{6}"),c=digitRegex(n,"{1,2}"),u=digitRegex(n,"{1,3}"),d=digitRegex(n,"{1,6}"),p=digitRegex(n,"{1,9}"),f=digitRegex(n,"{2,4}"),h=digitRegex(n,"{4,6}"),e=function(e){if(t.literal)return r(e);switch(e.val){case"G":return oneOf(n.eras("short",!1),0);case"GG":return oneOf(n.eras("long",!1),0);case"y":return intUnit(d);case"yy":return intUnit(f,untruncateYear);case"yyyy":return intUnit(s);case"yyyyy":return intUnit(h);case"yyyyyy":return intUnit(l);case"M":return intUnit(c);case"MM":return intUnit(o);case"MMM":return oneOf(n.months("short",!0,!1),1);case"MMMM":return oneOf(n.months("long",!0,!1),1);case"L":return intUnit(c);case"LL":return intUnit(o);case"LLL":return oneOf(n.months("short",!1,!1),1);case"LLLL":return oneOf(n.months("long",!1,!1),1);case"d":return intUnit(c);case"dd":return intUnit(o);case"o":return intUnit(u);case"ooo":return intUnit(a);case"HH":return intUnit(o);case"H":return intUnit(c);case"hh":return intUnit(o);case"h":return intUnit(c);case"mm":return intUnit(o);case"m":case"q":return intUnit(c);case"qq":return intUnit(o);case"s":return intUnit(c);case"ss":return intUnit(o);case"S":return intUnit(u);case"SSS":return intUnit(a);case"u":return simple(p);case"a":return oneOf(n.meridiems(),0);case"kkkk":return intUnit(s);case"kk":return intUnit(f,untruncateYear);case"W":return intUnit(c);case"WW":return intUnit(o);case"E":case"c":return intUnit(i);case"EEE":return oneOf(n.weekdays("short",!1,!1),1);case"EEEE":return oneOf(n.weekdays("long",!1,!1),1);case"ccc":return oneOf(n.weekdays("short",!0,!1),1);case"cccc":return oneOf(n.weekdays("long",!0,!1),1);case"Z":case"ZZ":return offset(new RegExp("([+-]"+c.source+")(?::("+o.source+"))?"),2);case"ZZZ":return offset(new RegExp("([+-]"+c.source+")("+o.source+")?"),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);default:return r(e)}}(t)||{invalidReason:MISSING_FTP};return e.token=t,e}var partTypeStyleToTokenVal={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function tokenForPart(e,t,n){var r=e.type,e=e.value;return"literal"===r?{literal:!0,val:e}:(e=n[r],(n="object"==typeof(n=partTypeStyleToTokenVal[r])?n[e]:n)?{literal:!1,val:n}:void 0)}function buildRegex(e){return["^"+e.map(function(e){return e.regex}).reduce(function(e,t){return e+"("+t.source+")"},"")+"$",e]}function match$1(e,t,n){var r=e.match(t);if(r){var i,o,a,s={},l=1;for(i in n)hasOwnProperty$1(n,i)&&(a=(o=n[i]).groups?o.groups+1:1,!o.literal&&o.token&&(s[o.token.val[0]]=o.deser(r.slice(l,l+a))),l+=a);return[r,s]}return[r,{}]}function dateTimeFromMatches(r){var e=isUndefined(r.Z)?isUndefined(r.z)?null:IANAZone.create(r.z):new FixedOffsetZone(r.Z);return isUndefined(r.q)||(r.M=3*(r.q-1)+1),isUndefined(r.h)||(r.h<12&&1===r.a?r.h+=12:12===r.h&&0===r.a&&(r.h=0)),0===r.G&&r.y&&(r.y=-r.y),isUndefined(r.u)||(r.S=parseMillis(r.u)),[Object.keys(r).reduce(function(e,t){var n=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(t);return n&&(e[n]=r[t]),e},{}),e]}var dummyDateTimeCache=null;function getDummyDateTime(){return dummyDateTimeCache=dummyDateTimeCache||DateTime.fromMillis(1555555555555)}function maybeExpandMacroToken(e,t){var n,r;return e.literal||!(n=Formatter.macroTokenToFormatOpts(e.val))||(r=Formatter.create(t,n).formatDateTimeParts(getDummyDateTime()).map(function(e){return tokenForPart(e,t,n)})).includes(void 0)?e:r}function expandMacroTokens(e,t){var n;return(n=Array.prototype).concat.apply(n,e.map(function(e){return maybeExpandMacroToken(e,t)}))}function explainFromTokens(t,e,n){var n=expandMacroTokens(Formatter.parseFormat(n),t),r=n.map(function(e){return unitForToken(e,t)}),i=r.find(function(e){return e.invalidReason});if(i)return{input:e,tokens:n,invalidReason:i.invalidReason};var i=buildRegex(r),r=i[0],i=i[1],r=RegExp(r,"i"),i=match$1(e,r,i),o=i[0],i=i[1],a=i?dateTimeFromMatches(i):[null,null],s=a[0],a=a[1];if(hasOwnProperty$1(i,"a")&&hasOwnProperty$1(i,"H"))throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:n,regex:r,rawMatches:o,matches:i,result:s,zone:a}}function parseFromTokens(e,t,n){e=explainFromTokens(e,t,n);return[e.result,e.zone,e.invalidReason]}var nonLeapLadder=[0,31,59,90,120,151,181,212,243,273,304,334],leapLadder=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(e,t){return new Invalid("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function dayOfWeek(e,t,n){e=new Date(Date.UTC(e,t-1,n)).getUTCDay();return 0===e?7:e}function computeOrdinal(e,t,n){return n+(isLeapYear(e)?leapLadder:nonLeapLadder)[t-1]}function uncomputeOrdinal(e,t){var e=isLeapYear(e)?leapLadder:nonLeapLadder,n=e.findIndex(function(e){return e<t});return{month:n+1,day:t-e[n]}}function gregorianToWeek(e){var t,n=e.year,r=e.month,i=e.day,o=computeOrdinal(n,r,i),r=dayOfWeek(n,r,i),i=Math.floor((o-r+10)/7);return i<1?i=weeksInWeekYear(t=n-1):i>weeksInWeekYear(n)?(t=n+1,i=1):t=n,Object.assign({weekYear:t,weekNumber:i,weekday:r},timeObject(e))}function weekToGregorian(e){var t,n=e.weekYear,r=e.weekNumber,i=e.weekday,o=dayOfWeek(n,1,4),a=daysInYear(n),r=7*r+i-o-3,i=(r<1?r+=daysInYear(t=n-1):a<r?(t=n+1,r-=daysInYear(n)):t=n,uncomputeOrdinal(t,r)),o=i.month,a=i.day;return Object.assign({year:t,month:o,day:a},timeObject(e))}function gregorianToOrdinal(e){var t=e.year,n=computeOrdinal(t,e.month,e.day);return Object.assign({year:t,ordinal:n},timeObject(e))}function ordinalToGregorian(e){var t=e.year,n=uncomputeOrdinal(t,e.ordinal),r=n.month,n=n.day;return Object.assign({year:t,month:r,day:n},timeObject(e))}function hasInvalidWeekData(e){var t=isInteger(e.weekYear),n=integerBetween(e.weekNumber,1,weeksInWeekYear(e.weekYear)),r=integerBetween(e.weekday,1,7);return t?n?!r&&unitOutOfRange("weekday",e.weekday):unitOutOfRange("week",e.week):unitOutOfRange("weekYear",e.weekYear)}function hasInvalidOrdinalData(e){var t=isInteger(e.year),n=integerBetween(e.ordinal,1,daysInYear(e.year));return t?!n&&unitOutOfRange("ordinal",e.ordinal):unitOutOfRange("year",e.year)}function hasInvalidGregorianData(e){var t=isInteger(e.year),n=integerBetween(e.month,1,12),r=integerBetween(e.day,1,daysInMonth(e.year,e.month));return t?n?!r&&unitOutOfRange("day",e.day):unitOutOfRange("month",e.month):unitOutOfRange("year",e.year)}function hasInvalidTimeData(e){var t=e.hour,n=e.minute,r=e.second,e=e.millisecond,i=integerBetween(t,0,23)||24===t&&0===n&&0===r&&0===e,o=integerBetween(n,0,59),a=integerBetween(r,0,59),s=integerBetween(e,0,999);return i?o?a?!s&&unitOutOfRange("millisecond",e):unitOutOfRange("second",r):unitOutOfRange("minute",n):unitOutOfRange("hour",t)}var INVALID$2="Invalid DateTime",MAX_DATE=864e13;function unsupportedZone(e){return new Invalid("unsupported zone",'the zone "'+e.name+'" is not supported')}function possiblyCachedWeekData(e){return null===e.weekData&&(e.weekData=gregorianToWeek(e.c)),e.weekData}function clone$1(e,t){e={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new DateTime(Object.assign({},e,t,{old:e}))}function fixOffset(e,t,n){var r=e-60*t*1e3,i=n.offset(r);return t===i?[r,t]:i===(n=n.offset(r-=60*(i-t)*1e3))?[r,i]:[e-60*Math.min(i,n)*1e3,Math.max(i,n)]}function tsToObj(e,t){e+=60*t*1e3;t=new Date(e);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function objToTS(e,t,n){return fixOffset(objToLocalTS(e),t,n)}function adjustTime(e,t){var n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),r=Object.assign({},e.c,{year:r,month:i,day:Math.min(e.c.day,daysInMonth(r,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),i=Duration.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),t=fixOffset(objToLocalTS(r),n,e.zone),r=t[0],n=t[1];return 0!==i&&(n=e.zone.offset(r+=i)),{ts:r,o:n}}function parseDataToDateTime(e,t,n,r,i){var o=n.setZone,a=n.zone;return e&&0!==Object.keys(e).length?(e=DateTime.fromObject(Object.assign(e,n,{zone:t||a,setZone:void 0})),o?e:e.setZone(a)):DateTime.invalid(new Invalid("unparsable",'the input "'+i+"\" can't be parsed as "+r))}function toTechFormat(e,t,n){return void 0===n&&(n=!0),e.isValid?Formatter.create(Locale.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function toTechTimeFormat(e,t){var n=t.suppressSeconds,r=t.suppressMilliseconds,i=t.includeOffset,o=t.includePrefix,o=void 0!==o&&o,a=t.includeZone,a=void 0!==a&&a,s=t.spaceZone,t=t.format,t=void 0===t?"extended":t,l="basic"===t?"HHmm":"HH:mm",n=(void 0!==n&&n&&0===e.second&&0===e.millisecond||(l+="basic"===t?"ss":":ss",void 0!==r&&r&&0===e.millisecond)||(l+=".SSS"),(a||i)&&(void 0!==s&&s)&&(l+=" "),a?l+="z":i&&(l+="basic"===t?"ZZZ":"ZZ"),toTechFormat(e,l));return n=o?"T"+n:n}var defaultUnitValues={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},defaultWeekUnitValues={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},defaultOrdinalUnitValues={ordinal:1,hour:0,minute:0,second:0,millisecond:0},orderedUnits$1=["year","month","day","hour","minute","second","millisecond"],orderedWeekUnits=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],orderedOrdinalUnits=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(t)return t;throw new InvalidUnitError(e)}function quickDT(e,t){for(var n=_createForOfIteratorHelperLoose(orderedUnits$1);!(r=n()).done;){var r=r.value;isUndefined(e[r])&&(e[r]=defaultUnitValues[r])}var i,o=hasInvalidGregorianData(e)||hasInvalidTimeData(e);return o?DateTime.invalid(o):(o=Settings.now(),i=(o=objToTS(e,t.offset(o),t))[0],o=o[1],new DateTime({ts:i,zone:t,o:o}))}function diffRelative(t,n,r){function e(e,t){return e=roundTo(e,o||r.calendary?0:2,!0),n.loc.clone(r).relFormatter(r).format(e,t)}function i(e){return r.calendary?n.hasSame(t,e)?0:n.startOf(e).diff(t.startOf(e),e).get(e):n.diff(t,e).get(e)}var o=!!isUndefined(r.round)||r.round;if(r.unit)return e(i(r.unit),r.unit);for(var a=_createForOfIteratorHelperLoose(r.units);!(s=a()).done;){var s=s.value,l=i(s);if(1<=Math.abs(l))return e(l,s)}return e(n<t?-0:0,r.units[r.units.length-1])}var DateTime=function(){function g(e){var t,n=e.zone||Settings.defaultZone,r=e.invalid||(Number.isNaN(e.ts)?new Invalid("invalid input"):null)||(n.isValid?null:unsupportedZone(n)),i=(this.ts=isUndefined(e.ts)?Settings.now():e.ts,null),o=null;r||(o=e.old&&e.old.ts===this.ts&&e.old.zone.equals(n)?(i=(t=[e.old.c,e.old.o])[0],t[1]):(t=n.offset(this.ts),i=tsToObj(this.ts,t),i=(r=Number.isNaN(i.year)?new Invalid("invalid input"):null)?null:i,r?null:t)),this._zone=n,this.loc=e.loc||Locale.create(),this.invalid=r,this.weekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}g.now=function(){return new g({})},g.local=function(e,t,n,r,i,o,a){return isUndefined(e)?g.now():quickDT({year:e,month:t,day:n,hour:r,minute:i,second:o,millisecond:a},Settings.defaultZone)},g.utc=function(e,t,n,r,i,o,a){return isUndefined(e)?new g({ts:Settings.now(),zone:FixedOffsetZone.utcInstance}):quickDT({year:e,month:t,day:n,hour:r,minute:i,second:o,millisecond:a},FixedOffsetZone.utcInstance)},g.fromJSDate=function(e,t){void 0===t&&(t={});var n,e=isDate(e)?e.valueOf():NaN;return Number.isNaN(e)?g.invalid("invalid input"):(n=normalizeZone(t.zone,Settings.defaultZone)).isValid?new g({ts:e,zone:n,loc:Locale.fromObject(t)}):g.invalid(unsupportedZone(n))},g.fromMillis=function(e,t){if(void 0===t&&(t={}),isNumber(e))return e<-MAX_DATE||MAX_DATE<e?g.invalid("Timestamp out of range"):new g({ts:e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)});throw new InvalidArgumentError("fromMillis requires a numerical input, but received a "+typeof e+" with value "+e)},g.fromSeconds=function(e,t){if(void 0===t&&(t={}),isNumber(e))return new g({ts:1e3*e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)});throw new InvalidArgumentError("fromSeconds requires a numerical input")},g.fromObject=function(e){var t=normalizeZone(e.zone,Settings.defaultZone);if(!t.isValid)return g.invalid(unsupportedZone(t));var n=Settings.now(),r=t.offset(n),i=normalizeObject(e,normalizeUnit,["zone","locale","outputCalendar","numberingSystem"]),o=!isUndefined(i.ordinal),a=!isUndefined(i.year),s=!isUndefined(i.month)||!isUndefined(i.day),a=a||s,l=i.weekYear||i.weekNumber,c=Locale.fromObject(e);if((a||o)&&l)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&o)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");for(var u,s=l||i.weekday&&!a,d=tsToObj(n,r),p=(s?(m=orderedWeekUnits,u=defaultWeekUnitValues,d=gregorianToWeek(d)):o?(m=orderedOrdinalUnits,u=defaultOrdinalUnitValues,d=gregorianToOrdinal(d)):(m=orderedUnits$1,u=defaultUnitValues),!1),f=_createForOfIteratorHelperLoose(m);!(h=f()).done;){var h=h.value;isUndefined(i[h])?i[h]=(p?u:d)[h]:p=!0}var m,l=(s?hasInvalidWeekData:o?hasInvalidOrdinalData:hasInvalidGregorianData)(i)||hasInvalidTimeData(i);return l?g.invalid(l):(m=new g({ts:(n=objToTS(s?weekToGregorian(i):o?ordinalToGregorian(i):i,r,t))[0],zone:t,o:n[1],loc:c}),i.weekday&&a&&e.weekday!==m.weekday?g.invalid("mismatched weekday","you can't specify both a weekday of "+i.weekday+" and a date of "+m.toISO()):m)},g.fromISO=function(e,t){void 0===t&&(t={});var n=parseISODate(e);return parseDataToDateTime(n[0],n[1],t,"ISO 8601",e)},g.fromRFC2822=function(e,t){void 0===t&&(t={});var n=parseRFC2822Date(e);return parseDataToDateTime(n[0],n[1],t,"RFC 2822",e)},g.fromHTTP=function(e,t){void 0===t&&(t={});e=parseHTTPDate(e);return parseDataToDateTime(e[0],e[1],t,"HTTP",t)},g.fromFormat=function(e,t,n){if(void 0===n&&(n={}),isUndefined(e)||isUndefined(t))throw new InvalidArgumentError("fromFormat requires an input string and a format");var r=n,i=r.locale,r=r.numberingSystem,i=parseFromTokens(Locale.fromOpts({locale:void 0===i?null:i,numberingSystem:void 0===r?null:r,defaultToEN:!0}),e,t),r=i[0],o=i[1],i=i[2];return i?g.invalid(i):parseDataToDateTime(r,o,n,"format "+t,e)},g.fromString=function(e,t,n){return g.fromFormat(e,t,n=void 0===n?{}:n)},g.fromSQL=function(e,t){void 0===t&&(t={});var n=parseSQL(e);return parseDataToDateTime(n[0],n[1],t,"SQL",e)},g.invalid=function(e,t){if(void 0===t&&(t=null),!e)throw new InvalidArgumentError("need to specify a reason the DateTime is invalid");e=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid)throw new InvalidDateTimeError(e);return new g({invalid:e})},g.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var e=g.prototype;return e.get=function(e){return this[e]},e.resolvedLocaleOpts=function(e){e=Formatter.create(this.loc.clone(e=void 0===e?{}:e),e).resolvedOptions(this);return{locale:e.locale,numberingSystem:e.numberingSystem,outputCalendar:e.calendar}},e.toUTC=function(e,t){return void 0===t&&(t={}),this.setZone(FixedOffsetZone.instance(e=void 0===e?0:e),t)},e.toLocal=function(){return this.setZone(Settings.defaultZone)},e.setZone=function(e,t){var n,t=void 0===t?{}:t,r=t.keepLocalTime,r=void 0!==r&&r,t=t.keepCalendarTime,t=void 0!==t&&t;return(e=normalizeZone(e,Settings.defaultZone)).equals(this.zone)?this:e.isValid?(n=this.ts,(r||t)&&(r=e.offset(this.ts),n=objToTS(this.toObject(),r,e)[0]),clone$1(this,{ts:n,zone:e})):g.invalid(unsupportedZone(e))},e.reconfigure=function(e){var e=void 0===e?{}:e,t=e.locale,n=e.numberingSystem,e=e.outputCalendar,t=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:e});return clone$1(this,{loc:t})},e.setLocale=function(e){return this.reconfigure({locale:e})},e.set=function(e){if(!this.isValid)return this;var t,e=normalizeObject(e,normalizeUnit,[]),n=!isUndefined(e.weekYear)||!isUndefined(e.weekNumber)||!isUndefined(e.weekday),r=!isUndefined(e.ordinal),i=!isUndefined(e.year),o=!isUndefined(e.month)||!isUndefined(e.day),a=e.weekYear||e.weekNumber;if((i||o||r)&&a)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&r)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");n?t=weekToGregorian(Object.assign(gregorianToWeek(this.c),e)):isUndefined(e.ordinal)?(t=Object.assign(this.toObject(),e),isUndefined(e.day)&&(t.day=Math.min(daysInMonth(t.year,t.month),t.day))):t=ordinalToGregorian(Object.assign(gregorianToOrdinal(this.c),e));i=objToTS(t,this.o,this.zone);return clone$1(this,{ts:i[0],o:i[1]})},e.plus=function(e){return this.isValid?clone$1(this,adjustTime(this,friendlyDuration(e))):this},e.minus=function(e){return this.isValid?clone$1(this,adjustTime(this,friendlyDuration(e).negate())):this},e.startOf=function(e){if(!this.isValid)return this;var t={},e=Duration.normalizeUnit(e);switch(e){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}return"weeks"===e&&(t.weekday=1),"quarters"===e&&(e=Math.ceil(this.month/3),t.month=3*(e-1)+1),this.set(t)},e.endOf=function(e){var t;return this.isValid?this.plus(((t={})[e]=1,t)).startOf(e).minus(1):this},e.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?Formatter.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):INVALID$2},e.toLocaleString=function(e){return void 0===e&&(e=DATE_SHORT),this.isValid?Formatter.create(this.loc.clone(e),e).formatDateTime(this):INVALID$2},e.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?Formatter.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},e.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate(e)+"T"+this.toISOTime(e):null},e.toISODate=function(e){e=(void 0===e?{}:e).format,e="basic"===(void 0===e?"extended":e)?"yyyyMMdd":"yyyy-MM-dd";return toTechFormat(this,e=9999<this.year?"+"+e:e)},e.toISOWeekDate=function(){return toTechFormat(this,"kkkk-'W'WW-c")},e.toISOTime=function(e){var e=void 0===e?{}:e,t=e.suppressMilliseconds,n=e.suppressSeconds,r=e.includeOffset,i=e.includePrefix,e=e.format;return toTechTimeFormat(this,{suppressSeconds:void 0!==n&&n,suppressMilliseconds:void 0!==t&&t,includeOffset:void 0===r||r,includePrefix:void 0!==i&&i,format:void 0===e?"extended":e})},e.toRFC2822=function(){return toTechFormat(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},e.toHTTP=function(){return toTechFormat(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},e.toSQLDate=function(){return toTechFormat(this,"yyyy-MM-dd")},e.toSQLTime=function(e){var e=void 0===e?{}:e,t=e.includeOffset,e=e.includeZone;return toTechTimeFormat(this,{includeOffset:void 0===t||t,includeZone:void 0!==e&&e,spaceZone:!0})},e.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},e.toString=function(){return this.isValid?this.toISO():INVALID$2},e.valueOf=function(){return this.toMillis()},e.toMillis=function(){return this.isValid?this.ts:NaN},e.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},e.toJSON=function(){return this.toISO()},e.toBSON=function(){return this.toJSDate()},e.toObject=function(e){var t;return void 0===e&&(e={}),this.isValid?(t=Object.assign({},this.c),e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t):{}},e.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},e.diff=function(e,t,n){var r;return void 0===t&&(t="milliseconds"),void 0===n&&(n={}),this.isValid&&e.isValid?(n=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},n),t=maybeArray(t).map(Duration.normalizeUnit),t=_diff((r=e.valueOf()>this.valueOf())?this:e,r?e:this,t,n),r?t.negate():t):Duration.invalid(this.invalid||e.invalid,"created by diffing an invalid DateTime")},e.diffNow=function(e,t){return void 0===e&&(e="milliseconds"),void 0===t&&(t={}),this.diff(g.now(),e,t)},e.until=function(e){return this.isValid?Interval.fromDateTimes(this,e):this},e.hasSame=function(e,t){var n;return!!this.isValid&&(n=e.valueOf(),(e=this.setZone(e.zone,{keepLocalTime:!0})).startOf(t)<=n)&&n<=e.endOf(t)},e.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},e.toRelative=function(e){var t,n,r,i;return this.isValid?(t=(e=void 0===e?{}:e).base||g.fromObject({zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0,r=["years","months","days","hours","minutes","seconds"],i=e.unit,Array.isArray(e.unit)&&(r=e.unit,i=void 0),diffRelative(t,this.plus(n),Object.assign(e,{numeric:"always",units:r,unit:i}))):null},e.toRelativeCalendar=function(e){return void 0===e&&(e={}),this.isValid?diffRelative(e.base||g.fromObject({zone:this.zone}),this,Object.assign(e,{numeric:"auto",units:["years","months","days"],calendary:!0})):null},g.min=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.every(g.isDateTime))return bestBy(t,function(e){return e.valueOf()},Math.min);throw new InvalidArgumentError("min requires all arguments be DateTimes")},g.max=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.every(g.isDateTime))return bestBy(t,function(e){return e.valueOf()},Math.max);throw new InvalidArgumentError("max requires all arguments be DateTimes")},g.fromFormatExplain=function(e,t,n){var n=n=void 0===n?{}:n,r=n.locale,n=n.numberingSystem;return explainFromTokens(Locale.fromOpts({locale:void 0===r?null:r,numberingSystem:void 0===n?null:n,defaultToEN:!0}),e,t)},g.fromStringExplain=function(e,t,n){return g.fromFormatExplain(e,t,n=void 0===n?{}:n)},_createClass(g,[{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:NaN}},{key:"weekYear",get:function(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}},{key:"ordinal",get:function(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?Info.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o:NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.universal:null}},{key:"isInDST",get:function(){return!this.isOffsetFixed&&(this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return isLeapYear(this.year)}},{key:"daysInMonth",get:function(){return daysInMonth(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?daysInYear(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return DATE_SHORT}},{key:"DATE_MED",get:function(){return DATE_MED}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return DATE_MED_WITH_WEEKDAY}},{key:"DATE_FULL",get:function(){return DATE_FULL}},{key:"DATE_HUGE",get:function(){return DATE_HUGE}},{key:"TIME_SIMPLE",get:function(){return TIME_SIMPLE}},{key:"TIME_WITH_SECONDS",get:function(){return TIME_WITH_SECONDS}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return TIME_WITH_SHORT_OFFSET}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return TIME_WITH_LONG_OFFSET}},{key:"TIME_24_SIMPLE",get:function(){return TIME_24_SIMPLE}},{key:"TIME_24_WITH_SECONDS",get:function(){return TIME_24_WITH_SECONDS}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return TIME_24_WITH_SHORT_OFFSET}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return TIME_24_WITH_LONG_OFFSET}},{key:"DATETIME_SHORT",get:function(){return DATETIME_SHORT}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return DATETIME_SHORT_WITH_SECONDS}},{key:"DATETIME_MED",get:function(){return DATETIME_MED}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return DATETIME_MED_WITH_SECONDS}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return DATETIME_MED_WITH_WEEKDAY}},{key:"DATETIME_FULL",get:function(){return DATETIME_FULL}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return DATETIME_FULL_WITH_SECONDS}},{key:"DATETIME_HUGE",get:function(){return DATETIME_HUGE}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return DATETIME_HUGE_WITH_SECONDS}}]),g}();function friendlyDateTime(e){if(DateTime.isDateTime(e))return e;if(e&&e.valueOf&&isNumber(e.valueOf()))return DateTime.fromJSDate(e);if(e&&"object"==typeof e)return DateTime.fromObject(e);throw new InvalidArgumentError("Unknown datetime argument: "+e+", of type "+typeof e)}var VERSION="1.28.1",DateTime_1=luxon.DateTime=DateTime;luxon.Duration=Duration,luxon.FixedOffsetZone=FixedOffsetZone,luxon.IANAZone=IANAZone,luxon.Info=Info,luxon.Interval=Interval,luxon.InvalidZone=InvalidZone,luxon.LocalZone=LocalZone,luxon.Settings=Settings,luxon.VERSION=VERSION,luxon.Zone=Zone;const useStyles$f$1=makeStyles()(()=>({root:{padding:"15px 30px"},title:{display:"flex"},action:{fontWeight:600},time:{fontSize:"12px",paddingLeft:"15px",lineHeight:"21px"},description:{lineHeight:"150%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},divider:{margin:"0 30px",backgroundColor:"#D5DFE9",height:"0.5px"}})),ActivityCard=({longFormatTime:e=!1,data:{createdDateTime:t,event:n,description:r}})=>{var i=useStyles$f$1()["classes"];return jsxRuntime.exports.jsxs(react$1.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:i.root,"data-testid":"activity-card"},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:i.title},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:i.action},{children:n})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:i.time},{children:e?DateTime_1.fromISO(t||"").toFormat("F"):DateTime_1.fromISO(t||"").toFormat("tt")}))]})),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({placement:"top-start",title:r||""},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:i.description},{children:r}))}))})]})),jsxRuntime.exports.jsx(Divider$1,{className:i.divider})]})},useStyles$e$1=makeStyles()(e=>({root:{width:"100%",height:"100%"},header:{opacity:.9,display:"flex",justifyContent:"space-between",padding:e.spacing(4,6),position:"relative"},title:{opacity:.9,padding:e.spacing(4,6,2,6)},titleText:{textTransform:"uppercase",color:e.palette.secondary.main},scrollContent:{overflowY:"auto",height:"calc(100% - 65px)"}})),filters$2=[{value:"all",title:"All Activities"},{value:"today",title:"Activities today"}],today$1=DateTime_1.local().startOf("day"),yesterday=DateTime_1.local().plus({days:-1}).startOf("day"),ActivityPanel=({data:e,filter:t,onChangeFilter:n})=>{var r=useStyles$e$1()["classes"],i=null==e?void 0:e.filter(e=>DateTime_1.fromISO(e.createdDateTime||"").hasSame(today$1,"day")),o=null==e?void 0:e.filter(e=>DateTime_1.fromISO(e.createdDateTime||"").hasSame(yesterday,"day")),e=null==e?void 0:e.filter(e=>DateTime_1.fromISO(e.createdDateTime||"").startOf("day")<yesterday);return jsxRuntime.exports.jsxs("div",Object.assign({className:r.root},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:r.header},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:r.titleText},{children:"Today"})),jsxRuntime.exports.jsx(Filter,{data:filters$2,filter:t,onFilter:e=>{n(null==(e=null==e?void 0:e.target)?void 0:e.value)}})]})),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.scrollContent},{children:[jsxRuntime.exports.jsx(Box$1,{children:null==i?void 0:i.map((e,t)=>jsxRuntime.exports.jsx(ActivityCard,{longFormatTime:!1,data:e},t))}),"all"===t&&jsxRuntime.exports.jsxs(react$1.exports.Fragment,{children:[0<(null==o?void 0:o.length)&&jsxRuntime.exports.jsxs(react$1.exports.Fragment,{children:[jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.title,"data-testid":"filter-all-box"},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:r.titleText},{children:"Yesterday"}))})),jsxRuntime.exports.jsx(Box$1,{children:o.map((e,t)=>jsxRuntime.exports.jsx(ActivityCard,{longFormatTime:!1,data:e},t))})]}),0<(null==e?void 0:e.length)&&jsxRuntime.exports.jsxs(react$1.exports.Fragment,{children:[jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.title},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:r.titleText},{children:"Older"}))})),jsxRuntime.exports.jsx(Box$1,{children:e.map((e,t)=>jsxRuntime.exports.jsx(ActivityCard,{longFormatTime:!0,data:e},t))})]})]})]}))]}))},useStyles$d$1=makeStyles()((e,{appListV2:t,type:n},r)=>({listItem:{display:"flex",cursor:"pointer",alignItems:"center",height:t?"unset":70,width:"100%",padding:t?0:e.spacing(0,6),"&:hover":{backgroundColor:"#EEF3F9"},["& ."+r.appName]:{marginLeft:e.spacing(3)}},iconButton:{borderRadius:4,textAlign:"center",width:"94px",height:"110px",cursor:"pointer",["& ."+r.appName]:{marginBottom:e.spacing(3)}},appName:{textAlign:"center",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",textTransform:"capitalize",width:"switcherGrid"===n?"80%":"unset",margin:"switcherGrid"===n?"auto":"unset"},image:{display:"flex",justifyContent:"center",alignItems:"center",margin:t?"10px":e.spacing(3.8,0)},bounding:{padding:"17px 27px 19px 27px"},img:{width:40,height:40},switcherGrid:{borderRadius:4,textAlign:"center",padding:"20px 0 20px 0",cursor:"pointer","&:hover":{backgroundColor:"#EEF3F9"}},dialogTitle:{fontSize:"18px",fontFamily:"Nunito",fontStyle:"normal",lineHeight:"24px",letterSpacing:"-1.30385e-09px",fontWeight:400,cursor:"default"}})),namespace$3$1="user-app-group",initialState$3$2={appGroups:[],uiStatus:Status.idle,appGroupsRootFolderId:""},appGroupSlice=createSlice({name:namespace$3$1,initialState:initialState$3$2,reducers:{fetchUserAppGroupsStart(e){e.uiStatus=Status.loading},fetchUserAppGroupSuccess(e,t){e.uiStatus=Status.success,e.appGroups=t.payload},fetchUserAppGroupsFailed(e){e.uiStatus=Status.failure},addAppToGroup(e,t){const{destination:n,appId:r}=t.payload;var t=(e.appGroups||[]).findIndex(e=>e.id===n),i=(((e.appGroups||[])[t]||{}).apps||[]).find(e=>e===r);-1===t||i||(e.appGroups||[])[t].apps.push(r)},removeAppFromGroup(e,t){const{source:n,appId:r}=t.payload;t=(e.appGroups||[]).findIndex(e=>e.id===n);-1!==t&&((e.appGroups||[])[t].apps=(e.appGroups||[])[t].apps.filter(e=>e!==r))},updateGroupPriority(e,t){var n=[...e.appGroups||[]];const{groupId:r,newPriority:i}=t.payload,o=n.find(e=>e.id===r);o&&(i>o.priority?(n.forEach(e=>{e.priority<=i&&e.priority>o.priority&&--e.priority}),o.priority=i):i<o.priority&&(n.forEach(e=>{e.priority>=i&&e.priority<o.priority&&(e.priority+=1)}),o.priority=i),n.sort((e,t)=>e.priority-t.priority),e.appGroups=n)},createNewAppGroupPlaceholder(e){var t;e.appGroups.find(e=>e.isNew)||((t=[...e.appGroups]).forEach(e=>e.priority+=1),t.unshift({groupName:"",id:"new-group-placeholder",treeObjectId:"",isNew:!0,apps:[],priority:0,expanded:!0,isEdited:!0}),e.appGroups=t)},removeNewAppGroupPlaceholder(e){e.appGroups=(e.appGroups||[]).filter(e=>!e.isNew&&(--e.priority,!0))},createNewAppGroupStart(e,t){return e},editAppGroup(e,t){const{edit:n,groupId:r,newGroupName:i}=t.payload;if(n&&(e.appGroups||[]).find(e=>e.isEdited))return;var o,t=(e.appGroups||[]).findIndex(e=>e.id===r);-1!==t&&(!((o=[...e.appGroups||[]])[t].isEdited=n)&&i&&(o[t].groupName=i),e.appGroups=o)},deleteAppGroup(e,t){return e},expandCollapse(e,t){var n,r=(e.appGroups||[]).findIndex(e=>e.id===t.payload);-1!==r&&(n=(e.appGroups||[])[r].isExpanded,(e.appGroups||[])[r].isExpanded=!n&&void 0!==n)},fetchUserAppGroupsRootFolderIdSuccess(e,t){e.appGroupsRootFolderId=t.payload}}}),{addAppToGroup,removeAppFromGroup,updateGroupPriority,removeNewAppGroupPlaceholder,createNewAppGroupStart,editAppGroup,deleteAppGroup,expandCollapse,fetchUserAppGroupsStart,fetchUserAppGroupSuccess,fetchUserAppGroupsFailed,fetchUserAppGroupsRootFolderIdSuccess}=appGroupSlice.actions,appGroupReducer=appGroupSlice.reducer;function __awaiter$4(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}const fetchUserAppGroupsRootFolderIdApi=(e,t)=>__awaiter$4(void 0,void 0,void 0,function*(){return(yield baseGraphQLApiWithError({query:`
|
|
1349
1349
|
mutation createApplicationGroupRootFolder {
|
|
1350
1350
|
createRootFolders(rootFolderType:application) {
|
|
1351
1351
|
id
|
|
@@ -1444,7 +1444,7 @@ createScheduledJob(input:{
|
|
|
1444
1444
|
id
|
|
1445
1445
|
}
|
|
1446
1446
|
}
|
|
1447
|
-
`,operationName:e,token:n,graphQLEndpoint:r}))[t])?void 0:e.id}),selectUserAppGroups=e=>{return(null==(e=e[namespace$3$1])?void 0:e.appGroups)||[]},selectUserAppGroupsRootFolderId=e=>{return(null==(e=e[namespace$3$1])?void 0:e.appGroupsRootFolderId)||""},selectUserAppGroupsUiStatus=e=>{return null==(e=e[namespace$3$1])?void 0:e.uiStatus},selectAppGroupsEditMode=e=>{return!!((null==(e=null==(e=e[namespace$3$1])?void 0:e.user)?void 0:e.appGroups)||[]).find(e=>e.isEdited)};function*fetchUserGroupsSaga(){var t,n,r,i;try{var o=yield select(graphEndpointSelector),a=yield select(sessionTokenSelector);let e=yield select(selectUserAppGroupsRootFolderId);if(!e){var s=yield call$j(fetchUserAppGroupsRootFolderIdApi,a,o);if(!s||s.length<2||null==(t=s[1])||!t.id)return yield put(fetchUserAppGroupsFailed()),void devErrorLogger("Something went wrong while creating root folder for applications");e=null==(n=s[1])?void 0:n.id}var l=yield call$j(fetchUserAppGroupsApi,a,o,e),c=(null==(i=null==(r=null==l?void 0:l.childFolders)?void 0:r.records)?void 0:i.map(e=>{var t;return{groupName:e.name,id:e.id,treeObjectId:e.treeObjectId,apps:null==(t=null==e?void 0:e.childApplications)?void 0:t.records.map(e=>e.id),priority:null==e?void 0:e.orderIndex,parentTreeObjectId:null==(t=null==e?void 0:e.parent)?void 0:t.treeObjectId,isNew:!1,expanded:!1,isEdited:!1,isExpanded:!0}}))||[];c.sort((e,t)=>(null==e?void 0:e.priority)-(null==t?void 0:t.priority)),yield put(fetchUserAppGroupsRootFolderIdSuccess(e)),yield put(fetchUserAppGroupSuccess(c))}catch(e){yield put(fetchUserAppGroupsFailed()),devErrorLogger("Something went wrong while creating root folder for applications: "+JSON.stringify(e))}}function*createNewAppGroupStartSaga(e){var t=yield select(preferredLanguageSelector),t=AIWareFormatMessage(t);try{const a=yield select(graphEndpointSelector),s=yield select(sessionTokenSelector);var n=yield select(selectUserAppGroupsRootFolderId),r=e.payload,i=(yield select(selectUserAppGroups)).find(e=>!0===e.isNew),o=(null==i?void 0:i.apps)||[];const l=yield call$j(createUserGroupApi,s,a,r,n);l&&0<o.length&&(yield all$2(o.map(e=>call$j(addAppToUserGroupApi,s,a,e,l)))),yield put(fetchUserAppGroupsStart())}catch(e){devErrorLogger("Something went wrong while creating application group: "+JSON.stringify(e)),yield put(showMessage({content:isEqual_1("production","development")?"Something went wrong while creating your application group":t({id:"user-app-groups.create-app-error-dsa123",defaultMessage:[{type:0,value:"Something went wrong while creating your application group"}]}),severity:MessageSeverity.Error}))}}function*addAppToGroupSaga(e){var t=yield select(preferredLanguageSelector),t=AIWareFormatMessage(t);try{var n,r,i=e.payload.destination,o=e.payload.appId;validate(i)&&validate(o)&&(n=yield select(graphEndpointSelector),r=yield select(sessionTokenSelector),yield call$j(addAppToUserGroupApi,r,n,o,i))}catch(e){devErrorLogger("Something went wrong while adding app to application group: "+JSON.stringify(e)),yield put(showMessage({content:isEqual_1("production","development")?"Something went wrong while adding application to group":t({id:"user-app-groups.add-app-error-ada534",defaultMessage:[{type:0,value:"Something went wrong while adding application to group"}]}),severity:MessageSeverity.Error}))}}function*removeAppFromGroupSaga(e){var t=yield select(preferredLanguageSelector),t=AIWareFormatMessage(t);try{var n=e.payload.source,r=e.payload.appId,i=yield select(graphEndpointSelector),o=yield select(sessionTokenSelector);yield call$j(removeAppFromGroupApi,o,i,r,n)}catch(e){devErrorLogger("Something went wrong while removing application from group: "+JSON.stringify(e)),yield put(showMessage({content:isEqual_1("production","development")?"Something went wrong while removing application from group":t({id:"user-app-groups.remove-app-error-fsa817",defaultMessage:[{type:0,value:"Something went wrong while removing application from group"}]}),severity:MessageSeverity.Error}))}}function*deleteAppGroupSaga(e){var t=yield select(preferredLanguageSelector),t=AIWareFormatMessage(t);try{const o=e.payload;var n=yield select(graphEndpointSelector),r=yield select(sessionTokenSelector),i=(yield select(selectUserAppGroups)||[]).find(e=>e.id===o);i&&i.treeObjectId&&(yield call$j(deleteAppGroupApi,r,n,i.treeObjectId,i.priority),yield put(fetchUserAppGroupsStart()))}catch(e){devErrorLogger("Something went wrong while deleting application group: "+JSON.stringify(e)),yield put(showMessage({content:isEqual_1("production","development")?"Something went wrong while deleting application group":t({id:"user-app-groups.delete-app-group-error-kio912",defaultMessage:[{type:0,value:"Something went wrong while deleting application group"}]}),severity:MessageSeverity.Error}))}}function*editAppGroupSaga(e){var t=yield select(preferredLanguageSelector),t=AIWareFormatMessage(t);try{var n=e.payload.groupId,r=e.payload.newGroupName,i=yield select(graphEndpointSelector),o=yield select(sessionTokenSelector);n&&r&&(yield call$j(editAppGroupApi,o,i,n,r))}catch(e){devErrorLogger("Something went wrong while editing application group: "+JSON.stringify(e)),yield put(showMessage({content:isEqual_1("production","development")?"Something went wrong while editing application group":t({id:"user-app-groups.edit-app-group-error-ias109",defaultMessage:[{type:0,value:"Something went wrong while editing application group"}]}),severity:MessageSeverity.Error}))}}function*updateGroupPrioritySaga(e){var t=yield select(preferredLanguageSelector),t=AIWareFormatMessage(t);try{const l=e.payload.groupId;var n=e.payload.newPriority,r=e.payload.prevPriority,i=yield select(selectUserAppGroups)||[],o=yield select(graphEndpointSelector),a=yield select(sessionTokenSelector),s=i.find(e=>e.id===l);s&&void 0!==n&&void 0!==r&&(yield call$j(updateGroupPriorityApi,a,o,n,r,s))}catch(e){devErrorLogger("Something went wrong while updating application group order: "+JSON.stringify(e)),yield put(showMessage({content:isEqual_1("production","development")?"Something went wrong while updating application group order":t({id:"user-app-groups.reoder-app-group-error-uas989",defaultMessage:[{type:0,value:"Something went wrong while updating application group order"}]}),severity:MessageSeverity.Error}))}}function*rootSaga$1$1(){yield all$2([takeLatest$1(fetchUserAppGroupsStart.type,fetchUserGroupsSaga),takeLatest$1(createNewAppGroupStart.type,createNewAppGroupStartSaga),takeLatest$1(addAppToGroup.type,addAppToGroupSaga),takeLatest$1(removeAppFromGroup.type,removeAppFromGroupSaga),takeLatest$1(deleteAppGroup.type,deleteAppGroupSaga),takeLatest$1(editAppGroup.type,editAppGroupSaga),takeLatest$1(updateGroupPriority.type,updateGroupPrioritySaga)])}function getAppGroupModule(){return{id:"user-app-group",reducerMap:{[namespace$3$1]:appGroupReducer},sagas:[rootSaga$1$1],initialActions:[]}}const styles={title:{my:2},content:{minWidth:360,px:0,pt:3,pb:0},button:{fontSize:"12px"},actions:{px:4,pt:4,pb:2},cancelButton:{color:"black",py:2},deleteButton:{py:2}},iconMapper={CMS:img$10,Discovery:img$$,Collection:img$_,Library:img$Z,Admin:img$1A,Developer:img$Y};function AppIcon({id:t,icon:e,type:n,iconUrl:r,appName:i,onClick:o,appListV2:a=!1,isAppGroup:s,appGroupId:l}){a=useStyles$d$1({appListV2:a,type:n}).classes;const[c,u]=react$1.exports.useState(e||r||i&&iconMapper[i]||img$Y),[d,p]=react$1.exports.useState(!1);const[f,h]=react$1.exports.useState(null);e=Boolean(f);const m=useDispatch();const g=e=>{e.stopPropagation(),h(null),p(!1)};return jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:i||"",PopperProps:{disablePortal:!0}},{children:jsxRuntime.exports.jsxs("div",Object.assign({onClick:function(){o&&o(t)},className:classNames({[a.iconButton]:"grid"===n,[a.listItem]:"list"===n,[a.switcherGrid]:"switcherGrid"===n}),"data-test":"dt-button-app-icon","data-testid":"dt-button-app-icon",onContextMenu:s?e=>{e.preventDefault(),h(e.currentTarget)}:void 0},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:a.image},{children:jsxRuntime.exports.jsx("img",{alt:"app-icon",onError:function(){u(img$Y)},src:c,draggable:"false",className:a.img})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:a.appName,"data-testid":"os-app-bar-panel.app-switcher.app-name"},{children:i})),jsxRuntime.exports.jsxs(Menu$1,Object.assign({id:"basic-menu",anchorEl:f,open:e,onClose:g,MenuListProps:{"aria-labelledby":"basic-button"},sx:{transform:"translate(60px, -60px)"}},{children:[jsxRuntime.exports.jsx(MenuItem$1,Object.assign({sx:{display:"none"},onClick:e=>{e.stopPropagation(),mountPanel$1({panelId:"APPLICATION_DETAILS_PANEL",microFrontend:{name:"APPLICATION_DETAILS_PANEL",config:{applicationId:t}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xlarge",zIndex:1e3}}),g(e)},"data-testid":`os-app-bar-panel.app-switcher.options-app-detail.${l}.`+t},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.app-group.application-details",defaultMessage:"Application Details",description:"Dropdown menu item that opens application details panel"})})),jsxRuntime.exports.jsx(MenuItem$1,Object.assign({onClick:e=>{e.stopPropagation(),h(null),p(!0)},"data-testid":`os-app-bar-panel.app-switcher.options-remove-app.${l}.`+t},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.app-group.remove-from-group",defaultMessage:"Remove from Group",description:"Dropdown menu item that removes application from group"})}))]})),jsxRuntime.exports.jsx(Dialog$1,Object.assign({open:d,maxWidth:"xs",onClose:g,"data-testid":"os-app-bar-panel.delete-app-from-group.confirmation-dialog"},{children:jsxRuntime.exports.jsxs(DialogTitle$1,{children:[jsxRuntime.exports.jsx("div",Object.assign({className:a.dialogTitle},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.delete-app-from-group.confirmation-title",defaultMessage:"Delete Application",description:"Delete App from Group confirmation title"})})),jsxRuntime.exports.jsxs(DialogContent$1,Object.assign({sx:styles.content},{children:[jsxRuntime.exports.jsx(DialogContentText$1,{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.delete-app-from-group.confirmation-message",defaultMessage:"Are you sure you want to delete this application from the group?",description:"Delete Ap from Group confirmation message"})}),jsxRuntime.exports.jsxs(DialogActions$1,Object.assign({sx:styles.actions},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({sx:styles.cancelButton,onClick:g,"data-testid":"app-switcher.delete-app.cancel-btn"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.delete-app-from-group.cancel-button",defaultMessage:"Cancel",description:"Delete App from Group cancel button"})})),jsxRuntime.exports.jsx(Button$1,Object.assign({color:"primary",variant:"contained",sx:styles.deleteButton,onClick:e=>{e.stopPropagation(),m(removeAppFromGroup({source:l,appId:t.toString()})),g(e)},"data-testid":"app-switcher.delete-app.confirm-btn"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.delete-app-from-group.confirm-button",defaultMessage:"Yes, Delete",description:"Delete App from Group confirmation button"})}))]}))]}))]})}))]}))}))}const useStyles$c$1=makeStyles()((e,{sortOrder:t,hasApps:n,menuIsOpen:r})=>({root:{},header:{height:"60px",position:"sticky"},groupContainer:{padding:"0 15px"},title:{fontWeight:700,padding:"15px"},groupTitle:{background:"#F9F9F9",paddingLeft:"5px",position:"relative",height:"16px","& .Sdk-MuiTypography-root":{fontSize:"10px",fontWeight:700,lineHeight:"10px",position:"absolute",margin:"3px"}},filterIcon:{display:"flex",flexDirection:"column",justifyContent:"center","& svg":{transform:"asc"===t?"scaleY(-1)":"scaleY(1)",cursor:n?"pointer":"not-allowed"}},filterIconWrapper:{width:"24px",height:"24px",borderRadius:"24px",background:r?"rgba(228, 240, 252, 0.8)":"unset","& path":{fill:r?"#0C53B0":"#555F7C"},"&:hover":{background:"rgba(228, 240, 252, 0.8)","& path":{fill:"#0C53B0"}}},searchBox:{display:"flex",flexDirection:"column",justifyContent:"center","& .Sdk-MuiButtonBase-root":{padding:0},"& svg":{width:"14px"},"& input":{"&::placeholder":{color:"#5C6269 !important",fontWeight:600,opacity:1}}},searchField:{borderRadius:"1em",height:"30px"},searchOutline:{borderColor:"#D5DFE9"},searchInput:{fontSize:"11px","&::placeholder":{color:"#5C6269 !important"}},sortMenu:{width:"143px"},airborne:{position:"absolute",background:"rgba(26, 140, 255, 0.9)",transform:"rotate(3.02deg)",color:"white","& *":{fontWeight:"900 !important"},"& img":{background:"white",borderRadius:"50%"}},applicationList:{overflow:"hidden",height:"calc(100vh - 64px - 55px - 60px - 5px)",overflowY:"scroll"}})),SHARED_TEXT$1={buttonLink:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.aaaaa1",defaultMessage:"Link",description:"label of link open id connector button on profile panel"}),buttonUnlink:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.L4gr2p",defaultMessage:"Unlink",description:"label of unlink open id connector button on profile panel"}),basicInfoTabLabel:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.lpZXMT",defaultMessage:"Basic Info",description:"Personal Profile: Basic info name, email etc"}),accountLinkingTabLabel:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.AgbO9g",defaultMessage:"Account Linking",description:"Personal Profile: Open ID Connector Account Linking"}),settingsTabLabel:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.oYYEos",defaultMessage:"Settings",description:"Profile Settings"}),accountLinkingLabel:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.JxMDBr",defaultMessage:"Link your Account",description:"label of manage basic infomation container"}),accountLinkingDescription:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.77MHtz",defaultMessage:"View your accounts from other identify providers that are linked with this account.",description:"description of manage account linking"}),unlinkDialogTitle:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.naysir",defaultMessage:"Unlink this Identity Provider?",description:"title for unlink identity provider"}),unlinkDialogContent:e=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.dwZfY7",defaultMessage:"Are you sure you want to unlink {name} from your account?",description:"content for unlink identity provider",values:{name:e||""}}),unlinkDialogCancel:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.SNjPPT",defaultMessage:"Cancel",description:"cancel for unlink identity provider"}),unlinkDialogConfirm:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.KJyVd9",defaultMessage:"Yes, Unlink",description:"confirm for unlink identity provider"}),successDialogTitle:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.ZaKL3e",defaultMessage:"Account Successfully linked!",description:"title for success identity provider"}),successDialogContent:e=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.IP+fpM",defaultMessage:"You can now log into this account using {name}.",description:"content for success identity provider",values:{name:e||""}}),successDialogConfirm:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.1DTtvD",defaultMessage:"Okay",description:"confirm for success identity provider"}),nullState:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.u6gP99",defaultMessage:"Your account currently has no available account linking options",description:"account linking null state"}),errorState:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.KG2JIz",defaultMessage:"There was an error while loading the available account linking options",description:"account linking error state"}),retry:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.IYUdD6",defaultMessage:"Retry",description:"account linking retry"}),settingsHeader:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.IIE3bM",defaultMessage:"Application Preferences",description:"account settings header"}),settingsSubHeader:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.9xcAYc",defaultMessage:"Manage the settings of aiWARE services and applications.",description:"account settings sub header"})},translatableTextProps=e=>({searchLabel:e.formatMessage({id:"os-app-bar-panel.search.label",defaultMessage:[{type:0,value:"Search"}]})});function AppListDnD({intl:e,selectedAppId:t,onSelectApplication:n,applications:r=[],showAppGroups:i=!1}){const[o,a]=react$1.exports.useState(t),[s,l]=react$1.exports.useState({}),[c,u]=react$1.exports.useState(""),[d,p]=react$1.exports.useState("asc");var f=0!==r.length;function h(e){a(e),n(e)}function m(e,t){return e.name.toLowerCase()>t.name.toLowerCase()?1:e.name.toLowerCase()<t.name.toLowerCase()?-1:0}react$1.exports.useEffect(()=>{if(0<r.length){var e={};for(const n of[...r].sort(m)){var t=n.name.charAt(0).toUpperCase();e[t]=e[t]?[...e[t],n]:[n]}l(e)}},[r]),react$1.exports.useEffect(()=>{t!==o&&a(t)},[t,o]);e=translatableTextProps(e).searchLabel;const[g,y]=react$1.exports.useState(null);var v=Boolean(g);const x=e=>{if(e!==d){p(e);e=Object.keys(s).reverse();const t={};e.forEach(e=>t[e]=s[e].reverse()),l(t)}y(null)},$=useStyles$c$1({sortOrder:d,hasApps:f,menuIsOpen:v})["classes"];f=jsxRuntime.exports.jsxs(Menu$1,Object.assign({id:"app-switcher.sort-menu",anchorEl:g,open:v,onClose:x},{children:[jsxRuntime.exports.jsx(MenuItem$1,Object.assign({onClick:()=>x("asc"),className:$.sortMenu},{children:"A - Z"})),jsxRuntime.exports.jsx(MenuItem$1,Object.assign({onClick:()=>x("desc"),className:$.sortMenu},{children:"Z - A"}))]}));const b=(e,t,n)=>jsxRuntime.exports.jsx(AppIcon,{type:"list",selected:e===o,onClick:h,iconUrl:t,id:e,appName:n,appListV2:!0});return jsxRuntime.exports.jsxs("div",Object.assign({className:$.root,"data-testid":"os-app-bar-panel.app-switcher.applications-container"},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:$.header},{children:jsxRuntime.exports.jsxs(Grid$1,Object.assign({container:!0,spacing:2},{children:[jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:5},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:$.title},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.app-switcher.applications-title",defaultMessage:"Applications",description:"Applications list title"})}))})),jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:5,className:$.searchBox},{children:jsxRuntime.exports.jsx(TextField$1,{"data-testid":"os-app-bar-panel.app-switcher.search",onChange:e=>{u(e.target.value)},placeholder:e,InputProps:{classes:{root:$.searchField,input:$.searchInput,notchedOutline:$.searchOutline},startAdornment:jsxRuntime.exports.jsx(InputAdornment$1,Object.assign({position:"start"},{children:jsxRuntime.exports.jsx(IconButton$1,{children:jsxRuntime.exports.jsx(default_1$8,{})})}))}})})),jsxRuntime.exports.jsxs(Grid$1,Object.assign({item:!0,xs:2,className:$.filterIcon},{children:[jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.app-switcher.sort-btn",defaultMessage:"Sort",description:"Application sort button"})},{children:jsxRuntime.exports.jsx("div",Object.assign({className:$.filterIconWrapper,onClick:e=>{r.length&&y(e.currentTarget)}},{children:jsxRuntime.exports.jsx("div",Object.assign({className:$.filterIcon},{children:jsxRuntime.exports.jsx(SortArrow,{"data-testid":"os-app-bar-panel.app-switcher.sort"})}))}))})),f]}))]}))})),jsxRuntime.exports.jsx("div",Object.assign({className:$.applicationList},{children:0===r.length?jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.dyhBih",defaultMessage:"No Applications",description:"the label no app will show if we have no application for list view"})}))}):jsxRuntime.exports.jsx(ConnectedDroppable,Object.assign({droppableId:"app-list"},{children:e=>jsxRuntime.exports.jsx("div",Object.assign({className:$.groupContainer},e.droppableProps,{ref:e.innerRef},{children:0<Object.keys(s).length&&Object.entries(s).map(([e,t])=>t.filter(e=>e.name.toLowerCase().includes(c.toLowerCase())).length?jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx("div",Object.assign({className:$.groupTitle,"data-testid":"os-app-bar-panel.app-switcher.group-title"},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"overline"},{children:e}))})),t.filter(e=>e.name.toLowerCase().includes(c.toLowerCase())).map((e,t)=>{const{id:l=t,iconUrl:c,name:u}=e;return jsxRuntime.exports.jsxs("div",Object.assign({"data-testid":"os-app-bar-panel.app-switcher.app-row"},{children:[i?jsxRuntime.exports.jsx(PublicDraggable,Object.assign({draggableId:l.toString(),index:t},{children:(a,s)=>jsxRuntime.exports.jsx(NaturalDragAnimation,Object.assign({style:a.draggableProps.style,snapshot:s},{children:e=>{return t=a,n=s,e=e,r=l,i=c,o=u,jsxRuntime.exports.jsx("div",Object.assign({},t.draggableProps,t.dragHandleProps,{ref:t.innerRef,className:n.isDragging?$.airborne:"",style:e},{children:b(r,i,o)}));var t,n,r,i,o}}))}),t):b(l,c,u),jsxRuntime.exports.jsx(Divider$1,{})]}),l)})]},e):null)}))}))}))]}))}var AppListDnD$1=injectIntl(AppListDnD);const useStyles$b$1=makeStyles()(e=>({tabsBox:{height:"100%"},fullHeight:{height:"100%"},listContainer:{overflow:"hidden",height:"calc(100vh - 64px - 55px - 5px)",overflowY:"scroll"},skeletonContainer:{position:"absolute",width:"100%",height:"100%",zIndex:5,backgroundColor:"white"}})),useStyles$a$1=makeStyles()(e=>({root:{height:"calc(100vh - 64px - 55px - 5px)",overflowY:"scroll",borderRight:"15px solid #F9F9F9",boxShadow:"0px 1px 1px #809cb7","&::-webkit-scrollbar":{display:"none"}},appTile:{overflow:"hidden"},title:{fontWeight:700,padding:"15px 15px 0 15px"},groupTitle:{fontWeight:700,padding:"15px"},helperText:{paddingLeft:"15px",fontSize:"12px",fontWeight:"bold"},noApps:{textAlign:"center",marginTop:"30px","& svg":{width:"160px",height:"160px",marginBottom:"20px"},marginBottom:"20px"},appGroup:{borderTop:"1px solid #D5DFE9"},currentLanding:{position:"relative",minHeight:"155px !important"},idleLanding:{minHeight:"10px"},runway:{minHeight:"110px",position:"absolute",background:"rgba(255, 255, 255, 0.8)",width:"94%",height:"100%",border:"1px dashed #CAD7E3",borderRadius:"4px",display:"flex",textAlign:"center",flexDirection:"column",justifyContent:"center"},landingText:{fontSize:"16px !important",fontWeight:"600 !important",color:"rgba(124, 132, 141, 1)"},airborneGroup:{height:"50px !important",background:"rgba(26, 140, 255, 0.9)",color:"white","& div":{display:"none"}},groupHandler:{display:"flex",justifyContent:"space-between","&:hover":{background:"rgba(242, 242, 242, 0.5)"}}})),useStyles$9$1=makeStyles()(()=>({root:{padding:"15px"},groupNameInput:{height:"36px","& input":{width:"100% !important",height:"36px",padding:"0 0 0 15px",color:"rgba(92, 98, 105, 1)",borderRadius:"4px",border:"none"},marginBottom:"10px",width:"100% !important",background:"#F5FDFF"},notInterested:{height:"18px","& svg":{height:"18px",cursor:"pointer"}},confirm:{height:"20px",cursor:"pointer"},newGroupApps:{marginBottom:"20px",display:"flex",flexDirection:"column",justifyContent:"center",textAlign:"center",height:"101px",background:"#FAFAFA",borderRadius:"4px"},landingText:{color:"rgba(156, 168, 180, 1)"},relativeContainer:{position:"relative"},fullWidthRunway:{top:0,width:"100%"}})),AppGroupPlaceholder=({apps:n,classes:r})=>{var e=useSelector(preferredLanguageSelector),e=AIWareFormatMessage(e);const i=useStyles$9$1()["classes"],t=useDispatch(),[o,a]=react$1.exports.useState("");const s=isEqual_1("production","development")?"Please provide a name for your new App group":e({id:"os-app-bar-panel.new-app-group.missing-name",defaultMessage:[{type:0,value:"Please provide a name for your new App group"}]});return jsxRuntime.exports.jsxs("div",Object.assign({className:i.root},{children:[jsxRuntime.exports.jsx(TextField$1,{value:o,onChange:e=>{a(e.target.value)},"data-testid":"os-app-bar.new-app-group.name-input-container",className:i.groupNameInput,InputProps:{endAdornment:jsxRuntime.exports.jsxs(InputAdornment$1,Object.assign({position:"end"},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:i.confirm,onClick:()=>{o?t(createNewAppGroupStart(o)):t(showMessage({content:s,severity:MessageSeverity.Error}))},"data-testid":"os-app-bar.new-app-group.save-btn"},{children:jsxRuntime.exports.jsx(Checkmark,{})})),jsxRuntime.exports.jsx("div",Object.assign({className:i.notInterested,onClick:()=>{t(removeNewAppGroupPlaceholder())},"data-testid":"os-app-bar.new-app-group.cancel-btn"},{children:jsxRuntime.exports.jsx(NotInterested,{})}))]}))},inputProps:{"data-testid":"os-app-bar.new-app-group.name-input"}}),jsxRuntime.exports.jsx(ConnectedDroppable,Object.assign({droppableId:"new-group-placeholder"},{children:(e,t)=>jsxRuntime.exports.jsxs("div",Object.assign({ref:e.innerRef},e.droppableProps,{className:i.relativeContainer,style:{width:"100%"}},{children:[n.length?jsxRuntime.exports.jsx(Grid$1,Object.assign({container:!0,sx:{position:"relative",marginBottom:"15px"}},{children:n.map((e,t)=>{var{id:e=t,iconUrl:t,name:n}=e;return jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:4,sx:{padding:0,overflow:"hidden"},"data-testid":"app-switcher.new-app-group.app-tile"},{children:jsxRuntime.exports.jsx(AppIcon,{type:"switcherGrid",selected:!1,onClick:()=>{},iconUrl:t,id:e,appName:n,appListV2:!0})}),e)})})):jsxRuntime.exports.jsx("div",Object.assign({className:i.newGroupApps},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:i.landingText},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.new-app-group.apps-landing",defaultMessage:"Drag Applications Here",description:"helper text to tell users where to drag apps for the new app group"})}))})),t.isDraggingOver&&n.length?jsxRuntime.exports.jsx(Runway,{classes:r,rootClassName:i.fullWidthRunway}):null]}))}))]}))},GroupDraggingPlaceholder=({isDragging:e,className:t,groupName:n,dragHandleProps:r})=>e?jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:t},r,{children:n})):null,useStyles$8$1=makeStyles()(()=>({root:{padding:"15px"},groupNameInput:{height:"36px","& input":{width:"100% !important",height:"36px",padding:"0 0 0 15px",color:"rgba(92, 98, 105, 1)",borderRadius:"4px",border:"none"},marginBottom:"10px",width:"100% !important",background:"#F5FDFF"},notInterested:{height:"18px",cursor:"pointer"},confirm:{cursor:"pointer"},groupHandler:{display:"flex",justifyContent:"space-between",alignItems:"center","&:hover":{background:"rgba(242, 242, 242, 0.5)"}},invisibleHandler:{display:"none"},groupTitle:{fontWeight:700,padding:"15px"},handlerMenu:{height:"40px",width:"40px",marginRight:"10px"}})),GroupHandler=({dragHandleProps:e,groupName:t,groupId:n,isExpanded:r=!0})=>{const i=useSelector(selectAppGroupsEditMode),o=useDispatch(),[a,s]=react$1.exports.useState(!1),[l,c]=react$1.exports.useState(""),[u,d]=react$1.exports.useState(null);var p=Boolean(u);const f=()=>{d(null)};var h=useStyles$8$1()["classes"];react$1.exports.useEffect(()=>{c(t)},[]);const m=()=>{o(editAppGroup({edit:!0,groupId:n})),s(!0)};return jsxRuntime.exports.jsx("div",Object.assign({className:a?h.root:h.groupHandler},{children:a?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(TextField$1,{value:l,onChange:e=>{c(e.target.value)},"data-testid":`os-app-bar.app-group.${n}.name-input-container`,className:h.groupNameInput,InputProps:{endAdornment:jsxRuntime.exports.jsxs(InputAdornment$1,Object.assign({position:"end"},{children:[jsxRuntime.exports.jsx(Checkmark,{className:h.confirm,onClick:()=>{f(),o(editAppGroup({edit:!1,groupId:n,newGroupName:l})),s(!1)},"data-testid":`os-app-bar.app-group.${n}.save-btn`}),jsxRuntime.exports.jsx(NotInterested,{className:h.notInterested,onClick:()=>{f(),o(editAppGroup({edit:!1,groupId:n})),s(!1)},"data-testid":`os-app-bar.app-group.${n}.cancel-btn`})]}))},inputProps:{"data-testid":`os-app-bar.app-group.${n}.name-input`}}),jsxRuntime.exports.jsx("div",Object.assign({},e))]}):jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:h.groupTitle},e,{onClick:e=>{2!==e.detail||i||m()},"data-testid":"os-app-bar-panel.app-switcher.group-name."+n},{children:t})),jsxRuntime.exports.jsx(IconButton$1,Object.assign({onClick:e=>{e.preventDefault(),d(e.currentTarget)},size:"small",className:h.handlerMenu,"data-testid":"os-app-bar-panel.app-switcher.options-btn."+n},{children:jsxRuntime.exports.jsx(MoreHor,{fontSize:"small"})})),jsxRuntime.exports.jsxs(Menu$1,Object.assign({id:"basic-menu",anchorEl:u,open:p,onClose:f,MenuListProps:{"aria-labelledby":"basic-button"},sx:{transform:"translate(-95px, 0)"}},{children:[jsxRuntime.exports.jsx(MenuItem$1,Object.assign({onClick:()=>{f(),setTimeout(()=>{o(expandCollapse(n))},100)},"data-testid":"os-app-bar-panel.app-switcher.options-toggle."+n},{children:r?jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.app-group.menu.hide",defaultMessage:"Hide Group",description:"Hide Group dropdown menu item"}):jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.app-group.menu.expand",defaultMessage:"Expand",description:"Expand dropdown menu item"})})),jsxRuntime.exports.jsx(MenuItem$1,Object.assign({onClick:m,"data-testid":"os-app-bar-panel.app-switcher.options-rename."+n},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.app-group.menu.rename",defaultMessage:"Rename",description:"Rename dropdown menu item"})})),jsxRuntime.exports.jsx(MenuItem$1,Object.assign({onClick:()=>{o(deleteAppGroup(n))},"data-testid":"os-app-bar-panel.app-switcher.options-delete."+n},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.app-group.menu.delete",defaultMessage:"Delete",description:"Delete dropdown menu item"})}))]}))]})}))},GroupApps=({groupApps:e,appGroup:r,classes:i,snapshot:t,handleSelectApplication:o,currentSelected:a})=>jsxRuntime.exports.jsxs(Grid$1,Object.assign({container:!0,sx:{paddingLeft:"10px",position:"relative",marginBottom:"15px"},"data-testid":"app-switcher.app-group."+r.id},{children:[t.isDraggingOver?jsxRuntime.exports.jsx(Runway,{classes:i}):null,e.map((e,t)=>{var{id:e=t,iconUrl:t,name:n}=e;return jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:4,className:i.appTile,sx:{padding:0},"data-testid":"app-switcher.app-group.app-tile."+e},{children:jsxRuntime.exports.jsx(AppIcon,{type:"switcherGrid",selected:e===a,onClick:o,iconUrl:t,id:e,appName:n,appListV2:!0,isAppGroup:!0,appGroupId:r.id})}),e)})]})),LoadingSkeleton=()=>jsxRuntime.exports.jsx(react$1.exports.Fragment,{children:[1,2].map(e=>jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Skeleton$1,{variant:"rectangular",width:345,height:50}),jsxRuntime.exports.jsx(Grid$1,Object.assign({container:!0,sx:{paddingLeft:"10px",position:"relative",marginBottom:"15px"}},{children:[1,2,3].map(e=>jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:4,sx:{padding:0}},{children:jsxRuntime.exports.jsxs(Stack$4,Object.assign({sx:{justifyContent:"center",alignItems:"center",padding:"20px 0px"}},{children:[jsxRuntime.exports.jsx(Skeleton$1,{sx:{m:2},variant:"circular",width:40,height:40}),jsxRuntime.exports.jsx(Skeleton$1,{variant:"text",sx:{fontSize:"10px"},width:30})]}))}),e))}),e)]}))}),Runway=({classes:e,rootClassName:t})=>jsxRuntime.exports.jsx("div",Object.assign({className:e.runway+" "+t},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:e.landingText},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.app-switcher.app-landing",defaultMessage:"Drop Application Here",description:"Helper text to tell users where apps should be dropped"})}))})),RecentAppsDnD=({apps:e=[],allApps:t,onSelectApplication:n,selectedAppId:r,showAppGroups:i})=>{const o=useStyles$a$1()["classes"],[a,s]=react$1.exports.useState(r),l=useDispatch();function c(e){s(e),n(e)}const u=useSelector(selectUserAppGroupsUiStatus),d=useSelector(selectUserAppGroups);return jsxRuntime.exports.jsxs("div",Object.assign({className:o.root,"data-testid":"app-switcher.recent-apps.container"},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:o.title},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"app-bar.app-switcher.recent-apps",defaultMessage:"Recent Applications",description:"Recent Application container title"})})),e.length?jsxRuntime.exports.jsx(Grid$1,Object.assign({container:!0,sx:{paddingLeft:"10px"}},{children:e.map((e,t)=>{var{id:t=t,iconUrl:n,name:r}=e;return jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:4,className:o.appTile,sx:{padding:0},"data-testid":"app-switcher.recent-apps.app-tile"},{children:jsxRuntime.exports.jsx(AppIcon,{type:"switcherGrid",selected:t===a,onClick:c,iconUrl:n,id:t,appName:r,appListV2:!0})}),e.id)})})):jsxRuntime.exports.jsxs("div",Object.assign({className:o.noApps},{children:[jsxRuntime.exports.jsx(NoApps,{fontSize:"large"}),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:o.helperText},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"app-bar.app-switcher.no-recent-apps",defaultMessage:"You haven’t viewed any applications yet.",description:"No Recent Application title"})}))]})),i&&(u===Status.loading?jsxRuntime.exports.jsx(LoadingSkeleton,{}):u===Status.failure?jsxRuntime.exports.jsx(ErrorState$2,{onRetry:()=>l(fetchUserAppGroupsStart()),errorMessage:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.app-groups.error-message",defaultMessage:"Something went wrong while loading your application groups.",description:"application groups error state"})}):u===Status.success&&d.length?jsxRuntime.exports.jsx(AppGroups,{apps:e,allApps:t,userAppGroups:d,handleSelectApplication:c,currentSelected:a}):null)]}))},AppGroups=({userAppGroups:t,allApps:n,apps:o,handleSelectApplication:a,currentSelected:s})=>{const l=useStyles$a$1()["classes"];return jsxRuntime.exports.jsx(ConnectedDroppable,Object.assign({droppableId:"group-list",direction:"vertical",type:"group-list"},{children:e=>jsxRuntime.exports.jsxs("div",Object.assign({ref:e.innerRef},e.droppableProps,{children:[t.map((r,e)=>{const i=[];return r.apps.forEach(t=>{var e=[...n,...o].find(e=>e.id===t);e&&i.push(e)}),r.isNew?jsxRuntime.exports.jsx(AppGroupPlaceholder,{apps:i,classes:l},r.id):jsxRuntime.exports.jsx(PublicDraggable,Object.assign({draggableId:r.id,index:e},{children:(n,e)=>jsxRuntime.exports.jsxs("div",Object.assign({className:e.isDragging?l.airborneGroup:l.appGroup,ref:n.innerRef},n.draggableProps,{children:[jsxRuntime.exports.jsx(GroupDraggingPlaceholder,{isDragging:e.isDragging,className:l.groupTitle,dragHandleProps:n.dragHandleProps,groupName:r.groupName}),jsxRuntime.exports.jsx(ConnectedDroppable,Object.assign({droppableId:r.id},{children:(e,t)=>jsxRuntime.exports.jsxs("div",Object.assign({ref:e.innerRef},e.droppableProps,{className:t.isDraggingOver?l.currentLanding:l.idleLanding},{children:[jsxRuntime.exports.jsx(GroupHandler,{groupName:r.groupName,dragHandleProps:n.dragHandleProps,groupId:r.id,isExpanded:r.isExpanded}),t.isDraggingOver&&!i.length?jsxRuntime.exports.jsx(Grid$1,Object.assign({container:!0,sx:{paddingLeft:"10px",position:"relative",marginBottom:"15px",minHeight:"110px"}},{children:jsxRuntime.exports.jsx(Runway,{classes:l})})):null,jsxRuntime.exports.jsx(Collapse$1,Object.assign({in:(r.isExpanded||void 0===r.isExpanded)&&0<i.length,timeout:"auto",unmountOnExit:!0},{children:jsxRuntime.exports.jsx(GroupApps,{groupApps:i,classes:l,snapshot:t,handleSelectApplication:a,currentSelected:s,appGroup:r})}))]}))}))]}),r.id)}),r.id)}),e.placeholder]}))}))};function ApplicationPanelDnD({selectedAppId:e,onChangeTab:t,recentApplist:n=[],applications:r=[],onClickApp:i,showAppGroups:o=!1}){var a=useStyles$b$1()["classes"],s=useSelector(preferredLanguageSelector);const l=useSelector(selectUserAppGroups)||[];s=AIWareFormatMessage(s);const c=useDispatch(),[u,d]=react$1.exports.useState(0===n.length?0:n.length<4?1:2),[p,f]=(react$1.exports.useEffect(()=>{var e=0===n.length?0:n.length<4?1:2;d(e)},[n]),react$1.exports.useState(e));function h(e){f(e),null!=t&&t(e),null!=i&&i(e)}react$1.exports.useEffect(()=>{e!==p&&f(e)},[e,p]);const m=isEqual_1("production","development")?"This application has already been added to the group":s({id:"os-app-bar-panel.user-app-groups.duplicate-app-error",defaultMessage:[{type:0,value:"This application has already been added to the group"}]});react$1.exports.useEffect(()=>{o&&c(fetchUserAppGroupsStart())},[c]);return jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getAppGroupModule()]},{children:jsxRuntime.exports.jsx(DragDropContext,Object.assign({onDragEnd:e=>{if(o){const{destination:t,draggableId:n,type:r}=e;"group-list"===r?(e=l.find(e=>e.id===n))&&t&&c(updateGroupPriority({groupId:n,newPriority:t.index,prevPriority:e.priority})):((null==(e=l.find(e=>e.id===(null===t||void 0===t?void 0:t.droppableId)))?void 0:e.apps)||[]).find(e=>e===n)?c(showMessage({content:m,severity:MessageSeverity.Error})):t&&c(addAppToGroup({destination:null===t||void 0===t?void 0:t.droppableId,appId:n}))}}},{children:jsxRuntime.exports.jsx("div",Object.assign({className:a.fullHeight},{children:jsxRuntime.exports.jsxs(Grid$1,Object.assign({container:!0,className:a.fullHeight},{children:[jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:6,className:a.fullHeight},{children:jsxRuntime.exports.jsx(RecentAppsDnD,{apps:n,allApps:r,onSelectApplication:h,selectedAppId:null,showAppGroups:o})})),jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:6,className:a.fullHeight},{children:jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(AppListDnD$1,{title:s({id:"os-app-bar-panel.name.moreApps",defaultMessage:[{type:0,value:"More Applications"}]}),type:"More",applications:r,onSelectApplication:h,selectedAppId:null,row:u,showAppGroups:o})})}))]}))}))}))}))}const useStyles$7$1=makeStyles()(e=>({root:{width:"100%",height:"calc(100% - 30px)"},tabs:{margin:e.spacing(6)},tabPanels:{width:"100%",height:"calc(100% - 80px)"},logRoot:{padding:e.spacing(0,6)},logHeader:{display:"flex",justifyContent:"space-between"},logTitleText:{paddingTop:"4px"},logContent:{marginTop:"12px"},overviewRoot:{padding:e.spacing(0,6),height:"100%"},overviewHeader:{display:"flex",justifyContent:"space-between"},overviewTitleText:{fontWeight:600},overviewContent:{width:"100%",height:"calc(100% - 50px)",display:"flex",flexDirection:"column",overflowY:"auto"},overviewLineChart:{padding:e.spacing(6,0),flex:1},overviewPieChart:{marginTop:0}})),filters$1=[{value:"all",title:"View Current Week"},{value:"no data",title:"View Current Month"}];function Overview(){var e=useStyles$7$1()["classes"];const[t,n]=react$1.exports.useState("all");return jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.overviewRoot,"data-testid":"performance-monitor-overview"},{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.overviewHeader},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"subtitle1",className:e.overviewTitleText},{children:"CPU Load"})),jsxRuntime.exports.jsx(Filter,{data:filters$1,filter:t,onFilter:e=>{n(e.target.value)}})]})),jsxRuntime.exports.jsx(Box$1,{className:e.overviewContent})]}))}const useStyles$6$1=makeStyles()(e=>({table:{minWidth:650},SdkTableCellData:{fontSize:12,color:"#000"},SdkTableCellHeader:{fontSize:12,color:"#9CA8B4",borderBottom:"none",paddingBottom:0},SdkTableCellAvatar:{width:"32px",padding:e.spacing(3,0,3,1)},smallAvatar:{width:32,height:32},SdkTableCellStatus:{color:"#219653",textTransform:"capitalize"},SdkTableCellStatusDeactived:{color:"#8D0707",textTransform:"capitalize"}}));function MuiTable({columns:t=[],data:e=[]}){const r=useStyles$6$1()["classes"];return jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsxs(Table$1,Object.assign({className:r.table,"aria-label":"simple table"},{children:[jsxRuntime.exports.jsx(TableHead$1,{children:jsxRuntime.exports.jsx(TableRow$1,{children:t.map((e,t)=>jsxRuntime.exports.jsx(TableCell$1,Object.assign({classes:{root:r.SdkTableCellHeader},align:e.align},{children:e.label}),t))})}),jsxRuntime.exports.jsx(TableBody$1,{children:e.map((n,e)=>jsxRuntime.exports.jsx(TableRow$1,{children:t.map((e,t)=>"avatar"===e.value?jsxRuntime.exports.jsx(TableCell$1,Object.assign({padding:"checkbox",classes:{root:classNames(r.SdkTableCellData,r.SdkTableCellAvatar)},align:"right"},{children:jsxRuntime.exports.jsx(Avatar$1,{alt:"",src:n[e.value],className:r.smallAvatar})}),t):"status"===e.value?jsxRuntime.exports.jsx(TableCell$1,Object.assign({padding:"checkbox",classes:{root:r.SdkTableCellData},align:e.align},{children:jsxRuntime.exports.jsx("span",Object.assign({className:"deactived"===n[e.value]||"failed"===n[e.value]?r.SdkTableCellStatusDeactived:r.SdkTableCellStatus},{children:n[e.value]}))}),t):jsxRuntime.exports.jsx(TableCell$1,Object.assign({classes:{root:r.SdkTableCellData},align:e.align},{children:n[e.value]}),t))},e))})]}))})}const data$1=[1,2,3,4,5,6,7,8].map(e=>[{name:"LogoGrab - V3F - "+e,engineId:"0006676754"+e,jobId:"20104106_6WnM4rGlXj",status:"Pending",duration:"1s",appName:"Attribute"}]),columns=[{value:"name",label:"Engine Name",align:"left"},{value:"engineId",label:"Engine ID",align:"left"},{value:"jobId",label:"Job ID",align:"left"},{value:"status",label:"Status",align:"left"},{value:"duration",label:"Time",align:"left"},{value:"appName",label:"App Name",align:"left"}],filters=[{value:"all",title:"View All Applications"},{value:"no data",title:"Active Applications"}];function PerformanceLogs(){var e=useStyles$7$1()["classes"];const[t,n]=react$1.exports.useState("all");return jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.logRoot,"data-testid":"performance-monitor-logs"},{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.logHeader},{children:[jsxRuntime.exports.jsx(Filter,{data:filters,filter:t,onFilter:e=>{n(e.target.value)}}),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:e.logTitleText},{children:"Last 24 Hours"}))]})),jsxRuntime.exports.jsx(Box$1,Object.assign({className:e.logContent},{children:jsxRuntime.exports.jsx(MuiTable,{columns:columns,data:data$1})}))]}))}const Resources=()=>jsxRuntime.exports.jsx("div",Object.assign({"data-testid":"performance-monitor-resources"},{children:"Resources"}));function PerformanceErrors(){return jsxRuntime.exports.jsx("div",Object.assign({"data-testid":"performance-monitor-errors"},{children:"Performance Errors"}))}const tabsList$1=[{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.xgDIjO",defaultMessage:"Overview",description:"tab label: Overview"}),disabled:!1},{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.NXAxMt",defaultMessage:"Logs",description:"tab label: Logs"}),disabled:!1},{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.Mxysi8",defaultMessage:"Resources",description:"tab label: Resources"}),disabled:!0},{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.Qj95LF",defaultMessage:"Errors",description:"tab label: Errors"}),disabled:!0}];function PerformanceMonitor(){var e=useStyles$7$1()["classes"];const[t,n]=react$1.exports.useState(0);return jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.root,"data-testid":"performance-monitor"},{children:[jsxRuntime.exports.jsx(Box$1,Object.assign({className:e.tabs},{children:jsxRuntime.exports.jsx(CustomTabs,{selectedId:t,onChangeTab:e=>{n(Number(e))},tabsList:tabsList$1})})),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.tabPanels},{children:[jsxRuntime.exports.jsx(TabPanel,Object.assign({value:t,index:0},{children:jsxRuntime.exports.jsx(Overview,{})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:t,index:1},{children:jsxRuntime.exports.jsx(PerformanceLogs,{})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:t,index:2},{children:jsxRuntime.exports.jsx(Resources,{})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:t,index:3},{children:jsxRuntime.exports.jsx(PerformanceErrors,{})}))]}))]}))}const useStyles$5$2=makeStyles()(e=>({root:{display:"flex",justifyContent:"center"},changeAvatarIcon:{color:"#121212 !important",backgroundColor:"#ffffff !important",padding:e.spacing(1.2)+" !important","&:hover":{backgroundColor:"#ffffff !important"}},avatarLarge:{color:e.palette.secondary.main,backgroundColor:"#ffffff !important",fontSize:"30px !important",width:"84px !important",height:"84px !important",border:"5px solid #E8E8E8"}})),AvatarProfile=({avatar:e,sortName:t,onEditAvatarClick:n,loadingStatus:r})=>{var i=useStyles$5$2()["classes"];return jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("div",Object.assign({className:i.root},{children:jsxRuntime.exports.jsx(Badge$1,Object.assign({"data-test":"dt-button-upload-avatar-icon",overlap:"circular","data-testid":"dt-button-upload-avatar-icon",anchorOrigin:{vertical:"bottom",horizontal:"right"},badgeContent:jsxRuntime.exports.jsx(IconButton$1,Object.assign({color:"primary","aria-label":"upload picture",className:i.changeAvatarIcon,onClick:()=>{n()},"data-test":"app-bar-update-avatar",size:"large","data-testid":"app-bar-update-avatar"},{children:jsxRuntime.exports.jsx("img",{src:img$1d,alt:""})}))},{children:"loading"===r?jsxRuntime.exports.jsx(CircularProgress$1,{}):e?jsxRuntime.exports.jsx(Avatar$1,{"data-test":"dt-user-avatar-image",src:e,className:i.avatarLarge}):jsxRuntime.exports.jsx(Avatar$1,Object.assign({className:i.avatarLarge},{children:null==t?void 0:t.toUpperCase()}))}))}))})},useStyles$4$2=makeStyles()(e=>({container:{marginTop:e.spacing(4),padding:e.spacing(4,4),textAlign:"center",border:"0.5px solid #D5DFE9",borderRadius:e.spacing(2)},text:{marginTop:e.spacing(3)},icon:{display:"inline !important"}})),NullState=()=>{var e=useStyles$4$2()["classes"];return jsxRuntime.exports.jsxs("div",Object.assign({className:e.container},{children:[jsxRuntime.exports.jsx(Icon$1,Object.assign({className:e.icon},{children:jsxRuntime.exports.jsx(NoLink,{fontSize:"large"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:e.text},{children:SHARED_TEXT$1.nullState()})),jsxRuntime.exports.jsx(Box$1,{mb:9})]}))},ErrorState$1=({onRetry:e})=>{var t=useStyles$4$2()["classes"];return jsxRuntime.exports.jsxs("div",Object.assign({className:t.container},{children:[jsxRuntime.exports.jsx(Icon$1,Object.assign({className:t.icon},{children:jsxRuntime.exports.jsx(AlarmTwo,{fontSize:"large"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:t.text,"data-test":"account-linking-error-message"},{children:SHARED_TEXT$1.errorState()})),jsxRuntime.exports.jsx(Box$1,{mt:4}),jsxRuntime.exports.jsx(Button$1,Object.assign({variant:"text",size:"large","data-test":"account-linking-retry-btn",onClick:e},{children:SHARED_TEXT$1.retry()}))]}))};var useStyles$3$3=makeStyles()(e=>({accountLinkingLabel:{fontWeight:"normal",userSelect:"none"},openIdLogo:{width:e.spacing(5),height:e.spacing(5),backgroundColor:"#ffffff",color:"#555F7C"},listAvatar:{minWidth:"45px"},openIdContainer:{marginTop:e.spacing(3)},openIdItem:{padding:e.spacing(3)+"px 0px"},openIdTextContainer:{marginLeft:e.spacing(3.5),display:"inline-block",verticalAlign:"top"},secondaryAction:{right:"0"},linkBtn:{textTransform:"capitalize"},linkIcon:{marginRight:e.spacing(1),color:e.palette.primary.main},dialogTitle:{padding:`${e.spacing(6)} ${e.spacing(6)} ${e.spacing(1)}px !important `},dialogContent:{padding:`${e.spacing(1)} ${e.spacing(6)} !important `},dialogTitleText:{fontWeight:600},dialogAction:{padding:e.spacing(4)},displayNone:{display:"none"},displayInlineBlock:{display:"inline-block"}}));const OpenIdConnectorButton=({isConnected:e,onLink:t,onUnlink:n})=>{var r=useStyles$3$3()["classes"];return jsxRuntime.exports.jsx("div",{children:e?jsxRuntime.exports.jsx(Button$1,Object.assign({className:r.linkBtn+" "+r.displayNone,variant:"text","data-test":"account-linking-unlink-btn",onClick:n},{children:SHARED_TEXT$1.buttonUnlink()})):jsxRuntime.exports.jsxs(Button$1,Object.assign({variant:"outlined",color:"primary",className:r.linkBtn,"data-test":"account-linking-link-btn",onClick:t},{children:[jsxRuntime.exports.jsx(default_1$7,{className:r.linkIcon}),SHARED_TEXT$1.buttonLink()]}))})};function OpenIdConnectors({openIdItems:i,onOpenUnlinkModal:o,onClickOpenIdUrl:a,isOpenIdConnected:s}){const l=useStyles$3$3()["classes"];return jsxRuntime.exports.jsx(List$2,{children:i.map((e,t)=>{var{name:n,loginButtonStyle:r}=e,r=null==r?void 0:r.btnLogo;return jsxRuntime.exports.jsxs(react$1.exports.Fragment,{children:[jsxRuntime.exports.jsxs(ListItem$1,Object.assign({className:l.openIdItem},{children:[jsxRuntime.exports.jsx(ListItemAvatar$1,Object.assign({className:l.listAvatar},{children:jsxRuntime.exports.jsx(Avatar$1,Object.assign({className:l.openIdLogo,src:r},{children:jsxRuntime.exports.jsx(OrgFilled,{})}))})),jsxRuntime.exports.jsx(ListItemText$1,{primary:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:25<n.length?n:"",placement:"bottom-end"},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:l.accountLinkingLabel},{children:25<n.length?n.substring(0,25)+"...":n}))}))}),jsxRuntime.exports.jsx(ListItemSecondaryAction$1,Object.assign({className:l.secondaryAction},{children:jsxRuntime.exports.jsx(OpenIdConnectorButton,{isConnected:s(e.connectId),onLink:()=>a(e),onUnlink:()=>o(e)})}))]})),t!==i.length-1&&jsxRuntime.exports.jsx(Divider$1,{})]})})})}const LoaderSkeletonItem$1=()=>{var e=useStyles$3$3()["classes"];return jsxRuntime.exports.jsxs(ListItem$1,Object.assign({className:e.openIdItem},{children:[jsxRuntime.exports.jsx(ListItemAvatar$1,Object.assign({className:e.listAvatar},{children:jsxRuntime.exports.jsx(Skeleton$1,{variant:"circular",width:25,height:25})})),jsxRuntime.exports.jsx(ListItemText$1,{children:jsxRuntime.exports.jsx(Skeleton$1,{variant:"text",width:150,height:21})}),jsxRuntime.exports.jsx(ListItemSecondaryAction$1,Object.assign({className:e.secondaryAction},{children:jsxRuntime.exports.jsx(Skeleton$1,{variant:"rectangular",width:87,height:35})}))]}))},LoaderSkeleton=()=>jsxRuntime.exports.jsxs(List$2,{children:[jsxRuntime.exports.jsx(LoaderSkeletonItem$1,{}),jsxRuntime.exports.jsx(Divider$1,{}),jsxRuntime.exports.jsx(LoaderSkeletonItem$1,{}),jsxRuntime.exports.jsx(Divider$1,{}),jsxRuntime.exports.jsx(LoaderSkeletonItem$1,{})]}),namespace$2$2="openId",selectOpenIdConnectors=e=>{return null==(e=null==e?void 0:e[namespace$2$2])?void 0:e.openIdConnectors},selectConnectedOpenIds=e=>{return null==(e=null==e?void 0:e[namespace$2$2])?void 0:e.connectedOpenIds},selectLoadingStatus$1=e=>{return null==(e=null==e?void 0:e[namespace$2$2])?void 0:e.status},GET_OPEN_ID_CONNECTORS=`aiware/${namespace$2$2}/get open id connectors`,GET_OPEN_ID_SUCCESS=`aiware/${namespace$2$2}/get open id connectors success`,GET_CONNECTED_OPEN_ID_SUCCESS=`aiware/${namespace$2$2}/get connected open id connectors success`,GET_OPEN_ID_ERROR=`aiware/${namespace$2$2}/get open id connectors error`;function getOpenIdConnectors(){return{type:GET_OPEN_ID_CONNECTORS}}function getOpenIdConnectorSuccess(e){return{type:GET_OPEN_ID_SUCCESS,payload:{data:e}}}function getConnectedOpenIdsSuccess(e){return{type:GET_CONNECTED_OPEN_ID_SUCCESS,payload:{data:e}}}function getOpenIdConnectorError(e){return{type:GET_OPEN_ID_ERROR,payload:{message:e}}}const AccountLinking=({openIdConnectors:e})=>{const t=useDispatch(),[n,r]=react$1.exports.useState(!1),[i,o]=react$1.exports.useState(!1),[a,s]=react$1.exports.useState(null);const[l,c]=react$1.exports.useState({}),[u,d]=react$1.exports.useState(),p=useSelector(selectLoadingStatus$1)||"",f=useSelector(selectConnectedOpenIds)||[];var h=useStyles$3$3()["classes"];const m=e=>{c(e),r(!0)};var g=()=>{r(!1)},y=()=>{o(!1)};const v=()=>{t(getOpenIdConnectors())},x=(useInterval(()=>{t(getOpenIdConnectors())},a),e=>{c(e);e=window.open(e.loginUrl);d(e),s(2e3)}),$=react$1.exports.useCallback(t=>f.some(e=>e.connectId===t),[f]);react$1.exports.useEffect(()=>{""!==l.connectId&&null!==a&&$(l.connectId)&&(s(null),null!==u&&void 0!==u&&u.close(),o(!0))},[$,t]);return jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:h.accountLinkingLabel,"data-test":"account-linking-label"},{children:SHARED_TEXT$1.accountLinkingLabel()})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:SHARED_TEXT$1.accountLinkingDescription()})),"pending"===p?jsxRuntime.exports.jsx(LoaderSkeleton,{}):"failure"===p?jsxRuntime.exports.jsx(ErrorState$1,{onRetry:v}):0===e.length?jsxRuntime.exports.jsx(NullState,{}):jsxRuntime.exports.jsx(OpenIdConnectors,{openIdItems:e,onOpenUnlinkModal:m,onClickOpenIdUrl:x,isOpenIdConnected:$}),jsxRuntime.exports.jsxs(Dialog$1,Object.assign({open:n,maxWidth:"xs",onClose:g,"aria-labelledby":"unlink-dialog-title","aria-describedby":"unlink-dialog-description"},{children:[jsxRuntime.exports.jsx(DialogTitle$1,Object.assign({id:"unlink-dialog-title","data-test":"account-linking-unlink-dialog-title",className:h.dialogTitle},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h2",className:h.dialogTitleText},{children:SHARED_TEXT$1.unlinkDialogTitle()}))})),jsxRuntime.exports.jsx(DialogContent$1,Object.assign({className:h.dialogContent},{children:jsxRuntime.exports.jsx(DialogContentText$1,Object.assign({id:"unlink-dialog-description"},{children:SHARED_TEXT$1.unlinkDialogContent(l.name)}))})),jsxRuntime.exports.jsxs(DialogActions$1,Object.assign({className:h.dialogAction},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:g,variant:"text",size:"large",className:h.linkBtn,"data-test":"account-linking-unlink-dialog-cancel-btn"},{children:SHARED_TEXT$1.unlinkDialogCancel()})),jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:g,size:"large",variant:"contained",color:"primary",className:h.linkBtn,"data-test":"account-linking-unlink-dialog-confirm-btn"},{children:SHARED_TEXT$1.unlinkDialogConfirm()}))]}))]})),jsxRuntime.exports.jsxs(Dialog$1,Object.assign({open:i,maxWidth:"xs",onClose:y,"aria-labelledby":"success-dialog-title","aria-describedby":"success-dialog-description"},{children:[jsxRuntime.exports.jsx(DialogTitle$1,Object.assign({id:"success-dialog-title",className:h.dialogTitle,"data-test":"account-linking-success-dialog-title"},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h2",className:h.dialogTitleText},{children:SHARED_TEXT$1.successDialogTitle()}))})),jsxRuntime.exports.jsx(DialogContent$1,Object.assign({className:h.dialogContent},{children:jsxRuntime.exports.jsx(DialogContentText$1,Object.assign({id:"success-dialog-description"},{children:SHARED_TEXT$1.successDialogContent(l.name)}))})),jsxRuntime.exports.jsx(DialogActions$1,Object.assign({className:h.dialogAction},{children:jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:y,size:"large",variant:"contained",color:"primary",className:h.linkBtn,"data-test":"account-linking-success-dialog-confirm-btn"},{children:SHARED_TEXT$1.successDialogConfirm()}))}))]}))]})};var useStyles$2$4=makeStyles()(e=>({personalProfileContainer:{overflowY:"auto"},firstBox:{paddingTop:e.spacing(6),textAlign:"center",borderBottom:"0.5px solid "+e.palette.divider},loggedBox:{fontWeight:400,paddingTop:e.spacing(2),paddingBottom:e.spacing(5)},email:{color:e.palette.primary.main},logoutBox:{paddingBottom:e.spacing(8)},btnLogin:{textTransform:"capitalize",fontSize:"14px",lineHeight:"19px",padding:e.spacing(1,7)},secondBox:{padding:e.spacing(5,6),"& div":{height:"auto !important"}},headerBox:{display:"flex"},editIconBox:{margin:e.spacing(0,-2.4,0,0)},descBox:{fontSize:"14px",color:e.palette.secondary.main},formBox:{marginTop:e.spacing(4)},formItem:{borderBottom:"0.5px solid "+e.palette.divider,marginBottom:e.spacing(4)},formItemPw:{marginBottom:e.spacing(4)+" !important"},titleItem:{color:e.palette.text.disabled,marginBottom:e.spacing(2),cursor:"default"},valueItem:{fontWeight:"normal",color:e.palette.text.secondary,marginBottom:e.spacing(2)},disabledText:{opacity:.6},lastUpdate:{color:"#9CA8B4"},reset:{color:e.palette.primary.main,opacity:.9,marginTop:"35px",cursor:"pointer"},passwordBox:{display:"flex",justifyContent:"space-between",alignItems:"center"},iconResetPw:{margin:"-18px -12px 0 0"},textField:{marginLeft:0,marginRight:0,marginTop:0,marginBottom:"30px",width:"100%"},actionForm:{padding:0,marginBottom:e.spacing(4)},inputBase:{padding:e.spacing(3.4,2.8)},notchedOutline:{"& legend":{height:"16px"}},btnAction:{textTransform:"capitalize",fontSize:"14px",lineHeight:"19px"},btnSave:{marginLeft:e.spacing(1.6)},btnActionCancel:{color:e.palette.secondary.main},pwResetTitle:{color:"#D43060 !important"},pwResetDes1:{marginBottom:"20px"},mainTitleText:{color:e.palette.text.secondary,userSelect:"none",fontSize:"18px",lineHeight:"23px",letterSpacing:"0.25px",textTransform:"uppercase"},contentUserView:{height:"100%",textAlign:"left",position:"relative"},headerDrawer:{padding:e.spacing(3,6),display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider},contentEditAvatar:{padding:e.spacing(6)},areaUpload:{background:e.palette.background.default,textAlign:"center",height:"300px",border:"1px solid "+e.palette.divider,boxSizing:"border-box",borderRadius:"4px",padding:e.spacing(10)},descDrag:{fontSize:"16px",color:"#828282",marginBottom:e.spacing(4)},descDrag2:{color:"#828282",margin:e.spacing(4,0)},btnSelectPhoto:{textTransform:"capitalize",fontSize:"14px",lineHeight:"19px"},recentlyBox:{marginTop:e.spacing(4)},recentlyText:{margin:e.spacing(2,0)},imgRecently:{width:"113px",height:"113px",background:"#C4C4C4",borderRadius:"4px"},imgRecentlyRow:{display:"flex",justifyContent:"space-between",marginBottom:"20px"},resetBiometric:{marginTop:e.spacing(7)},actionButton:{},inputFile:{display:"none !important"},imageGrid:{display:"flex",alignItems:"center",justifyContent:"center",marginBottom:e.spacing(4)},dragging:{filter:"blur(2px)"},currentlyLoggedIn:{fontWeight:"normal",color:e.palette.info.main,lineHeight:e.spacing(3.8),display:"flex",flexDirection:"column",cursor:"default"},manageBasicInfoLabel:{fontWeight:"normal",cursor:"default"},tabsParent:{"& div":{padding:e.spacing(0,0,0,1.6),borderBottom:"none"},"& .Sdk-MuiTab-root.Mui-selected":{color:e.palette.text.primary,fontWeight:600}},editProfilePictureContainer:{height:"calc(100vh - 60px)",display:"flex",flexDirection:"column",position:"relative"},editProfilePictureFooterButtons:{right:"30px",bottom:"30px",position:"absolute"}})),useStyles$1$4=makeStyles()(e=>({settingsHeader:{fontWeight:"normal",cursor:"default"},topMargin:{marginTop:"30px"},fullWidth:{width:"100%"},inputLabel:{fontFamily:"Nunito",fontWeight:300,display:"block",fontSize:14,color:"#5C6269",marginBottom:6},disclaimerText:{fontWeight:400,display:"block",fontSize:12,color:"#9CA8B4",marginTop:12}}));const ProfileSettings=({onPreferredLanguageChange:t,selectedLanguage:e})=>{const[n,r]=react$1.exports.useState("");var i=useStyles$1$4()["classes"],o=(react$1.exports.useEffect(()=>{r(e)},[e]),langs.map(({locale:e,name:t})=>({value:e,name:t})));return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:i.settingsHeader},{children:SHARED_TEXT$1.settingsHeader()})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:SHARED_TEXT$1.settingsSubHeader()})),jsxRuntime.exports.jsxs(FormControl$1,Object.assign({className:i.fullWidth+" "+i.topMargin},{children:[jsxRuntime.exports.jsx("label",Object.assign({className:i.inputLabel,htmlFor:"personal-profile-settings-preferred-language"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.preferredLanguage",defaultMessage:"Preferred Language",description:"Language selection label"})})),jsxRuntime.exports.jsx(Select$1,Object.assign({id:"personal-profile-settings-preferred-language",className:""+i.fullWidth,value:n,onChange:function(e){e=e.target.value,r(e),t(e)}},{children:null==o?void 0:o.map(e=>jsxRuntime.exports.jsx(MenuItem$1,Object.assign({value:null==e?void 0:e.value},{children:null==e?void 0:e.name})))})),jsxRuntime.exports.jsx(Typography$1,Object.assign({className:i.disclaimerText,variant:"subtitle1"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.preferredLanguageDisclaimer",defaultMessage:"Not all products within aiWARE may support your preferred language selection. If you choose a primary language that isn’t available, you may not see it reflected in the product you are currently viewing.",description:"Disclaimer text for preferred language"})}))]}))]})},tabsList$2=[{label:SHARED_TEXT$1.basicInfoTabLabel(),disabled:!1,id:"Basic Info"},{label:SHARED_TEXT$1.accountLinkingTabLabel(),disabled:!1,id:"Account Linking"},{label:SHARED_TEXT$1.settingsTabLabel(),disabled:!1,id:"Settings"}],PersonalProfile=({currentUser:e,handleResetBiometric:t,handleResetPassword:n,handleLogout:r,handleUpdateProfile:i,handleUploadAvatar:o,avatarHistory:a=[],enableResetBiometric:s=!1,loadingStatus:l})=>{var c;const u="EDIT_PROFILE_PICTURE";var d=useStyles$2$4()["classes"];const p=useDispatch();var f=useSelector(userSelector$2),f=null==f?void 0:f.scimConnectId,h=["us-fed-1","us-fed-2"].find(e=>window.location.href.includes(e)),m=useSelector(selectOpenIdConnectors)||[],g=m.some(e=>e.required),h=useSelector(hidePasswordResetSelector)||h||f||g||!1,f=useSelector(preferredLanguageSelector)||"en";const[y,v]=react$1.exports.useState({firstName:"",lastName:"",phoneNumber:"",email:""}),[x,$]=react$1.exports.useState({firstName:"",lastName:"",phoneNumber:""}),[b,C]=react$1.exports.useState(!1),[S,w]=react$1.exports.useState(null),[_,T]=react$1.exports.useState(!1),[E,j]=react$1.exports.useState(!1),[R,I]=react$1.exports.useState(0);var g=useSelector(userAuthStatusSelector),O=AIWareFormatMessage(f);react$1.exports.useEffect(()=>{e&&k(e)},[e]),react$1.exports.useEffect(()=>{p(getOpenIdConnectors())},[p]);const k=e=>{var{firstName:e,lastName:t,imageUrl:n,userSettings:r}=e,r=null==r?void 0:r.find(e=>"phoneNumber"===e.key);v({firstName:e||"",lastName:t||"",phoneNumber:(null==r?void 0:r.value)||"",email:""}),n&&w(n)};var A=react$1.exports.useCallback(()=>{null!=e&&e.email&&(T(!1),n(null==e?void 0:e.email))},[e,n]);var M=n=>e=>{const t=e.target.value;v(e=>Object.assign(Object.assign({},e),{[n]:t})),$(e=>Object.assign(Object.assign({},e),{[n]:""}))};const L=()=>{p(hidePanel$1(u))},P=e=>{o(e),setTimeout(()=>{p(hidePanel$1(u))},500)};g=[AuthStatus.LOGGING_OUT,AuthStatus.LOGGED_OUT].includes(g);return jsxRuntime.exports.jsxs("div",Object.assign({className:d.personalProfileContainer},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:d.firstBox},{children:[jsxRuntime.exports.jsx(AvatarProfile,{avatar:S,sortName:""+((null==(c=y.firstName)?void 0:c.substr(0,1))||"")+((null==(c=y.lastName)?void 0:c.substr(0,1))||""),onEditAvatarClick:()=>{var e={name:"EDIT_PROFILE_PICTURE",config:{name:"Veritone",dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE",onClose:L,onSaveAvatar:P,avatarHistory:a}},t={panelId:u,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,withTab:!1,marginStart:490,width:450,siblingPanelId:"PERSONAL_PANEL",parentPanelId:"PERSONAL_PANEL",dimmed:0,dimmedStatus:"dimParent"};p(mountPanel$1({panelId:u,microFrontend:e,panelConfig:t}))},loadingStatus:l}),jsxRuntime.exports.jsx("div",Object.assign({className:d.loggedBox},{children:jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"body2",className:d.currentlyLoggedIn},{children:[jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.ch1heq",defaultMessage:"Currently logged in as:",description:"personal profile panel currently logged in label"})," ",jsxRuntime.exports.jsx("span",Object.assign({"data-test":"Currently-logged-in-as-email",className:d.email},{children:null==e?void 0:e.email}))]}))})),jsxRuntime.exports.jsx("div",Object.assign({className:d.logoutBox},{children:jsxRuntime.exports.jsx(LoadingButton$1,Object.assign({onClick:r,variant:"outlined",color:"primary","data-test":"dt-button-logout",className:d.btnLogin,loading:g},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.bRcFCr",defaultMessage:"Logout",description:"label of logout button on profile panel"})}))})),jsxRuntime.exports.jsx("div",Object.assign({className:d.tabsParent},{children:jsxRuntime.exports.jsx(CustomTabs,{selectedId:R,onChangeTab:e=>{I(e)},tabsList:tabsList$2})}))]})),jsxRuntime.exports.jsxs("div",Object.assign({className:d.secondBox},{children:[jsxRuntime.exports.jsx(TabPanel,Object.assign({value:R,index:0},{children:jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:d.headerBox},{children:[jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:d.manageBasicInfoLabel},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.5oScQa",defaultMessage:"Manage Your Basic Information",description:"label of manage basic infomation container"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.DjVGBt",defaultMessage:"Basic info, like your name and photo, that you use on Veritone services.",description:"description of manage basic infomation container"})}))]}),jsxRuntime.exports.jsx("div",Object.assign({className:d.editIconBox},{children:!b&&jsxRuntime.exports.jsx(IconButton$1,Object.assign({id:"button-edit",onClick:()=>{j(!1),T(!1),C(!0)},size:"large"},{children:jsxRuntime.exports.jsx("img",{src:img$1a,alt:""})}))}))]})),jsxRuntime.exports.jsxs("div",Object.assign({className:d.formBox},{children:[b?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(TextField$1,{id:"firstName",label:O({id:"os-app-bar-panel.firstName",defaultMessage:[{type:0,value:"First Name"}]}),variant:"outlined",className:d.textField,value:null===y||void 0===y?void 0:y.firstName,onChange:M("firstName"),margin:"normal",error:""!==x.firstName,helperText:x.firstName,InputProps:{classes:{input:d.inputBase,notchedOutline:d.notchedOutline}}}),jsxRuntime.exports.jsx(TextField$1,{id:"lastName",label:O({id:"os-app-bar-panel.lastName",defaultMessage:[{type:0,value:"Last Name"}]}),variant:"outlined",className:d.textField,value:null===y||void 0===y?void 0:y.lastName,onChange:M("lastName"),margin:"normal",error:""!==x.lastName,helperText:x.lastName,InputProps:{classes:{input:d.inputBase,notchedOutline:d.notchedOutline}}}),jsxRuntime.exports.jsx(TextField$1,{id:"phoneNumber",label:O({id:"os-app-bar-panel.phone",defaultMessage:[{type:0,value:"Phone"}]}),variant:"outlined",className:d.textField,value:null===y||void 0===y?void 0:y.phoneNumber,onChange:M("phoneNumber"),margin:"normal",error:""!==x.phoneNumber,helperText:x.phoneNumber,InputProps:{classes:{input:d.inputBase,notchedOutline:d.notchedOutline}}})]}),jsxRuntime.exports.jsxs(DialogActions$1,Object.assign({className:d.actionForm},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:()=>{e&&k(e),C(!1)},color:"primary",id:"button-cancel-edit",className:classNames(d.btnAction,d.btnActionCancel)},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.qpPFGp",defaultMessage:"Cancel",description:"label of cancel button on profile panel"})})),jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:function(){(()=>{let e=!0;return y.firstName||($(Object.assign(Object.assign({},x),{firstName:"This field is required."})),e=!1),y.lastName||($(Object.assign(Object.assign({},x),{lastName:"This field is required."})),e=!1),y.phoneNumber&&!/^\+?(\d){6,}$/.test(y.phoneNumber.toLowerCase())&&($(Object.assign(Object.assign({},x),{phoneNumber:"Invalid phone number."})),e=!1),e})()&&(i(y),C(!1))},"data-test":"button-save-edit","data-testid":"button-save-edit",color:"primary",variant:"contained",className:d.btnAction},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.C1oyBr",defaultMessage:"Save",description:"label of save button on profile panel"})}))]}))]}):jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:d.formItem},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:d.titleItem},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.a5aLpI",defaultMessage:"Name",description:"label of name field on profile panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":"profile-panel-name",variant:"body1",className:d.valueItem},{children:`${(null===y||void 0===y?void 0:y.firstName)||""} `+((null===y||void 0===y?void 0:y.lastName)||"")}))]})),(null===y||void 0===y?void 0:y.phoneNumber)&&jsxRuntime.exports.jsxs("div",Object.assign({className:d.formItem},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:d.titleItem},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.73xPqY",defaultMessage:"Phone",description:"label of phone field on profile panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":"profile-panel-phone",variant:"body1",className:d.valueItem},{children:null===y||void 0===y?void 0:y.phoneNumber}))]}))]}),jsxRuntime.exports.jsxs("div",Object.assign({className:d.formItem},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:d.titleItem},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.zieKdP",defaultMessage:"Email",description:"label of email field on profile panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":"profile-panel-email",variant:"body1",className:classNames(d.valueItem,d.disabledText)},{children:null==e?void 0:e.email}))]})),_?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"subtitle1",className:d.pwResetTitle},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.I7feCi",defaultMessage:"Password Reset",description:"reset password label on profile panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:d.pwResetDes1},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.Zcj+4v",defaultMessage:"Veritone will send a reset password link via the email on your account.",description:"reset password description on profile panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.kk8TY8",defaultMessage:"Would you like to continue?",description:"confirm message of reset biometric on profile panel"})}))]}),jsxRuntime.exports.jsxs(DialogActions$1,Object.assign({className:d.actionForm},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:()=>{T(!1)},color:"primary","data-test":"button-cancel-reset-password","data-testid":"button-cancel-reset-password",className:classNames(d.btnAction,d.btnActionCancel)},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.hdbMmi",defaultMessage:"Cancel",description:"the label of cancel button"})})),jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:A,"data-test":"button-reset-password","data-testid":"button-reset-password",color:"primary",variant:"contained",className:d.btnAction},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.ZXvsuR",defaultMessage:"Reset",description:"the label of reset button"})}))]}))]}):jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[!h&&jsxRuntime.exports.jsxs("div",Object.assign({className:classNames(d.formItem,d.formItemPw)},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:d.titleItem},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.uIEJAQ",defaultMessage:"Password",description:"label of pasword field on profile panel"})})),jsxRuntime.exports.jsxs("div",Object.assign({className:d.passwordBox},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:d.valueItem},{children:"********"})),!h&&jsxRuntime.exports.jsx(IconButton$1,Object.assign({id:"btn-click-pw-reset",className:d.iconResetPw,onClick:()=>{j(!1),T(!0),C(!1)},size:"large"},{children:jsxRuntime.exports.jsx("img",{src:img$19,alt:""})}))]}))]})),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"subtitle1",className:d.lastUpdate},{children:[jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.qTqazR",defaultMessage:"Last updated",description:"last updated text label text on profile panel"})," ",(null!=e&&e.lastUpdated?DateTime_1.fromISO(null==e?void 0:e.lastUpdated):DateTime_1.local()).toFormat("LLL dd, yyyy")]}))})]})]})),E?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:d.resetBiometric},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"subtitle1",className:d.pwResetTitle},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.+DTt+G",defaultMessage:"Biometric Reset",description:"label of reset biometric container on profile panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:d.pwResetDes1},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.nzzfrY",defaultMessage:"Your Biometric Profile will be reset.",description:"description of reset biometric container on profile panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.kk8TY8",defaultMessage:"Would you like to continue?",description:"confirm message of reset biometric on profile panel"})}))]})),jsxRuntime.exports.jsxs(DialogActions$1,Object.assign({className:d.actionForm},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:()=>{j(!1)},"data-test":"button-cancel-reset-biometric",color:"primary",className:classNames(d.btnAction,d.btnActionCancel)},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.hdbMmi",defaultMessage:"Cancel",description:"the label of cancel button"})})),jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:()=>{j(!1),t()},color:"primary",variant:"contained","data-test":"button-reset-biometric",className:d.btnAction},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.ZXvsuR",defaultMessage:"Reset",description:"the label of reset button"})}))]}))]}):!_&&s&&jsxRuntime.exports.jsx("div",Object.assign({id:"click-reset-biometric",onClick:()=>{j(!0),T(!1),C(!1)}},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:d.reset},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.OlJtmF",defaultMessage:"Reset Biometric Profile",description:"label of Reset Biometric Profile on profile panel"})}))}))]})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:R,index:1},{children:jsxRuntime.exports.jsx(AccountLinking,{openIdConnectors:m})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:R,index:2},{children:jsxRuntime.exports.jsx(ProfileSettings,{selectedLanguage:f,onPreferredLanguageChange:e=>{p(updateUserLanguageStart(e))}})}))]}))]}))};function SettingPanel({currentUser:e,activities:t,activityFilter:n,onChangeActivityFilter:r,handleResetBiometric:i,handleResetPassword:o,handleLogout:a,handleUpdateProfile:s,tabId:l,recentApp:c,applications:u,onClickApp:d,handleUploadAvatar:p,avatarHistory:f}){const h=useSelector(userSelector$1),[m,g]=react$1.exports.useState("");var y=useStyles$b$1()["classes"],v=(react$1.exports.useEffect(()=>{g(h.loading)},[h]),useSelector(selectHasUserCreateRootFolderPermission)),v=gqlIntrospection.isOperationValid("fileApplication","mutation")&&v;return jsxRuntime.exports.jsxs("div",Object.assign({className:y.tabsBox},{children:[l===TabId.PERSONAL_PANEL&&jsxRuntime.exports.jsx(PersonalProfile,{currentUser:e,handleLogout:a,handleResetBiometric:i,handleResetPassword:o,handleUpdateProfile:s,handleUploadAvatar:p,avatarHistory:f,loadingStatus:m}),l===TabId.APP_PANEL&&jsxRuntime.exports.jsx(ApplicationPanelDnD,{recentApplist:c,applications:u,onClickApp:d,showAppGroups:v}),l===TabId.ACTIVITY_PANEL&&jsxRuntime.exports.jsx(ActivityPanel,{filter:n,onChangeFilter:r,data:t||[]}),l===TabId.PERFORMANCE_MONITOR&&jsxRuntime.exports.jsx(PerformanceMonitor,{})]}))}const namespace$1$2="applications",applicationSelector=e=>{return null==(e=null==e?void 0:e.aiWareHeaderBarPanel)?void 0:e[namespace$1$2]},visibleApplicationsSelector=createSelector$1([applicationSelector,selectUserOrgHideCmsFromAppList,selectUserOrgHideAdminFromAppList],({application:e},t,n)=>(e||[]).filter(e=>!(t&&"cms"===e.key||n&&"admin"===e.key))),selectAppFromStore=e=>{return null==(e=null==e?void 0:e.aiWareHeaderBarPanel)?void 0:e[namespace$1$2].selectedApp},HANDLE_CLICK_APP=`aiware/${namespace$1$2}/get handle click app`,REQUEST_GET_APPLICATION_V1=`aiware/${namespace$1$2}/request get app`,GET_APPLICATION_V1_START=`aiware/${namespace$1$2}/get app list start`,GET_APPLICATION_V1_SUCCESS=`aiware/${namespace$1$2}/get app list success`,GET_APPLICATION_V1_ERROR=`aiware/${namespace$1$2}/get app list error`,SET_APPLICATION_IN_STORE=`aiware/${namespace$1$2}/set application`;function setApplicationInStore(e){return{type:SET_APPLICATION_IN_STORE,payload:{data:e}}}function requestGetApplications(){return{type:REQUEST_GET_APPLICATION_V1,payload:{}}}function getApplicationStart(){return{type:GET_APPLICATION_V1_START}}function getApplicationSuccess(e){return{type:GET_APPLICATION_V1_SUCCESS,payload:{data:e}}}function getApplicationError(e){return{type:GET_APPLICATION_V1_ERROR,payload:{message:e}}}const initialState$2$2={application:[],message:"",status:"idle",selectedApp:null};function applicationReducer(e,t){if(void 0===e)return initialState$2$2;switch(t.type){case GET_APPLICATION_V1_START:return Object.assign(Object.assign({},e),{status:"loading"});case GET_APPLICATION_V1_SUCCESS:return Object.assign(Object.assign({},e),{application:t.payload.data,status:"success"});case GET_APPLICATION_V1_ERROR:return Object.assign(Object.assign({},e),{message:t.payload.message,status:"failure"});case SET_APPLICATION_IN_STORE:return Object.assign(Object.assign({},e),{selectedApp:t.payload.data});default:return e}}const namespace$6="activities",allActivitySeletor=e=>{return(null==(e=null==e?void 0:e.aiWareHeaderBarPanel)?void 0:e[namespace$6])||[]},today=DateTime_1.local().startOf("day"),activitySelector=createSelector([allActivitySeletor],e=>{var{records:e,filter:t}=e;return"today"===t?e.filter(e=>DateTime_1.fromISO(e.createdDateTime).hasSame(today,"day")):e}),GET_ACTIVITY=`os-app-bar-panel/${namespace$6}/get activity`,GET_ACTIVITY_SUCCESS=`os-app-bar-panel/${namespace$6}/get activity success`,UPDATE_ACTIVITY_FILTER=`os-app-bar-panel/${namespace$6}/update activity filter`;function getActivity(){return{type:GET_ACTIVITY}}function updateActivityFilter(e){return{type:UPDATE_ACTIVITY_FILTER,payload:e}}function getActivitySuccess(e){return{type:GET_ACTIVITY_SUCCESS,payload:e}}const initialState$1$2={records:[],filter:"all",fetched:!1,fetching:!1,processing:!1};function activityReducer(e,t){if(void 0===e)return initialState$1$2;switch(t.type){case GET_ACTIVITY_SUCCESS:return Object.assign(Object.assign({},e),{records:t.payload});case UPDATE_ACTIVITY_FILTER:var n=t.payload["filter"];return Object.assign(Object.assign({},e),{filter:n});default:return e}}combineReducers({[namespace$4$1]:userReducer$1,[namespace$6]:activityReducer,[namespace$1$2]:applicationReducer});const nameSpace$2="aiWareHeaderBarPanel";function*handleClickAppSaga(e){yield call$j(storeRecentApplications,e.payload)}function*getApplicationsSaga(){yield put(getApplicationStart());var e,t=yield select(rootApiSelector),n=yield select(sessionTokenSelector);let r=0;let i={totalResults:999,results:[]},o={results:[{applicationId:"init value for while loop"}]};for(;((null==(e=null===i||void 0===i?void 0:i.results)?void 0:e.length)||0)<((null===i||void 0===i?void 0:i.totalResults)||0)&&null!=(e=null===o||void 0===o?void 0:o.results)&&e.length;)o=yield call$j(getApplicationsApi,t,n,r,200),null!==i&&void 0!==i&&i.to?null!=(e=null===i||void 0===i?void 0:i.results)&&e.length&&(i.results=i.results.concat(o.results||[])):i=o,r+=200;var a=yield select(graphEndpointSelector),a=yield call$j(getApplicationLogo,a,n);const s=((null==(a=null==(a=null==a?void 0:a.data)?void 0:a.applications)?void 0:a.records)||[]).reduce((e,t)=>Object.assign(Object.assign({},e),{[t.id]:t}),{});i&&i.results?yield put(getApplicationSuccess(((null===i||void 0===i?void 0:i.results)||[]).map(e=>{var t;let n=null!=(t=s[e.applicationId])&&t.signedIconUrl?decodeURIComponent(decodeURI(null==(t=s[e.applicationId])?void 0:t.signedIconUrl)):"";return n=(n=n.replaceAll("&","&")).replaceAll("host?","host&"),{id:e.applicationId,name:e.applicationName,key:e.applicationKey,iconUrl:n||(null==(t=s[e.applicationId])?void 0:t.signedIconSvg)||e.applicationIconUrl||e.applicationIconSvg||e.signedApplicationIconUrl,description:e.applicationDescription,headerbarEnabled:(null==e?void 0:e.headerbarEnabled)||!1,applicationUrl:(null==e?void 0:e.applicationUrl)||""}}))):yield put(getApplicationError("something wrong"))}function*storeRecentApplications(e){var t=yield select(userSelector$1),t=(null==(t=null==t?void 0:t.currentUser)?void 0:t.id)||"",n=JSON.parse(localStorage.getItem("recentApplicationWithUserId")||"{}"),r=(null==n?void 0:n[t])||[],r=(r?(r=slice$4(uniq([e,...r]),0,6),localStorage.setItem("recentApplicationWithUserId",JSON.stringify(Object.assign(Object.assign({},n),{[t]:r})))):localStorage.setItem("recentApplicationWithUserId",JSON.stringify(Object.assign(Object.assign({},n),{[t]:[e]}))),yield select(switchApiSelector));window.open(r+"/"+e)}function*applicationSaga(){yield all$2([takeEvery$1(HANDLE_CLICK_APP,handleClickAppSaga),takeLatest$1(REQUEST_GET_APPLICATION_V1,getApplicationsSaga)])}function delay(t=1e3){return __awaiter$4(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function goToPage(e){window.location.href=e}const uploadingStatus={LOADING:"loading",DONE:"done"};function*getCurrentUserSaga$1(){var e,t,n=yield select(graphEndpointSelector),r=yield select(sessionTokenSelector),n=yield call$j(getCurrentUserGraphQLApi,n,r);null!=n&&n.errors&&0<(null==n?void 0:n.errors.length)&&(null==(r=n.errors[0].path)||!r.includes("userSettings"))?(console.error("getCurrentUser error"),yield put(getCurrentUserFail$1())):(r=(null==(r=null==(r=null==n?void 0:n.data)?void 0:r.me)?void 0:r.recentImageUrls)||[],t=(null==(t=null==(t=null==n?void 0:n.data)?void 0:t.myRights)?void 0:t.operations)||[],yield put(getCurrentUserSuccess$1(Object.assign(Object.assign({},(null==(e=null==n?void 0:n.data)?void 0:e.me)||{}),{organizationRole:{organizationId:get$5(n,"data.me.organization.id",""),role:t.includes("veritone.superadmin")?"superadmin":t.includes("admin.access")?"admin":"user"},organization:Object.assign({},(null==(t=null==(e=null==n?void 0:n.data)?void 0:e.me)?void 0:t.organization)||{}),roles:((null==(t=null==(e=null==n?void 0:n.data)?void 0:e.me)?void 0:t.roles)||[]).map(e=>e.appName),avatarHistory:r}))))}function*resetBiometricSaga(){var e=yield select(rootApiSelector),t=yield select(sessionTokenSelector);yield call$j(resetBiometricApi,e,t)}function*resetPasswordSaga(e){var e=(null==(e=null==e?void 0:e.payload)?void 0:e.email)||"",t=yield select(graphEndpointSelector),e=yield call$j(resetPasswordApi,e,t);!1===(null==e?void 0:e.success)?yield put(resetPasswordFail()):yield put(showMessage({content:(null==(e=null==(t=null==e?void 0:e.data)?void 0:t.createPasswordResetRequest)?void 0:e.message)||"",severity:MessageSeverity.Info}))}function*updateProfileSaga(e){const t=null==e?void 0:e.payload,n=yield select(graphEndpointSelector),r=yield select(sessionTokenSelector);var e=yield select(preferredLanguageSelector),i=yield call$j(()=>updateUserProfileApi(t,n,r)),e=AIWareFormatMessage(e);!1===(null==i?void 0:i.success)?yield put(updateProfileFail()):(yield put(getCurrentUser$1()),yield put(showMessage({content:e({id:"os-app-bar-panel.snackbar.updateProfileSuccess",defaultMessage:[{type:0,value:"Success"}]}),severity:MessageSeverity.Success})))}function*uploadAvatarSaga(e){var e=null==e?void 0:e.payload,t=yield select(graphEndpointSelector),n=yield select(sessionTokenSelector),e=yield call$j(uploadUserAvatarApi,e,t,n);yield put(uploadingAvatar(uploadingStatus.LOADING)),e&&(yield put(updateAvatar(e)))}function*updateAvatarSaga(e){var e=null==e?void 0:e.payload,t=yield select(graphEndpointSelector),n=yield select(sessionTokenSelector),r=yield select(preferredLanguageSelector),e=yield call$j(updateUserAvatarApi,e,t,n),t=AIWareFormatMessage(r);e.errors?yield put(updateProfileFail()):(yield put(showMessage({content:t({id:"os-app-bar-panel.snackbar.updateAvatarSuccess",defaultMessage:[{type:0,value:"Update avatar successfully"}]}),severity:MessageSeverity.Success})),yield put(getCurrentUser$1()),yield put(uploadingAvatar(uploadingStatus.DONE)))}function*hardLogout(){goToPage(yield select(logoutUrlSelector))}function*handleLogoutError(){var e=yield select(preferredLanguageSelector),e=AIWareFormatMessage(e);yield put(showMessage({content:e({id:"os-app-bar-panel.snackbar.logoutError",defaultMessage:[{type:0,value:"Could not log out current user"}]}),severity:MessageSeverity.Error}))}function*redirectToLogoutOrError(){var e=yield select(logoutRedirectUrlSelector);e?goToPage(e):yield call$j(handleLogoutError)}function*updateActivityStatus(){try{var e=yield select(graphEndpointSelector),t=yield select(authSelector),n=yield select(sessionTokenSelector);yield put(extendTokenRequest({token:n})),yield put(setIsIdle(!1)),yield call$j(postNotificationApi,e,null==t?void 0:t.userId,{eventType:aiwareEvent,command:notificationCommands.setCallResetIdleTimer,value:window.navigator.userAgent},!0,"json",aiwareEvent,n),yield delay(500)}catch(e){console.log(e)}}function*logoutUser(){var e,t=yield select(graphEndpointSelector),n=yield select(authSelector),r=yield select(sessionTokenSelector),i=yield select(loginUrlSelector),o=yield select(logoutRedirectUrlSelector);try{r?(window.__logout_requested=!0,yield call$j(postNotificationApi,t,null==n?void 0:n.userId,{eventType:aiwareEvent,command:null===notificationCommands||void 0===notificationCommands?void 0:notificationCommands.goToLoginPage,value:window.navigator.userAgent},!0,"json",aiwareEvent,r),yield delay(500),null!=(e=yield call$j(logoutUserApi,r,t))&&e.errors||!1===(null==e?void 0:e.success)?(yield call$j(redirectToLogoutOrError),yield put(logoutUserFail())):(yield put(logoutUserSuccess()),goToPage(o||i))):(yield put(logoutUserSuccess()),yield call$j(hardLogout))}catch(e){yield call$j(handleLogoutError),yield put(logoutUserFail()),console.log(e)}}function*userSaga$1(){yield all$2([takeEvery$1(GET_CURRENT_USER$1,getCurrentUserSaga$1),takeLatest$1(RESET_BIOMETRIC,resetBiometricSaga),takeLatest$1(RESET_PASSWORD,resetPasswordSaga),takeLatest$1(UPDATE_PROFILE,updateProfileSaga),takeLatest$1(UPLOAD__AVATAR,uploadAvatarSaga),takeLatest$1(UPDATE__AVATAR,updateAvatarSaga),takeLatest$1(LOGOUT_USER,logoutUser),takeLatest$1(UPDATE_ACTIVITY,updateActivityStatus)])}const formatActivityData=e=>{var t,{id:e,event:n,userId:r,userName:i,payload:o,createdDateTime:a}=e;return"login_succeeded"===n?{id:e,userId:r,createdDateTime:a,event:"Login succeeded",description:i+" logged in to Veritone"}:"logout_succeeded"===n?{id:e,userId:r,createdDateTime:a,event:"Logout succeeded",description:i+" successfully logged out"}:"add_user_succeeded"===n?(t=o["userName"],{id:e,userId:r,createdDateTime:a,event:"Add user succeeded",description:t+" successfully added"}):"org_updated"===n?(t=o["organizationName"],{id:e,userId:r,createdDateTime:a,event:"Org Name Changed",description:i+` updated org "${t}"`}):{id:e,userId:r,createdDateTime:a,event:"Unknown activity",description:"Unknown activity"}};function*getActivitySaga(){var e=yield call$j(getActivityApi);e.success?(e=e.data["records"],yield put(getActivitySuccess(e.map(formatActivityData)))):(e=yield select(preferredLanguageSelector),e=AIWareFormatMessage(e),yield put(showMessage({content:e({id:"os-app-bar-panel.snackbar.activityError",defaultMessage:[{type:0,value:"Something went wrong!"}]}),severity:MessageSeverity.Error})))}function*activitySaga(){yield takeEvery$1(GET_ACTIVITY,getActivitySaga)}const BOOTING$1="aiware-header-bar/booting",BOOTED$1="aiware-header-bar/booted";function*bootFunction$1(){yield take(BOOTED$1)}function*booting$1(){yield takeEvery$1(BOOTING$1,bootFunction$1)}function*rootSaga$3(){yield all$2([fork(applicationSaga),fork(userSaga$1),fork(booting$1),fork(activitySaga)])}function getAppbarPanelModule(){return{id:"os-appbar-panel",reducerMap:{[nameSpace$2]:combineReducers({users:userReducer$1,activities:activityReducer,applications:applicationReducer})},sagas:[rootSaga$3],initialActions:[getActivity(),getCurrentUser$1(),requestGetApplications()],retained:!0}}const initialState$6={openIdConnectors:[],connectedOpenIds:[],message:"",status:"idle"};function openIdConReducer(e,t){if(void 0===e)return initialState$6;switch(t.type){case GET_OPEN_ID_CONNECTORS:return Object.assign(Object.assign({},e),{status:0===e.openIdConnectors.length&&"pending"});case GET_OPEN_ID_SUCCESS:return Object.assign(Object.assign({},e),{openIdConnectors:t.payload.data,status:"idle"});case GET_CONNECTED_OPEN_ID_SUCCESS:return Object.assign(Object.assign({},e),{connectedOpenIds:t.payload.data});case GET_OPEN_ID_ERROR:return Object.assign(Object.assign({},e),{message:t.payload.message,status:"failure"});default:return e}}const getAllOpenIdConnectorApi=(e,t,n)=>__awaiter$4(void 0,void 0,void 0,function*(){try{return(yield fetch(e+"/api/admin/openid/org/"+t,{method:"GET",headers:Object.assign({"Content-Type":"application/json"},n&&{Authorization:"Bearer "+n}),credentials:"include"})).json()}catch(e){console.error(e)}}),getConnectedOpenIdConnectorApi=(e,t,n)=>__awaiter$4(void 0,void 0,void 0,function*(){try{return(yield fetch(e+"/api/admin/openid/user/"+t,{method:"GET",headers:Object.assign({"Content-Type":"application/json"},n&&{Authorization:"Bearer "+n}),credentials:"include"})).json()}catch(e){console.error(e)}});function*getOpenIdConnectorSaga(){var n=yield select(sessionTokenSelector),r=yield select(rootApiSelector),i=(yield select(userSelector$2))["userName"];if(n&&r&&i){let e={},t={};e.results=yield select(selectOpenIdConnectors);try{var o=call$j(getAllOpenIdConnectorApi,r,i,n),a=call$j(getConnectedOpenIdConnectorApi,r,i,n);0===(null===e||void 0===e?void 0:e.results.length)?[e,t]=yield all$2([o,a]):t=yield a,e&&t?(yield put(getOpenIdConnectorSuccess(e.results)),yield put(getConnectedOpenIdsSuccess(t.results))):yield put(getOpenIdConnectorError("error on loading open ids"))}catch(e){yield put(getOpenIdConnectorError("error on loading open ids"))}}else yield put(getOpenIdConnectorError("Missing token,base url or username"))}function*openIdRootSaga(){yield takeEvery$1(GET_OPEN_ID_CONNECTORS,getOpenIdConnectorSaga)}function getOpenIdModule(){return{id:"open-id",reducerMap:{[namespace$2$2]:openIdConReducer},sagas:[openIdRootSaga],initialActions:[]}}function SettingPanelComponent_({tabId:e}){const r=useDispatch(),i=useSelector(visibleApplicationsSelector);var{currentUser:t={}}=useSelector(userSelector$1)||{},{avatarHistory:n=[]}=t,o=useSelector(activitySelector)||[],a=useSelector(allActivitySeletor)["filter"];const[s,l]=react$1.exports.useState(0),[c,u]=react$1.exports.useState([]),[d,p]=react$1.exports.useState([]),f=useSelector(userRecentApplicationsSelector);const h="e4739d44-53d2-4153-b55f-5e246fc989b1"===useSelector(appIdSelector),m=useSelector(selectDesktopUrl);function g(e){r(appSwitcherHandleClick(""+e)),r(updateUserRecentApplicationsStart(""+e))}react$1.exports.useEffect(()=>{p(f)},[f]),react$1.exports.useEffect(()=>{r(requestGetApplications()),r(getActivity()),r(getCurrentUser$1())},[r]),react$1.exports.useEffect(()=>{l(e||0)},[e]),react$1.exports.useEffect(()=>{if(0<d.length&&0<i.length){var e=[];for(const n of d){var t=i.find(e=>e.id===n);t&&e.push(t)}u(e)}},[d,i]);const y={invalidUrl:isEqual_1("production","development")?"Selected Application does not have a valid destination URL":jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.desktop-app.switcher-error.invalid-url",defaultMessage:"Selected Application does not have a valid destination URL. Application URL needs to be updated in Developer - Application Details",description:"Error message when onboarded app does not have a valid URL"}),urlValidationError:isEqual_1("production","development")?"Application loading has failed. Please try again later":jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.desktop-app.switcher-error.url-validation-error",defaultMessage:"Application loading has failed. Please try again later",description:"Error message when onboarded app url validation does not pass"})};const v=useNavigate();function x(t,e){var{error:e,message:n}=function(e){let t;try{t=new URL(e)}catch(e){return{error:!0,message:y.invalidUrl}}return"https:"===t.protocol||"http:"===t.protocol?{error:!1}:{error:!0,message:y.urlValidationError}}(e);e&&n?r(showMessage({content:n,severity:MessageSeverity.Error})):(r(hidePanel$1("APPLICATION_PANEL_ID")),e=i.find(e=>e.id===t),v("/ui/app/"+(null==e?void 0:e.key)),r(setApplicationInStore(e)))}return jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsx(AIWareThemeProvider$1,{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getAppbarPanelModule(),getOpenIdModule()]},{children:jsxRuntime.exports.jsx(SettingPanel,{tabId:s,currentUser:t,activities:o,activityFilter:a,onChangeActivityFilter:function(e){r(updateActivityFilter({filter:e}))},handleResetBiometric:function(){r(resetBiometric())},handleResetPassword:function(e){r(resetPassword({email:e}))},handleLogout:function(){r(logout())},handleUpdateProfile:function(e){r(updateProfile(e))},organizationRole:get$5(t,"organizationRole",{}),recentApp:c,applications:i,onClickApp:function(t){var{headerbarEnabled:e,applicationUrl:n=""}=i.find(e=>e.id===t)||{};if(h)e?x(t,n):g(t);else if(e&&m){n=(i.find(e=>e.id===t)||{})["key"];let e="";e=n?(m.endsWith("/")?"":"/")+"ui/app/"+n:(m.endsWith("/")?"":"/")+"ui/app/"+t,window.open(m+e)}else g(t)},handleUploadAvatar:function(e){r(uploadAvatar(e))},avatarHistory:n})}))})})})}function SettingPanelComponent(e){return jsxRuntime.exports.jsx(BrowserRouter,{children:jsxRuntime.exports.jsx(SettingPanelComponent_,Object.assign({},e))})}const CropImage=({url:e,handleCroppedImage:t})=>{const n=react$1.exports.useRef();return jsxRuntime.exports.jsx("div",Object.assign({style:{padding:"10px",background:"#F8F8F8",borderRadius:"4px",border:"1px solid #D5DFE9"}},{children:jsxRuntime.exports.jsx(ReactCropper,{ref:n,src:e,style:{height:"100%",width:"100%",borderRadius:"4px",maxHeight:"300px"},dragMode:"move",viewMode:1,width:"",aspectRatio:1,guides:!0,crop:()=>{n.current&&n.current.cropper.getCroppedCanvas().toBlob(function(e){t(e)},"image/jpeg")},cropBoxMovable:!1,cropBoxResizable:!1,toggleDragModeOnDblclick:!1})}))};function EditProFilePicture({onClose:e,onSaveAvatar:t,avatarHistory:n}){const r=useStyles$2$4()["classes"],[i,o]=react$1.exports.useState(""),[a,s]=react$1.exports.useState(),[l,c]=react$1.exports.useState(!1),[u,d]=react$1.exports.useState(!1);var p=react$1.exports.useRef(null);const f=react$1.exports.useRef(0),h=react$1.exports.useRef(null);const m=e=>{h.current&&(h.current.value=""),o(e),c(!0)};return jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsxs("div",Object.assign({className:r.editProfilePictureContainer},{children:[jsxRuntime.exports.jsx("input",{accept:"image/*",className:r.inputFile,id:"icon-button-file",type:"file",onChange:e=>{e=e.target.files;if(e&&0<e.length){e=e[0];if(URL)m(URL.createObjectURL(e));else if(FileReader){const t=new FileReader;t.onload=function(){m(t.result)},t.readAsDataURL(e)}}},ref:h,"data-test":"image-upload-input","data-testid":"image-upload-input"}),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.contentUserView},{children:[jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.headerDrawer},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1",className:r.mainTitleText,"data-test":"edit-profile-picture-header"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.npW7Np",defaultMessage:"Edit Profile Picture",description:"The title of edit profile picture panel"})}))})),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.contentEditAvatar},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:classNames(u&&r.dragging),ref:p,onDragEnter:e=>{e.preventDefault(),e.stopPropagation(),f.current++,e.dataTransfer.items&&0<e.dataTransfer.items.length&&d(!0)},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),f.current--,0<f.current||d(!1)},onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDrop:e=>{if(e.preventDefault(),e.stopPropagation(),d(!1),e.dataTransfer.files&&0<e.dataTransfer.files.length){var t=e.dataTransfer.files;if(FileReader&&0<t.length){const n=new FileReader;n.onload=function(){m(n.result)},n.readAsDataURL(t[0])}e.dataTransfer.clearData(),f.current=0}}},{children:l?jsxRuntime.exports.jsx(CropImage,{url:i,handleCroppedImage:e=>{s(e)}}):jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.areaUpload},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"subtitle1",className:r.descDrag},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.LeafC8",defaultMessage:"Drag a profile photo here",description:"the label of upload file container"})})),jsxRuntime.exports.jsx(Box$1,{children:jsxRuntime.exports.jsx("img",{src:img$1B,alt:""})}),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"subtitle2",className:r.descDrag2},{children:"- or -"})),jsxRuntime.exports.jsx(Button$1,Object.assign({variant:"outlined",color:"primary",id:"on-select-photo",className:r.btnSelectPhoto,onClick:()=>{h.current&&h.current.click()},"data-test":"edit-profile-picture-upload-file-button"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.CaHXXC",defaultMessage:"Select a photo from your computer",description:"edit profile picture panel: select photo label"})}))]}))})),0<(null==n?void 0:n.length)&&jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.recentlyBox},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"subtitle1",className:r.recentlyText},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.3gg72P",defaultMessage:"Recently Used Photos",description:"the label of recently used profile picture container"})})),jsxRuntime.exports.jsx(Grid$1,Object.assign({container:!0},{children:0<n.length&&n.map(e=>jsxRuntime.exports.jsx(Grid$1,Object.assign({xs:4,item:!0,className:r.imageGrid,"data-test":"recent-profile-picture"},{children:jsxRuntime.exports.jsx("img",{className:r.imgRecently,src:e,alt:"avatar"})}),e))}))]}))]}))]})),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.actionButton+" "+r.editProfilePictureFooterButtons},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({color:"primary",onClick:()=>{o(""),s(void 0),c(!1),null!=e&&e()},className:classNames(r.btnAction,r.btnActionCancel),"data-test":"edit-profile-picture-cancel-button","data-testid":"edit-profile-picture-cancel-button"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.hdbMmi",defaultMessage:"Cancel",description:"the label of cancel button"})})),jsxRuntime.exports.jsx(Button$1,Object.assign({color:"primary",variant:"contained",id:"button-save-cropped-image",className:classNames(r.btnAction,r.btnSave),onClick:()=>{var e;a&&(e="avatar-"+(new Date).toISOString()+".jpeg",e=new File([a],e,{type:"image/jpeg"}),t(e),setTimeout(()=>{o(""),c(!1)},250))},"data-test":"edit-profile-picture-save-button"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.tcZkqy",defaultMessage:"Save",description:"label of save button in edit profile picture panel"})}))]}))]}))})}const useStyles$l=makeStyles()((e,{row:t})=>({tabsContainer:{width:"100%"},gridContainer:{display:"flex"},listContainer:{},gridItem:{display:"flex",justifyContent:"center",paddingBottom:e.spacing(1.6),"&:hover":{backgroundColor:"#EEF3F9",borderRadius:"4px"}},padding:{padding:e.spacing(0,6,3,6)},moreAppContainer:{height:`calc(100vh - ${0===t?175:1===t?275:2===t?395:500}px - 66px - 10px - 55px)`,minHeight:3===t?300:0,overflow:"overlay",overflowX:"hidden"},relativeParent:{position:"relative"},noMoreApps:{padding:e.spacing(0,9,3,9)},noSelect:{userSelect:"none",paddingTop:"16px"},gridTitle:{padding:"24px 30px 32px 30px",margin:"-5px 0 -5px","& > $noSelect":{marginBottom:15}},appItemDivider:{margin:e.spacing(0,6)}}));function AppList({title:e,selectedAppId:t,onSelectApplication:n,applications:r=[],useGrid:i=!1,row:o=0}){const a=useStyles$l({row:o})["classes"],[s,l]=react$1.exports.useState(t),[c,u]=react$1.exports.useState([]);function d(e){l(e),n(e)}function p(e,t){return e.name>t.name?1:e.name<t.name?-1:0}return react$1.exports.useEffect(()=>{var e;0<r.length&&(e=[...r].sort(p),u(e))},[r]),react$1.exports.useEffect(()=>{t!==s&&l(t)},[t,s]),jsxRuntime.exports.jsxs("div",Object.assign({className:classNames({[a.gridTitle]:i},a.tabsContainer)},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:classNames({[a.padding]:!i},a.noSelect)},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h3",sx:{marginBottom:"10px"}},{children:e}))})),i&&jsxRuntime.exports.jsx("div",Object.assign({className:a.gridContainer},{children:jsxRuntime.exports.jsx(Grid$1,Object.assign({container:!0},{children:0===r.length?jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.Xzhf45",defaultMessage:"No Applications",description:"the label no app will show if we have no application for grid view"})})):0<c.length&&c.map((e,t)=>{var{id:e=t,iconUrl:t,name:n}=e;return jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:4},{children:jsxRuntime.exports.jsx("div",Object.assign({className:a.gridItem},{children:jsxRuntime.exports.jsx(AppIcon,{type:"grid",selected:e===s,onClick:d,iconUrl:t,id:e,appName:n})}))}),e)})}))})),!i&&jsxRuntime.exports.jsx("div",Object.assign({className:a.listContainer},{children:0===r.length?jsxRuntime.exports.jsx("div",Object.assign({className:a.noMoreApps},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.dyhBih",defaultMessage:"No Applications",description:"the label no app will show if we have no application for list view"})}))})):jsxRuntime.exports.jsx("div",Object.assign({className:a.moreAppContainer},{children:0<r.length&&r.sort(p).map((e,t)=>{var{id:e=t,iconUrl:n,name:r}=e;return jsxRuntime.exports.jsxs("div",Object.assign({className:a.relativeParent},{children:[jsxRuntime.exports.jsx(AppIcon,{type:"list",selected:e===s,onClick:d,iconUrl:n,id:e,appName:r}),jsxRuntime.exports.jsx(Divider$1,{className:a.appItemDivider})]}),e+"_"+t)})}))}))]}))}var index_esm$4=Object.freeze({__proto__:null,AppList:AppList,EditProFilePicture:EditProFilePicture,VeritonePanel:SettingPanelComponent,applicationSelector:applicationSelector,getAppbarPanelModule:getAppbarPanelModule,logoutUser:logoutUser$1,requestGetApplications:requestGetApplications,selectAppFromStore:selectAppFromStore,setApplicationInStore:setApplicationInStore}),Close={},_interopRequireDefault$6=interopRequireDefault.exports,default_1$6=(Object.defineProperty(Close,"__esModule",{value:!0}),Close.default=void 0),_createSvgIcon$6=_interopRequireDefault$6(createSvgIcon$1),_jsxRuntime$6=jsxRuntime.exports,_default$6=(0,_createSvgIcon$6.default)((0,_jsxRuntime$6.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),default_1$6=Close.default=_default$6,Et=Object.create,Ye=Object.defineProperty,bt=Object.getOwnPropertyDescriptor,gt=Object.getOwnPropertyNames,yt=Object.getPrototypeOf,wt=Object.prototype.hasOwnProperty,Lt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Pt=(t,n,r,i)=>{if(n&&"object"==typeof n||"function"==typeof n)for(let e of gt(n))wt.call(t,e)||e===r||Ye(t,e,{get:()=>n[e],enumerable:!(i=bt(n,e))||i.enumerable});return t},St=(e,t,n)=>(n=null!=e?Et(yt(e)):{},Pt(!t&&e&&e.__esModule?n:Ye(n,"default",{value:e,enumerable:!0}),e)),je=Lt((e,t)=>{var n,r;r=function(e){function t(e){var t=o.get(e),n=void 0===t?e.size:t<1073741824?t+1:0;if(e.has(n))if(e.size<536870912)for(;e.has(n);)n=Math.floor(1073741824*Math.random());else{if(e.size>s)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(n);)n=Math.floor(Math.random()*s)}return i(e,n)}function n(e){var t=r(e);return e.add(t),t}var r,i,o,a,s=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,l=new WeakMap;i=function(e,t){return a.set(e,t),t},o=a=l,r=t;e.addUniqueNumber=n,e.generateUniqueNumber=t},"object"==typeof(n=e)&&typeof t<"u"?r(e):"function"==typeof define&&define.amd?define(["exports"],r):r((n=typeof globalThis<"u"?globalThis:n||self).fastUniqueNumbers={})}),M$1=(St(je()),"object"==("u"<typeof window?"undefined":typeof window)),I$1={setTimeout:M$1?setTimeout.bind(window):setTimeout,clearTimeout:M$1?clearTimeout.bind(window):clearTimeout,setInterval:M$1?setInterval.bind(window):setInterval,clearInterval:M$1?clearInterval.bind(window):clearInterval};function it(e){I$1.setTimeout=e.setTimeout,I$1.clearTimeout=e.clearTimeout,I$1.setInterval=e.setInterval,I$1.clearInterval=e.clearInterval}var Q$1={},Ae=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,Q$1[e]=Q$1[e]||[],Q$1[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){e.storageArea===window.localStorage&&e.key.substring(0,this.name.length)===this.name&&null!==e.newValue&&(e=JSON.parse(e.newValue),this.mc.port2.postMessage(e))}postMessage(e){if(this.closed)throw new Error("InvalidStateError");let t=JSON.stringify(e),n=this.name+":"+String(Date.now())+String(Math.random());window.localStorage.setItem(n,t),I$1.setTimeout(()=>{window.localStorage.removeItem(n)},500),Q$1[this.name].forEach(e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))})}close(){var e;this.closed||(this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage),e=Q$1[this.name].indexOf(this),Q$1[this.name].splice(e,1))}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}},st="u"<typeof window?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:Ae;function ot(t=0){return new Promise(e=>I$1.setTimeout(e,t))}function Te(){return Math.random().toString(36).substring(2)}var Ie=class{options;channel;token=Te();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return!(this.reApply=!0);let n=!(this.isApplying=!0),e=e=>{var{token:e,action:t}=e.data;e!==this.token&&(0===t&&e>this.token&&(n=!0),1===t)&&(n=!0)};this.channel.addEventListener("message",e);try{return this.sendAction(0),await ot(this.options.responseTime),this.channel.removeEventListener("message",e),this.isApplying=!1,n?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let i=!1,o=null;return new Promise(t=>{let n=()=>{if(!i){i=!0;try{I$1.clearInterval(o)}catch{}var e=this.intervals.indexOf(o);0<=e&&this.intervals.splice(e,1),this.channel.removeEventListener("message",r),t()}},r=(o=I$1.setInterval(()=>{this.apply().then(()=>{this.isLeader&&n()})},this.options.fallbackInterval),this.intervals.push(o),e=>{e=e.data.action;2===e&&this.apply().then(()=>{this.isLeader&&n()})});this.channel.addEventListener("message",r)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;var e=e=>{e=e.data.action;0===e&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership(),this.deferred)}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>I$1.clearInterval(e))}catch{}}}},Ee=class{channel;options;elector;token=Te();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){var t=e["channelName"];this.options=e,this.channel=new st(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new Ie(this.channel,{fallbackInterval:2e3,responseTime:100}),this.elector.waitForLeadership()),this.channel.addEventListener("message",e=>{var{action:e,token:t,data:n}=e.data;switch(e){case 3:this.registry.set(t,2);break;case 4:this.registry.delete(t);break;case 5:this.idle(t);break;case 6:this.active(t);break;case 7:this.prompt(t);break;case 8:this.start(t);break;case 9:this.reset(t);break;case 10:this.activate(t);break;case 11:this.pause(t);break;case 12:this.resume(t);break;case 13:this.options.onMessage(n)}}),this.send(3)}get isLeader(){if(this.elector)return this.elector.isLeader;throw new Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.')}prompt(e=this.token){this.registry.set(e,0);var t=[...this.registry.values()].every(e=>0===e);e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);var t=[...this.registry.values()].every(e=>2===e);e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);var t=[...this.registry.values()].some(e=>1===e);e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},at=M$1?document:null,xe=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function ct(t,n){let r;function e(...e){r&&clearTimeout(r),r=setTimeout(()=>{t(...e),r=null},n)}return e.cancel=function(){clearTimeout(r)},e}function be(n,r){let i=0;return function(...e){var t=(new Date).getTime();if(!(t-i<r))return i=t,n(...e)}}var v$1=()=>Date.now(),Z=2147483647;function se({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:n=0,element:P=at,events:N=xe,timers:D=void 0,immediateEvents:r=[],onPresenceChange:F=()=>{},onPrompt:V=()=>{},onIdle:H=()=>{},onActive:B=()=>{},onAction:U=()=>{},onMessage:i=()=>{},debounce:o=0,throttle:a=0,eventsThrottle:z=200,startOnMount:s=!0,startManually:l=!1,stopOnIdle:W=!1,crossTab:c=!1,name:G="idle-timer",syncTimers:u=0,leaderElection:q=!1,disabled:d=!1}={}){let K=react$1.exports.useRef(v$1()),Y=react$1.exports.useRef(v$1()),p=react$1.exports.useRef(null),f=react$1.exports.useRef(null),h=react$1.exports.useRef(0),m=react$1.exports.useRef(0),g=react$1.exports.useRef(0),y=react$1.exports.useRef(0),v=react$1.exports.useRef(!1),x=react$1.exports.useRef(!1),$=react$1.exports.useRef(!1),b=react$1.exports.useRef(!0),Q=react$1.exports.useRef(!1),C=react$1.exports.useRef(null),S=react$1.exports.useRef(null),w=react$1.exports.useRef(e),_=react$1.exports.useRef(0),X=(react$1.exports.useEffect(()=>{if(t&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),n&&t)throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(Z<=e)throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${Z}.`);if(Z<=t)throw new Error(`❌ The value for the promptTimeout property must fit in a 32 bit signed integer, ${Z}.`);if(Z<=n)throw new Error(`❌ The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ${Z}.`);if(e<=n)throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);n?(w.current=e-n,_.current=n):(w.current=e,_.current=t),b.current||l||d||(v.current&&(E.current(null,L),S.current)&&S.current.active(),M())},[e,t,n,l,d]),react$1.exports.useRef(W)),J=(react$1.exports.useEffect(()=>{X.current=W},[W]),react$1.exports.useRef(r)),ee=react$1.exports.useRef(P),te=react$1.exports.useRef([...new Set([...N,...r]).values()]),T=react$1.exports.useRef(d),ne=(react$1.exports.useEffect(()=>{T.current=d,b.current||(d?me():l||M())},[d]),react$1.exports.useRef(F)),re=(react$1.exports.useEffect(()=>{ne.current=F},[F]),react$1.exports.useRef(V)),ie=(react$1.exports.useEffect(()=>{re.current=V},[V]),react$1.exports.useRef(H)),E=(react$1.exports.useEffect(()=>{ie.current=H},[H]),react$1.exports.useRef(B)),oe=(react$1.exports.useEffect(()=>{E.current=B},[B]),react$1.exports.useRef(U)),j=(react$1.exports.useEffect(()=>{oe.current=U},[U]),react$1.exports.useRef(i)),R=(react$1.exports.useEffect(()=>{j.current=i},[i]),react$1.exports.useMemo(()=>{var e=(e,t)=>oe.current(e,t);return 0<o?ct(e,o):0<a?be(e,a):e},[a,o])),ae=react$1.exports.useRef(),I=(react$1.exports.useEffect(()=>{c&&u&&(ae.current=be(()=>{S.current.active()},u))},[c,u]),()=>{null!==C.current&&(I$1.clearTimeout(C.current),C.current=null)}),O=(e,t=!0)=>{I(),C.current=I$1.setTimeout(ue,e||w.current),t&&(f.current=v$1())},se=e=>{x.current||v.current||(re.current(e,L),ne.current({type:"active",prompted:!0},L)),y.current=0,g.current=v$1(),x.current=!0,O(_.current,!1)},le=()=>{I(),v.current||(ie.current(null,L),ne.current({type:"idle"},L)),v.current=!0,p.current=v$1(),X.current?A():x.current&&(g.current=0,x.current=!1)},ce=e=>{I(),(v.current||x.current)&&(E.current(e,L),ne.current({type:"active",prompted:!1},L)),x.current=!1,g.current=0,v.current=!1,h.current+=v$1()-p.current,m.current+=v$1()-p.current,k(),O()},ue=e=>{var t;if(!v.current)return R.cancel&&R.cancel(),t=v$1()-f.current,w.current+_.current<t||!(0<_.current)||x.current?void(S.current?S.current.idle():le()):void(S.current?S.current.prompt():se(e));S.current?S.current.active():ce(e)},de=e=>{var t;s||f.current||(f.current=v$1(),E.current(null,L)),R(e,L),x.current||(I(),!v.current&&J.current.includes(e.type)||(t=v$1()-f.current,v.current&&!W)||!v.current&&t>=w.current?ue(e):($.current=!1,y.current=0,g.current=0,O(),c&&u&&ae.current()))},pe=react$1.exports.useRef(de),k=(react$1.exports.useEffect(()=>{var e=Q.current;e&&A(),pe.current=0<z?be(de,z):de,e&&k()},[z,a,o,oe,c,u]),()=>{M$1&&ee.current&&(Q.current||(te.current.forEach(e=>{ee.current.addEventListener(e,pe.current,{capture:!0,passive:!0})}),Q.current=!0))}),A=(e=!1)=>{M$1&&ee.current&&(Q.current||e)&&(te.current.forEach(e=>{ee.current.removeEventListener(e,pe.current,{capture:!0})}),Q.current=!1)},M=react$1.exports.useCallback(e=>!T.current&&(I(),k(),v.current=!1,x.current=!1,$.current=!1,y.current=0,g.current=0,S.current&&!e&&S.current.start(),O(),!0),[C,v,T,w,S]),fe=react$1.exports.useCallback(e=>!T.current&&(I(),k(),Y.current=v$1(),h.current+=v$1()-p.current,m.current+=v$1()-p.current,h.current=0,v.current=!1,x.current=!1,$.current=!1,y.current=0,g.current=0,S.current&&!e&&S.current.reset(),l||O(),!0),[C,v,w,l,T,S]),he=react$1.exports.useCallback(e=>!T.current&&(I(),k(),(v.current||x.current)&&ce(),v.current=!1,x.current=!1,$.current=!1,y.current=0,g.current=0,Y.current=v$1(),S.current&&!e&&S.current.activate(),O(),!0),[C,v,x,T,w,S]),me=react$1.exports.useCallback((e=!1)=>!T.current&&!$.current&&(y.current=_e(),$.current=!0,A(),I(),S.current&&!e&&S.current.pause(),!0),[C,T,S]),ge=react$1.exports.useCallback((e=!1)=>!(T.current||!$.current||($.current=!1,x.current||k(),v.current||O(y.current),g.current&&(g.current=v$1()),S.current&&!e&&S.current.resume(),0)),[C,w,T,y,S]),ye=react$1.exports.useCallback((e,t)=>(S.current?(t&&j.current(e,L),S.current.message(e)):t&&j.current(e,L),!0),[i]),ve=react$1.exports.useCallback(()=>v.current,[v]),$e=react$1.exports.useCallback(()=>x.current,[x]),Ce=react$1.exports.useCallback(()=>S.current?S.current.isLeader:null,[S]),Se=react$1.exports.useCallback(()=>S.current?S.current.isLastActive:null,[S]),we=react$1.exports.useCallback(()=>S.current?S.current.token:null,[S]),_e=react$1.exports.useCallback(()=>{var e,t;return $.current?y.current:(t=y.current||_.current+w.current,e=f.current?v$1()-f.current:0,(t=Math.floor(t-e))<0?0:Math.abs(t))},[w,_,x,y,f]),Te=react$1.exports.useCallback(()=>Math.round(v$1()-Y.current),[Y]),je=react$1.exports.useCallback(()=>Math.round(v$1()-K.current),[K]),Re=react$1.exports.useCallback(()=>p.current?new Date(p.current):null,[p]),Ie=react$1.exports.useCallback(()=>f.current?new Date(f.current):null,[f]),Oe=react$1.exports.useCallback(()=>v.current?Math.round(v$1()-p.current+h.current):Math.round(h.current),[p,h]),ke=react$1.exports.useCallback(()=>v.current?Math.round(v$1()-p.current+m.current):Math.round(m.current),[p,m]),Ae=react$1.exports.useCallback(()=>{var e=Math.round(Te()-Oe());return 0<=e?e:0},[p,h]),Me=react$1.exports.useCallback(()=>{var e=Math.round(je()-ke());return 0<=e?e:0},[p,h]),L=(react$1.exports.useEffect(()=>{if(0<o&&0<a)throw new Error("❌ onAction can either be throttled or debounced, not both.");D&&it(D);let e=()=>{S.current&&S.current.close(),R.cancel&&R.cancel(),I(),A(!0)};return M$1&&window.addEventListener("beforeunload",e),()=>{M$1&&window.removeEventListener("beforeunload",e),S.current&&S.current.close(),R.cancel&&R.cancel(),I(),A(!0)}},[]),react$1.exports.useEffect(()=>{S.current&&S.current.close(),S.current=c?new Ee({channelName:G,leaderElection:q,onPrompt:()=>{se()},onIdle:()=>{le()},onActive:()=>{ce()},onMessage:e=>{j.current(e,L)},start:M,reset:fe,activate:he,pause:me,resume:ge}):null},[c,G,q,re,ie,E,j,M,fe,me,ge]),react$1.exports.useEffect(()=>{b.current||(I(),A(!0)),l||d||(s?M:k)()},[l,s,d,b]),react$1.exports.useEffect(()=>{var e;b.current||(e=[...new Set([...N,...r]).values()],A(),te.current=e,ee.current=P,J.current=r,l)||d||(s?M:k)()},[P,JSON.stringify(N),JSON.stringify(r),b,d,l,s]),react$1.exports.useEffect(()=>{b.current&&(b.current=!1)},[b]),{message:ye,start:M,reset:fe,activate:he,pause:me,resume:ge,isIdle:ve,isPrompted:$e,isLeader:Ce,isLastActiveTab:Se,getTabId:we,getRemainingTime:_e,getElapsedTime:Te,getTotalElapsedTime:je,getLastIdleTime:Re,getLastActiveTime:Ie,getIdleTime:Oe,getTotalIdleTime:ke,getActiveTime:Ae,getTotalActiveTime:Me,setOnPresenceChange:e=>{F=e,ne.current=e},setOnPrompt:e=>{V=e,re.current=e},setOnIdle:e=>{H=e,ie.current=e},setOnActive:e=>{B=e,E.current=e},setOnAction:e=>{U=e,oe.current=e},setOnMessage:e=>{i=e,j.current=e}});return L}var match,version,set$1,get,store,STATE,$location,defer,channel,port,toggle,node,promise,then,queue,flush,notify$1,Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,ge=react$1.exports.createContext(null),tinycolor$1=(ge.Consumer,{exports:{}}),tinycolor=(!function(e){function u(e,t){var n;return t=t||{},(e=e||"")instanceof u?e:this instanceof u?(n=function(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;"string"==typeof e&&(e=function(e){e=e.replace(S,"").replace(w,"").toLowerCase();var t,n=!1;if(I[e])e=I[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=L.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=L.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=L.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=L.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=L.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=L.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=L.hex8.exec(e))return{r:g(t[1]),g:g(t[2]),b:g(t[3]),a:$(t[4]),format:n?"name":"hex8"};if(t=L.hex6.exec(e))return{r:g(t[1]),g:g(t[2]),b:g(t[3]),format:n?"name":"hex"};if(t=L.hex4.exec(e))return{r:g(t[1]+""+t[1]),g:g(t[2]+""+t[2]),b:g(t[3]+""+t[3]),a:$(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=L.hex3.exec(e))return{r:g(t[1]+""+t[1]),g:g(t[2]+""+t[2]),b:g(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(b(e.r)&&b(e.g)&&b(e.b)?(t=function(e,t,n){return{r:255*h(e,255),g:255*h(t,255),b:255*h(n,255)}}(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):b(e.h)&&b(e.s)&&b(e.v)?(r=v(e.s),i=v(e.v),t=function(e,t,n){e=6*h(e,360),t=h(t,100),n=h(n,100);var r=C.floor(e),e=e-r,i=n*(1-t),o=n*(1-e*t),e=n*(1-(1-e)*t),t=r%6;return{r:255*[n,o,i,i,e,n][t],g:255*[e,n,n,o,i,i][t],b:255*[i,i,e,n,n,o][t]}}(e.h,r,i),a=!0,s="hsv"):b(e.h)&&b(e.s)&&b(e.l)&&(r=v(e.s),o=v(e.l),t=function(e,t,n){var r,i,o;function a(e,t,n){return n<0&&(n+=1),1<n&&--n,n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}e=h(e,360),t=h(t,100),n=h(n,100),0===t?r=i=o=n:(r=a(t=2*n-(n=n<.5?n*(1+t):n+t-n*t),n,e+1/3),i=a(t,n,e),o=a(t,n,e-1/3));return{r:255*r,g:255*i,b:255*o}}(e.h,r,o),a=!0,s="hsl"),e.hasOwnProperty("a"))&&(n=e.a);return n=f(n),{ok:a,format:e.format||s,r:E(255,j(t.r,0)),g:E(255,j(t.g,0)),b:E(255,j(t.b,0)),a:n}}(e),this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=T(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=T(this._r)),this._g<1&&(this._g=T(this._g)),this._b<1&&(this._b=T(this._b)),this._ok=n.ok,void(this._tc_id=_++)):new u(e,t)}function r(e,t,n){e=h(e,255),t=h(t,255),n=h(n,255);var r,i=j(e,t,n),o=E(e,t,n),a=(i+o)/2;if(i==o)r=l=0;else{var s=i-o,l=.5<a?s/(2-i-o):s/(i+o);switch(i){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:l,l:a}}function i(e,t,n){e=h(e,255),t=h(t,255),n=h(n,255);var r,i=j(e,t,n),o=E(e,t,n),a=i,s=i-o,l=0===i?0:s/i;if(i==o)r=0;else{switch(i){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:l,v:a}}function t(e,t,n,r){e=[y(T(e).toString(16)),y(T(t).toString(16)),y(T(n).toString(16))];return r&&e[0].charAt(0)==e[0].charAt(1)&&e[1].charAt(0)==e[1].charAt(1)&&e[2].charAt(0)==e[2].charAt(1)?e[0].charAt(0)+e[1].charAt(0)+e[2].charAt(0):e.join("")}function o(e,t,n,r){return[y(x(r)),y(T(e).toString(16)),y(T(t).toString(16)),y(T(n).toString(16))].join("")}function n(e,t){t=0===t?0:t||10;e=u(e).toHsl();return e.s-=t/100,e.s=m(e.s),u(e)}function a(e,t){t=0===t?0:t||10;e=u(e).toHsl();return e.s+=t/100,e.s=m(e.s),u(e)}function s(e){return u(e).desaturate(100)}function l(e,t){t=0===t?0:t||10;e=u(e).toHsl();return e.l+=t/100,e.l=m(e.l),u(e)}function c(e,t){t=0===t?0:t||10;e=u(e).toRgb();return e.r=j(0,E(255,e.r-T(-t/100*255))),e.g=j(0,E(255,e.g-T(-t/100*255))),e.b=j(0,E(255,e.b-T(-t/100*255))),u(e)}function d(e,t){t=0===t?0:t||10;e=u(e).toHsl();return e.l-=t/100,e.l=m(e.l),u(e)}function p(e,t){e=u(e).toHsl(),t=(e.h+t)%360;return e.h=t<0?360+t:t,u(e)}function P(e){e=u(e).toHsl();return e.h=(e.h+180)%360,u(e)}function N(e){var t=u(e).toHsl(),n=t.h;return[u(e),u({h:(n+120)%360,s:t.s,l:t.l}),u({h:(n+240)%360,s:t.s,l:t.l})]}function D(e){var t=u(e).toHsl(),n=t.h;return[u(e),u({h:(n+90)%360,s:t.s,l:t.l}),u({h:(n+180)%360,s:t.s,l:t.l}),u({h:(n+270)%360,s:t.s,l:t.l})]}function F(e){var t=u(e).toHsl(),n=t.h;return[u(e),u({h:(n+72)%360,s:t.s,l:t.l}),u({h:(n+216)%360,s:t.s,l:t.l})]}function V(e,t,n){t=t||6,n=n||30;var r=u(e).toHsl(),i=360/n,o=[u(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(u(r));return o}function H(e,t){t=t||6;for(var e=u(e).toHsv(),n=e.h,r=e.s,i=e.v,o=[],a=1/t;t--;)o.push(u({h:n,s:r,v:i})),i=(i+a)%1;return o}function f(e){return e=parseFloat(e),e=isNaN(e)||e<0||1<e?1:e}function h(e,t){"string"==typeof(n=e)&&-1!=n.indexOf(".")&&1===parseFloat(n)&&(e="100%");var n="string"==typeof(n=e)&&-1!=n.indexOf("%");return e=E(t,j(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),C.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function m(e){return E(1,j(0,e))}function g(e){return parseInt(e,16)}function y(e){return 1==e.length?"0"+e:""+e}function v(e){return e=e<=1?100*e+"%":e}function x(e){return C.round(255*parseFloat(e)).toString(16)}function $(e){return g(e)/255}function b(e){return L.CSS_UNIT.exec(e)}var C,S,w,_,T,E,j,R,I,O,k,A,M,L;C=Math,S=/^\s+/,w=/\s+$/,_=0,T=C.round,E=C.min,j=C.max,R=C.random,u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,e=e.b/255,t=t<=.03928?t/12.92:C.pow((.055+t)/1.055,2.4),n=n<=.03928?n/12.92:C.pow((.055+n)/1.055,2.4),e=e<=.03928?e/12.92:C.pow((.055+e)/1.055,2.4);return.2126*t+.7152*n+.0722*e},setAlpha:function(e){return this._a=f(e),this._roundA=T(100*this._a)/100,this},toHsv:function(){var e=i(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=i(this._r,this._g,this._b),t=T(360*e.h),n=T(100*e.s),e=T(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+e+"%)":"hsva("+t+", "+n+"%, "+e+"%, "+this._roundA+")"},toHsl:function(){var e=r(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=r(this._r,this._g,this._b),t=T(360*e.h),n=T(100*e.s),e=T(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+e+"%)":"hsla("+t+", "+n+"%, "+e+"%, "+this._roundA+")"},toHex:function(e){return t(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){var t=this._r,n=this._g,r=this._b,i=this._a;return t=[y(T(t).toString(16)),y(T(n).toString(16)),y(T(r).toString(16)),y(x(i))],e&&t[0].charAt(0)==t[0].charAt(1)&&t[1].charAt(0)==t[1].charAt(1)&&t[2].charAt(0)==t[2].charAt(1)&&t[3].charAt(0)==t[3].charAt(1)?t[0].charAt(0)+t[1].charAt(0)+t[2].charAt(0)+t[3].charAt(0):t.join("")},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:T(this._r),g:T(this._g),b:T(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+T(this._r)+", "+T(this._g)+", "+T(this._b)+")":"rgba("+T(this._r)+", "+T(this._g)+", "+T(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:T(100*h(this._r,255))+"%",g:T(100*h(this._g,255))+"%",b:T(100*h(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+T(100*h(this._r,255))+"%, "+T(100*h(this._g,255))+"%, "+T(100*h(this._b,255))+"%)":"rgba("+T(100*h(this._r,255))+"%, "+T(100*h(this._g,255))+"%, "+T(100*h(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&O[t(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t="#"+o(this._r,this._g,this._b,this._a),n=t;return"progid:DXImageTransform.Microsoft.gradient("+(this._gradientType?"GradientType = 1, ":"")+"startColorstr="+t+",endColorstr="+(n=e?"#"+o((t=u(e))._r,t._g,t._b,t._a):n)+")"},toString:function(e){var t=!!e,n=(e=e||this._format,!1),r=this._a<1&&0<=this._a;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),(n="hsv"===e?this.toHsvString():n)||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return u(this.toString())},_applyModification:function(e,t){e=e.apply(null,[this].concat([].slice.call(t)));return this._r=e._r,this._g=e._g,this._b=e._b,this.setAlpha(e._a),this},lighten:function(){return this._applyModification(l,arguments)},brighten:function(){return this._applyModification(c,arguments)},darken:function(){return this._applyModification(d,arguments)},desaturate:function(){return this._applyModification(n,arguments)},saturate:function(){return this._applyModification(a,arguments)},greyscale:function(){return this._applyModification(s,arguments)},spin:function(){return this._applyModification(p,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(V,arguments)},complement:function(){return this._applyCombination(P,arguments)},monochromatic:function(){return this._applyCombination(H,arguments)},splitcomplement:function(){return this._applyCombination(F,arguments)},triad:function(){return this._applyCombination(N,arguments)},tetrad:function(){return this._applyCombination(D,arguments)}},u.fromRatio=function(e,t){if("object"==typeof e){var n,r={};for(n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:v(e[n]));e=r}return u(e,t)},u.equals=function(e,t){return!(!e||!t)&&u(e).toRgbString()==u(t).toRgbString()},u.random=function(){return u.fromRatio({r:R(),g:R(),b:R()})},u.mix=function(e,t,n){n=0===n?0:n||50;e=u(e).toRgb(),t=u(t).toRgb(),n/=100;return u({r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b,a:(t.a-e.a)*n+e.a})},u.readability=function(e,t){e=u(e),t=u(t);return(C.max(e.getLuminance(),t.getLuminance())+.05)/(C.min(e.getLuminance(),t.getLuminance())+.05)},u.isReadable=function(e,t,n){var r=u.readability(e,t),i=!1,e=function(e){var t;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),e=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==e&&"large"!==e&&(e="small");return{level:t,size:e}}(n);switch(e.level+e.size){case"AAsmall":case"AAAlarge":i=4.5<=r;break;case"AAlarge":i=3<=r;break;case"AAAsmall":i=7<=r}return i},u.mostReadable=function(e,t,n){for(var r,i=null,o=0,a=(n=n||{}).includeFallbackColors,s=n.level,l=n.size,c=0;c<t.length;c++)o<(r=u.readability(e,t[c]))&&(o=r,i=u(t[c]));return u.isReadable(e,i,{level:s,size:l})||!a?i:(n.includeFallbackColors=!1,u.mostReadable(e,["#fff","#000"],n))},I=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},O=u.hexNames=function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[e[t]]=t);return n}(I),A="[\\s|\\(]+("+(k="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+k+")[,|\\s]+("+k+")\\s*\\)?",M="[\\s|\\(]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")\\s*\\)?",L={CSS_UNIT:new RegExp(k),rgb:new RegExp("rgb"+A),rgba:new RegExp("rgba"+M),hsl:new RegExp("hsl"+A),hsla:new RegExp("hsla"+M),hsv:new RegExp("hsv"+A),hsva:new RegExp("hsva"+M),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/},e.exports?e.exports=u:window.tinycolor=u}(tinycolor$1),tinycolor$1.exports),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},check=function(e){return e&&e.Math==Math&&e},global$g=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$e=function(e){try{return!!e()}catch(e){return!0}},descriptors=!fails$e(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),functionBindNative=!fails$e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$e=Function.prototype.call,functionCall=NATIVE_BIND$3?call$e.bind(call$e):function(){return call$e.apply(call$e,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$2&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$3=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){return!!(e=getOwnPropertyDescriptor$2(this,e))&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND$2=functionBindNative,FunctionPrototype$2=Function.prototype,call$d=FunctionPrototype$2.call,uncurryThisWithBind=NATIVE_BIND$2&&FunctionPrototype$2.bind.bind(call$d,call$d),functionUncurryThis=NATIVE_BIND$2?uncurryThisWithBind:function(e){return function(){return call$d.apply(e,arguments)}},uncurryThis$f=functionUncurryThis,toString$3=uncurryThis$f({}.toString),stringSlice$1=uncurryThis$f("".slice),classofRaw$2=function(e){return stringSlice$1(toString$3(e),8,-1)},fails$b=fails$e,classof$6=classofRaw$2,$Object$4=Object,split=functionUncurryThis("".split),indexedObject=fails$b(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$6(e)?split(e,""):$Object$4(e)}:$Object$4,isNullOrUndefined$4=function(e){return null==e},isNullOrUndefined$3=isNullOrUndefined$4,$TypeError$d=TypeError,requireObjectCoercible$3=function(e){if(isNullOrUndefined$3(e))throw $TypeError$d("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$2=requireObjectCoercible$3,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$2(e))},documentAll$2="object"==typeof document&&document.all,IS_HTMLDDA=void 0===documentAll$2&&void 0!==documentAll$2,documentAll_1={all:documentAll$2,IS_HTMLDDA:IS_HTMLDDA},$documentAll$1=documentAll_1,documentAll$1=$documentAll$1.all,isCallable$k=$documentAll$1.IS_HTMLDDA?function(e){return"function"==typeof e||e===documentAll$1}:function(e){return"function"==typeof e},isCallable$j=isCallable$k,$documentAll=documentAll_1,documentAll=$documentAll.all,isObject$9=$documentAll.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:isCallable$j(e)||e===documentAll}:function(e){return"object"==typeof e?null!==e:isCallable$j(e)},global$f=global$g,isCallable$i=isCallable$k,aFunction=function(e){return isCallable$i(e)?e:void 0},getBuiltIn$7=function(e,t){return arguments.length<2?aFunction(global$f[e]):global$f[e]&&global$f[e][t]},objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),engineUserAgent="undefined"!=typeof navigator&&String(navigator.userAgent)||"",global$e=global$g,userAgent$3=engineUserAgent,process$4=global$e.process,Deno$1=global$e.Deno,versions=process$4&&process$4.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match=v8.split("."))[0]&&match[0]<4?1:+(match[0]+match[1]):version)&&userAgent$3&&(!(match=userAgent$3.match(/Edge\/(\d+)/))||74<=match[1])&&(match=userAgent$3.match(/Chrome\/(\d+)/))?+match[1]:version,V8_VERSION$1=engineV8Version,fails$a=fails$e,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$a(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),useSymbolAsUid=symbolConstructorDetection&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$6=getBuiltIn$7,isCallable$h=isCallable$k,isPrototypeOf$2=objectIsPrototypeOf,$Object$3=Object,isSymbol$2=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$6("Symbol");return isCallable$h(t)&&isPrototypeOf$2(t.prototype,$Object$3(e))},$String$4=String,tryToString$4=function(e){try{return $String$4(e)}catch(e){return"Object"}},isCallable$g=isCallable$k,tryToString$3=tryToString$4,$TypeError$c=TypeError,aCallable$8=function(e){if(isCallable$g(e))return e;throw $TypeError$c(tryToString$3(e)+" is not a function")},aCallable$7=aCallable$8,isNullOrUndefined$2=isNullOrUndefined$4,getMethod$3=function(e,t){return e=e[t],isNullOrUndefined$2(e)?void 0:aCallable$7(e)},call$c=functionCall,isCallable$f=isCallable$k,isObject$8=isObject$9,$TypeError$b=TypeError,ordinaryToPrimitive$1=function(e,t){var n,r;if("string"===t&&isCallable$f(n=e.toString)&&!isObject$8(r=call$c(n,e)))return r;if(isCallable$f(n=e.valueOf)&&!isObject$8(r=call$c(n,e)))return r;if("string"!==t&&isCallable$f(n=e.toString)&&!isObject$8(r=call$c(n,e)))return r;throw $TypeError$b("Can't convert object to primitive value")},shared$3={exports:{}},global$d=global$g,defineProperty$6=Object.defineProperty,defineGlobalProperty$3=function(t,n){try{defineProperty$6(global$d,t,{value:n,configurable:!0,writable:!0})}catch(e){global$d[t]=n}return n},defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$g[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible$1=((shared$3.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$3),$Object$2=Object,toObject$3=function(e){return $Object$2(requireObjectCoercible$1(e))},toObject$2=toObject$3,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$2(e),t)},uncurryThis$b=functionUncurryThis,id=0,postfix=Math.random(),toString$2=uncurryThis$b(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$2(++id+postfix,36)},global$b=global$g,shared$2=shared$3.exports,hasOwn$9=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,Symbol$1=global$b.Symbol,WellKnownSymbolsStore=shared$2("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1.for||Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$1,wellKnownSymbol$g=function(e){return hasOwn$9(WellKnownSymbolsStore,e)||(WellKnownSymbolsStore[e]=NATIVE_SYMBOL&&hasOwn$9(Symbol$1,e)?Symbol$1[e]:createWellKnownSymbol("Symbol."+e)),WellKnownSymbolsStore[e]},call$b=functionCall,isObject$7=isObject$9,isSymbol$1=isSymbol$2,getMethod$2=getMethod$3,ordinaryToPrimitive=ordinaryToPrimitive$1,$TypeError$a=TypeError,TO_PRIMITIVE=wellKnownSymbol$g("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$7(e)||isSymbol$1(e))return e;var n=getMethod$2(e,TO_PRIMITIVE);if(n){if(n=call$b(n,e,t=void 0===t?"default":t),!isObject$7(n)||isSymbol$1(n))return n;throw $TypeError$a("Can't convert object to primitive value")}return ordinaryToPrimitive(e,t=void 0===t?"number":t)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$2=function(e){return e=toPrimitive(e,"string"),isSymbol(e)?e:e+""},isObject$6=isObject$9,document$3=global$g.document,EXISTS$1=isObject$6(document$3)&&isObject$6(document$3.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$3.createElement(e):{}},createElement$1=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$e(function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$9=descriptors,call$a=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$2=createPropertyDescriptor$3,toIndexedObject$4=toIndexedObject$5,toPropertyKey$1=toPropertyKey$2,hasOwn$8=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$9?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$1(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$8(e,t))return createPropertyDescriptor$2(!call$a(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),v8PrototypeDefineBug=descriptors&&fails$e(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$5=isObject$9,$String$3=String,$TypeError$9=TypeError,anObject$a=function(e){if(isObject$5(e))return e;throw $TypeError$9($String$3(e)+" is not an object")},DESCRIPTORS$7=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$9=anObject$a,toPropertyKey=toPropertyKey$2,$TypeError$8=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$6=(objectDefineProperty.f=DESCRIPTORS$7?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,n){var r;return anObject$9(e),t=toPropertyKey(t),anObject$9(n),"function"==typeof e&&"prototype"===t&&"value"in n&&WRITABLE in n&&!n[WRITABLE]&&(r=$getOwnPropertyDescriptor(e,t))&&r[WRITABLE]&&(e[t]=n.value,n={configurable:(CONFIGURABLE$1 in n?n:r)[CONFIGURABLE$1],enumerable:(ENUMERABLE in n?n:r)[ENUMERABLE],writable:!1}),$defineProperty(e,t,n)}:$defineProperty:function(e,t,n){if(anObject$9(e),t=toPropertyKey(t),anObject$9(n),IE8_DOM_DEFINE)try{return $defineProperty(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $TypeError$8("Accessors not supported");return"value"in n&&(e[t]=n.value),e},descriptors),definePropertyModule$3=objectDefineProperty,createPropertyDescriptor$1=createPropertyDescriptor$3,createNonEnumerableProperty$4=DESCRIPTORS$6?function(e,t,n){return definePropertyModule$3.f(e,t,createPropertyDescriptor$1(1,n))}:function(e,t,n){return e[t]=n,e},makeBuiltIn$3={exports:{}},DESCRIPTORS$5=descriptors,hasOwn$7=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$5&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$7(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$5||getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},isCallable$e=isCallable$k,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$3=(isCallable$e(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),isCallable$d=isCallable$k,WeakMap$1=global$g.WeakMap,weakMapBasicDetection=isCallable$d(WeakMap$1)&&/native code/.test(String(WeakMap$1)),shared$1=shared$3.exports,uid=uid$2,keys=shared$1("keys"),sharedKey$3=function(e){return keys[e]||(keys[e]=uid(e))},hiddenKeys$4={},NATIVE_WEAK_MAP=weakMapBasicDetection,global$8=global$g,isObject$4=isObject$9,createNonEnumerableProperty$3=createNonEnumerableProperty$4,hasOwn$6=hasOwnProperty_1,shared=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$2=global$8.TypeError,WeakMap$2=global$8.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(t){return function(e){if(isObject$4(e)&&(e=get(e)).type===t)return e;throw TypeError$2("Incompatible receiver, "+t+" required")}},has=NATIVE_WEAK_MAP||shared.state?((store=shared.state||(shared.state=new WeakMap$2)).get=store.get,store.has=store.has,store.set=store.set,set$1=function(e,t){if(store.has(e))throw TypeError$2(OBJECT_ALREADY_INITIALIZED);return t.facade=e,store.set(e,t),t},get=function(e){return store.get(e)||{}},function(e){return store.has(e)}):(STATE=sharedKey$2("state"),hiddenKeys$3[STATE]=!0,set$1=function(e,t){if(hasOwn$6(e,STATE))throw TypeError$2(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$3(e,STATE,t),t},get=function(e){return hasOwn$6(e,STATE)?e[STATE]:{}},function(e){return hasOwn$6(e,STATE)}),internalState={set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor},uncurryThis$9=functionUncurryThis,fails$7=fails$e,isCallable$c=isCallable$k,hasOwn$5=hasOwnProperty_1,DESCRIPTORS$4=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource$2=inspectSource$3,InternalStateModule$2=internalState,enforceInternalState=InternalStateModule$2.enforce,getInternalState$1=InternalStateModule$2.get,$String$2=String,defineProperty$5=Object.defineProperty,stringSlice=uncurryThis$9("".slice),replace=uncurryThis$9("".replace),join=uncurryThis$9([].join),CONFIGURABLE_LENGTH=DESCRIPTORS$4&&!fails$7(function(){return 8!==defineProperty$5(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$2=makeBuiltIn$3.exports=function(e,t,n){"Symbol("===stringSlice($String$2(t),0,7)&&(t="["+replace($String$2(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!hasOwn$5(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$4?defineProperty$5(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&n&&hasOwn$5(n,"arity")&&e.length!==n.arity&&defineProperty$5(e,"length",{value:n.arity});try{n&&hasOwn$5(n,"constructor")&&n.constructor?DESCRIPTORS$4&&defineProperty$5(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}return n=enforceInternalState(e),hasOwn$5(n,"source")||(n.source=join(TEMPLATE,"string"==typeof t?t:"")),e},isCallable$b=(Function.prototype.toString=makeBuiltIn$2(function(){return isCallable$c(this)&&getInternalState$1(this).source||inspectSource$2(this)},"toString"),isCallable$k),definePropertyModule$2=objectDefineProperty,makeBuiltIn$1=makeBuiltIn$3.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$5=function(e,t,n,r){var i=(r=r||{}).enumerable,o=void 0!==r.name?r.name:t;if(isCallable$b(n)&&makeBuiltIn$1(n,o,r),r.global)i?e[t]=n:defineGlobalProperty$1(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=n:definePropertyModule$2.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},objectGetOwnPropertyNames={},ceil=Math.ceil,floor=Math.floor,mathTrunc=Math.trunc||function(e){return(0<(e=+e)?floor:ceil)(e)},trunc=mathTrunc,toIntegerOrInfinity$2=function(e){return(e=+e)!=e||0==e?0:trunc(e)},toIntegerOrInfinity$1=toIntegerOrInfinity$2,max=Math.max,min$1=Math.min,toAbsoluteIndex$1=function(e,t){return(e=toIntegerOrInfinity$1(e))<0?max(e+t,0):min$1(e,t)},toIntegerOrInfinity=toIntegerOrInfinity$2,min=Math.min,toLength$1=function(e){return 0<e?min(toIntegerOrInfinity(e),9007199254740991):0},toLength=toLength$1,lengthOfArrayLike$2=function(e){return toLength(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex=toAbsoluteIndex$1,lengthOfArrayLike$1=lengthOfArrayLike$2,createMethod=function(s){return function(e,t,n){var r,i=toIndexedObject$3(e),o=lengthOfArrayLike$1(i),a=toAbsoluteIndex(n,o);if(s&&t!=t){for(;a<o;)if((r=i[a++])!=r)return!0}else for(;a<o;a++)if((s||a in i)&&i[a]===t)return s||a||0;return!s&&-1}},arrayIncludes={includes:createMethod(!0),indexOf:createMethod(!1)},uncurryThis$8=functionUncurryThis,hasOwn$4=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push=uncurryThis$8([].push),objectKeysInternal=function(e,t){var n,r=toIndexedObject$2(e),i=0,o=[];for(n in r)!hasOwn$4(hiddenKeys$2,n)&&hasOwn$4(r,n)&&push(o,n);for(;t.length>i;)hasOwn$4(r,n=t[i++])&&!~indexOf(o,n)&&push(o,n);return o},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,hiddenKeys$1=enumBugKeys$3.concat("length","prototype"),objectGetOwnPropertySymbols=(objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$1)},{}),getBuiltIn$5=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$7),getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$8=anObject$a,concat$1=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$8(e)),n=getOwnPropertySymbolsModule$1.f;return n?concat$1(t,n(e)):t},hasOwn$3=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$1=objectDefineProperty,copyConstructorProperties$1=function(e,t,n){for(var r=ownKeys(t),i=definePropertyModule$1.f,o=getOwnPropertyDescriptorModule.f,a=0;a<r.length;a++){var s=r[a];hasOwn$3(e,s)||n&&hasOwn$3(n,s)||i(e,s,o(t,s))}},fails$6=fails$e,isCallable$a=isCallable$k,replacement=/#|\.prototype\./,isForced$2=function(e,t){return(e=data[normalize(e)])==POLYFILL||e!=NATIVE&&(isCallable$a(t)?fails$6(t):!!t)},normalize=isForced$2.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$2.data={},NATIVE=isForced$2.NATIVE="N",POLYFILL=isForced$2.POLYFILL="P",isForced_1=isForced$2,global$7=global$g,getOwnPropertyDescriptor$1=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$2=createNonEnumerableProperty$4,defineBuiltIn$4=defineBuiltIn$5,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties=copyConstructorProperties$1,isForced$1=isForced_1,_export=function(e,t){var n,r,i,o=e.target,a=e.global,s=e.stat,l=a?global$7:s?global$7[o]||defineGlobalProperty(o,{}):(global$7[o]||{}).prototype;if(l)for(n in t){if(r=t[n],i=e.dontCallGetSet?(i=getOwnPropertyDescriptor$1(l,n))&&i.value:l[n],!isForced$1(a?n:o+(s?".":"#")+n,e.forced)&&void 0!==i){if(typeof r==typeof i)continue;copyConstructorProperties(r,i)}(e.sham||i&&i.sham)&&createNonEnumerableProperty$2(r,"sham",!0),defineBuiltIn$4(l,n,r,e)}},engineIsNode="undefined"!=typeof process&&"process"==classofRaw$2(process),uncurryThis$6=functionUncurryThis,aCallable$6=aCallable$8,functionUncurryThisAccessor=function(e,t,n){try{return uncurryThis$6(aCallable$6(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},isCallable$9=isCallable$k,$String$1=String,$TypeError$7=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$9(e))return e;throw $TypeError$7("Can't set "+$String$1(e)+" as a prototype")},uncurryThisAccessor=functionUncurryThisAccessor,anObject$7=anObject$a,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,e={};try{(n=uncurryThisAccessor(Object.prototype,"__proto__","set"))(e,[]),r=e instanceof Array}catch(e){}return function(e,t){return anObject$7(e),aPossiblePrototype(t),r?n(e,t):e.__proto__=t,e}}():void 0),defineProperty$4=objectDefineProperty.f,hasOwn$2=hasOwnProperty_1,TO_STRING_TAG$3=wellKnownSymbol$g("toStringTag"),setToStringTag$3=function(e,t,n){(e=e&&!n?e.prototype:e)&&!hasOwn$2(e,TO_STRING_TAG$3)&&defineProperty$4(e,TO_STRING_TAG$3,{configurable:!0,value:t})},makeBuiltIn=makeBuiltIn$3.exports,defineProperty$3=objectDefineProperty,defineBuiltInAccessor$1=function(e,t,n){return n.get&&makeBuiltIn(n.get,t,{getter:!0}),n.set&&makeBuiltIn(n.set,t,{setter:!0}),defineProperty$3.f(e,t,n)},getBuiltIn$4=getBuiltIn$7,defineBuiltInAccessor=defineBuiltInAccessor$1,DESCRIPTORS$3=descriptors,SPECIES$2=wellKnownSymbol$g("species"),setSpecies$1=function(e){e=getBuiltIn$4(e),DESCRIPTORS$3&&e&&!e[SPECIES$2]&&defineBuiltInAccessor(e,SPECIES$2,{configurable:!0,get:function(){return this}})},isPrototypeOf$1=objectIsPrototypeOf,$TypeError$6=TypeError,anInstance$1=function(e,t){if(isPrototypeOf$1(t,e))return e;throw $TypeError$6("Incorrect invocation")},TO_STRING_TAG$2=wellKnownSymbol$g("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$2]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$8=isCallable$k,classofRaw$1=classofRaw$2,TO_STRING_TAG$1=wellKnownSymbol$g("toStringTag"),$Object$1=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw$1(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$4=TO_STRING_TAG_SUPPORT?classofRaw$1:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object$1(e),TO_STRING_TAG$1))?t:CORRECT_ARGUMENTS?classofRaw$1(e):"Object"==(t=classofRaw$1(e))&&isCallable$8(e.callee)?"Arguments":t},uncurryThis$5=functionUncurryThis,fails$5=fails$e,isCallable$7=isCallable$k,classof$3=classof$4,inspectSource$1=inspectSource$3,noop=function(){},empty=[],construct=getBuiltIn$7("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec=uncurryThis$5(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.exec(noop),isConstructorModern=function(e){if(!isCallable$7(e))return!1;try{return construct(noop,empty,e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable$7(e))return!1;switch(classof$3(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec(constructorRegExp,inspectSource$1(e))}catch(e){return!0}},isConstructor$1=(isConstructorLegacy.sham=!0,!construct||fails$5(function(){var e;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern(function(){e=!0})||e})?isConstructorLegacy:isConstructorModern),isConstructor=isConstructor$1,tryToString$2=tryToString$4,$TypeError$5=TypeError,aConstructor$1=function(e){if(isConstructor(e))return e;throw $TypeError$5(tryToString$2(e)+" is not a constructor")},anObject$6=anObject$a,aConstructor=aConstructor$1,isNullOrUndefined$1=isNullOrUndefined$4,SPECIES$1=wellKnownSymbol$g("species"),speciesConstructor$1=function(e,t){return void 0===(e=anObject$6(e).constructor)||isNullOrUndefined$1(e=anObject$6(e)[SPECIES$1])?t:aConstructor(e)},NATIVE_BIND$1=functionBindNative,FunctionPrototype=Function.prototype,apply$1=FunctionPrototype.apply,call$9=FunctionPrototype.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$1?call$9.bind(apply$1):function(){return call$9.apply(apply$1,arguments)}),classofRaw=classofRaw$2,uncurryThis$4=functionUncurryThis,functionUncurryThisClause=function(e){if("Function"===classofRaw(e))return uncurryThis$4(e)},aCallable$5=aCallable$8,NATIVE_BIND=functionBindNative,bind$4=functionUncurryThisClause(functionUncurryThisClause.bind),functionBindContext=function(e,t){return aCallable$5(e),void 0===t?e:NATIVE_BIND?bind$4(e,t):function(){return e.apply(t,arguments)}},html$2=getBuiltIn$7("document","documentElement"),arraySlice$1=functionUncurryThis([].slice),$TypeError$4=TypeError,validateArgumentsLength$1=function(e,t){if(e<t)throw $TypeError$4("Not enough arguments");return e},userAgent$2=engineUserAgent,engineIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2),global$6=global$g,apply=functionApply,bind$3=functionBindContext,isCallable$6=isCallable$k,hasOwn$1=hasOwnProperty_1,fails$4=fails$e,html$1=html$2,arraySlice=arraySlice$1,createElement=documentCreateElement$2,validateArgumentsLength=validateArgumentsLength$1,IS_IOS$1=engineIsIos,IS_NODE$3=engineIsNode,set=global$6.setImmediate,clear=global$6.clearImmediate,process$3=global$6.process,Dispatch=global$6.Dispatch,Function$1=global$6.Function,MessageChannel$1=global$6.MessageChannel,String$1=global$6.String,counter=0,queue$2={},ONREADYSTATECHANGE="onreadystatechange",run=(fails$4(function(){$location=global$6.location}),function(e){var t;hasOwn$1(queue$2,e)&&(t=queue$2[e],delete queue$2[e],t())}),runner=function(e){return function(){run(e)}},eventListener=function(e){run(e.data)},globalPostMessageDefer=function(e){global$6.postMessage(String$1(e),$location.protocol+"//"+$location.host)},task$1=(set&&clear||(set=function(e){validateArgumentsLength(arguments.length,1);var t=isCallable$6(e)?e:Function$1(e),n=arraySlice(arguments,1);return queue$2[++counter]=function(){apply(t,void 0,n)},defer(counter),counter},clear=function(e){delete queue$2[e]},IS_NODE$3?defer=function(e){process$3.nextTick(runner(e))}:Dispatch&&Dispatch.now?defer=function(e){Dispatch.now(runner(e))}:MessageChannel$1&&!IS_IOS$1?(port=(channel=new MessageChannel$1).port2,channel.port1.onmessage=eventListener,defer=bind$3(port.postMessage,port)):global$6.addEventListener&&isCallable$6(global$6.postMessage)&&!global$6.importScripts&&$location&&"file:"!==$location.protocol&&!fails$4(globalPostMessageDefer)?(defer=globalPostMessageDefer,global$6.addEventListener("message",eventListener,!1)):defer=ONREADYSTATECHANGE in createElement("script")?function(e){html$1.appendChild(createElement("script"))[ONREADYSTATECHANGE]=function(){html$1.removeChild(this),run(e)}}:function(e){setTimeout(runner(e),0)}),{set:set,clear:clear}),Queue$2=function(){this.head=null,this.tail=null},queue$1=(Queue$2.prototype={add:function(e){var e={item:e,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},Queue$2),userAgent$1=engineUserAgent,engineIsIosPebble=/ipad|iphone|ipod/i.test(userAgent$1)&&"undefined"!=typeof Pebble,userAgent=engineUserAgent,engineIsWebosWebkit=/web0s(?!.*chrome)/i.test(userAgent),global$5=global$g,bind$2=functionBindContext,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,macrotask=task$1.set,Queue$1=queue$1,IS_IOS=engineIsIos,IS_IOS_PEBBLE=engineIsIosPebble,IS_WEBOS_WEBKIT=engineIsWebosWebkit,IS_NODE$2=engineIsNode,MutationObserver=global$5.MutationObserver||global$5.WebKitMutationObserver,document$2=global$5.document,process$2=global$5.process,Promise$1=global$5.Promise,queueMicrotaskDescriptor=getOwnPropertyDescriptor(global$5,"queueMicrotask"),microtask$1=queueMicrotaskDescriptor&&queueMicrotaskDescriptor.value,microtask_1=(microtask$1||(queue=new Queue$1,flush=function(){var e,t;for(IS_NODE$2&&(e=process$2.domain)&&e.exit();t=queue.get();)try{t()}catch(e){throw queue.head&¬ify$1(),e}e&&e.enter()},notify$1=IS_IOS||IS_NODE$2||IS_WEBOS_WEBKIT||!MutationObserver||!document$2?!IS_IOS_PEBBLE&&Promise$1&&Promise$1.resolve?((promise=Promise$1.resolve(void 0)).constructor=Promise$1,then=bind$2(promise.then,promise),function(){then(flush)}):IS_NODE$2?function(){process$2.nextTick(flush)}:(macrotask=bind$2(macrotask,global$5),function(){macrotask(flush)}):(toggle=!0,node=document$2.createTextNode(""),new MutationObserver(flush).observe(node,{characterData:!0}),function(){node.data=toggle=!toggle}),microtask$1=function(e){queue.head||notify$1(),queue.add(e)}),microtask$1),hostReportErrors$1=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}},perform$3=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},promiseNativeConstructor=global$g.Promise,engineIsDeno="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,engineIsBrowser=!engineIsDeno&&!engineIsNode&&"object"==typeof window&&"object"==typeof document,global$3=global$g,NativePromiseConstructor$3=promiseNativeConstructor,isCallable$5=isCallable$k,isForced=isForced_1,inspectSource=inspectSource$3,wellKnownSymbol$9=wellKnownSymbol$g,IS_BROWSER=engineIsBrowser,IS_DENO=engineIsDeno,V8_VERSION=engineV8Version,SPECIES=(NativePromiseConstructor$3&&NativePromiseConstructor$3.prototype,wellKnownSymbol$9("species")),SUBCLASSING=!1,NATIVE_PROMISE_REJECTION_EVENT$1=isCallable$5(global$3.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5=isForced("Promise",function(){var e=inspectSource(NativePromiseConstructor$3),t=e!==String(NativePromiseConstructor$3);if(!t&&66===V8_VERSION)return!0;if(!V8_VERSION||V8_VERSION<51||!/native code/.test(e)){function n(e){e(function(){},function(){})}if(((e=new NativePromiseConstructor$3(function(e){e(1)})).constructor={})[SPECIES]=n,!(SUBCLASSING=e.then(function(){})instanceof n))return!0}return!t&&(IS_BROWSER||IS_DENO)&&!NATIVE_PROMISE_REJECTION_EVENT$1}),promiseConstructorDetection={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1,SUBCLASSING:SUBCLASSING},newPromiseCapability$2={},aCallable$4=aCallable$8,$TypeError$3=TypeError,PromiseCapability=function(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw $TypeError$3("Bad Promise constructor");n=e,r=t}),this.resolve=aCallable$4(n),this.reject=aCallable$4(r)},$$9=(newPromiseCapability$2.f=function(e){return new PromiseCapability(e)},_export),IS_NODE=engineIsNode,global$2=global$g,call$8=functionCall,defineBuiltIn$3=defineBuiltIn$5,setPrototypeOf$1=objectSetPrototypeOf,setToStringTag$2=setToStringTag$3,setSpecies=setSpecies$1,aCallable$3=aCallable$8,isCallable$4=isCallable$k,isObject$3=isObject$9,anInstance=anInstance$1,speciesConstructor=speciesConstructor$1,task=task$1.set,microtask=microtask_1,hostReportErrors=hostReportErrors$1,perform$2=perform$3,Queue=queue$1,InternalStateModule$1=internalState,NativePromiseConstructor$2=promiseNativeConstructor,PromiseConstructorDetection=promiseConstructorDetection,newPromiseCapabilityModule$3=newPromiseCapability$2,PROMISE="Promise",FORCED_PROMISE_CONSTRUCTOR$4=PromiseConstructorDetection.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT=PromiseConstructorDetection.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING=PromiseConstructorDetection.SUBCLASSING,getInternalPromiseState=InternalStateModule$1.getterFor(PROMISE),setInternalState$1=InternalStateModule$1.set,NativePromisePrototype$1=NativePromiseConstructor$2&&NativePromiseConstructor$2.prototype,PromiseConstructor=NativePromiseConstructor$2,PromisePrototype=NativePromisePrototype$1,TypeError$1=global$2.TypeError,document$1=global$2.document,process$1=global$2.process,newPromiseCapability$1=newPromiseCapabilityModule$3.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$2.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,isThenable=function(e){var t;return!(!isObject$3(e)||!isCallable$4(t=e.then))&&t},callReaction=function(e,t){var n,r,i,o=t.value,a=t.state==FULFILLED,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(a||(t.rejection===UNHANDLED&&onHandleUnhandled(t),t.rejection=HANDLED),!0===s?n=o:(u&&u.enter(),n=s(o),u&&(u.exit(),i=!0)),n===e.promise?c(TypeError$1("Promise-chain cycle")):(r=isThenable(n))?call$8(r,n,l,c):l(n)):c(o)}catch(e){u&&!i&&u.exit(),c(e)}},notify=function(n,r){n.notified||(n.notified=!0,microtask(function(){for(var e,t=n.reactions;e=t.get();)callReaction(e,n);n.notified=!1,r&&!n.rejection&&onUnhandled(n)}))},dispatchEvent=function(e,t,n){var r;DISPATCH_EVENT?((r=document$1.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),global$2.dispatchEvent(r)):r={promise:t,reason:n},!NATIVE_PROMISE_REJECTION_EVENT&&(t=global$2["on"+e])?t(r):e===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",n)},onUnhandled=function(r){call$8(task,global$2,function(){var e=r.facade,t=r.value,n=isUnhandled(r);if(n&&(n=perform$2(function(){IS_NODE?process$1.emit("unhandledRejection",t,e):dispatchEvent(UNHANDLED_REJECTION,e,t)}),r.rejection=IS_NODE||isUnhandled(r)?UNHANDLED:HANDLED,n.error))throw n.value})},isUnhandled=function(e){return e.rejection!==HANDLED&&!e.parent},onHandleUnhandled=function(t){call$8(task,global$2,function(){var e=t.facade;IS_NODE?process$1.emit("rejectionHandled",e):dispatchEvent(REJECTION_HANDLED,e,t.value)})},bind$1=function(t,n,r){return function(e){t(n,e,r)}},internalReject=function(e,t,n){e.done||(e.done=!0,(e=n||e).value=t,e.state=REJECTED,notify(e,!0))},internalResolve=function(n,e,t){if(!n.done){n.done=!0,t&&(n=t);try{if(n.facade===e)throw TypeError$1("Promise can't be resolved itself");var r=isThenable(e);r?microtask(function(){var t={done:!1};try{call$8(r,e,bind$1(internalResolve,t,n),bind$1(internalReject,t,n))}catch(e){internalReject(t,e,n)}}):(n.value=e,n.state=FULFILLED,notify(n,!1))}catch(e){internalReject({done:!1},e,n)}}};if(FORCED_PROMISE_CONSTRUCTOR$4&&(PromisePrototype=(PromiseConstructor=function(e){anInstance(this,PromisePrototype),aCallable$3(e),call$8(Internal,this);var t=getInternalPromiseState(this);try{e(bind$1(internalResolve,t),bind$1(internalReject,t))}catch(e){internalReject(t,e)}}).prototype,(Internal=function(e){setInternalState$1(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:void 0})}).prototype=defineBuiltIn$3(PromisePrototype,"then",function(e,t){var n=getInternalPromiseState(this),r=newPromiseCapability$1(speciesConstructor(this,PromiseConstructor));return n.parent=!0,r.ok=!isCallable$4(e)||e,r.fail=isCallable$4(t)&&t,r.domain=IS_NODE?process$1.domain:void 0,n.state==PENDING?n.reactions.add(r):microtask(function(){callReaction(r,n)}),r.promise}),OwnPromiseCapability=function(){var e=new Internal,t=getInternalPromiseState(e);this.promise=e,this.resolve=bind$1(internalResolve,t),this.reject=bind$1(internalReject,t)},newPromiseCapabilityModule$3.f=newPromiseCapability$1=function(e){return e===PromiseConstructor||e===PromiseWrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)},isCallable$4(NativePromiseConstructor$2))&&NativePromisePrototype$1!==Object.prototype){nativeThen=NativePromisePrototype$1.then,NATIVE_PROMISE_SUBCLASSING||defineBuiltIn$3(NativePromisePrototype$1,"then",function(e,t){var n=this;return new PromiseConstructor(function(e,t){call$8(nativeThen,n,e,t)}).then(e,t)},{unsafe:!0});try{delete NativePromisePrototype$1.constructor}catch(e){}setPrototypeOf$1&&setPrototypeOf$1(NativePromisePrototype$1,PromisePrototype)}$$9({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),setToStringTag$2(PromiseConstructor,PROMISE,!1),setSpecies(PROMISE);var iterators={},Iterators$4=iterators,ITERATOR$5=wellKnownSymbol$g("iterator"),ArrayPrototype$1=Array.prototype,isArrayIteratorMethod$1=function(e){return void 0!==e&&(Iterators$4.Array===e||ArrayPrototype$1[ITERATOR$5]===e)},classof$2=classof$4,getMethod$1=getMethod$3,isNullOrUndefined=isNullOrUndefined$4,Iterators$3=iterators,ITERATOR$4=wellKnownSymbol$g("iterator"),getIteratorMethod$2=function(e){if(!isNullOrUndefined(e))return getMethod$1(e,ITERATOR$4)||getMethod$1(e,"@@iterator")||Iterators$3[classof$2(e)]},call$7=functionCall,aCallable$2=aCallable$8,anObject$5=anObject$a,tryToString$1=tryToString$4,getIteratorMethod$1=getIteratorMethod$2,$TypeError$2=TypeError,getIterator$1=function(e,t){var n=arguments.length<2?getIteratorMethod$1(e):t;if(aCallable$2(n))return anObject$5(call$7(n,e));throw $TypeError$2(tryToString$1(e)+" is not iterable")},call$6=functionCall,anObject$4=anObject$a,getMethod=getMethod$3,iteratorClose$1=function(e,t,n){var r,i;anObject$4(e);try{if(!(r=getMethod(e,"return"))){if("throw"===t)throw n;return n}r=call$6(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return anObject$4(r),n},bind=functionBindContext,call$5=functionCall,anObject$3=anObject$a,tryToString=tryToString$4,isArrayIteratorMethod=isArrayIteratorMethod$1,lengthOfArrayLike=lengthOfArrayLike$2,isPrototypeOf=objectIsPrototypeOf,getIterator=getIterator$1,getIteratorMethod=getIteratorMethod$2,iteratorClose=iteratorClose$1,$TypeError$1=TypeError,Result=function(e,t){this.stopped=e,this.result=t},ResultPrototype=Result.prototype,iterate$2=function(e,t,n){function r(e){return o&&iteratorClose(o,"normal",e),new Result(!0,e)}function i(e){return p?(anObject$3(e),m?g(e[0],e[1],r):g(e[0],e[1])):m?g(e,r):g(e)}var o,a,s,l,c,u,d=n&&n.that,p=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),g=bind(t,d);if(f)o=e.iterator;else if(h)o=e;else{if(!(n=getIteratorMethod(e)))throw $TypeError$1(tryToString(e)+" is not iterable");if(isArrayIteratorMethod(n)){for(a=0,s=lengthOfArrayLike(e);a<s;a++)if((l=i(e[a]))&&isPrototypeOf(ResultPrototype,l))return l;return new Result(!1)}o=getIterator(e,n)}for(c=(f?e:o).next;!(u=call$5(c,o)).done;){try{l=i(u.value)}catch(e){iteratorClose(o,"throw",e)}if("object"==typeof l&&l&&isPrototypeOf(ResultPrototype,l))return l}return new Result(!1)},ITERATOR$3=wellKnownSymbol$g("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR$3]=function(){return this},Array.from(iteratorWithReturn,function(){throw 2})}catch(e){}var method,activeXDocument,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,checkCorrectnessOfIteration$1=function(e,t){if(!t&&!SAFE_CLOSING)return!1;var n=!1;try{var r={};r[ITERATOR$3]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},NativePromiseConstructor$1=promiseNativeConstructor,checkCorrectnessOfIteration=checkCorrectnessOfIteration$1,FORCED_PROMISE_CONSTRUCTOR$3=promiseConstructorDetection.CONSTRUCTOR,promiseStaticsIncorrectIteration=FORCED_PROMISE_CONSTRUCTOR$3||!checkCorrectnessOfIteration(function(e){NativePromiseConstructor$1.all(e).then(void 0,function(){})}),call$4=functionCall,aCallable$1=aCallable$8,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$1=perform$3,iterate$1=iterate$2,$$7=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{all:function(e){var s=this,t=newPromiseCapabilityModule$2.f(s),l=t.resolve,c=t.reject,n=perform$1(function(){var r=aCallable$1(s.resolve),i=[],o=0,a=1;iterate$1(e,function(e){var t=o++,n=!1;a++,call$4(r,s,e).then(function(e){n||(n=!0,i[t]=e,--a)||l(i)},c)}),--a||l(i)});return n.error&&c(n.value),t.promise}}),_export),FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor=promiseNativeConstructor,getBuiltIn$1=getBuiltIn$7,isCallable$3=isCallable$k,defineBuiltIn$2=defineBuiltIn$5,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype,call$3=($$7({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(e){return this.then(void 0,e)}}),isCallable$3(NativePromiseConstructor)&&(method=getBuiltIn$1("Promise").prototype.catch,NativePromisePrototype.catch!==method)&&defineBuiltIn$2(NativePromisePrototype,"catch",method,{unsafe:!0}),functionCall),aCallable=aCallable$8,newPromiseCapabilityModule$1=newPromiseCapability$2,perform=perform$3,iterate=iterate$2,$$5=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{race:function(e){var n=this,r=newPromiseCapabilityModule$1.f(n),i=r.reject,t=perform(function(){var t=aCallable(n.resolve);iterate(e,function(e){call$3(t,n,e).then(r.resolve,i)})});return t.error&&i(t.value),r.promise}}),_export),call$2=functionCall,newPromiseCapabilityModule=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR,anObject$2=($$5({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function(e){var t=newPromiseCapabilityModule.f(this);return call$2(t.reject,void 0,e),t.promise}}),anObject$a),isObject$2=isObject$9,newPromiseCapability=newPromiseCapability$2,promiseResolve$1=function(e,t){return anObject$2(e),isObject$2(t)&&t.constructor===e?t:((0,(e=newPromiseCapability.f(e)).resolve)(t),e.promise)},$$4=_export,getBuiltIn=getBuiltIn$7,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve=promiseResolve$1,objectDefineProperties=(getBuiltIn("Promise"),$$4({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR},{resolve:function(e){return promiseResolve(this,e)}}),{}),internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$2=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule=objectDefineProperty,anObject$1=anObject$a,toIndexedObject$1=toIndexedObject$5,objectKeys$1=objectKeys$2,anObject=(objectDefineProperties.f=DESCRIPTORS$2&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$1(e);for(var n,r=toIndexedObject$1(t),i=objectKeys$1(t),o=i.length,a=0;a<o;)definePropertyModule.f(e,n=i[a++],r[n]);return e},anObject$a),definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html=html$2,documentCreateElement$1=documentCreateElement$2,GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$3("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e=documentCreateElement$1("iframe"),t="java"+SCRIPT+":";return e.style.display="none",html.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"==typeof document||document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame();for(var e=enumBugKeys.length;e--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[e]];return NullProtoObject()},objectCreate=(hiddenKeys[IE_PROTO$1]=!0,Object.create||function(e,t){var n;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject(e),n=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,n[IE_PROTO$1]=e):n=NullProtoObject(),void 0===t?n:definePropertiesModule.f(n,t)}),wellKnownSymbol$5=wellKnownSymbol$g,create$1=objectCreate,defineProperty$2=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$5("unscopables"),ArrayPrototype=Array.prototype,addToUnscopables$2=(null==ArrayPrototype[UNSCOPABLES]&&defineProperty$2(ArrayPrototype,UNSCOPABLES,{configurable:!0,value:create$1(null)}),function(e){ArrayPrototype[UNSCOPABLES][e]=!0}),correctPrototypeGetter=!fails$e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn=hasOwnProperty_1,isCallable$2=isCallable$k,toObject$1=toObject$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey$3("IE_PROTO"),$Object=Object,ObjectPrototype=$Object.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object.getPrototypeOf:function(e){var t,e=toObject$1(e);return hasOwn(e,IE_PROTO)?e[IE_PROTO]:(t=e.constructor,isCallable$2(t)&&e instanceof t?t.prototype:e instanceof $Object?ObjectPrototype:null)},fails$2=fails$e,isCallable$1=isCallable$k,isObject$1=isObject$9,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$1=defineBuiltIn$5,ITERATOR$2=wellKnownSymbol$g("iterator"),BUGGY_SAFARI_ITERATORS$1=!1,NEW_ITERATOR_PROTOTYPE=([].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$1(getPrototypeOf$1(arrayIterator)))!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0),!isObject$1(IteratorPrototype$2)||fails$2(function(){var e={};return IteratorPrototype$2[ITERATOR$2].call(e)!==e})),iteratorsCore=(isCallable$1((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$2])||defineBuiltIn$1(IteratorPrototype$2,ITERATOR$2,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),IteratorPrototype$1=iteratorsCore.IteratorPrototype,create=objectCreate,createPropertyDescriptor=createPropertyDescriptor$3,setToStringTag$1=setToStringTag$3,Iterators$2=iterators,returnThis$1=function(){return this},iteratorCreateConstructor=function(e,t,n,r){return t+=" Iterator",e.prototype=create(IteratorPrototype$1,{next:createPropertyDescriptor(+!r,n)}),setToStringTag$1(e,t,!1),Iterators$2[t]=returnThis$1,e},$$3=_export,call$1=functionCall,FunctionName=functionName,isCallable=isCallable$k,createIteratorConstructor=iteratorCreateConstructor,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf=objectSetPrototypeOf,setToStringTag=setToStringTag$3,createNonEnumerableProperty$1=createNonEnumerableProperty$4,defineBuiltIn=defineBuiltIn$5,wellKnownSymbol$3=wellKnownSymbol$g,Iterators$1=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$1=wellKnownSymbol$3("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(e,t,n,r,i,o,a){function s(e){if(e===i&&f)return f;if(!BUGGY_SAFARI_ITERATORS&&e in d)return d[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new n(this,e)}}return function(){return new n(this)}}createIteratorConstructor(n,t,r);var l,c,r=t+" Iterator",u=!1,d=e.prototype,p=d[ITERATOR$1]||d["@@iterator"]||i&&d[i],f=!BUGGY_SAFARI_ITERATORS&&p||s(i),h="Array"==t&&d.entries||p;if(h&&(h=getPrototypeOf(h.call(new e)))!==Object.prototype&&h.next&&(getPrototypeOf(h)!==IteratorPrototype&&(setPrototypeOf?setPrototypeOf(h,IteratorPrototype):isCallable(h[ITERATOR$1])||defineBuiltIn(h,ITERATOR$1,returnThis)),setToStringTag(h,r,!0)),PROPER_FUNCTION_NAME&&i==VALUES&&p&&p.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$1(d,"name",VALUES):(u=!0,f=function(){return call$1(p,this)})),i)if(l={values:s(VALUES),keys:o?f:s(KEYS),entries:s(ENTRIES)},a)for(c in l)!BUGGY_SAFARI_ITERATORS&&!u&&c in d||defineBuiltIn(d,c,l[c]);else $$3({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return d[ITERATOR$1]!==f&&defineBuiltIn(d,ITERATOR$1,f,{name:i}),Iterators$1[t]=f,l},createIterResultObject$1=function(e,t){return{value:e,done:t}},toIndexedObject=toIndexedObject$5,addToUnscopables$1=addToUnscopables$2,Iterators=iterators,InternalStateModule=internalState,defineProperty$1=objectDefineProperty.f,defineIterator=iteratorDefine,createIterResultObject=createIterResultObject$1,DESCRIPTORS$1=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState=InternalStateModule.set,getInternalState=InternalStateModule.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(e,t){setInternalState(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:t})},function(){var e=getInternalState(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,createIterResultObject(void 0,!0)):createIterResultObject("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)},"values"),values=Iterators.Arguments=Iterators.Array;if(addToUnscopables$1("keys"),addToUnscopables$1("values"),addToUnscopables$1("entries"),DESCRIPTORS$1&&"values"!==values.name)try{defineProperty$1(values,"name",{value:"values"})}catch(e){}var COLLECTION_NAME,domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},classList=documentCreateElement$2("span").classList,DOMTokenListPrototype$1=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$1===Object.prototype?void 0:DOMTokenListPrototype$1,global$1=global$g,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty=createNonEnumerableProperty$4,wellKnownSymbol$2=wellKnownSymbol$g,ITERATOR=wellKnownSymbol$2("iterator"),TO_STRING_TAG=wellKnownSymbol$2("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(e,t){if(e){if(e[ITERATOR]!==ArrayValues)try{createNonEnumerableProperty(e,ITERATOR,ArrayValues)}catch(t){e[ITERATOR]=ArrayValues}if(e[TO_STRING_TAG]||createNonEnumerableProperty(e,TO_STRING_TAG,t),DOMIterables[t])for(var n in ArrayIteratorMethods)if(e[n]!==ArrayIteratorMethods[n])try{createNonEnumerableProperty(e,n,ArrayIteratorMethods[n])}catch(t){e[n]=ArrayIteratorMethods[n]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$1[COLLECTION_NAME]&&global$1[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");var react={exports:{}},react_production_min={},l=Symbol.for("react.element"),n=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z=Symbol.iterator;function A(e){return null!==e&&"object"==typeof e&&"function"==typeof(e=z&&e[z]||e["@@iterator"])?e:null}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(e,t,n){this.props=e,this.context=t,this.refs=D,this.updater=n||B}function F(){}function G(e,t,n){this.props=e,this.context=t,this.refs=D,this.updater=n||B}E.prototype.isReactComponent={},E.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},F.prototype=E.prototype;var H=G.prototype=new F,I=(H.constructor=G,C(H,E.prototype),H.isPureReactComponent=!0,Array.isArray),J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function M(e,t,n){var r,i={},o=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(o=""+t.key),t)J.call(t,r)&&!L.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:l,type:e,key:o,ref:a,props:i,_owner:K.current}}function N(e,t){return{$$typeof:l,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===l}function escape$1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}var P=/\/+/g;function Q(e,t){return"object"==typeof e&&null!==e&&null!=e.key?escape$1(""+e.key):t.toString(36)}function R(e,t,r,i,o){var a=!1;if(null===(e="undefined"!=(c=typeof e)&&"boolean"!==c?e:null))a=!0;else switch(c){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case l:case n:a=!0}}if(a)return o=o(a=e),e=""===i?"."+Q(a,0):i,I(o)?(r="",R(o,t,r=null!=e?e.replace(P,"$&/")+"/":r,"",function(e){return e})):null!=o&&(O(o)&&(o=N(o,r+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(P,"$&/")+"/")+e)),t.push(o)),1;if(a=0,i=""===i?".":i+":",I(e))for(var s=0;s<e.length;s++){var c,u=i+Q(c=e[s],s);a+=R(c,t,r,u,o)}else if("function"==typeof(u=A(e)))for(e=u.call(e),s=0;!(c=e.next()).done;)a+=R(c=c.value,t,r,u=i+Q(c,s++),o);else if("object"===c)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function S(e,t,n){var r;return null!=e&&(r=0,R(e,e=[],"","",function(e){return t.call(n,e,r++)})),e}function T(t){var e;if(-1===t._status&&((e=(e=t._result)()).then(function(e){0!==t._status&&-1!==t._status||(t._status=1,t._result=e)},function(e){0!==t._status&&-1!==t._status||(t._status=2,t._result=e)}),-1===t._status)&&(t._status=0,t._result=e),1===t._status)return t._result.default;throw t._result}var EMessageTypes,EFrameLinkEvents,U={current:null},V={transition:null},W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:V,ReactCurrentOwner:K};react_production_min.Children={map:S,forEach:function(e,t,n){S(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return S(e,function(){t++}),t},toArray:function(e){return S(e,function(e){return e})||[]},only:function(e){if(O(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},react_production_min.Component=E,react_production_min.Fragment=p,react_production_min.Profiler=r,react_production_min.PureComponent=G,react_production_min.StrictMode=q,react_production_min.Suspense=w,react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,react_production_min.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=C({},e.props),i=e.key,o=e.ref,a=e._owner;if(null!=t)for(s in void 0!==t.ref&&(o=t.ref,a=K.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)J.call(t,s)&&!L.hasOwnProperty(s)&&(r[s]=(void 0===t[s]&&void 0!==c?c:t)[s]);var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];r.children=c}return{$$typeof:l,type:e.type,key:i,ref:o,props:r,_owner:a}},react_production_min.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:t,_context:e},e.Consumer=e},react_production_min.createElement=M,react_production_min.createFactory=function(e){var t=M.bind(null,e);return t.type=e,t},react_production_min.createRef=function(){return{current:null}},react_production_min.forwardRef=function(e){return{$$typeof:v,render:e}},react_production_min.isValidElement=O,react_production_min.lazy=function(e){return{$$typeof:y,_payload:{_status:-1,_result:e},_init:T}},react_production_min.memo=function(e,t){return{$$typeof:x,type:e,compare:void 0===t?null:t}},react_production_min.startTransition=function(e){var t=V.transition;V.transition={};try{e()}finally{V.transition=t}},react_production_min.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},react_production_min.useCallback=function(e,t){return U.current.useCallback(e,t)},react_production_min.useContext=function(e){return U.current.useContext(e)},react_production_min.useDebugValue=function(){},react_production_min.useDeferredValue=function(e){return U.current.useDeferredValue(e)},react_production_min.useEffect=function(e,t){return U.current.useEffect(e,t)},react_production_min.useId=function(){return U.current.useId()},react_production_min.useImperativeHandle=function(e,t,n){return U.current.useImperativeHandle(e,t,n)},react_production_min.useInsertionEffect=function(e,t){return U.current.useInsertionEffect(e,t)},react_production_min.useLayoutEffect=function(e,t){return U.current.useLayoutEffect(e,t)},react_production_min.useMemo=function(e,t){return U.current.useMemo(e,t)},react_production_min.useReducer=function(e,t,n){return U.current.useReducer(e,t,n)},react_production_min.useRef=function(e){return U.current.useRef(e)},react_production_min.useState=function(e){return U.current.useState(e)},react_production_min.useSyncExternalStore=function(e,t,n){return U.current.useSyncExternalStore(e,t,n)},react_production_min.useTransition=function(){return U.current.useTransition()},react_production_min.version="18.2.0",react.exports=react_production_min,react.exports.createContext({});const filePicker=(e,t)=>window.aiware.mountPanel({panelId:"DATA_CENTER_IMPORTER",microFrontend:{name:"DATA_CENTER_IMPORTER",config:{requestId:e,frameLink:t}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:document.querySelector("#VERITONE_PANEL_ID")?80:0,size:"large",zIndex:1e3}}),errors={childCantSend:{id:"aiware-desktop.frame-link.child-cannot-send",defaultMessage:"Child frame cannot send this type of message",description:"Child frame is not allowed to send this type of message"},parentCantSend:{id:"aiware-desktop.frame-link.parent-cannot-send",defaultMessage:"Desktop App cannot send this type of message to child frame",description:"Desktop App is not allowed to send this type of message"},childAppNotResponding:{id:"aiware-desktop.frame-link.child-heartbeat-check-failed",defaultMessage:"Child frame appears to be frozen",description:"Child app failed to send a heartbeat to report healthy status"},unsupportedUtility:{id:"aiware-desktop.frame-link.unsupported-utility",defaultMessage:"Cannot find the requested utility",description:"Error when child app is requesting a use of unsupported utility"},operationCancelled:{id:"aiware-desktop.frame-link.operation-cancelled",defaultMessage:"Operation cancelled",description:"Error message when the operation requested by child frame is cancelled"}};!function(e){e.getInitContext="getInitContext",e.initContext="initContext",e.updateContext="updateContext",e.reportActivity="reportActivity",e.response="response",e.utility="utility",e.error="error",e.heartbeat="heartbeat"}(EMessageTypes=EMessageTypes||{}),filePicker,(EFrameLinkEvents=EFrameLinkEvents||{}).init="init";var $$2=_export,$includes=arrayIncludes.includes,addToUnscopables=addToUnscopables$2,BROKEN_ON_SPARSE=fails$e(function(){return!Array(1).includes()}),isObject=($$2({target:"Array",proto:!0,forced:BROKEN_ON_SPARSE},{includes:function(e){return $includes(this,e,1<arguments.length?arguments[1]:void 0)}}),addToUnscopables("includes"),isObject$9),classof$1=classofRaw$2,MATCH$1=wellKnownSymbol$g("match"),isRegexp=function(e){var t;return isObject(e)&&(void 0!==(t=e[MATCH$1])?!!t:"RegExp"==classof$1(e))},isRegExp=isRegexp,$TypeError=TypeError,notARegexp=function(e){if(isRegExp(e))throw $TypeError("The method doesn't accept regular expressions");return e},classof=classof$4,$String=String,toString$1=function(e){if("Symbol"===classof(e))throw TypeError("Cannot convert a Symbol value to a string");return $String(e)},MATCH=wellKnownSymbol$g("match"),correctIsRegexpLogic=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[MATCH]=!1,"/./"[t](n)}catch(e){}}return!1},$$1=_export,notARegExp=notARegexp,requireObjectCoercible=requireObjectCoercible$3,toString=toString$1,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf=functionUncurryThis("".indexOf),DESCRIPTORS=($$1({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~stringIndexOf(toString(requireObjectCoercible(this)),toString(notARegExp(e)),1<arguments.length?arguments[1]:void 0)}}),descriptors),uncurryThis=functionUncurryThis,call=functionCall,fails=fails$e,objectKeys=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject=toObject$3,IndexedObject=indexedObject,$assign=Object.assign,defineProperty=Object.defineProperty,concat=uncurryThis([].concat),objectAssign=!$assign||fails(function(){var e,t,n,r;return!(!DESCRIPTORS||1===$assign({b:1},$assign(defineProperty({},"a",{enumerable:!0,get:function(){defineProperty(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},r="abcdefghijklmnopqrst",(e={})[n=Symbol()]=7,r.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[n])||objectKeys($assign({},t)).join("")!=r})?function(e,t){for(var n=toObject(e),r=arguments.length,i=1,o=getOwnPropertySymbolsModule.f,a=propertyIsEnumerableModule.f;i<r;)for(var s,l=IndexedObject(arguments[i++]),c=o?concat(objectKeys(l),o(l)):objectKeys(l),u=c.length,d=0;d<u;)s=c[d++],DESCRIPTORS&&!call(a,l,s)||(n[s]=l[s]);return n}:$assign,assign=objectAssign;function __rest$1(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function __awaiter$3(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign},{assign:assign});const useStyles$2$3=makeStyles()((e,{titleColor:t,logo:n,activeColor:r,onClickLogo:i},o)=>({appBar:{top:0,left:0,right:0,display:"flex",position:"fixed",boxShadow:"none",borderBottom:"0.5px solid "+e.palette.divider,["& ."+o.logo]:{cursor:"pointer","& img":{width:"100%",height:"100%",objectFit:"scale-down",userSelect:"none"}},backgroundColor:e.palette.background.default},menuButton:{display:"flex",justifyContent:"center",alignItems:"center",padding:"0",marginLeft:e.spacing(5)},margin:{marginRight:e.spacing(.4),display:"flex",alignItems:"center"},barIcon:{padding:e.spacing(.8)},iconButton:{padding:0},hamburgerIcon:{padding:e.spacing(1.4),width:32,height:32,WebkitMask:`url("${img$1D}") no-repeat 50% 50%`,backgroundColor:t},appLogo:{display:"inline-block",width:150,height:32,backgroundImage:`url("${n}")`,backgroundRepeat:"no-repeat",backgroundPosition:"left center",cursor:i?"pointer":"default"},title:{fontStyle:"normal !important",fontWeight:600,fontSize:"18px !important",lineHeight:"22px !important",letterSpacing:"0.225px !important",mixBlendMode:"normal",textTransform:"uppercase",color:t+" important",whiteSpace:"nowrap","&:hover":{cursor:"pointer"}},content:{height:"100%",flexGrow:1,display:"flex",flexWrap:"nowrap",flexDirection:"row",alignItems:"center",padding:e.spacing(0,3.2),"& > div":{display:"flex",flexWrap:"nowrap",flexDirection:"row"},["& ."+o.left]:{justifyContent:"flex-start"},["& ."+o.right]:{justifyContent:"flex-end"},["& ."+o.searchBarHolder]:{flexGrow:1},["& ."+o.appLogo]:{userSelect:"none"},["& ."+o.controllers]:{display:"flex",alignItems:"center"}},iconGroup:{display:"flex",justifyContent:"space-between",alignItems:"center"},iconGroupIcon:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},rightActionLabel:{fontWeight:400,fontSize:14,lineHeight:"16px",textDecoration:"none",color:"white",cursor:"pointer",display:"block"},noSelect:{userSelect:"none"},active:{opacity:1},smallOrgAvatar:{width:"30px !important",height:"30px !important",fontSize:"16px !important"},passive:{opacity:.8},icon:{width:"40px !important",height:"40px !important",padding:0,backgroundPosition:"center",backgroundRepeat:"no-repeat"},logo:{},left:{},right:{},searchBarHolder:{},controllers:{},appIcon:{height:"32px",width:"32px",borderRadius:"50%",marginLeft:e.spacing(4.4),"&:hover":{cursor:"pointer"}},applicationIcon:{WebkitMask:`url("${img$15}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},veritoneLogo:{WebkitMask:`url("${img$1C}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},openPanel:{backgroundImage:`url("${img$1g}") !important`},notificationIcon:{WebkitMask:`url("${img$8}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},applicationSettingsIcon:{WebkitMask:`url("${img$1v}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},dashboardIcon:{WebkitMask:`url("${img$a}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},openNotificationPanel:{backgroundImage:`url(${img$1f}) !important`},orgIcon:{borderRadius:"50%",width:30,height:30,backgroundRepeat:"no-repeat",backgroundPosition:"center"},logoIcon:{WebkitMask:`url("${n}") no-repeat 50% 50%`,backgroundColor:t},helpIcon:{WebkitMask:`url("${img$9}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},openHelp:{backgroundImage:`url(${img$1e}) !important`},orgButton:{padding:e.spacing(2)},panelActive:{borderRadius:"50%",backgroundColor:r},notificationBadge:{"& > span":{top:e.spacing(2),right:e.spacing(2)}},appBarSkeleton:{position:"absolute",zIndex:1005,height:55},marginRightSkeleton:{marginRight:e.spacing(4)},leftContainerSkeleton:{display:"flex",alignItems:"center",paddingLeft:e.spacing(5)}})),useStyles$1$3=makeStyles()((e,t,n)=>({popover:{marginTop:18,["& "+n.helpItemText]:{padding:e.spacing(0),fontSize:15},["& "+n.versionWrapper]:{padding:e.spacing(3.2,0),["& "+n.versionText]:{fontSize:12,color:"#757575"}}},helpItemText:{},versionWrapper:{},versionText:{},help:{},barIcon:{padding:e.spacing(.8)},icon:{width:"40px !important",height:"40px !important",padding:e.spacing(0),backgroundPosition:"center",backgroundRepeat:"no-repeat"},helpIcon:{WebkitMask:`url("${img$9}") no-repeat 50% 50%`,backgroundColor:e.palette.background.default,"&:hover":{backgroundColor:e.palette.background.default}},list:{backgroundColor:e.palette.background.default},popoverColor:{backgroundColor:e.palette.background.default}})),Help=({onOpen:t,onClose:e,helpDocLink:n,helpDocCallback:r,supportCallback:i,displaySupportChat:o,displayChatWithSupport:a,desktopIconStyle:s})=>{var l=useStyles$1$3()["classes"];const[c,u]=react$1.exports.useState(null);const d=()=>{u(null),null!=e&&e()};var p=n||r,f=null==(f=window.config)?void 0:f.appVersion;return jsxRuntime.exports.jsxs("div",Object.assign({className:l.help},{children:[jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.KrqRIg",defaultMessage:"Help Center",description:"appbar tooltip: help-center button text"}),"aria-label":"help"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({className:l.barIcon,onClick:e=>{u(e.currentTarget),null!=t&&t()},"data-veritone-element":"help-button","data-testid":"help-button","aria-label":"help",size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(l.icon,l.helpIcon),style:s})}))})),jsxRuntime.exports.jsx(Popover$1,Object.assign({open:Boolean(c),anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},onClose:d,className:l.popover,classes:{paper:l.popoverColor},disableScrollLock:!0},{children:jsxRuntime.exports.jsxs(List$2,Object.assign({disablePadding:!0,className:l.list},{children:[p&&jsxRuntime.exports.jsxs(ListItemButton$1,Object.assign({onClick:()=>{d(),null!=r&&r(),n&&window.open(n,"_blank")},"data-veritone-element":"show-help-doc-button","data-testid":"show-help-doc-button"},{children:[jsxRuntime.exports.jsx(ListItemIcon$1,{children:jsxRuntime.exports.jsx(AppBarArticleIcon,{})}),jsxRuntime.exports.jsx(ListItemText$1,{primary:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.MSM3Vh",defaultMessage:"View Help Docs",description:"help tooltip: text for documentation"}),classes:{root:l.helpItemText}})]})),a&&jsxRuntime.exports.jsxs(ListItemButton$1,Object.assign({onClick:()=>{null!=i&&i(),sdkEventManager.dispatch(SdkEvents.openSupport),u(null)},"data-veritone-element":"open-chat-with-support-button","data-testid":"app-bar-show-chat-with-support-button"},{children:[jsxRuntime.exports.jsx(ListItemIcon$1,{children:jsxRuntime.exports.jsx(Chat,{fontSize:"small"})}),jsxRuntime.exports.jsx(ListItemText$1,{primary:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-chat-with-support.MBM3Vh2",defaultMessage:"Chat with Support",description:"help tooltip: salesforce chat with support"}),classes:{root:l.helpItemText}})]})),o&&jsxRuntime.exports.jsxs(ListItemButton$1,Object.assign({onClick:()=>{null!=i&&i(),u(null)},"data-veritone-element":"open-support-chat-button","data-testid":"support-chat-button"},{children:[jsxRuntime.exports.jsx(ListItemIcon$1,{children:jsxRuntime.exports.jsx(AppBarInAppGuidance,{})}),jsxRuntime.exports.jsx(ListItemText$1,{primary:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.8aLpuV",defaultMessage:"In-App Guidance",description:"help tooltip: text for documentation"}),classes:{root:l.helpItemText}})]})),f&&jsxRuntime.exports.jsxs(react$1.exports.Fragment,{children:[jsxRuntime.exports.jsx(Divider$1,{}),jsxRuntime.exports.jsx(ListItem$1,Object.assign({className:l.versionWrapper},{children:jsxRuntime.exports.jsx(ListItemText$1,{primary:f,classes:{primary:l.versionText}})}))]})]}))}))]}))},namespace$5="users",userSelector=e=>null==e?void 0:e.aiWareHeaderBar,rootSelector=e=>e,notificationStatusSelector=e=>null!=e&&e.osNotificationPanel?null==e?void 0:e.osNotificationPanel.status:"",useStyles$k=makeStyles()(e=>({title:{paddingTop:e.spacing(5.5)},contentText:{fontSize:14},dialogActions:{marginBottom:e.spacing(3),paddingRight:e.spacing(5)},signOutButton:{height:34,marginRight:e.spacing(1)},staySignedInButton:{height:34}})),LOGOUT_CALL_LIMIT=1;let logoutCallCounter=0;const RESET_IDLE_TIMER_CALL_LIMIT=1,MINUTES_BEFORE_SESSION_EXPIRATION=3;let timer;const SessionTimeout=e=>{const t=e["test"],n=useDispatch();e=useStyles$k().classes;const r=useSelector(isIdleSelector);var i=useSelector(userSelector$2);const o=useSelector(sessionTokenSelector),a=useSelector(loginUrlSelector),s=useSelector(callLogoutSelector),l=useSelector(clickedLogoutSelector),c=null==i?void 0:i.tokenExpiration,u=useSelector(callResetIdleTimerSelector);i=useSelector(sessionTimeoutSelector)||60;const d=useSelector(reloadPageSelector),p=useSelector(resetIdleTimerCallCounterSelector),[f,h]=react$1.exports.useState(t?5:60),[m,g]=react$1.exports.useState(new Date),[y,v]=react$1.exports.useState(),[x,$]=react$1.exports.useState(),[b,C]=react$1.exports.useState(!1),[S,w]=react$1.exports.useState(!1),_=react$1.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setIsIdle,value:e,ephemeral:!0,contentType:"json"}))},[n]),T=(react$1.exports.useEffect(()=>{n(getSessionTimeout(o))},[]),react$1.exports.useEffect(()=>{d&&window.location.replace("/")},[d]),react$1.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setCallLogout,value:e,ephemeral:!0,contentType:"json"}))},[n])),E=react$1.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setClickedLogout,value:e,ephemeral:!0,contentType:"json"}))},[n]),j=react$1.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setCallResetIdleTimer,value:e,ephemeral:!0,contentType:"json"}))},[n]),R=react$1.exports.useCallback(()=>{logoutCallCounter++,T(!0);var e=l?500:5e3;n(logoutRequest({token:o})),setTimeout(()=>{window.location.href=a+"/#/?redirect="+window.location.href},t?2e3:e)},[T,n,o,a,l]);var I=react$1.exports.useCallback(()=>{logoutCallCounter++,_(!1),setTimeout(()=>{T(!0),E(!0),n(logoutRequest({token:o}))},500),setTimeout(()=>{window.location.href=a+"/#/?redirect="+window.location.href},500)},[T,n,o,a,E,_]);var O=()=>{_(!0),clearInterval(timer),timer=setInterval(()=>{h(e=>e-1)},1e3)},k=()=>{!r&&p<RESET_IDLE_TIMER_CALL_LIMIT&&j(!0)};const A=se(t?{timeout:5e3,onIdle:O,onAction:k,debounce:1e3,crossTab:!0,syncTimers:200}:{timeout:6e4*i,onIdle:O,onAction:k,debounce:i/4*6e4,crossTab:!0,syncTimers:200})["reset"],M=react$1.exports.useCallback(()=>{j(!1),A()},[j]),L=react$1.exports.useCallback(()=>{S&&(n(extendTokenRequest({token:o})),w(!1)),_(!1),M(),clearInterval(timer),setTimeout(()=>{h(t?5:60)},500)},[_,M,S,n,o]);return react$1.exports.useEffect(()=>{setTimeout(()=>{g(new Date)},1e3)},[m]),react$1.exports.useEffect(()=>{var e;c&&((e=new Date(c)).setMinutes(e.getMinutes()-MINUTES_BEFORE_SESSION_EXPIRATION),$(new Date(c)),v(e))},[c]),react$1.exports.useEffect(()=>{x&&x.getTime()<m.getTime()&&C(!0),y&&y.getTime()<m.getTime()&&w(!0)},[x,y,m]),react$1.exports.useEffect(()=>{b?R():S&&_(!0)},[x,y,S,b,R,_]),react$1.exports.useEffect(()=>{s&&logoutCallCounter<LOGOUT_CALL_LIMIT&&R()},[s,R]),react$1.exports.useEffect(()=>{r&&0===f&&(clearInterval(timer),setTimeout(()=>{h(10)},500),R())},[f,R,r]),react$1.exports.useEffect(()=>{!r&&u&&p===RESET_IDLE_TIMER_CALL_LIMIT&&M()},[u,r,p,M]),react$1.exports.useEffect(()=>{r||L()},[r,L]),jsxRuntime.exports.jsx(AIWareThemeProvider$1,{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsxs(Dialog$1,Object.assign({open:r&&!l,"aria-labelledby":"session timeout dialog","aria-describedby":"session timeout dialog",disableEscapeKeyDown:!0,maxWidth:"xs","data-test":"session-timeout-dialog"},{children:[jsxRuntime.exports.jsx(DialogTitle$1,Object.assign({id:"session timeout dialog title",className:e.title},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.JEUssf",defaultMessage:"Session Timeout",description:"label session timeout dialog"})})),jsxRuntime.exports.jsx(DialogContent$1,{children:jsxRuntime.exports.jsx(DialogContentText$1,Object.assign({id:"session timeout dialog text",className:e.contentText},{children:s?l?null:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.l85HEz",defaultMessage:"You have been signed due to inactivity or due to your session being expired.",description:"signed out message"}):S?jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.bDessH",defaultMessage:"Your session will expire soon. For your security, we'll automatically sign you out in {signOutTimer} seconds. Choose 'Stay Signed In' to continue or 'Sign Out' if you're done.",description:"label for idle warning expiring soon",values:{signOutTimer:f}}):jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.Ca6Qq0",defaultMessage:"You've been inactive for a while. For your security, we'll automatically sign you out in {signOutTimer} seconds. Choose 'Stay Signed In' to continue or 'Sign Out' if you're done.",description:"label for idle warning inactive for a while",values:{signOutTimer:f}})}))}),s?null:jsxRuntime.exports.jsxs(DialogActions$1,Object.assign({className:e.dialogActions},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:I,color:"primary",variant:"outlined",className:e.signOutButton,"data-test":"sign-out-button"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.jN92ox",defaultMessage:"Sign Out",description:"label for sign out button"})})),jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:L,color:"primary",variant:"contained",className:e.staySignedInButton,"data-test":"stay-signed-in-button"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.WvKhS2",defaultMessage:"Stay Signed In",description:"label for stay signed in button"})}))]}))]}))})})},appBarHeight=55,defaultAppBarZIndex=0,VERITONE_PANEL_ID="VERITONE_PANEL_ID",ORGANIZATION_PANEL_ID="ORGANIZATION_PANEL_ID",NOTIFICATION_PANEL_ID="NOTIFICATION_PANEL_ID",APPLICATION_PANEL_ID="APPLICATION_PANEL_ID",HELP_PANEL_ID="HELP_PANEL_ID",USER_APPLICATION_SETTINGS_PANEL="USER_APPLICATION_SETTINGS_PANEL",NOTIFICATION_BADGE_MAX_COUNT=20,HUB_APP_ID="9B774B0E-A5B1-452C-A0AA-4E2E64EAD2B3",getUserInfo=({appIcon:e="",currentUser:t})=>({appIcon:e,currentUser:null!=t&&t.organization?t:void 0});function NewAppBar({isEnableOrgPanel:e,zIndex:t=defaultAppBarZIndex,leftNav:n,onClickAppbarMenu:r,logoSrc:i,backgroundColor:o="rgb(32.9, 43.1, 47.8)",iconColor:a,title:s,help:l,notification:c=!0,userApplicationSettingsIcon:u,onClickOrgIcon:d,closeButton:p,onCloseSetting:f,onClose:h,onOpenSetting:m,onOpenHelpCenter:g,onOpenNotification:y,onOpenUserApplicationSettings:v,openSetting:x,organization:$={},panels:b=[],unseenCount:C,searchBarMountId:S,textColor:w,rightActions:_=[],applications:T=[],onClickAppSwitchIcon:E,displaySupportChat:j=!0,onDashboardClick:R,showDashboardIcon:I=!1,displayChatWithSupport:O=!0,disableGoHome:P,onClickLogo:k}){var A=tinycolor(o).isDark(),w=w||(A?"#fff":"#000"),A=A?"rgba(255,255,255,0.1)":"rgb(243,245,249)";const M=useStyles$2$3({titleColor:w,logo:i,activeColor:A,onClickLogo:k})["classes"],[L,N]=react$1.exports.useState([]);A=useSelector(userSelector)||{};const[D,F]=react$1.exports.useState(!0);var{appIcon:A,currentUser:V}=getUserInfo(A),H=useSelector(betaFeaturesSelector),B=useSelector(appIdSelector)===HUB_APP_ID;react$1.exports.useEffect(()=>("true"===localStorage.getItem("DEBUG")&&console.log("AppBar mounted"),()=>{"true"===localStorage.getItem("DEBUG")&&console.log("AppBar unmounted")}),[]),react$1.exports.useEffect(()=>{var e=b.map(e=>e.panelId);!e.length&&!L.length||isEqual$4(e,L)||N(e)},[b,L]);a={background:a||void 0};return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(SessionTimeout,{}),jsxRuntime.exports.jsx("div",{style:{height:appBarHeight}}),jsxRuntime.exports.jsxs("div",Object.assign({"data-test":"appbar",className:M.appBar,style:{height:appBarHeight,background:o,zIndex:t}},{children:[n&&jsxRuntime.exports.jsx("div",Object.assign({className:M.menuButton},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-menu","data-testid":"app-bar-menu",className:M.iconButton,onClick:r,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.hamburgerIcon)})}))})),!!A&&""!==A&&jsxRuntime.exports.jsx("div",Object.assign({className:M.margin},{children:jsxRuntime.exports.jsx("img",{className:M.appIcon,src:A,alt:"appIcon"})})),jsxRuntime.exports.jsxs("div",Object.assign({className:M.content,style:{color:w}},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.left,M.noSelect),onClick:P&&!k?void 0:function(){k?k():window.location.href="/"},"data-test":"appbarTitle","data-testid":"appbarTitle"},{children:i?jsxRuntime.exports.jsx("span",{className:M.appLogo}):jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1",className:M.title},{children:s}))})),jsxRuntime.exports.jsx("div",{"data-test":"appbarSearch",id:S||"search-bar-id",className:M.searchBarHolder}),jsxRuntime.exports.jsx("div",Object.assign({className:M.right},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:M.controllers},{children:[0<_.length&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.iconGroup,M.noSelect)},{children:_.map(({label:e,onClick:t,isActive:n=!0},r)=>jsxRuntime.exports.jsx("div",Object.assign({className:M.iconGroupIcon},{children:jsxRuntime.exports.jsx("span",{onClick:e=>t?t(e):null,className:classNames(M.rightActionLabel,n?M.active:M.passive),dangerouslySetInnerHTML:{__html:e}})}),"label-"+r))})),I&&jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.dashboard-button",defaultMessage:"aiWARE Dashboard",description:"aiWARE Dashboard label"}),"aria-label":"dashboard"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-dashboard-button",className:M.barIcon,onClick:R,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.dashboardIcon),style:a})}))})),l&&jsxRuntime.exports.jsx("div",Object.assign({"data-test":"app-bar-help-container","data-testid":"app-bar-help-container",className:classNames(M.margin,{[M.panelActive]:L.includes(HELP_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Help,{tooltipTitle:"",helpDocLabel:"View Help Docs",chatWithSupportLabel:"Chat with Support",supportLabel:"In-App Guidance",helpDocCallback:()=>{null!=g&&g()},supportCallback:f,titleColor:w,displaySupportChat:j,displayChatWithSupport:O,desktopIconStyle:a})})),c&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.margin,{[M.panelActive]:L.includes(NOTIFICATION_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.KFXxNr",defaultMessage:"Notifications",description:"appbar tooltip: notification button text"}),"aria-label":"notifications"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({className:M.barIcon,onClick:y,"data-test":"app-bar-notification-button",size:"large","data-testid":"app-bar-notification-button"},{children:jsxRuntime.exports.jsx(Badge$1,Object.assign({badgeContent:C,max:NOTIFICATION_BADGE_MAX_COUNT,color:"primary","data-test":"app-bar-notification-badge",className:M.notificationBadge},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.notificationIcon,{[M.openNotificationPanel]:null==x?void 0:x.openNotificationPanel}),style:a})}))}))}))})),H&&u&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.margin,{[M.panelActive]:L.includes(USER_APPLICATION_SETTINGS_PANEL)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.application-settings-button",defaultMessage:"Application Settings",description:"appbar tooltip: application settings button text"}),"aria-label":"application-settings"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({className:M.barIcon,onClick:v,size:"large","data-testid":"app-bar-user-application-settings-button"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.applicationSettingsIcon)})}))}))})),1<T.length&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames({[M.panelActive]:L.includes(APPLICATION_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.3v499g",defaultMessage:"Applications",description:"applications tooltip: text for applications button"}),"aria-label":"applications"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-switch-app-button",className:M.barIcon,onClick:E,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.applicationIcon,{[M.openPanel]:null==x?void 0:x.openAppSwitchPanel}),style:a})}))}))})),($.imageUrl||$.name)&&e&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.margin,{[M.panelActive]:L.includes(ORGANIZATION_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.7qOwBg",defaultMessage:"Organization",description:"organization tooltip: text for documentation"}),"aria-label":"organization"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-org-button",className:M.barIcon+" "+M.orgButton,onClick:d,size:"large"},{children:$.imageUrl&&D?jsxRuntime.exports.jsx("img",{src:$.imageUrl,className:classNames(M.orgIcon),onError:function(){F(!1)},alt:"org_icon"}):jsxRuntime.exports.jsx(Avatar$1,Object.assign({className:M.smallOrgAvatar,variant:"circular","data-testid":"app-bar-avatar"},{children:getSortName($.name||"")}))}))}))})),V&&!B&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames({[M.panelActive]:L.includes(VERITONE_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.eOxvvM",defaultMessage:"Utilities",description:"utilities tooltip: text for documentation"}),"aria-label":"utilities"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-setting-button","data-testid":"app-bar-setting-button",className:M.barIcon,onClick:m,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.veritoneLogo,{[M.openPanel]:null==x?void 0:x.openVeritonePanel}),style:a})}))}))})),p&&h&&jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("div",Object.assign({style:{marginLeft:"auto"}},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({onClick:h,"data-test":"app-bar-close-button",size:"large","data-testid":"app-bar-close-button"},{children:jsxRuntime.exports.jsx(default_1$6,{htmlColor:w})}))}))})]}))}))]}))]}))]})}const GET_CURRENT_USER=`os-app-bar/${namespace$5}/get current user`,GET_CURRENT_USER_SUCCESS=`os-app-bar/${namespace$5}/get current user success`,GET_CURRENT_USER_FAIL=`os-app-bar/${namespace$5}/get current user fail`,GET_CURRENT_APP_ICON=`os-app-bar/${namespace$5}/get current app icon`,GET_CURRENT_APP_ICON_SUCCESS=`os-app-bar/${namespace$5}/get app icon success`,getCurrentUser=()=>({type:GET_CURRENT_USER}),getCurrentUserFail=()=>({type:GET_CURRENT_USER_FAIL}),getCurrentUserSuccess=e=>({type:GET_CURRENT_USER_SUCCESS,payload:e}),getCurrentAppIcon=({applicationId:e})=>({type:GET_CURRENT_APP_ICON,payload:{applicationId:e}}),getCurrentAppIconSuccess=e=>({type:GET_CURRENT_APP_ICON_SUCCESS,payload:e}),initialState$5={currentUser:{},fetched:!1,fetching:!1,error:!1};function userReducer(e,t){if(void 0===e)return initialState$5;switch(t.type){case GET_CURRENT_USER_FAIL:return Object.assign(Object.assign({},e),{fetching:!1,fetched:!0,error:!0});case GET_CURRENT_USER_SUCCESS:return Object.assign(Object.assign({},e),{currentUser:t.payload,fetching:!1,fetched:!0,error:!1});case GET_CURRENT_APP_ICON_SUCCESS:return Object.assign(Object.assign({},e),{appIcon:t.payload});default:return e}}const nameSpace$1="aiWareHeaderBar",BOOTING="APP_BAR/booting",BOOTED="APP_BAR/booted",onBooted=()=>({type:BOOTED}),getApplicationInfo=(t,n,r)=>__awaiter$3(void 0,void 0,void 0,function*(){var e=`
|
|
1447
|
+
`,operationName:e,token:n,graphQLEndpoint:r}))[t])?void 0:e.id}),selectUserAppGroups=e=>{return(null==(e=e[namespace$3$1])?void 0:e.appGroups)||[]},selectUserAppGroupsRootFolderId=e=>{return(null==(e=e[namespace$3$1])?void 0:e.appGroupsRootFolderId)||""},selectUserAppGroupsUiStatus=e=>{return null==(e=e[namespace$3$1])?void 0:e.uiStatus},selectAppGroupsEditMode=e=>{return!!((null==(e=null==(e=e[namespace$3$1])?void 0:e.user)?void 0:e.appGroups)||[]).find(e=>e.isEdited)};function*fetchUserGroupsSaga(){var t,n,r,i;try{var o=yield select(graphEndpointSelector),a=yield select(sessionTokenSelector);let e=yield select(selectUserAppGroupsRootFolderId);if(!e){var s=yield call$j(fetchUserAppGroupsRootFolderIdApi,a,o);if(!s||s.length<2||null==(t=s[1])||!t.id)return yield put(fetchUserAppGroupsFailed()),void devErrorLogger("Something went wrong while creating root folder for applications");e=null==(n=s[1])?void 0:n.id}var l=yield call$j(fetchUserAppGroupsApi,a,o,e),c=(null==(i=null==(r=null==l?void 0:l.childFolders)?void 0:r.records)?void 0:i.map(e=>{var t;return{groupName:e.name,id:e.id,treeObjectId:e.treeObjectId,apps:null==(t=null==e?void 0:e.childApplications)?void 0:t.records.map(e=>e.id),priority:null==e?void 0:e.orderIndex,parentTreeObjectId:null==(t=null==e?void 0:e.parent)?void 0:t.treeObjectId,isNew:!1,expanded:!1,isEdited:!1,isExpanded:!0}}))||[];c.sort((e,t)=>(null==e?void 0:e.priority)-(null==t?void 0:t.priority)),yield put(fetchUserAppGroupsRootFolderIdSuccess(e)),yield put(fetchUserAppGroupSuccess(c))}catch(e){yield put(fetchUserAppGroupsFailed()),devErrorLogger("Something went wrong while creating root folder for applications: "+JSON.stringify(e))}}function*createNewAppGroupStartSaga(e){var t=yield select(preferredLanguageSelector),t=AIWareFormatMessage(t);try{const a=yield select(graphEndpointSelector),s=yield select(sessionTokenSelector);var n=yield select(selectUserAppGroupsRootFolderId),r=e.payload,i=(yield select(selectUserAppGroups)).find(e=>!0===e.isNew),o=(null==i?void 0:i.apps)||[];const l=yield call$j(createUserGroupApi,s,a,r,n);l&&0<o.length&&(yield all$2(o.map(e=>call$j(addAppToUserGroupApi,s,a,e,l)))),yield put(fetchUserAppGroupsStart())}catch(e){devErrorLogger("Something went wrong while creating application group: "+JSON.stringify(e)),yield put(showMessage({content:isEqual_1("production","development")?"Something went wrong while creating your application group":t({id:"user-app-groups.create-app-error-dsa123",defaultMessage:[{type:0,value:"Something went wrong while creating your application group"}]}),severity:MessageSeverity.Error}))}}function*addAppToGroupSaga(e){var t=yield select(preferredLanguageSelector),t=AIWareFormatMessage(t);try{var n,r,i=e.payload.destination,o=e.payload.appId;validate(i)&&validate(o)&&(n=yield select(graphEndpointSelector),r=yield select(sessionTokenSelector),yield call$j(addAppToUserGroupApi,r,n,o,i))}catch(e){devErrorLogger("Something went wrong while adding app to application group: "+JSON.stringify(e)),yield put(showMessage({content:isEqual_1("production","development")?"Something went wrong while adding application to group":t({id:"user-app-groups.add-app-error-ada534",defaultMessage:[{type:0,value:"Something went wrong while adding application to group"}]}),severity:MessageSeverity.Error}))}}function*removeAppFromGroupSaga(e){var t=yield select(preferredLanguageSelector),t=AIWareFormatMessage(t);try{var n=e.payload.source,r=e.payload.appId,i=yield select(graphEndpointSelector),o=yield select(sessionTokenSelector);yield call$j(removeAppFromGroupApi,o,i,r,n)}catch(e){devErrorLogger("Something went wrong while removing application from group: "+JSON.stringify(e)),yield put(showMessage({content:isEqual_1("production","development")?"Something went wrong while removing application from group":t({id:"user-app-groups.remove-app-error-fsa817",defaultMessage:[{type:0,value:"Something went wrong while removing application from group"}]}),severity:MessageSeverity.Error}))}}function*deleteAppGroupSaga(e){var t=yield select(preferredLanguageSelector),t=AIWareFormatMessage(t);try{const o=e.payload;var n=yield select(graphEndpointSelector),r=yield select(sessionTokenSelector),i=(yield select(selectUserAppGroups)||[]).find(e=>e.id===o);i&&i.treeObjectId&&(yield call$j(deleteAppGroupApi,r,n,i.treeObjectId,i.priority),yield put(fetchUserAppGroupsStart()))}catch(e){devErrorLogger("Something went wrong while deleting application group: "+JSON.stringify(e)),yield put(showMessage({content:isEqual_1("production","development")?"Something went wrong while deleting application group":t({id:"user-app-groups.delete-app-group-error-kio912",defaultMessage:[{type:0,value:"Something went wrong while deleting application group"}]}),severity:MessageSeverity.Error}))}}function*editAppGroupSaga(e){var t=yield select(preferredLanguageSelector),t=AIWareFormatMessage(t);try{var n=e.payload.groupId,r=e.payload.newGroupName,i=yield select(graphEndpointSelector),o=yield select(sessionTokenSelector);n&&r&&(yield call$j(editAppGroupApi,o,i,n,r))}catch(e){devErrorLogger("Something went wrong while editing application group: "+JSON.stringify(e)),yield put(showMessage({content:isEqual_1("production","development")?"Something went wrong while editing application group":t({id:"user-app-groups.edit-app-group-error-ias109",defaultMessage:[{type:0,value:"Something went wrong while editing application group"}]}),severity:MessageSeverity.Error}))}}function*updateGroupPrioritySaga(e){var t=yield select(preferredLanguageSelector),t=AIWareFormatMessage(t);try{const l=e.payload.groupId;var n=e.payload.newPriority,r=e.payload.prevPriority,i=yield select(selectUserAppGroups)||[],o=yield select(graphEndpointSelector),a=yield select(sessionTokenSelector),s=i.find(e=>e.id===l);s&&void 0!==n&&void 0!==r&&(yield call$j(updateGroupPriorityApi,a,o,n,r,s))}catch(e){devErrorLogger("Something went wrong while updating application group order: "+JSON.stringify(e)),yield put(showMessage({content:isEqual_1("production","development")?"Something went wrong while updating application group order":t({id:"user-app-groups.reoder-app-group-error-uas989",defaultMessage:[{type:0,value:"Something went wrong while updating application group order"}]}),severity:MessageSeverity.Error}))}}function*rootSaga$1$1(){yield all$2([takeLatest$1(fetchUserAppGroupsStart.type,fetchUserGroupsSaga),takeLatest$1(createNewAppGroupStart.type,createNewAppGroupStartSaga),takeLatest$1(addAppToGroup.type,addAppToGroupSaga),takeLatest$1(removeAppFromGroup.type,removeAppFromGroupSaga),takeLatest$1(deleteAppGroup.type,deleteAppGroupSaga),takeLatest$1(editAppGroup.type,editAppGroupSaga),takeLatest$1(updateGroupPriority.type,updateGroupPrioritySaga)])}function getAppGroupModule(){return{id:"user-app-group",reducerMap:{[namespace$3$1]:appGroupReducer},sagas:[rootSaga$1$1],initialActions:[]}}const styles={title:{my:2},content:{minWidth:360,px:0,pt:3,pb:0},button:{fontSize:"12px"},actions:{px:4,pt:4,pb:2},cancelButton:{color:"black",py:2},deleteButton:{py:2}},iconMapper={CMS:img$10,Discovery:img$$,Collection:img$_,Library:img$Z,Admin:img$1A,Developer:img$Y};function AppIcon({id:t,icon:e,type:n,iconUrl:r,appName:i,onClick:o,appListV2:a=!1,isAppGroup:s,appGroupId:l}){a=useStyles$d$1({appListV2:a,type:n}).classes;const[c,u]=react$1.exports.useState(e||r||i&&iconMapper[i]||img$Y),[d,p]=react$1.exports.useState(!1);const[f,h]=react$1.exports.useState(null);e=Boolean(f);const m=useDispatch();const g=e=>{e.stopPropagation(),h(null),p(!1)};return jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:i||"",PopperProps:{disablePortal:!0}},{children:jsxRuntime.exports.jsxs("div",Object.assign({onClick:function(){o&&o(t)},className:classNames({[a.iconButton]:"grid"===n,[a.listItem]:"list"===n,[a.switcherGrid]:"switcherGrid"===n}),"data-test":"dt-button-app-icon","data-testid":"dt-button-app-icon",onContextMenu:s?e=>{e.preventDefault(),h(e.currentTarget)}:void 0},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:a.image},{children:jsxRuntime.exports.jsx("img",{alt:"app-icon",onError:function(){u(img$Y)},src:c,draggable:"false",className:a.img})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:a.appName,"data-testid":"os-app-bar-panel.app-switcher.app-name"},{children:i})),jsxRuntime.exports.jsxs(Menu$1,Object.assign({id:"basic-menu",anchorEl:f,open:e,onClose:g,MenuListProps:{"aria-labelledby":"basic-button"},sx:{transform:"translate(60px, -60px)"}},{children:[jsxRuntime.exports.jsx(MenuItem$1,Object.assign({sx:{display:"none"},onClick:e=>{e.stopPropagation(),mountPanel$1({panelId:"APPLICATION_DETAILS_PANEL",microFrontend:{name:"APPLICATION_DETAILS_PANEL",config:{applicationId:t}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xlarge",zIndex:1e3}}),g(e)},"data-testid":`os-app-bar-panel.app-switcher.options-app-detail.${l}.`+t},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.app-group.application-details",defaultMessage:"Application Details",description:"Dropdown menu item that opens application details panel"})})),jsxRuntime.exports.jsx(MenuItem$1,Object.assign({onClick:e=>{e.stopPropagation(),h(null),p(!0)},"data-testid":`os-app-bar-panel.app-switcher.options-remove-app.${l}.`+t},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.app-group.remove-from-group",defaultMessage:"Remove from Group",description:"Dropdown menu item that removes application from group"})}))]})),jsxRuntime.exports.jsx(Dialog$1,Object.assign({open:d,maxWidth:"xs",onClose:g,"data-testid":"os-app-bar-panel.delete-app-from-group.confirmation-dialog"},{children:jsxRuntime.exports.jsxs(DialogTitle$1,{children:[jsxRuntime.exports.jsx("div",Object.assign({className:a.dialogTitle},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.delete-app-from-group.confirmation-title",defaultMessage:"Delete Application",description:"Delete App from Group confirmation title"})})),jsxRuntime.exports.jsxs(DialogContent$1,Object.assign({sx:styles.content},{children:[jsxRuntime.exports.jsx(DialogContentText$1,{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.delete-app-from-group.confirmation-message",defaultMessage:"Are you sure you want to delete this application from the group?",description:"Delete Ap from Group confirmation message"})}),jsxRuntime.exports.jsxs(DialogActions$1,Object.assign({sx:styles.actions},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({sx:styles.cancelButton,onClick:g,"data-testid":"app-switcher.delete-app.cancel-btn"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.delete-app-from-group.cancel-button",defaultMessage:"Cancel",description:"Delete App from Group cancel button"})})),jsxRuntime.exports.jsx(Button$1,Object.assign({color:"primary",variant:"contained",sx:styles.deleteButton,onClick:e=>{e.stopPropagation(),m(removeAppFromGroup({source:l,appId:t.toString()})),g(e)},"data-testid":"app-switcher.delete-app.confirm-btn"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.delete-app-from-group.confirm-button",defaultMessage:"Yes, Delete",description:"Delete App from Group confirmation button"})}))]}))]}))]})}))]}))}))}const useStyles$c$1=makeStyles()((e,{sortOrder:t,hasApps:n,menuIsOpen:r})=>({root:{},header:{height:"60px",position:"sticky"},groupContainer:{padding:"0 15px"},title:{fontWeight:700,padding:"15px"},groupTitle:{background:"#F9F9F9",paddingLeft:"5px",position:"relative",height:"16px","& .Sdk-MuiTypography-root":{fontSize:"10px",fontWeight:700,lineHeight:"10px",position:"absolute",margin:"3px"}},filterIcon:{display:"flex",flexDirection:"column",justifyContent:"center","& svg":{transform:"asc"===t?"scaleY(-1)":"scaleY(1)",cursor:n?"pointer":"not-allowed"}},filterIconWrapper:{width:"24px",height:"24px",borderRadius:"24px",background:r?"rgba(228, 240, 252, 0.8)":"unset","& path":{fill:r?"#0C53B0":"#555F7C"},"&:hover":{background:"rgba(228, 240, 252, 0.8)","& path":{fill:"#0C53B0"}}},searchBox:{display:"flex",flexDirection:"column",justifyContent:"center","& .Sdk-MuiButtonBase-root":{padding:0},"& svg":{width:"14px"},"& input":{"&::placeholder":{color:"#5C6269 !important",fontWeight:600,opacity:1}}},searchField:{borderRadius:"1em",height:"30px"},searchOutline:{borderColor:"#D5DFE9"},searchInput:{fontSize:"11px","&::placeholder":{color:"#5C6269 !important"}},sortMenu:{width:"143px"},airborne:{position:"absolute",background:"rgba(26, 140, 255, 0.9)",transform:"rotate(3.02deg)",color:"white","& *":{fontWeight:"900 !important"},"& img":{background:"white",borderRadius:"50%"}},applicationList:{overflow:"hidden",height:"calc(100vh - 64px - 55px - 60px - 5px)",overflowY:"scroll"}})),SHARED_TEXT$1={buttonLink:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.aaaaa1",defaultMessage:"Link",description:"label of link open id connector button on profile panel"}),buttonUnlink:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.L4gr2p",defaultMessage:"Unlink",description:"label of unlink open id connector button on profile panel"}),basicInfoTabLabel:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.lpZXMT",defaultMessage:"Basic Info",description:"Personal Profile: Basic info name, email etc"}),accountLinkingTabLabel:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.AgbO9g",defaultMessage:"Account Linking",description:"Personal Profile: Open ID Connector Account Linking"}),settingsTabLabel:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.oYYEos",defaultMessage:"Settings",description:"Profile Settings"}),accountLinkingLabel:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.JxMDBr",defaultMessage:"Link your Account",description:"label of manage basic infomation container"}),accountLinkingDescription:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.77MHtz",defaultMessage:"View your accounts from other identify providers that are linked with this account.",description:"description of manage account linking"}),unlinkDialogTitle:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.naysir",defaultMessage:"Unlink this Identity Provider?",description:"title for unlink identity provider"}),unlinkDialogContent:e=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.dwZfY7",defaultMessage:"Are you sure you want to unlink {name} from your account?",description:"content for unlink identity provider",values:{name:e||""}}),unlinkDialogCancel:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.SNjPPT",defaultMessage:"Cancel",description:"cancel for unlink identity provider"}),unlinkDialogConfirm:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.KJyVd9",defaultMessage:"Yes, Unlink",description:"confirm for unlink identity provider"}),successDialogTitle:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.ZaKL3e",defaultMessage:"Account Successfully linked!",description:"title for success identity provider"}),successDialogContent:e=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.IP+fpM",defaultMessage:"You can now log into this account using {name}.",description:"content for success identity provider",values:{name:e||""}}),successDialogConfirm:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.1DTtvD",defaultMessage:"Okay",description:"confirm for success identity provider"}),nullState:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.u6gP99",defaultMessage:"Your account currently has no available account linking options",description:"account linking null state"}),errorState:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.KG2JIz",defaultMessage:"There was an error while loading the available account linking options",description:"account linking error state"}),retry:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.IYUdD6",defaultMessage:"Retry",description:"account linking retry"}),settingsHeader:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.IIE3bM",defaultMessage:"Application Preferences",description:"account settings header"}),settingsSubHeader:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.9xcAYc",defaultMessage:"Manage the settings of aiWARE services and applications.",description:"account settings sub header"})},translatableTextProps=e=>({searchLabel:e.formatMessage({id:"os-app-bar-panel.search.label",defaultMessage:[{type:0,value:"Search"}]})});function AppListDnD({intl:e,selectedAppId:t,onSelectApplication:n,applications:r=[],showAppGroups:i=!1}){const[o,a]=react$1.exports.useState(t),[s,l]=react$1.exports.useState({}),[c,u]=react$1.exports.useState(""),[d,p]=react$1.exports.useState("asc");var f=0!==r.length;function h(e){a(e),n(e)}function m(e,t){return e.name.toLowerCase()>t.name.toLowerCase()?1:e.name.toLowerCase()<t.name.toLowerCase()?-1:0}react$1.exports.useEffect(()=>{if(0<r.length){var e={};for(const n of[...r].sort(m)){var t=n.name.charAt(0).toUpperCase();e[t]=e[t]?[...e[t],n]:[n]}l(e)}},[r]),react$1.exports.useEffect(()=>{t!==o&&a(t)},[t,o]);e=translatableTextProps(e).searchLabel;const[g,y]=react$1.exports.useState(null);var v=Boolean(g);const x=e=>{if(e!==d){p(e);e=Object.keys(s).reverse();const t={};e.forEach(e=>t[e]=s[e].reverse()),l(t)}y(null)},$=useStyles$c$1({sortOrder:d,hasApps:f,menuIsOpen:v})["classes"];f=jsxRuntime.exports.jsxs(Menu$1,Object.assign({id:"app-switcher.sort-menu",anchorEl:g,open:v,onClose:x},{children:[jsxRuntime.exports.jsx(MenuItem$1,Object.assign({onClick:()=>x("asc"),className:$.sortMenu},{children:"A - Z"})),jsxRuntime.exports.jsx(MenuItem$1,Object.assign({onClick:()=>x("desc"),className:$.sortMenu},{children:"Z - A"}))]}));const b=(e,t,n)=>jsxRuntime.exports.jsx(AppIcon,{type:"list",selected:e===o,onClick:h,iconUrl:t,id:e,appName:n,appListV2:!0});return jsxRuntime.exports.jsxs("div",Object.assign({className:$.root,"data-testid":"os-app-bar-panel.app-switcher.applications-container"},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:$.header},{children:jsxRuntime.exports.jsxs(Grid$1,Object.assign({container:!0,spacing:2},{children:[jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:5},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:$.title},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.app-switcher.applications-title",defaultMessage:"Applications",description:"Applications list title"})}))})),jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:5,className:$.searchBox},{children:jsxRuntime.exports.jsx(TextField$1,{"data-testid":"os-app-bar-panel.app-switcher.search",onChange:e=>{u(e.target.value)},placeholder:e,InputProps:{classes:{root:$.searchField,input:$.searchInput,notchedOutline:$.searchOutline},startAdornment:jsxRuntime.exports.jsx(InputAdornment$1,Object.assign({position:"start"},{children:jsxRuntime.exports.jsx(IconButton$1,{children:jsxRuntime.exports.jsx(default_1$8,{})})}))}})})),jsxRuntime.exports.jsxs(Grid$1,Object.assign({item:!0,xs:2,className:$.filterIcon},{children:[jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.app-switcher.sort-btn",defaultMessage:"Sort",description:"Application sort button"})},{children:jsxRuntime.exports.jsx("div",Object.assign({className:$.filterIconWrapper,onClick:e=>{r.length&&y(e.currentTarget)}},{children:jsxRuntime.exports.jsx("div",Object.assign({className:$.filterIcon},{children:jsxRuntime.exports.jsx(SortArrow,{"data-testid":"os-app-bar-panel.app-switcher.sort"})}))}))})),f]}))]}))})),jsxRuntime.exports.jsx("div",Object.assign({className:$.applicationList},{children:0===r.length?jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.dyhBih",defaultMessage:"No Applications",description:"the label no app will show if we have no application for list view"})}))}):jsxRuntime.exports.jsx(ConnectedDroppable,Object.assign({droppableId:"app-list"},{children:e=>jsxRuntime.exports.jsx("div",Object.assign({className:$.groupContainer},e.droppableProps,{ref:e.innerRef},{children:0<Object.keys(s).length&&Object.entries(s).map(([e,t])=>t.filter(e=>e.name.toLowerCase().includes(c.toLowerCase())).length?jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx("div",Object.assign({className:$.groupTitle,"data-testid":"os-app-bar-panel.app-switcher.group-title"},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"overline"},{children:e}))})),t.filter(e=>e.name.toLowerCase().includes(c.toLowerCase())).map((e,t)=>{const{id:l=t,iconUrl:c,name:u}=e;return jsxRuntime.exports.jsxs("div",Object.assign({"data-testid":"os-app-bar-panel.app-switcher.app-row"},{children:[i?jsxRuntime.exports.jsx(PublicDraggable,Object.assign({draggableId:l.toString(),index:t},{children:(a,s)=>jsxRuntime.exports.jsx(NaturalDragAnimation,Object.assign({style:a.draggableProps.style,snapshot:s},{children:e=>{return t=a,n=s,e=e,r=l,i=c,o=u,jsxRuntime.exports.jsx("div",Object.assign({},t.draggableProps,t.dragHandleProps,{ref:t.innerRef,className:n.isDragging?$.airborne:"",style:e},{children:b(r,i,o)}));var t,n,r,i,o}}))}),t):b(l,c,u),jsxRuntime.exports.jsx(Divider$1,{})]}),l)})]},e):null)}))}))}))]}))}var AppListDnD$1=injectIntl(AppListDnD);const useStyles$b$1=makeStyles()(e=>({tabsBox:{height:"100%"},fullHeight:{height:"100%"},listContainer:{overflow:"hidden",height:"calc(100vh - 64px - 55px - 5px)",overflowY:"scroll"},skeletonContainer:{position:"absolute",width:"100%",height:"100%",zIndex:5,backgroundColor:"white"}})),useStyles$a$1=makeStyles()(e=>({root:{height:"calc(100vh - 64px - 55px - 5px)",overflowY:"scroll",borderRight:"15px solid #F9F9F9",boxShadow:"0px 1px 1px #809cb7","&::-webkit-scrollbar":{display:"none"}},appTile:{overflow:"hidden"},title:{fontWeight:700,padding:"15px 15px 0 15px"},groupTitle:{fontWeight:700,padding:"15px"},helperText:{paddingLeft:"15px",fontSize:"12px",fontWeight:"bold"},noApps:{textAlign:"center",marginTop:"30px","& svg":{width:"160px",height:"160px",marginBottom:"20px"},marginBottom:"20px"},appGroup:{borderTop:"1px solid #D5DFE9"},currentLanding:{position:"relative",minHeight:"155px !important"},idleLanding:{minHeight:"10px"},runway:{minHeight:"110px",position:"absolute",background:"rgba(255, 255, 255, 0.8)",width:"94%",height:"100%",border:"1px dashed #CAD7E3",borderRadius:"4px",display:"flex",textAlign:"center",flexDirection:"column",justifyContent:"center"},landingText:{fontSize:"16px !important",fontWeight:"600 !important",color:"rgba(124, 132, 141, 1)"},airborneGroup:{height:"50px !important",background:"rgba(26, 140, 255, 0.9)",color:"white","& div":{display:"none"}},groupHandler:{display:"flex",justifyContent:"space-between","&:hover":{background:"rgba(242, 242, 242, 0.5)"}}})),useStyles$9$1=makeStyles()(()=>({root:{padding:"15px"},groupNameInput:{height:"36px","& input":{width:"100% !important",height:"36px",padding:"0 0 0 15px",color:"rgba(92, 98, 105, 1)",borderRadius:"4px",border:"none"},marginBottom:"10px",width:"100% !important",background:"#F5FDFF"},notInterested:{height:"18px","& svg":{height:"18px",cursor:"pointer"}},confirm:{height:"20px",cursor:"pointer"},newGroupApps:{marginBottom:"20px",display:"flex",flexDirection:"column",justifyContent:"center",textAlign:"center",height:"101px",background:"#FAFAFA",borderRadius:"4px"},landingText:{color:"rgba(156, 168, 180, 1)"},relativeContainer:{position:"relative"},fullWidthRunway:{top:0,width:"100%"}})),AppGroupPlaceholder=({apps:n,classes:r})=>{var e=useSelector(preferredLanguageSelector),e=AIWareFormatMessage(e);const i=useStyles$9$1()["classes"],t=useDispatch(),[o,a]=react$1.exports.useState("");const s=isEqual_1("production","development")?"Please provide a name for your new App group":e({id:"os-app-bar-panel.new-app-group.missing-name",defaultMessage:[{type:0,value:"Please provide a name for your new App group"}]});return jsxRuntime.exports.jsxs("div",Object.assign({className:i.root},{children:[jsxRuntime.exports.jsx(TextField$1,{value:o,onChange:e=>{a(e.target.value)},"data-testid":"os-app-bar.new-app-group.name-input-container",className:i.groupNameInput,InputProps:{endAdornment:jsxRuntime.exports.jsxs(InputAdornment$1,Object.assign({position:"end"},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:i.confirm,onClick:()=>{o?t(createNewAppGroupStart(o)):t(showMessage({content:s,severity:MessageSeverity.Error}))},"data-testid":"os-app-bar.new-app-group.save-btn"},{children:jsxRuntime.exports.jsx(Checkmark,{})})),jsxRuntime.exports.jsx("div",Object.assign({className:i.notInterested,onClick:()=>{t(removeNewAppGroupPlaceholder())},"data-testid":"os-app-bar.new-app-group.cancel-btn"},{children:jsxRuntime.exports.jsx(NotInterested,{})}))]}))},inputProps:{"data-testid":"os-app-bar.new-app-group.name-input"}}),jsxRuntime.exports.jsx(ConnectedDroppable,Object.assign({droppableId:"new-group-placeholder"},{children:(e,t)=>jsxRuntime.exports.jsxs("div",Object.assign({ref:e.innerRef},e.droppableProps,{className:i.relativeContainer,style:{width:"100%"}},{children:[n.length?jsxRuntime.exports.jsx(Grid$1,Object.assign({container:!0,sx:{position:"relative",marginBottom:"15px"}},{children:n.map((e,t)=>{var{id:e=t,iconUrl:t,name:n}=e;return jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:4,sx:{padding:0,overflow:"hidden"},"data-testid":"app-switcher.new-app-group.app-tile"},{children:jsxRuntime.exports.jsx(AppIcon,{type:"switcherGrid",selected:!1,onClick:()=>{},iconUrl:t,id:e,appName:n,appListV2:!0})}),e)})})):jsxRuntime.exports.jsx("div",Object.assign({className:i.newGroupApps},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:i.landingText},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.new-app-group.apps-landing",defaultMessage:"Drag Applications Here",description:"helper text to tell users where to drag apps for the new app group"})}))})),t.isDraggingOver&&n.length?jsxRuntime.exports.jsx(Runway,{classes:r,rootClassName:i.fullWidthRunway}):null]}))}))]}))},GroupDraggingPlaceholder=({isDragging:e,className:t,groupName:n,dragHandleProps:r})=>e?jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:t},r,{children:n})):null,useStyles$8$1=makeStyles()(()=>({root:{padding:"15px"},groupNameInput:{height:"36px","& input":{width:"100% !important",height:"36px",padding:"0 0 0 15px",color:"rgba(92, 98, 105, 1)",borderRadius:"4px",border:"none"},marginBottom:"10px",width:"100% !important",background:"#F5FDFF"},notInterested:{height:"18px",cursor:"pointer"},confirm:{cursor:"pointer"},groupHandler:{display:"flex",justifyContent:"space-between",alignItems:"center","&:hover":{background:"rgba(242, 242, 242, 0.5)"}},invisibleHandler:{display:"none"},groupTitle:{fontWeight:700,padding:"15px"},handlerMenu:{height:"40px",width:"40px",marginRight:"10px"}})),GroupHandler=({dragHandleProps:e,groupName:t,groupId:n,isExpanded:r=!0})=>{const i=useSelector(selectAppGroupsEditMode),o=useDispatch(),[a,s]=react$1.exports.useState(!1),[l,c]=react$1.exports.useState(""),[u,d]=react$1.exports.useState(null);var p=Boolean(u);const f=()=>{d(null)};var h=useStyles$8$1()["classes"];react$1.exports.useEffect(()=>{c(t)},[]);const m=()=>{o(editAppGroup({edit:!0,groupId:n})),s(!0)};return jsxRuntime.exports.jsx("div",Object.assign({className:a?h.root:h.groupHandler},{children:a?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(TextField$1,{value:l,onChange:e=>{c(e.target.value)},"data-testid":`os-app-bar.app-group.${n}.name-input-container`,className:h.groupNameInput,InputProps:{endAdornment:jsxRuntime.exports.jsxs(InputAdornment$1,Object.assign({position:"end"},{children:[jsxRuntime.exports.jsx(Checkmark,{className:h.confirm,onClick:()=>{f(),o(editAppGroup({edit:!1,groupId:n,newGroupName:l})),s(!1)},"data-testid":`os-app-bar.app-group.${n}.save-btn`}),jsxRuntime.exports.jsx(NotInterested,{className:h.notInterested,onClick:()=>{f(),o(editAppGroup({edit:!1,groupId:n})),s(!1)},"data-testid":`os-app-bar.app-group.${n}.cancel-btn`})]}))},inputProps:{"data-testid":`os-app-bar.app-group.${n}.name-input`}}),jsxRuntime.exports.jsx("div",Object.assign({},e))]}):jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:h.groupTitle},e,{onClick:e=>{2!==e.detail||i||m()},"data-testid":"os-app-bar-panel.app-switcher.group-name."+n},{children:t})),jsxRuntime.exports.jsx(IconButton$1,Object.assign({onClick:e=>{e.preventDefault(),d(e.currentTarget)},size:"small",className:h.handlerMenu,"data-testid":"os-app-bar-panel.app-switcher.options-btn."+n},{children:jsxRuntime.exports.jsx(MoreHor,{fontSize:"small"})})),jsxRuntime.exports.jsxs(Menu$1,Object.assign({id:"basic-menu",anchorEl:u,open:p,onClose:f,MenuListProps:{"aria-labelledby":"basic-button"},sx:{transform:"translate(-95px, 0)"}},{children:[jsxRuntime.exports.jsx(MenuItem$1,Object.assign({onClick:()=>{f(),setTimeout(()=>{o(expandCollapse(n))},100)},"data-testid":"os-app-bar-panel.app-switcher.options-toggle."+n},{children:r?jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.app-group.menu.hide",defaultMessage:"Hide Group",description:"Hide Group dropdown menu item"}):jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.app-group.menu.expand",defaultMessage:"Expand",description:"Expand dropdown menu item"})})),jsxRuntime.exports.jsx(MenuItem$1,Object.assign({onClick:m,"data-testid":"os-app-bar-panel.app-switcher.options-rename."+n},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.app-group.menu.rename",defaultMessage:"Rename",description:"Rename dropdown menu item"})})),jsxRuntime.exports.jsx(MenuItem$1,Object.assign({onClick:()=>{o(deleteAppGroup(n))},"data-testid":"os-app-bar-panel.app-switcher.options-delete."+n},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.app-group.menu.delete",defaultMessage:"Delete",description:"Delete dropdown menu item"})}))]}))]})}))},GroupApps=({groupApps:e,appGroup:r,classes:i,snapshot:t,handleSelectApplication:o,currentSelected:a})=>jsxRuntime.exports.jsxs(Grid$1,Object.assign({container:!0,sx:{paddingLeft:"10px",position:"relative",marginBottom:"15px"},"data-testid":"app-switcher.app-group."+r.id},{children:[t.isDraggingOver?jsxRuntime.exports.jsx(Runway,{classes:i}):null,e.map((e,t)=>{var{id:e=t,iconUrl:t,name:n}=e;return jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:4,className:i.appTile,sx:{padding:0},"data-testid":"app-switcher.app-group.app-tile."+e},{children:jsxRuntime.exports.jsx(AppIcon,{type:"switcherGrid",selected:e===a,onClick:o,iconUrl:t,id:e,appName:n,appListV2:!0,isAppGroup:!0,appGroupId:r.id})}),e)})]})),LoadingSkeleton=()=>jsxRuntime.exports.jsx(react$1.exports.Fragment,{children:[1,2].map(e=>jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Skeleton$1,{variant:"rectangular",width:345,height:50}),jsxRuntime.exports.jsx(Grid$1,Object.assign({container:!0,sx:{paddingLeft:"10px",position:"relative",marginBottom:"15px"}},{children:[1,2,3].map(e=>jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:4,sx:{padding:0}},{children:jsxRuntime.exports.jsxs(Stack$4,Object.assign({sx:{justifyContent:"center",alignItems:"center",padding:"20px 0px"}},{children:[jsxRuntime.exports.jsx(Skeleton$1,{sx:{m:2},variant:"circular",width:40,height:40}),jsxRuntime.exports.jsx(Skeleton$1,{variant:"text",sx:{fontSize:"10px"},width:30})]}))}),e))}),e)]}))}),Runway=({classes:e,rootClassName:t})=>jsxRuntime.exports.jsx("div",Object.assign({className:e.runway+" "+t},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:e.landingText},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.app-switcher.app-landing",defaultMessage:"Drop Application Here",description:"Helper text to tell users where apps should be dropped"})}))})),RecentAppsDnD=({apps:e=[],allApps:t,onSelectApplication:n,selectedAppId:r,showAppGroups:i})=>{const o=useStyles$a$1()["classes"],[a,s]=react$1.exports.useState(r),l=useDispatch();function c(e){s(e),n(e)}const u=useSelector(selectUserAppGroupsUiStatus),d=useSelector(selectUserAppGroups);return jsxRuntime.exports.jsxs("div",Object.assign({className:o.root,"data-testid":"app-switcher.recent-apps.container"},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:o.title},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"app-bar.app-switcher.recent-apps",defaultMessage:"Recent Applications",description:"Recent Application container title"})})),e.length?jsxRuntime.exports.jsx(Grid$1,Object.assign({container:!0,sx:{paddingLeft:"10px"}},{children:e.map((e,t)=>{var{id:t=t,iconUrl:n,name:r}=e;return jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:4,className:o.appTile,sx:{padding:0},"data-testid":"app-switcher.recent-apps.app-tile"},{children:jsxRuntime.exports.jsx(AppIcon,{type:"switcherGrid",selected:t===a,onClick:c,iconUrl:n,id:t,appName:r,appListV2:!0})}),e.id)})})):jsxRuntime.exports.jsxs("div",Object.assign({className:o.noApps},{children:[jsxRuntime.exports.jsx(NoApps,{fontSize:"large"}),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:o.helperText},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"app-bar.app-switcher.no-recent-apps",defaultMessage:"You haven’t viewed any applications yet.",description:"No Recent Application title"})}))]})),i&&(u===Status.loading?jsxRuntime.exports.jsx(LoadingSkeleton,{}):u===Status.failure?jsxRuntime.exports.jsx(ErrorState$2,{onRetry:()=>l(fetchUserAppGroupsStart()),errorMessage:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.app-groups.error-message",defaultMessage:"Something went wrong while loading your application groups.",description:"application groups error state"})}):u===Status.success&&d.length?jsxRuntime.exports.jsx(AppGroups,{apps:e,allApps:t,userAppGroups:d,handleSelectApplication:c,currentSelected:a}):null)]}))},AppGroups=({userAppGroups:t,allApps:n,apps:o,handleSelectApplication:a,currentSelected:s})=>{const l=useStyles$a$1()["classes"];return jsxRuntime.exports.jsx(ConnectedDroppable,Object.assign({droppableId:"group-list",direction:"vertical",type:"group-list"},{children:e=>jsxRuntime.exports.jsxs("div",Object.assign({ref:e.innerRef},e.droppableProps,{children:[t.map((r,e)=>{const i=[];return r.apps.forEach(t=>{var e=[...n,...o].find(e=>e.id===t);e&&i.push(e)}),r.isNew?jsxRuntime.exports.jsx(AppGroupPlaceholder,{apps:i,classes:l},r.id):jsxRuntime.exports.jsx(PublicDraggable,Object.assign({draggableId:r.id,index:e},{children:(n,e)=>jsxRuntime.exports.jsxs("div",Object.assign({className:e.isDragging?l.airborneGroup:l.appGroup,ref:n.innerRef},n.draggableProps,{children:[jsxRuntime.exports.jsx(GroupDraggingPlaceholder,{isDragging:e.isDragging,className:l.groupTitle,dragHandleProps:n.dragHandleProps,groupName:r.groupName}),jsxRuntime.exports.jsx(ConnectedDroppable,Object.assign({droppableId:r.id},{children:(e,t)=>jsxRuntime.exports.jsxs("div",Object.assign({ref:e.innerRef},e.droppableProps,{className:t.isDraggingOver?l.currentLanding:l.idleLanding},{children:[jsxRuntime.exports.jsx(GroupHandler,{groupName:r.groupName,dragHandleProps:n.dragHandleProps,groupId:r.id,isExpanded:r.isExpanded}),t.isDraggingOver&&!i.length?jsxRuntime.exports.jsx(Grid$1,Object.assign({container:!0,sx:{paddingLeft:"10px",position:"relative",marginBottom:"15px",minHeight:"110px"}},{children:jsxRuntime.exports.jsx(Runway,{classes:l})})):null,jsxRuntime.exports.jsx(Collapse$1,Object.assign({in:(r.isExpanded||void 0===r.isExpanded)&&0<i.length,timeout:"auto",unmountOnExit:!0},{children:jsxRuntime.exports.jsx(GroupApps,{groupApps:i,classes:l,snapshot:t,handleSelectApplication:a,currentSelected:s,appGroup:r})}))]}))}))]}),r.id)}),r.id)}),e.placeholder]}))}))};function ApplicationPanelDnD({selectedAppId:e,onChangeTab:t,recentApplist:n=[],applications:r=[],onClickApp:i,showAppGroups:o=!1}){var a=useStyles$b$1()["classes"],s=useSelector(preferredLanguageSelector);const l=useSelector(selectUserAppGroups)||[];s=AIWareFormatMessage(s);const c=useDispatch(),[u,d]=react$1.exports.useState(0===n.length?0:n.length<4?1:2),[p,f]=(react$1.exports.useEffect(()=>{var e=0===n.length?0:n.length<4?1:2;d(e)},[n]),react$1.exports.useState(e));function h(e){f(e),null!=t&&t(e),null!=i&&i(e)}react$1.exports.useEffect(()=>{e!==p&&f(e)},[e,p]);const m=isEqual_1("production","development")?"This application has already been added to the group":s({id:"os-app-bar-panel.user-app-groups.duplicate-app-error",defaultMessage:[{type:0,value:"This application has already been added to the group"}]});react$1.exports.useEffect(()=>{o&&c(fetchUserAppGroupsStart())},[c]);return jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getAppGroupModule()]},{children:jsxRuntime.exports.jsx(DragDropContext,Object.assign({onDragEnd:e=>{if(o){const{destination:t,draggableId:n,type:r}=e;"group-list"===r?(e=l.find(e=>e.id===n))&&t&&c(updateGroupPriority({groupId:n,newPriority:t.index,prevPriority:e.priority})):((null==(e=l.find(e=>e.id===(null===t||void 0===t?void 0:t.droppableId)))?void 0:e.apps)||[]).find(e=>e===n)?c(showMessage({content:m,severity:MessageSeverity.Error})):t&&c(addAppToGroup({destination:null===t||void 0===t?void 0:t.droppableId,appId:n}))}}},{children:jsxRuntime.exports.jsx("div",Object.assign({className:a.fullHeight},{children:jsxRuntime.exports.jsxs(Grid$1,Object.assign({container:!0,className:a.fullHeight},{children:[jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:6,className:a.fullHeight},{children:jsxRuntime.exports.jsx(RecentAppsDnD,{apps:n,allApps:r,onSelectApplication:h,selectedAppId:null,showAppGroups:o})})),jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:6,className:a.fullHeight},{children:jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(AppListDnD$1,{title:s({id:"os-app-bar-panel.name.moreApps",defaultMessage:[{type:0,value:"More Applications"}]}),type:"More",applications:r,onSelectApplication:h,selectedAppId:null,row:u,showAppGroups:o})})}))]}))}))}))}))}const useStyles$7$1=makeStyles()(e=>({root:{width:"100%",height:"calc(100% - 30px)"},tabs:{margin:e.spacing(6)},tabPanels:{width:"100%",height:"calc(100% - 80px)"},logRoot:{padding:e.spacing(0,6)},logHeader:{display:"flex",justifyContent:"space-between"},logTitleText:{paddingTop:"4px"},logContent:{marginTop:"12px"},overviewRoot:{padding:e.spacing(0,6),height:"100%"},overviewHeader:{display:"flex",justifyContent:"space-between"},overviewTitleText:{fontWeight:600},overviewContent:{width:"100%",height:"calc(100% - 50px)",display:"flex",flexDirection:"column",overflowY:"auto"},overviewLineChart:{padding:e.spacing(6,0),flex:1},overviewPieChart:{marginTop:0}})),filters$1=[{value:"all",title:"View Current Week"},{value:"no data",title:"View Current Month"}];function Overview(){var e=useStyles$7$1()["classes"];const[t,n]=react$1.exports.useState("all");return jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.overviewRoot,"data-testid":"performance-monitor-overview"},{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.overviewHeader},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"subtitle1",className:e.overviewTitleText},{children:"CPU Load"})),jsxRuntime.exports.jsx(Filter,{data:filters$1,filter:t,onFilter:e=>{n(e.target.value)}})]})),jsxRuntime.exports.jsx(Box$1,{className:e.overviewContent})]}))}const useStyles$6$1=makeStyles()(e=>({table:{minWidth:650},SdkTableCellData:{fontSize:12,color:"#000"},SdkTableCellHeader:{fontSize:12,color:"#9CA8B4",borderBottom:"none",paddingBottom:0},SdkTableCellAvatar:{width:"32px",padding:e.spacing(3,0,3,1)},smallAvatar:{width:32,height:32},SdkTableCellStatus:{color:"#219653",textTransform:"capitalize"},SdkTableCellStatusDeactived:{color:"#8D0707",textTransform:"capitalize"}}));function MuiTable({columns:t=[],data:e=[]}){const r=useStyles$6$1()["classes"];return jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsxs(Table$1,Object.assign({className:r.table,"aria-label":"simple table"},{children:[jsxRuntime.exports.jsx(TableHead$1,{children:jsxRuntime.exports.jsx(TableRow$1,{children:t.map((e,t)=>jsxRuntime.exports.jsx(TableCell$1,Object.assign({classes:{root:r.SdkTableCellHeader},align:e.align},{children:e.label}),t))})}),jsxRuntime.exports.jsx(TableBody$1,{children:e.map((n,e)=>jsxRuntime.exports.jsx(TableRow$1,{children:t.map((e,t)=>"avatar"===e.value?jsxRuntime.exports.jsx(TableCell$1,Object.assign({padding:"checkbox",classes:{root:classNames(r.SdkTableCellData,r.SdkTableCellAvatar)},align:"right"},{children:jsxRuntime.exports.jsx(Avatar$1,{alt:"",src:n[e.value],className:r.smallAvatar})}),t):"status"===e.value?jsxRuntime.exports.jsx(TableCell$1,Object.assign({padding:"checkbox",classes:{root:r.SdkTableCellData},align:e.align},{children:jsxRuntime.exports.jsx("span",Object.assign({className:"deactived"===n[e.value]||"failed"===n[e.value]?r.SdkTableCellStatusDeactived:r.SdkTableCellStatus},{children:n[e.value]}))}),t):jsxRuntime.exports.jsx(TableCell$1,Object.assign({classes:{root:r.SdkTableCellData},align:e.align},{children:n[e.value]}),t))},e))})]}))})}const data$1=[1,2,3,4,5,6,7,8].map(e=>[{name:"LogoGrab - V3F - "+e,engineId:"0006676754"+e,jobId:"20104106_6WnM4rGlXj",status:"Pending",duration:"1s",appName:"Attribute"}]),columns=[{value:"name",label:"Engine Name",align:"left"},{value:"engineId",label:"Engine ID",align:"left"},{value:"jobId",label:"Job ID",align:"left"},{value:"status",label:"Status",align:"left"},{value:"duration",label:"Time",align:"left"},{value:"appName",label:"App Name",align:"left"}],filters=[{value:"all",title:"View All Applications"},{value:"no data",title:"Active Applications"}];function PerformanceLogs(){var e=useStyles$7$1()["classes"];const[t,n]=react$1.exports.useState("all");return jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.logRoot,"data-testid":"performance-monitor-logs"},{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.logHeader},{children:[jsxRuntime.exports.jsx(Filter,{data:filters,filter:t,onFilter:e=>{n(e.target.value)}}),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:e.logTitleText},{children:"Last 24 Hours"}))]})),jsxRuntime.exports.jsx(Box$1,Object.assign({className:e.logContent},{children:jsxRuntime.exports.jsx(MuiTable,{columns:columns,data:data$1})}))]}))}const Resources=()=>jsxRuntime.exports.jsx("div",Object.assign({"data-testid":"performance-monitor-resources"},{children:"Resources"}));function PerformanceErrors(){return jsxRuntime.exports.jsx("div",Object.assign({"data-testid":"performance-monitor-errors"},{children:"Performance Errors"}))}const tabsList$1=[{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.xgDIjO",defaultMessage:"Overview",description:"tab label: Overview"}),disabled:!1},{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.NXAxMt",defaultMessage:"Logs",description:"tab label: Logs"}),disabled:!1},{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.Mxysi8",defaultMessage:"Resources",description:"tab label: Resources"}),disabled:!0},{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.Qj95LF",defaultMessage:"Errors",description:"tab label: Errors"}),disabled:!0}];function PerformanceMonitor(){var e=useStyles$7$1()["classes"];const[t,n]=react$1.exports.useState(0);return jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.root,"data-testid":"performance-monitor"},{children:[jsxRuntime.exports.jsx(Box$1,Object.assign({className:e.tabs},{children:jsxRuntime.exports.jsx(CustomTabs,{selectedId:t,onChangeTab:e=>{n(Number(e))},tabsList:tabsList$1})})),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.tabPanels},{children:[jsxRuntime.exports.jsx(TabPanel,Object.assign({value:t,index:0},{children:jsxRuntime.exports.jsx(Overview,{})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:t,index:1},{children:jsxRuntime.exports.jsx(PerformanceLogs,{})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:t,index:2},{children:jsxRuntime.exports.jsx(Resources,{})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:t,index:3},{children:jsxRuntime.exports.jsx(PerformanceErrors,{})}))]}))]}))}const useStyles$5$2=makeStyles()(e=>({root:{display:"flex",justifyContent:"center"},changeAvatarIcon:{color:"#121212 !important",backgroundColor:"#ffffff !important",padding:e.spacing(1.2)+" !important","&:hover":{backgroundColor:"#ffffff !important"}},avatarLarge:{color:e.palette.secondary.main,backgroundColor:"#ffffff !important",fontSize:"30px !important",width:"84px !important",height:"84px !important",border:"5px solid #E8E8E8"}})),AvatarProfile=({avatar:e,sortName:t,onEditAvatarClick:n,loadingStatus:r})=>{var i=useStyles$5$2()["classes"];return jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("div",Object.assign({className:i.root},{children:jsxRuntime.exports.jsx(Badge$1,Object.assign({"data-test":"dt-button-upload-avatar-icon",overlap:"circular","data-testid":"dt-button-upload-avatar-icon",anchorOrigin:{vertical:"bottom",horizontal:"right"},badgeContent:jsxRuntime.exports.jsx(IconButton$1,Object.assign({color:"primary","aria-label":"upload picture",className:i.changeAvatarIcon,onClick:()=>{n()},"data-test":"app-bar-update-avatar",size:"large","data-testid":"app-bar-update-avatar"},{children:jsxRuntime.exports.jsx("img",{src:img$1d,alt:""})}))},{children:"loading"===r?jsxRuntime.exports.jsx(CircularProgress$1,{}):e?jsxRuntime.exports.jsx(Avatar$1,{"data-test":"dt-user-avatar-image",src:e,className:i.avatarLarge}):jsxRuntime.exports.jsx(Avatar$1,Object.assign({className:i.avatarLarge},{children:null==t?void 0:t.toUpperCase()}))}))}))})},useStyles$4$2=makeStyles()(e=>({container:{marginTop:e.spacing(4),padding:e.spacing(4,4),textAlign:"center",border:"0.5px solid #D5DFE9",borderRadius:e.spacing(2)},text:{marginTop:e.spacing(3)},icon:{display:"inline !important"}})),NullState=()=>{var e=useStyles$4$2()["classes"];return jsxRuntime.exports.jsxs("div",Object.assign({className:e.container},{children:[jsxRuntime.exports.jsx(Icon$1,Object.assign({className:e.icon},{children:jsxRuntime.exports.jsx(NoLink,{fontSize:"large"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:e.text},{children:SHARED_TEXT$1.nullState()})),jsxRuntime.exports.jsx(Box$1,{mb:9})]}))},ErrorState$1=({onRetry:e})=>{var t=useStyles$4$2()["classes"];return jsxRuntime.exports.jsxs("div",Object.assign({className:t.container},{children:[jsxRuntime.exports.jsx(Icon$1,Object.assign({className:t.icon},{children:jsxRuntime.exports.jsx(AlarmTwo,{fontSize:"large"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:t.text,"data-test":"account-linking-error-message"},{children:SHARED_TEXT$1.errorState()})),jsxRuntime.exports.jsx(Box$1,{mt:4}),jsxRuntime.exports.jsx(Button$1,Object.assign({variant:"text",size:"large","data-test":"account-linking-retry-btn",onClick:e},{children:SHARED_TEXT$1.retry()}))]}))};var useStyles$3$3=makeStyles()(e=>({accountLinkingLabel:{fontWeight:"normal",userSelect:"none"},openIdLogo:{width:e.spacing(5),height:e.spacing(5),backgroundColor:"#ffffff",color:"#555F7C"},listAvatar:{minWidth:"45px"},openIdContainer:{marginTop:e.spacing(3)},openIdItem:{padding:e.spacing(3)+"px 0px"},openIdTextContainer:{marginLeft:e.spacing(3.5),display:"inline-block",verticalAlign:"top"},secondaryAction:{right:"0"},linkBtn:{textTransform:"capitalize"},linkIcon:{marginRight:e.spacing(1),color:e.palette.primary.main},dialogTitle:{padding:`${e.spacing(6)} ${e.spacing(6)} ${e.spacing(1)}px !important `},dialogContent:{padding:`${e.spacing(1)} ${e.spacing(6)} !important `},dialogTitleText:{fontWeight:600},dialogAction:{padding:e.spacing(4)},displayNone:{display:"none"},displayInlineBlock:{display:"inline-block"}}));const OpenIdConnectorButton=({isConnected:e,onLink:t,onUnlink:n})=>{var r=useStyles$3$3()["classes"];return jsxRuntime.exports.jsx("div",{children:e?jsxRuntime.exports.jsx(Button$1,Object.assign({className:r.linkBtn+" "+r.displayNone,variant:"text","data-test":"account-linking-unlink-btn",onClick:n},{children:SHARED_TEXT$1.buttonUnlink()})):jsxRuntime.exports.jsxs(Button$1,Object.assign({variant:"outlined",color:"primary",className:r.linkBtn,"data-test":"account-linking-link-btn",onClick:t},{children:[jsxRuntime.exports.jsx(default_1$7,{className:r.linkIcon}),SHARED_TEXT$1.buttonLink()]}))})};function OpenIdConnectors({openIdItems:i,onOpenUnlinkModal:o,onClickOpenIdUrl:a,isOpenIdConnected:s}){const l=useStyles$3$3()["classes"];return jsxRuntime.exports.jsx(List$2,{children:i.map((e,t)=>{var{name:n,loginButtonStyle:r}=e,r=null==r?void 0:r.btnLogo;return jsxRuntime.exports.jsxs(react$1.exports.Fragment,{children:[jsxRuntime.exports.jsxs(ListItem$1,Object.assign({className:l.openIdItem},{children:[jsxRuntime.exports.jsx(ListItemAvatar$1,Object.assign({className:l.listAvatar},{children:jsxRuntime.exports.jsx(Avatar$1,Object.assign({className:l.openIdLogo,src:r},{children:jsxRuntime.exports.jsx(OrgFilled,{})}))})),jsxRuntime.exports.jsx(ListItemText$1,{primary:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:25<n.length?n:"",placement:"bottom-end"},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:l.accountLinkingLabel},{children:25<n.length?n.substring(0,25)+"...":n}))}))}),jsxRuntime.exports.jsx(ListItemSecondaryAction$1,Object.assign({className:l.secondaryAction},{children:jsxRuntime.exports.jsx(OpenIdConnectorButton,{isConnected:s(e.connectId),onLink:()=>a(e),onUnlink:()=>o(e)})}))]})),t!==i.length-1&&jsxRuntime.exports.jsx(Divider$1,{})]})})})}const LoaderSkeletonItem$1=()=>{var e=useStyles$3$3()["classes"];return jsxRuntime.exports.jsxs(ListItem$1,Object.assign({className:e.openIdItem},{children:[jsxRuntime.exports.jsx(ListItemAvatar$1,Object.assign({className:e.listAvatar},{children:jsxRuntime.exports.jsx(Skeleton$1,{variant:"circular",width:25,height:25})})),jsxRuntime.exports.jsx(ListItemText$1,{children:jsxRuntime.exports.jsx(Skeleton$1,{variant:"text",width:150,height:21})}),jsxRuntime.exports.jsx(ListItemSecondaryAction$1,Object.assign({className:e.secondaryAction},{children:jsxRuntime.exports.jsx(Skeleton$1,{variant:"rectangular",width:87,height:35})}))]}))},LoaderSkeleton=()=>jsxRuntime.exports.jsxs(List$2,{children:[jsxRuntime.exports.jsx(LoaderSkeletonItem$1,{}),jsxRuntime.exports.jsx(Divider$1,{}),jsxRuntime.exports.jsx(LoaderSkeletonItem$1,{}),jsxRuntime.exports.jsx(Divider$1,{}),jsxRuntime.exports.jsx(LoaderSkeletonItem$1,{})]}),namespace$2$2="openId",selectOpenIdConnectors=e=>{return null==(e=null==e?void 0:e[namespace$2$2])?void 0:e.openIdConnectors},selectConnectedOpenIds=e=>{return null==(e=null==e?void 0:e[namespace$2$2])?void 0:e.connectedOpenIds},selectLoadingStatus$1=e=>{return null==(e=null==e?void 0:e[namespace$2$2])?void 0:e.status},GET_OPEN_ID_CONNECTORS=`aiware/${namespace$2$2}/get open id connectors`,GET_OPEN_ID_SUCCESS=`aiware/${namespace$2$2}/get open id connectors success`,GET_CONNECTED_OPEN_ID_SUCCESS=`aiware/${namespace$2$2}/get connected open id connectors success`,GET_OPEN_ID_ERROR=`aiware/${namespace$2$2}/get open id connectors error`;function getOpenIdConnectors(){return{type:GET_OPEN_ID_CONNECTORS}}function getOpenIdConnectorSuccess(e){return{type:GET_OPEN_ID_SUCCESS,payload:{data:e}}}function getConnectedOpenIdsSuccess(e){return{type:GET_CONNECTED_OPEN_ID_SUCCESS,payload:{data:e}}}function getOpenIdConnectorError(e){return{type:GET_OPEN_ID_ERROR,payload:{message:e}}}const AccountLinking=({openIdConnectors:e})=>{const t=useDispatch(),[n,r]=react$1.exports.useState(!1),[i,o]=react$1.exports.useState(!1),[a,s]=react$1.exports.useState(null);const[l,c]=react$1.exports.useState({}),[u,d]=react$1.exports.useState(),p=useSelector(selectLoadingStatus$1)||"",f=useSelector(selectConnectedOpenIds)||[];var h=useStyles$3$3()["classes"];const m=e=>{c(e),r(!0)};var g=()=>{r(!1)},y=()=>{o(!1)};const v=()=>{t(getOpenIdConnectors())},x=(useInterval(()=>{t(getOpenIdConnectors())},a),e=>{c(e);e=window.open(e.loginUrl);d(e),s(2e3)}),$=react$1.exports.useCallback(t=>f.some(e=>e.connectId===t),[f]);react$1.exports.useEffect(()=>{""!==l.connectId&&null!==a&&$(l.connectId)&&(s(null),null!==u&&void 0!==u&&u.close(),o(!0))},[$,t]);return jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:h.accountLinkingLabel,"data-test":"account-linking-label"},{children:SHARED_TEXT$1.accountLinkingLabel()})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:SHARED_TEXT$1.accountLinkingDescription()})),"pending"===p?jsxRuntime.exports.jsx(LoaderSkeleton,{}):"failure"===p?jsxRuntime.exports.jsx(ErrorState$1,{onRetry:v}):0===e.length?jsxRuntime.exports.jsx(NullState,{}):jsxRuntime.exports.jsx(OpenIdConnectors,{openIdItems:e,onOpenUnlinkModal:m,onClickOpenIdUrl:x,isOpenIdConnected:$}),jsxRuntime.exports.jsxs(Dialog$1,Object.assign({open:n,maxWidth:"xs",onClose:g,"aria-labelledby":"unlink-dialog-title","aria-describedby":"unlink-dialog-description"},{children:[jsxRuntime.exports.jsx(DialogTitle$1,Object.assign({id:"unlink-dialog-title","data-test":"account-linking-unlink-dialog-title",className:h.dialogTitle},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h2",className:h.dialogTitleText},{children:SHARED_TEXT$1.unlinkDialogTitle()}))})),jsxRuntime.exports.jsx(DialogContent$1,Object.assign({className:h.dialogContent},{children:jsxRuntime.exports.jsx(DialogContentText$1,Object.assign({id:"unlink-dialog-description"},{children:SHARED_TEXT$1.unlinkDialogContent(l.name)}))})),jsxRuntime.exports.jsxs(DialogActions$1,Object.assign({className:h.dialogAction},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:g,variant:"text",size:"large",className:h.linkBtn,"data-test":"account-linking-unlink-dialog-cancel-btn"},{children:SHARED_TEXT$1.unlinkDialogCancel()})),jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:g,size:"large",variant:"contained",color:"primary",className:h.linkBtn,"data-test":"account-linking-unlink-dialog-confirm-btn"},{children:SHARED_TEXT$1.unlinkDialogConfirm()}))]}))]})),jsxRuntime.exports.jsxs(Dialog$1,Object.assign({open:i,maxWidth:"xs",onClose:y,"aria-labelledby":"success-dialog-title","aria-describedby":"success-dialog-description"},{children:[jsxRuntime.exports.jsx(DialogTitle$1,Object.assign({id:"success-dialog-title",className:h.dialogTitle,"data-test":"account-linking-success-dialog-title"},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h2",className:h.dialogTitleText},{children:SHARED_TEXT$1.successDialogTitle()}))})),jsxRuntime.exports.jsx(DialogContent$1,Object.assign({className:h.dialogContent},{children:jsxRuntime.exports.jsx(DialogContentText$1,Object.assign({id:"success-dialog-description"},{children:SHARED_TEXT$1.successDialogContent(l.name)}))})),jsxRuntime.exports.jsx(DialogActions$1,Object.assign({className:h.dialogAction},{children:jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:y,size:"large",variant:"contained",color:"primary",className:h.linkBtn,"data-test":"account-linking-success-dialog-confirm-btn"},{children:SHARED_TEXT$1.successDialogConfirm()}))}))]}))]})};var useStyles$2$4=makeStyles()(e=>({personalProfileContainer:{overflowY:"auto"},firstBox:{paddingTop:e.spacing(6),textAlign:"center",borderBottom:"0.5px solid "+e.palette.divider},loggedBox:{fontWeight:400,paddingTop:e.spacing(2),paddingBottom:e.spacing(5)},email:{color:e.palette.primary.main},logoutBox:{paddingBottom:e.spacing(8)},btnLogin:{textTransform:"capitalize",fontSize:"14px",lineHeight:"19px",padding:e.spacing(1,7)},secondBox:{padding:e.spacing(5,6),"& div":{height:"auto !important"}},headerBox:{display:"flex"},editIconBox:{margin:e.spacing(0,-2.4,0,0)},descBox:{fontSize:"14px",color:e.palette.secondary.main},formBox:{marginTop:e.spacing(4)},formItem:{borderBottom:"0.5px solid "+e.palette.divider,marginBottom:e.spacing(4)},formItemPw:{marginBottom:e.spacing(4)+" !important"},titleItem:{color:e.palette.text.disabled,marginBottom:e.spacing(2),cursor:"default"},valueItem:{fontWeight:"normal",color:e.palette.text.secondary,marginBottom:e.spacing(2)},disabledText:{opacity:.6},lastUpdate:{color:"#9CA8B4"},reset:{color:e.palette.primary.main,opacity:.9,marginTop:"35px",cursor:"pointer"},passwordBox:{display:"flex",justifyContent:"space-between",alignItems:"center"},iconResetPw:{margin:"-18px -12px 0 0"},textField:{marginLeft:0,marginRight:0,marginTop:0,marginBottom:"30px",width:"100%"},actionForm:{padding:0,marginBottom:e.spacing(4)},inputBase:{padding:e.spacing(3.4,2.8)},notchedOutline:{"& legend":{height:"16px"}},btnAction:{textTransform:"capitalize",fontSize:"14px",lineHeight:"19px"},btnSave:{marginLeft:e.spacing(1.6)},btnActionCancel:{color:e.palette.secondary.main},pwResetTitle:{color:"#D43060 !important"},pwResetDes1:{marginBottom:"20px"},mainTitleText:{color:e.palette.text.secondary,userSelect:"none",fontSize:"18px",lineHeight:"23px",letterSpacing:"0.25px",textTransform:"uppercase"},contentUserView:{height:"100%",textAlign:"left",position:"relative"},headerDrawer:{padding:e.spacing(3,6),display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider},contentEditAvatar:{padding:e.spacing(6)},areaUpload:{background:e.palette.background.default,textAlign:"center",height:"300px",border:"1px solid "+e.palette.divider,boxSizing:"border-box",borderRadius:"4px",padding:e.spacing(10)},descDrag:{fontSize:"16px",color:"#828282",marginBottom:e.spacing(4)},descDrag2:{color:"#828282",margin:e.spacing(4,0)},btnSelectPhoto:{textTransform:"capitalize",fontSize:"14px",lineHeight:"19px"},recentlyBox:{marginTop:e.spacing(4)},recentlyText:{margin:e.spacing(2,0)},imgRecently:{width:"113px",height:"113px",background:"#C4C4C4",borderRadius:"4px"},imgRecentlyRow:{display:"flex",justifyContent:"space-between",marginBottom:"20px"},resetBiometric:{marginTop:e.spacing(7)},actionButton:{},inputFile:{display:"none !important"},imageGrid:{display:"flex",alignItems:"center",justifyContent:"center",marginBottom:e.spacing(4)},dragging:{filter:"blur(2px)"},currentlyLoggedIn:{fontWeight:"normal",color:e.palette.info.main,lineHeight:e.spacing(3.8),display:"flex",flexDirection:"column",cursor:"default"},manageBasicInfoLabel:{fontWeight:"normal",cursor:"default"},tabsParent:{"& div":{padding:e.spacing(0,0,0,1.6),borderBottom:"none"},"& .Sdk-MuiTab-root.Mui-selected":{color:e.palette.text.primary,fontWeight:600}},editProfilePictureContainer:{height:"calc(100vh - 60px)",display:"flex",flexDirection:"column",position:"relative"},editProfilePictureFooterButtons:{right:"30px",bottom:"30px",position:"absolute"}})),useStyles$1$4=makeStyles()(e=>({settingsHeader:{fontWeight:"normal",cursor:"default"},topMargin:{marginTop:"30px"},fullWidth:{width:"100%"},inputLabel:{fontFamily:"Nunito",fontWeight:300,display:"block",fontSize:14,color:"#5C6269",marginBottom:6},disclaimerText:{fontWeight:400,display:"block",fontSize:12,color:"#9CA8B4",marginTop:12}}));const ProfileSettings=({onPreferredLanguageChange:t,selectedLanguage:e})=>{const[n,r]=react$1.exports.useState("");var i=useStyles$1$4()["classes"],o=(react$1.exports.useEffect(()=>{r(e)},[e]),langs.map(({locale:e,name:t})=>({value:e,name:t})));return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:i.settingsHeader},{children:SHARED_TEXT$1.settingsHeader()})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:SHARED_TEXT$1.settingsSubHeader()})),jsxRuntime.exports.jsxs(FormControl$1,Object.assign({className:i.fullWidth+" "+i.topMargin},{children:[jsxRuntime.exports.jsx("label",Object.assign({className:i.inputLabel,htmlFor:"personal-profile-settings-preferred-language"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.preferredLanguage",defaultMessage:"Preferred Language",description:"Language selection label"})})),jsxRuntime.exports.jsx(Select$1,Object.assign({id:"personal-profile-settings-preferred-language",className:""+i.fullWidth,value:n,onChange:function(e){e=e.target.value,r(e),t(e)}},{children:null==o?void 0:o.map(e=>jsxRuntime.exports.jsx(MenuItem$1,Object.assign({value:null==e?void 0:e.value},{children:null==e?void 0:e.name})))})),jsxRuntime.exports.jsx(Typography$1,Object.assign({className:i.disclaimerText,variant:"subtitle1"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.preferredLanguageDisclaimer",defaultMessage:"Not all products within aiWARE may support your preferred language selection. If you choose a primary language that isn’t available, you may not see it reflected in the product you are currently viewing.",description:"Disclaimer text for preferred language"})}))]}))]})},tabsList$2=[{label:SHARED_TEXT$1.basicInfoTabLabel(),disabled:!1,id:"Basic Info"},{label:SHARED_TEXT$1.accountLinkingTabLabel(),disabled:!1,id:"Account Linking"},{label:SHARED_TEXT$1.settingsTabLabel(),disabled:!1,id:"Settings"}],PersonalProfile=({currentUser:e,handleResetBiometric:t,handleResetPassword:n,handleLogout:r,handleUpdateProfile:i,handleUploadAvatar:o,avatarHistory:a=[],enableResetBiometric:s=!1,loadingStatus:l})=>{var c;const u="EDIT_PROFILE_PICTURE";var d=useStyles$2$4()["classes"];const p=useDispatch();var f=useSelector(userSelector$2),f=null==f?void 0:f.scimConnectId,h=["us-fed-1","us-fed-2"].find(e=>window.location.href.includes(e)),m=useSelector(selectOpenIdConnectors)||[],g=m.some(e=>e.required),h=useSelector(hidePasswordResetSelector)||h||f||g||!1,f=useSelector(preferredLanguageSelector)||"en";const[y,v]=react$1.exports.useState({firstName:"",lastName:"",phoneNumber:"",email:""}),[x,$]=react$1.exports.useState({firstName:"",lastName:"",phoneNumber:""}),[b,C]=react$1.exports.useState(!1),[S,w]=react$1.exports.useState(null),[_,T]=react$1.exports.useState(!1),[E,j]=react$1.exports.useState(!1),[R,I]=react$1.exports.useState(0);var g=useSelector(userAuthStatusSelector),O=AIWareFormatMessage(f);react$1.exports.useEffect(()=>{e&&k(e)},[e]),react$1.exports.useEffect(()=>{p(getOpenIdConnectors())},[p]);const k=e=>{var{firstName:e,lastName:t,imageUrl:n,userSettings:r}=e,r=null==r?void 0:r.find(e=>"phoneNumber"===e.key);v({firstName:e||"",lastName:t||"",phoneNumber:(null==r?void 0:r.value)||"",email:""}),n&&w(n)};var A=react$1.exports.useCallback(()=>{null!=e&&e.email&&(T(!1),n(null==e?void 0:e.email))},[e,n]);var M=n=>e=>{const t=e.target.value;v(e=>Object.assign(Object.assign({},e),{[n]:t})),$(e=>Object.assign(Object.assign({},e),{[n]:""}))};const L=()=>{p(hidePanel$1(u))},P=e=>{o(e),setTimeout(()=>{p(hidePanel$1(u))},500)};g=[AuthStatus.LOGGING_OUT,AuthStatus.LOGGED_OUT].includes(g);return jsxRuntime.exports.jsxs("div",Object.assign({className:d.personalProfileContainer},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:d.firstBox},{children:[jsxRuntime.exports.jsx(AvatarProfile,{avatar:S,sortName:""+((null==(c=y.firstName)?void 0:c.substr(0,1))||"")+((null==(c=y.lastName)?void 0:c.substr(0,1))||""),onEditAvatarClick:()=>{var e={name:"EDIT_PROFILE_PICTURE",config:{name:"Veritone",dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE",onClose:L,onSaveAvatar:P,avatarHistory:a}},t={panelId:u,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,withTab:!1,marginStart:490,width:450,siblingPanelId:"PERSONAL_PANEL",parentPanelId:"PERSONAL_PANEL",dimmed:0,dimmedStatus:"dimParent"};p(mountPanel$1({panelId:u,microFrontend:e,panelConfig:t}))},loadingStatus:l}),jsxRuntime.exports.jsx("div",Object.assign({className:d.loggedBox},{children:jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"body2",className:d.currentlyLoggedIn},{children:[jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.ch1heq",defaultMessage:"Currently logged in as:",description:"personal profile panel currently logged in label"})," ",jsxRuntime.exports.jsx("span",Object.assign({"data-test":"Currently-logged-in-as-email",className:d.email},{children:null==e?void 0:e.email}))]}))})),jsxRuntime.exports.jsx("div",Object.assign({className:d.logoutBox},{children:jsxRuntime.exports.jsx(LoadingButton$1,Object.assign({onClick:r,variant:"outlined",color:"primary","data-test":"dt-button-logout",className:d.btnLogin,loading:g},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.bRcFCr",defaultMessage:"Logout",description:"label of logout button on profile panel"})}))})),jsxRuntime.exports.jsx("div",Object.assign({className:d.tabsParent},{children:jsxRuntime.exports.jsx(CustomTabs,{selectedId:R,onChangeTab:e=>{I(e)},tabsList:tabsList$2})}))]})),jsxRuntime.exports.jsxs("div",Object.assign({className:d.secondBox},{children:[jsxRuntime.exports.jsx(TabPanel,Object.assign({value:R,index:0},{children:jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:d.headerBox},{children:[jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:d.manageBasicInfoLabel},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.5oScQa",defaultMessage:"Manage Your Basic Information",description:"label of manage basic infomation container"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.DjVGBt",defaultMessage:"Basic info, like your name and photo, that you use on Veritone services.",description:"description of manage basic infomation container"})}))]}),jsxRuntime.exports.jsx("div",Object.assign({className:d.editIconBox},{children:!b&&jsxRuntime.exports.jsx(IconButton$1,Object.assign({id:"button-edit",onClick:()=>{j(!1),T(!1),C(!0)},size:"large"},{children:jsxRuntime.exports.jsx("img",{src:img$1a,alt:""})}))}))]})),jsxRuntime.exports.jsxs("div",Object.assign({className:d.formBox},{children:[b?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(TextField$1,{id:"firstName",label:O({id:"os-app-bar-panel.firstName",defaultMessage:[{type:0,value:"First Name"}]}),variant:"outlined",className:d.textField,value:null===y||void 0===y?void 0:y.firstName,onChange:M("firstName"),margin:"normal",error:""!==x.firstName,helperText:x.firstName,InputProps:{classes:{input:d.inputBase,notchedOutline:d.notchedOutline}}}),jsxRuntime.exports.jsx(TextField$1,{id:"lastName",label:O({id:"os-app-bar-panel.lastName",defaultMessage:[{type:0,value:"Last Name"}]}),variant:"outlined",className:d.textField,value:null===y||void 0===y?void 0:y.lastName,onChange:M("lastName"),margin:"normal",error:""!==x.lastName,helperText:x.lastName,InputProps:{classes:{input:d.inputBase,notchedOutline:d.notchedOutline}}}),jsxRuntime.exports.jsx(TextField$1,{id:"phoneNumber",label:O({id:"os-app-bar-panel.phone",defaultMessage:[{type:0,value:"Phone"}]}),variant:"outlined",className:d.textField,value:null===y||void 0===y?void 0:y.phoneNumber,onChange:M("phoneNumber"),margin:"normal",error:""!==x.phoneNumber,helperText:x.phoneNumber,InputProps:{classes:{input:d.inputBase,notchedOutline:d.notchedOutline}}})]}),jsxRuntime.exports.jsxs(DialogActions$1,Object.assign({className:d.actionForm},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:()=>{e&&k(e),C(!1)},color:"primary",id:"button-cancel-edit",className:classNames(d.btnAction,d.btnActionCancel)},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.qpPFGp",defaultMessage:"Cancel",description:"label of cancel button on profile panel"})})),jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:function(){(()=>{let e=!0;return y.firstName||($(Object.assign(Object.assign({},x),{firstName:"This field is required."})),e=!1),y.lastName||($(Object.assign(Object.assign({},x),{lastName:"This field is required."})),e=!1),y.phoneNumber&&!/^\+?(\d){6,}$/.test(y.phoneNumber.toLowerCase())&&($(Object.assign(Object.assign({},x),{phoneNumber:"Invalid phone number."})),e=!1),e})()&&(i(y),C(!1))},"data-test":"button-save-edit","data-testid":"button-save-edit",color:"primary",variant:"contained",className:d.btnAction},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.C1oyBr",defaultMessage:"Save",description:"label of save button on profile panel"})}))]}))]}):jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:d.formItem},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:d.titleItem},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.a5aLpI",defaultMessage:"Name",description:"label of name field on profile panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":"profile-panel-name",variant:"body1",className:d.valueItem},{children:`${(null===y||void 0===y?void 0:y.firstName)||""} `+((null===y||void 0===y?void 0:y.lastName)||"")}))]})),(null===y||void 0===y?void 0:y.phoneNumber)&&jsxRuntime.exports.jsxs("div",Object.assign({className:d.formItem},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:d.titleItem},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.73xPqY",defaultMessage:"Phone",description:"label of phone field on profile panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":"profile-panel-phone",variant:"body1",className:d.valueItem},{children:null===y||void 0===y?void 0:y.phoneNumber}))]}))]}),jsxRuntime.exports.jsxs("div",Object.assign({className:d.formItem},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:d.titleItem},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.zieKdP",defaultMessage:"Email",description:"label of email field on profile panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":"profile-panel-email",variant:"body1",className:classNames(d.valueItem,d.disabledText)},{children:null==e?void 0:e.email}))]})),_?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"subtitle1",className:d.pwResetTitle},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.I7feCi",defaultMessage:"Password Reset",description:"reset password label on profile panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:d.pwResetDes1},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.Zcj+4v",defaultMessage:"Veritone will send a reset password link via the email on your account.",description:"reset password description on profile panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.kk8TY8",defaultMessage:"Would you like to continue?",description:"confirm message of reset biometric on profile panel"})}))]}),jsxRuntime.exports.jsxs(DialogActions$1,Object.assign({className:d.actionForm},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:()=>{T(!1)},color:"primary","data-test":"button-cancel-reset-password","data-testid":"button-cancel-reset-password",className:classNames(d.btnAction,d.btnActionCancel)},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.hdbMmi",defaultMessage:"Cancel",description:"the label of cancel button"})})),jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:A,"data-test":"button-reset-password","data-testid":"button-reset-password",color:"primary",variant:"contained",className:d.btnAction},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.ZXvsuR",defaultMessage:"Reset",description:"the label of reset button"})}))]}))]}):jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[!h&&jsxRuntime.exports.jsxs("div",Object.assign({className:classNames(d.formItem,d.formItemPw)},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:d.titleItem},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.uIEJAQ",defaultMessage:"Password",description:"label of pasword field on profile panel"})})),jsxRuntime.exports.jsxs("div",Object.assign({className:d.passwordBox},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:d.valueItem},{children:"********"})),!h&&jsxRuntime.exports.jsx(IconButton$1,Object.assign({id:"btn-click-pw-reset",className:d.iconResetPw,onClick:()=>{j(!1),T(!0),C(!1)},size:"large"},{children:jsxRuntime.exports.jsx("img",{src:img$19,alt:""})}))]}))]})),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"subtitle1",className:d.lastUpdate},{children:[jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.qTqazR",defaultMessage:"Last updated",description:"last updated text label text on profile panel"})," ",(null!=e&&e.lastUpdated?DateTime_1.fromISO(null==e?void 0:e.lastUpdated):DateTime_1.local()).toFormat("LLL dd, yyyy")]}))})]})]})),E?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:d.resetBiometric},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"subtitle1",className:d.pwResetTitle},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.+DTt+G",defaultMessage:"Biometric Reset",description:"label of reset biometric container on profile panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:d.pwResetDes1},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.nzzfrY",defaultMessage:"Your Biometric Profile will be reset.",description:"description of reset biometric container on profile panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.kk8TY8",defaultMessage:"Would you like to continue?",description:"confirm message of reset biometric on profile panel"})}))]})),jsxRuntime.exports.jsxs(DialogActions$1,Object.assign({className:d.actionForm},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:()=>{j(!1)},"data-test":"button-cancel-reset-biometric",color:"primary",className:classNames(d.btnAction,d.btnActionCancel)},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.hdbMmi",defaultMessage:"Cancel",description:"the label of cancel button"})})),jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:()=>{j(!1),t()},color:"primary",variant:"contained","data-test":"button-reset-biometric",className:d.btnAction},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.ZXvsuR",defaultMessage:"Reset",description:"the label of reset button"})}))]}))]}):!_&&s&&jsxRuntime.exports.jsx("div",Object.assign({id:"click-reset-biometric",onClick:()=>{j(!0),T(!1),C(!1)}},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:d.reset},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.OlJtmF",defaultMessage:"Reset Biometric Profile",description:"label of Reset Biometric Profile on profile panel"})}))}))]})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:R,index:1},{children:jsxRuntime.exports.jsx(AccountLinking,{openIdConnectors:m})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:R,index:2},{children:jsxRuntime.exports.jsx(ProfileSettings,{selectedLanguage:f,onPreferredLanguageChange:e=>{p(updateUserLanguageStart(e))}})}))]}))]}))};function SettingPanel({currentUser:e,activities:t,activityFilter:n,onChangeActivityFilter:r,handleResetBiometric:i,handleResetPassword:o,handleLogout:a,handleUpdateProfile:s,tabId:l,recentApp:c,applications:u,onClickApp:d,handleUploadAvatar:p,avatarHistory:f}){const h=useSelector(userSelector$1),[m,g]=react$1.exports.useState("");var y=useStyles$b$1()["classes"],v=(react$1.exports.useEffect(()=>{g(h.loading||"")},[h]),useSelector(selectHasUserCreateRootFolderPermission)),v=gqlIntrospection.isOperationValid("fileApplication","mutation")&&v;return jsxRuntime.exports.jsxs("div",Object.assign({className:y.tabsBox},{children:[l===TabId.PERSONAL_PANEL&&jsxRuntime.exports.jsx(PersonalProfile,{currentUser:e,handleLogout:a,handleResetBiometric:i,handleResetPassword:o,handleUpdateProfile:s,handleUploadAvatar:p,avatarHistory:f,loadingStatus:m}),l===TabId.APP_PANEL&&jsxRuntime.exports.jsx(ApplicationPanelDnD,{recentApplist:c,applications:u,onClickApp:d,showAppGroups:v}),l===TabId.ACTIVITY_PANEL&&jsxRuntime.exports.jsx(ActivityPanel,{filter:n,onChangeFilter:r,data:t||[]}),l===TabId.PERFORMANCE_MONITOR&&jsxRuntime.exports.jsx(PerformanceMonitor,{})]}))}const namespace$1$2="applications",applicationSelector=e=>{return null==(e=null==e?void 0:e.aiWareHeaderBarPanel)?void 0:e[namespace$1$2]},visibleApplicationsSelector=createSelector$1([applicationSelector,selectUserOrgHideCmsFromAppList,selectUserOrgHideAdminFromAppList,hubRoleSelector],({application:e},t,n,r)=>(e||[]).filter(e=>!(t&&"cms"===e.key||n&&"admin"===e.key||"Hub Admin"!==(null==r?void 0:r.name)&&"hubcentral"===e.key))),selectAppFromStore=e=>{return null==(e=null==e?void 0:e.aiWareHeaderBarPanel)?void 0:e[namespace$1$2].selectedApp},HANDLE_CLICK_APP=`aiware/${namespace$1$2}/get handle click app`,REQUEST_GET_APPLICATION_V1=`aiware/${namespace$1$2}/request get app`,GET_APPLICATION_V1_START=`aiware/${namespace$1$2}/get app list start`,GET_APPLICATION_V1_SUCCESS=`aiware/${namespace$1$2}/get app list success`,GET_APPLICATION_V1_ERROR=`aiware/${namespace$1$2}/get app list error`,SET_APPLICATION_IN_STORE=`aiware/${namespace$1$2}/set application`;function setApplicationInStore(e){return{type:SET_APPLICATION_IN_STORE,payload:{data:e}}}function requestGetApplications(){return{type:REQUEST_GET_APPLICATION_V1,payload:{}}}function getApplicationStart(){return{type:GET_APPLICATION_V1_START}}function getApplicationSuccess(e){return{type:GET_APPLICATION_V1_SUCCESS,payload:{data:e}}}function getApplicationError(e){return{type:GET_APPLICATION_V1_ERROR,payload:{message:e}}}const initialState$2$2={application:[],message:"",status:"idle",selectedApp:null};function applicationReducer(e,t){if(void 0===e)return initialState$2$2;switch(t.type){case GET_APPLICATION_V1_START:return Object.assign(Object.assign({},e),{status:"loading"});case GET_APPLICATION_V1_SUCCESS:return Object.assign(Object.assign({},e),{application:t.payload.data,status:"success"});case GET_APPLICATION_V1_ERROR:return Object.assign(Object.assign({},e),{message:t.payload.message,status:"failure"});case SET_APPLICATION_IN_STORE:return Object.assign(Object.assign({},e),{selectedApp:t.payload.data});default:return e}}const namespace$6="activities",allActivitySeletor=e=>{return(null==(e=null==e?void 0:e.aiWareHeaderBarPanel)?void 0:e[namespace$6])||[]},today=DateTime_1.local().startOf("day"),activitySelector=createSelector([allActivitySeletor],e=>{var{records:e,filter:t}=e;return"today"===t?e.filter(e=>DateTime_1.fromISO(e.createdDateTime).hasSame(today,"day")):e}),GET_ACTIVITY=`os-app-bar-panel/${namespace$6}/get activity`,GET_ACTIVITY_SUCCESS=`os-app-bar-panel/${namespace$6}/get activity success`,UPDATE_ACTIVITY_FILTER=`os-app-bar-panel/${namespace$6}/update activity filter`;function getActivity(){return{type:GET_ACTIVITY}}function updateActivityFilter(e){return{type:UPDATE_ACTIVITY_FILTER,payload:e}}function getActivitySuccess(e){return{type:GET_ACTIVITY_SUCCESS,payload:e}}const initialState$1$2={records:[],filter:"all",fetched:!1,fetching:!1,processing:!1};function activityReducer(e,t){if(void 0===e)return initialState$1$2;switch(t.type){case GET_ACTIVITY_SUCCESS:return Object.assign(Object.assign({},e),{records:t.payload});case UPDATE_ACTIVITY_FILTER:var n=t.payload["filter"];return Object.assign(Object.assign({},e),{filter:n});default:return e}}combineReducers({[namespace$4$1]:userReducer$1,[namespace$6]:activityReducer,[namespace$1$2]:applicationReducer});const nameSpace$2="aiWareHeaderBarPanel";function*handleClickAppSaga(e){yield call$j(storeRecentApplications,e.payload)}function*getApplicationsSaga(){yield put(getApplicationStart());var e,t=yield select(rootApiSelector),n=yield select(sessionTokenSelector);let r=0;let i={totalResults:999,results:[]},o={results:[{applicationId:"init value for while loop"}]};for(;((null==(e=null===i||void 0===i?void 0:i.results)?void 0:e.length)||0)<((null===i||void 0===i?void 0:i.totalResults)||0)&&null!=(e=null===o||void 0===o?void 0:o.results)&&e.length;)o=yield call$j(getApplicationsApi,t,n,r,200),null!==i&&void 0!==i&&i.to?null!=(e=null===i||void 0===i?void 0:i.results)&&e.length&&(i.results=i.results.concat(o.results||[])):i=o,r+=200;var a=yield select(graphEndpointSelector),a=yield call$j(getApplicationLogo,a,n);const s=((null==(a=null==(a=null==a?void 0:a.data)?void 0:a.applications)?void 0:a.records)||[]).reduce((e,t)=>Object.assign(Object.assign({},e),{[t.id]:t}),{});i&&i.results?yield put(getApplicationSuccess(((null===i||void 0===i?void 0:i.results)||[]).map(e=>{var t;let n=null!=(t=s[e.applicationId])&&t.signedIconUrl?decodeURIComponent(decodeURI(null==(t=s[e.applicationId])?void 0:t.signedIconUrl)):"";return n=(n=n.replaceAll("&","&")).replaceAll("host?","host&"),{id:e.applicationId,name:e.applicationName,key:e.applicationKey,iconUrl:n||(null==(t=s[e.applicationId])?void 0:t.signedIconSvg)||e.applicationIconUrl||e.applicationIconSvg||e.signedApplicationIconUrl,description:e.applicationDescription,headerbarEnabled:(null==e?void 0:e.headerbarEnabled)||!1,applicationUrl:(null==e?void 0:e.applicationUrl)||""}}))):yield put(getApplicationError("something wrong"))}function*storeRecentApplications(e){var t=yield select(userSelector$1),t=(null==(t=null==t?void 0:t.currentUser)?void 0:t.id)||"",n=JSON.parse(localStorage.getItem("recentApplicationWithUserId")||"{}"),r=(null==n?void 0:n[t])||[],r=(r?(r=slice$4(uniq([e,...r]),0,6),localStorage.setItem("recentApplicationWithUserId",JSON.stringify(Object.assign(Object.assign({},n),{[t]:r})))):localStorage.setItem("recentApplicationWithUserId",JSON.stringify(Object.assign(Object.assign({},n),{[t]:[e]}))),yield select(switchApiSelector));window.open(r+"/"+e)}function*applicationSaga(){yield all$2([takeEvery$1(HANDLE_CLICK_APP,handleClickAppSaga),takeLatest$1(REQUEST_GET_APPLICATION_V1,getApplicationsSaga)])}function delay(t=1e3){return __awaiter$4(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function goToPage(e){window.location.href=e}const uploadingStatus={LOADING:"loading",DONE:"done"};function*getCurrentUserSaga$1(){var e,t,n=yield select(graphEndpointSelector),r=yield select(sessionTokenSelector),n=yield call$j(getCurrentUserGraphQLApi,n,r);null!=n&&n.errors&&0<(null==n?void 0:n.errors.length)&&(null==(r=n.errors[0].path)||!r.includes("userSettings"))?(console.error("getCurrentUser error"),yield put(getCurrentUserFail$1())):(r=(null==(r=null==(r=null==n?void 0:n.data)?void 0:r.me)?void 0:r.recentImageUrls)||[],t=(null==(t=null==(t=null==n?void 0:n.data)?void 0:t.myRights)?void 0:t.operations)||[],yield put(getCurrentUserSuccess$1(Object.assign(Object.assign({},(null==(e=null==n?void 0:n.data)?void 0:e.me)||{}),{organizationRole:{organizationId:get$5(n,"data.me.organization.id",""),role:t.includes("veritone.superadmin")?"superadmin":t.includes("admin.access")?"admin":"user"},organization:Object.assign({},(null==(t=null==(e=null==n?void 0:n.data)?void 0:e.me)?void 0:t.organization)||{}),roles:((null==(t=null==(e=null==n?void 0:n.data)?void 0:e.me)?void 0:t.roles)||[]).map(e=>e.appName),avatarHistory:r}))),yield put(setHubRole(((null==(t=null==(e=null==n?void 0:n.data)?void 0:e.me)?void 0:t.roles)||[]).find(e=>"hubcentral"===e.appName))))}function*resetBiometricSaga(){var e=yield select(rootApiSelector),t=yield select(sessionTokenSelector);yield call$j(resetBiometricApi,e,t)}function*resetPasswordSaga(e){var e=(null==(e=null==e?void 0:e.payload)?void 0:e.email)||"",t=yield select(graphEndpointSelector),e=yield call$j(resetPasswordApi,e,t);!1===(null==e?void 0:e.success)?yield put(resetPasswordFail()):yield put(showMessage({content:(null==(e=null==(t=null==e?void 0:e.data)?void 0:t.createPasswordResetRequest)?void 0:e.message)||"",severity:MessageSeverity.Info}))}function*updateProfileSaga(e){const t=null==e?void 0:e.payload,n=yield select(graphEndpointSelector),r=yield select(sessionTokenSelector);var e=yield select(preferredLanguageSelector),i=yield call$j(()=>updateUserProfileApi(t,n,r)),e=AIWareFormatMessage(e);!1===(null==i?void 0:i.success)?yield put(updateProfileFail()):(yield put(getCurrentUser$1()),yield put(showMessage({content:e({id:"os-app-bar-panel.snackbar.updateProfileSuccess",defaultMessage:[{type:0,value:"Success"}]}),severity:MessageSeverity.Success})))}function*uploadAvatarSaga(e){var e=null==e?void 0:e.payload,t=yield select(graphEndpointSelector),n=yield select(sessionTokenSelector),e=yield call$j(uploadUserAvatarApi,e,t,n);yield put(uploadingAvatar(uploadingStatus.LOADING)),e&&(yield put(updateAvatar(e)))}function*updateAvatarSaga(e){var e=null==e?void 0:e.payload,t=yield select(graphEndpointSelector),n=yield select(sessionTokenSelector),r=yield select(preferredLanguageSelector),e=yield call$j(updateUserAvatarApi,e,t,n),t=AIWareFormatMessage(r);e.errors?yield put(updateProfileFail()):(yield put(showMessage({content:t({id:"os-app-bar-panel.snackbar.updateAvatarSuccess",defaultMessage:[{type:0,value:"Update avatar successfully"}]}),severity:MessageSeverity.Success})),yield put(getCurrentUser$1()),yield put(uploadingAvatar(uploadingStatus.DONE)))}function*hardLogout(){goToPage(yield select(logoutUrlSelector))}function*handleLogoutError(){var e=yield select(preferredLanguageSelector),e=AIWareFormatMessage(e);yield put(showMessage({content:e({id:"os-app-bar-panel.snackbar.logoutError",defaultMessage:[{type:0,value:"Could not log out current user"}]}),severity:MessageSeverity.Error}))}function*redirectToLogoutOrError(){var e=yield select(logoutRedirectUrlSelector);e?goToPage(e):yield call$j(handleLogoutError)}function*updateActivityStatus(){try{var e=yield select(graphEndpointSelector),t=yield select(authSelector),n=yield select(sessionTokenSelector);yield put(extendTokenRequest({token:n})),yield put(setIsIdle(!1)),yield call$j(postNotificationApi,e,null==t?void 0:t.userId,{eventType:aiwareEvent,command:notificationCommands.setCallResetIdleTimer,value:window.navigator.userAgent},!0,"json",aiwareEvent,n),yield delay(500)}catch(e){console.log(e)}}function*logoutUser(){var e,t=yield select(graphEndpointSelector),n=yield select(authSelector),r=yield select(sessionTokenSelector),i=yield select(loginUrlSelector),o=yield select(logoutRedirectUrlSelector);try{r?(window.__logout_requested=!0,yield call$j(postNotificationApi,t,null==n?void 0:n.userId,{eventType:aiwareEvent,command:null===notificationCommands||void 0===notificationCommands?void 0:notificationCommands.goToLoginPage,value:window.navigator.userAgent},!0,"json",aiwareEvent,r),yield delay(500),null!=(e=yield call$j(logoutUserApi,r,t))&&e.errors||!1===(null==e?void 0:e.success)?(yield call$j(redirectToLogoutOrError),yield put(logoutUserFail())):(yield put(logoutUserSuccess()),goToPage(o||i))):(yield put(logoutUserSuccess()),yield call$j(hardLogout))}catch(e){yield call$j(handleLogoutError),yield put(logoutUserFail()),console.log(e)}}function*userSaga$1(){yield all$2([takeEvery$1(GET_CURRENT_USER$1,getCurrentUserSaga$1),takeLatest$1(RESET_BIOMETRIC,resetBiometricSaga),takeLatest$1(RESET_PASSWORD,resetPasswordSaga),takeLatest$1(UPDATE_PROFILE,updateProfileSaga),takeLatest$1(UPLOAD__AVATAR,uploadAvatarSaga),takeLatest$1(UPDATE__AVATAR,updateAvatarSaga),takeLatest$1(LOGOUT_USER,logoutUser),takeLatest$1(UPDATE_ACTIVITY,updateActivityStatus)])}const formatActivityData=e=>{var t,{id:e,event:n,userId:r,userName:i,payload:o,createdDateTime:a}=e;return"login_succeeded"===n?{id:e,userId:r,createdDateTime:a,event:"Login succeeded",description:i+" logged in to Veritone"}:"logout_succeeded"===n?{id:e,userId:r,createdDateTime:a,event:"Logout succeeded",description:i+" successfully logged out"}:"add_user_succeeded"===n?(t=o["userName"],{id:e,userId:r,createdDateTime:a,event:"Add user succeeded",description:t+" successfully added"}):"org_updated"===n?(t=o["organizationName"],{id:e,userId:r,createdDateTime:a,event:"Org Name Changed",description:i+` updated org "${t}"`}):{id:e,userId:r,createdDateTime:a,event:"Unknown activity",description:"Unknown activity"}};function*getActivitySaga(){var e=yield call$j(getActivityApi);e.success?(e=e.data["records"],yield put(getActivitySuccess(e.map(formatActivityData)))):(e=yield select(preferredLanguageSelector),e=AIWareFormatMessage(e),yield put(showMessage({content:e({id:"os-app-bar-panel.snackbar.activityError",defaultMessage:[{type:0,value:"Something went wrong!"}]}),severity:MessageSeverity.Error})))}function*activitySaga(){yield takeEvery$1(GET_ACTIVITY,getActivitySaga)}const BOOTING$1="aiware-header-bar/booting",BOOTED$1="aiware-header-bar/booted";function*bootFunction$1(){yield take(BOOTED$1)}function*booting$1(){yield takeEvery$1(BOOTING$1,bootFunction$1)}function*rootSaga$3(){yield all$2([fork(applicationSaga),fork(userSaga$1),fork(booting$1),fork(activitySaga)])}function getAppbarPanelModule(){return{id:"os-appbar-panel",reducerMap:{[nameSpace$2]:combineReducers({users:userReducer$1,activities:activityReducer,applications:applicationReducer})},sagas:[rootSaga$3],initialActions:[getActivity(),getCurrentUser$1(),requestGetApplications()],retained:!0}}const initialState$6={openIdConnectors:[],connectedOpenIds:[],message:"",status:"idle"};function openIdConReducer(e,t){if(void 0===e)return initialState$6;switch(t.type){case GET_OPEN_ID_CONNECTORS:return Object.assign(Object.assign({},e),{status:0===e.openIdConnectors.length&&"pending"});case GET_OPEN_ID_SUCCESS:return Object.assign(Object.assign({},e),{openIdConnectors:t.payload.data,status:"idle"});case GET_CONNECTED_OPEN_ID_SUCCESS:return Object.assign(Object.assign({},e),{connectedOpenIds:t.payload.data});case GET_OPEN_ID_ERROR:return Object.assign(Object.assign({},e),{message:t.payload.message,status:"failure"});default:return e}}const getAllOpenIdConnectorApi=(e,t,n)=>__awaiter$4(void 0,void 0,void 0,function*(){try{return(yield fetch(e+"/api/admin/openid/org/"+t,{method:"GET",headers:Object.assign({"Content-Type":"application/json"},n&&{Authorization:"Bearer "+n}),credentials:"include"})).json()}catch(e){console.error(e)}}),getConnectedOpenIdConnectorApi=(e,t,n)=>__awaiter$4(void 0,void 0,void 0,function*(){try{return(yield fetch(e+"/api/admin/openid/user/"+t,{method:"GET",headers:Object.assign({"Content-Type":"application/json"},n&&{Authorization:"Bearer "+n}),credentials:"include"})).json()}catch(e){console.error(e)}});function*getOpenIdConnectorSaga(){var n=yield select(sessionTokenSelector),r=yield select(rootApiSelector),i=(yield select(userSelector$2))["userName"];if(n&&r&&i){let e={},t={};e.results=yield select(selectOpenIdConnectors);try{var o=call$j(getAllOpenIdConnectorApi,r,i,n),a=call$j(getConnectedOpenIdConnectorApi,r,i,n);0===(null===e||void 0===e?void 0:e.results.length)?[e,t]=yield all$2([o,a]):t=yield a,e&&t?(yield put(getOpenIdConnectorSuccess(e.results)),yield put(getConnectedOpenIdsSuccess(t.results))):yield put(getOpenIdConnectorError("error on loading open ids"))}catch(e){yield put(getOpenIdConnectorError("error on loading open ids"))}}else yield put(getOpenIdConnectorError("Missing token,base url or username"))}function*openIdRootSaga(){yield takeEvery$1(GET_OPEN_ID_CONNECTORS,getOpenIdConnectorSaga)}function getOpenIdModule(){return{id:"open-id",reducerMap:{[namespace$2$2]:openIdConReducer},sagas:[openIdRootSaga],initialActions:[]}}function SettingPanelComponent_({tabId:e}){const r=useDispatch(),i=useSelector(visibleApplicationsSelector);var t=useSelector(currentUserSelector),{avatarHistory:n=[]}=t||{},o=useSelector(activitySelector)||[],a=useSelector(allActivitySeletor)["filter"];const[s,l]=react$1.exports.useState(0),[c,u]=react$1.exports.useState([]),[d,p]=react$1.exports.useState([]),f=useSelector(userRecentApplicationsSelector);const h="e4739d44-53d2-4153-b55f-5e246fc989b1"===useSelector(appIdSelector),m=useSelector(selectDesktopUrl);function g(e){r(appSwitcherHandleClick(""+e)),r(updateUserRecentApplicationsStart(""+e))}react$1.exports.useEffect(()=>{p(f)},[f]),react$1.exports.useEffect(()=>{r(requestGetApplications()),r(getActivity()),r(getCurrentUser$1())},[r]),react$1.exports.useEffect(()=>{l(e||0)},[e]),react$1.exports.useEffect(()=>{if(0<d.length&&0<i.length){var e=[];for(const n of d){var t=i.find(e=>e.id===n);t&&e.push(t)}u(e)}},[d,i]);const y={invalidUrl:isEqual_1("production","development")?"Selected Application does not have a valid destination URL":jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.desktop-app.switcher-error.invalid-url",defaultMessage:"Selected Application does not have a valid destination URL. Application URL needs to be updated in Developer - Application Details",description:"Error message when onboarded app does not have a valid URL"}),urlValidationError:isEqual_1("production","development")?"Application loading has failed. Please try again later":jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.desktop-app.switcher-error.url-validation-error",defaultMessage:"Application loading has failed. Please try again later",description:"Error message when onboarded app url validation does not pass"})};const v=useNavigate();function x(t,e){var{error:e,message:n}=function(e){let t;try{t=new URL(e)}catch(e){return{error:!0,message:y.invalidUrl}}return"https:"===t.protocol||"http:"===t.protocol?{error:!1}:{error:!0,message:y.urlValidationError}}(e);e&&n?r(showMessage({content:n,severity:MessageSeverity.Error})):(r(hidePanel$1("APPLICATION_PANEL_ID")),e=i.find(e=>e.id===t),v("/ui/app/"+(null==e?void 0:e.key)),r(setApplicationInStore(e)))}return jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsx(AIWareThemeProvider$1,{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getAppbarPanelModule(),getOpenIdModule()]},{children:jsxRuntime.exports.jsx(SettingPanel,{tabId:s,currentUser:t,activities:o,activityFilter:a,onChangeActivityFilter:function(e){r(updateActivityFilter({filter:e}))},handleResetBiometric:function(){r(resetBiometric())},handleResetPassword:function(e){r(resetPassword({email:e}))},handleLogout:function(){r(logout())},handleUpdateProfile:function(e){r(updateProfile(e))},organizationRole:null==t?void 0:t.organizationRole,recentApp:c,applications:i,onClickApp:function(t){var{headerbarEnabled:e,applicationUrl:n=""}=i.find(e=>e.id===t)||{};if(h)e?x(t,n):g(t);else if(e&&m){n=(i.find(e=>e.id===t)||{})["key"];let e="";e=n?(m.endsWith("/")?"":"/")+"ui/app/"+n:(m.endsWith("/")?"":"/")+"ui/app/"+t,window.open(m+e)}else g(t)},handleUploadAvatar:function(e){r(uploadAvatar(e))},avatarHistory:n})}))})})})}function SettingPanelComponent(e){return jsxRuntime.exports.jsx(BrowserRouter,{children:jsxRuntime.exports.jsx(SettingPanelComponent_,Object.assign({},e))})}const CropImage=({url:e,handleCroppedImage:t})=>{const n=react$1.exports.useRef();return jsxRuntime.exports.jsx("div",Object.assign({style:{padding:"10px",background:"#F8F8F8",borderRadius:"4px",border:"1px solid #D5DFE9"}},{children:jsxRuntime.exports.jsx(ReactCropper,{ref:n,src:e,style:{height:"100%",width:"100%",borderRadius:"4px",maxHeight:"300px"},dragMode:"move",viewMode:1,width:"",aspectRatio:1,guides:!0,crop:()=>{n.current&&n.current.cropper.getCroppedCanvas().toBlob(function(e){t(e)},"image/jpeg")},cropBoxMovable:!1,cropBoxResizable:!1,toggleDragModeOnDblclick:!1})}))};function EditProFilePicture({onClose:e,onSaveAvatar:t,avatarHistory:n}){const r=useStyles$2$4()["classes"],[i,o]=react$1.exports.useState(""),[a,s]=react$1.exports.useState(),[l,c]=react$1.exports.useState(!1),[u,d]=react$1.exports.useState(!1);var p=react$1.exports.useRef(null);const f=react$1.exports.useRef(0),h=react$1.exports.useRef(null);const m=e=>{h.current&&(h.current.value=""),o(e),c(!0)};return jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsxs("div",Object.assign({className:r.editProfilePictureContainer},{children:[jsxRuntime.exports.jsx("input",{accept:"image/*",className:r.inputFile,id:"icon-button-file",type:"file",onChange:e=>{e=e.target.files;if(e&&0<e.length){e=e[0];if(URL)m(URL.createObjectURL(e));else if(FileReader){const t=new FileReader;t.onload=function(){m(t.result)},t.readAsDataURL(e)}}},ref:h,"data-test":"image-upload-input","data-testid":"image-upload-input"}),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.contentUserView},{children:[jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.headerDrawer},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1",className:r.mainTitleText,"data-test":"edit-profile-picture-header"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.npW7Np",defaultMessage:"Edit Profile Picture",description:"The title of edit profile picture panel"})}))})),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.contentEditAvatar},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:classNames(u&&r.dragging),ref:p,onDragEnter:e=>{e.preventDefault(),e.stopPropagation(),f.current++,e.dataTransfer.items&&0<e.dataTransfer.items.length&&d(!0)},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),f.current--,0<f.current||d(!1)},onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDrop:e=>{if(e.preventDefault(),e.stopPropagation(),d(!1),e.dataTransfer.files&&0<e.dataTransfer.files.length){var t=e.dataTransfer.files;if(FileReader&&0<t.length){const n=new FileReader;n.onload=function(){m(n.result)},n.readAsDataURL(t[0])}e.dataTransfer.clearData(),f.current=0}}},{children:l?jsxRuntime.exports.jsx(CropImage,{url:i,handleCroppedImage:e=>{s(e)}}):jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.areaUpload},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"subtitle1",className:r.descDrag},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.LeafC8",defaultMessage:"Drag a profile photo here",description:"the label of upload file container"})})),jsxRuntime.exports.jsx(Box$1,{children:jsxRuntime.exports.jsx("img",{src:img$1B,alt:""})}),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"subtitle2",className:r.descDrag2},{children:"- or -"})),jsxRuntime.exports.jsx(Button$1,Object.assign({variant:"outlined",color:"primary",id:"on-select-photo",className:r.btnSelectPhoto,onClick:()=>{h.current&&h.current.click()},"data-test":"edit-profile-picture-upload-file-button"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.CaHXXC",defaultMessage:"Select a photo from your computer",description:"edit profile picture panel: select photo label"})}))]}))})),0<(null==n?void 0:n.length)&&jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.recentlyBox},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"subtitle1",className:r.recentlyText},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.3gg72P",defaultMessage:"Recently Used Photos",description:"the label of recently used profile picture container"})})),jsxRuntime.exports.jsx(Grid$1,Object.assign({container:!0},{children:0<n.length&&n.map(e=>jsxRuntime.exports.jsx(Grid$1,Object.assign({xs:4,item:!0,className:r.imageGrid,"data-test":"recent-profile-picture"},{children:jsxRuntime.exports.jsx("img",{className:r.imgRecently,src:e,alt:"avatar"})}),e))}))]}))]}))]})),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.actionButton+" "+r.editProfilePictureFooterButtons},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({color:"primary",onClick:()=>{o(""),s(void 0),c(!1),null!=e&&e()},className:classNames(r.btnAction,r.btnActionCancel),"data-test":"edit-profile-picture-cancel-button","data-testid":"edit-profile-picture-cancel-button"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.hdbMmi",defaultMessage:"Cancel",description:"the label of cancel button"})})),jsxRuntime.exports.jsx(Button$1,Object.assign({color:"primary",variant:"contained",id:"button-save-cropped-image",className:classNames(r.btnAction,r.btnSave),onClick:()=>{var e;a&&(e="avatar-"+(new Date).toISOString()+".jpeg",e=new File([a],e,{type:"image/jpeg"}),t(e),setTimeout(()=>{o(""),c(!1)},250))},"data-test":"edit-profile-picture-save-button"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.tcZkqy",defaultMessage:"Save",description:"label of save button in edit profile picture panel"})}))]}))]}))})}const useStyles$l=makeStyles()((e,{row:t})=>({tabsContainer:{width:"100%"},gridContainer:{display:"flex"},listContainer:{},gridItem:{display:"flex",justifyContent:"center",paddingBottom:e.spacing(1.6),"&:hover":{backgroundColor:"#EEF3F9",borderRadius:"4px"}},padding:{padding:e.spacing(0,6,3,6)},moreAppContainer:{height:`calc(100vh - ${0===t?175:1===t?275:2===t?395:500}px - 66px - 10px - 55px)`,minHeight:3===t?300:0,overflow:"overlay",overflowX:"hidden"},relativeParent:{position:"relative"},noMoreApps:{padding:e.spacing(0,9,3,9)},noSelect:{userSelect:"none",paddingTop:"16px"},gridTitle:{padding:"24px 30px 32px 30px",margin:"-5px 0 -5px","& > $noSelect":{marginBottom:15}},appItemDivider:{margin:e.spacing(0,6)}}));function AppList({title:e,selectedAppId:t,onSelectApplication:n,applications:r=[],useGrid:i=!1,row:o=0}){const a=useStyles$l({row:o})["classes"],[s,l]=react$1.exports.useState(t),[c,u]=react$1.exports.useState([]);function d(e){l(e),n(e)}function p(e,t){return e.name>t.name?1:e.name<t.name?-1:0}return react$1.exports.useEffect(()=>{var e;0<r.length&&(e=[...r].sort(p),u(e))},[r]),react$1.exports.useEffect(()=>{t!==s&&l(t)},[t,s]),jsxRuntime.exports.jsxs("div",Object.assign({className:classNames({[a.gridTitle]:i},a.tabsContainer)},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:classNames({[a.padding]:!i},a.noSelect)},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h3",sx:{marginBottom:"10px"}},{children:e}))})),i&&jsxRuntime.exports.jsx("div",Object.assign({className:a.gridContainer},{children:jsxRuntime.exports.jsx(Grid$1,Object.assign({container:!0},{children:0===r.length?jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.Xzhf45",defaultMessage:"No Applications",description:"the label no app will show if we have no application for grid view"})})):0<c.length&&c.map((e,t)=>{var{id:e=t,iconUrl:t,name:n}=e;return jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:4},{children:jsxRuntime.exports.jsx("div",Object.assign({className:a.gridItem},{children:jsxRuntime.exports.jsx(AppIcon,{type:"grid",selected:e===s,onClick:d,iconUrl:t,id:e,appName:n})}))}),e)})}))})),!i&&jsxRuntime.exports.jsx("div",Object.assign({className:a.listContainer},{children:0===r.length?jsxRuntime.exports.jsx("div",Object.assign({className:a.noMoreApps},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.dyhBih",defaultMessage:"No Applications",description:"the label no app will show if we have no application for list view"})}))})):jsxRuntime.exports.jsx("div",Object.assign({className:a.moreAppContainer},{children:0<r.length&&r.sort(p).map((e,t)=>{var{id:e=t,iconUrl:n,name:r}=e;return jsxRuntime.exports.jsxs("div",Object.assign({className:a.relativeParent},{children:[jsxRuntime.exports.jsx(AppIcon,{type:"list",selected:e===s,onClick:d,iconUrl:n,id:e,appName:r}),jsxRuntime.exports.jsx(Divider$1,{className:a.appItemDivider})]}),e+"_"+t)})}))}))]}))}var index_esm$4=Object.freeze({__proto__:null,AppList:AppList,EditProFilePicture:EditProFilePicture,VeritonePanel:SettingPanelComponent,applicationSelector:applicationSelector,getAppbarPanelModule:getAppbarPanelModule,logoutUser:logoutUser$1,requestGetApplications:requestGetApplications,selectAppFromStore:selectAppFromStore,setApplicationInStore:setApplicationInStore}),Close={},_interopRequireDefault$6=interopRequireDefault.exports,default_1$6=(Object.defineProperty(Close,"__esModule",{value:!0}),Close.default=void 0),_createSvgIcon$6=_interopRequireDefault$6(createSvgIcon$1),_jsxRuntime$6=jsxRuntime.exports,_default$6=(0,_createSvgIcon$6.default)((0,_jsxRuntime$6.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),default_1$6=Close.default=_default$6,Et=Object.create,Ye=Object.defineProperty,bt=Object.getOwnPropertyDescriptor,gt=Object.getOwnPropertyNames,yt=Object.getPrototypeOf,wt=Object.prototype.hasOwnProperty,Lt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Pt=(t,n,r,i)=>{if(n&&"object"==typeof n||"function"==typeof n)for(let e of gt(n))wt.call(t,e)||e===r||Ye(t,e,{get:()=>n[e],enumerable:!(i=bt(n,e))||i.enumerable});return t},St=(e,t,n)=>(n=null!=e?Et(yt(e)):{},Pt(!t&&e&&e.__esModule?n:Ye(n,"default",{value:e,enumerable:!0}),e)),je=Lt((e,t)=>{var n,r;r=function(e){function t(e){var t=o.get(e),n=void 0===t?e.size:t<1073741824?t+1:0;if(e.has(n))if(e.size<536870912)for(;e.has(n);)n=Math.floor(1073741824*Math.random());else{if(e.size>s)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(n);)n=Math.floor(Math.random()*s)}return i(e,n)}function n(e){var t=r(e);return e.add(t),t}var r,i,o,a,s=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,l=new WeakMap;i=function(e,t){return a.set(e,t),t},o=a=l,r=t;e.addUniqueNumber=n,e.generateUniqueNumber=t},"object"==typeof(n=e)&&typeof t<"u"?r(e):"function"==typeof define&&define.amd?define(["exports"],r):r((n=typeof globalThis<"u"?globalThis:n||self).fastUniqueNumbers={})}),M$1=(St(je()),"object"==("u"<typeof window?"undefined":typeof window)),I$1={setTimeout:M$1?setTimeout.bind(window):setTimeout,clearTimeout:M$1?clearTimeout.bind(window):clearTimeout,setInterval:M$1?setInterval.bind(window):setInterval,clearInterval:M$1?clearInterval.bind(window):clearInterval};function it(e){I$1.setTimeout=e.setTimeout,I$1.clearTimeout=e.clearTimeout,I$1.setInterval=e.setInterval,I$1.clearInterval=e.clearInterval}var Q$1={},Ae=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,Q$1[e]=Q$1[e]||[],Q$1[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){e.storageArea===window.localStorage&&e.key.substring(0,this.name.length)===this.name&&null!==e.newValue&&(e=JSON.parse(e.newValue),this.mc.port2.postMessage(e))}postMessage(e){if(this.closed)throw new Error("InvalidStateError");let t=JSON.stringify(e),n=this.name+":"+String(Date.now())+String(Math.random());window.localStorage.setItem(n,t),I$1.setTimeout(()=>{window.localStorage.removeItem(n)},500),Q$1[this.name].forEach(e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))})}close(){var e;this.closed||(this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage),e=Q$1[this.name].indexOf(this),Q$1[this.name].splice(e,1))}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}},st="u"<typeof window?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:Ae;function ot(t=0){return new Promise(e=>I$1.setTimeout(e,t))}function Te(){return Math.random().toString(36).substring(2)}var Ie=class{options;channel;token=Te();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return!(this.reApply=!0);let n=!(this.isApplying=!0),e=e=>{var{token:e,action:t}=e.data;e!==this.token&&(0===t&&e>this.token&&(n=!0),1===t)&&(n=!0)};this.channel.addEventListener("message",e);try{return this.sendAction(0),await ot(this.options.responseTime),this.channel.removeEventListener("message",e),this.isApplying=!1,n?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let i=!1,o=null;return new Promise(t=>{let n=()=>{if(!i){i=!0;try{I$1.clearInterval(o)}catch{}var e=this.intervals.indexOf(o);0<=e&&this.intervals.splice(e,1),this.channel.removeEventListener("message",r),t()}},r=(o=I$1.setInterval(()=>{this.apply().then(()=>{this.isLeader&&n()})},this.options.fallbackInterval),this.intervals.push(o),e=>{e=e.data.action;2===e&&this.apply().then(()=>{this.isLeader&&n()})});this.channel.addEventListener("message",r)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;var e=e=>{e=e.data.action;0===e&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership(),this.deferred)}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>I$1.clearInterval(e))}catch{}}}},Ee=class{channel;options;elector;token=Te();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){var t=e["channelName"];this.options=e,this.channel=new st(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new Ie(this.channel,{fallbackInterval:2e3,responseTime:100}),this.elector.waitForLeadership()),this.channel.addEventListener("message",e=>{var{action:e,token:t,data:n}=e.data;switch(e){case 3:this.registry.set(t,2);break;case 4:this.registry.delete(t);break;case 5:this.idle(t);break;case 6:this.active(t);break;case 7:this.prompt(t);break;case 8:this.start(t);break;case 9:this.reset(t);break;case 10:this.activate(t);break;case 11:this.pause(t);break;case 12:this.resume(t);break;case 13:this.options.onMessage(n)}}),this.send(3)}get isLeader(){if(this.elector)return this.elector.isLeader;throw new Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.')}prompt(e=this.token){this.registry.set(e,0);var t=[...this.registry.values()].every(e=>0===e);e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);var t=[...this.registry.values()].every(e=>2===e);e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);var t=[...this.registry.values()].some(e=>1===e);e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},at=M$1?document:null,xe=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function ct(t,n){let r;function e(...e){r&&clearTimeout(r),r=setTimeout(()=>{t(...e),r=null},n)}return e.cancel=function(){clearTimeout(r)},e}function be(n,r){let i=0;return function(...e){var t=(new Date).getTime();if(!(t-i<r))return i=t,n(...e)}}var v$1=()=>Date.now(),Z=2147483647;function se({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:n=0,element:P=at,events:N=xe,timers:D=void 0,immediateEvents:r=[],onPresenceChange:F=()=>{},onPrompt:V=()=>{},onIdle:H=()=>{},onActive:B=()=>{},onAction:U=()=>{},onMessage:i=()=>{},debounce:o=0,throttle:a=0,eventsThrottle:z=200,startOnMount:s=!0,startManually:l=!1,stopOnIdle:W=!1,crossTab:c=!1,name:G="idle-timer",syncTimers:u=0,leaderElection:q=!1,disabled:d=!1}={}){let K=react$1.exports.useRef(v$1()),Y=react$1.exports.useRef(v$1()),p=react$1.exports.useRef(null),f=react$1.exports.useRef(null),h=react$1.exports.useRef(0),m=react$1.exports.useRef(0),g=react$1.exports.useRef(0),y=react$1.exports.useRef(0),v=react$1.exports.useRef(!1),x=react$1.exports.useRef(!1),$=react$1.exports.useRef(!1),b=react$1.exports.useRef(!0),Q=react$1.exports.useRef(!1),C=react$1.exports.useRef(null),S=react$1.exports.useRef(null),w=react$1.exports.useRef(e),_=react$1.exports.useRef(0),X=(react$1.exports.useEffect(()=>{if(t&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),n&&t)throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(Z<=e)throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${Z}.`);if(Z<=t)throw new Error(`❌ The value for the promptTimeout property must fit in a 32 bit signed integer, ${Z}.`);if(Z<=n)throw new Error(`❌ The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ${Z}.`);if(e<=n)throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);n?(w.current=e-n,_.current=n):(w.current=e,_.current=t),b.current||l||d||(v.current&&(E.current(null,L),S.current)&&S.current.active(),M())},[e,t,n,l,d]),react$1.exports.useRef(W)),J=(react$1.exports.useEffect(()=>{X.current=W},[W]),react$1.exports.useRef(r)),ee=react$1.exports.useRef(P),te=react$1.exports.useRef([...new Set([...N,...r]).values()]),T=react$1.exports.useRef(d),ne=(react$1.exports.useEffect(()=>{T.current=d,b.current||(d?me():l||M())},[d]),react$1.exports.useRef(F)),re=(react$1.exports.useEffect(()=>{ne.current=F},[F]),react$1.exports.useRef(V)),ie=(react$1.exports.useEffect(()=>{re.current=V},[V]),react$1.exports.useRef(H)),E=(react$1.exports.useEffect(()=>{ie.current=H},[H]),react$1.exports.useRef(B)),oe=(react$1.exports.useEffect(()=>{E.current=B},[B]),react$1.exports.useRef(U)),j=(react$1.exports.useEffect(()=>{oe.current=U},[U]),react$1.exports.useRef(i)),R=(react$1.exports.useEffect(()=>{j.current=i},[i]),react$1.exports.useMemo(()=>{var e=(e,t)=>oe.current(e,t);return 0<o?ct(e,o):0<a?be(e,a):e},[a,o])),ae=react$1.exports.useRef(),I=(react$1.exports.useEffect(()=>{c&&u&&(ae.current=be(()=>{S.current.active()},u))},[c,u]),()=>{null!==C.current&&(I$1.clearTimeout(C.current),C.current=null)}),O=(e,t=!0)=>{I(),C.current=I$1.setTimeout(ue,e||w.current),t&&(f.current=v$1())},se=e=>{x.current||v.current||(re.current(e,L),ne.current({type:"active",prompted:!0},L)),y.current=0,g.current=v$1(),x.current=!0,O(_.current,!1)},le=()=>{I(),v.current||(ie.current(null,L),ne.current({type:"idle"},L)),v.current=!0,p.current=v$1(),X.current?A():x.current&&(g.current=0,x.current=!1)},ce=e=>{I(),(v.current||x.current)&&(E.current(e,L),ne.current({type:"active",prompted:!1},L)),x.current=!1,g.current=0,v.current=!1,h.current+=v$1()-p.current,m.current+=v$1()-p.current,k(),O()},ue=e=>{var t;if(!v.current)return R.cancel&&R.cancel(),t=v$1()-f.current,w.current+_.current<t||!(0<_.current)||x.current?void(S.current?S.current.idle():le()):void(S.current?S.current.prompt():se(e));S.current?S.current.active():ce(e)},de=e=>{var t;s||f.current||(f.current=v$1(),E.current(null,L)),R(e,L),x.current||(I(),!v.current&&J.current.includes(e.type)||(t=v$1()-f.current,v.current&&!W)||!v.current&&t>=w.current?ue(e):($.current=!1,y.current=0,g.current=0,O(),c&&u&&ae.current()))},pe=react$1.exports.useRef(de),k=(react$1.exports.useEffect(()=>{var e=Q.current;e&&A(),pe.current=0<z?be(de,z):de,e&&k()},[z,a,o,oe,c,u]),()=>{M$1&&ee.current&&(Q.current||(te.current.forEach(e=>{ee.current.addEventListener(e,pe.current,{capture:!0,passive:!0})}),Q.current=!0))}),A=(e=!1)=>{M$1&&ee.current&&(Q.current||e)&&(te.current.forEach(e=>{ee.current.removeEventListener(e,pe.current,{capture:!0})}),Q.current=!1)},M=react$1.exports.useCallback(e=>!T.current&&(I(),k(),v.current=!1,x.current=!1,$.current=!1,y.current=0,g.current=0,S.current&&!e&&S.current.start(),O(),!0),[C,v,T,w,S]),fe=react$1.exports.useCallback(e=>!T.current&&(I(),k(),Y.current=v$1(),h.current+=v$1()-p.current,m.current+=v$1()-p.current,h.current=0,v.current=!1,x.current=!1,$.current=!1,y.current=0,g.current=0,S.current&&!e&&S.current.reset(),l||O(),!0),[C,v,w,l,T,S]),he=react$1.exports.useCallback(e=>!T.current&&(I(),k(),(v.current||x.current)&&ce(),v.current=!1,x.current=!1,$.current=!1,y.current=0,g.current=0,Y.current=v$1(),S.current&&!e&&S.current.activate(),O(),!0),[C,v,x,T,w,S]),me=react$1.exports.useCallback((e=!1)=>!T.current&&!$.current&&(y.current=_e(),$.current=!0,A(),I(),S.current&&!e&&S.current.pause(),!0),[C,T,S]),ge=react$1.exports.useCallback((e=!1)=>!(T.current||!$.current||($.current=!1,x.current||k(),v.current||O(y.current),g.current&&(g.current=v$1()),S.current&&!e&&S.current.resume(),0)),[C,w,T,y,S]),ye=react$1.exports.useCallback((e,t)=>(S.current?(t&&j.current(e,L),S.current.message(e)):t&&j.current(e,L),!0),[i]),ve=react$1.exports.useCallback(()=>v.current,[v]),$e=react$1.exports.useCallback(()=>x.current,[x]),Ce=react$1.exports.useCallback(()=>S.current?S.current.isLeader:null,[S]),Se=react$1.exports.useCallback(()=>S.current?S.current.isLastActive:null,[S]),we=react$1.exports.useCallback(()=>S.current?S.current.token:null,[S]),_e=react$1.exports.useCallback(()=>{var e,t;return $.current?y.current:(t=y.current||_.current+w.current,e=f.current?v$1()-f.current:0,(t=Math.floor(t-e))<0?0:Math.abs(t))},[w,_,x,y,f]),Te=react$1.exports.useCallback(()=>Math.round(v$1()-Y.current),[Y]),je=react$1.exports.useCallback(()=>Math.round(v$1()-K.current),[K]),Re=react$1.exports.useCallback(()=>p.current?new Date(p.current):null,[p]),Ie=react$1.exports.useCallback(()=>f.current?new Date(f.current):null,[f]),Oe=react$1.exports.useCallback(()=>v.current?Math.round(v$1()-p.current+h.current):Math.round(h.current),[p,h]),ke=react$1.exports.useCallback(()=>v.current?Math.round(v$1()-p.current+m.current):Math.round(m.current),[p,m]),Ae=react$1.exports.useCallback(()=>{var e=Math.round(Te()-Oe());return 0<=e?e:0},[p,h]),Me=react$1.exports.useCallback(()=>{var e=Math.round(je()-ke());return 0<=e?e:0},[p,h]),L=(react$1.exports.useEffect(()=>{if(0<o&&0<a)throw new Error("❌ onAction can either be throttled or debounced, not both.");D&&it(D);let e=()=>{S.current&&S.current.close(),R.cancel&&R.cancel(),I(),A(!0)};return M$1&&window.addEventListener("beforeunload",e),()=>{M$1&&window.removeEventListener("beforeunload",e),S.current&&S.current.close(),R.cancel&&R.cancel(),I(),A(!0)}},[]),react$1.exports.useEffect(()=>{S.current&&S.current.close(),S.current=c?new Ee({channelName:G,leaderElection:q,onPrompt:()=>{se()},onIdle:()=>{le()},onActive:()=>{ce()},onMessage:e=>{j.current(e,L)},start:M,reset:fe,activate:he,pause:me,resume:ge}):null},[c,G,q,re,ie,E,j,M,fe,me,ge]),react$1.exports.useEffect(()=>{b.current||(I(),A(!0)),l||d||(s?M:k)()},[l,s,d,b]),react$1.exports.useEffect(()=>{var e;b.current||(e=[...new Set([...N,...r]).values()],A(),te.current=e,ee.current=P,J.current=r,l)||d||(s?M:k)()},[P,JSON.stringify(N),JSON.stringify(r),b,d,l,s]),react$1.exports.useEffect(()=>{b.current&&(b.current=!1)},[b]),{message:ye,start:M,reset:fe,activate:he,pause:me,resume:ge,isIdle:ve,isPrompted:$e,isLeader:Ce,isLastActiveTab:Se,getTabId:we,getRemainingTime:_e,getElapsedTime:Te,getTotalElapsedTime:je,getLastIdleTime:Re,getLastActiveTime:Ie,getIdleTime:Oe,getTotalIdleTime:ke,getActiveTime:Ae,getTotalActiveTime:Me,setOnPresenceChange:e=>{F=e,ne.current=e},setOnPrompt:e=>{V=e,re.current=e},setOnIdle:e=>{H=e,ie.current=e},setOnActive:e=>{B=e,E.current=e},setOnAction:e=>{U=e,oe.current=e},setOnMessage:e=>{i=e,j.current=e}});return L}var match,version,set$1,get,store,STATE,$location,defer,channel,port,toggle,node,promise,then,queue,flush,notify$1,Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,ge=react$1.exports.createContext(null),tinycolor$1=(ge.Consumer,{exports:{}}),tinycolor=(!function(e){function u(e,t){var n;return t=t||{},(e=e||"")instanceof u?e:this instanceof u?(n=function(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;"string"==typeof e&&(e=function(e){e=e.replace(S,"").replace(w,"").toLowerCase();var t,n=!1;if(I[e])e=I[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=L.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=L.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=L.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=L.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=L.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=L.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=L.hex8.exec(e))return{r:g(t[1]),g:g(t[2]),b:g(t[3]),a:$(t[4]),format:n?"name":"hex8"};if(t=L.hex6.exec(e))return{r:g(t[1]),g:g(t[2]),b:g(t[3]),format:n?"name":"hex"};if(t=L.hex4.exec(e))return{r:g(t[1]+""+t[1]),g:g(t[2]+""+t[2]),b:g(t[3]+""+t[3]),a:$(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=L.hex3.exec(e))return{r:g(t[1]+""+t[1]),g:g(t[2]+""+t[2]),b:g(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(b(e.r)&&b(e.g)&&b(e.b)?(t=function(e,t,n){return{r:255*h(e,255),g:255*h(t,255),b:255*h(n,255)}}(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):b(e.h)&&b(e.s)&&b(e.v)?(r=v(e.s),i=v(e.v),t=function(e,t,n){e=6*h(e,360),t=h(t,100),n=h(n,100);var r=C.floor(e),e=e-r,i=n*(1-t),o=n*(1-e*t),e=n*(1-(1-e)*t),t=r%6;return{r:255*[n,o,i,i,e,n][t],g:255*[e,n,n,o,i,i][t],b:255*[i,i,e,n,n,o][t]}}(e.h,r,i),a=!0,s="hsv"):b(e.h)&&b(e.s)&&b(e.l)&&(r=v(e.s),o=v(e.l),t=function(e,t,n){var r,i,o;function a(e,t,n){return n<0&&(n+=1),1<n&&--n,n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}e=h(e,360),t=h(t,100),n=h(n,100),0===t?r=i=o=n:(r=a(t=2*n-(n=n<.5?n*(1+t):n+t-n*t),n,e+1/3),i=a(t,n,e),o=a(t,n,e-1/3));return{r:255*r,g:255*i,b:255*o}}(e.h,r,o),a=!0,s="hsl"),e.hasOwnProperty("a"))&&(n=e.a);return n=f(n),{ok:a,format:e.format||s,r:E(255,j(t.r,0)),g:E(255,j(t.g,0)),b:E(255,j(t.b,0)),a:n}}(e),this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=T(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=T(this._r)),this._g<1&&(this._g=T(this._g)),this._b<1&&(this._b=T(this._b)),this._ok=n.ok,void(this._tc_id=_++)):new u(e,t)}function r(e,t,n){e=h(e,255),t=h(t,255),n=h(n,255);var r,i=j(e,t,n),o=E(e,t,n),a=(i+o)/2;if(i==o)r=l=0;else{var s=i-o,l=.5<a?s/(2-i-o):s/(i+o);switch(i){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:l,l:a}}function i(e,t,n){e=h(e,255),t=h(t,255),n=h(n,255);var r,i=j(e,t,n),o=E(e,t,n),a=i,s=i-o,l=0===i?0:s/i;if(i==o)r=0;else{switch(i){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:l,v:a}}function t(e,t,n,r){e=[y(T(e).toString(16)),y(T(t).toString(16)),y(T(n).toString(16))];return r&&e[0].charAt(0)==e[0].charAt(1)&&e[1].charAt(0)==e[1].charAt(1)&&e[2].charAt(0)==e[2].charAt(1)?e[0].charAt(0)+e[1].charAt(0)+e[2].charAt(0):e.join("")}function o(e,t,n,r){return[y(x(r)),y(T(e).toString(16)),y(T(t).toString(16)),y(T(n).toString(16))].join("")}function n(e,t){t=0===t?0:t||10;e=u(e).toHsl();return e.s-=t/100,e.s=m(e.s),u(e)}function a(e,t){t=0===t?0:t||10;e=u(e).toHsl();return e.s+=t/100,e.s=m(e.s),u(e)}function s(e){return u(e).desaturate(100)}function l(e,t){t=0===t?0:t||10;e=u(e).toHsl();return e.l+=t/100,e.l=m(e.l),u(e)}function c(e,t){t=0===t?0:t||10;e=u(e).toRgb();return e.r=j(0,E(255,e.r-T(-t/100*255))),e.g=j(0,E(255,e.g-T(-t/100*255))),e.b=j(0,E(255,e.b-T(-t/100*255))),u(e)}function d(e,t){t=0===t?0:t||10;e=u(e).toHsl();return e.l-=t/100,e.l=m(e.l),u(e)}function p(e,t){e=u(e).toHsl(),t=(e.h+t)%360;return e.h=t<0?360+t:t,u(e)}function P(e){e=u(e).toHsl();return e.h=(e.h+180)%360,u(e)}function N(e){var t=u(e).toHsl(),n=t.h;return[u(e),u({h:(n+120)%360,s:t.s,l:t.l}),u({h:(n+240)%360,s:t.s,l:t.l})]}function D(e){var t=u(e).toHsl(),n=t.h;return[u(e),u({h:(n+90)%360,s:t.s,l:t.l}),u({h:(n+180)%360,s:t.s,l:t.l}),u({h:(n+270)%360,s:t.s,l:t.l})]}function F(e){var t=u(e).toHsl(),n=t.h;return[u(e),u({h:(n+72)%360,s:t.s,l:t.l}),u({h:(n+216)%360,s:t.s,l:t.l})]}function V(e,t,n){t=t||6,n=n||30;var r=u(e).toHsl(),i=360/n,o=[u(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(u(r));return o}function H(e,t){t=t||6;for(var e=u(e).toHsv(),n=e.h,r=e.s,i=e.v,o=[],a=1/t;t--;)o.push(u({h:n,s:r,v:i})),i=(i+a)%1;return o}function f(e){return e=parseFloat(e),e=isNaN(e)||e<0||1<e?1:e}function h(e,t){"string"==typeof(n=e)&&-1!=n.indexOf(".")&&1===parseFloat(n)&&(e="100%");var n="string"==typeof(n=e)&&-1!=n.indexOf("%");return e=E(t,j(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),C.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function m(e){return E(1,j(0,e))}function g(e){return parseInt(e,16)}function y(e){return 1==e.length?"0"+e:""+e}function v(e){return e=e<=1?100*e+"%":e}function x(e){return C.round(255*parseFloat(e)).toString(16)}function $(e){return g(e)/255}function b(e){return L.CSS_UNIT.exec(e)}var C,S,w,_,T,E,j,R,I,O,k,A,M,L;C=Math,S=/^\s+/,w=/\s+$/,_=0,T=C.round,E=C.min,j=C.max,R=C.random,u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,e=e.b/255,t=t<=.03928?t/12.92:C.pow((.055+t)/1.055,2.4),n=n<=.03928?n/12.92:C.pow((.055+n)/1.055,2.4),e=e<=.03928?e/12.92:C.pow((.055+e)/1.055,2.4);return.2126*t+.7152*n+.0722*e},setAlpha:function(e){return this._a=f(e),this._roundA=T(100*this._a)/100,this},toHsv:function(){var e=i(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=i(this._r,this._g,this._b),t=T(360*e.h),n=T(100*e.s),e=T(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+e+"%)":"hsva("+t+", "+n+"%, "+e+"%, "+this._roundA+")"},toHsl:function(){var e=r(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=r(this._r,this._g,this._b),t=T(360*e.h),n=T(100*e.s),e=T(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+e+"%)":"hsla("+t+", "+n+"%, "+e+"%, "+this._roundA+")"},toHex:function(e){return t(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){var t=this._r,n=this._g,r=this._b,i=this._a;return t=[y(T(t).toString(16)),y(T(n).toString(16)),y(T(r).toString(16)),y(x(i))],e&&t[0].charAt(0)==t[0].charAt(1)&&t[1].charAt(0)==t[1].charAt(1)&&t[2].charAt(0)==t[2].charAt(1)&&t[3].charAt(0)==t[3].charAt(1)?t[0].charAt(0)+t[1].charAt(0)+t[2].charAt(0)+t[3].charAt(0):t.join("")},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:T(this._r),g:T(this._g),b:T(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+T(this._r)+", "+T(this._g)+", "+T(this._b)+")":"rgba("+T(this._r)+", "+T(this._g)+", "+T(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:T(100*h(this._r,255))+"%",g:T(100*h(this._g,255))+"%",b:T(100*h(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+T(100*h(this._r,255))+"%, "+T(100*h(this._g,255))+"%, "+T(100*h(this._b,255))+"%)":"rgba("+T(100*h(this._r,255))+"%, "+T(100*h(this._g,255))+"%, "+T(100*h(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&O[t(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t="#"+o(this._r,this._g,this._b,this._a),n=t;return"progid:DXImageTransform.Microsoft.gradient("+(this._gradientType?"GradientType = 1, ":"")+"startColorstr="+t+",endColorstr="+(n=e?"#"+o((t=u(e))._r,t._g,t._b,t._a):n)+")"},toString:function(e){var t=!!e,n=(e=e||this._format,!1),r=this._a<1&&0<=this._a;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),(n="hsv"===e?this.toHsvString():n)||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return u(this.toString())},_applyModification:function(e,t){e=e.apply(null,[this].concat([].slice.call(t)));return this._r=e._r,this._g=e._g,this._b=e._b,this.setAlpha(e._a),this},lighten:function(){return this._applyModification(l,arguments)},brighten:function(){return this._applyModification(c,arguments)},darken:function(){return this._applyModification(d,arguments)},desaturate:function(){return this._applyModification(n,arguments)},saturate:function(){return this._applyModification(a,arguments)},greyscale:function(){return this._applyModification(s,arguments)},spin:function(){return this._applyModification(p,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(V,arguments)},complement:function(){return this._applyCombination(P,arguments)},monochromatic:function(){return this._applyCombination(H,arguments)},splitcomplement:function(){return this._applyCombination(F,arguments)},triad:function(){return this._applyCombination(N,arguments)},tetrad:function(){return this._applyCombination(D,arguments)}},u.fromRatio=function(e,t){if("object"==typeof e){var n,r={};for(n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:v(e[n]));e=r}return u(e,t)},u.equals=function(e,t){return!(!e||!t)&&u(e).toRgbString()==u(t).toRgbString()},u.random=function(){return u.fromRatio({r:R(),g:R(),b:R()})},u.mix=function(e,t,n){n=0===n?0:n||50;e=u(e).toRgb(),t=u(t).toRgb(),n/=100;return u({r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b,a:(t.a-e.a)*n+e.a})},u.readability=function(e,t){e=u(e),t=u(t);return(C.max(e.getLuminance(),t.getLuminance())+.05)/(C.min(e.getLuminance(),t.getLuminance())+.05)},u.isReadable=function(e,t,n){var r=u.readability(e,t),i=!1,e=function(e){var t;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),e=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==e&&"large"!==e&&(e="small");return{level:t,size:e}}(n);switch(e.level+e.size){case"AAsmall":case"AAAlarge":i=4.5<=r;break;case"AAlarge":i=3<=r;break;case"AAAsmall":i=7<=r}return i},u.mostReadable=function(e,t,n){for(var r,i=null,o=0,a=(n=n||{}).includeFallbackColors,s=n.level,l=n.size,c=0;c<t.length;c++)o<(r=u.readability(e,t[c]))&&(o=r,i=u(t[c]));return u.isReadable(e,i,{level:s,size:l})||!a?i:(n.includeFallbackColors=!1,u.mostReadable(e,["#fff","#000"],n))},I=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},O=u.hexNames=function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[e[t]]=t);return n}(I),A="[\\s|\\(]+("+(k="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+k+")[,|\\s]+("+k+")\\s*\\)?",M="[\\s|\\(]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")\\s*\\)?",L={CSS_UNIT:new RegExp(k),rgb:new RegExp("rgb"+A),rgba:new RegExp("rgba"+M),hsl:new RegExp("hsl"+A),hsla:new RegExp("hsla"+M),hsv:new RegExp("hsv"+A),hsva:new RegExp("hsva"+M),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/},e.exports?e.exports=u:window.tinycolor=u}(tinycolor$1),tinycolor$1.exports),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},check=function(e){return e&&e.Math==Math&&e},global$g=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$e=function(e){try{return!!e()}catch(e){return!0}},descriptors=!fails$e(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),functionBindNative=!fails$e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$e=Function.prototype.call,functionCall=NATIVE_BIND$3?call$e.bind(call$e):function(){return call$e.apply(call$e,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$2&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$3=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){return!!(e=getOwnPropertyDescriptor$2(this,e))&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND$2=functionBindNative,FunctionPrototype$2=Function.prototype,call$d=FunctionPrototype$2.call,uncurryThisWithBind=NATIVE_BIND$2&&FunctionPrototype$2.bind.bind(call$d,call$d),functionUncurryThis=NATIVE_BIND$2?uncurryThisWithBind:function(e){return function(){return call$d.apply(e,arguments)}},uncurryThis$f=functionUncurryThis,toString$3=uncurryThis$f({}.toString),stringSlice$1=uncurryThis$f("".slice),classofRaw$2=function(e){return stringSlice$1(toString$3(e),8,-1)},fails$b=fails$e,classof$6=classofRaw$2,$Object$4=Object,split=functionUncurryThis("".split),indexedObject=fails$b(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$6(e)?split(e,""):$Object$4(e)}:$Object$4,isNullOrUndefined$4=function(e){return null==e},isNullOrUndefined$3=isNullOrUndefined$4,$TypeError$d=TypeError,requireObjectCoercible$3=function(e){if(isNullOrUndefined$3(e))throw $TypeError$d("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$2=requireObjectCoercible$3,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$2(e))},documentAll$2="object"==typeof document&&document.all,IS_HTMLDDA=void 0===documentAll$2&&void 0!==documentAll$2,documentAll_1={all:documentAll$2,IS_HTMLDDA:IS_HTMLDDA},$documentAll$1=documentAll_1,documentAll$1=$documentAll$1.all,isCallable$k=$documentAll$1.IS_HTMLDDA?function(e){return"function"==typeof e||e===documentAll$1}:function(e){return"function"==typeof e},isCallable$j=isCallable$k,$documentAll=documentAll_1,documentAll=$documentAll.all,isObject$9=$documentAll.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:isCallable$j(e)||e===documentAll}:function(e){return"object"==typeof e?null!==e:isCallable$j(e)},global$f=global$g,isCallable$i=isCallable$k,aFunction=function(e){return isCallable$i(e)?e:void 0},getBuiltIn$7=function(e,t){return arguments.length<2?aFunction(global$f[e]):global$f[e]&&global$f[e][t]},objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),engineUserAgent="undefined"!=typeof navigator&&String(navigator.userAgent)||"",global$e=global$g,userAgent$3=engineUserAgent,process$4=global$e.process,Deno$1=global$e.Deno,versions=process$4&&process$4.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match=v8.split("."))[0]&&match[0]<4?1:+(match[0]+match[1]):version)&&userAgent$3&&(!(match=userAgent$3.match(/Edge\/(\d+)/))||74<=match[1])&&(match=userAgent$3.match(/Chrome\/(\d+)/))?+match[1]:version,V8_VERSION$1=engineV8Version,fails$a=fails$e,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$a(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),useSymbolAsUid=symbolConstructorDetection&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$6=getBuiltIn$7,isCallable$h=isCallable$k,isPrototypeOf$2=objectIsPrototypeOf,$Object$3=Object,isSymbol$2=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$6("Symbol");return isCallable$h(t)&&isPrototypeOf$2(t.prototype,$Object$3(e))},$String$4=String,tryToString$4=function(e){try{return $String$4(e)}catch(e){return"Object"}},isCallable$g=isCallable$k,tryToString$3=tryToString$4,$TypeError$c=TypeError,aCallable$8=function(e){if(isCallable$g(e))return e;throw $TypeError$c(tryToString$3(e)+" is not a function")},aCallable$7=aCallable$8,isNullOrUndefined$2=isNullOrUndefined$4,getMethod$3=function(e,t){return e=e[t],isNullOrUndefined$2(e)?void 0:aCallable$7(e)},call$c=functionCall,isCallable$f=isCallable$k,isObject$8=isObject$9,$TypeError$b=TypeError,ordinaryToPrimitive$1=function(e,t){var n,r;if("string"===t&&isCallable$f(n=e.toString)&&!isObject$8(r=call$c(n,e)))return r;if(isCallable$f(n=e.valueOf)&&!isObject$8(r=call$c(n,e)))return r;if("string"!==t&&isCallable$f(n=e.toString)&&!isObject$8(r=call$c(n,e)))return r;throw $TypeError$b("Can't convert object to primitive value")},shared$3={exports:{}},global$d=global$g,defineProperty$6=Object.defineProperty,defineGlobalProperty$3=function(t,n){try{defineProperty$6(global$d,t,{value:n,configurable:!0,writable:!0})}catch(e){global$d[t]=n}return n},defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$g[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible$1=((shared$3.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$3),$Object$2=Object,toObject$3=function(e){return $Object$2(requireObjectCoercible$1(e))},toObject$2=toObject$3,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$2(e),t)},uncurryThis$b=functionUncurryThis,id=0,postfix=Math.random(),toString$2=uncurryThis$b(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$2(++id+postfix,36)},global$b=global$g,shared$2=shared$3.exports,hasOwn$9=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,Symbol$1=global$b.Symbol,WellKnownSymbolsStore=shared$2("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1.for||Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$1,wellKnownSymbol$g=function(e){return hasOwn$9(WellKnownSymbolsStore,e)||(WellKnownSymbolsStore[e]=NATIVE_SYMBOL&&hasOwn$9(Symbol$1,e)?Symbol$1[e]:createWellKnownSymbol("Symbol."+e)),WellKnownSymbolsStore[e]},call$b=functionCall,isObject$7=isObject$9,isSymbol$1=isSymbol$2,getMethod$2=getMethod$3,ordinaryToPrimitive=ordinaryToPrimitive$1,$TypeError$a=TypeError,TO_PRIMITIVE=wellKnownSymbol$g("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$7(e)||isSymbol$1(e))return e;var n=getMethod$2(e,TO_PRIMITIVE);if(n){if(n=call$b(n,e,t=void 0===t?"default":t),!isObject$7(n)||isSymbol$1(n))return n;throw $TypeError$a("Can't convert object to primitive value")}return ordinaryToPrimitive(e,t=void 0===t?"number":t)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$2=function(e){return e=toPrimitive(e,"string"),isSymbol(e)?e:e+""},isObject$6=isObject$9,document$3=global$g.document,EXISTS$1=isObject$6(document$3)&&isObject$6(document$3.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$3.createElement(e):{}},createElement$1=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$e(function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$9=descriptors,call$a=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$2=createPropertyDescriptor$3,toIndexedObject$4=toIndexedObject$5,toPropertyKey$1=toPropertyKey$2,hasOwn$8=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$9?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$1(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$8(e,t))return createPropertyDescriptor$2(!call$a(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),v8PrototypeDefineBug=descriptors&&fails$e(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$5=isObject$9,$String$3=String,$TypeError$9=TypeError,anObject$a=function(e){if(isObject$5(e))return e;throw $TypeError$9($String$3(e)+" is not an object")},DESCRIPTORS$7=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$9=anObject$a,toPropertyKey=toPropertyKey$2,$TypeError$8=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$6=(objectDefineProperty.f=DESCRIPTORS$7?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,n){var r;return anObject$9(e),t=toPropertyKey(t),anObject$9(n),"function"==typeof e&&"prototype"===t&&"value"in n&&WRITABLE in n&&!n[WRITABLE]&&(r=$getOwnPropertyDescriptor(e,t))&&r[WRITABLE]&&(e[t]=n.value,n={configurable:(CONFIGURABLE$1 in n?n:r)[CONFIGURABLE$1],enumerable:(ENUMERABLE in n?n:r)[ENUMERABLE],writable:!1}),$defineProperty(e,t,n)}:$defineProperty:function(e,t,n){if(anObject$9(e),t=toPropertyKey(t),anObject$9(n),IE8_DOM_DEFINE)try{return $defineProperty(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $TypeError$8("Accessors not supported");return"value"in n&&(e[t]=n.value),e},descriptors),definePropertyModule$3=objectDefineProperty,createPropertyDescriptor$1=createPropertyDescriptor$3,createNonEnumerableProperty$4=DESCRIPTORS$6?function(e,t,n){return definePropertyModule$3.f(e,t,createPropertyDescriptor$1(1,n))}:function(e,t,n){return e[t]=n,e},makeBuiltIn$3={exports:{}},DESCRIPTORS$5=descriptors,hasOwn$7=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$5&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$7(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$5||getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},isCallable$e=isCallable$k,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$3=(isCallable$e(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),isCallable$d=isCallable$k,WeakMap$1=global$g.WeakMap,weakMapBasicDetection=isCallable$d(WeakMap$1)&&/native code/.test(String(WeakMap$1)),shared$1=shared$3.exports,uid=uid$2,keys=shared$1("keys"),sharedKey$3=function(e){return keys[e]||(keys[e]=uid(e))},hiddenKeys$4={},NATIVE_WEAK_MAP=weakMapBasicDetection,global$8=global$g,isObject$4=isObject$9,createNonEnumerableProperty$3=createNonEnumerableProperty$4,hasOwn$6=hasOwnProperty_1,shared=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$2=global$8.TypeError,WeakMap$2=global$8.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(t){return function(e){if(isObject$4(e)&&(e=get(e)).type===t)return e;throw TypeError$2("Incompatible receiver, "+t+" required")}},has=NATIVE_WEAK_MAP||shared.state?((store=shared.state||(shared.state=new WeakMap$2)).get=store.get,store.has=store.has,store.set=store.set,set$1=function(e,t){if(store.has(e))throw TypeError$2(OBJECT_ALREADY_INITIALIZED);return t.facade=e,store.set(e,t),t},get=function(e){return store.get(e)||{}},function(e){return store.has(e)}):(STATE=sharedKey$2("state"),hiddenKeys$3[STATE]=!0,set$1=function(e,t){if(hasOwn$6(e,STATE))throw TypeError$2(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$3(e,STATE,t),t},get=function(e){return hasOwn$6(e,STATE)?e[STATE]:{}},function(e){return hasOwn$6(e,STATE)}),internalState={set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor},uncurryThis$9=functionUncurryThis,fails$7=fails$e,isCallable$c=isCallable$k,hasOwn$5=hasOwnProperty_1,DESCRIPTORS$4=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource$2=inspectSource$3,InternalStateModule$2=internalState,enforceInternalState=InternalStateModule$2.enforce,getInternalState$1=InternalStateModule$2.get,$String$2=String,defineProperty$5=Object.defineProperty,stringSlice=uncurryThis$9("".slice),replace=uncurryThis$9("".replace),join=uncurryThis$9([].join),CONFIGURABLE_LENGTH=DESCRIPTORS$4&&!fails$7(function(){return 8!==defineProperty$5(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$2=makeBuiltIn$3.exports=function(e,t,n){"Symbol("===stringSlice($String$2(t),0,7)&&(t="["+replace($String$2(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!hasOwn$5(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$4?defineProperty$5(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&n&&hasOwn$5(n,"arity")&&e.length!==n.arity&&defineProperty$5(e,"length",{value:n.arity});try{n&&hasOwn$5(n,"constructor")&&n.constructor?DESCRIPTORS$4&&defineProperty$5(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}return n=enforceInternalState(e),hasOwn$5(n,"source")||(n.source=join(TEMPLATE,"string"==typeof t?t:"")),e},isCallable$b=(Function.prototype.toString=makeBuiltIn$2(function(){return isCallable$c(this)&&getInternalState$1(this).source||inspectSource$2(this)},"toString"),isCallable$k),definePropertyModule$2=objectDefineProperty,makeBuiltIn$1=makeBuiltIn$3.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$5=function(e,t,n,r){var i=(r=r||{}).enumerable,o=void 0!==r.name?r.name:t;if(isCallable$b(n)&&makeBuiltIn$1(n,o,r),r.global)i?e[t]=n:defineGlobalProperty$1(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=n:definePropertyModule$2.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},objectGetOwnPropertyNames={},ceil=Math.ceil,floor=Math.floor,mathTrunc=Math.trunc||function(e){return(0<(e=+e)?floor:ceil)(e)},trunc=mathTrunc,toIntegerOrInfinity$2=function(e){return(e=+e)!=e||0==e?0:trunc(e)},toIntegerOrInfinity$1=toIntegerOrInfinity$2,max=Math.max,min$1=Math.min,toAbsoluteIndex$1=function(e,t){return(e=toIntegerOrInfinity$1(e))<0?max(e+t,0):min$1(e,t)},toIntegerOrInfinity=toIntegerOrInfinity$2,min=Math.min,toLength$1=function(e){return 0<e?min(toIntegerOrInfinity(e),9007199254740991):0},toLength=toLength$1,lengthOfArrayLike$2=function(e){return toLength(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex=toAbsoluteIndex$1,lengthOfArrayLike$1=lengthOfArrayLike$2,createMethod=function(s){return function(e,t,n){var r,i=toIndexedObject$3(e),o=lengthOfArrayLike$1(i),a=toAbsoluteIndex(n,o);if(s&&t!=t){for(;a<o;)if((r=i[a++])!=r)return!0}else for(;a<o;a++)if((s||a in i)&&i[a]===t)return s||a||0;return!s&&-1}},arrayIncludes={includes:createMethod(!0),indexOf:createMethod(!1)},uncurryThis$8=functionUncurryThis,hasOwn$4=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push=uncurryThis$8([].push),objectKeysInternal=function(e,t){var n,r=toIndexedObject$2(e),i=0,o=[];for(n in r)!hasOwn$4(hiddenKeys$2,n)&&hasOwn$4(r,n)&&push(o,n);for(;t.length>i;)hasOwn$4(r,n=t[i++])&&!~indexOf(o,n)&&push(o,n);return o},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,hiddenKeys$1=enumBugKeys$3.concat("length","prototype"),objectGetOwnPropertySymbols=(objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$1)},{}),getBuiltIn$5=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$7),getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$8=anObject$a,concat$1=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$8(e)),n=getOwnPropertySymbolsModule$1.f;return n?concat$1(t,n(e)):t},hasOwn$3=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$1=objectDefineProperty,copyConstructorProperties$1=function(e,t,n){for(var r=ownKeys(t),i=definePropertyModule$1.f,o=getOwnPropertyDescriptorModule.f,a=0;a<r.length;a++){var s=r[a];hasOwn$3(e,s)||n&&hasOwn$3(n,s)||i(e,s,o(t,s))}},fails$6=fails$e,isCallable$a=isCallable$k,replacement=/#|\.prototype\./,isForced$2=function(e,t){return(e=data[normalize(e)])==POLYFILL||e!=NATIVE&&(isCallable$a(t)?fails$6(t):!!t)},normalize=isForced$2.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$2.data={},NATIVE=isForced$2.NATIVE="N",POLYFILL=isForced$2.POLYFILL="P",isForced_1=isForced$2,global$7=global$g,getOwnPropertyDescriptor$1=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$2=createNonEnumerableProperty$4,defineBuiltIn$4=defineBuiltIn$5,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties=copyConstructorProperties$1,isForced$1=isForced_1,_export=function(e,t){var n,r,i,o=e.target,a=e.global,s=e.stat,l=a?global$7:s?global$7[o]||defineGlobalProperty(o,{}):(global$7[o]||{}).prototype;if(l)for(n in t){if(r=t[n],i=e.dontCallGetSet?(i=getOwnPropertyDescriptor$1(l,n))&&i.value:l[n],!isForced$1(a?n:o+(s?".":"#")+n,e.forced)&&void 0!==i){if(typeof r==typeof i)continue;copyConstructorProperties(r,i)}(e.sham||i&&i.sham)&&createNonEnumerableProperty$2(r,"sham",!0),defineBuiltIn$4(l,n,r,e)}},engineIsNode="undefined"!=typeof process&&"process"==classofRaw$2(process),uncurryThis$6=functionUncurryThis,aCallable$6=aCallable$8,functionUncurryThisAccessor=function(e,t,n){try{return uncurryThis$6(aCallable$6(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},isCallable$9=isCallable$k,$String$1=String,$TypeError$7=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$9(e))return e;throw $TypeError$7("Can't set "+$String$1(e)+" as a prototype")},uncurryThisAccessor=functionUncurryThisAccessor,anObject$7=anObject$a,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,e={};try{(n=uncurryThisAccessor(Object.prototype,"__proto__","set"))(e,[]),r=e instanceof Array}catch(e){}return function(e,t){return anObject$7(e),aPossiblePrototype(t),r?n(e,t):e.__proto__=t,e}}():void 0),defineProperty$4=objectDefineProperty.f,hasOwn$2=hasOwnProperty_1,TO_STRING_TAG$3=wellKnownSymbol$g("toStringTag"),setToStringTag$3=function(e,t,n){(e=e&&!n?e.prototype:e)&&!hasOwn$2(e,TO_STRING_TAG$3)&&defineProperty$4(e,TO_STRING_TAG$3,{configurable:!0,value:t})},makeBuiltIn=makeBuiltIn$3.exports,defineProperty$3=objectDefineProperty,defineBuiltInAccessor$1=function(e,t,n){return n.get&&makeBuiltIn(n.get,t,{getter:!0}),n.set&&makeBuiltIn(n.set,t,{setter:!0}),defineProperty$3.f(e,t,n)},getBuiltIn$4=getBuiltIn$7,defineBuiltInAccessor=defineBuiltInAccessor$1,DESCRIPTORS$3=descriptors,SPECIES$2=wellKnownSymbol$g("species"),setSpecies$1=function(e){e=getBuiltIn$4(e),DESCRIPTORS$3&&e&&!e[SPECIES$2]&&defineBuiltInAccessor(e,SPECIES$2,{configurable:!0,get:function(){return this}})},isPrototypeOf$1=objectIsPrototypeOf,$TypeError$6=TypeError,anInstance$1=function(e,t){if(isPrototypeOf$1(t,e))return e;throw $TypeError$6("Incorrect invocation")},TO_STRING_TAG$2=wellKnownSymbol$g("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$2]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$8=isCallable$k,classofRaw$1=classofRaw$2,TO_STRING_TAG$1=wellKnownSymbol$g("toStringTag"),$Object$1=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw$1(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$4=TO_STRING_TAG_SUPPORT?classofRaw$1:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object$1(e),TO_STRING_TAG$1))?t:CORRECT_ARGUMENTS?classofRaw$1(e):"Object"==(t=classofRaw$1(e))&&isCallable$8(e.callee)?"Arguments":t},uncurryThis$5=functionUncurryThis,fails$5=fails$e,isCallable$7=isCallable$k,classof$3=classof$4,inspectSource$1=inspectSource$3,noop=function(){},empty=[],construct=getBuiltIn$7("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec=uncurryThis$5(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.exec(noop),isConstructorModern=function(e){if(!isCallable$7(e))return!1;try{return construct(noop,empty,e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable$7(e))return!1;switch(classof$3(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec(constructorRegExp,inspectSource$1(e))}catch(e){return!0}},isConstructor$1=(isConstructorLegacy.sham=!0,!construct||fails$5(function(){var e;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern(function(){e=!0})||e})?isConstructorLegacy:isConstructorModern),isConstructor=isConstructor$1,tryToString$2=tryToString$4,$TypeError$5=TypeError,aConstructor$1=function(e){if(isConstructor(e))return e;throw $TypeError$5(tryToString$2(e)+" is not a constructor")},anObject$6=anObject$a,aConstructor=aConstructor$1,isNullOrUndefined$1=isNullOrUndefined$4,SPECIES$1=wellKnownSymbol$g("species"),speciesConstructor$1=function(e,t){return void 0===(e=anObject$6(e).constructor)||isNullOrUndefined$1(e=anObject$6(e)[SPECIES$1])?t:aConstructor(e)},NATIVE_BIND$1=functionBindNative,FunctionPrototype=Function.prototype,apply$1=FunctionPrototype.apply,call$9=FunctionPrototype.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$1?call$9.bind(apply$1):function(){return call$9.apply(apply$1,arguments)}),classofRaw=classofRaw$2,uncurryThis$4=functionUncurryThis,functionUncurryThisClause=function(e){if("Function"===classofRaw(e))return uncurryThis$4(e)},aCallable$5=aCallable$8,NATIVE_BIND=functionBindNative,bind$4=functionUncurryThisClause(functionUncurryThisClause.bind),functionBindContext=function(e,t){return aCallable$5(e),void 0===t?e:NATIVE_BIND?bind$4(e,t):function(){return e.apply(t,arguments)}},html$2=getBuiltIn$7("document","documentElement"),arraySlice$1=functionUncurryThis([].slice),$TypeError$4=TypeError,validateArgumentsLength$1=function(e,t){if(e<t)throw $TypeError$4("Not enough arguments");return e},userAgent$2=engineUserAgent,engineIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2),global$6=global$g,apply=functionApply,bind$3=functionBindContext,isCallable$6=isCallable$k,hasOwn$1=hasOwnProperty_1,fails$4=fails$e,html$1=html$2,arraySlice=arraySlice$1,createElement=documentCreateElement$2,validateArgumentsLength=validateArgumentsLength$1,IS_IOS$1=engineIsIos,IS_NODE$3=engineIsNode,set=global$6.setImmediate,clear=global$6.clearImmediate,process$3=global$6.process,Dispatch=global$6.Dispatch,Function$1=global$6.Function,MessageChannel$1=global$6.MessageChannel,String$1=global$6.String,counter=0,queue$2={},ONREADYSTATECHANGE="onreadystatechange",run=(fails$4(function(){$location=global$6.location}),function(e){var t;hasOwn$1(queue$2,e)&&(t=queue$2[e],delete queue$2[e],t())}),runner=function(e){return function(){run(e)}},eventListener=function(e){run(e.data)},globalPostMessageDefer=function(e){global$6.postMessage(String$1(e),$location.protocol+"//"+$location.host)},task$1=(set&&clear||(set=function(e){validateArgumentsLength(arguments.length,1);var t=isCallable$6(e)?e:Function$1(e),n=arraySlice(arguments,1);return queue$2[++counter]=function(){apply(t,void 0,n)},defer(counter),counter},clear=function(e){delete queue$2[e]},IS_NODE$3?defer=function(e){process$3.nextTick(runner(e))}:Dispatch&&Dispatch.now?defer=function(e){Dispatch.now(runner(e))}:MessageChannel$1&&!IS_IOS$1?(port=(channel=new MessageChannel$1).port2,channel.port1.onmessage=eventListener,defer=bind$3(port.postMessage,port)):global$6.addEventListener&&isCallable$6(global$6.postMessage)&&!global$6.importScripts&&$location&&"file:"!==$location.protocol&&!fails$4(globalPostMessageDefer)?(defer=globalPostMessageDefer,global$6.addEventListener("message",eventListener,!1)):defer=ONREADYSTATECHANGE in createElement("script")?function(e){html$1.appendChild(createElement("script"))[ONREADYSTATECHANGE]=function(){html$1.removeChild(this),run(e)}}:function(e){setTimeout(runner(e),0)}),{set:set,clear:clear}),Queue$2=function(){this.head=null,this.tail=null},queue$1=(Queue$2.prototype={add:function(e){var e={item:e,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},Queue$2),userAgent$1=engineUserAgent,engineIsIosPebble=/ipad|iphone|ipod/i.test(userAgent$1)&&"undefined"!=typeof Pebble,userAgent=engineUserAgent,engineIsWebosWebkit=/web0s(?!.*chrome)/i.test(userAgent),global$5=global$g,bind$2=functionBindContext,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,macrotask=task$1.set,Queue$1=queue$1,IS_IOS=engineIsIos,IS_IOS_PEBBLE=engineIsIosPebble,IS_WEBOS_WEBKIT=engineIsWebosWebkit,IS_NODE$2=engineIsNode,MutationObserver=global$5.MutationObserver||global$5.WebKitMutationObserver,document$2=global$5.document,process$2=global$5.process,Promise$1=global$5.Promise,queueMicrotaskDescriptor=getOwnPropertyDescriptor(global$5,"queueMicrotask"),microtask$1=queueMicrotaskDescriptor&&queueMicrotaskDescriptor.value,microtask_1=(microtask$1||(queue=new Queue$1,flush=function(){var e,t;for(IS_NODE$2&&(e=process$2.domain)&&e.exit();t=queue.get();)try{t()}catch(e){throw queue.head&¬ify$1(),e}e&&e.enter()},notify$1=IS_IOS||IS_NODE$2||IS_WEBOS_WEBKIT||!MutationObserver||!document$2?!IS_IOS_PEBBLE&&Promise$1&&Promise$1.resolve?((promise=Promise$1.resolve(void 0)).constructor=Promise$1,then=bind$2(promise.then,promise),function(){then(flush)}):IS_NODE$2?function(){process$2.nextTick(flush)}:(macrotask=bind$2(macrotask,global$5),function(){macrotask(flush)}):(toggle=!0,node=document$2.createTextNode(""),new MutationObserver(flush).observe(node,{characterData:!0}),function(){node.data=toggle=!toggle}),microtask$1=function(e){queue.head||notify$1(),queue.add(e)}),microtask$1),hostReportErrors$1=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}},perform$3=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},promiseNativeConstructor=global$g.Promise,engineIsDeno="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,engineIsBrowser=!engineIsDeno&&!engineIsNode&&"object"==typeof window&&"object"==typeof document,global$3=global$g,NativePromiseConstructor$3=promiseNativeConstructor,isCallable$5=isCallable$k,isForced=isForced_1,inspectSource=inspectSource$3,wellKnownSymbol$9=wellKnownSymbol$g,IS_BROWSER=engineIsBrowser,IS_DENO=engineIsDeno,V8_VERSION=engineV8Version,SPECIES=(NativePromiseConstructor$3&&NativePromiseConstructor$3.prototype,wellKnownSymbol$9("species")),SUBCLASSING=!1,NATIVE_PROMISE_REJECTION_EVENT$1=isCallable$5(global$3.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5=isForced("Promise",function(){var e=inspectSource(NativePromiseConstructor$3),t=e!==String(NativePromiseConstructor$3);if(!t&&66===V8_VERSION)return!0;if(!V8_VERSION||V8_VERSION<51||!/native code/.test(e)){function n(e){e(function(){},function(){})}if(((e=new NativePromiseConstructor$3(function(e){e(1)})).constructor={})[SPECIES]=n,!(SUBCLASSING=e.then(function(){})instanceof n))return!0}return!t&&(IS_BROWSER||IS_DENO)&&!NATIVE_PROMISE_REJECTION_EVENT$1}),promiseConstructorDetection={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1,SUBCLASSING:SUBCLASSING},newPromiseCapability$2={},aCallable$4=aCallable$8,$TypeError$3=TypeError,PromiseCapability=function(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw $TypeError$3("Bad Promise constructor");n=e,r=t}),this.resolve=aCallable$4(n),this.reject=aCallable$4(r)},$$9=(newPromiseCapability$2.f=function(e){return new PromiseCapability(e)},_export),IS_NODE=engineIsNode,global$2=global$g,call$8=functionCall,defineBuiltIn$3=defineBuiltIn$5,setPrototypeOf$1=objectSetPrototypeOf,setToStringTag$2=setToStringTag$3,setSpecies=setSpecies$1,aCallable$3=aCallable$8,isCallable$4=isCallable$k,isObject$3=isObject$9,anInstance=anInstance$1,speciesConstructor=speciesConstructor$1,task=task$1.set,microtask=microtask_1,hostReportErrors=hostReportErrors$1,perform$2=perform$3,Queue=queue$1,InternalStateModule$1=internalState,NativePromiseConstructor$2=promiseNativeConstructor,PromiseConstructorDetection=promiseConstructorDetection,newPromiseCapabilityModule$3=newPromiseCapability$2,PROMISE="Promise",FORCED_PROMISE_CONSTRUCTOR$4=PromiseConstructorDetection.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT=PromiseConstructorDetection.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING=PromiseConstructorDetection.SUBCLASSING,getInternalPromiseState=InternalStateModule$1.getterFor(PROMISE),setInternalState$1=InternalStateModule$1.set,NativePromisePrototype$1=NativePromiseConstructor$2&&NativePromiseConstructor$2.prototype,PromiseConstructor=NativePromiseConstructor$2,PromisePrototype=NativePromisePrototype$1,TypeError$1=global$2.TypeError,document$1=global$2.document,process$1=global$2.process,newPromiseCapability$1=newPromiseCapabilityModule$3.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$2.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,isThenable=function(e){var t;return!(!isObject$3(e)||!isCallable$4(t=e.then))&&t},callReaction=function(e,t){var n,r,i,o=t.value,a=t.state==FULFILLED,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(a||(t.rejection===UNHANDLED&&onHandleUnhandled(t),t.rejection=HANDLED),!0===s?n=o:(u&&u.enter(),n=s(o),u&&(u.exit(),i=!0)),n===e.promise?c(TypeError$1("Promise-chain cycle")):(r=isThenable(n))?call$8(r,n,l,c):l(n)):c(o)}catch(e){u&&!i&&u.exit(),c(e)}},notify=function(n,r){n.notified||(n.notified=!0,microtask(function(){for(var e,t=n.reactions;e=t.get();)callReaction(e,n);n.notified=!1,r&&!n.rejection&&onUnhandled(n)}))},dispatchEvent=function(e,t,n){var r;DISPATCH_EVENT?((r=document$1.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),global$2.dispatchEvent(r)):r={promise:t,reason:n},!NATIVE_PROMISE_REJECTION_EVENT&&(t=global$2["on"+e])?t(r):e===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",n)},onUnhandled=function(r){call$8(task,global$2,function(){var e=r.facade,t=r.value,n=isUnhandled(r);if(n&&(n=perform$2(function(){IS_NODE?process$1.emit("unhandledRejection",t,e):dispatchEvent(UNHANDLED_REJECTION,e,t)}),r.rejection=IS_NODE||isUnhandled(r)?UNHANDLED:HANDLED,n.error))throw n.value})},isUnhandled=function(e){return e.rejection!==HANDLED&&!e.parent},onHandleUnhandled=function(t){call$8(task,global$2,function(){var e=t.facade;IS_NODE?process$1.emit("rejectionHandled",e):dispatchEvent(REJECTION_HANDLED,e,t.value)})},bind$1=function(t,n,r){return function(e){t(n,e,r)}},internalReject=function(e,t,n){e.done||(e.done=!0,(e=n||e).value=t,e.state=REJECTED,notify(e,!0))},internalResolve=function(n,e,t){if(!n.done){n.done=!0,t&&(n=t);try{if(n.facade===e)throw TypeError$1("Promise can't be resolved itself");var r=isThenable(e);r?microtask(function(){var t={done:!1};try{call$8(r,e,bind$1(internalResolve,t,n),bind$1(internalReject,t,n))}catch(e){internalReject(t,e,n)}}):(n.value=e,n.state=FULFILLED,notify(n,!1))}catch(e){internalReject({done:!1},e,n)}}};if(FORCED_PROMISE_CONSTRUCTOR$4&&(PromisePrototype=(PromiseConstructor=function(e){anInstance(this,PromisePrototype),aCallable$3(e),call$8(Internal,this);var t=getInternalPromiseState(this);try{e(bind$1(internalResolve,t),bind$1(internalReject,t))}catch(e){internalReject(t,e)}}).prototype,(Internal=function(e){setInternalState$1(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:void 0})}).prototype=defineBuiltIn$3(PromisePrototype,"then",function(e,t){var n=getInternalPromiseState(this),r=newPromiseCapability$1(speciesConstructor(this,PromiseConstructor));return n.parent=!0,r.ok=!isCallable$4(e)||e,r.fail=isCallable$4(t)&&t,r.domain=IS_NODE?process$1.domain:void 0,n.state==PENDING?n.reactions.add(r):microtask(function(){callReaction(r,n)}),r.promise}),OwnPromiseCapability=function(){var e=new Internal,t=getInternalPromiseState(e);this.promise=e,this.resolve=bind$1(internalResolve,t),this.reject=bind$1(internalReject,t)},newPromiseCapabilityModule$3.f=newPromiseCapability$1=function(e){return e===PromiseConstructor||e===PromiseWrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)},isCallable$4(NativePromiseConstructor$2))&&NativePromisePrototype$1!==Object.prototype){nativeThen=NativePromisePrototype$1.then,NATIVE_PROMISE_SUBCLASSING||defineBuiltIn$3(NativePromisePrototype$1,"then",function(e,t){var n=this;return new PromiseConstructor(function(e,t){call$8(nativeThen,n,e,t)}).then(e,t)},{unsafe:!0});try{delete NativePromisePrototype$1.constructor}catch(e){}setPrototypeOf$1&&setPrototypeOf$1(NativePromisePrototype$1,PromisePrototype)}$$9({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),setToStringTag$2(PromiseConstructor,PROMISE,!1),setSpecies(PROMISE);var iterators={},Iterators$4=iterators,ITERATOR$5=wellKnownSymbol$g("iterator"),ArrayPrototype$1=Array.prototype,isArrayIteratorMethod$1=function(e){return void 0!==e&&(Iterators$4.Array===e||ArrayPrototype$1[ITERATOR$5]===e)},classof$2=classof$4,getMethod$1=getMethod$3,isNullOrUndefined=isNullOrUndefined$4,Iterators$3=iterators,ITERATOR$4=wellKnownSymbol$g("iterator"),getIteratorMethod$2=function(e){if(!isNullOrUndefined(e))return getMethod$1(e,ITERATOR$4)||getMethod$1(e,"@@iterator")||Iterators$3[classof$2(e)]},call$7=functionCall,aCallable$2=aCallable$8,anObject$5=anObject$a,tryToString$1=tryToString$4,getIteratorMethod$1=getIteratorMethod$2,$TypeError$2=TypeError,getIterator$1=function(e,t){var n=arguments.length<2?getIteratorMethod$1(e):t;if(aCallable$2(n))return anObject$5(call$7(n,e));throw $TypeError$2(tryToString$1(e)+" is not iterable")},call$6=functionCall,anObject$4=anObject$a,getMethod=getMethod$3,iteratorClose$1=function(e,t,n){var r,i;anObject$4(e);try{if(!(r=getMethod(e,"return"))){if("throw"===t)throw n;return n}r=call$6(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return anObject$4(r),n},bind=functionBindContext,call$5=functionCall,anObject$3=anObject$a,tryToString=tryToString$4,isArrayIteratorMethod=isArrayIteratorMethod$1,lengthOfArrayLike=lengthOfArrayLike$2,isPrototypeOf=objectIsPrototypeOf,getIterator=getIterator$1,getIteratorMethod=getIteratorMethod$2,iteratorClose=iteratorClose$1,$TypeError$1=TypeError,Result=function(e,t){this.stopped=e,this.result=t},ResultPrototype=Result.prototype,iterate$2=function(e,t,n){function r(e){return o&&iteratorClose(o,"normal",e),new Result(!0,e)}function i(e){return p?(anObject$3(e),m?g(e[0],e[1],r):g(e[0],e[1])):m?g(e,r):g(e)}var o,a,s,l,c,u,d=n&&n.that,p=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),g=bind(t,d);if(f)o=e.iterator;else if(h)o=e;else{if(!(n=getIteratorMethod(e)))throw $TypeError$1(tryToString(e)+" is not iterable");if(isArrayIteratorMethod(n)){for(a=0,s=lengthOfArrayLike(e);a<s;a++)if((l=i(e[a]))&&isPrototypeOf(ResultPrototype,l))return l;return new Result(!1)}o=getIterator(e,n)}for(c=(f?e:o).next;!(u=call$5(c,o)).done;){try{l=i(u.value)}catch(e){iteratorClose(o,"throw",e)}if("object"==typeof l&&l&&isPrototypeOf(ResultPrototype,l))return l}return new Result(!1)},ITERATOR$3=wellKnownSymbol$g("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR$3]=function(){return this},Array.from(iteratorWithReturn,function(){throw 2})}catch(e){}var method,activeXDocument,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,checkCorrectnessOfIteration$1=function(e,t){if(!t&&!SAFE_CLOSING)return!1;var n=!1;try{var r={};r[ITERATOR$3]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},NativePromiseConstructor$1=promiseNativeConstructor,checkCorrectnessOfIteration=checkCorrectnessOfIteration$1,FORCED_PROMISE_CONSTRUCTOR$3=promiseConstructorDetection.CONSTRUCTOR,promiseStaticsIncorrectIteration=FORCED_PROMISE_CONSTRUCTOR$3||!checkCorrectnessOfIteration(function(e){NativePromiseConstructor$1.all(e).then(void 0,function(){})}),call$4=functionCall,aCallable$1=aCallable$8,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$1=perform$3,iterate$1=iterate$2,$$7=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{all:function(e){var s=this,t=newPromiseCapabilityModule$2.f(s),l=t.resolve,c=t.reject,n=perform$1(function(){var r=aCallable$1(s.resolve),i=[],o=0,a=1;iterate$1(e,function(e){var t=o++,n=!1;a++,call$4(r,s,e).then(function(e){n||(n=!0,i[t]=e,--a)||l(i)},c)}),--a||l(i)});return n.error&&c(n.value),t.promise}}),_export),FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor=promiseNativeConstructor,getBuiltIn$1=getBuiltIn$7,isCallable$3=isCallable$k,defineBuiltIn$2=defineBuiltIn$5,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype,call$3=($$7({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(e){return this.then(void 0,e)}}),isCallable$3(NativePromiseConstructor)&&(method=getBuiltIn$1("Promise").prototype.catch,NativePromisePrototype.catch!==method)&&defineBuiltIn$2(NativePromisePrototype,"catch",method,{unsafe:!0}),functionCall),aCallable=aCallable$8,newPromiseCapabilityModule$1=newPromiseCapability$2,perform=perform$3,iterate=iterate$2,$$5=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{race:function(e){var n=this,r=newPromiseCapabilityModule$1.f(n),i=r.reject,t=perform(function(){var t=aCallable(n.resolve);iterate(e,function(e){call$3(t,n,e).then(r.resolve,i)})});return t.error&&i(t.value),r.promise}}),_export),call$2=functionCall,newPromiseCapabilityModule=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR,anObject$2=($$5({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function(e){var t=newPromiseCapabilityModule.f(this);return call$2(t.reject,void 0,e),t.promise}}),anObject$a),isObject$2=isObject$9,newPromiseCapability=newPromiseCapability$2,promiseResolve$1=function(e,t){return anObject$2(e),isObject$2(t)&&t.constructor===e?t:((0,(e=newPromiseCapability.f(e)).resolve)(t),e.promise)},$$4=_export,getBuiltIn=getBuiltIn$7,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve=promiseResolve$1,objectDefineProperties=(getBuiltIn("Promise"),$$4({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR},{resolve:function(e){return promiseResolve(this,e)}}),{}),internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$2=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule=objectDefineProperty,anObject$1=anObject$a,toIndexedObject$1=toIndexedObject$5,objectKeys$1=objectKeys$2,anObject=(objectDefineProperties.f=DESCRIPTORS$2&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$1(e);for(var n,r=toIndexedObject$1(t),i=objectKeys$1(t),o=i.length,a=0;a<o;)definePropertyModule.f(e,n=i[a++],r[n]);return e},anObject$a),definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html=html$2,documentCreateElement$1=documentCreateElement$2,GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$3("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e=documentCreateElement$1("iframe"),t="java"+SCRIPT+":";return e.style.display="none",html.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"==typeof document||document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame();for(var e=enumBugKeys.length;e--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[e]];return NullProtoObject()},objectCreate=(hiddenKeys[IE_PROTO$1]=!0,Object.create||function(e,t){var n;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject(e),n=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,n[IE_PROTO$1]=e):n=NullProtoObject(),void 0===t?n:definePropertiesModule.f(n,t)}),wellKnownSymbol$5=wellKnownSymbol$g,create$1=objectCreate,defineProperty$2=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$5("unscopables"),ArrayPrototype=Array.prototype,addToUnscopables$2=(null==ArrayPrototype[UNSCOPABLES]&&defineProperty$2(ArrayPrototype,UNSCOPABLES,{configurable:!0,value:create$1(null)}),function(e){ArrayPrototype[UNSCOPABLES][e]=!0}),correctPrototypeGetter=!fails$e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn=hasOwnProperty_1,isCallable$2=isCallable$k,toObject$1=toObject$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey$3("IE_PROTO"),$Object=Object,ObjectPrototype=$Object.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object.getPrototypeOf:function(e){var t,e=toObject$1(e);return hasOwn(e,IE_PROTO)?e[IE_PROTO]:(t=e.constructor,isCallable$2(t)&&e instanceof t?t.prototype:e instanceof $Object?ObjectPrototype:null)},fails$2=fails$e,isCallable$1=isCallable$k,isObject$1=isObject$9,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$1=defineBuiltIn$5,ITERATOR$2=wellKnownSymbol$g("iterator"),BUGGY_SAFARI_ITERATORS$1=!1,NEW_ITERATOR_PROTOTYPE=([].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$1(getPrototypeOf$1(arrayIterator)))!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0),!isObject$1(IteratorPrototype$2)||fails$2(function(){var e={};return IteratorPrototype$2[ITERATOR$2].call(e)!==e})),iteratorsCore=(isCallable$1((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$2])||defineBuiltIn$1(IteratorPrototype$2,ITERATOR$2,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),IteratorPrototype$1=iteratorsCore.IteratorPrototype,create=objectCreate,createPropertyDescriptor=createPropertyDescriptor$3,setToStringTag$1=setToStringTag$3,Iterators$2=iterators,returnThis$1=function(){return this},iteratorCreateConstructor=function(e,t,n,r){return t+=" Iterator",e.prototype=create(IteratorPrototype$1,{next:createPropertyDescriptor(+!r,n)}),setToStringTag$1(e,t,!1),Iterators$2[t]=returnThis$1,e},$$3=_export,call$1=functionCall,FunctionName=functionName,isCallable=isCallable$k,createIteratorConstructor=iteratorCreateConstructor,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf=objectSetPrototypeOf,setToStringTag=setToStringTag$3,createNonEnumerableProperty$1=createNonEnumerableProperty$4,defineBuiltIn=defineBuiltIn$5,wellKnownSymbol$3=wellKnownSymbol$g,Iterators$1=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$1=wellKnownSymbol$3("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(e,t,n,r,i,o,a){function s(e){if(e===i&&f)return f;if(!BUGGY_SAFARI_ITERATORS&&e in d)return d[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new n(this,e)}}return function(){return new n(this)}}createIteratorConstructor(n,t,r);var l,c,r=t+" Iterator",u=!1,d=e.prototype,p=d[ITERATOR$1]||d["@@iterator"]||i&&d[i],f=!BUGGY_SAFARI_ITERATORS&&p||s(i),h="Array"==t&&d.entries||p;if(h&&(h=getPrototypeOf(h.call(new e)))!==Object.prototype&&h.next&&(getPrototypeOf(h)!==IteratorPrototype&&(setPrototypeOf?setPrototypeOf(h,IteratorPrototype):isCallable(h[ITERATOR$1])||defineBuiltIn(h,ITERATOR$1,returnThis)),setToStringTag(h,r,!0)),PROPER_FUNCTION_NAME&&i==VALUES&&p&&p.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$1(d,"name",VALUES):(u=!0,f=function(){return call$1(p,this)})),i)if(l={values:s(VALUES),keys:o?f:s(KEYS),entries:s(ENTRIES)},a)for(c in l)!BUGGY_SAFARI_ITERATORS&&!u&&c in d||defineBuiltIn(d,c,l[c]);else $$3({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return d[ITERATOR$1]!==f&&defineBuiltIn(d,ITERATOR$1,f,{name:i}),Iterators$1[t]=f,l},createIterResultObject$1=function(e,t){return{value:e,done:t}},toIndexedObject=toIndexedObject$5,addToUnscopables$1=addToUnscopables$2,Iterators=iterators,InternalStateModule=internalState,defineProperty$1=objectDefineProperty.f,defineIterator=iteratorDefine,createIterResultObject=createIterResultObject$1,DESCRIPTORS$1=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState=InternalStateModule.set,getInternalState=InternalStateModule.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(e,t){setInternalState(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:t})},function(){var e=getInternalState(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,createIterResultObject(void 0,!0)):createIterResultObject("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)},"values"),values=Iterators.Arguments=Iterators.Array;if(addToUnscopables$1("keys"),addToUnscopables$1("values"),addToUnscopables$1("entries"),DESCRIPTORS$1&&"values"!==values.name)try{defineProperty$1(values,"name",{value:"values"})}catch(e){}var COLLECTION_NAME,domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},classList=documentCreateElement$2("span").classList,DOMTokenListPrototype$1=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$1===Object.prototype?void 0:DOMTokenListPrototype$1,global$1=global$g,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty=createNonEnumerableProperty$4,wellKnownSymbol$2=wellKnownSymbol$g,ITERATOR=wellKnownSymbol$2("iterator"),TO_STRING_TAG=wellKnownSymbol$2("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(e,t){if(e){if(e[ITERATOR]!==ArrayValues)try{createNonEnumerableProperty(e,ITERATOR,ArrayValues)}catch(t){e[ITERATOR]=ArrayValues}if(e[TO_STRING_TAG]||createNonEnumerableProperty(e,TO_STRING_TAG,t),DOMIterables[t])for(var n in ArrayIteratorMethods)if(e[n]!==ArrayIteratorMethods[n])try{createNonEnumerableProperty(e,n,ArrayIteratorMethods[n])}catch(t){e[n]=ArrayIteratorMethods[n]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$1[COLLECTION_NAME]&&global$1[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");var react={exports:{}},react_production_min={},l=Symbol.for("react.element"),n=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z=Symbol.iterator;function A(e){return null!==e&&"object"==typeof e&&"function"==typeof(e=z&&e[z]||e["@@iterator"])?e:null}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(e,t,n){this.props=e,this.context=t,this.refs=D,this.updater=n||B}function F(){}function G(e,t,n){this.props=e,this.context=t,this.refs=D,this.updater=n||B}E.prototype.isReactComponent={},E.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},F.prototype=E.prototype;var H=G.prototype=new F,I=(H.constructor=G,C(H,E.prototype),H.isPureReactComponent=!0,Array.isArray),J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function M(e,t,n){var r,i={},o=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(o=""+t.key),t)J.call(t,r)&&!L.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:l,type:e,key:o,ref:a,props:i,_owner:K.current}}function N(e,t){return{$$typeof:l,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===l}function escape$1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}var P=/\/+/g;function Q(e,t){return"object"==typeof e&&null!==e&&null!=e.key?escape$1(""+e.key):t.toString(36)}function R(e,t,r,i,o){var a=!1;if(null===(e="undefined"!=(c=typeof e)&&"boolean"!==c?e:null))a=!0;else switch(c){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case l:case n:a=!0}}if(a)return o=o(a=e),e=""===i?"."+Q(a,0):i,I(o)?(r="",R(o,t,r=null!=e?e.replace(P,"$&/")+"/":r,"",function(e){return e})):null!=o&&(O(o)&&(o=N(o,r+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(P,"$&/")+"/")+e)),t.push(o)),1;if(a=0,i=""===i?".":i+":",I(e))for(var s=0;s<e.length;s++){var c,u=i+Q(c=e[s],s);a+=R(c,t,r,u,o)}else if("function"==typeof(u=A(e)))for(e=u.call(e),s=0;!(c=e.next()).done;)a+=R(c=c.value,t,r,u=i+Q(c,s++),o);else if("object"===c)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function S(e,t,n){var r;return null!=e&&(r=0,R(e,e=[],"","",function(e){return t.call(n,e,r++)})),e}function T(t){var e;if(-1===t._status&&((e=(e=t._result)()).then(function(e){0!==t._status&&-1!==t._status||(t._status=1,t._result=e)},function(e){0!==t._status&&-1!==t._status||(t._status=2,t._result=e)}),-1===t._status)&&(t._status=0,t._result=e),1===t._status)return t._result.default;throw t._result}var EMessageTypes,EFrameLinkEvents,U={current:null},V={transition:null},W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:V,ReactCurrentOwner:K};react_production_min.Children={map:S,forEach:function(e,t,n){S(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return S(e,function(){t++}),t},toArray:function(e){return S(e,function(e){return e})||[]},only:function(e){if(O(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},react_production_min.Component=E,react_production_min.Fragment=p,react_production_min.Profiler=r,react_production_min.PureComponent=G,react_production_min.StrictMode=q,react_production_min.Suspense=w,react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,react_production_min.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=C({},e.props),i=e.key,o=e.ref,a=e._owner;if(null!=t)for(s in void 0!==t.ref&&(o=t.ref,a=K.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)J.call(t,s)&&!L.hasOwnProperty(s)&&(r[s]=(void 0===t[s]&&void 0!==c?c:t)[s]);var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];r.children=c}return{$$typeof:l,type:e.type,key:i,ref:o,props:r,_owner:a}},react_production_min.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:t,_context:e},e.Consumer=e},react_production_min.createElement=M,react_production_min.createFactory=function(e){var t=M.bind(null,e);return t.type=e,t},react_production_min.createRef=function(){return{current:null}},react_production_min.forwardRef=function(e){return{$$typeof:v,render:e}},react_production_min.isValidElement=O,react_production_min.lazy=function(e){return{$$typeof:y,_payload:{_status:-1,_result:e},_init:T}},react_production_min.memo=function(e,t){return{$$typeof:x,type:e,compare:void 0===t?null:t}},react_production_min.startTransition=function(e){var t=V.transition;V.transition={};try{e()}finally{V.transition=t}},react_production_min.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},react_production_min.useCallback=function(e,t){return U.current.useCallback(e,t)},react_production_min.useContext=function(e){return U.current.useContext(e)},react_production_min.useDebugValue=function(){},react_production_min.useDeferredValue=function(e){return U.current.useDeferredValue(e)},react_production_min.useEffect=function(e,t){return U.current.useEffect(e,t)},react_production_min.useId=function(){return U.current.useId()},react_production_min.useImperativeHandle=function(e,t,n){return U.current.useImperativeHandle(e,t,n)},react_production_min.useInsertionEffect=function(e,t){return U.current.useInsertionEffect(e,t)},react_production_min.useLayoutEffect=function(e,t){return U.current.useLayoutEffect(e,t)},react_production_min.useMemo=function(e,t){return U.current.useMemo(e,t)},react_production_min.useReducer=function(e,t,n){return U.current.useReducer(e,t,n)},react_production_min.useRef=function(e){return U.current.useRef(e)},react_production_min.useState=function(e){return U.current.useState(e)},react_production_min.useSyncExternalStore=function(e,t,n){return U.current.useSyncExternalStore(e,t,n)},react_production_min.useTransition=function(){return U.current.useTransition()},react_production_min.version="18.2.0",react.exports=react_production_min,react.exports.createContext({});const filePicker=(e,t)=>window.aiware.mountPanel({panelId:"DATA_CENTER_IMPORTER",microFrontend:{name:"DATA_CENTER_IMPORTER",config:{requestId:e,frameLink:t}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:document.querySelector("#VERITONE_PANEL_ID")?80:0,size:"large",zIndex:1e3}}),errors={childCantSend:{id:"aiware-desktop.frame-link.child-cannot-send",defaultMessage:"Child frame cannot send this type of message",description:"Child frame is not allowed to send this type of message"},parentCantSend:{id:"aiware-desktop.frame-link.parent-cannot-send",defaultMessage:"Desktop App cannot send this type of message to child frame",description:"Desktop App is not allowed to send this type of message"},childAppNotResponding:{id:"aiware-desktop.frame-link.child-heartbeat-check-failed",defaultMessage:"Child frame appears to be frozen",description:"Child app failed to send a heartbeat to report healthy status"},unsupportedUtility:{id:"aiware-desktop.frame-link.unsupported-utility",defaultMessage:"Cannot find the requested utility",description:"Error when child app is requesting a use of unsupported utility"},operationCancelled:{id:"aiware-desktop.frame-link.operation-cancelled",defaultMessage:"Operation cancelled",description:"Error message when the operation requested by child frame is cancelled"}};!function(e){e.getInitContext="getInitContext",e.initContext="initContext",e.updateContext="updateContext",e.reportActivity="reportActivity",e.response="response",e.utility="utility",e.error="error",e.heartbeat="heartbeat"}(EMessageTypes=EMessageTypes||{}),filePicker,(EFrameLinkEvents=EFrameLinkEvents||{}).init="init";var $$2=_export,$includes=arrayIncludes.includes,addToUnscopables=addToUnscopables$2,BROKEN_ON_SPARSE=fails$e(function(){return!Array(1).includes()}),isObject=($$2({target:"Array",proto:!0,forced:BROKEN_ON_SPARSE},{includes:function(e){return $includes(this,e,1<arguments.length?arguments[1]:void 0)}}),addToUnscopables("includes"),isObject$9),classof$1=classofRaw$2,MATCH$1=wellKnownSymbol$g("match"),isRegexp=function(e){var t;return isObject(e)&&(void 0!==(t=e[MATCH$1])?!!t:"RegExp"==classof$1(e))},isRegExp=isRegexp,$TypeError=TypeError,notARegexp=function(e){if(isRegExp(e))throw $TypeError("The method doesn't accept regular expressions");return e},classof=classof$4,$String=String,toString$1=function(e){if("Symbol"===classof(e))throw TypeError("Cannot convert a Symbol value to a string");return $String(e)},MATCH=wellKnownSymbol$g("match"),correctIsRegexpLogic=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[MATCH]=!1,"/./"[t](n)}catch(e){}}return!1},$$1=_export,notARegExp=notARegexp,requireObjectCoercible=requireObjectCoercible$3,toString=toString$1,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf=functionUncurryThis("".indexOf),DESCRIPTORS=($$1({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~stringIndexOf(toString(requireObjectCoercible(this)),toString(notARegExp(e)),1<arguments.length?arguments[1]:void 0)}}),descriptors),uncurryThis=functionUncurryThis,call=functionCall,fails=fails$e,objectKeys=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject=toObject$3,IndexedObject=indexedObject,$assign=Object.assign,defineProperty=Object.defineProperty,concat=uncurryThis([].concat),objectAssign=!$assign||fails(function(){var e,t,n,r;return!(!DESCRIPTORS||1===$assign({b:1},$assign(defineProperty({},"a",{enumerable:!0,get:function(){defineProperty(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},r="abcdefghijklmnopqrst",(e={})[n=Symbol()]=7,r.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[n])||objectKeys($assign({},t)).join("")!=r})?function(e,t){for(var n=toObject(e),r=arguments.length,i=1,o=getOwnPropertySymbolsModule.f,a=propertyIsEnumerableModule.f;i<r;)for(var s,l=IndexedObject(arguments[i++]),c=o?concat(objectKeys(l),o(l)):objectKeys(l),u=c.length,d=0;d<u;)s=c[d++],DESCRIPTORS&&!call(a,l,s)||(n[s]=l[s]);return n}:$assign,assign=objectAssign;function __rest$1(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function __awaiter$3(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign},{assign:assign});const useStyles$2$3=makeStyles()((e,{titleColor:t,logo:n,activeColor:r,onClickLogo:i},o)=>({appBar:{top:0,left:0,right:0,display:"flex",position:"fixed",boxShadow:"none",borderBottom:"0.5px solid "+e.palette.divider,["& ."+o.logo]:{cursor:"pointer","& img":{width:"100%",height:"100%",objectFit:"scale-down",userSelect:"none"}},backgroundColor:e.palette.background.default},menuButton:{display:"flex",justifyContent:"center",alignItems:"center",padding:"0",marginLeft:e.spacing(5)},margin:{marginRight:e.spacing(.4),display:"flex",alignItems:"center"},barIcon:{padding:e.spacing(.8)},iconButton:{padding:0},hamburgerIcon:{padding:e.spacing(1.4),width:32,height:32,WebkitMask:`url("${img$1D}") no-repeat 50% 50%`,backgroundColor:t},appLogo:{display:"inline-block",width:150,height:32,backgroundImage:`url("${n}")`,backgroundRepeat:"no-repeat",backgroundPosition:"left center",cursor:i?"pointer":"default"},title:{fontStyle:"normal !important",fontWeight:600,fontSize:"18px !important",lineHeight:"22px !important",letterSpacing:"0.225px !important",mixBlendMode:"normal",textTransform:"uppercase",color:t+" important",whiteSpace:"nowrap","&:hover":{cursor:"pointer"}},content:{height:"100%",flexGrow:1,display:"flex",flexWrap:"nowrap",flexDirection:"row",alignItems:"center",padding:e.spacing(0,3.2),"& > div":{display:"flex",flexWrap:"nowrap",flexDirection:"row"},["& ."+o.left]:{justifyContent:"flex-start"},["& ."+o.right]:{justifyContent:"flex-end"},["& ."+o.searchBarHolder]:{flexGrow:1},["& ."+o.appLogo]:{userSelect:"none"},["& ."+o.controllers]:{display:"flex",alignItems:"center"}},iconGroup:{display:"flex",justifyContent:"space-between",alignItems:"center"},iconGroupIcon:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},rightActionLabel:{fontWeight:400,fontSize:14,lineHeight:"16px",textDecoration:"none",color:"white",cursor:"pointer",display:"block"},noSelect:{userSelect:"none"},active:{opacity:1},smallOrgAvatar:{width:"30px !important",height:"30px !important",fontSize:"16px !important"},passive:{opacity:.8},icon:{width:"40px !important",height:"40px !important",padding:0,backgroundPosition:"center",backgroundRepeat:"no-repeat"},logo:{},left:{},right:{},searchBarHolder:{},controllers:{},appIcon:{height:"32px",width:"32px",borderRadius:"50%",marginLeft:e.spacing(4.4),"&:hover":{cursor:"pointer"}},applicationIcon:{WebkitMask:`url("${img$15}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},veritoneLogo:{WebkitMask:`url("${img$1C}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},openPanel:{backgroundImage:`url("${img$1g}") !important`},notificationIcon:{WebkitMask:`url("${img$8}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},applicationSettingsIcon:{WebkitMask:`url("${img$1v}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},dashboardIcon:{WebkitMask:`url("${img$a}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},openNotificationPanel:{backgroundImage:`url(${img$1f}) !important`},orgIcon:{borderRadius:"50%",width:30,height:30,backgroundRepeat:"no-repeat",backgroundPosition:"center"},logoIcon:{WebkitMask:`url("${n}") no-repeat 50% 50%`,backgroundColor:t},helpIcon:{WebkitMask:`url("${img$9}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},openHelp:{backgroundImage:`url(${img$1e}) !important`},orgButton:{padding:e.spacing(2)},panelActive:{borderRadius:"50%",backgroundColor:r},notificationBadge:{"& > span":{top:e.spacing(2),right:e.spacing(2)}},appBarSkeleton:{position:"absolute",zIndex:1005,height:55},marginRightSkeleton:{marginRight:e.spacing(4)},leftContainerSkeleton:{display:"flex",alignItems:"center",paddingLeft:e.spacing(5)}})),useStyles$1$3=makeStyles()((e,t,n)=>({popover:{marginTop:18,["& "+n.helpItemText]:{padding:e.spacing(0),fontSize:15},["& "+n.versionWrapper]:{padding:e.spacing(3.2,0),["& "+n.versionText]:{fontSize:12,color:"#757575"}}},helpItemText:{},versionWrapper:{},versionText:{},help:{},barIcon:{padding:e.spacing(.8)},icon:{width:"40px !important",height:"40px !important",padding:e.spacing(0),backgroundPosition:"center",backgroundRepeat:"no-repeat"},helpIcon:{WebkitMask:`url("${img$9}") no-repeat 50% 50%`,backgroundColor:e.palette.background.default,"&:hover":{backgroundColor:e.palette.background.default}},list:{backgroundColor:e.palette.background.default},popoverColor:{backgroundColor:e.palette.background.default}})),Help=({onOpen:t,onClose:e,helpDocLink:n,helpDocCallback:r,supportCallback:i,displaySupportChat:o,displayChatWithSupport:a,desktopIconStyle:s})=>{var l=useStyles$1$3()["classes"];const[c,u]=react$1.exports.useState(null);const d=()=>{u(null),null!=e&&e()};var p=n||r,f=null==(f=window.config)?void 0:f.appVersion;return jsxRuntime.exports.jsxs("div",Object.assign({className:l.help},{children:[jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.KrqRIg",defaultMessage:"Help Center",description:"appbar tooltip: help-center button text"}),"aria-label":"help"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({className:l.barIcon,onClick:e=>{u(e.currentTarget),null!=t&&t()},"data-veritone-element":"help-button","data-testid":"help-button","aria-label":"help",size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(l.icon,l.helpIcon),style:s})}))})),jsxRuntime.exports.jsx(Popover$1,Object.assign({open:Boolean(c),anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},onClose:d,className:l.popover,classes:{paper:l.popoverColor},disableScrollLock:!0},{children:jsxRuntime.exports.jsxs(List$2,Object.assign({disablePadding:!0,className:l.list},{children:[p&&jsxRuntime.exports.jsxs(ListItemButton$1,Object.assign({onClick:()=>{d(),null!=r&&r(),n&&window.open(n,"_blank")},"data-veritone-element":"show-help-doc-button","data-testid":"show-help-doc-button"},{children:[jsxRuntime.exports.jsx(ListItemIcon$1,{children:jsxRuntime.exports.jsx(AppBarArticleIcon,{})}),jsxRuntime.exports.jsx(ListItemText$1,{primary:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.MSM3Vh",defaultMessage:"View Help Docs",description:"help tooltip: text for documentation"}),classes:{root:l.helpItemText}})]})),a&&jsxRuntime.exports.jsxs(ListItemButton$1,Object.assign({onClick:()=>{null!=i&&i(),sdkEventManager.dispatch(SdkEvents.openSupport),u(null)},"data-veritone-element":"open-chat-with-support-button","data-testid":"app-bar-show-chat-with-support-button"},{children:[jsxRuntime.exports.jsx(ListItemIcon$1,{children:jsxRuntime.exports.jsx(Chat,{fontSize:"small"})}),jsxRuntime.exports.jsx(ListItemText$1,{primary:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-chat-with-support.MBM3Vh2",defaultMessage:"Chat with Support",description:"help tooltip: salesforce chat with support"}),classes:{root:l.helpItemText}})]})),o&&jsxRuntime.exports.jsxs(ListItemButton$1,Object.assign({onClick:()=>{null!=i&&i(),u(null)},"data-veritone-element":"open-support-chat-button","data-testid":"support-chat-button"},{children:[jsxRuntime.exports.jsx(ListItemIcon$1,{children:jsxRuntime.exports.jsx(AppBarInAppGuidance,{})}),jsxRuntime.exports.jsx(ListItemText$1,{primary:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.8aLpuV",defaultMessage:"In-App Guidance",description:"help tooltip: text for documentation"}),classes:{root:l.helpItemText}})]})),f&&jsxRuntime.exports.jsxs(react$1.exports.Fragment,{children:[jsxRuntime.exports.jsx(Divider$1,{}),jsxRuntime.exports.jsx(ListItem$1,Object.assign({className:l.versionWrapper},{children:jsxRuntime.exports.jsx(ListItemText$1,{primary:f,classes:{primary:l.versionText}})}))]})]}))}))]}))},namespace$5="users",userSelector=e=>null==e?void 0:e.aiWareHeaderBar,rootSelector=e=>e,notificationStatusSelector=e=>null!=e&&e.osNotificationPanel?null==e?void 0:e.osNotificationPanel.status:"",useStyles$k=makeStyles()(e=>({title:{paddingTop:e.spacing(5.5)},contentText:{fontSize:14},dialogActions:{marginBottom:e.spacing(3),paddingRight:e.spacing(5)},signOutButton:{height:34,marginRight:e.spacing(1)},staySignedInButton:{height:34}})),LOGOUT_CALL_LIMIT=1;let logoutCallCounter=0;const RESET_IDLE_TIMER_CALL_LIMIT=1,MINUTES_BEFORE_SESSION_EXPIRATION=3;let timer;const SessionTimeout=e=>{const t=e["test"],n=useDispatch();e=useStyles$k().classes;const r=useSelector(isIdleSelector);var i=useSelector(userSelector$2);const o=useSelector(sessionTokenSelector),a=useSelector(loginUrlSelector),s=useSelector(callLogoutSelector),l=useSelector(clickedLogoutSelector),c=null==i?void 0:i.tokenExpiration,u=useSelector(callResetIdleTimerSelector);i=useSelector(sessionTimeoutSelector)||60;const d=useSelector(reloadPageSelector),p=useSelector(resetIdleTimerCallCounterSelector),[f,h]=react$1.exports.useState(t?5:60),[m,g]=react$1.exports.useState(new Date),[y,v]=react$1.exports.useState(),[x,$]=react$1.exports.useState(),[b,C]=react$1.exports.useState(!1),[S,w]=react$1.exports.useState(!1),_=react$1.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setIsIdle,value:e,ephemeral:!0,contentType:"json"}))},[n]),T=(react$1.exports.useEffect(()=>{n(getSessionTimeout(o))},[]),react$1.exports.useEffect(()=>{d&&window.location.replace("/")},[d]),react$1.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setCallLogout,value:e,ephemeral:!0,contentType:"json"}))},[n])),E=react$1.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setClickedLogout,value:e,ephemeral:!0,contentType:"json"}))},[n]),j=react$1.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setCallResetIdleTimer,value:e,ephemeral:!0,contentType:"json"}))},[n]),R=react$1.exports.useCallback(()=>{logoutCallCounter++,T(!0);var e=l?500:5e3;n(logoutRequest({token:o})),setTimeout(()=>{window.location.href=a+"/#/?redirect="+window.location.href},t?2e3:e)},[T,n,o,a,l]);var I=react$1.exports.useCallback(()=>{logoutCallCounter++,_(!1),setTimeout(()=>{T(!0),E(!0),n(logoutRequest({token:o}))},500),setTimeout(()=>{window.location.href=a+"/#/?redirect="+window.location.href},500)},[T,n,o,a,E,_]);var O=()=>{_(!0),clearInterval(timer),timer=setInterval(()=>{h(e=>e-1)},1e3)},k=()=>{!r&&p<RESET_IDLE_TIMER_CALL_LIMIT&&j(!0)};const A=se(t?{timeout:5e3,onIdle:O,onAction:k,debounce:1e3,crossTab:!0,syncTimers:200}:{timeout:6e4*i,onIdle:O,onAction:k,debounce:i/4*6e4,crossTab:!0,syncTimers:200})["reset"],M=react$1.exports.useCallback(()=>{j(!1),A()},[j]),L=react$1.exports.useCallback(()=>{S&&(n(extendTokenRequest({token:o})),w(!1)),_(!1),M(),clearInterval(timer),setTimeout(()=>{h(t?5:60)},500)},[_,M,S,n,o]);return react$1.exports.useEffect(()=>{setTimeout(()=>{g(new Date)},1e3)},[m]),react$1.exports.useEffect(()=>{var e;c&&((e=new Date(c)).setMinutes(e.getMinutes()-MINUTES_BEFORE_SESSION_EXPIRATION),$(new Date(c)),v(e))},[c]),react$1.exports.useEffect(()=>{x&&x.getTime()<m.getTime()&&C(!0),y&&y.getTime()<m.getTime()&&w(!0)},[x,y,m]),react$1.exports.useEffect(()=>{b?R():S&&_(!0)},[x,y,S,b,R,_]),react$1.exports.useEffect(()=>{s&&logoutCallCounter<LOGOUT_CALL_LIMIT&&R()},[s,R]),react$1.exports.useEffect(()=>{r&&0===f&&(clearInterval(timer),setTimeout(()=>{h(10)},500),R())},[f,R,r]),react$1.exports.useEffect(()=>{!r&&u&&p===RESET_IDLE_TIMER_CALL_LIMIT&&M()},[u,r,p,M]),react$1.exports.useEffect(()=>{r||L()},[r,L]),jsxRuntime.exports.jsx(AIWareThemeProvider$1,{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsxs(Dialog$1,Object.assign({open:r&&!l,"aria-labelledby":"session timeout dialog","aria-describedby":"session timeout dialog",disableEscapeKeyDown:!0,maxWidth:"xs","data-test":"session-timeout-dialog"},{children:[jsxRuntime.exports.jsx(DialogTitle$1,Object.assign({id:"session timeout dialog title",className:e.title},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.JEUssf",defaultMessage:"Session Timeout",description:"label session timeout dialog"})})),jsxRuntime.exports.jsx(DialogContent$1,{children:jsxRuntime.exports.jsx(DialogContentText$1,Object.assign({id:"session timeout dialog text",className:e.contentText},{children:s?l?null:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.l85HEz",defaultMessage:"You have been signed due to inactivity or due to your session being expired.",description:"signed out message"}):S?jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.bDessH",defaultMessage:"Your session will expire soon. For your security, we'll automatically sign you out in {signOutTimer} seconds. Choose 'Stay Signed In' to continue or 'Sign Out' if you're done.",description:"label for idle warning expiring soon",values:{signOutTimer:f}}):jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.Ca6Qq0",defaultMessage:"You've been inactive for a while. For your security, we'll automatically sign you out in {signOutTimer} seconds. Choose 'Stay Signed In' to continue or 'Sign Out' if you're done.",description:"label for idle warning inactive for a while",values:{signOutTimer:f}})}))}),s?null:jsxRuntime.exports.jsxs(DialogActions$1,Object.assign({className:e.dialogActions},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:I,color:"primary",variant:"outlined",className:e.signOutButton,"data-test":"sign-out-button"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.jN92ox",defaultMessage:"Sign Out",description:"label for sign out button"})})),jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:L,color:"primary",variant:"contained",className:e.staySignedInButton,"data-test":"stay-signed-in-button"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.WvKhS2",defaultMessage:"Stay Signed In",description:"label for stay signed in button"})}))]}))]}))})})},appBarHeight=55,defaultAppBarZIndex=0,VERITONE_PANEL_ID="VERITONE_PANEL_ID",ORGANIZATION_PANEL_ID="ORGANIZATION_PANEL_ID",NOTIFICATION_PANEL_ID="NOTIFICATION_PANEL_ID",APPLICATION_PANEL_ID="APPLICATION_PANEL_ID",HELP_PANEL_ID="HELP_PANEL_ID",USER_APPLICATION_SETTINGS_PANEL="USER_APPLICATION_SETTINGS_PANEL",NOTIFICATION_BADGE_MAX_COUNT=20,HUB_APP_ID="9B774B0E-A5B1-452C-A0AA-4E2E64EAD2B3",getUserInfo=({appIcon:e="",currentUser:t})=>({appIcon:e,currentUser:null!=t&&t.organization?t:void 0});function NewAppBar({isEnableOrgPanel:e,zIndex:t=defaultAppBarZIndex,leftNav:n,onClickAppbarMenu:r,logoSrc:i,backgroundColor:o="rgb(32.9, 43.1, 47.8)",iconColor:a,title:s,help:l,notification:c=!0,userApplicationSettingsIcon:u,onClickOrgIcon:d,closeButton:p,onCloseSetting:f,onClose:h,onOpenSetting:m,onOpenHelpCenter:g,onOpenNotification:y,onOpenUserApplicationSettings:v,openSetting:x,organization:$={},panels:b=[],unseenCount:C,searchBarMountId:S,textColor:w,rightActions:_=[],applications:T=[],onClickAppSwitchIcon:E,displaySupportChat:j=!0,onDashboardClick:R,showDashboardIcon:I=!1,displayChatWithSupport:O=!0,disableGoHome:P,onClickLogo:k}){var A=tinycolor(o).isDark(),w=w||(A?"#fff":"#000"),A=A?"rgba(255,255,255,0.1)":"rgb(243,245,249)";const M=useStyles$2$3({titleColor:w,logo:i,activeColor:A,onClickLogo:k})["classes"],[L,N]=react$1.exports.useState([]);A=useSelector(userSelector)||{};const[D,F]=react$1.exports.useState(!0);var{appIcon:A,currentUser:V}=getUserInfo(A),H=useSelector(betaFeaturesSelector),B=useSelector(appIdSelector)===HUB_APP_ID;react$1.exports.useEffect(()=>("true"===localStorage.getItem("DEBUG")&&console.log("AppBar mounted"),()=>{"true"===localStorage.getItem("DEBUG")&&console.log("AppBar unmounted")}),[]),react$1.exports.useEffect(()=>{var e=b.map(e=>e.panelId);!e.length&&!L.length||isEqual$4(e,L)||N(e)},[b,L]);a={background:a||void 0};return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(SessionTimeout,{}),jsxRuntime.exports.jsx("div",{style:{height:appBarHeight}}),jsxRuntime.exports.jsxs("div",Object.assign({"data-test":"appbar",className:M.appBar,style:{height:appBarHeight,background:o,zIndex:t}},{children:[n&&jsxRuntime.exports.jsx("div",Object.assign({className:M.menuButton},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-menu","data-testid":"app-bar-menu",className:M.iconButton,onClick:r,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.hamburgerIcon)})}))})),!!A&&""!==A&&jsxRuntime.exports.jsx("div",Object.assign({className:M.margin},{children:jsxRuntime.exports.jsx("img",{className:M.appIcon,src:A,alt:"appIcon"})})),jsxRuntime.exports.jsxs("div",Object.assign({className:M.content,style:{color:w}},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.left,M.noSelect),onClick:P&&!k?void 0:function(){k?k():window.location.href="/"},"data-test":"appbarTitle","data-testid":"appbarTitle"},{children:i?jsxRuntime.exports.jsx("span",{className:M.appLogo}):jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1",className:M.title},{children:s}))})),jsxRuntime.exports.jsx("div",{"data-test":"appbarSearch",id:S||"search-bar-id",className:M.searchBarHolder}),jsxRuntime.exports.jsx("div",Object.assign({className:M.right},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:M.controllers},{children:[0<_.length&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.iconGroup,M.noSelect)},{children:_.map(({label:e,onClick:t,isActive:n=!0},r)=>jsxRuntime.exports.jsx("div",Object.assign({className:M.iconGroupIcon},{children:jsxRuntime.exports.jsx("span",{onClick:e=>t?t(e):null,className:classNames(M.rightActionLabel,n?M.active:M.passive),dangerouslySetInnerHTML:{__html:e}})}),"label-"+r))})),I&&jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.dashboard-button",defaultMessage:"aiWARE Dashboard",description:"aiWARE Dashboard label"}),"aria-label":"dashboard"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-dashboard-button",className:M.barIcon,onClick:R,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.dashboardIcon),style:a})}))})),l&&jsxRuntime.exports.jsx("div",Object.assign({"data-test":"app-bar-help-container","data-testid":"app-bar-help-container",className:classNames(M.margin,{[M.panelActive]:L.includes(HELP_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Help,{tooltipTitle:"",helpDocLabel:"View Help Docs",chatWithSupportLabel:"Chat with Support",supportLabel:"In-App Guidance",helpDocCallback:()=>{null!=g&&g()},supportCallback:f,titleColor:w,displaySupportChat:j,displayChatWithSupport:O,desktopIconStyle:a})})),c&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.margin,{[M.panelActive]:L.includes(NOTIFICATION_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.KFXxNr",defaultMessage:"Notifications",description:"appbar tooltip: notification button text"}),"aria-label":"notifications"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({className:M.barIcon,onClick:y,"data-test":"app-bar-notification-button",size:"large","data-testid":"app-bar-notification-button"},{children:jsxRuntime.exports.jsx(Badge$1,Object.assign({badgeContent:C,max:NOTIFICATION_BADGE_MAX_COUNT,color:"primary","data-test":"app-bar-notification-badge",className:M.notificationBadge},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.notificationIcon,{[M.openNotificationPanel]:null==x?void 0:x.openNotificationPanel}),style:a})}))}))}))})),H&&u&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.margin,{[M.panelActive]:L.includes(USER_APPLICATION_SETTINGS_PANEL)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.application-settings-button",defaultMessage:"Application Settings",description:"appbar tooltip: application settings button text"}),"aria-label":"application-settings"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({className:M.barIcon,onClick:v,size:"large","data-testid":"app-bar-user-application-settings-button"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.applicationSettingsIcon)})}))}))})),1<T.length&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames({[M.panelActive]:L.includes(APPLICATION_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.3v499g",defaultMessage:"Applications",description:"applications tooltip: text for applications button"}),"aria-label":"applications"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-switch-app-button",className:M.barIcon,onClick:E,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.applicationIcon,{[M.openPanel]:null==x?void 0:x.openAppSwitchPanel}),style:a})}))}))})),($.imageUrl||$.name)&&e&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.margin,{[M.panelActive]:L.includes(ORGANIZATION_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.7qOwBg",defaultMessage:"Organization",description:"organization tooltip: text for documentation"}),"aria-label":"organization"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-org-button",className:M.barIcon+" "+M.orgButton,onClick:d,size:"large"},{children:$.imageUrl&&D?jsxRuntime.exports.jsx("img",{src:$.imageUrl,className:classNames(M.orgIcon),onError:function(){F(!1)},alt:"org_icon"}):jsxRuntime.exports.jsx(Avatar$1,Object.assign({className:M.smallOrgAvatar,variant:"circular","data-testid":"app-bar-avatar"},{children:getSortName($.name||"")}))}))}))})),V&&!B&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames({[M.panelActive]:L.includes(VERITONE_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.eOxvvM",defaultMessage:"Utilities",description:"utilities tooltip: text for documentation"}),"aria-label":"utilities"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-setting-button","data-testid":"app-bar-setting-button",className:M.barIcon,onClick:m,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.veritoneLogo,{[M.openPanel]:null==x?void 0:x.openVeritonePanel}),style:a})}))}))})),p&&h&&jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("div",Object.assign({style:{marginLeft:"auto"}},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({onClick:h,"data-test":"app-bar-close-button",size:"large","data-testid":"app-bar-close-button"},{children:jsxRuntime.exports.jsx(default_1$6,{htmlColor:w})}))}))})]}))}))]}))]}))]})}const GET_CURRENT_USER=`os-app-bar/${namespace$5}/get current user`,GET_CURRENT_USER_SUCCESS=`os-app-bar/${namespace$5}/get current user success`,GET_CURRENT_USER_FAIL=`os-app-bar/${namespace$5}/get current user fail`,GET_CURRENT_APP_ICON=`os-app-bar/${namespace$5}/get current app icon`,GET_CURRENT_APP_ICON_SUCCESS=`os-app-bar/${namespace$5}/get app icon success`,getCurrentUser=()=>({type:GET_CURRENT_USER}),getCurrentUserFail=()=>({type:GET_CURRENT_USER_FAIL}),getCurrentUserSuccess=e=>({type:GET_CURRENT_USER_SUCCESS,payload:e}),getCurrentAppIcon=({applicationId:e})=>({type:GET_CURRENT_APP_ICON,payload:{applicationId:e}}),getCurrentAppIconSuccess=e=>({type:GET_CURRENT_APP_ICON_SUCCESS,payload:e}),initialState$5={currentUser:{},fetched:!1,fetching:!1,error:!1};function userReducer(e,t){if(void 0===e)return initialState$5;switch(t.type){case GET_CURRENT_USER_FAIL:return Object.assign(Object.assign({},e),{fetching:!1,fetched:!0,error:!0});case GET_CURRENT_USER_SUCCESS:return Object.assign(Object.assign({},e),{currentUser:t.payload,fetching:!1,fetched:!0,error:!1});case GET_CURRENT_APP_ICON_SUCCESS:return Object.assign(Object.assign({},e),{appIcon:t.payload});default:return e}}const nameSpace$1="aiWareHeaderBar",BOOTING="APP_BAR/booting",BOOTED="APP_BAR/booted",onBooted=()=>({type:BOOTED}),getApplicationInfo=(t,n,r)=>__awaiter$3(void 0,void 0,void 0,function*(){var e=`
|
|
1448
1448
|
query {
|
|
1449
1449
|
application(id:"${t}"){
|
|
1450
1450
|
iconUrl
|
|
@@ -1528,4 +1528,4 @@ createScheduledJob(input:{
|
|
|
1528
1528
|
}
|
|
1529
1529
|
`)}),n},[]).join("\r\n")}
|
|
1530
1530
|
}
|
|
1531
|
-
`,l={entityId:t,entityType:e};try{a=yield baseGraphQLApi({query:s,operationName:n,variables:l,graphEndpoint:u,token:d})}catch(e){i=!0}if(a.errors){if(0===(o=a.errors.filter(({message:e})=>e.includes(' does not exist in "AuthPermissionType" enum.')).map(({message:e})=>{var t='Value "',n=e.substring(t.length).indexOf('"');return e.substring(t.length,t.length+n)})).length)throw i=!0,a={},new Error((null==(f=(a.errors||[])[0])?void 0:f.message)||"Error")}else i=!0}const c=a.data||{};return Object.keys(c).map(e=>{var t=e.split("__");return 3===t.length?{fetchedTargetEntityType:t[0],fetchedTargetGroupType:t[1],fetchedTargetAction:t[2],hasPermission:c[e][0].hasPermission}:{fetchedTargetEntityType:t[0],fetchedTargetAction:t[1],hasPermission:c[e][0].hasPermission}}).reduce((e,t)=>{var n=t.fetchedTargetGroupType||t.fetchedTargetEntityType;return t.hasPermission&&(e[n]||(e[n]={}),e[n][t.fetchedTargetAction]=t.hasPermission),e},{})})}function getMyRights(t){return __awaiter(this,void 0,void 0,function*(){var e="getMyRights";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query getMyRights {\n myRights {\n operations\n }\n }\n ",operationName:e},t))).myRights.operations})}const selectPermissionsByEntity=(t,n,r)=>e=>{return t&&n&&(e=e[namespace].permissionsByObject[t])&&e[n]?e[n][r||t]:void 0},selectMyRights=e=>e[namespace].rights;var index=Object.freeze({__proto__:null,selectPermissionsByEntity:selectPermissionsByEntity,selectMyRights:selectMyRights});function*fetchObjectPermissions(t){var{entityId:t,entityType:n}=t.payload,i=yield select(selectApiConfigs$2),e=yield select(graphEndpointSelector),o=yield select(sessionTokenSelector),a=yield select(selectIsOLPEnabled),r=yield select(selectPermissionsByEntity(n,t));if(!r||"success"!==r.status&&"pending"!==r.status){yield put(actions.fetchObjectPermissionsStarted({entityId:t,entityType:n}));try{let r={};if(a)r=yield call$j(getObjectPermissions,e,o,{entityType:n,entityId:t});else{let e=yield select(selectMyRights);if("success"!==e.status&&"pending"!==e.status){yield put(actions.fetchMyRightsStarted);try{var s=yield call$j(getMyRights,i);yield put(actions.fetchMyRightsSucceeded(s)),e=yield select(selectMyRights)}catch(e){throw yield put(actions.fetchMyRightsFailed),e}}else"pending"===e.status&&(yield take([actions.fetchMyRightsFailed,actions.fetchMyRightsSucceeded]),e=yield select(selectMyRights));const l=e["myRights"];getPermissionTypesToQuery(n).forEach(n=>{var{action:e,resource:t}=n.targetActions.reduce((e,t)=>(e.action[t.targetAction]=convertPermissionsToRights(t.resource||n.targetObjectType,t.targetAction,l),e.resource=t.resource,e),{action:{}});r[t||n.targetObjectType]=e})}yield put(actions.fetchObjectPermissionsSucceeded({entityId:t,entityType:n,permissions:r}))}catch(e){actions.fetchObjectPermissionsFailed({entityId:t,entityType:n})}}}function*watchPermissionsStart(){yield takeEvery$1(actions.fetchObjectPermissionsStart.type,fetchObjectPermissions)}function*rootSaga(){yield all$2([watchPermissionsStart()])}function getPermissionsModule(){return{id:namespace,reducerMap:{[namespace]:permissionsReducer},sagas:[rootSaga],initialActions:[]}}const useOrganizationPermissions=e=>{const t=react$1.exports.useRef(),n=useDispatch(),r=null==(o=useSelector(userSelector$2).organization)?void 0:o.organizationId,i=useSelector(selectPermissionsByEntity(EAuthResourceType.Organization,String(r),e));react$1.exports.useEffect(()=>{!r||i&&"failure"!==i.status&&"idle"!==i.status&&t.current===r||(t.current=r,n(actions.fetchObjectPermissionsStart({entityType:EAuthResourceType.Organization,entityId:String(r)})))},[n,r,i]);var o=react$1.exports.useCallback(e=>{return!isPermissionLoading(i)&&hasPermission(i,e)},[i]);return{permissions:i,hasPermission:o}},rateLimiter=new RateLimiter,checkAndDecodeBase64String=t=>{if(null==t||!t.trim())return t;try{return window.btoa(window.atob(t))==t?window.atob(t):t}catch(e){return t}};function SnackbarRenderer(){return jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$5},{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getSnackbarModule()]},{children:jsxRuntime.exports.jsx(CustomSnackbar,{})}))}))}store$5.addModules([getWidgetsModule(),getPanelsModule(registry,registryLookup),getDataModule(),getConfigModule(),getAuthModule(),getPermissionsModule()]);let hasLoaded=!1;const AppBarPreLoader=()=>{var e=useSelector(authSelector);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&!hasLoaded&&(hasLoaded=!0,setTimeout(()=>{store$5.addModules([getAppbarPanelModule()])},0)),null};function ApplicationDialogPreLoader(){var e=useSelector(authSelector);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&hasLoaded?jsxRuntime.exports.jsx(ApplicationDialog,{}):null}const authHelpers={updateToken(e){e?store$5.dispatch(updateTokenRequest({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{store$5.dispatch(logout())},1e3)):store$5.dispatch(logout())},reportAppActivity(e){rateLimiter.checkIfCanCall(e)&&store$5.dispatch(updateActivityStatus$1())}};function PortalRenderer(){return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(SupportCenterPixel,{}),jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$5},{children:jsxRuntime.exports.jsx(AppBarPreLoader,{})}))]})}function ApplicationDialogRenderer(){return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$5},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(ApplicationDialogPreLoader,{})})}))})}const ThemeInitializer=()=>(useTheme(),null),root=getElement("aiWARE"),reactDOMroot=(root.classList.add("aiware-el"),client$1.createRoot(root)),mountWidget=("_auth"===window.name?handleImplicitRedirect(window.location.hash,window.opener):reactDOMroot.render(jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsxs(AIWareThemeProvider$1,{children:[jsxRuntime.exports.jsx(PortalRenderer,{}),jsxRuntime.exports.jsx(SnackbarRenderer,{}),jsxRuntime.exports.jsx(ApplicationDialogRenderer,{}),jsxRuntime.exports.jsx(ThemeInitializer,{})]})})),(e,t)=>{var n=getUniqueID(),{name:e,elementId:r,config:i}=e;return e&&r&&i||console.error("[aiwarejs-error]: `mountWidget` function should include all the following params: name, elementId, config"),store$5.dispatch(mountWidget$1({elementId:r,widgetName:e,widgetConfig:i,widgetId:n,onComplete:t})),n}),unmountWidget=e=>(store$5.dispatch(unmountWidget$1(e)),!0),mountPanel=(e,t)=>{const n=e.panelId||getUniqueID();var{microFrontend:e,panelConfig:r}=e;store$5.dispatch(mountPanel$1({microFrontend:e,panelId:n,panelConfig:r}));const i=[...(null==(e=null==r?void 0:r.header)?void 0:e.actions)||[],...(null==(e=null==r?void 0:r.footer)?void 0:e.actions)||[]].filter(e=>e.submit).map(e=>e.action);r={id:n,sagas:[function*(){yield takeEvery$1(i.map(e=>e.type),function*(){var e=(yield select(e=>e.data.find(e=>e.id===n)))["data"];t&&t(e)})}]};return store$5.addModule(r),n},unmountPanel=e=>(store$5.dispatch(unmountPanel$1(e)),!0),hidePanel=e=>(store$5.dispatch(hidePanel$1(e)),!0),unmountAllPanel=()=>{store$5.dispatch(unmountAllPanel$1(""))};function init(e,t){var n,e=validateConfig(e);e?(n=e["authToken"],n=checkAndDecodeBase64String(n||""),store$5.dispatch(getInitConfig(Object.assign(Object.assign({},e),{authToken:n,onComplete:t})))):console.error("@aiware/js initialization failed. Please pass valid configuration object.")}function helpCenter(){var e=new HelpCenter$2({actions:{setCustomKnowledgeBaseUrlAction:setCustomKnowledgeBaseUrl,setCustomDocsUrlAction:setCustomDocsUrl,updateSelectedTabAction:updateSelectedTab}});return{openKnowledgeBasePanel:e.openKnowledgeBasePanel.bind(e),openDocsPanel:e.openDocsPanel.bind(e)}}function dataCenter(){var e=new DataCenter$1;return{openImporterPanel:e.openImporterPanel.bind(e)}}function handleEvents(){function n(e){if(!e||"string"!=typeof e)throw new SdkError("Please provide a valid event name!");if(!SdkEvents[e])throw new SdkError("Unknown event: "+e)}return{on:function(e,t){n(e),sdkEventManager.on.call(sdkEventManager,e,t)},off:function(e){n(e),sdkEventManager.off.call(sdkEventManager,e)}}}const mountPanelForResponse=e=>mountPanelForResponse$1(e,store$5),aiwareEvents=handleEvents();window&&(window.aiWare_initTesting=()=>{window.aiWare_store=store$5,window.aiWare_theme={darkTheme:darkTheme$1,lightTheme:lightTheme$1}},window.aiware={init:init,auth:authHelpers,helpCenter:helpCenter(),dataCenter:dataCenter(),on:aiwareEvents.on,off:aiwareEvents.off,hidePanel:hidePanel,unmountPanel:unmountPanel,store:store$5,registry:registry,registerComponent:registerComponent,AvailableWidgets:AvailableWidgets,mountPanelAction:mountPanel$1,unmountPanelAction:unmountPanel$1,hidePanelAction:hidePanel$1,updatePanelMicroFrontendPropsAction:updatePanelMicroFrontendProps,setData:setData,mountWidget:mountWidget,mountPanel:mountPanel,mountPanelForResponse:mountPanelForResponse,unmountWidget:unmountWidget,version:"sdk_release_version",commit:"c205fe6cc",releaseDate:"2023-10-03T00:18:07.288Z"});export{IconButton$1 as $,AIWareIntlProvider as A,Box$1 as B,useLocation as C,DynamicModuleLoader as D,Button$1 as E,FormattedMessage$1 as F,useSearchParams as G,img$5 as H,StyledEngineProvider as I,Fade$1 as J,classNames as K,LinearProgress$1 as L,getAppbarPanelModule as M,LoadingButton$1 as N,authErrorMessage as O,Provider$2 as P,Grid$1 as Q,Routes as R,Switch$1 as S,Typography$1 as T,FormControl$1 as U,TextField$1 as V,resetPasswordRequest as W,InputLabel$1 as X,OutlinedInput$1 as Y,InputAdornment$1 as Z,_extends$5 as _,generateUtilityClasses as a,img$k as a$,Select$1 as a0,Location as a1,MenuItem$1 as a2,Divider$1 as a3,Popover$1 as a4,applicationSelector as a5,setUser as a6,logoutUser$1 as a7,all$2 as a8,Stack$4 as a9,createBox$1 as aA,createAction as aB,createReducer as aC,ENGINE_OWNER_TYPES as aD,ENGINE_FILTER_TYPES as aE,preferredLanguageSelector as aF,baseUrlSelector as aG,rootApiSelector as aH,sessionTokenSelector as aI,graphEndpointSelector as aJ,controllerNodeRedImageSelector as aK,controllerUrlSelector as aL,automateControllerUrlSelector as aM,flowCenterDialogSelector as aN,automateUrlSelector as aO,Portal$1 as aP,flowCenterDialogReducer as aQ,List$2 as aR,ListItem$1 as aS,ListItemIcon$1 as aT,ListItemText$1 as aU,flowCenterDialogAction as aV,img$q as aW,img$r as aX,img$t as aY,img$u as aZ,Tooltip$1 as a_,CheckmarkFilled as aa,Bullet as ab,takeEvery$1 as ac,select as ad,call$j as ae,put as af,showMessage as ag,MessageSeverity as ah,createTheme$1 as ai,systemStyled as aj,useThemeProps$1 as ak,useId as al,useControlled$1 as am,usePreviousProps$1 as an,useEventCallback as ao,setRef as ap,inputClasses$1 as aq,inputBaseClasses$1 as ar,outlinedInputClasses$1 as as,filledInputClasses$1 as at,Popper$1 as au,alpha as av,ListSubheader$1 as aw,ClearIcon as ax,ArrowDropDownIcon as ay,Chip$1 as az,styled$1 as b,_setPrototypeOf$z as b$,img$J as b0,Skeleton$1 as b1,takeLatest$1 as b2,fetchAllTags as b3,fetchFlows as b4,fetchTemplateGallery as b5,isRevisionsExistOnServerRequest as b6,FormLabel$1 as b7,default_1$e as b8,FormGroup$1 as b9,img$F as bA,DialogTitle$1 as bB,DialogContent$1 as bC,DialogActions$1 as bD,Snackbar$1 as bE,default_1$6 as bF,Search$1 as bG,img$l as bH,img$n as bI,img$X as bJ,Tabs$2 as bK,Tab$2 as bL,deleteEngine as bM,fetchEngine as bN,img$m as bO,AIWareFormatMessage as bP,FormattedDate as bQ,fetchVeritoneGraphQLApi as bR,useTheme as bS,KeyboardArrowRight as bT,KeyboardArrowLeft as bU,InputUnstyled as bV,isHostComponent as bW,getDefaultExportFromNamespaceIfNotNamed as bX,commonjsRequire as bY,_typeof$D as bZ,_assertThisInitialized$x as b_,FormControlLabel$1 as ba,Checkbox$1 as bb,fetchTemplateGalleryFallback as bc,Card$1 as bd,CardContent$1 as be,img$o as bf,CardActions$1 as bg,flowStyles as bh,NoResults as bi,CircularProgress$1 as bj,img$e as bk,Dialog$1 as bl,setApiEndpoint as bm,TableContainer$1 as bn,Table$1 as bo,TableHead$1 as bp,TableRow$1 as bq,TableCell$1 as br,TableSortLabel$1 as bs,TableBody$1 as bt,img$j as bu,default_1 as bv,ClickAwayListener as bw,img$v as bx,img$s as by,img$T as bz,Paper$1 as c,TabPanel as c$,reactDom as c0,Transition$1 as c1,_defineProperty$x as c2,__awaiter$e as c3,__generator$2 as c4,__spread as c5,React5 as c6,PropTypes as c7,TransitionGroup$1 as c8,connect$1 as c9,default_1$9 as cA,Controller as cB,FormHelperText$2 as cC,img$i as cD,ThemeProvider as cE,lightTheme$1 as cF,CssBaseline as cG,Hide as cH,has_1 as cI,Radio$2 as cJ,createSvgIcon$2 as cK,_createCompounder as cL,_toPropertyKey as cM,_inheritsLoose$2 as cN,hoistNonReactStatics_cjs as cO,commonjsGlobal$2 as cP,combineReducers as cQ,createSelector$1 as cR,fork as cS,statusPill as cT,AIWareThemeProvider$1 as cU,LocalizationProvider as cV,AdapterDateFns as cW,CalendarPicker as cX,Close$1 as cY,FullscreenExit as cZ,Fullscreen as c_,Bookmark as ca,EngineFlagIcons as cb,createAsyncThunk as cc,withStyles as cd,getConfigModule as ce,getAuthModule as cf,getSnackbarModule as cg,AIWareCacheProvider as ch,img$U as ci,img$g as cj,img$f as ck,isEmpty_1 as cl,find_1 as cm,Backdrop$1 as cn,getDefaultMiddleware as co,isNil_1 as cp,useForm as cq,UpDown as cr,Icon$1 as cs,get_1 as ct,map_1 as cu,keys_1 as cv,RadioGroup$1 as cw,Avatar$1 as cx,img$z as cy,baseGraphQLApi as cz,capitalize$2 as d,findIndex_1 as d$,ReactMarkdown as d0,default_1$8 as d1,unmountPanel$1 as d2,AvailableComponents as d3,delay$1 as d4,hidePanel$1 as d5,mountPanel$1 as d6,DialogContentText$1 as d7,userSelector$2 as d8,MoreVert$1 as d9,isObject_1 as dA,_toKey as dB,_baseIteratee as dC,_baseToString as dD,_baseTrim as dE,_castSlice as dF,_stringToArray as dG,toString_1 as dH,upperFirst_1 as dI,_arrayMap as dJ,isArrayLike_1 as dK,isString_1 as dL,toInteger_1 as dM,_baseGet as dN,_baseSlice as dO,channel$2 as dP,useFormContext as dQ,useIntl as dR,useFieldArray as dS,VideoCamera as dT,Image$1 as dU,Sound as dV,Description as dW,toNumber_1 as dX,FormProvider as dY,ProgressStepper as dZ,size_1 as d_,Menu$1 as da,Edit as db,Upload as dc,Delete$1 as dd,CustomTabs as de,useBackupImg as df,img$1C as dg,validate as dh,img$19 as di,baseGraphQLApiWithError as dj,VerifiedFilled as dk,Add as dl,ExpandLess$1 as dm,ExpandMore$1 as dn,Collapse$1 as dp,Filter$1 as dq,DynamicTable as dr,useTheme$3 as ds,getThemeProps as dt,useEnhancedEffect$3 as du,React as dv,_arrayPush as dw,isArray_1 as dx,_castPath as dy,_isIndex as dz,_objectWithoutPropertiesLoose$2 as e,Information as e$,take as e0,CurlyBraces as e1,UnknownDocument as e2,VariableSizeList as e3,sdkEventManager as e4,SdkEvents as e5,SdkError as e6,distributionTypes as e7,EngineClassIcons as e8,Mode2 as e9,isSymbol_1 as eA,_baseMap as eB,_baseUnary as eC,_baseFindIndex as eD,_Set as eE,_setToArray as eF,_SetCache as eG,_cacheHas as eH,img$Q as eI,img$P as eJ,img$1y as eK,img$1x as eL,img$1w as eM,img$N as eN,img$1A as eO,img$M as eP,authSelector as eQ,ListItemAvatar$1 as eR,emphasize as eS,useSlotProps as eT,_arraySome as eU,EntityType as eV,generateState as eW,injectIntl as eX,ErrorBoundary$1 as eY,EPermissionAction as eZ,Process as e_,EngineModeIcons as ea,DeploymentModelIcons as eb,markdown as ec,guid as ed,EditList as ee,ButtonBase$1 as ef,_Symbol as eg,isArguments_1 as eh,_baseEach as ei,_arrayFilter as ej,_getNative as ek,eq_1 as el,_root as em,_Uint8Array as en,_overArg as eo,_isPrototype as ep,isObjectLike_1 as eq,_baseGetTag as er,_arrayLikeKeys as es,isBuffer$5 as et,isFunction_1 as eu,isTypedArray_1 as ev,_Stack as ew,_baseFor as ex,identity_1 as ey,_isIterateeCall as ez,clsx as f,selectOrgId as f$,Download as f0,NewFolder as f1,SpecialFolder as f2,User as f3,Source as f4,Search$2 as f5,selectIsOLPEnabled as f6,ListItemSecondaryAction$1 as f7,getLibraryModule as f8,cmsUrlSelector as f9,convertEntityToAuthResource as fA,AutoSizer as fB,InfiniteLoader as fC,FixedSizeList as fD,selectUserOrgEdgeVersion as fE,EditAttributes as fF,imageUpload as fG,gqlIntrospection as fH,ProcessingDetail as fI,img$y as fJ,img$A as fK,img$6 as fL,FilterRemove as fM,AlarmTwo as fN,tableInfiniteScroll as fO,CheckCircle as fP,FolderOpen as fQ,Voice as fR,useDoubleClick as fS,FolderFilled as fT,Time as fU,img$B as fV,Undefined as fW,PodcastSource as fX,YoutubeSource as fY,TVSource as fZ,RadioSource as f_,debounce_1 as fa,SearchStructuredData as fb,Grow$1 as fc,configSelector as fd,index as fe,betaFeaturesSelector as ff,actions as fg,hasPermission as fh,UserAddFilled as fi,MenuList$1 as fj,MoveFolder as fk,EAuthResourceType as fl,Slide$1 as fm,img$c as fn,selectApiConfigs$2 as fo,selectPanelByPanelName as fp,FullScreenContainer as fq,EngineCategoryIcons as fr,isPermissionLoading as fs,Settings$2 as ft,Hamburger as fu,List as fv,enginesFilter as fw,panelsSelector as fx,Badge$1 as fy,MoreHor as fz,generateUtilityClass as g,_castFunction as g$,navSectionStyles as g0,selectIsUserAdmin as g1,AvatarGroup$1 as g2,index$1 as g3,ErrorState$2 as g4,Stepper$1 as g5,StepConnector$1 as g6,Step$1 as g7,StepLabel$1 as g8,isEqual_1 as g9,getOrganizationPanelModule as gA,Lock2 as gB,EApplicationConfigLevel as gC,NoApps as gD,EApplicationConfigType as gE,green$1 as gF,md5 as gG,selectIsSuperAdmin as gH,organizations_selector as gI,actions$5 as gJ,AddUser as gK,selectors as gL,LibraryDropdown as gM,Remove as gN,Save as gO,Input$3 as gP,getElement as gQ,client$1 as gR,Copy as gS,ArrowForward as gT,Modal$1 as gU,_getSymbols as gV,stubArray_1 as gW,_baseGetAllKeys as gX,_getTag as gY,_nodeUtil as gZ,_getAllKeys as g_,NullState$2 as ga,Group as gb,PermissionChangedAction as gc,Lock as gd,useOrganizationPermissions as ge,EAuthSubResourceType as gf,AddGroup as gg,initialConfigSelector as gh,EMessageTypes as gi,errors as gj,ConfirmationModal as gk,panelComponents as gl,EnumHelpers as gm,formatBytes as gn,NotInterested as go,mountPanelForResponse$1 as gp,default_1$a as gq,tableStyles as gr,ArrowDown as gs,ArrowUp as gt,useInterval as gu,Iam as gv,safeFormatMessage as gw,contextMenuStyles as gx,Users as gy,SecurityGroup as gz,composeClasses as h,aiwareEvents as h$,Slider$1 as h0,getDefaultExportFromCjs as h1,Article as h2,Task as h3,View as h4,isNumber_1 as h5,Check as h6,EngineIconsRenderer as h7,FormattedRelativeTime$1 as h8,BottomQueue as h9,cancel as hA,FlowTemplate as hB,Node as hC,Palette as hD,FlowCenter2 as hE,ArrowBack as hF,Schema$1 as hG,truncatedString as hH,img$1 as hI,img$x as hJ,AutomateNode as hK,Clear as hL,ExpandLess as hM,ExpandMore as hN,registry as hO,registerComponent as hP,AvailableWidgets as hQ,updatePanelMicroFrontendProps as hR,setData as hS,root as hT,mountWidget as hU,unmountWidget as hV,mountPanel as hW,unmountPanel as hX,hidePanel as hY,unmountAllPanel as hZ,init as h_,TopQueue as ha,Pause as hb,Cancel as hc,Folder as hd,Hidden as he,dateRangeFilter as hf,statusFilter as hg,TableLoadingState as hh,setDuration as hi,resetDuration as hj,ButtonGroupContext$1 as hk,useSyncExternalStoreExports as hl,Engines as hm,EngineComponentLoader as hn,EngineFieldType as ho,characterCountTextField as hp,createStack as hq,tabsClasses$1 as hr,Packages as hs,Resources$1 as ht,selectUserCanCreatePackage as hu,PackagesAvatar as hv,actionChannel as hw,cancelled as hx,flush$4 as hy,tableSearchComponents as hz,createSvgIcon$1 as i,jsxRuntime as j,interopRequireDefault as k,createSlice as l,makeStyles as m,Route as n,useDispatch as o,useSelector as p,authStatusSelector as q,react$1 as r,store$5 as s,authContextSelector as t,useThemeProps as u,AuthContext as v,lodash as w,Alert$1 as x,useNavigate as y,devErrorLogger as z};
|
|
1531
|
+
`,l={entityId:t,entityType:e};try{a=yield baseGraphQLApi({query:s,operationName:n,variables:l,graphEndpoint:u,token:d})}catch(e){i=!0}if(a.errors){if(0===(o=a.errors.filter(({message:e})=>e.includes(' does not exist in "AuthPermissionType" enum.')).map(({message:e})=>{var t='Value "',n=e.substring(t.length).indexOf('"');return e.substring(t.length,t.length+n)})).length)throw i=!0,a={},new Error((null==(f=(a.errors||[])[0])?void 0:f.message)||"Error")}else i=!0}const c=a.data||{};return Object.keys(c).map(e=>{var t=e.split("__");return 3===t.length?{fetchedTargetEntityType:t[0],fetchedTargetGroupType:t[1],fetchedTargetAction:t[2],hasPermission:c[e][0].hasPermission}:{fetchedTargetEntityType:t[0],fetchedTargetAction:t[1],hasPermission:c[e][0].hasPermission}}).reduce((e,t)=>{var n=t.fetchedTargetGroupType||t.fetchedTargetEntityType;return t.hasPermission&&(e[n]||(e[n]={}),e[n][t.fetchedTargetAction]=t.hasPermission),e},{})})}function getMyRights(t){return __awaiter(this,void 0,void 0,function*(){var e="getMyRights";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query getMyRights {\n myRights {\n operations\n }\n }\n ",operationName:e},t))).myRights.operations})}const selectPermissionsByEntity=(t,n,r)=>e=>{return t&&n&&(e=e[namespace].permissionsByObject[t])&&e[n]?e[n][r||t]:void 0},selectMyRights=e=>e[namespace].rights;var index=Object.freeze({__proto__:null,selectPermissionsByEntity:selectPermissionsByEntity,selectMyRights:selectMyRights});function*fetchObjectPermissions(t){var{entityId:t,entityType:n}=t.payload,i=yield select(selectApiConfigs$2),e=yield select(graphEndpointSelector),o=yield select(sessionTokenSelector),a=yield select(selectIsOLPEnabled),r=yield select(selectPermissionsByEntity(n,t));if(!r||"success"!==r.status&&"pending"!==r.status){yield put(actions.fetchObjectPermissionsStarted({entityId:t,entityType:n}));try{let r={};if(a)r=yield call$j(getObjectPermissions,e,o,{entityType:n,entityId:t});else{let e=yield select(selectMyRights);if("success"!==e.status&&"pending"!==e.status){yield put(actions.fetchMyRightsStarted);try{var s=yield call$j(getMyRights,i);yield put(actions.fetchMyRightsSucceeded(s)),e=yield select(selectMyRights)}catch(e){throw yield put(actions.fetchMyRightsFailed),e}}else"pending"===e.status&&(yield take([actions.fetchMyRightsFailed,actions.fetchMyRightsSucceeded]),e=yield select(selectMyRights));const l=e["myRights"];getPermissionTypesToQuery(n).forEach(n=>{var{action:e,resource:t}=n.targetActions.reduce((e,t)=>(e.action[t.targetAction]=convertPermissionsToRights(t.resource||n.targetObjectType,t.targetAction,l),e.resource=t.resource,e),{action:{}});r[t||n.targetObjectType]=e})}yield put(actions.fetchObjectPermissionsSucceeded({entityId:t,entityType:n,permissions:r}))}catch(e){actions.fetchObjectPermissionsFailed({entityId:t,entityType:n})}}}function*watchPermissionsStart(){yield takeEvery$1(actions.fetchObjectPermissionsStart.type,fetchObjectPermissions)}function*rootSaga(){yield all$2([watchPermissionsStart()])}function getPermissionsModule(){return{id:namespace,reducerMap:{[namespace]:permissionsReducer},sagas:[rootSaga],initialActions:[]}}const useOrganizationPermissions=e=>{const t=react$1.exports.useRef(),n=useDispatch(),r=null==(o=useSelector(userSelector$2).organization)?void 0:o.organizationId,i=useSelector(selectPermissionsByEntity(EAuthResourceType.Organization,String(r),e));react$1.exports.useEffect(()=>{!r||i&&"failure"!==i.status&&"idle"!==i.status&&t.current===r||(t.current=r,n(actions.fetchObjectPermissionsStart({entityType:EAuthResourceType.Organization,entityId:String(r)})))},[n,r,i]);var o=react$1.exports.useCallback(e=>{return!isPermissionLoading(i)&&hasPermission(i,e)},[i]);return{permissions:i,hasPermission:o}},rateLimiter=new RateLimiter,checkAndDecodeBase64String=t=>{if(null==t||!t.trim())return t;try{return window.btoa(window.atob(t))==t?window.atob(t):t}catch(e){return t}};function SnackbarRenderer(){return jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$5},{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getSnackbarModule()]},{children:jsxRuntime.exports.jsx(CustomSnackbar,{})}))}))}store$5.addModules([getWidgetsModule(),getPanelsModule(registry,registryLookup),getDataModule(),getConfigModule(),getAuthModule(),getPermissionsModule()]);let hasLoaded=!1;const AppBarPreLoader=()=>{var e=useSelector(authSelector);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&!hasLoaded&&(hasLoaded=!0,setTimeout(()=>{store$5.addModules([getAppbarPanelModule()])},0)),null};function ApplicationDialogPreLoader(){var e=useSelector(authSelector);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&hasLoaded?jsxRuntime.exports.jsx(ApplicationDialog,{}):null}const authHelpers={updateToken(e){e?store$5.dispatch(updateTokenRequest({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{store$5.dispatch(logout())},1e3)):store$5.dispatch(logout())},reportAppActivity(e){rateLimiter.checkIfCanCall(e)&&store$5.dispatch(updateActivityStatus$1())}};function PortalRenderer(){return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(SupportCenterPixel,{}),jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$5},{children:jsxRuntime.exports.jsx(AppBarPreLoader,{})}))]})}function ApplicationDialogRenderer(){return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$5},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(ApplicationDialogPreLoader,{})})}))})}const ThemeInitializer=()=>(useTheme(),null),root=getElement("aiWARE"),reactDOMroot=(root.classList.add("aiware-el"),client$1.createRoot(root)),mountWidget=("_auth"===window.name?handleImplicitRedirect(window.location.hash,window.opener):reactDOMroot.render(jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsxs(AIWareThemeProvider$1,{children:[jsxRuntime.exports.jsx(PortalRenderer,{}),jsxRuntime.exports.jsx(SnackbarRenderer,{}),jsxRuntime.exports.jsx(ApplicationDialogRenderer,{}),jsxRuntime.exports.jsx(ThemeInitializer,{})]})})),(e,t)=>{var n=getUniqueID(),{name:e,elementId:r,config:i}=e;return e&&r&&i||console.error("[aiwarejs-error]: `mountWidget` function should include all the following params: name, elementId, config"),store$5.dispatch(mountWidget$1({elementId:r,widgetName:e,widgetConfig:i,widgetId:n,onComplete:t})),n}),unmountWidget=e=>(store$5.dispatch(unmountWidget$1(e)),!0),mountPanel=(e,t)=>{const n=e.panelId||getUniqueID();var{microFrontend:e,panelConfig:r}=e;store$5.dispatch(mountPanel$1({microFrontend:e,panelId:n,panelConfig:r}));const i=[...(null==(e=null==r?void 0:r.header)?void 0:e.actions)||[],...(null==(e=null==r?void 0:r.footer)?void 0:e.actions)||[]].filter(e=>e.submit).map(e=>e.action);r={id:n,sagas:[function*(){yield takeEvery$1(i.map(e=>e.type),function*(){var e=(yield select(e=>e.data.find(e=>e.id===n)))["data"];t&&t(e)})}]};return store$5.addModule(r),n},unmountPanel=e=>(store$5.dispatch(unmountPanel$1(e)),!0),hidePanel=e=>(store$5.dispatch(hidePanel$1(e)),!0),unmountAllPanel=()=>{store$5.dispatch(unmountAllPanel$1(""))};function init(e,t){var n,e=validateConfig(e);e?(n=e["authToken"],n=checkAndDecodeBase64String(n||""),store$5.dispatch(getInitConfig(Object.assign(Object.assign({},e),{authToken:n,onComplete:t})))):console.error("@aiware/js initialization failed. Please pass valid configuration object.")}function helpCenter(){var e=new HelpCenter$2({actions:{setCustomKnowledgeBaseUrlAction:setCustomKnowledgeBaseUrl,setCustomDocsUrlAction:setCustomDocsUrl,updateSelectedTabAction:updateSelectedTab}});return{openKnowledgeBasePanel:e.openKnowledgeBasePanel.bind(e),openDocsPanel:e.openDocsPanel.bind(e)}}function dataCenter(){var e=new DataCenter$1;return{openImporterPanel:e.openImporterPanel.bind(e)}}function handleEvents(){function n(e){if(!e||"string"!=typeof e)throw new SdkError("Please provide a valid event name!");if(!SdkEvents[e])throw new SdkError("Unknown event: "+e)}return{on:function(e,t){n(e),sdkEventManager.on.call(sdkEventManager,e,t)},off:function(e){n(e),sdkEventManager.off.call(sdkEventManager,e)}}}const mountPanelForResponse=e=>mountPanelForResponse$1(e,store$5),aiwareEvents=handleEvents();window&&(window.aiWare_initTesting=()=>{window.aiWare_store=store$5,window.aiWare_theme={darkTheme:darkTheme$1,lightTheme:lightTheme$1}},window.aiware={init:init,auth:authHelpers,helpCenter:helpCenter(),dataCenter:dataCenter(),on:aiwareEvents.on,off:aiwareEvents.off,hidePanel:hidePanel,unmountPanel:unmountPanel,store:store$5,registry:registry,registerComponent:registerComponent,AvailableWidgets:AvailableWidgets,mountPanelAction:mountPanel$1,unmountPanelAction:unmountPanel$1,hidePanelAction:hidePanel$1,updatePanelMicroFrontendPropsAction:updatePanelMicroFrontendProps,setData:setData,mountWidget:mountWidget,mountPanel:mountPanel,mountPanelForResponse:mountPanelForResponse,unmountWidget:unmountWidget,version:"sdk_release_version",commit:"55d751f4f",releaseDate:"2023-10-03T14:00:50.471Z"});export{IconButton$1 as $,AIWareIntlProvider as A,Box$1 as B,useLocation as C,DynamicModuleLoader as D,Button$1 as E,FormattedMessage$1 as F,useSearchParams as G,img$5 as H,StyledEngineProvider as I,Fade$1 as J,classNames as K,LinearProgress$1 as L,getAppbarPanelModule as M,LoadingButton$1 as N,authErrorMessage as O,Provider$2 as P,Grid$1 as Q,Routes as R,Switch$1 as S,Typography$1 as T,FormControl$1 as U,TextField$1 as V,resetPasswordRequest as W,InputLabel$1 as X,OutlinedInput$1 as Y,InputAdornment$1 as Z,_extends$5 as _,generateUtilityClasses as a,img$k as a$,Select$1 as a0,Location as a1,MenuItem$1 as a2,Divider$1 as a3,Popover$1 as a4,applicationSelector as a5,setUser as a6,logoutUser$1 as a7,all$2 as a8,Stack$4 as a9,createBox$1 as aA,createAction as aB,createReducer as aC,ENGINE_OWNER_TYPES as aD,ENGINE_FILTER_TYPES as aE,preferredLanguageSelector as aF,baseUrlSelector as aG,rootApiSelector as aH,sessionTokenSelector as aI,graphEndpointSelector as aJ,controllerNodeRedImageSelector as aK,controllerUrlSelector as aL,automateControllerUrlSelector as aM,flowCenterDialogSelector as aN,automateUrlSelector as aO,Portal$1 as aP,flowCenterDialogReducer as aQ,List$2 as aR,ListItem$1 as aS,ListItemIcon$1 as aT,ListItemText$1 as aU,flowCenterDialogAction as aV,img$q as aW,img$r as aX,img$t as aY,img$u as aZ,Tooltip$1 as a_,CheckmarkFilled as aa,Bullet as ab,takeEvery$1 as ac,select as ad,call$j as ae,put as af,showMessage as ag,MessageSeverity as ah,createTheme$1 as ai,systemStyled as aj,useThemeProps$1 as ak,useId as al,useControlled$1 as am,usePreviousProps$1 as an,useEventCallback as ao,setRef as ap,inputClasses$1 as aq,inputBaseClasses$1 as ar,outlinedInputClasses$1 as as,filledInputClasses$1 as at,Popper$1 as au,alpha as av,ListSubheader$1 as aw,ClearIcon as ax,ArrowDropDownIcon as ay,Chip$1 as az,styled$1 as b,_setPrototypeOf$z as b$,img$J as b0,Skeleton$1 as b1,takeLatest$1 as b2,fetchAllTags as b3,fetchFlows as b4,fetchTemplateGallery as b5,isRevisionsExistOnServerRequest as b6,FormLabel$1 as b7,default_1$e as b8,FormGroup$1 as b9,img$F as bA,DialogTitle$1 as bB,DialogContent$1 as bC,DialogActions$1 as bD,Snackbar$1 as bE,default_1$6 as bF,Search$1 as bG,img$l as bH,img$n as bI,img$X as bJ,Tabs$2 as bK,Tab$2 as bL,deleteEngine as bM,fetchEngine as bN,img$m as bO,AIWareFormatMessage as bP,FormattedDate as bQ,fetchVeritoneGraphQLApi as bR,useTheme as bS,KeyboardArrowRight as bT,KeyboardArrowLeft as bU,InputUnstyled as bV,isHostComponent as bW,getDefaultExportFromNamespaceIfNotNamed as bX,commonjsRequire as bY,_typeof$D as bZ,_assertThisInitialized$x as b_,FormControlLabel$1 as ba,Checkbox$1 as bb,fetchTemplateGalleryFallback as bc,Card$1 as bd,CardContent$1 as be,img$o as bf,CardActions$1 as bg,flowStyles as bh,NoResults as bi,CircularProgress$1 as bj,img$e as bk,Dialog$1 as bl,setApiEndpoint as bm,TableContainer$1 as bn,Table$1 as bo,TableHead$1 as bp,TableRow$1 as bq,TableCell$1 as br,TableSortLabel$1 as bs,TableBody$1 as bt,img$j as bu,default_1 as bv,ClickAwayListener as bw,img$v as bx,img$s as by,img$T as bz,Paper$1 as c,TabPanel as c$,reactDom as c0,Transition$1 as c1,_defineProperty$x as c2,__awaiter$e as c3,__generator$2 as c4,__spread as c5,React5 as c6,PropTypes as c7,TransitionGroup$1 as c8,connect$1 as c9,default_1$9 as cA,Controller as cB,FormHelperText$2 as cC,img$i as cD,ThemeProvider as cE,lightTheme$1 as cF,CssBaseline as cG,Hide as cH,has_1 as cI,Radio$2 as cJ,createSvgIcon$2 as cK,_createCompounder as cL,_toPropertyKey as cM,_inheritsLoose$2 as cN,hoistNonReactStatics_cjs as cO,commonjsGlobal$2 as cP,combineReducers as cQ,createSelector$1 as cR,fork as cS,statusPill as cT,AIWareThemeProvider$1 as cU,LocalizationProvider as cV,AdapterDateFns as cW,CalendarPicker as cX,Close$1 as cY,FullscreenExit as cZ,Fullscreen as c_,Bookmark as ca,EngineFlagIcons as cb,createAsyncThunk as cc,withStyles as cd,getConfigModule as ce,getAuthModule as cf,getSnackbarModule as cg,AIWareCacheProvider as ch,img$U as ci,img$g as cj,img$f as ck,isEmpty_1 as cl,find_1 as cm,Backdrop$1 as cn,getDefaultMiddleware as co,isNil_1 as cp,useForm as cq,UpDown as cr,Icon$1 as cs,get_1 as ct,map_1 as cu,keys_1 as cv,RadioGroup$1 as cw,Avatar$1 as cx,img$z as cy,baseGraphQLApi as cz,capitalize$2 as d,findIndex_1 as d$,ReactMarkdown as d0,default_1$8 as d1,unmountPanel$1 as d2,AvailableComponents as d3,delay$1 as d4,hidePanel$1 as d5,mountPanel$1 as d6,DialogContentText$1 as d7,userSelector$2 as d8,MoreVert$1 as d9,isObject_1 as dA,_toKey as dB,_baseIteratee as dC,_baseToString as dD,_baseTrim as dE,_castSlice as dF,_stringToArray as dG,toString_1 as dH,upperFirst_1 as dI,_arrayMap as dJ,isArrayLike_1 as dK,isString_1 as dL,toInteger_1 as dM,_baseGet as dN,_baseSlice as dO,channel$2 as dP,useFormContext as dQ,useIntl as dR,useFieldArray as dS,VideoCamera as dT,Image$1 as dU,Sound as dV,Description as dW,toNumber_1 as dX,FormProvider as dY,ProgressStepper as dZ,size_1 as d_,Menu$1 as da,Edit as db,Upload as dc,Delete$1 as dd,CustomTabs as de,useBackupImg as df,img$1C as dg,validate as dh,img$19 as di,baseGraphQLApiWithError as dj,VerifiedFilled as dk,Add as dl,ExpandLess$1 as dm,ExpandMore$1 as dn,Collapse$1 as dp,Filter$1 as dq,DynamicTable as dr,useTheme$3 as ds,getThemeProps as dt,useEnhancedEffect$3 as du,React as dv,_arrayPush as dw,isArray_1 as dx,_castPath as dy,_isIndex as dz,_objectWithoutPropertiesLoose$2 as e,Information as e$,take as e0,CurlyBraces as e1,UnknownDocument as e2,VariableSizeList as e3,sdkEventManager as e4,SdkEvents as e5,SdkError as e6,distributionTypes as e7,EngineClassIcons as e8,Mode2 as e9,isSymbol_1 as eA,_baseMap as eB,_baseUnary as eC,_baseFindIndex as eD,_Set as eE,_setToArray as eF,_SetCache as eG,_cacheHas as eH,img$Q as eI,img$P as eJ,img$1y as eK,img$1x as eL,img$1w as eM,img$N as eN,img$1A as eO,img$M as eP,authSelector as eQ,ListItemAvatar$1 as eR,emphasize as eS,useSlotProps as eT,_arraySome as eU,EntityType as eV,generateState as eW,injectIntl as eX,ErrorBoundary$1 as eY,EPermissionAction as eZ,Process as e_,EngineModeIcons as ea,DeploymentModelIcons as eb,markdown as ec,guid as ed,EditList as ee,ButtonBase$1 as ef,_Symbol as eg,isArguments_1 as eh,_baseEach as ei,_arrayFilter as ej,_getNative as ek,eq_1 as el,_root as em,_Uint8Array as en,_overArg as eo,_isPrototype as ep,isObjectLike_1 as eq,_baseGetTag as er,_arrayLikeKeys as es,isBuffer$5 as et,isFunction_1 as eu,isTypedArray_1 as ev,_Stack as ew,_baseFor as ex,identity_1 as ey,_isIterateeCall as ez,clsx as f,selectOrgId as f$,Download as f0,NewFolder as f1,SpecialFolder as f2,User as f3,Source as f4,Search$2 as f5,selectIsOLPEnabled as f6,ListItemSecondaryAction$1 as f7,getLibraryModule as f8,cmsUrlSelector as f9,convertEntityToAuthResource as fA,AutoSizer as fB,InfiniteLoader as fC,FixedSizeList as fD,selectUserOrgEdgeVersion as fE,EditAttributes as fF,imageUpload as fG,gqlIntrospection as fH,ProcessingDetail as fI,img$y as fJ,img$A as fK,img$6 as fL,FilterRemove as fM,AlarmTwo as fN,tableInfiniteScroll as fO,CheckCircle as fP,FolderOpen as fQ,Voice as fR,useDoubleClick as fS,FolderFilled as fT,Time as fU,img$B as fV,Undefined as fW,PodcastSource as fX,YoutubeSource as fY,TVSource as fZ,RadioSource as f_,debounce_1 as fa,SearchStructuredData as fb,Grow$1 as fc,configSelector as fd,index as fe,betaFeaturesSelector as ff,actions as fg,hasPermission as fh,UserAddFilled as fi,MenuList$1 as fj,MoveFolder as fk,EAuthResourceType as fl,Slide$1 as fm,img$c as fn,selectApiConfigs$2 as fo,selectPanelByPanelName as fp,FullScreenContainer as fq,EngineCategoryIcons as fr,isPermissionLoading as fs,Settings$2 as ft,Hamburger as fu,List as fv,enginesFilter as fw,panelsSelector as fx,Badge$1 as fy,MoreHor as fz,generateUtilityClass as g,_castFunction as g$,navSectionStyles as g0,selectIsUserAdmin as g1,AvatarGroup$1 as g2,index$1 as g3,ErrorState$2 as g4,Stepper$1 as g5,StepConnector$1 as g6,Step$1 as g7,StepLabel$1 as g8,isEqual_1 as g9,getOrganizationPanelModule as gA,Lock2 as gB,EApplicationConfigLevel as gC,NoApps as gD,EApplicationConfigType as gE,green$1 as gF,md5 as gG,selectIsSuperAdmin as gH,organizations_selector as gI,actions$5 as gJ,AddUser as gK,selectors as gL,LibraryDropdown as gM,Remove as gN,Save as gO,Input$3 as gP,getElement as gQ,client$1 as gR,Copy as gS,ArrowForward as gT,Modal$1 as gU,_getSymbols as gV,stubArray_1 as gW,_baseGetAllKeys as gX,_getTag as gY,_nodeUtil as gZ,_getAllKeys as g_,NullState$2 as ga,Group as gb,PermissionChangedAction as gc,Lock as gd,useOrganizationPermissions as ge,EAuthSubResourceType as gf,AddGroup as gg,initialConfigSelector as gh,EMessageTypes as gi,errors as gj,ConfirmationModal as gk,panelComponents as gl,EnumHelpers as gm,formatBytes as gn,NotInterested as go,mountPanelForResponse$1 as gp,default_1$a as gq,tableStyles as gr,ArrowDown as gs,ArrowUp as gt,useInterval as gu,Iam as gv,safeFormatMessage as gw,contextMenuStyles as gx,Users as gy,SecurityGroup as gz,composeClasses as h,aiwareEvents as h$,Slider$1 as h0,getDefaultExportFromCjs as h1,Article as h2,Task as h3,View as h4,isNumber_1 as h5,Check as h6,EngineIconsRenderer as h7,FormattedRelativeTime$1 as h8,BottomQueue as h9,cancel as hA,FlowTemplate as hB,Node as hC,Palette as hD,FlowCenter2 as hE,ArrowBack as hF,Schema$1 as hG,truncatedString as hH,img$1 as hI,img$x as hJ,AutomateNode as hK,Clear as hL,ExpandLess as hM,ExpandMore as hN,registry as hO,registerComponent as hP,AvailableWidgets as hQ,updatePanelMicroFrontendProps as hR,setData as hS,root as hT,mountWidget as hU,unmountWidget as hV,mountPanel as hW,unmountPanel as hX,hidePanel as hY,unmountAllPanel as hZ,init as h_,TopQueue as ha,Pause as hb,Cancel as hc,Folder as hd,Hidden as he,dateRangeFilter as hf,statusFilter as hg,TableLoadingState as hh,setDuration as hi,resetDuration as hj,ButtonGroupContext$1 as hk,useSyncExternalStoreExports as hl,Engines as hm,EngineComponentLoader as hn,EngineFieldType as ho,characterCountTextField as hp,createStack as hq,tabsClasses$1 as hr,Packages as hs,Resources$1 as ht,selectUserCanCreatePackage as hu,PackagesAvatar as hv,actionChannel as hw,cancelled as hx,flush$4 as hy,tableSearchComponents as hz,createSvgIcon$1 as i,jsxRuntime as j,interopRequireDefault as k,createSlice as l,makeStyles as m,Route as n,useDispatch as o,useSelector as p,authStatusSelector as q,react$1 as r,store$5 as s,authContextSelector as t,useThemeProps as u,AuthContext as v,lodash as w,Alert$1 as x,useNavigate as y,devErrorLogger as z};
|