asma-core-ui 2.19.101 → 2.19.103
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/dist/asma-core-ui.es.js +2 -2
- package/package.json +1 -1
package/dist/asma-core-ui.es.js
CHANGED
|
@@ -192,13 +192,13 @@ function(e,t){const n=de(e,t);return"production"!==process.env.NODE_ENV?(...t)=>
|
|
|
192
192
|
animation: ${0} 1.4s linear infinite;
|
|
193
193
|
`),fC))),gC=yp("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),bC=yp("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Ot(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>Ie({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&ae(cC||(cC=dC`
|
|
194
194
|
animation: ${0} 1.4s ease-in-out infinite;
|
|
195
|
-
`),hC))),vC=e.forwardRef((function(e,t){const n=wp({props:e,name:"MuiCircularProgress"}),{className:o,color:r="primary",disableShrink:i=!1,size:l=40,style:a,thickness:s=3.6,value:u=0,variant:c="indeterminate"}=n,d=De(n,lC),p=Ie({},n,{color:r,disableShrink:i,size:l,thickness:s,value:u,variant:c}),f=(e=>{const{classes:t,variant:n,color:o,disableShrink:r}=e;return en({root:["root",n,`color${Ot(o)}`],svg:["svg"],circle:["circle",`circle${Ot(n)}`,r&&"circleDisableShrink"]},iC,t)})(p),h={},m={},g={};if("determinate"===c){const e=2*Math.PI*((pC-s)/2);h.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(u),h.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,m.transform="rotate(-90deg)"}return Me.jsx(mC,Ie({className:vo(f.root,o),style:Ie({width:l,height:l},m,a),ownerState:p,ref:t,role:"progressbar"},g,d,{children:Me.jsx(gC,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:Me.jsx(bC,{className:f.circle,style:h,ownerState:p,cx:pC,cy:pC,r:(pC-s)/2,fill:"none",strokeWidth:s})})}))}));"production"!==process.env.NODE_ENV&&(vC.propTypes={classes:oe.object,className:oe.string,color:oe.oneOfType([oe.oneOf(["inherit","primary","secondary","error","info","success","warning"]),oe.string]),disableShrink:nt(oe.bool,(e=>e.disableShrink&&e.variant&&"indeterminate"!==e.variant?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null)),size:oe.oneOfType([oe.number,oe.string]),style:oe.object,sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object]),thickness:oe.number,value:oe.number,variant:oe.oneOf(["determinate","indeterminate"])});const yC=vC,wC=e.forwardRef((function(e,t){return Me.jsx(am,Ie({ref:t},e,{children:Me.jsx(yC,{})}))}));"production"!==process.env.NODE_ENV&&(wC.propTypes={sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object])});const xC=e.forwardRef((function(e,t){const n=va().current.getLocaleText("noRowsLabel");return Me.jsx(am,Ie({ref:t},e,{children:n}))}));"production"!==process.env.NODE_ENV&&(xC.propTypes={sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object])});const CC=e.createContext();"production"!==process.env.NODE_ENV&&(CC.displayName="TableContext");const OC=CC,kC=e.createContext();"production"!==process.env.NODE_ENV&&(kC.displayName="Tablelvl2Context");const SC=kC;function EC(e){return ln("MuiTableCell",e)}const RC=an("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),TC=["align","className","component","padding","scope","size","sortDirection","variant"],NC=yp("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Ot(n.size)}`],"normal"!==n.padding&&t[`padding${Ot(n.padding)}`],"inherit"!==n.align&&t[`align${Ot(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Ie({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?Fo(Io(e.palette.divider,1),.88):Do(Io(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${RC.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}))),PC=e.forwardRef((function(t,n){const o=wp({props:t,name:"MuiTableCell"}),{align:r="inherit",className:i,component:l,padding:a,scope:s,size:u,sortDirection:c,variant:d}=o,p=De(o,TC),f=e.useContext(OC),h=e.useContext(SC),m=h&&"head"===h.variant;let g;g=l||(m?"th":"td");let b=s;"td"===g?b=void 0:!b&&m&&(b="col");const v=d||h&&h.variant,y=Ie({},o,{align:r,component:g,padding:a||(f&&f.padding?f.padding:"normal"),size:u||(f&&f.size?f.size:"medium"),sortDirection:c,stickyHeader:"head"===v&&f&&f.stickyHeader,variant:v}),w=(e=>{const{classes:t,variant:n,align:o,padding:r,size:i,stickyHeader:l}=e;return en({root:["root",n,l&&"stickyHeader","inherit"!==o&&`align${Ot(o)}`,"normal"!==r&&`padding${Ot(r)}`,`size${Ot(i)}`]},EC,t)})(y);let x=null;return c&&(x="asc"===c?"ascending":"descending"),Me.jsx(NC,Ie({as:g,ref:n,className:vo(w.root,i),"aria-sort":x,scope:b,ownerState:y},p))}));"production"!==process.env.NODE_ENV&&(PC.propTypes={align:oe.oneOf(["center","inherit","justify","left","right"]),children:oe.node,classes:oe.object,className:oe.string,component:oe.elementType,padding:oe.oneOf(["checkbox","none","normal"]),scope:oe.string,size:oe.oneOfType([oe.oneOf(["medium","small"]),oe.string]),sortDirection:oe.oneOf(["asc","desc",!1]),sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object]),variant:oe.oneOfType([oe.oneOf(["body","footer","head"]),oe.string])});const MC=PC;function jC(e){return ln("MuiToolbar",e)}an("MuiToolbar",["root","gutters","regular","dense"]);const _C=["className","component","disableGutters","variant"],IC=yp("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((({theme:e,ownerState:t})=>Ie({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===t.variant&&{minHeight:48})),(({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar)),DC=e.forwardRef((function(e,t){const n=wp({props:e,name:"MuiToolbar"}),{className:o,component:r="div",disableGutters:i=!1,variant:l="regular"}=n,a=De(n,_C),s=Ie({},n,{component:r,disableGutters:i,variant:l}),u=(e=>{const{classes:t,disableGutters:n,variant:o}=e;return en({root:["root",!n&&"gutters",o]},jC,t)})(s);return Me.jsx(IC,Ie({as:r,className:vo(u.root,o),ref:t,ownerState:s},a))}));"production"!==process.env.NODE_ENV&&(DC.propTypes={children:oe.node,classes:oe.object,className:oe.string,component:oe.elementType,disableGutters:oe.bool,sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object]),variant:oe.oneOfType([oe.oneOf(["dense","regular"]),oe.string])});const FC=DC,AC=Fg(Me.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),LC=Fg(Me.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),VC=Fg(Me.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),$C=Fg(Me.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage");var zC,qC,HC,BC,UC,WC,GC,KC;const YC=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],ZC=e.forwardRef((function(e,t){const{backIconButtonProps:n,count:o,getItemAriaLabel:r,nextIconButtonProps:i,onPageChange:l,page:a,rowsPerPage:s,showFirstButton:u,showLastButton:c}=e,d=De(e,YC),p=mr();return Me.jsxs("div",Ie({ref:t},d,{children:[u&&Me.jsx(Rb,{onClick:e=>{l(e,0)},disabled:0===a,"aria-label":r("first",a),title:r("first",a),children:"rtl"===p.direction?zC||(zC=Me.jsx(VC,{})):qC||(qC=Me.jsx($C,{}))}),Me.jsx(Rb,Ie({onClick:e=>{l(e,a-1)},disabled:0===a,color:"inherit","aria-label":r("previous",a),title:r("previous",a)},n,{children:"rtl"===p.direction?HC||(HC=Me.jsx(LC,{})):BC||(BC=Me.jsx(AC,{}))})),Me.jsx(Rb,Ie({onClick:e=>{l(e,a+1)},disabled:-1!==o&&a>=Math.ceil(o/s)-1,color:"inherit","aria-label":r("next",a),title:r("next",a)},i,{children:"rtl"===p.direction?UC||(UC=Me.jsx(AC,{})):WC||(WC=Me.jsx(LC,{}))})),c&&Me.jsx(Rb,{onClick:e=>{l(e,Math.max(0,Math.ceil(o/s)-1))},disabled:a>=Math.ceil(o/s)-1,"aria-label":r("last",a),title:r("last",a),children:"rtl"===p.direction?GC||(GC=Me.jsx($C,{})):KC||(KC=Me.jsx(VC,{}))})]}))}));"production"!==process.env.NODE_ENV&&(ZC.propTypes={backIconButtonProps:oe.object,count:oe.number.isRequired,getItemAriaLabel:oe.func.isRequired,nextIconButtonProps:oe.object,onPageChange:oe.func.isRequired,page:oe.number.isRequired,rowsPerPage:oe.number.isRequired,showFirstButton:oe.bool.isRequired,showLastButton:oe.bool.isRequired});const XC=ZC;function QC(e){return ln("MuiTablePagination",e)}const JC=an("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var eO;const tO=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],nO=yp(MC,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),oO=yp(FC,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>Ie({[`& .${JC.actions}`]:t.actions},t.toolbar)})((({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${JC.actions}`]:{flexShrink:0,marginLeft:20}}))),rO=yp("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),iO=yp("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})((({theme:e})=>Ie({},e.typography.body2,{flexShrink:0}))),lO=yp(Bx,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>Ie({[`& .${JC.selectIcon}`]:t.selectIcon,[`& .${JC.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${JC.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),aO=yp(Ih,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),sO=yp("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})((({theme:e})=>Ie({},e.typography.body2,{flexShrink:0})));function uO({from:e,to:t,count:n}){return`${e}–${t} of ${-1!==n?n:`more than ${t}`}`}function cO(e){return`Go to ${e} page`}const dO=e.forwardRef((function(e,t){const n=wp({props:e,name:"MuiTablePagination"}),{ActionsComponent:o=XC,backIconButtonProps:r,className:l,colSpan:a,component:s=MC,count:u,getItemAriaLabel:c=cO,labelDisplayedRows:d=uO,labelRowsPerPage:p="Rows per page:",nextIconButtonProps:f,onPageChange:h,onRowsPerPageChange:m,page:g,rowsPerPage:b,rowsPerPageOptions:v=[10,25,50,100],SelectProps:y={},showFirstButton:w=!1,showLastButton:x=!1}=n,C=De(n,tO),O=n,k=(e=>{const{classes:t}=e;return en({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},QC,t)})(O),S=y.native?"option":aO;let E;(s===MC||"td"===s)&&(E=a||1e3);const R=_t(y.id),T=_t(y.labelId);return Me.jsx(nO,Ie({colSpan:E,ref:t,as:s,ownerState:O,className:vo(k.root,l)},C,{children:Me.jsxs(oO,{className:k.toolbar,children:[Me.jsx(rO,{className:k.spacer}),v.length>1&&Me.jsx(iO,{className:k.selectLabel,id:T,children:p}),v.length>1&&Me.jsx(lO,Ie({variant:"standard"},!y.variant&&{input:eO||(eO=Me.jsx(_p,{}))},{value:b,onChange:m,id:R,labelId:T},y,{classes:Ie({},y.classes,{root:vo(k.input,k.selectRoot,(y.classes||{}).root),select:vo(k.select,(y.classes||{}).select),icon:vo(k.selectIcon,(y.classes||{}).icon)}),children:v.map((e=>i(S,Ie({},!Xu(S)&&{ownerState:O},{className:k.menuItem,key:e.label?e.label:e,value:e.value?e.value:e}),e.label?e.label:e)))})),Me.jsx(sO,{className:k.displayedRows,children:d({from:0===u?0:g*b+1,to:-1===u?(g+1)*b:-1===b?u:Math.min(u,(g+1)*b),count:-1===u?-1:u,page:g})}),Me.jsx(o,{className:k.actions,backIconButtonProps:r,count:u,nextIconButtonProps:f,onPageChange:h,page:g,rowsPerPage:b,showFirstButton:w,showLastButton:x,getItemAriaLabel:c})]})}))}));"production"!==process.env.NODE_ENV&&(dO.propTypes={ActionsComponent:oe.elementType,backIconButtonProps:oe.object,classes:oe.object,className:oe.string,colSpan:oe.number,component:oe.elementType,count:Qt.isRequired,getItemAriaLabel:oe.func,labelDisplayedRows:oe.func,labelRowsPerPage:oe.node,nextIconButtonProps:oe.object,onPageChange:oe.func.isRequired,onRowsPerPageChange:oe.func,page:nt(Qt.isRequired,(e=>{const{count:t,page:n,rowsPerPage:o}=e;if(-1===t)return null;const r=Math.max(0,Math.ceil(t/o)-1);return n<0||n>r?new Error(`MUI: The page prop of a TablePagination is out of range (0 to ${r}, but page is ${n}).`):null})),rowsPerPage:Qt.isRequired,rowsPerPageOptions:oe.arrayOf(oe.oneOfType([oe.number,oe.shape({label:oe.string.isRequired,value:oe.number.isRequired})]).isRequired),SelectProps:oe.object,showFirstButton:oe.bool,showLastButton:oe.bool,sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object])});const pO=yp(dO)((({theme:e})=>({[`& .${JC.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${JC.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}}))),fO=e.forwardRef((function(t,n){const o=va(),r=wa(),i=_a(o,tg),l=_a(o,Is),a=e.useMemo((()=>{var e,t;return null!=(e=null!=(t=r.rowCount)?t:l)?e:0}),[r.rowCount,l]),s=e.useMemo((()=>Math.floor(a/(i.pageSize||1))),[a,i.pageSize]),u=e.useCallback((e=>{const t=Number(e.target.value);o.current.setPageSize(t)}),[o]),c=e.useCallback(((e,t)=>{o.current.setPage(t)}),[o]),d=e=>{for(let t=0;t<r.pageSizeOptions.length;t+=1){const n=r.pageSizeOptions[t];if("number"==typeof n){if(n===e)return!0}else if(n.value===e)return!0}return!1};if("production"!==process.env.NODE_ENV){var p,f;const t=e.useRef(!1),n=null!=(p=null==(f=r.paginationModel)?void 0:f.pageSize)?p:i.pageSize;!t.current&&!r.autoPageSize&&!d(n)&&(console.warn([`MUI: The page size \`${i.pageSize}\` is not preset in the \`pageSizeOptions\``,"Add it to show the pagination select."].join("\n")),t.current=!0)}const h=d(i.pageSize)?r.pageSizeOptions:[];return Me.jsx(pO,Ie({ref:n,component:"div",count:a,page:i.page<=s?i.page:s,rowsPerPageOptions:h,rowsPerPage:i.pageSize,onPageChange:c,onRowsPerPageChange:u},o.current.getLocaleText("MuiTablePagination"),t))})),hO=(e,t)=>{let n,o;return t.pagination&&"client"===t.paginationMode?(o=rg(e),n=ig(e)):(n=Ts(e),o=0===n.length?null:{firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:o}},mO=(t,n)=>{const o=hO(t,n);return e.useMemo((()=>({rows:o.rows,range:o.range})),[o.rows,o.range])},gO={current:null};function bO(e){return e.isInternal=!0,e}function vO(e){return void 0!==e&&!0===e.isInternal}function yO(e){return bO(((t,n)=>{const o=e(t,n);return o&&(e=>o(e.value,e.row,n,gO.current))}))}function wO(e){return e.map((e=>Ie({},e,{getApplyFilterFn:yO(e.getApplyFilterFnV7),getApplyFilterFnV7:bO(e.getApplyFilterFnV7)})))}function xO(e){return bO(((t,n,o)=>{const r=e(t,n,o);return r&&(e=>r(e.value,e.row,n,o))}))}const CO=bO((e=>{if(!e)return null;const t=new RegExp(Bm(e),"i");return(e,n,o,r)=>{const i=r.current.getRowFormattedValue(n,o);return null!=i&&t.test(i.toString())}})),OO={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:(e,t)=>{const n=vg(e,t);return null!==n?n:"string"==typeof e?yg.compare(e.toString(),t.toString()):e-t},type:"string",align:"left",filterOperators:((e=!1)=>wO([{value:"contains",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),o=new RegExp(Bm(n),"i");return e=>null!=e&&o.test(String(e))},InputComponent:zv},{value:"equals",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),o=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return e=>null!=e&&0===o.compare(n,e.toString())},InputComponent:zv},{value:"startsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),o=new RegExp(`^${Bm(n)}.*$`,"i");return e=>null!=e&&o.test(e.toString())},InputComponent:zv},{value:"endsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),o=new RegExp(`.*${Bm(n)}$`,"i");return e=>null!=e&&o.test(e.toString())},InputComponent:zv},{value:"isEmpty",getApplyFilterFnV7:()=>e=>""===e||null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>""!==e&&null!=e,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:t=>{if(!Array.isArray(t.value)||0===t.value.length)return null;const n=e?t.value:t.value.map((e=>e.trim())),o=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return e=>null!=e&&n.some((t=>0===o.compare(t,e.toString()||"")))},InputComponent:qy}]))(),renderEditCell:e=>Me.jsx(zp,Ie({},e)),getApplyQuickFilterFn:xO(CO),getApplyQuickFilterFnV7:CO};const kO=Ie({},OO,{type:"boolean",align:"center",headerAlign:"center",renderCell:e=>su(e.rowNode)?"":Me.jsx(Ku,Ie({},e)),renderEditCell:e=>Me.jsx(Zu,Ie({},e)),sortComparator:wg,valueFormatter:function({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")},filterOperators:wO([{value:"is",getApplyFilterFnV7:e=>{if(!e.value)return null;const t="true"===e.value;return e=>!!e===t},InputComponent:Zv}]),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,aggregable:!1,pastedValueParser:e=>(e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}})(e)}),SO="__check__",EO=Ie({},kO,{field:SO,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,valueGetter:e=>void 0!==fg(e.api.state,e.api.instanceId)[e.id],renderHeader:e=>Me.jsx(Pg,Ie({},e)),renderCell:e=>Me.jsx(Tg,Ie({},e))}),RO="actions",TO=Ie({},OO,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:e=>Me.jsx(Df,Ie({},e)),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0}),NO="__detail_panel_toggle__",PO=e=>e.editRows,MO=["selected","rowId","row","index","style","position","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","isLastVisible","focusedCell","tabbableCell","onClick","onDoubleClick","onMouseEnter","onMouseLeave"];function jO({width:e}){if(!e)return null;const t={width:e};return Me.jsx("div",{className:`${Da.cell} ${Da.withBorderColor}`,style:t})}const _O=e.forwardRef((function(t,n){const{selected:o,rowId:r,row:i,index:l,style:a,position:s,rowHeight:u,className:c,renderedColumns:d,containerWidth:p,firstColumnToRender:f,isLastVisible:h=!1,onClick:m,onDoubleClick:g,onMouseEnter:b,onMouseLeave:v}=t,y=De(t,MO),w=va(),x=e.useRef(null),C=wa(),O=mO(w,C),k=_a(w,os),S=_a(w,Os),E=_a(w,ms),R=_a(w,Qs),T=_a(w,PO),N=Ft(x,n),P=l+R+2,M=(e=>{const{editable:t,editing:n,selected:o,isLastVisible:r,rowHeight:i,classes:l}=e;return en({root:["row",o&&"selected",t&&"row--editable",n&&"row--editing",r&&"row--lastVisible","auto"===i&&"row--dynamicHeight"]},Ia,l)})({selected:o,isLastVisible:h,classes:C.classes,editing:w.current.getRowMode(r)===Cu.Edit,editable:C.editMode===wu.Row,rowHeight:u});e.useLayoutEffect((()=>{"auto"===u&&x.current&&typeof ResizeObserver>"u"&&w.current.unstable_storeRowHeightMeasurement(r,x.current.clientHeight,s)}),[w,u,r,s]),e.useLayoutEffect((()=>{if(O.range){const e=w.current.getRowIndexRelativeToVisibleRows(r);null!=e&&w.current.unstable_setLastMeasuredRowIndex(e)}const e=x.current;if(!e||"auto"!==u||typeof ResizeObserver>"u")return;const t=new ResizeObserver((e=>{const[t]=e,n=t.borderBoxSize&&t.borderBoxSize.length>0?t.borderBoxSize[0].blockSize:t.contentRect.height;w.current.unstable_storeRowHeightMeasurement(r,n,s)}));return t.observe(e),()=>t.disconnect()}),[w,O.range,l,u,r,s]);const j=e.useCallback(((e,t)=>n=>{1===n.target.nodeType&&!n.currentTarget.contains(n.target)||w.current.getRow(r)&&(w.current.publishEvent(e,w.current.getRowParams(r),n),t&&t(n))}),[w,r]),_=e.useCallback((e=>{const t=function(e,t){return e.closest(`.${t}`)}(e.target,Da.cell),n=null==t?void 0:t.getAttribute("data-field");n&&(n===EO.field||n===NO||"__reorder__"===n||w.current.getCellMode(r,n)===xu.Edit||w.current.getColumn(n).type===RO)||j("rowClick",m)(e)}),[w,m,j,r]),{slots:I,slotProps:D,disableColumnReorder:F}=C,A=I.cell===Uu?Uu:Hu,L=C.rowReordering,V=(e,t)=>{var n,o;const i=F&&e.disableReorder||!L&&!!S.length&&E>1&&Object.keys(T).length>0,l=null!=(n=null==(o=T[r])?void 0:o[e.field])?n:null;return Me.jsx(A,Ie({column:e,width:t.width,rowId:r,height:u,showRightBorder:t.showRightBorder,align:e.align||"left",colIndex:t.indexRelativeToAllColumns,colSpan:t.colSpan,disableDragEvents:i,editCellState:l},null==D?void 0:D.cell),e.field)},$=_a(w,(()=>Ie({},w.current.unstable_getRowInternalSizes(r))),Ma);let z=u;if("auto"===z&&$){let e=0;const t=Object.entries($).reduce(((t,[n,o])=>/^base[A-Z]/.test(n)?(e+=1,o>t?o:t):t),0);t>0&&e>1&&(z=t)}const q=Ie({},a,{maxHeight:"auto"===u?"none":u,minHeight:z});if(null!=$&&$.spacingTop){q["border"===C.rowSpacingType?"borderTopWidth":"marginTop"]=$.spacingTop}if(null!=$&&$.spacingBottom){const e="border"===C.rowSpacingType?"borderBottomWidth":"marginBottom";let t=q[e];"number"!=typeof t&&(t=parseInt(t||"0",10)),t+=$.spacingBottom,q[e]=t}const H=w.current.unstable_applyPipeProcessors("rowClassName",[],r);if("function"==typeof C.getRowClassName){var B;const e=l-((null==(B=O.range)?void 0:B.firstRowIndex)||0),t=Ie({},w.current.getRowParams(r),{isFirstVisible:0===e,isLastVisible:e===O.rows.length-1,indexRelativeToCurrentPage:e});H.push(C.getRowClassName(t))}const U=Gm(1e4,20,80),W=w.current.getRowNode(r);if(!W)return null;const G=W.type,K=[];for(let e=0;e<d.length;e+=1){const t=d[e],n=f+e,o=w.current.unstable_getCellColSpanInfo(r,n);if(o&&!o.spannedByColSpan)if("skeletonRow"!==G){const{colSpan:e,width:r}=o.cellProps,i={width:r,colSpan:e,showRightBorder:C.showCellVerticalBorder,indexRelativeToAllColumns:n};K.push(V(t,i))}else{const{width:e}=o.cellProps,n=Math.round(U());K.push(Me.jsx(I.skeletonCell,{width:e,contentWidth:n,field:t.field,align:t.align},t.field))}}const Y=p-k,Z=i?{onClick:_,onDoubleClick:j("rowDoubleClick",g),onMouseEnter:j("rowMouseEnter",b),onMouseLeave:j("rowMouseLeave",v)}:null;return Me.jsxs("div",Ie({ref:N,"data-id":r,"data-rowindex":l,role:"row",className:vo(...H,M.root,c),"aria-rowindex":P,"aria-selected":o,style:q},Z,y,{children:[K,Y>0&&Me.jsx(jO,{width:Y})]}))}));"production"!==process.env.NODE_ENV&&(_O.propTypes={containerWidth:oe.number.isRequired,firstColumnToRender:oe.number.isRequired,focusedCell:oe.string,index:oe.number.isRequired,isLastVisible:oe.bool,lastColumnToRender:oe.number.isRequired,onClick:oe.func,onDoubleClick:oe.func,onMouseEnter:oe.func,onMouseLeave:oe.func,position:oe.oneOf(["center","left","right"]).isRequired,renderedColumns:oe.arrayOf(oe.object).isRequired,row:oe.object,rowHeight:oe.oneOfType([oe.oneOf(["auto"]),oe.number]).isRequired,rowId:oe.oneOfType([oe.number,oe.string]).isRequired,selected:oe.bool.isRequired,tabbableCell:oe.string,visibleColumns:oe.arrayOf(oe.object).isRequired});const IO=bu(_O);function DO({privateApiRef:t,props:n,children:o}){const r=e.useRef(t.current.getPublicApi());return Me.jsx(ya.Provider,{value:n,children:Me.jsx(xa.Provider,{value:t,children:Me.jsx(ba.Provider,{value:r,children:o})})})}const FO=function(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}()&&null!=window.localStorage.getItem("DEBUG"),AO=()=>{},LO={debug:AO,info:AO,warn:AO,error:AO},VO=["debug","info","warn","error"];function $O(e,t,n=console){const o=VO.indexOf(t);if(-1===o)throw new Error(`MUI: Log level ${t} not recognized.`);return VO.reduce(((t,r,i)=>(t[r]=i>=o?(...t)=>{const[o,...i]=t;n[r](`MUI: ${e} - ${o}`,...i)}:AO,t)),{})}class zO{static create(e){return new zO(e)}constructor(e){this.value=void 0,this.listeners=void 0,this.subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)}),this.getSnapshot=()=>this.value,this.update=e=>{this.value=e,this.listeners.forEach((t=>t(e)))},this.value=e,this.listeners=new Set}}class qO{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(e,t,n={}){let o=this.events[e];if(o||(o={highPriority:new Map,regular:new Map},this.events[e]=o),n.isFirst?o.highPriority.set(t,!0):o.regular.set(t,!0),"production"!==process.env.NODE_ENV){const t=o.highPriority.size+o.regular.size;t>this.maxListeners&&!this.warnOnce&&(this.warnOnce=!0,console.warn([`Possible EventEmitter memory leak detected. ${t} ${e} listeners added.`].join("\n")))}}removeListener(e,t){this.events[e]&&(this.events[e].regular.delete(t),this.events[e].highPriority.delete(t))}removeAllListeners(){this.events={}}emit(e,...t){const n=this.events[e];if(!n)return;const o=Array.from(n.highPriority.keys()),r=Array.from(n.regular.keys());for(let e=o.length-1;e>=0;e-=1){const r=o[e];n.highPriority.has(r)&&r.apply(this,t)}for(let e=0;e<r.length;e+=1){const o=r[e];n.regular.has(o)&&o.apply(this,t)}}once(e,t){const n=this;this.on(e,(function o(...r){n.removeListener(e,o),t.apply(n,r)}))}}let HO=0;function BO(t,n){const o=e.useRef();if(!o.current){const e={};o.current={state:e,store:zO.create(e),instanceId:{id:HO}},HO+=1}const r=e.useRef();r.current||(r.current=(e=>{const t={getPublicApi:()=>e,register:(n,o)=>{Object.keys(o).forEach((r=>{"public"===n?e[r]=o[r]:t[r]=o[r]}))}};return new Proxy(e,{get:(e,n)=>n in e?e[n]:t[n],set:(e,t,n)=>(e[t]=n,!0)})})(o.current),r.current.register("private",{caches:{},eventManager:new qO})),e.useImperativeHandle(t,(()=>o.current),[o]);const i=e.useCallback(((...e)=>{const[t,o,i={}]=e;if(i.defaultMuiPrevented=!1,(e=>void 0!==e.isPropagationStopped)(i)&&i.isPropagationStopped())return;const l=n.signature===Fm.DataGridPro?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(t,o,i,l)}),[r,n.signature]),l=e.useCallback(((e,t,n)=>{r.current.eventManager.on(e,t,n);const o=r.current;return()=>{o.eventManager.removeListener(e,t)}}),[r]);return Mu(r,{subscribeEvent:l,publishEvent:i},"public"),e.useEffect((()=>{const e=r.current;return()=>{e.publishEvent("unmount")}}),[r]),r}function UO(e){return UO="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},UO(e)}function WO(e){var t=function(e,t){if("object"!=UO(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=UO(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==UO(t)?t:String(t)}const GO=(t,n,o)=>{const r=e.useRef(),i=e.useRef(`mui-${Math.round(1e9*Math.random())}`),l=e.useCallback((()=>{r.current=t.current.registerPipeProcessor(n,i.current,o)}),[t,o,n]);Ym((()=>{l()}));const a=e.useRef(!0);e.useEffect((()=>(a.current?a.current=!1:l(),()=>{r.current&&(r.current(),r.current=null)})),[l])},KO=(t,n,o)=>{const r=e.useRef(),i=e.useRef(`mui-${Math.round(1e9*Math.random())}`),l=e.useCallback((()=>{r.current=t.current.registerPipeApplier(n,i.current,o)}),[t,o,n]);Ym((()=>{l()}));const a=e.useRef(!0);e.useEffect((()=>(a.current?a.current=!1:l(),()=>{r.current&&(r.current(),r.current=null)})),[l])},YO=(t,n,o,r)=>{const i=e.useCallback((()=>{t.current.registerStrategyProcessor(n,o,r)}),[t,r,o,n]);Ym((()=>{i()}));const l=e.useRef(!0);e.useEffect((()=>{l.current?l.current=!1:i()}),[i])},ZO="none",XO={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},QO=(t,n)=>{const o=BO(t,n);return((t,n)=>{Mu(t,{getLogger:e.useCallback((e=>FO?$O(e,"debug",n.logger):n.logLevel?$O(e,n.logLevel.toString(),n.logger):LO),[n.logLevel,n.logger])},"private")})(o,n),((t,n)=>{const o=e.useRef({}),[,r]=e.useState(),i=e.useCallback((e=>{o.current[e.stateId]=e}),[]),l=e.useCallback(((e,r)=>{let i;if(i=qm(e)?e(t.current.state):e,t.current.state===i)return!1;let l=!1;const a=[];if(Object.keys(o.current).forEach((e=>{const n=o.current[e],r=n.stateSelector(t.current.state,t.current.instanceId),s=n.stateSelector(i,t.current.instanceId);s!==r&&(a.push({stateId:n.stateId,hasPropChanged:s!==n.propModel}),void 0!==n.propModel&&s!==n.propModel&&(l=!0))})),a.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${a[0].stateId}, therefore, you're not allowed to update ${a.map((e=>e.stateId)).join(", ")} in the same transaction.`);if(l||(t.current.state=i,t.current.publishEvent&&t.current.publishEvent("stateChange",i),t.current.store.update(i)),1===a.length){const{stateId:e,hasPropChanged:s}=a[0],u=o.current[e],c=u.stateSelector(i,t.current.instanceId);if(u.propOnChange&&s){const e=n.signature===Fm.DataGridPro?{api:t.current,reason:r}:{reason:r};u.propOnChange(c,e)}l||t.current.publishEvent(u.changeEvent,c,{reason:r})}return!l}),[t,n.signature]),a=e.useCallback(((e,n,o)=>t.current.setState((t=>Ie({},t,{[e]:n(t[e])})),o)),[t]),s=e.useCallback((()=>r((()=>t.current.state))),[t]),u={updateControlState:a,registerControlState:i};Mu(t,{setState:l,forceUpdate:s},"public"),Mu(t,u,"private")})(o,n),(t=>{const n=e.useRef({}),o=e.useCallback((e=>{e&&Object.values(e.appliers).forEach((e=>{e()}))}),[]),r=e.useCallback(((e,t,r)=>{n.current[e]||(n.current[e]={processors:new Map,appliers:{}});const i=n.current[e];return i.processors.get(t)!==r&&(i.processors.set(t,r),o(i)),()=>{n.current[e].processors.set(t,null)}}),[o]),i=e.useCallback(((e,t,o)=>(n.current[e]||(n.current[e]={processors:new Map,appliers:{}}),n.current[e].appliers[t]=o,()=>{const o=De(n.current[e].appliers,[t].map(WO));n.current[e].appliers=o})),[]),l=e.useCallback((e=>{const t=n.current[e];o(t)}),[o]),a={unstable_applyPipeProcessors:e.useCallback(((...e)=>{const[t,o,r]=e;return n.current[t]?Array.from(n.current[t].processors.values()).reduce(((e,t)=>t?t(e,r):e),o):o}),[])};Mu(t,{registerPipeProcessor:r,registerPipeApplier:i,requestPipeProcessorsApplication:l},"private"),Mu(t,a,"public")})(o),(t=>{const n=e.useRef(new Map),o=e.useRef({}),r=e.useCallback(((e,n,r)=>{o.current[n]||(o.current[n]={});const i=o.current[n],l=i[e];return i[e]=r,!l||l===r||e===t.current.getActiveStrategy(XO[n])&&t.current.publishEvent("activeStrategyProcessorChange",n),()=>{const t=De(o.current[n],[e].map(WO));o.current[n]=t}}),[t]),i=e.useCallback(((e,n)=>{const r=t.current.getActiveStrategy(XO[e]);if(null==r)throw new Error("Can't apply a strategy processor before defining an active strategy");const i=o.current[e];if(!i||!i[r])throw new Error(`No processor found for processor "${e}" on strategy "${r}"`);return(0,i[r])(n)}),[t]),l=e.useCallback((e=>{var t;const o=Array.from(n.current.entries()).find((([,t])=>t.group===e&&t.isAvailable()));return null!=(t=null==o?void 0:o[0])?t:ZO}),[]),a=e.useCallback(((e,o,r)=>{n.current.set(o,{group:e,isAvailable:r}),t.current.publishEvent("strategyAvailabilityChange")}),[t]);Mu(t,{registerStrategyProcessor:r,applyStrategyProcessor:i,getActiveStrategy:l,setStrategyAvailability:a},"private")})(o),((t,n)=>{const o=e.useCallback((e=>{if(null==n.localeText[e])throw new Error(`Missing translation for key ${e}.`);return n.localeText[e]}),[n.localeText]);t.current.register("public",{getLocaleText:o})})(o,n),o},JO=(t,n,o)=>{const r=e.useRef(!1);r.current||(n.current.state=t(n.current.state,o,n),r.current=!0)},ek=/(\d+)-(\d+)-(\d+)/,tk=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function nk(e,t,n,o){if(!e.value)return null;const[r,i,l,a,s]=e.value.match(n?tk:ek).slice(1).map(Number),u=new Date(r,i-1,l,a||0,s||0).getTime();return e=>{if(!e)return!1;if(o)return t(e.getTime(),u);const r=new Date(e).setHours(n?e.getHours():0,n?e.getMinutes():0,0,0);return t(r,u)}}const ok=e=>wO([{value:"is",getApplyFilterFnV7:t=>nk(t,((e,t)=>e===t),e),InputComponent:Hv,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFnV7:t=>nk(t,((e,t)=>e!==t),e),InputComponent:Hv,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFnV7:t=>nk(t,((e,t)=>e>t),e),InputComponent:Hv,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFnV7:t=>nk(t,((e,t)=>e>=t),e),InputComponent:Hv,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFnV7:t=>nk(t,((e,t)=>e<t),e,!e),InputComponent:Hv,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFnV7:t=>nk(t,((e,t)=>e<=t),e),InputComponent:Hv,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFnV7:()=>e=>null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>null!=e,requiresFilterValue:!1}]);function rk({value:e,columnType:t,rowId:n,field:o}){if(!(e instanceof Date))throw new Error([`MUI: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${o}".`].join("\n"))}const ik=Ie({},OO,{type:"date",sortComparator:xg,valueFormatter:function({value:e,field:t,id:n}){return e?(rk({value:e,columnType:"date",rowId:n,field:t}),e.toLocaleDateString()):""},filterOperators:ok(),renderEditCell:Lp,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,pastedValueParser:e=>new Date(e)}),lk=Ie({},OO,{type:"dateTime",sortComparator:xg,valueFormatter:function({value:e,field:t,id:n}){return e?(rk({value:e,columnType:"dateTime",rowId:n,field:t}),e.toLocaleString()):""},filterOperators:ok(!0),renderEditCell:Lp,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,pastedValueParser:e=>new Date(e)}),ak=e=>null==e?null:Number(e),sk=bO((e=>null==e||Number.isNaN(e)||""===e?null:t=>ak(t)===ak(e))),uk=Ie({},OO,{type:"number",align:"right",headerAlign:"right",sortComparator:wg,valueParser:e=>""===e?null:Number(e),valueFormatter:({value:e})=>function(e){return"number"==typeof e}(e)?e.toLocaleString():e||"",filterOperators:wO([{value:"=",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>ak(t)===e.value,InputComponent:zv,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>ak(t)!==e.value,InputComponent:zv,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&ak(t)>e.value,InputComponent:zv,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&ak(t)>=e.value,InputComponent:zv,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&ak(t)<e.value,InputComponent:zv,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&ak(t)<=e.value,InputComponent:zv,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFnV7:()=>e=>null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>null!=e,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:e=>Array.isArray(e.value)&&0!==e.value.length?t=>null!=t&&e.value.includes(Number(t)):null,InputComponent:qy,InputComponentProps:{type:"number"}}]),getApplyQuickFilterFn:xO(sk),getApplyQuickFilterFnV7:sk}),ck=e=>null!=e&&Hm(e)?e.value:e,dk=Ie({},OO,{type:"singleSelect",getOptionLabel:e=>Hm(e)?e.label:String(e),getOptionValue:e=>Hm(e)?e.value:e,valueFormatter(e){const{id:t,field:n,value:o,api:r}=e,i=e.api.getColumn(n);if(!Kp(i))return"";let l;if(l="function"==typeof i.valueOptions?i.valueOptions({id:t,row:t?r.getRow(t):null,field:n}):i.valueOptions,null==o)return"";if(!l)return o;if(!(e=>"object"==typeof e[0])(l))return i.getOptionLabel(o);const a=l.find((e=>i.getOptionValue(e)===o));return a?i.getOptionLabel(a):""},renderEditCell:e=>Me.jsx(Qp,Ie({},e)),filterOperators:wO([{value:"is",getApplyFilterFnV7:e=>null==e.value||""===e.value?null:t=>ck(t)===ck(e.value),InputComponent:Gv},{value:"not",getApplyFilterFnV7:e=>null==e.value||""===e.value?null:t=>ck(t)!==ck(e.value),InputComponent:Gv},{value:"isAnyOf",getApplyFilterFnV7:e=>{if(!Array.isArray(e.value)||0===e.value.length)return null;const t=e.value.map(ck);return e=>t.includes(ck(e))},InputComponent:Uy}]),pastedValueParser:(e,t)=>{const n=t.colDef,o=n.valueOptions,r="function"==typeof o?o({field:n.field}):o||[],i=n.getOptionValue;if(r.find((t=>i(t)===e)))return e}}),pk="__default__";function fk(e,t){if("string"==typeof e){const n=e.replace(/"/g,'""');return[t,"\n","\r"].some((e=>n.includes(e)))?`"${n}"`:n}return e}const hk=(e,t)=>{const{delimiterCharacter:n,ignoreValueFormatter:o}=t;let r;if(o){var i;const t=e.colDef.type;if("number"===t)r=String(e.value);else if("date"===t||"dateTime"===t){var l;r=null==(l=e.value)?void 0:l.toISOString()}else r="function"==typeof(null==(i=e.value)?void 0:i.toString)?e.value.toString():e.value}else r=e.formattedValue;return fk(r,n)},mk=Sa(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);function gk(e){const{columns:t,rowIds:n,getCellParams:o,delimiterCharacter:r,includeHeaders:i,ignoreValueFormatter:l}=e,a=n.reduce(((e,n)=>`${e}${(({id:e,columns:t,getCellParams:n,delimiterCharacter:o,ignoreValueFormatter:r})=>t.map((t=>{const i=n(e,t.field);return"production"!==process.env.NODE_ENV&&"[object Object]"===String(i.formattedValue)&&mk(),hk(i,{delimiterCharacter:o,ignoreValueFormatter:r})})))({id:n,columns:t,getCellParams:o,delimiterCharacter:r,ignoreValueFormatter:l}).join(r)}\r\n`),"").trim();return i?`${t.filter((e=>e.field!==EO.field)).map((e=>fk(e.headerName||e.field,r))).join(r)}\r\n${a}`.trim():a}function bk(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const o=window.getSelection();o.removeAllRanges(),o.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}const vk=(t,n)=>{const o=n.unstable_ignoreValueFormatterDuringExport,r=("object"==typeof o?null==o?void 0:o.clipboardExport:o)||!1,i=n.clipboardCopyCellDelimiter,l=e.useCallback((e=>{if(!e.ctrlKey&&!e.metaKey||"c"!==e.key||function(e){var t;return!!(null!=(t=window.getSelection())&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}(e.target))return;let n="";if(t.current.getSelectedRows().size>0)n=t.current.getDataAsCsv({includeHeaders:!1,delimiter:i});else{const e=Ls(t);if(e){const o=t.current.getCellParams(e.id,e.field);n=hk(o,{delimiterCharacter:i,ignoreValueFormatter:r})}}n=t.current.unstable_applyPipeProcessors("clipboardCopy",n),n&&(function(e){navigator.clipboard?navigator.clipboard.writeText(e).catch((()=>{bk(e)})):bk(e)}(n),t.current.publishEvent("clipboardCopy",n))}),[t,r,i]);((t,n,o,r,i)=>{const l=zm(t,"useNativeEventListener"),[a,s]=e.useState(!1),u=e.useRef(r),c=e.useCallback((e=>u.current&&u.current(e)),[]);e.useEffect((()=>{u.current=r}),[r]),e.useEffect((()=>{let e;if(e=qm(n)?n():n&&n.current?n.current:null,e&&o&&!a){l.debug(`Binding native ${o} event`),e.addEventListener(o,c,i);const n=e;s(!0);const r=()=>{l.debug(`Clearing native ${o} event`),n.removeEventListener(o,c,i)};t.current.subscribeEvent("unmount",r)}}),[n,c,o,a,l,i,t])})(t,t.current.rootElementRef,"keydown",l),$m(t,"clipboardCopy",n.onClipboardCopy)},yk=e=>Ie({},e,{columnMenu:{open:!1}}),wk=["maxWidth","minWidth","width","flex"];const xk=(e,t)=>{const n={};let o=0,r=0;const i=[];e.orderedFields.forEach((t=>{const l=Ie({},e.lookup[t]);if(!1===e.columnVisibilityModel[t])l.computedWidth=0;else{let e;l.flex&&l.flex>0?(o+=l.flex,e=0,i.push(l)):e=Um(l.width,l.minWidth,l.maxWidth),r+=e,l.computedWidth=e}n[t]=l}));const l=Math.max(t-r,0);if(o>0&&t>0){const e=function({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const o=new Set(n.map((e=>e.field))),r={all:{},frozenFields:[],freeze:e=>{const t=r.all[e];t&&!0!==t.frozen&&(r.all[e].frozen=!0,r.frozenFields.push(e))}};return function i(){if(r.frozenFields.length===o.size)return;const l={min:{},max:{}};let a=e,s=t,u=0;r.frozenFields.forEach((e=>{a-=r.all[e].computedWidth,s-=r.all[e].flex}));for(let e=0;e<n.length;e+=1){const t=n[e];if(r.all[t.field]&&!0===r.all[t.field].frozen)continue;let o=a/s*t.flex;o<t.minWidth?(u+=t.minWidth-o,o=t.minWidth,l.min[t.field]=!0):o>t.maxWidth&&(u+=t.maxWidth-o,o=t.maxWidth,l.max[t.field]=!0),r.all[t.field]={frozen:!1,computedWidth:o,flex:t.flex}}u<0?Object.keys(l.max).forEach((e=>{r.freeze(e)})):u>0?Object.keys(l.min).forEach((e=>{r.freeze(e)})):n.forEach((({field:e})=>{r.freeze(e)})),i()}(),r.all}({initialFreeSpace:l,totalFlexUnits:o,flexColumns:i});Object.keys(e).forEach((t=>{n[t].computedWidth=e[t].computedWidth}))}return Ie({},e,{lookup:n})},Ck=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:o,columnVisibilityModel:r=Ja(e),keepOnlyColumnsToUpsert:i=!1})=>{var l,a,s,u;const c=!e.current.state.columns;let d;if(c)d={orderedFields:[],lookup:{},columnVisibilityModel:r};else{const t=Ya(e.current.state);d={orderedFields:i?[]:[...t.orderedFields],lookup:Ie({},t.lookup),columnVisibilityModel:r}}let p={};i&&!c&&(p=Object.keys(d.lookup).reduce(((e,t)=>Ie({},e,{[t]:!1})),{})),t.forEach((e=>{const{field:t}=e;p[t]=!0;let n=d.lookup[t];if(null==n){let r=o[pk];e.type&&o[e.type]&&(r=o[e.type]),n=Ie({},r,{field:t,hasBeenResized:!1}),d.orderedFields.push(t)}else i&&d.orderedFields.push(t);let r=n.hasBeenResized;wk.forEach((t=>{void 0!==e[t]&&(r=!0,-1===e[t]&&(e[t]=1/0))})),d.lookup[t]=Ie({},n,e,{hasBeenResized:r})})),i&&!c&&Object.keys(d.lookup).forEach((e=>{p[e]||delete d.lookup[e]}));const f=((e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:o={}}=t,r=Object.keys(o);if(0===r.length&&0===n.length)return e;const i={},l=[];for(let t=0;t<n.length;t+=1){const o=n[t];e.lookup[o]&&(i[o]=!0,l.push(o))}const a=0===l.length?e.orderedFields:[...l,...e.orderedFields.filter((e=>!i[e]))],s=Ie({},e.lookup);for(let e=0;e<r.length;e+=1){const t=r[e],n=Ie({},s[t],{hasBeenResized:!0});Object.entries(o[t]).forEach((([e,t])=>{n[e]=-1===t?1/0:t})),s[t]=n}return Ie({},e,{orderedFields:a,lookup:s})})(e.current.unstable_applyPipeProcessors("hydrateColumns",d),n);return xk(f,null!=(l=null==(a=(s=e.current).getRootDimensions)||null==(u=a.call(s))?void 0:u.viewportInnerSize.width)?l:0)},Ok=e=>t=>Ie({},t,{columns:e});function kk({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:o,visibleRows:r}){let i=e;for(let l=n;l<o;l+=1)if(r[l]){const n=r[l].id,o=t.current.unstable_getCellColSpanInfo(n,e);o&&o.spannedByColSpan&&(i=o.leftVisibleCellIndex)}return i}function Sk({firstColumnIndex:e,minColumnIndex:t,columnBuffer:n,firstRowToRender:o,lastRowToRender:r,apiRef:i,visibleRows:l}){return kk({firstColumnToRender:Math.max(e-n,t),apiRef:i,firstRowToRender:o,lastRowToRender:r,visibleRows:l})}function Ek(e,t){const n=Gs(e),o=Qs(e);return Math.floor(t*n)*((o??0)+1)}const Rk={string:OO,number:uk,date:ik,dateTime:lk,boolean:kO,singleSelect:dk,[RO]:TO,[pk]:OO},Tk=(e,t,n)=>{var o,r,i,l,a;return Ie({},e,{columns:Ck({apiRef:n,columnTypes:Rk,columnsToUpsert:t.columns,initialState:null==(o=t.initialState)?void 0:o.columns,columnVisibilityModel:null!=(r=null!=(i=t.columnVisibilityModel)?i:null==(l=t.initialState)||null==(a=l.columns)?void 0:a.columnVisibilityModel)?r:{},keepOnlyColumnsToUpsert:!0})})};const Nk={compact:.7,comfortable:1.3,standard:1},Pk=(e,t)=>Ie({},e,{density:{value:t.density,factor:Nk[t.density]}});const Mk=({apiRef:e,options:t})=>{const n=Qa(e);return t.fields?t.fields.map((e=>n.find((t=>t.field===e)))).filter((e=>!!e)):(t.allColumns?n:es(e)).filter((e=>!e.disableExport))},jk=({apiRef:e})=>{var t,n;const o=Ms(e),r=ps(e),i=e.current.getSelectedRows(),l=o.filter((e=>"footer"!==r[e].type)),a=vs(e),s=(null==a||null==(t=a.top)?void 0:t.map((e=>e.id)))||[],u=(null==a||null==(n=a.bottom)?void 0:n.map((e=>e.id)))||[];return l.unshift(...s),l.push(...u),i.size>0?l.filter((e=>i.has(e))):l},_k=(t,n)=>{const o=zm(t,"useGridCsvExport"),r=n.unstable_ignoreValueFormatterDuringExport,i=("object"==typeof r?null==r?void 0:r.csvExport:r)||!1,l=e.useCallback(((e={})=>{var n,r;o.debug("Get data as CSV");return gk({columns:Mk({apiRef:t,options:e}),rowIds:(null!=(n=e.getRowsToExport)?n:jk)({apiRef:t}),getCellParams:t.current.getCellParams,delimiterCharacter:e.delimiter||",",includeHeaders:null==(r=e.includeHeaders)||r,ignoreValueFormatter:i})}),[o,t,i]),a=e.useCallback((e=>{o.debug("Export data as CSV");const t=l(e);!function(e,t="csv",n=document.title||"untitled"){const o=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const t=URL.createObjectURL(e),n=document.createElement("a");return n.href=t,n.download=o,n.click(),void setTimeout((()=>{URL.revokeObjectURL(t)}))}throw new Error("MUI: exportAs not supported")}(new Blob([null!=e&&e.utf8WithBom?new Uint8Array([239,187,191]):"",t],{type:"text/csv"}),"csv",null==e?void 0:e.fileName)}),[o,l]);Mu(t,{getDataAsCsv:l,exportDataAsCsv:a},"public");const s=e.useCallback(((e,t)=>{var n;return null!=(n=t.csvOptions)&&n.disableToolbarButton?e:[...e,{component:Me.jsx(Xy,{options:t.csvOptions}),componentName:"csvExport"}]}),[]);GO(t,"exportMenu",s)};const Ik=(t,n)=>{const o=zm(t,"useGridPrintExport"),r=e.useRef(null),i=e.useRef(null),l=e.useRef({});e.useEffect((()=>{r.current=Rt(t.current.rootElementRef.current)}),[t]);const a=e.useCallback(((e,n)=>new Promise((o=>{if(!e&&!n)return void o();const r=Mk({apiRef:t,options:{fields:e,allColumns:n}}).map((e=>e.field)),i=Qa(t),l={};i.forEach((e=>{l[e.field]=r.includes(e.field)})),t.current.setColumnVisibilityModel(l),o()}))),[t]),s=e.useCallback(((e,o)=>{var i,l;const a=Ie({copyStyles:!0,hideToolbar:!1,hideFooter:!1},o),s=e.contentDocument;if(!s)return;const u=ug(t.current.state),c=t.current.rootElementRef.current,d=c.cloneNode(!0);d.querySelector(`.${Da.main}`).style.overflow="visible",d.style.contain="size";d.querySelector(`.${Da.columnHeaders}`).querySelector(`.${Da.columnHeadersInner}`).style.width="100%";let p=(null==(i=c.querySelector(`.${Da.toolbarContainer}`))?void 0:i.offsetHeight)||0,f=(null==(l=c.querySelector(`.${Da.footerContainer}`))?void 0:l.offsetHeight)||0;var h,m;a.hideToolbar&&(null==(h=d.querySelector(`.${Da.toolbarContainer}`))||h.remove(),p=0);a.hideFooter&&(null==(m=d.querySelector(`.${Da.footerContainer}`))||m.remove(),f=0);d.style.height=`${u.currentPageTotalHeight+Ek(t,n.columnHeaderHeight)+p+f}px`,d.style.boxSizing="content-box";const g=document.createElement("div");g.appendChild(d),s.body.innerHTML=g.innerHTML;const b="function"==typeof a.pageStyle?a.pageStyle():a.pageStyle;if("string"==typeof b){const e=s.createElement("style");e.appendChild(s.createTextNode(b)),s.head.appendChild(e)}if(a.bodyClassName&&s.body.classList.add(...a.bodyClassName.split(" ")),a.copyStyles){const e=c.getRootNode(),t=("ShadowRoot"===e.constructor.name?e:r.current).querySelectorAll("style, link[rel='stylesheet']");for(let e=0;e<t.length;e+=1){const n=t[e];if("STYLE"===n.tagName){const e=s.createElement(n.tagName),t=n.sheet;if(t){let n="";for(let e=0;e<t.cssRules.length;e+=1)"string"==typeof t.cssRules[e].cssText&&(n+=`${t.cssRules[e].cssText}\r\n`);e.appendChild(s.createTextNode(n)),s.head.appendChild(e)}}else if(n.getAttribute("href")){const e=s.createElement(n.tagName);for(let t=0;t<n.attributes.length;t+=1){const o=n.attributes[t];o&&e.setAttribute(o.nodeName,o.nodeValue||"")}s.head.appendChild(e)}}}"test"!==process.env.NODE_ENV&&e.contentWindow.print()}),[t,r,n.columnHeaderHeight]),u=e.useCallback((e=>{var n,o;r.current.body.removeChild(e),t.current.restoreState(i.current||{}),null!=(n=i.current)&&null!=(o=n.columns)&&o.columnVisibilityModel||t.current.setColumnVisibilityModel(l.current),t.current.unstable_enableVirtualization(),i.current=null,l.current={}}),[t]),c={exportDataAsPrint:e.useCallback((async e=>{if(o.debug("Export data as Print"),!t.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");if(i.current=t.current.exportState(),l.current=Ja(t),n.pagination){const e=_s(t);t.current.setPageSize(e)}await a(null==e?void 0:e.fields,null==e?void 0:e.allColumns),t.current.unstable_disableVirtualization(),await new Promise((e=>{requestAnimationFrame((()=>{e()}))}));const c=function(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}(null==e?void 0:e.fileName);"test"===process.env.NODE_ENV?(r.current.body.appendChild(c),s(c,e),u(c)):(c.onload=()=>{s(c,e),c.contentWindow.matchMedia("print").addEventListener("change",(e=>{!1===e.matches&&u(c)}))},r.current.body.appendChild(c))}),[n,o,t,s,u,a])};Mu(t,c,"public");const d=e.useCallback(((e,t)=>{var n;return null!=(n=t.printOptions)&&n.disableToolbarButton?e:[...e,{component:Me.jsx(Qy,{options:t.printOptions}),componentName:"printExport"}]}),[]);GO(t,"exportMenu",d)},Dk=(e,t)=>{const n=Ie({},e);if(null==n.id&&(n.id=Math.round(1e5*Math.random())),null==n.operator){const e=Xa(t)[n.field];n.operator=e&&e.filterOperators[0].value}return n},Fk=Sa(["MUI: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),Ak=Sa("MUI: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),Lk=Sa("MUI: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),Vk=(e,t,n)=>{const o=e.items.length>1;let r;o&&t?(Fk(),r=[e.items[0]]):r=e.items;const i=o&&r.some((e=>null==e.id)),l=r.some((e=>null==e.operator));return i&&Ak(),l&&Lk(),l||i?Ie({},e,{items:r.map((e=>Dk(e,n)))}):e.items!==r?Ie({},e,{items:r}):e},$k=(e,t,n)=>o=>Ie({},o,{filterModel:Vk(e,t,n)}),zk=(e,t)=>{if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let o;if(n.valueParser){var r;const t=n.valueParser;o=Array.isArray(e.value)?null==(r=e.value)?void 0:r.map((e=>t(e))):t(e.value)}else o=e.value;const i=Ie({},e,{value:o}),l=n.filterOperators;if(null==l||!l.length)throw new Error(`MUI: No filter operators found for column '${n.field}'.`);const a=l.find((e=>e.value===i.operator));if(!a)throw new Error(`MUI: No filter operator found for column '${n.field}' and operator value '${i.operator}'.`);const s=!vO(a.getApplyFilterFn),u=!vO(a.getApplyFilterFnV7);if(a.getApplyFilterFnV7&&(!s||u)){const e=a.getApplyFilterFnV7(i,n);return"function"!=typeof e?null:{v7:!0,item:i,fn:o=>{const r=t.current.getRowValue(o,n);return e(r,o,n,t)}}}const c=a.getApplyFilterFn(i,n);return"function"!=typeof c?null:{v7:!1,item:i,fn:e=>{const n=t.current.getCellParams(e,i.field);gO.current=t;const o=c(n);return gO.current=null,o}}},qk=(e,t,n)=>{const o=((e,t,n)=>{const{items:o}=t,r=o.map((e=>zk(e,n))).filter((e=>!!e));return 0===r.length?null:(t,n)=>{const o={};for(let i=0;i<r.length;i+=1){const l=r[i];(!n||n(l.item.field))&&(o[l.item.id]=l.v7?l.fn(t):l.fn(e?e(t):t.id))}return o}})(e,t,n),r=((e,t,n)=>{var o,r;const i=null!=(o=null==(r=t.quickFilterValues)?void 0:r.filter(Boolean))?o:[];if(0===i.length)return null;const l=Za(n),a=[];return l.forEach((e=>{const t=n.current.getColumn(e),o=null==t?void 0:t.getApplyQuickFilterFn,r=null==t?void 0:t.getApplyQuickFilterFnV7,l=!vO(o),s=!vO(r);!r||l&&!s?o&&a.push({column:t,appliers:i.map((e=>({v7:!1,fn:o(e,t,n)})))}):a.push({column:t,appliers:i.map((e=>({v7:!0,fn:r(e,t,n)})))})})),function(t,o){const r={},l={};e:for(let u=0;u<i.length;u+=1){const c=i[u];for(let i=0;i<a.length;i+=1){const{column:d,appliers:p}=a[i],{field:f}=d;if(o&&!o(f))continue;const h=p[u],m=n.current.getRowValue(t,d);if(null!==h.fn)if(h.v7){if(h.fn(m,t,d,n)){r[c]=!0;continue e}}else{var s;const o=null!=(s=l[f])?s:n.current.getCellParams(e?e(t):t.id,f);if(l[f]=o,h.fn(o)){r[c]=!0;continue e}}}r[c]=!1}return r}})(e,t,n);return function(e,t,n){var i,l;n.passingFilterItems=null!=(i=null==o?void 0:o(e,t))?i:null,n.passingQuickFilterValues=null!=(l=null==r?void 0:r(e,t))?l:null}},Hk=e=>null!=e,Bk=(e,t,n,o,r)=>{const i=((e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter((e=>null!==zk(e,t)))),e.cleanedFilterItems))(r,o,n.items),l=e.filter(Hk),a=t.filter(Hk);if(l.length>0){var s;const e=e=>l.some((t=>t[e.id]));if((null!=(s=n.logicOperator)?s:_m().logicOperator)===Ou.And){if(!i.every(e))return!1}else if(!i.some(e))return!1}if(a.length>0&&null!=n.quickFilterValues){var u;const e=e=>a.some((t=>t[e]));if((null!=(u=n.quickFilterLogicOperator)?u:_m().quickFilterLogicOperator)===Ou.And){if(!n.quickFilterValues.every(e))return!1}else if(!n.quickFilterValues.some(e))return!1}return!0},Uk=(e,t,n)=>{var o,r,i,l;const a=null!=(o=null!=(r=t.filterModel)?r:null==(i=t.initialState)||null==(l=i.filter)?void 0:l.filterModel)?o:_m();return Ie({},e,{filter:{filterModel:Vk(a,t.disableMultipleColumnsFiltering,n),filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},Wk=e=>e.filteredRowsLookup;function Gk(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}const Kk=e=>Ie({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}});const Yk=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:o})=>{if("rtl"===o){if(e<n)return e+1}else if("ltr"===o&&e>t)return e-1;return null},Zk=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:o})=>{if("rtl"===o){if(e>t)return e-1}else if("ltr"===o&&e<n)return e+1;return null},Xk=(t,n)=>{const o=zm(t,"useGridKeyboardNavigation"),r=mO(t,n).rows,i=mr(),l=e.useMemo((()=>function(e,t){const n=vs(e)||{};return[...n.top||[],...t,...n.bottom||[]]}(t,r)),[t,r]),a="DataGrid"!==n.signature&&n.unstable_headerFilters,s=e.useCallback(((e,n,r="left")=>{const i=Ts(t),l=t.current.unstable_getCellColSpanInfo(n,e);l&&l.spannedByColSpan&&("left"===r?e=l.leftVisibleCellIndex:"right"===r&&(e=l.rightVisibleCellIndex));const a=i.findIndex((e=>e.id===n));o.debug(`Navigating to cell row ${a}, col ${e}`),t.current.scrollToIndexes({colIndex:e,rowIndex:a});const s=t.current.getVisibleColumns()[e].field;t.current.setCellFocus(n,s)}),[t,o]),u=e.useCallback(((e,n)=>{o.debug(`Navigating to header col ${e}`),t.current.scrollToIndexes({colIndex:e});const r=t.current.getVisibleColumns()[e].field;t.current.setColumnHeaderFocus(r,n)}),[t,o]),c=e.useCallback(((e,n)=>{o.debug(`Navigating to header filter col ${e}`),t.current.scrollToIndexes({colIndex:e});const r=t.current.getVisibleColumns()[e].field;t.current.setColumnHeaderFilterFocus(r,n)}),[t,o]),d=e.useCallback(((e,n,r)=>{o.debug(`Navigating to header col ${e}`),t.current.scrollToIndexes({colIndex:e});const{field:i}=t.current.getVisibleColumns()[e];t.current.setColumnGroupHeaderFocus(i,n,r)}),[t,o]),p=e.useCallback((e=>null==l?void 0:l[e].id),[l]),f=e.useCallback(((e,n)=>{const o=n.currentTarget.querySelector(`.${Da.columnHeaderTitleContainerContent}`);if(o&&o.contains(n.target)&&e.field!==EO.field||!t.current.getRootDimensions())return;const r=t.current.getViewportPageSize(),f=e.field?t.current.getColumnIndex(e.field):0,h=l.length-1,m=es(t).length-1,g=Qs(t);let b=!0;switch(n.key){case"ArrowDown":a?c(f,n):s(f,p(0));break;case"ArrowRight":{const e=Zk({currentColIndex:f,firstColIndex:0,lastColIndex:m,direction:i.direction});null!==e&&u(e,n);break}case"ArrowLeft":{const e=Yk({currentColIndex:f,firstColIndex:0,lastColIndex:m,direction:i.direction});null!==e&&u(e,n);break}case"ArrowUp":g>0&&d(f,g-1,n);break;case"PageDown":null!==h&&s(f,p(Math.min(0+r,h)));break;case"Home":u(0,n);break;case"End":u(m,n);break;case"Enter":(n.ctrlKey||n.metaKey)&&t.current.toggleColumnMenu(e.field);break;case" ":break;default:b=!1}b&&n.preventDefault()}),[t,l.length,a,c,s,p,i.direction,u,d]),h=e.useCallback(((e,n)=>{if(!t.current.getRootDimensions())return;const o=Og(t)===e.field,r=kg(t)===e.field;if(o||r||!Wp(n.key))return;const a=t.current.getViewportPageSize(),d=e.field?t.current.getColumnIndex(e.field):0,f=l.length-1,h=es(t).length-1;let m=!0;switch(n.key){case"ArrowDown":{const e=p(0);null!=e&&s(d,e);break}case"ArrowRight":{const e=Zk({currentColIndex:d,firstColIndex:0,lastColIndex:h,direction:i.direction});null!==e&&c(e,n);break}case"ArrowLeft":{const o=Yk({currentColIndex:d,firstColIndex:0,lastColIndex:h,direction:i.direction});null!==o?c(o,n):t.current.setColumnHeaderFilterFocus(e.field,n);break}case"ArrowUp":u(d,n);break;case"PageDown":null!==f&&s(d,p(Math.min(0+a,f)));break;case"Home":c(0,n);break;case"End":c(h,n);break;case" ":break;default:m=!1}m&&n.preventDefault()}),[t,l.length,c,i.direction,u,s,p]),m=e.useCallback(((e,n)=>{if(!t.current.getRootDimensions())return;const o=$s(t);if(null===o)return;const{field:r,depth:i}=o,{fields:a,depth:c,maxDepth:f}=e,h=t.current.getViewportPageSize(),m=t.current.getColumnIndex(r),g=r?t.current.getColumnIndex(r):0,b=l.length-1,v=es(t).length-1;let y=!0;switch(n.key){case"ArrowDown":c===f-1?u(m,n):d(m,i+1,n);break;case"ArrowUp":c>0&&d(m,i-1,n);break;case"ArrowRight":{const e=a.length-a.indexOf(r)-1;m+e+1<=v&&d(m+e+1,i,n);break}case"ArrowLeft":{const e=a.indexOf(r);m-e-1>=0&&d(m-e-1,i,n);break}case"PageDown":null!==b&&s(g,p(Math.min(0+h,b)));break;case"Home":d(0,i,n);break;case"End":d(v,i,n);break;case" ":break;default:y=!1}y&&n.preventDefault()}),[t,l.length,u,d,s,p]),g=e.useCallback(((e,n)=>{if(!n.currentTarget.contains(n.target))return;const o=t.current.getCellParams(e.id,e.field);if(o.cellMode===xu.Edit||!Wp(n.key)||!t.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:n,cell:o}))return;const r=t.current.getRootDimensions();if(0===l.length||!r)return;const d=i.direction,f=t.current.getViewportPageSize(),h=e.field?t.current.getColumnIndex(e.field):0,m=l.findIndex((t=>t.id===e.id)),g=l.length-1,b=es(t).length-1;let v=!0;switch(n.key){case"ArrowDown":m<g&&s(h,p(m+1));break;case"ArrowUp":m>0?s(h,p(m-1)):a?c(h,n):u(h,n);break;case"ArrowRight":{const e=Zk({currentColIndex:h,firstColIndex:0,lastColIndex:b,direction:d});null!==e&&s(e,p(m),"rtl"===d?"left":"right");break}case"ArrowLeft":{const e=Yk({currentColIndex:h,firstColIndex:0,lastColIndex:b,direction:d});null!==e&&s(e,p(m),"rtl"===d?"right":"left");break}case"Tab":n.shiftKey&&h>0?s(h-1,p(m),"left"):!n.shiftKey&&h<b&&s(h+1,p(m),"right");break;case" ":{if(e.field===NO)break;const t=e.colDef;if(t&&"treeDataGroup"===t.type)break;!n.shiftKey&&m<g&&s(h,p(Math.min(m+f,g)));break}case"PageDown":m<g&&s(h,p(Math.min(m+f,g)));break;case"PageUp":{const e=Math.max(m-f,0);e!==m&&e>=0?s(h,p(e)):u(h,n);break}case"Home":n.ctrlKey||n.metaKey||n.shiftKey?s(0,p(0)):s(0,p(m));break;case"End":n.ctrlKey||n.metaKey||n.shiftKey?s(b,p(g)):s(b,p(m));break;default:v=!1}v&&n.preventDefault()}),[t,l,i.direction,s,p,a,c,u]),b=e.useCallback(((e,{event:t})=>" "!==t.key&&e),[]);GO(t,"canStartEditing",b),Lm(t,"columnHeaderKeyDown",f),Lm(t,"headerFilterKeyDown",h),Lm(t,"columnGroupHeaderKeyDown",m),Lm(t,"cellKeyDown",g)},Qk=(e,t)=>{var n,o,r;const i=Ie({},Qm(t.autoPageSize),null!=(n=t.paginationModel)?n:null==(o=t.initialState)||null==(r=o.pagination)?void 0:r.paginationModel);return Jm(i.pageSize,t.signature),Ie({},e,{pagination:{paginationModel:i}})},Jk=(e,t,n)=>o=>{var r;let i=o.paginationModel;const l=null!=(r=null==n?void 0:n.pageSize)?r:i.pageSize,a=Zm(e,l);n&&((null==n?void 0:n.page)!==i.page||(null==n?void 0:n.pageSize)!==i.pageSize)&&(i=n);const s=((e,t=0)=>0===t?e:Math.max(Math.min(e,t-1),0))(i.page,a);return s!==i.page&&(i=Ie({},i,{page:s})),Jm(i.pageSize,t),{paginationModel:i}},eS=(e,t)=>{var n,o;return Ie({},e,{preferencePanel:null!=(n=null==(o=t.initialState)?void 0:o.preferencePanel)?n:{open:!1}})},tS=["id","field"],nS=["id","field"],oS=Sa(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),rS=["id"],iS=["id"],lS=Sa(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),aS=e=>Ie({},e,{editRows:{}}),sS=(t,n)=>{((t,n)=>{const[o,r]=e.useState({}),i=e.useRef(o),l=e.useRef({}),{processRowUpdate:a,onProcessRowUpdateError:s,cellModesModel:u,onCellModesModelChange:c}=n,d=e=>(...t)=>{n.editMode===wu.Cell&&e(...t)},p=e.useCallback(((e,n)=>{const o=t.current.getCellParams(e,n);if(!t.current.isCellEditable(o))throw new Error(`MUI: The cell with id=${e} and field=${n} is not editable.`)}),[t]),f=e.useCallback(((e,n,o)=>{if(t.current.getCellMode(e,n)!==o)throw new Error(`MUI: The cell with id=${e} and field=${n} is not in ${o} mode.`)}),[t]),h=e.useCallback(((e,n)=>{if(!e.isEditable||e.cellMode===xu.Edit)return;const o=Ie({},e,{reason:ku.cellDoubleClick});t.current.publishEvent("cellEditStart",o,n)}),[t]),m=e.useCallback(((e,n)=>{if(e.cellMode===xu.View||t.current.getCellMode(e.id,e.field)===xu.View)return;const o=Ie({},e,{reason:Su.cellFocusOut});t.current.publishEvent("cellEditStop",o,n)}),[t]),g=e.useCallback(((e,n)=>{if(e.cellMode===xu.Edit){if(229===n.which)return;let o;if("Escape"===n.key?o=Su.escapeKeyDown:"Enter"===n.key?o=Su.enterKeyDown:"Tab"===n.key&&(o=n.shiftKey?Su.shiftTabKeyDown:Su.tabKeyDown,n.preventDefault()),o){const r=Ie({},e,{reason:o});t.current.publishEvent("cellEditStop",r,n)}}else if(e.isEditable){let o;if(!t.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:n,cellParams:e,editMode:"cell"}))return;if(Up(n)||(n.ctrlKey||n.metaKey)&&"v"===n.key?o=ku.printableKeyDown:"Enter"===n.key?o=ku.enterKeyDown:("Delete"===n.key||"Backspace"===n.key)&&(o=ku.deleteKeyDown),o){const r=Ie({},e,{reason:o,key:n.key});t.current.publishEvent("cellEditStart",r,n)}}}),[t]),b=e.useCallback((n=>{const{id:o,field:r,reason:i,key:l,colDef:a}=n,s={id:o,field:r};if(i===ku.printableKeyDown)if(e.version.startsWith("17"))s.deleteValue=!0;else{const e=a.valueParser?a.valueParser(l):l;s.initialValue=e}else i===ku.deleteKeyDown&&(s.deleteValue=!0);t.current.startCellEditMode(s)}),[t]),v=e.useCallback((e=>{const{id:n,field:o,reason:r}=e;let i;t.current.runPendingEditCellValueMutation(n,o),r===Su.enterKeyDown?i="below":r===Su.tabKeyDown?i="right":r===Su.shiftTabKeyDown&&(i="left");const l="escapeKeyDown"===r;t.current.stopCellEditMode({id:n,field:o,ignoreModifications:l,cellToFocusAfter:i})}),[t]);Lm(t,"cellDoubleClick",d(h)),Lm(t,"cellFocusOut",d(m)),Lm(t,"cellKeyDown",d(g)),Lm(t,"cellEditStart",d(b)),Lm(t,"cellEditStop",d(v)),$m(t,"cellEditStart",n.onCellEditStart),$m(t,"cellEditStop",n.onCellEditStop);const y=e.useCallback(((e,n)=>{const o=PO(t.current.state);return o[e]&&o[e][n]?xu.Edit:xu.View}),[t]),w=Dt((e=>{const o=e!==n.cellModesModel;c&&o&&c(e,{}),(!n.cellModesModel||!o)&&(r(e),i.current=e,t.current.publishEvent("cellModesModelChange",e))})),x=e.useCallback(((e,t,n)=>{const o=Ie({},i.current);if(null!==n)o[e]=Ie({},o[e],{[t]:Ie({},n)});else{const n=De(o[e],[t].map(WO));o[e]=n,0===Object.keys(o[e]).length&&delete o[e]}w(o)}),[w]),C=e.useCallback(((e,n,o)=>{t.current.setState((t=>{const r=Ie({},t.editRows);return null!==o?r[e]=Ie({},r[e],{[n]:Ie({},o)}):(delete r[e][n],0===Object.keys(r[e]).length&&delete r[e]),Ie({},t,{editRows:r})})),t.current.forceUpdate()}),[t]),O=e.useCallback((e=>{const{id:t,field:n}=e,o=De(e,tS);p(t,n),f(t,n,xu.View),x(t,n,Ie({mode:xu.Edit},o))}),[p,f,x]),k=Dt((e=>{const{id:n,field:o,deleteValue:r,initialValue:i}=e;let l=t.current.getCellValue(n,o),a=!1;(r||i)&&(l=r?"":i,a=!0),C(n,o,{value:l,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:a}),t.current.setCellFocus(n,o)})),S=e.useCallback((e=>{const{id:t,field:n}=e,o=De(e,nS);f(t,n,xu.Edit),x(t,n,Ie({mode:xu.View},o))}),[f,x]),E=Dt((async e=>{const{id:n,field:o,ignoreModifications:r,cellToFocusAfter:i="none"}=e;f(n,o,xu.Edit),t.current.runPendingEditCellValueMutation(n,o);const u=()=>{C(n,o,null),x(n,o,null),"none"!==i&&t.current.moveFocusToRelativeCell(n,o,i)};if(r)return void u();const c=PO(t.current.state),{error:d,isProcessingProps:p}=c[n][o];if(d||p)return l.current[n][o].mode=xu.Edit,void x(n,o,{mode:xu.Edit});const h=t.current.getRowWithUpdatedValuesFromCellEditing(n,o);if(a){const e=e=>{l.current[n][o].mode=xu.Edit,x(n,o,{mode:xu.Edit}),s?s(e):oS()};try{const o=t.current.getRow(n);Promise.resolve(a(h,o)).then((e=>{t.current.updateRows([e]),u()})).catch(e)}catch(t){e(t)}}else t.current.updateRows([h]),u()})),R={setCellEditingEditCellValue:e.useCallback((async e=>{var n,o;const{id:r,field:i,value:l,debounceMs:a,unstable_skipValueParser:s}=e;p(r,i),f(r,i,xu.Edit);const u=t.current.getColumn(i),c=t.current.getRow(r);let d=l;u.valueParser&&!s&&(d=u.valueParser(l,t.current.getCellParams(r,i)));let h=PO(t.current.state),m=Ie({},h[r][i],{value:d,changeReason:a?"debouncedSetEditCellValue":"setEditCellValue"});if(u.preProcessEditCellProps){const e=l!==h[r][i].value;m=Ie({},m,{isProcessingProps:!0}),C(r,i,m),m=await Promise.resolve(u.preProcessEditCellProps({id:r,row:c,props:m,hasChanged:e}))}return t.current.getCellMode(r,i)!==xu.View&&(h=PO(t.current.state),m=Ie({},m,{isProcessingProps:!1}),m.value=u.preProcessEditCellProps?h[r][i].value:d,C(r,i,m),h=PO(t.current.state),!(null!=(n=h[r])&&null!=(o=n[i])&&o.error))}),[t,p,f,C]),getRowWithUpdatedValuesFromCellEditing:e.useCallback(((e,n)=>{const o=t.current.getColumn(n),r=PO(t.current.state),i=t.current.getRow(e);if(!r[e]||!r[e][n])return t.current.getRow(e);const{value:l}=r[e][n];return o.valueSetter?o.valueSetter({value:l,row:i}):Ie({},i,{[n]:l})}),[t])};Mu(t,{getCellMode:y,startCellEditMode:O,stopCellEditMode:S},"public"),Mu(t,R,"private"),e.useEffect((()=>{u&&w(u)}),[u,w]),e.useEffect((()=>{const e=ds(t),n=l.current;l.current=Km(o),Object.entries(o).forEach((([t,o])=>{Object.entries(o).forEach((([o,r])=>{var i,l,a;const s=(null==(i=n[t])||null==(l=i[o])?void 0:l.mode)||xu.View,u=null!=(a=e[t])?a:t;r.mode===xu.Edit&&s===xu.View?k(Ie({id:u,field:o},r)):r.mode===xu.View&&s===xu.Edit&&E(Ie({id:u,field:o},r))}))}))}),[t,o,k,E])})(t,n),((t,n)=>{const[o,r]=e.useState({}),i=e.useRef(o),l=e.useRef({}),a=e.useRef(null),s=e.useRef(null),{processRowUpdate:u,onProcessRowUpdateError:c,rowModesModel:d,onRowModesModelChange:p}=n,f=e=>(...t)=>{n.editMode===wu.Row&&e(...t)},h=e.useCallback(((e,n)=>{const o=t.current.getCellParams(e,n);if(!t.current.isCellEditable(o))throw new Error(`MUI: The cell with id=${e} and field=${n} is not editable.`)}),[t]),m=e.useCallback(((e,n)=>{if(t.current.getRowMode(e)!==n)throw new Error(`MUI: The row with id=${e} is not in ${n} mode.`)}),[t]),g=e.useCallback(((e,n)=>{if(!e.isEditable||t.current.getRowMode(e.id)===Cu.Edit)return;const o=Ie({},t.current.getRowParams(e.id),{field:e.field,reason:Eu.cellDoubleClick});t.current.publishEvent("rowEditStart",o,n)}),[t]),b=e.useCallback((e=>{s.current=e}),[]),v=e.useCallback(((e,n)=>{e.isEditable&&t.current.getRowMode(e.id)!==Cu.View&&(s.current=null,a.current=setTimeout((()=>{var o;if(a.current=null,(null==(o=s.current)?void 0:o.id)!==e.id){if(!t.current.getRow(e.id)||t.current.getRowMode(e.id)===Cu.View)return;const o=Ie({},t.current.getRowParams(e.id),{field:e.field,reason:Ru.rowFocusOut});t.current.publishEvent("rowEditStop",o,n)}})))}),[t]);e.useEffect((()=>()=>{clearTimeout(a.current)}),[]);const y=e.useCallback(((e,n)=>{if(e.cellMode===Cu.Edit){if(229===n.which)return;let o;if("Escape"===n.key)o=Ru.escapeKeyDown;else if("Enter"===n.key)o=Ru.enterKeyDown;else if("Tab"===n.key){const r=ts(t).filter((n=>t.current.getColumn(n).type===RO||t.current.isCellEditable(t.current.getCellParams(e.id,n))));if(n.shiftKey?e.field===r[0]&&(o=Ru.shiftTabKeyDown):e.field===r[r.length-1]&&(o=Ru.tabKeyDown),n.preventDefault(),!o){const o=r.findIndex((t=>t===e.field)),i=r[n.shiftKey?o-1:o+1];t.current.setCellFocus(e.id,i)}}if(o){const r=Ie({},t.current.getRowParams(e.id),{reason:o,field:e.field});t.current.publishEvent("rowEditStop",r,n)}}else if(e.isEditable){let o;if(!t.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:n,cellParams:e,editMode:"row"}))return;if(Up(n)||(n.ctrlKey||n.metaKey)&&"v"===n.key?o=Eu.printableKeyDown:"Enter"===n.key?o=Eu.enterKeyDown:("Delete"===n.key||"Backspace"===n.key)&&(o=Eu.deleteKeyDown),o){const r=Ie({},t.current.getRowParams(e.id),{field:e.field,key:n.key,reason:o});t.current.publishEvent("rowEditStart",r,n)}}}),[t]),w=e.useCallback((n=>{const{id:o,field:r,reason:i,key:l,columns:a}=n,s={id:o,fieldToFocus:r};if(i===Eu.printableKeyDown)if(e.version.startsWith("17"))s.deleteValue=!!r;else{const e=a.find((e=>e.field===r));s.initialValue=e.valueParser?e.valueParser(l):l}else i===Eu.deleteKeyDown&&(s.deleteValue=!!r);t.current.startRowEditMode(s)}),[t]),x=e.useCallback((e=>{const{id:n,reason:o,field:r}=e;let i;t.current.runPendingEditCellValueMutation(n),o===Ru.enterKeyDown?i="below":o===Ru.tabKeyDown?i="right":o===Ru.shiftTabKeyDown&&(i="left");const l="escapeKeyDown"===o;t.current.stopRowEditMode({id:n,ignoreModifications:l,field:r,cellToFocusAfter:i})}),[t]);Lm(t,"cellDoubleClick",f(g)),Lm(t,"cellFocusIn",f(b)),Lm(t,"cellFocusOut",f(v)),Lm(t,"cellKeyDown",f(y)),Lm(t,"rowEditStart",f(w)),Lm(t,"rowEditStop",f(x)),$m(t,"rowEditStart",n.onRowEditStart),$m(t,"rowEditStop",n.onRowEditStop);const C=e.useCallback((e=>{if(n.editMode===wu.Cell)return Cu.View;const o=PO(t.current.state);return o[e]&&Object.keys(o[e]).length>0?Cu.Edit:Cu.View}),[t,n.editMode]),O=Dt((e=>{const o=e!==n.rowModesModel;p&&o&&p(e,{}),(!n.rowModesModel||!o)&&(r(e),i.current=e,t.current.publishEvent("rowModesModelChange",e))})),k=e.useCallback(((e,t)=>{const n=Ie({},i.current);null!==t?n[e]=Ie({},t):delete n[e],O(n)}),[O]),S=e.useCallback(((e,n)=>{t.current.setState((t=>{const o=Ie({},t.editRows);return null!==n?o[e]=n:delete o[e],Ie({},t,{editRows:o})})),t.current.forceUpdate()}),[t]),E=e.useCallback(((e,n,o)=>{t.current.setState((t=>{const r=Ie({},t.editRows);return null!==o?r[e]=Ie({},r[e],{[n]:Ie({},o)}):(delete r[e][n],0===Object.keys(r[e]).length&&delete r[e]),Ie({},t,{editRows:r})})),t.current.forceUpdate()}),[t]),R=e.useCallback((e=>{const{id:t}=e,n=De(e,rS);m(t,Cu.View),k(t,Ie({mode:Cu.Edit},n))}),[m,k]),T=Dt((e=>{const{id:n,fieldToFocus:o,deleteValue:r,initialValue:i}=e,l=Za(t).reduce(((e,l)=>{if(!t.current.getCellParams(n,l).isEditable)return e;let a=t.current.getCellValue(n,l),s=!1;return o===l&&(r||i)&&(a=r?"":i,s=!0),e[l]={value:a,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:s},e}),{});S(n,l),o&&t.current.setCellFocus(n,o)})),N=e.useCallback((e=>{const{id:t}=e,n=De(e,iS);m(t,Cu.Edit),k(t,Ie({mode:Cu.View},n))}),[m,k]),P=Dt((e=>{const{id:n,ignoreModifications:o,field:r,cellToFocusAfter:i="none"}=e;t.current.runPendingEditCellValueMutation(n);const a=()=>{"none"!==i&&r&&t.current.moveFocusToRelativeCell(n,r,i),S(n,null),k(n,null)};if(o)return void a();const s=PO(t.current.state),d=t.current.getRow(n);if(Object.values(s[n]).some((e=>e.isProcessingProps)))return void(l.current[n].mode=Cu.Edit);if(Object.values(s[n]).some((e=>e.error)))return l.current[n].mode=Cu.Edit,void k(n,{mode:Cu.Edit});const p=t.current.getRowWithUpdatedValuesFromRowEditing(n);if(u){const e=e=>{l.current[n].mode=Cu.Edit,k(n,{mode:Cu.Edit}),c?c(e):lS()};try{Promise.resolve(u(p,d)).then((e=>{t.current.updateRows([e]),a()})).catch(e)}catch(t){e(t)}}else t.current.updateRows([p]),a()})),M={setRowEditingEditCellValue:e.useCallback((e=>{const{id:n,field:o,value:r,debounceMs:i,unstable_skipValueParser:l}=e;h(n,o);const a=t.current.getColumn(o),s=t.current.getRow(n);let u=r;a.valueParser&&!l&&(u=a.valueParser(r,t.current.getCellParams(n,o)));let c=PO(t.current.state),d=Ie({},c[n][o],{value:u,changeReason:i?"debouncedSetEditCellValue":"setEditCellValue"});return a.preProcessEditCellProps||E(n,o,d),new Promise((e=>{const r=[];if(a.preProcessEditCellProps){const i=d.value!==c[n][o].value;d=Ie({},d,{isProcessingProps:!0}),E(n,o,d);const l=De(c[n],[o].map(WO)),p=Promise.resolve(a.preProcessEditCellProps({id:n,row:s,props:d,hasChanged:i,otherFieldsProps:l})).then((r=>{t.current.getRowMode(n)!==Cu.View?(c=PO(t.current.state),(r=Ie({},r,{isProcessingProps:!1})).value=a.preProcessEditCellProps?c[n][o].value:u,E(n,o,r)):e(!1)}));r.push(p)}Object.entries(c[n]).forEach((([i,l])=>{if(i===o)return;const a=t.current.getColumn(i);if(!a.preProcessEditCellProps)return;l=Ie({},l,{isProcessingProps:!0}),E(n,i,l),c=PO(t.current.state);const u=De(c[n],[i].map(WO)),d=Promise.resolve(a.preProcessEditCellProps({id:n,row:s,props:l,hasChanged:!1,otherFieldsProps:u})).then((o=>{t.current.getRowMode(n)!==Cu.View?(o=Ie({},o,{isProcessingProps:!1}),E(n,i,o)):e(!1)}));r.push(d)})),Promise.all(r).then((()=>{t.current.getRowMode(n)===Cu.Edit?(c=PO(t.current.state),e(!c[n][o].error)):e(!1)}))}))}),[t,h,E]),getRowWithUpdatedValuesFromRowEditing:e.useCallback((e=>{const n=PO(t.current.state),o=t.current.getRow(e);if(!n[e])return t.current.getRow(e);let r=Ie({},o);return Object.entries(n[e]).forEach((([e,n])=>{const o=t.current.getColumn(e);o.valueSetter?r=o.valueSetter({value:n.value,row:r}):r[e]=n.value})),r}),[t])};Mu(t,{getRowMode:C,startRowEditMode:R,stopRowEditMode:N},"public"),Mu(t,M,"private"),e.useEffect((()=>{d&&O(d)}),[d,O]),e.useEffect((()=>{const e=ds(t),n=l.current;l.current=Km(o),Object.entries(o).forEach((([t,o])=>{var r,i;const l=(null==(r=n[t])?void 0:r.mode)||Cu.View,a=null!=(i=e[t])?i:t;o.mode===Cu.Edit&&l===Cu.View?T(Ie({id:a},o)):o.mode===Cu.View&&l===Cu.Edit&&P(Ie({id:a},o))}))}),[t,o,T,P])})(t,n);const o=e.useRef({}),{isCellEditable:r}=n,i=e.useCallback((e=>!(su(e.rowNode)||!e.colDef.editable||!e.colDef.renderEditCell)&&(!r||r(e))),[r]);e.useEffect((()=>{const e=o.current;return()=>{Object.entries(e).forEach((([t,n])=>{Object.keys(n).forEach((n=>{const[o]=e[t][n];clearTimeout(o),delete e[t][n]}))}))}}),[]);const l=e.useCallback(((e,t)=>{if(o.current[e])if(t){if(o.current[e][t]){const[,n]=o.current[e][t];n()}}else Object.keys(o.current[e]).forEach((t=>{const[,n]=o.current[e][t];n()}))}),[]),a=e.useCallback((e=>{const{id:r,field:i,debounceMs:l}=e;return new Promise((a=>{((e,t,n,r)=>{if(!n)return void r();if(o.current[e]||(o.current[e]={}),o.current[e][t]){const[n]=o.current[e][t];clearTimeout(n)}const i=setTimeout((()=>{r(),delete o.current[e][t]}),n);o.current[e][t]=[i,()=>{const[n]=o.current[e][t];clearTimeout(n),r(),delete o.current[e][t]}]})(r,i,l,(async()=>{const o=n.editMode===wu.Row?t.current.setRowEditingEditCellValue:t.current.setCellEditingEditCellValue;if(t.current.getCellMode(r,i)===xu.Edit){const t=await o(e);a(t)}}))}))}),[t,n.editMode]),s=e.useCallback(((e,o)=>n.editMode===wu.Cell?t.current.getRowWithUpdatedValuesFromCellEditing(e,o):t.current.getRowWithUpdatedValuesFromRowEditing(e)),[t,n.editMode]),u=e.useCallback(((e,n)=>{var o,r;return null!=(o=null==(r=PO(t.current.state)[e])?void 0:r[n])?o:null}),[t]),c={runPendingEditCellValueMutation:l};Mu(t,{isCellEditable:i,setEditCellValue:a,getRowWithUpdatedValues:s,unstable_getEditCellMeta:u},"public"),Mu(t,c,"private")},uS=(e,t,n)=>(n.current.caches.rows=iu({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),Ie({},e,{rows:au({apiRef:n,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:null,previousTreeDepths:null})})),cS=(t,n)=>{if("production"!==process.env.NODE_ENV)try{Object.freeze(n.rows)}catch{}const o=zm(t,"useGridRows"),r=mO(t,n),i=e.useRef(Date.now()),l=e.useRef(null),a=e.useCallback((e=>{const n=cs(t)[e];if(n)return n;const o=t.current.getRowNode(e);return o&&su(o)?{[ou]:e}:null}),[t]),s=e.useMemo((()=>r.rows.reduce(((e,{id:t},n)=>(e[t]=n,e)),{})),[r.rows]),u=e.useCallback((({cache:e,throttle:o})=>{const r=()=>{l.current=null,i.current=Date.now(),t.current.setState((e=>Ie({},e,{rows:au({apiRef:t,rowCountProp:n.rowCount,loadingProp:n.loading,previousTree:ps(t),previousTreeDepths:hs(t)})}))),t.current.publishEvent("rowsSet"),t.current.forceUpdate()};if(l.current&&(clearTimeout(l.current),l.current=null),t.current.caches.rows=e,!o)return void r();const a=n.throttleRowsMs-(Date.now()-i.current);a>0?l.current=setTimeout(r,a):r()}),[n.throttleRowsMs,n.rowCount,n.loading,t]),c=e.useCallback((e=>{o.debug(`Updating all rows, new length ${e.length}`);const r=iu({rows:e,getRowId:n.getRowId,loading:n.loading,rowCount:n.rowCount}),i=t.current.caches.rows;r.rowsBeforePartialUpdates=i.rowsBeforePartialUpdates,u({cache:r,throttle:!0})}),[o,n.getRowId,n.loading,n.rowCount,u,t]),d=e.useCallback((e=>{if(n.signature===Fm.DataGrid&&e.length>1)throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n"));const o=[];e.forEach((e=>{const r=ru(e,n.getRowId,"A row was provided without id when calling updateRows():"),i=t.current.getRowNode(r);if("pinnedRow"===(null==i?void 0:i.type)){const n=t.current.caches.pinnedRows,o=n.idLookup[r];o&&(n.idLookup[r]=Ie({},o,e))}else o.push(e)}));const r=(({previousCache:e,getRowId:t,updates:n})=>{var o,r,i;if("full"===e.updates.type)throw new Error("MUI: Unable to prepare a partial update if a full update is not applied yet");const l=new Map;n.forEach((e=>{const n=ru(e,t,"A row was provided without id when calling updateRows():");l.has(n)?l.set(n,Ie({},l.get(n),e)):l.set(n,e)}));const a={type:"partial",actions:{insert:[...null!=(o=e.updates.actions.insert)?o:[]],modify:[...null!=(r=e.updates.actions.modify)?r:[]],remove:[...null!=(i=e.updates.actions.remove)?i:[]]},idToActionLookup:Ie({},e.updates.idToActionLookup)},s=Ie({},e.dataRowIdToModelLookup),u=Ie({},e.dataRowIdToIdLookup),c={insert:{},modify:{},remove:{}};l.forEach(((e,t)=>{const n=a.idToActionLookup[t];if("delete"===e._action){if("remove"===n||!s[t])return;return null!=n&&(c[n][t]=!0),a.actions.remove.push(t),delete s[t],void delete u[t]}const o=s[t];if(o)return"remove"===n?(c.remove[t]=!0,a.actions.modify.push(t)):null==n&&a.actions.modify.push(t),void(s[t]=Ie({},o,e));"remove"===n?(c.remove[t]=!0,a.actions.insert.push(t)):null==n&&a.actions.insert.push(t),s[t]=e,u[t]=t}));const d=Object.keys(c);for(let e=0;e<d.length;e+=1){const t=d[e],n=c[t];Object.keys(n).length>0&&(a.actions[t]=a.actions[t].filter((e=>!n[e])))}return{dataRowIdToModelLookup:s,dataRowIdToIdLookup:u,updates:a,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}})({updates:o,getRowId:n.getRowId,previousCache:t.current.caches.rows});u({cache:r,throttle:!0})}),[n.signature,n.getRowId,u,t]),p=e.useCallback((()=>{const e=gs(t),n=cs(t);return new Map(e.map((e=>{var t;return[e,null!=(t=n[e])?t:{}]})))}),[t]),f=e.useCallback((()=>as(t)),[t]),h=e.useCallback((()=>gs(t)),[t]),m=e.useCallback((e=>s[e]),[s]),g=e.useCallback(((e,n)=>{const o=t.current.getRowNode(e);if(!o)throw new Error(`MUI: No row with id #${e} found`);if("group"!==o.type)throw new Error("MUI: Only group nodes can be expanded or collapsed");const r=Ie({},o,{childrenExpanded:n});t.current.setState((t=>Ie({},t,{rows:Ie({},t.rows,{tree:Ie({},t.rows.tree,{[e]:r})})}))),t.current.forceUpdate(),t.current.publishEvent("rowExpansionChange",r)}),[t]),b=e.useCallback((e=>{var n;return null!=(n=ps(t)[e])?n:null}),[t]),v=e.useCallback((({skipAutoGeneratedRows:e=!0,groupId:n,applySorting:o,applyFiltering:r})=>{const i=ps(t);let l;if(o){const o=i[n];if(!o)return[];const r=xs(t);l=[];const a=r.findIndex((e=>e===n))+1;for(let t=a;t<r.length&&i[r[t]].depth>o.depth;t+=1){const n=r[t];(!e||!su(i[n]))&&l.push(n)}}else l=uu(i,n,e);if(r){const e=Rs(t);l=l.filter((t=>!1!==e[t]))}return l}),[t]),y=e.useCallback(((e,n)=>{const r=t.current.getRowNode(e);if(!r)throw new Error(`MUI: No row with id #${e} found`);if(r.parent!==nu)throw new Error("MUI: The row reordering do not support reordering of grouped rows yet");if("leaf"!==r.type)throw new Error("MUI: The row reordering do not support reordering of footer or grouping rows");t.current.setState((r=>{const i=ps(r,t.current.instanceId)[nu],l=i.children,a=l.findIndex((t=>t===e));if(-1===a||a===n)return r;o.debug(`Moving row ${e} to index ${n}`);const s=[...l];return s.splice(n,0,s.splice(a,1)[0]),Ie({},r,{rows:Ie({},r.rows,{tree:Ie({},r.rows.tree,{[nu]:Ie({},i,{children:s})})})})})),t.current.publishEvent("rowsSet")}),[t,o]),w={getRow:a,getRowModels:p,getRowsCount:f,getAllRowIds:h,setRows:c,updateRows:d,getRowNode:b,getRowIndexRelativeToVisibleRows:m,unstable_replaceRows:e.useCallback(((e,o)=>{if(n.signature===Fm.DataGrid&&o.length>1)throw new Error(["MUI: You can't replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n"));if(0===o.length)return;if(ms(t)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const r=Ie({},ps(t)),i=Ie({},cs(t)),l=Ie({},ds(t)),a=r[nu],s=[...a.children];for(let t=0;t<o.length;t+=1){const a=o[t],u=ru(a,n.getRowId,"A row was provided without id when calling replaceRows()."),[c]=s.splice(e+t,1,u);delete i[c],delete l[c],delete r[c];const d={id:u,depth:0,parent:nu,type:"leaf",groupingKey:null};i[u]=a,l[u]=u,r[u]=d}r[nu]=Ie({},a,{children:s});const u=s.filter((e=>"leaf"===r[e].type));t.current.caches.rows.dataRowIdToModelLookup=i,t.current.caches.rows.dataRowIdToIdLookup=l,t.current.setState((e=>Ie({},e,{rows:Ie({},e.rows,{dataRowIdToModelLookup:i,dataRowIdToIdLookup:l,dataRowIds:u,tree:r})}))),t.current.publishEvent("rowsSet")}),[t,n.signature,n.getRowId])},x={setRowIndex:y,setRowChildrenExpansion:g,getRowGroupChildren:v},C=e.useCallback((()=>{let e;o.info("Row grouping pre-processing have changed, regenerating the row tree"),e=t.current.caches.rows.rowsBeforePartialUpdates===n.rows?Ie({},t.current.caches.rows,{updates:{type:"full",rows:gs(t)}}):iu({rows:n.rows,getRowId:n.getRowId,loading:n.loading,rowCount:n.rowCount}),u({cache:e,throttle:!1})}),[o,t,n.rows,n.getRowId,n.loading,n.rowCount,u]),O=e.useCallback((e=>{"rowTreeCreation"===e&&C()}),[C]),k=e.useCallback((()=>{t.current.getActiveStrategy("rowTree")!==fs(t)&&C()}),[t,C]);Lm(t,"activeStrategyProcessorChange",O),Lm(t,"strategyAvailabilityChange",k);const S=e.useCallback((()=>{t.current.setState((e=>{const o=t.current.unstable_applyPipeProcessors("hydrateRows",{tree:ps(e,t.current.instanceId),treeDepths:hs(e,t.current.instanceId),dataRowIds:gs(e,t.current.instanceId),dataRowIdToModelLookup:cs(e,t.current.instanceId),dataRowIdToIdLookup:ds(e,t.current.instanceId)});return Ie({},e,{rows:Ie({},e.rows,o,{totalTopLevelRowCount:lu({tree:o.tree,rowCountProp:n.rowCount})})})})),t.current.publishEvent("rowsSet"),t.current.forceUpdate()}),[t,n.rowCount]);KO(t,"hydrateRows",S),Mu(t,w,"public"),Mu(t,x,n.signature===Fm.DataGrid?"private":"public"),e.useEffect((()=>()=>{null!==l.current&&clearTimeout(l.current)}),[]);const E=e.useRef(!0);e.useEffect((()=>{if(E.current)return void(E.current=!1);const e=t.current.caches.rows.rowsBeforePartialUpdates===n.rows,r=t.current.caches.rows.loadingPropBeforePartialUpdates===n.loading,i=t.current.caches.rows.rowCountPropBeforePartialUpdates===n.rowCount;if(e)return r||(t.current.setState((e=>Ie({},e,{rows:Ie({},e.rows,{loading:n.loading})}))),t.current.caches.rows.loadingPropBeforePartialUpdates=n.loading,t.current.forceUpdate()),void(i||(t.current.setState((e=>Ie({},e,{rows:Ie({},e.rows,{totalRowCount:Math.max(n.rowCount||0,e.rows.totalRowCount),totalTopLevelRowCount:Math.max(n.rowCount||0,e.rows.totalTopLevelRowCount)})}))),t.current.caches.rows.rowCountPropBeforePartialUpdates=n.rowCount,t.current.forceUpdate()));o.debug(`Updating all rows, new length ${n.rows.length}`),u({cache:iu({rows:n.rows,getRowId:n.getRowId,loading:n.loading,rowCount:n.rowCount}),throttle:!1})}),[n.rows,n.rowCount,n.getRowId,n.loading,o,u,t])},dS=e=>"full"===e.updates.type?(e=>{const t={[nu]:Ie({},{type:"group",id:nu,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null},{children:e})};for(let n=0;n<e.length;n+=1){const o=e[n];t[o]={id:o,depth:0,parent:nu,type:"leaf",groupingKey:null}}return{groupingName:ZO,tree:t,treeDepths:{0:e.length},dataRowIds:e}})(e.updates.rows):(({previousTree:e,actions:t})=>{const n=Ie({},e),o={};for(let e=0;e<t.remove.length;e+=1){const r=t.remove[e];o[r]=!0,delete n[r]}for(let e=0;e<t.insert.length;e+=1){const o=t.insert[e];n[o]={id:o,depth:0,parent:nu,type:"leaf",groupingKey:null}}const r=n[nu];let i=[...r.children,...t.insert];return Object.values(o).length&&(i=i.filter((e=>!o[e]))),n[nu]=Ie({},r,{children:i}),{groupingName:ZO,tree:n,treeDepths:{0:i.length},dataRowIds:i}})({previousTree:e.previousTree,actions:e.updates.actions}),pS=(e,t)=>null==e||Array.isArray(e)?e:t&&t[0]===e?t:[e],fS=(e,t)=>{var n;return Ie({},e,{rowSelection:t.rowSelection&&null!=(n=pS(t.rowSelectionModel))?n:[]})},hS={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorEquals:"Equals",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>1!==e?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"},mS=(t,n)=>{const o=(t=>{const{classes:n}=t;return e.useMemo((()=>en({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Ia,n)),[n])})({classes:n.classes}),r=e.useCallback((e=>{const r=Ie({},EO,{cellClassName:o.cellCheckbox,headerClassName:o.columnHeaderCheckbox,headerName:t.current.getLocaleText("checkboxSelectionHeaderName")}),i=n.checkboxSelection,l=null!=e.lookup[SO];return i&&!l?(e.lookup[SO]=r,e.orderedFields=[SO,...e.orderedFields]):!i&&l?(delete e.lookup[SO],e.orderedFields=e.orderedFields.filter((e=>e!==SO))):i&&l&&(e.lookup[SO]=Ie({},r,e.lookup[SO])),e}),[t,o,n.checkboxSelection]);GO(t,"hydrateColumns",r)},gS=(e,t)=>{var n,o,r,i;const l=null!=(n=null!=(o=t.sortModel)?o:null==(r=t.initialState)||null==(i=r.sorting)?void 0:i.sortModel)?n:[];return Ie({},e,{sorting:{sortModel:mg(l,t.disableMultipleColumnsSorting),sortedRows:[]}})};function bS(e){const{clientHeight:t,scrollTop:n,offsetHeight:o,offsetTop:r}=e,i=r+o;return o>t?r:i-t>n?i-t:r<n?r:void 0}const vS="test"===process.env.NODE_ENV;const yS=["style"],wS=["style"];function xS(e,t,n=0,o=t.length){if(t.length<=0)return-1;if(n>=o)return n;const r=n+Math.floor((o-n)/2);return e<=t[r]?xS(e,t,n,r):xS(e,t,r+1,o)}const CS=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:o,maxLastIndex:r})=>[Um(e-n,o,r),Um(t+n,o,r)],OS=(e,t)=>e===t||e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,kS={maxSize:3},SS=t=>{var n,o;const r=Ca(),i=wa(),l=_a(r,es),{ref:a,disableVirtualization:s,onRenderZonePositioning:u,renderZoneMinColumnIndex:c=0,renderZoneMaxColumnIndex:d=l.length,getRowProps:p}=t,f=mr(),h=_a(r,ns),m=_a(r,os),g=_a(r,Ls),b=_a(r,qs),v=_a(r,ug),y=_a(r,fg),w=mO(r,i),x=e.useRef(null),C=e.useRef(null),O=Ft(a,C),[k,S]=e.useState(null),E=e.useRef(k),R=e.useRef({top:0,left:0}),[T,N]=e.useState({width:null,height:null}),P=e.useRef(m),M=e.useRef(Object.create(null)),j=e.useRef(),_=e.useRef(),I=e.useRef($a(((e,t,n)=>e.slice(t,n)),kS)),D=e.useCallback((e=>{var t,n;const o=r.current.getLastMeasuredRowIndex();let i=o===1/0;null!=(t=w.range)&&t.lastRowIndex&&!i&&(i=o>=w.range.lastRowIndex);const l=Um(o-((null==(n=w.range)?void 0:n.firstRowIndex)||0),0,v.positions.length);return i||v.positions[l]>=e?xS(e,v.positions):function(e,t,n){let o=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=o,o*=2;return xS(e,t,Math.floor(n/2),Math.min(n,t.length))}(e,v.positions,l)}),[r,null==(n=w.range)?void 0:n.firstRowIndex,null==(o=w.range)?void 0:o.lastRowIndex,v.positions]),F=e.useCallback((()=>{if(s)return{firstRowIndex:0,lastRowIndex:w.rows.length,firstColumnIndex:0,lastColumnIndex:l.length};const{top:e,left:t}=R.current,n=Math.min(D(e),v.positions.length-1),o=i.autoHeight?n+w.rows.length:D(e+T.height);let a=!1,u=0,c=h.length;const[d,p]=CS({firstIndex:n,lastIndex:o,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:i.rowBuffer});for(let e=d;e<p&&!a;e+=1){const t=w.rows[e];a=r.current.rowHasAutoHeight(t.id)}return a||(u=xS(Math.abs(t),h),c=xS(Math.abs(t)+T.width,h)),{firstRowIndex:n,lastRowIndex:o,firstColumnIndex:u,lastColumnIndex:c}}),[s,D,v.positions.length,i.autoHeight,i.rowBuffer,w.rows,h,l.length,r,T]);Pt((()=>{s?x.current.style.transform="translate3d(0px, 0px, 0px)":(C.current.scrollLeft=0,C.current.scrollTop=0)}),[s]),Pt((()=>{N({width:C.current.clientWidth,height:C.current.clientHeight})}),[v.currentPageTotalHeight]);const A=e.useCallback((()=>{C.current&&N({width:C.current.clientWidth,height:C.current.clientHeight})}),[]);Lm(r,"debouncedResize",A);const L=e.useCallback((e=>{const[t,n]=CS({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:i.rowBuffer}),[o]=CS({firstIndex:e.firstColumnIndex,lastIndex:e.lastColumnIndex,minFirstIndex:c,maxLastIndex:d,buffer:i.columnBuffer}),l=kk({firstColumnToRender:o,apiRef:r,firstRowToRender:t,lastRowToRender:n,visibleRows:w.rows}),a="ltr"===f.direction?1:-1,s=ug(r.current.state).positions[t],p=a*ns(r)[l];x.current.style.transform=`translate3d(${p}px, ${s}px, 0px)`,"function"==typeof u&&u({top:s,left:p})}),[r,w.rows,u,c,d,i.columnBuffer,i.rowBuffer,f.direction]),V=e.useCallback((e=>{if(E.current&&OS(e,E.current))return void L(e);S(e),L(e);const[t,n]=CS({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:i.rowBuffer});r.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:t,lastRowToRender:n}),E.current=e}),[r,S,E,w.rows.length,i.rowBuffer,L]);Pt((()=>{if(null==T.width)return;const e=F();V(e);const{top:t,left:n}=R.current,o={top:t,left:n,renderContext:e};r.current.publishEvent("scrollPositionChange",o)}),[r,F,T.width,V]);const $=Dt((e=>{const{scrollTop:t,scrollLeft:n}=e.currentTarget;if(R.current.top=t,R.current.left=n,!E.current||t<0||"ltr"===f.direction&&n<0||"rtl"===f.direction&&n>0)return;const o=s?E.current:F(),l=Math.abs(o.firstRowIndex-E.current.firstRowIndex),a=Math.abs(o.lastRowIndex-E.current.lastRowIndex),u=Math.abs(o.firstColumnIndex-E.current.firstColumnIndex),c=Math.abs(o.lastColumnIndex-E.current.lastColumnIndex),d=l>=i.rowThreshold||a>=i.rowThreshold||u>=i.columnThreshold||c>=i.columnThreshold||P.current!==m;r.current.publishEvent("scrollPositionChange",{top:t,left:n,renderContext:d?o:E.current},e),d&&(se.flushSync((()=>{V(o)})),P.current=m)})),z=Dt((e=>{r.current.publishEvent("virtualScrollerWheel",{},e)})),q=Dt((e=>{r.current.publishEvent("virtualScrollerTouchMove",{},e)})),H=T.width&&m>=T.width,B=e.useMemo((()=>{const e=Math.max(v.currentPageTotalHeight,1);let t=!1;null!=C&&C.current&&e<=(null==C?void 0:C.current.clientHeight)&&(t=!0);const n={width:H?m:"auto",height:e,minHeight:t?"100%":"auto"};return i.autoHeight&&0===w.rows.length&&(n.height=du(r,i.rowHeight)),n}),[r,C,m,v.currentPageTotalHeight,H,i.autoHeight,i.rowHeight,w.rows.length]);e.useEffect((()=>{r.current.publishEvent("virtualScrollerContentSizeChange")}),[r,B]);const U=e.useMemo((()=>{const e={};return H||(e.overflowX="hidden"),i.autoHeight&&(e.overflowY="hidden"),e}),[H,i.autoHeight]),W=e.useCallback((()=>E.current),[]);return r.current.register("private",{getRenderContext:W}),{renderContext:k,updateRenderZonePosition:L,getRows:(e={renderContext:k})=>{var t;const{onRowRender:n,renderContext:o,minFirstColumn:a=c,maxLastColumn:u=d,availableSpace:f=T.width,rowIndexOffset:h=0,position:m="center"}=e;if(!o||null==f)return null;const v=s?0:i.rowBuffer,x=s?0:i.columnBuffer,[C,O]=CS({firstIndex:o.firstRowIndex,lastIndex:o.lastRowIndex,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:v}),S=[];if(e.rows)e.rows.forEach((e=>{S.push(e),r.current.calculateColSpan({rowId:e.id,minFirstColumn:a,maxLastColumn:u,columns:l})}));else{if(!w.range)return null;for(let e=C;e<O;e+=1){const t=w.rows[e];S.push(t),r.current.calculateColSpan({rowId:t.id,minFirstColumn:a,maxLastColumn:u,columns:l})}}const[E,R]=CS({firstIndex:o.firstColumnIndex,lastIndex:o.lastColumnIndex,minFirstIndex:a,maxLastIndex:u,buffer:x}),N=kk({firstColumnToRender:E,apiRef:r,firstRowToRender:C,lastRowToRender:O,visibleRows:w.rows}),P=I.current(l,N,R),D=(null==(t=i.slotProps)?void 0:t.row)||{},{style:F}=D,A=De(D,yS);(j.current!==p||_.current!==F)&&(M.current=Object.create(null));const L=[];for(let e=0;e<S.length;e+=1){var V;const{id:t,model:o}=S[e],a=C+e===w.rows.length-1,s=r.current.rowHasAutoHeight(t)?"auto":r.current.unstable_getRowHeight(t);let u;u=null!=y[t]&&r.current.isRowSelectable(t),n&&n(t);const c=null!==g&&g.id===t?g.field:null;let d=null;null!==b&&b.id===t&&(d="view"===r.current.getCellParams(t,b.field).cellMode?b.field:null);const v="function"==typeof p&&p(t,o)||{},{style:x}=v,O=De(v,wS);if(!M.current[t]){const e=Ie({},x,F);M.current[t]=e}L.push(Me.jsx(i.slots.row,Ie({row:o,rowId:t,rowHeight:s,focusedCell:c,tabbableCell:d,renderedColumns:P,visibleColumns:l,firstColumnToRender:N,lastColumnToRender:R,selected:u,index:h+((null==w||null==(V=w.range)?void 0:V.firstRowIndex)||0)+C+e,containerWidth:f,isLastVisible:a,position:m},O,A,{style:M.current[t]}),t))}return j.current=p,_.current=F,L},getRootProps:(e={})=>Ie({ref:O,onScroll:$,onWheel:z,onTouchMove:q},e,{style:e.style?Ie({},e.style,U):U}),getContentProps:({style:e}={})=>({style:e?Ie({},e,B):B}),getRenderZoneProps:()=>({ref:x})}};function ES(t){var n;const{groupId:o,width:r,depth:i,maxDepth:l,fields:a,height:s,colIndex:u,hasFocus:c,tabIndex:d,isLastColumn:p}=t,f=wa(),h=e.useRef(null),m=va(),g=_a(m,Zs),b=o?g[o]:{},{headerName:v=o??"",description:y="",headerAlign:w}=b;let x;const C=o&&(null==(n=g[o])?void 0:n.renderHeaderGroup),O=e.useMemo((()=>({groupId:o,headerName:v,description:y,depth:i,maxDepth:l,fields:a,colIndex:u,isLastColumn:p})),[o,v,y,i,l,a,u,p]);o&&C&&(x=C(O));const k=f.showColumnVerticalBorder,S=Ie({},t,{classes:f.classes,showColumnBorder:k,headerAlign:w,depth:i,isDragging:!1}),E=v??o,R=_t(),T=null===o?`empty-group-cell-${R}`:o,N=(e=>{const{classes:t,headerAlign:n,isDragging:o,showColumnBorder:r,groupId:i}=e;return en({root:["columnHeader","left"===n&&"columnHeader--alignLeft","center"===n&&"columnHeader--alignCenter","right"===n&&"columnHeader--alignRight",o&&"columnHeader--moving",r&&"columnHeader--showColumnBorder",r&&"columnHeader--withRightBorder","withBorderColor",null===i?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},Ia,t)})(S);e.useLayoutEffect((()=>{if(c){const e=h.current.querySelector('[tabindex="0"]')||h.current;null==e||e.focus()}}),[m,c]);const P=e.useCallback((e=>t=>{t.currentTarget.contains(t.target)&&m.current.publishEvent(e,O,t)}),[m,O]),M=e.useMemo((()=>({onKeyDown:P("columnGroupHeaderKeyDown"),onFocus:P("columnGroupHeaderFocus"),onBlur:P("columnGroupHeaderBlur")})),[P]),j="function"==typeof b.headerClassName?b.headerClassName(O):b.headerClassName;return Me.jsx(Mm,Ie({ref:h,classes:N,columnMenuOpen:!1,colIndex:u,height:s,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:d,isDraggable:!1,headerComponent:x,headerClassName:j,description:y,elementId:T,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:E,"aria-colspan":a.length,"data-fields":`|-${a.join("-|-")}-|`},M))}const RS=Ro("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})((()=>({display:"flex"})));const TS=["className"],NS=Ro("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({position:"relative",overflow:"hidden",display:"flex",alignItems:"center",boxSizing:"border-box",borderBottom:"1px solid",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),PS=e.forwardRef((function(e,t){const{className:n}=e,o=De(e,TS),r=wa(),i=(e=>{const{classes:t}=e;return en({root:["columnHeaders","withBorderColor"]},Ia,t)})(r);return Me.jsx(NS,Ie({ref:t,className:vo(n,i.root),ownerState:r},o))})),MS=["isDragging","className"],jS=Ro("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${Da.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})((()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${Da.columnHeaderDropZone} .${Da.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${Da["columnHeadersInner--scrollable"]} .${Da.columnHeader}:last-child`]:{borderRight:"none"}}))),_S=e.forwardRef((function(e,t){var n,o;const{isDragging:r,className:i}=e,l=De(e,MS),a=va(),s=Ie({},wa(),{isDragging:r,hasScrollX:null!=(n=null==(o=a.current.getRootDimensions())?void 0:o.hasScrollX)&&n}),u=(e=>{const{isDragging:t,hasScrollX:n,classes:o}=e;return en({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},Ia,o)})(s);return Me.jsx(jS,Ie({ref:t,className:vo(i,u.root),ownerState:s},l))})),IS=["innerRef","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnPositions","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","densityFactor","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],DS=e.forwardRef((function(t,n){const{innerRef:o,visibleColumns:r,sortColumnLookup:i,filterColumnLookup:l,columnPositions:a,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:u,columnHeaderFocus:c,columnGroupHeaderFocus:d,densityFactor:p,headerGroupingMaxDepth:f,columnMenuState:h,columnVisibility:m,columnGroupsHeaderStructure:g,hasOtherElementInTabSequence:b}=t,v=De(t,IS),{isDragging:y,getRootProps:w,getInnerProps:x,getColumnHeaders:C,getColumnGroupHeaders:O}=(t=>{const{innerRef:n,minColumnIndex:o=0,visibleColumns:r,sortColumnLookup:i,filterColumnLookup:l,columnPositions:a,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:u,columnHeaderFocus:c,columnGroupHeaderFocus:d,densityFactor:p,headerGroupingMaxDepth:f,columnMenuState:h,columnVisibility:m,columnGroupsHeaderStructure:g,hasOtherElementInTabSequence:b}=t,v=fo(),[y,w]=e.useState(""),[x,C]=e.useState(""),O=Ca(),k=wa(),S=e.useRef(null),E=Ft(n,S),[R,T]=e.useState(null),N=e.useRef(R),P=e.useRef(0),M=mO(O,k),j=Ek(O,k.columnHeaderHeight),_=Math.floor(k.columnHeaderHeight*p),I=e.useCallback((e=>{R&&e&&OS(R,e)||T(e)}),[R]);e.useEffect((()=>{O.current.columnHeadersContainerElementRef.current.scrollLeft=0}),[O]);const D=e.useRef($a(Sk,{equalityCheck:(e,t)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every((n=>e[n]===t[n]))})),F=e.useCallback((e=>{const[t,n]=CS({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:M.rows.length,buffer:k.rowBuffer}),r=D.current({firstColumnIndex:e.firstColumnIndex,minColumnIndex:o,columnBuffer:k.columnBuffer,firstRowToRender:t,lastRowToRender:n,apiRef:O,visibleRows:M.rows}),i="ltr"===v.direction?1:-1,l=r>0?P.current-i*a[r]:P.current;S.current.style.transform=`translate3d(${-l}px, 0px, 0px)`}),[a,o,k.columnBuffer,O,M.rows,k.rowBuffer,v.direction]);e.useLayoutEffect((()=>{R&&F(R)}),[R,F]);const A=e.useCallback((({left:e,renderContext:t=null},n)=>{var o,r;if(!S.current||P.current===e&&(null==(o=N.current)?void 0:o.firstColumnIndex)===(null==t?void 0:t.firstColumnIndex)&&(null==(r=N.current)?void 0:r.lastColumnIndex)===(null==t?void 0:t.lastColumnIndex))return;P.current=e;let i=!1;t===N.current&&N.current?i=!0:(function(e){return!!e.target}(n)?(se.flushSync((()=>{I(t)})),i=!0):I(t),N.current=t),t&&i&&F(t)}),[F,I]),L=e.useCallback((e=>C(e.field)),[]),V=e.useCallback((()=>C("")),[]),$=e.useCallback((e=>w(e.field)),[]),z=e.useCallback((()=>w("")),[]);Lm(O,"columnResizeStart",L),Lm(O,"columnResizeStop",V),Lm(O,"columnHeaderDragStart",$),Lm(O,"columnHeaderDragEnd",z),Lm(O,"scrollPositionChange",A);const q=e=>{const{renderContext:t=R,minFirstColumn:n=o,maxLastColumn:i=r.length}=e||{};if(!t)return null;const[l,a]=CS({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:M.rows.length,buffer:k.rowBuffer}),s=D.current({firstColumnIndex:t.firstColumnIndex,minColumnIndex:n,columnBuffer:k.columnBuffer,apiRef:O,firstRowToRender:l,lastRowToRender:a,visibleRows:M.rows}),u=Math.min(t.lastColumnIndex+k.columnBuffer,i);return{renderedColumns:r.slice(s,u),firstColumnToRender:s,lastColumnToRender:u,minFirstColumn:n,maxLastColumn:i}},H={minHeight:j,maxHeight:j,lineHeight:`${_}px`};return{renderContext:R,getColumnHeaders:(e,t={})=>{const n=q(e);if(null==n)return null;const{renderedColumns:o,firstColumnToRender:r}=n,a=[];for(let e=0;e<o.length;e+=1){const n=o[e],u=r+e,d=0===u,p=null!==s&&s.field===n.field||d&&!b?0:-1,f=null!==c&&c.field===n.field,m=h.open&&h.field===n.field;a.push(Me.jsx(jm,Ie({},i[n.field],{columnMenuOpen:m,filterItemsCounter:l[n.field]&&l[n.field].length,headerHeight:_,isDragging:n.field===y,colDef:n,colIndex:u,isResizing:x===n.field,hasFocus:f,tabIndex:p},t),n.field))}return Me.jsx(RS,{role:"row","aria-rowindex":f+1,ownerState:k,children:a})},getColumnsToRender:q,getColumnGroupHeaders:e=>{if(0===f)return null;const t=q(e);if(null==t||0===t.renderedColumns.length)return null;const{firstColumnToRender:n,lastColumnToRender:o}=t,i=[],l=[];for(let e=0;e<f;e+=1){var a,s;const t=g[e],i=r[n].field,c=null!=(a=O.current.unstable_getColumnGroupPath(i)[e])?a:null,p=t.findIndex((({groupId:e,columnFields:t})=>e===c&&t.includes(i))),f=r[o-1].field,h=null!=(s=O.current.unstable_getColumnGroupPath(f)[e])?s:null,b=t.findIndex((({groupId:e,columnFields:t})=>e===h&&t.includes(f))),v=t.slice(p,b+1).map((e=>Ie({},e,{columnFields:e.columnFields.filter((e=>!1!==m[e]))}))).filter((e=>e.columnFields.length>0)),y=v[0].columnFields.indexOf(i),w=v[0].columnFields.slice(0,y).reduce(((e,t)=>{var n;return e+(null!=(n=O.current.getColumn(t).computedWidth)?n:0)}),0);let x=n;const C=v.map((({groupId:t,columnFields:n})=>{const o=null!==d&&d.depth===e&&n.includes(d.field),r=null!==u&&u.depth===e&&n.includes(u.field)?0:-1,i={groupId:t,width:n.reduce(((e,t)=>e+O.current.getColumn(t).computedWidth),0),fields:n,colIndex:x,hasFocus:o,tabIndex:r};return x+=n.length,i}));l.push({leftOverflow:w,elements:C})}return l.forEach(((e,t)=>{i.push(Me.jsx(RS,{style:{height:`${_}px`,transform:`translateX(-${e.leftOverflow}px)`},role:"row","aria-rowindex":t+1,ownerState:k,children:e.elements.map((({groupId:e,width:n,fields:o,colIndex:i,hasFocus:a,tabIndex:s},u)=>Me.jsx(ES,{groupId:e,width:n,fields:o,colIndex:i,depth:t,isLastColumn:i===r.length-o.length,maxDepth:l.length,height:_,hasFocus:a,tabIndex:s},u)))},t))})),i},isDragging:!!y,getRootProps:(e={})=>Ie({style:H},e),getInnerProps:()=>({ref:E,role:"rowgroup"}),headerHeight:_}})({innerRef:o,visibleColumns:r,sortColumnLookup:i,filterColumnLookup:l,columnPositions:a,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:u,columnHeaderFocus:c,columnGroupHeaderFocus:d,densityFactor:p,headerGroupingMaxDepth:f,columnMenuState:h,columnVisibility:m,columnGroupsHeaderStructure:g,hasOtherElementInTabSequence:b});return Me.jsx(PS,Ie({ref:n},w(v),{children:Me.jsxs(_S,Ie({isDragging:y},x(),{children:[O(),C()]}))}))}));"production"!==process.env.NODE_ENV&&(DS.propTypes={columnGroupHeaderFocus:oe.shape({depth:oe.number.isRequired,field:oe.string.isRequired}),columnGroupHeaderTabIndexState:oe.shape({depth:oe.number.isRequired,field:oe.string.isRequired}),columnGroupsHeaderStructure:oe.arrayOf(oe.arrayOf(oe.shape({columnFields:oe.arrayOf(oe.string).isRequired,groupId:oe.string}))).isRequired,columnHeaderFocus:oe.shape({field:oe.string.isRequired}),columnHeaderTabIndexState:oe.shape({field:oe.string.isRequired}),columnMenuState:oe.shape({field:oe.string,open:oe.bool.isRequired}).isRequired,columnPositions:oe.arrayOf(oe.number).isRequired,columnVisibility:oe.object.isRequired,densityFactor:oe.number.isRequired,filterColumnLookup:oe.object.isRequired,hasOtherElementInTabSequence:oe.bool.isRequired,headerGroupingMaxDepth:oe.number.isRequired,innerRef:oe.oneOfType([oe.func,oe.shape({current:oe.object})]),minColumnIndex:oe.number,sortColumnLookup:oe.object.isRequired,visibleColumns:oe.arrayOf(oe.object).isRequired});const FS=bu(DS),AS=e.forwardRef((function(e,t){const n=va().current.getLocaleText("noResultsOverlayLabel");return Me.jsx(am,Ie({ref:t},e,{children:n}))})),LS=Fg(Me.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),VS=Fg(Me.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),$S=Fg(Me.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function zS(e){return ln("MuiCheckbox",e)}const qS=an("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),HS=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],BS=yp(_b,{shouldForwardProp:e=>bp(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${Ot(n.color)}`]]}})((({theme:e,ownerState:t})=>Ie({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Io("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${qS.checked}, &.${qS.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${qS.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),US=Me.jsx(VS,{}),WS=Me.jsx(LS,{}),GS=Me.jsx($S,{}),KS=e.forwardRef((function(t,n){var o,r;const i=wp({props:t,name:"MuiCheckbox"}),{checkedIcon:l=US,color:a="primary",icon:s=WS,indeterminate:u=!1,indeterminateIcon:c=GS,inputProps:d,size:p="medium",className:f}=i,h=De(i,HS),m=u?c:s,g=u?c:l,b=Ie({},i,{color:a,indeterminate:u,size:p}),v=(e=>{const{classes:t,indeterminate:n,color:o}=e;return Ie({},t,en({root:["root",n&&"indeterminate",`color${Ot(o)}`]},zS,t))})(b);return Me.jsx(BS,Ie({type:"checkbox",inputProps:Ie({"data-indeterminate":u},d),icon:e.cloneElement(m,{fontSize:null!=(o=m.props.fontSize)?o:p}),checkedIcon:e.cloneElement(g,{fontSize:null!=(r=g.props.fontSize)?r:p}),ownerState:b,ref:n,className:vo(v.root,f)},h,{classes:v}))}));"production"!==process.env.NODE_ENV&&(KS.propTypes={checked:oe.bool,checkedIcon:oe.node,classes:oe.object,className:oe.string,color:oe.oneOfType([oe.oneOf(["default","primary","secondary","error","info","success","warning"]),oe.string]),defaultChecked:oe.bool,disabled:oe.bool,disableRipple:oe.bool,icon:oe.node,id:oe.string,indeterminate:oe.bool,indeterminateIcon:oe.node,inputProps:oe.object,inputRef:Ct,onChange:oe.func,required:oe.bool,size:oe.oneOfType([oe.oneOf(["medium","small"]),oe.string]),sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object]),value:oe.any});const YS=KS;function ZS(e){return ln("MuiButton",e)}const XS=an("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),QS=e.createContext({});"production"!==process.env.NODE_ENV&&(QS.displayName="ButtonGroupContext");const JS=QS,eE=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],tE=e=>Ie({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),nE=yp(nh,{shouldForwardProp:e=>bp(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Ot(n.color)}`],t[`size${Ot(n.size)}`],t[`${n.variant}Size${Ot(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,o;const r="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Ie({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Ie({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Io(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Io(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Io(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Ie({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${XS.focusVisible}`]:Ie({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${XS.disabled}`]:Ie({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Io(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(o=e.palette).getContrastText)?void 0:n.call(o,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:r,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${XS.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${XS.disabled}`]:{boxShadow:"none"}})),oE=yp("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Ot(n.size)}`]]}})((({ownerState:e})=>Ie({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},tE(e)))),rE=yp("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Ot(n.size)}`]]}})((({ownerState:e})=>Ie({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},tE(e)))),iE=e.forwardRef((function(t,n){const o=e.useContext(JS),r=wp({props:Jt(o,t),name:"MuiButton"}),{children:i,color:l="primary",component:a="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=r,y=De(r,eE),w=Ie({},r,{color:l,component:a,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),x=(e=>{const{color:t,disableElevation:n,fullWidth:o,size:r,variant:i,classes:l}=e;return Ie({},l,en({root:["root",i,`${i}${Ot(t)}`,`size${Ot(r)}`,`${i}Size${Ot(r)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",o&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Ot(r)}`],endIcon:["endIcon",`iconSize${Ot(r)}`]},ZS,l))})(w),C=g&&Me.jsx(oE,{className:x.startIcon,ownerState:w,children:g}),O=p&&Me.jsx(rE,{className:x.endIcon,ownerState:w,children:p});return Me.jsxs(nE,Ie({ownerState:w,className:vo(o.className,x.root,s),component:a,disabled:u,focusRipple:!d,focusVisibleClassName:vo(x.focusVisible,f),ref:n,type:b},y,{classes:x,children:[C,i,O]}))}));"production"!==process.env.NODE_ENV&&(iE.propTypes={children:oe.node,classes:oe.object,className:oe.string,color:oe.oneOfType([oe.oneOf(["inherit","primary","secondary","success","error","info","warning"]),oe.string]),component:oe.elementType,disabled:oe.bool,disableElevation:oe.bool,disableFocusRipple:oe.bool,disableRipple:oe.bool,endIcon:oe.node,focusVisibleClassName:oe.string,fullWidth:oe.bool,href:oe.string,size:oe.oneOfType([oe.oneOf(["small","medium","large"]),oe.string]),startIcon:oe.node,sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object]),type:oe.oneOfType([oe.oneOf(["button","reset","submit"]),oe.string]),variant:oe.oneOfType([oe.oneOf(["contained","outlined","text"]),oe.string])});const lE=iE;function aE(e){return ln("MuiInputAdornment",e)}const sE=an("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var uE;const cE=["children","className","component","disablePointerEvents","disableTypography","position","variant"],dE=yp("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Ot(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>Ie({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${sE.positionStart}&:not(.${sE.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),pE=e.forwardRef((function(t,n){const o=wp({props:t,name:"MuiInputAdornment"}),{children:r,className:i,component:l="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:u,variant:c}=o,d=De(o,cE),p=gp()||{};let f=c;c&&p.variant&&"production"!==process.env.NODE_ENV&&c===p.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),p&&!f&&(f=p.variant);const h=Ie({},o,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:a,position:u,variant:f}),m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:o,position:r,size:i,variant:l}=e;return en({root:["root",n&&"disablePointerEvents",r&&`position${Ot(r)}`,l,o&&"hiddenLabel",i&&`size${Ot(i)}`]},aE,t)})(h);return Me.jsx(mp.Provider,{value:null,children:Me.jsx(dE,Ie({as:l,ownerState:h,className:vo(m.root,i),ref:n},d,{children:"string"!=typeof r||s?Me.jsxs(e.Fragment,{children:["start"===u?uE||(uE=Me.jsx("span",{className:"notranslate",children:""})):null,r]}):Me.jsx(Ch,{color:"text.secondary",children:r})}))})}));"production"!==process.env.NODE_ENV&&(pE.propTypes={children:oe.node,classes:oe.object,className:oe.string,component:oe.elementType,disablePointerEvents:oe.bool,disableTypography:oe.bool,position:oe.oneOf(["end","start"]).isRequired,sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object]),variant:oe.oneOf(["filled","outlined","standard"])});const fE=pE;function hE(e){return ln("MuiTooltip",e)}const mE=an("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),gE=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function bE(e){return Math.round(1e5*e)/1e5}const vE=yp(Tf,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((({theme:e,ownerState:t,open:n})=>Ie({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${mE.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${mE.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${mE.arrow}`]:Ie({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${mE.arrow}`]:Ie({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),yE=yp("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Ot(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>Ie({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Io(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${bE(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${mE.popper}[data-popper-placement*="left"] &`]:Ie({transformOrigin:"right center"},t.isRtl?Ie({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):Ie({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${mE.popper}[data-popper-placement*="right"] &`]:Ie({transformOrigin:"left center"},t.isRtl?Ie({marginRight:"14px"},t.touch&&{marginRight:"24px"}):Ie({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${mE.popper}[data-popper-placement*="top"] &`]:Ie({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${mE.popper}[data-popper-placement*="bottom"] &`]:Ie({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})}))),wE=yp("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Io(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let xE=!1,CE=null,OE={x:0,y:0};function kE(e,t){return n=>{t&&t(n),e(n)}}const SE=e.forwardRef((function(t,n){var o,r,i,l,a,s,u,c,d,p,f,h,m,g,b,v,y,w,x;const C=wp({props:t,name:"MuiTooltip"}),{arrow:O=!1,children:k,components:S={},componentsProps:E={},describeChild:R=!1,disableFocusListener:T=!1,disableHoverListener:N=!1,disableInteractive:P=!1,disableTouchListener:M=!1,enterDelay:j=100,enterNextDelay:_=0,enterTouchDelay:I=700,followCursor:D=!1,id:F,leaveDelay:A=0,leaveTouchDelay:L=1500,onClose:V,onOpen:$,open:z,placement:q="bottom",PopperComponent:H,PopperProps:B={},slotProps:U={},slots:W={},title:G,TransitionComponent:K=yf,TransitionProps:Y}=C,Z=De(C,gE),X=e.isValidElement(k)?k:Me.jsx("span",{children:k}),Q=mr(),J="rtl"===Q.direction,[ee,te]=e.useState(),[ne,oe]=e.useState(null),re=e.useRef(!1),ie=P||D,le=e.useRef(),ae=e.useRef(),se=e.useRef(),ue=e.useRef(),[ce,de]=It({controlled:z,default:!1,name:"Tooltip",state:"open"});let pe=ce;if("production"!==process.env.NODE_ENV){const{current:t}=e.useRef(void 0!==z);e.useEffect((()=>{ee&&ee.disabled&&!t&&""!==G&&"button"===ee.tagName.toLowerCase()&&console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join("\n"))}),[G,ee,t])}const fe=_t(F),he=e.useRef(),me=e.useCallback((()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),clearTimeout(ue.current)}),[]);e.useEffect((()=>()=>{clearTimeout(le.current),clearTimeout(ae.current),clearTimeout(se.current),me()}),[me]);const ge=e=>{clearTimeout(CE),xE=!0,de(!0),$&&!pe&&$(e)},be=Dt((e=>{clearTimeout(CE),CE=setTimeout((()=>{xE=!1}),800+A),de(!1),V&&pe&&V(e),clearTimeout(le.current),le.current=setTimeout((()=>{re.current=!1}),Q.transitions.duration.shortest)})),ve=e=>{re.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),clearTimeout(ae.current),clearTimeout(se.current),j||xE&&_?ae.current=setTimeout((()=>{ge(e)}),xE?_:j):ge(e))},ye=e=>{clearTimeout(ae.current),clearTimeout(se.current),se.current=setTimeout((()=>{be(e)}),A)},{isFocusVisibleRef:we,onBlur:xe,onFocus:Ce,ref:Oe}=Ut(),[,ke]=e.useState(!1),Se=e=>{xe(e),!1===we.current&&(ke(!1),ye(e))},Ee=e=>{ee||te(e.currentTarget),Ce(e),!0===we.current&&(ke(!0),ve(e))},Re=e=>{re.current=!0;const t=X.props;t.onTouchStart&&t.onTouchStart(e)},Te=ve,Ne=ye;e.useEffect((()=>{if(pe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){("Escape"===e.key||"Esc"===e.key)&&be(e)}}),[be,pe]);const Pe=Ft(X.ref,Oe,te,n);!G&&0!==G&&(pe=!1);const je=e.useRef(),_e={},Fe="string"==typeof G;R?(_e.title=pe||!Fe||N?null:G,_e["aria-describedby"]=pe?fe:null):(_e["aria-label"]=Fe?G:null,_e["aria-labelledby"]=pe&&!Fe?fe:null);const Ae=Ie({},_e,Z,X.props,{className:vo(Z.className,X.props.className),onTouchStart:Re,ref:Pe},D?{onMouseMove:e=>{const t=X.props;t.onMouseMove&&t.onMouseMove(e),OE={x:e.clientX,y:e.clientY},je.current&&je.current.update()}}:{});"production"!==process.env.NODE_ENV&&(Ae["data-mui-internal-clone-element"]=!0,e.useEffect((()=>{ee&&!ee.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join("\n"))}),[ee]));const Le={};M||(Ae.onTouchStart=e=>{Re(e),clearTimeout(se.current),clearTimeout(le.current),me(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ue.current=setTimeout((()=>{document.body.style.WebkitUserSelect=he.current,ve(e)}),I)},Ae.onTouchEnd=e=>{X.props.onTouchEnd&&X.props.onTouchEnd(e),me(),clearTimeout(se.current),se.current=setTimeout((()=>{be(e)}),L)}),N||(Ae.onMouseOver=kE(Te,Ae.onMouseOver),Ae.onMouseLeave=kE(Ne,Ae.onMouseLeave),ie||(Le.onMouseOver=Te,Le.onMouseLeave=Ne)),T||(Ae.onFocus=kE(Ee,Ae.onFocus),Ae.onBlur=kE(Se,Ae.onBlur),ie||(Le.onFocus=Ee,Le.onBlur=Se)),"production"!==process.env.NODE_ENV&&X.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${X.props.title}\` or the Tooltip component.`].join("\n"));const Ve=e.useMemo((()=>{var e;let t=[{name:"arrow",enabled:!!ne,options:{element:ne,padding:4}}];return null!=(e=B.popperOptions)&&e.modifiers&&(t=t.concat(B.popperOptions.modifiers)),Ie({},B.popperOptions,{modifiers:t})}),[ne,B]),$e=Ie({},C,{isRtl:J,arrow:O,disableInteractive:ie,placement:q,PopperComponentProp:H,touch:re.current}),ze=(e=>{const{classes:t,disableInteractive:n,arrow:o,touch:r,placement:i}=e;return en({popper:["popper",!n&&"popperInteractive",o&&"popperArrow"],tooltip:["tooltip",o&&"tooltipArrow",r&&"touch",`tooltipPlacement${Ot(i.split("-")[0])}`],arrow:["arrow"]},hE,t)})($e),qe=null!=(o=null!=(r=W.popper)?r:S.Popper)?o:vE,He=null!=(i=null!=(l=null!=(a=W.transition)?a:S.Transition)?l:K)?i:yf,Be=null!=(s=null!=(u=W.tooltip)?u:S.Tooltip)?s:yE,Ue=null!=(c=null!=(d=W.arrow)?d:S.Arrow)?c:wE,We=Qu(qe,Ie({},B,null!=(p=U.popper)?p:E.popper,{className:vo(ze.popper,null==B?void 0:B.className,null==(f=null!=(h=U.popper)?h:E.popper)?void 0:f.className)}),$e),Ge=Qu(He,Ie({},Y,null!=(m=U.transition)?m:E.transition),$e),Ke=Qu(Be,Ie({},null!=(g=U.tooltip)?g:E.tooltip,{className:vo(ze.tooltip,null==(b=null!=(v=U.tooltip)?v:E.tooltip)?void 0:b.className)}),$e),Ye=Qu(Ue,Ie({},null!=(y=U.arrow)?y:E.arrow,{className:vo(ze.arrow,null==(w=null!=(x=U.arrow)?x:E.arrow)?void 0:w.className)}),$e);return Me.jsxs(e.Fragment,{children:[e.cloneElement(X,Ae),Me.jsx(qe,Ie({as:H??Tf,placement:q,anchorEl:D?{getBoundingClientRect:()=>({top:OE.y,left:OE.x,right:OE.x,bottom:OE.y,width:0,height:0})}:ee,popperRef:je,open:!!ee&&pe,id:fe,transition:!0},Le,We,{popperOptions:Ve,children:({TransitionProps:e})=>Me.jsx(He,Ie({timeout:Q.transitions.duration.shorter},e,Ge,{children:Me.jsxs(Be,Ie({},Ke,{children:[G,O?Me.jsx(Ue,Ie({},Ye,{ref:oe})):null]}))}))}))]})}));"production"!==process.env.NODE_ENV&&(SE.propTypes={arrow:oe.bool,children:st.isRequired,classes:oe.object,className:oe.string,components:oe.shape({Arrow:oe.elementType,Popper:oe.elementType,Tooltip:oe.elementType,Transition:oe.elementType}),componentsProps:oe.shape({arrow:oe.object,popper:oe.object,tooltip:oe.object,transition:oe.object}),describeChild:oe.bool,disableFocusListener:oe.bool,disableHoverListener:oe.bool,disableInteractive:oe.bool,disableTouchListener:oe.bool,enterDelay:oe.number,enterNextDelay:oe.number,enterTouchDelay:oe.number,followCursor:oe.bool,id:oe.string,leaveDelay:oe.number,leaveTouchDelay:oe.number,onClose:oe.func,onOpen:oe.func,open:oe.bool,placement:oe.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:oe.elementType,PopperProps:oe.object,slotProps:oe.shape({arrow:oe.object,popper:oe.object,tooltip:oe.object,transition:oe.object}),slots:oe.shape({arrow:oe.elementType,popper:oe.elementType,tooltip:oe.elementType,transition:oe.elementType}),sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object]),title:oe.node,TransitionComponent:oe.elementType,TransitionProps:oe.object});const EE=SE,RE=["sortingOrder"],TE=e.memo((function(e){const{sortingOrder:t}=e,n=De(e,RE),o=wa(),[r]=t,i="asc"===r?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return i?Me.jsx(i,Ie({},n)):null})),NE=["native"];const PE=Ie({},{BooleanCellTrueIcon:nb,BooleanCellFalseIcon:Zg,ColumnMenuIcon:Yg,OpenFilterButtonIcon:zg,FilterPanelDeleteIcon:Zg,ColumnFilteredIcon:qg,ColumnSelectorIcon:Bg,ColumnUnsortedIcon:TE,ColumnSortedAscendingIcon:Ag,ColumnSortedDescendingIcon:Lg,ColumnResizeIcon:Ug,DensityCompactIcon:Wg,DensityStandardIcon:Gg,DensityComfortableIcon:Kg,ExportIcon:tb,MoreActionsIcon:ob,TreeDataCollapseIcon:$g,TreeDataExpandIcon:Vg,GroupingCriteriaCollapseIcon:$g,GroupingCriteriaExpandIcon:Vg,DetailPanelExpandIcon:Xg,DetailPanelCollapseIcon:Qg,RowReorderIcon:eb,QuickFilterIcon:Hg,QuickFilterClearIcon:Zg,ColumnMenuHideIcon:rb,ColumnMenuSortAscendingIcon:Ag,ColumnMenuSortDescendingIcon:Lg,ColumnMenuFilterIcon:qg,ColumnMenuManageColumnsIcon:ib,ColumnMenuClearIcon:lb,LoadIcon:Jg,FilterPanelAddIcon:Xg,FilterPanelRemoveAllIcon:ab,ColumnReorderIcon:eb},{BaseCheckbox:YS,BaseTextField:Zx,BaseFormControl:Gb,BaseSelect:Bx,BaseSwitch:qb,BaseButton:lE,BaseIconButton:Rb,BaseInputAdornment:fE,BaseTooltip:EE,BasePopper:Tf,BaseInputLabel:jw,BaseSelectOption:function(e){let{native:t}=e,n=De(e,NE);return t?Me.jsx("option",Ie({},n)):Me.jsx(Ih,Ie({},n))},BaseChip:fy}),ME=Ie({},PE,{Cell:Uu,SkeletonCell:Zh,ColumnHeaderFilterIconButton:Sg,ColumnMenu:xb,ColumnHeaders:FS,Footer:oC,Toolbar:null,PreferencesPanel:Tv,LoadingOverlay:wC,NoResultsOverlay:AS,NoRowsOverlay:xC,Pagination:fO,FilterPanel:Jv,ColumnsPanel:Cv,Panel:Rv,Row:IO}),jE=e=>{if(void 0!==e)return Object.keys(e).reduce(((t,n)=>Ie({},t,{[`${n.charAt(0).toLowerCase()}${n.slice(1)}`]:e[n]})),{})};const _E=["components","componentsProps"];function IE(e){var t;const n=Object.keys(e);if(!n.some((e=>e.startsWith("aria-")||e.startsWith("data-"))))return e;const o={},r=null!=(t=e.forwardedProps)?t:{};for(let t=0;t<n.length;t+=1){const i=n[t];i.startsWith("aria-")||i.startsWith("data-")?r[i]=e[i]:o[i]=e[i]}return o.forwardedProps=r,o}const DE={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleRowSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},FE={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,rowSelection:!0,density:"standard",disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableMultipleColumnsFiltering:!1,disableMultipleRowSelection:!1,disableMultipleColumnsSorting:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:wu.Cell,filterMode:"client",columnHeaderHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,logger:console,logLevel:"production"===process.env.NODE_ENV?"error":"warn",pagination:!1,paginationMode:"client",rowHeight:52,pageSizeOptions:[25,50,100],rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingOrder:["asc","desc",null],sortingMode:"client",throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1,unstable_ignoreValueFormatterDuringExport:!1,clipboardCopyCellDelimiter:"\t"},AE=jE(ME),LE=t=>{const[n,o,r]=function(t){return e.useMemo((()=>{const{components:e,componentsProps:n}=t;return[e,n,IE(De(t,_E))]}),[t])}(wp({props:t,name:"MuiDataGrid"})),i=e.useMemo((()=>Ie({},hS,r.localeText)),[r.localeText]),l=e.useMemo((()=>function({defaultSlots:e,slots:t,components:n}){const o=t??(n?jE(n):null);return o&&0!==Object.keys(o).length?Ie({},e,o):e}({defaultSlots:AE,slots:r.slots,components:n})),[n,r.slots]);return e.useMemo((()=>{var e;return Ie({},FE,r,{localeText:i,slots:l,slotProps:null!=(e=r.slotProps)?e:o},DE)}),[r,i,l,o])},VE=e=>Ie({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}});let $E=!1;const zE=(e,t,n)=>"number"==typeof e&&e>0?e:("production"!==process.env.NODE_ENV&&!$E&&typeof e<"u"&&null!==e&&(console.warn(n),$E=!0),t),qE=["MUI: The `rowHeight` prop should be a number greater than 0.","The default value will be used instead."].join("\n"),HE=["MUI: The `getRowHeight` prop should return a number greater than 0 or 'auto'.","The default value will be used instead."].join("\n"),BE=(e,t,n)=>{if(Tu(e)){if(void 0!==n[e.field])throw new Error(["MUI: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join("\n"));return void(n[e.field]=t)}const{groupId:o,children:r}=e;r.forEach((e=>{BE(e,[...t,o],n)}))},UE=e=>{if(!e)return{};const t={};return e.forEach((e=>{BE(e,[],t)})),t},WE=(e,t)=>{const n=e=>{var n;return null!=(n=t[e])?n:[]},o=[],r=Math.max(...e.map((e=>n(e).length))),i=(e,t,o)=>Wm(n(e).slice(0,o+1),n(t).slice(0,o+1));for(let t=0;t<r;t+=1){const r=e.reduce(((e,o)=>{var r;const l=null!=(r=n(o)[t])?r:null;if(0===e.length)return[{columnFields:[o],groupId:l}];const a=e[e.length-1],s=a.columnFields[a.columnFields.length-1];return a.groupId===l&&i(s,o,t)?[...e.slice(0,e.length-1),{columnFields:[...a.columnFields,o],groupId:l}]:[...e,{columnFields:[o],groupId:l}]}),[]);o.push(r)}return o},GE=["groupId","children"],KE=e=>{let t={};return e.forEach((e=>{if(Tu(e))return;const{groupId:n,children:o}=e,r=De(e,GE);if(!n)throw new Error("MUI: An element of the columnGroupingModel does not have either `field` or `groupId`.");o||console.warn(`MUI: group groupId=${n} has no children.`);const i=Ie({},r,{groupId:n}),l=KE(o);if(void 0!==l[n]||void 0!==t[n])throw new Error(`MUI: The groupId ${n} is used multiple times in the columnGroupingModel.`);t=Ie({},t,l,{[n]:i})})),Ie({},t)},YE=(e,t,n)=>{var o,r,i;if(null==(o=t.experimentalFeatures)||!o.columnGrouping)return e;const l=Za(n),a=ts(n),s=KE(null!=(r=t.columnGroupingModel)?r:[]),u=UE(null!=(i=t.columnGroupingModel)?i:[]),c=WE(l,u),d=0===a.length?0:Math.max(...a.map((e=>{var t,n;return null!=(t=null==(n=u[e])?void 0:n.length)?t:0})));return Ie({},e,{columnGrouping:{lookup:s,unwrappedGroupingModel:u,headerStructure:c,maxDepth:d}})},ZE=(t,n)=>{const o=QO(t,n);return mS(o,n),(e=>{YO(e,ZO,"rowTreeCreation",dS)})(o),JO(fS,o,n),JO(Tk,o,n),JO(uS,o,n),JO(aS,o,n),JO(Kk,o,n),JO(gS,o,n),JO(eS,o,n),JO(Uk,o,n),JO(Pk,o,n),JO(Qk,o,n),JO(VE,o,n),JO(yk,o,n),JO(YE,o,n),Xk(o,n),((t,n)=>{const o=zm(t,"useGridSelection"),r=e=>(...t)=>{n.rowSelection&&e(...t)},i=e.useMemo((()=>pS(n.rowSelectionModel,cg(t.current.state))),[t,n.rowSelectionModel]),l=e.useRef(null);t.current.registerControlState({stateId:"rowSelection",propModel:i,propOnChange:n.onRowSelectionModelChange,stateSelector:cg,changeEvent:"rowSelectionChange"});const{checkboxSelection:a,disableMultipleRowSelection:s,disableRowSelectionOnClick:u,isRowSelectable:c}=n,d=!s||a,p=mO(t,n),f=e.useCallback((e=>{var n;let o=e;const r=null!=(n=l.current)?n:e,i=t.current.isRowSelected(e);if(i){const e=Ns(t),n=e.findIndex((e=>e===r)),i=e.findIndex((e=>e===o));if(n===i)return;o=n>i?e[i+1]:e[i-1]}l.current=e,t.current.selectRowRange({startId:r,endId:o},!i)}),[t]),h=e.useCallback((e=>{if(n.signature===Fm.DataGrid&&!n.checkboxSelection&&Array.isArray(e)&&e.length>1)throw new Error(["MUI: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join("\n"));cg(t.current.state)!==e&&(o.debug("Setting selection model"),t.current.setState((t=>Ie({},t,{rowSelection:n.rowSelection?e:[]}))),t.current.forceUpdate())}),[t,o,n.rowSelection,n.signature,n.checkboxSelection]),m=e.useCallback((e=>cg(t.current.state).includes(e)),[t]),g=e.useCallback((e=>{if(c&&!c(t.current.getRowParams(e)))return!1;const n=t.current.getRowNode(e);return!("footer"===(null==n?void 0:n.type)||"pinnedRow"===(null==n?void 0:n.type))}),[t,c]),b=e.useCallback((()=>pg(t)),[t]),v=e.useCallback(((e,n=!0,r=!1)=>{if(t.current.isRowSelectable(e))if(l.current=e,r)o.debug(`Setting selection for row ${e}`),t.current.setRowSelectionModel(n?[e]:[]);else{o.debug(`Toggling selection for row ${e}`);const r=cg(t.current.state).filter((t=>t!==e));n&&r.push(e),(r.length<2||d)&&t.current.setRowSelectionModel(r)}}),[t,o,d]),y=e.useCallback(((e,n=!0,r=!1)=>{o.debug("Setting selection for several rows");const i=e.filter((e=>t.current.isRowSelectable(e)));let l;if(r)l=n?i:[];else{const e=Ie({},fg(t));i.forEach((t=>{n?e[t]=t:delete e[t]})),l=Object.values(e)}(l.length<2||d)&&t.current.setRowSelectionModel(l)}),[t,o,d]),w=e.useCallback((({startId:e,endId:n},r=!0,i=!1)=>{if(!t.current.getRow(e)||!t.current.getRow(n))return;o.debug(`Expanding selection from row ${e} to row ${n}`);const l=Ns(t),a=l.indexOf(e),s=l.indexOf(n),[u,c]=a>s?[s,a]:[a,s],d=l.slice(u,c+1);t.current.selectRows(d,r,i)}),[t,o]),x={selectRows:y,selectRowRange:w};Mu(t,{selectRow:v,setRowSelectionModel:h,getSelectedRows:b,isRowSelected:m,isRowSelectable:g},"public"),Mu(t,x,n.signature===Fm.DataGrid?"private":"public");const C=e.useCallback((()=>{if(n.keepNonExistentRowsSelected)return;const e=cg(t.current.state),o=cs(t),r=Ie({},fg(t));let i=!1;e.forEach((e=>{o[e]||(delete r[e],i=!0)})),i&&t.current.setRowSelectionModel(Object.values(r))}),[t,n.keepNonExistentRowsSelected]),O=e.useCallback(((e,n)=>{const o=n.metaKey||n.ctrlKey,r=!a&&!o&&!(e=>!!e.key)(n),i=!d||r,l=t.current.isRowSelected(e);i?t.current.selectRow(e,!!r||!l,!0):t.current.selectRow(e,!l,!1)}),[t,d,a]),k=e.useCallback(((e,n)=>{var o;if(u)return;const r=null==(o=n.target.closest(`.${Da.cell}`))?void 0:o.getAttribute("data-field");r===EO.field||r===NO||r&&t.current.getColumn(r).type===RO||"pinnedRow"===t.current.getRowNode(e.id).type||(n.shiftKey&&(d||a)?f(e.id):O(e.id,n))}),[u,d,a,t,f,O]),S=e.useCallback(((e,t)=>{var n;d&&t.shiftKey&&(null==(n=window.getSelection())||n.removeAllRanges())}),[d]),E=e.useCallback(((e,n)=>{n.nativeEvent.shiftKey?f(e.id):t.current.selectRow(e.id,e.value)}),[t,f]),R=e.useCallback((e=>{const o=n.checkboxSelectionVisibleOnly&&n.pagination?lg(t):Ns(t);t.current.selectRows(o,e.value)}),[t,n.checkboxSelectionVisibleOnly,n.pagination]),T=e.useCallback(((e,n)=>{if(t.current.getCellMode(e.id,e.field)!==xu.Edit&&n.currentTarget.contains(n.target)){if(Wp(n.key)&&n.shiftKey){const o=Ls(t);if(o&&o.id!==e.id){n.preventDefault();const r=t.current.isRowSelected(o.id);if(!d)return void t.current.selectRow(o.id,!r,!0);const i=t.current.getRowIndexRelativeToVisibleRows(o.id),l=t.current.getRowIndexRelativeToVisibleRows(e.id);let a,s;i>l?r?(a=l,s=i-1):(a=l,s=i):r?(a=i+1,s=l):(a=i,s=l);const u=p.rows.slice(a,s+1).map((e=>e.id));return void t.current.selectRows(u,!r)}}if(" "===n.key&&n.shiftKey)return n.preventDefault(),void O(e.id,n);"a"===n.key&&(n.ctrlKey||n.metaKey)&&(n.preventDefault(),y(t.current.getAllRowIds(),!0))}}),[t,O,y,p.rows,d]);Lm(t,"sortedRowsSet",r(C)),Lm(t,"rowClick",r(k)),Lm(t,"rowSelectionCheckboxChange",r(E)),Lm(t,"headerSelectionCheckboxChange",R),Lm(t,"cellMouseDown",r(S)),Lm(t,"cellKeyDown",r(T)),e.useEffect((()=>{void 0!==i&&t.current.setRowSelectionModel(i)}),[t,i,n.rowSelection]),e.useEffect((()=>{n.rowSelection||t.current.setRowSelectionModel([])}),[t,n.rowSelection]);const N=null!=i;e.useEffect((()=>{if(N||!n.rowSelection)return;const e=cg(t.current.state);if(g){const n=e.filter((e=>g(e)));n.length<e.length&&t.current.setRowSelectionModel(n)}}),[t,g,N,n.rowSelection]),e.useEffect((()=>{if(!n.rowSelection||N)return;const e=cg(t.current.state);!d&&e.length>1&&t.current.setRowSelectionModel([])}),[t,d,a,N,n.rowSelection])})(o,n),function(t,n){var o,r;const i=zm(t,"useGridColumns"),l=Rk,a=e.useRef(n.columns),s=e.useRef(l);t.current.registerControlState({stateId:"visibleColumns",propModel:n.columnVisibilityModel,propOnChange:n.onColumnVisibilityModelChange,stateSelector:Ja,changeEvent:"columnVisibilityModelChange"});const u=e.useCallback((e=>{i.debug("Updating columns state."),t.current.setState(Ok(e)),t.current.forceUpdate(),t.current.publishEvent("columnsChange",e.orderedFields)}),[i,t]),c=e.useCallback((e=>Xa(t)[e]),[t]),d=e.useCallback((()=>Qa(t)),[t]),p=e.useCallback((()=>es(t)),[t]),f=e.useCallback(((e,n=!0)=>(n?es(t):Qa(t)).findIndex((t=>t.field===e))),[t]),h=e.useCallback((e=>{const n=f(e);return ns(t)[n]}),[t,f]),m=e.useCallback((e=>{Ja(t)!==e&&(t.current.setState((n=>Ie({},n,{columns:Ck({apiRef:t,columnTypes:l,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:e,keepOnlyColumnsToUpsert:!1})}))),t.current.forceUpdate())}),[t,l]),g=e.useCallback((e=>{const n=Ck({apiRef:t,columnTypes:l,columnsToUpsert:e,initialState:void 0,keepOnlyColumnsToUpsert:!1});u(n)}),[t,u,l]),b=e.useCallback(((e,n)=>{var o;const r=Ja(t);if(n!==(null==(o=r[e])||o)){const o=Ie({},r,{[e]:n});t.current.setColumnVisibilityModel(o)}}),[t]),v=e.useCallback((e=>Za(t).findIndex((t=>t===e))),[t]),y=e.useCallback(((e,n)=>{const o=Za(t),r=v(e);if(r===n)return;i.debug(`Moving column ${e} to index ${n}`);const l=[...o],a=l.splice(r,1)[0];l.splice(n,0,a),u(Ie({},Ya(t.current.state),{orderedFields:l}));const s={column:t.current.getColumn(e),targetIndex:t.current.getColumnIndexRelativeToVisibleColumns(e),oldIndex:r};t.current.publishEvent("columnIndexChange",s)}),[t,i,u,v]),w=e.useCallback(((e,n)=>{i.debug(`Updating column ${e} width to ${n}`);const o=Ie({},t.current.getColumn(e),{width:n});t.current.updateColumns([o]),t.current.publishEvent("columnWidthChange",{element:t.current.getColumnHeaderElement(e),colDef:o,width:n})}),[t,i]),x={setColumnIndex:y};Mu(t,{getColumn:c,getAllColumns:d,getColumnIndex:f,getColumnPosition:h,getVisibleColumns:p,getColumnIndexRelativeToVisibleColumns:v,updateColumns:g,setColumnVisibilityModel:m,setColumnVisibility:b,setColumnWidth:w},"public"),Mu(t,x,n.signature===Fm.DataGrid?"private":"public");const C=e.useCallback(((e,o)=>{var r,i,l;const a={},s=Ja(t);(!o.exportOnlyDirtyModels||null!=n.columnVisibilityModel||Object.keys(null!=(r=null==(i=n.initialState)||null==(l=i.columns)?void 0:l.columnVisibilityModel)?r:{}).length>0||Object.keys(s).length>0)&&(a.columnVisibilityModel=s),a.orderedFields=Za(t);const u=Qa(t),c={};return u.forEach((e=>{if(e.hasBeenResized){const t={};wk.forEach((n=>{let o=e[n];o===1/0&&(o=-1),t[n]=o})),c[e.field]=t}})),Object.keys(c).length>0&&(a.dimensions=c),Ie({},e,{columns:a})}),[t,n.columnVisibilityModel,null==(o=n.initialState)?void 0:o.columns]),O=e.useCallback(((e,n)=>{var o;const r=null==(o=n.stateToRestore.columns)?void 0:o.columnVisibilityModel,i=n.stateToRestore.columns;if(null==r&&null==i)return e;const a=Ck({apiRef:t,columnTypes:l,columnsToUpsert:[],initialState:i,columnVisibilityModel:r,keepOnlyColumnsToUpsert:!1});return t.current.setState(Ok(a)),null!=i&&t.current.publishEvent("columnsChange",a.orderedFields),e}),[t,l]),k=e.useCallback(((e,t)=>{if(t===sg.columns){var o;const e=n.slots.columnsPanel;return Me.jsx(e,Ie({},null==(o=n.slotProps)?void 0:o.columnsPanel))}return e}),[n.slots.columnsPanel,null==(r=n.slotProps)?void 0:r.columnsPanel]),S=e.useCallback((e=>n.disableColumnSelector?e:[...e,"columnMenuColumnsItem"]),[n.disableColumnSelector]);GO(t,"columnMenu",S),GO(t,"exportState",C),GO(t,"restoreState",O),GO(t,"preferencePanel",k);const E=e.useRef(null);Lm(t,"viewportInnerSizeChange",(e=>{E.current!==e.width&&(E.current=e.width,u(xk(Ya(t.current.state),e.width)))}));const R=e.useCallback((()=>{i.info("Columns pipe processing have changed, regenerating the columns");const e=Ck({apiRef:t,columnTypes:l,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});u(e)}),[t,i,u,l]);KO(t,"hydrateColumns",R);const T=e.useRef(!0);e.useEffect((()=>{if(T.current)return void(T.current=!1);if(i.info(`GridColumns have changed, new length ${n.columns.length}`),a.current===n.columns&&s.current===l)return;const e=Ck({apiRef:t,columnTypes:l,initialState:void 0,columnsToUpsert:n.columns,keepOnlyColumnsToUpsert:!0});a.current=n.columns,s.current=l,u(e)}),[i,t,u,n.columns,l]),e.useEffect((()=>{void 0!==n.columnVisibilityModel&&t.current.setColumnVisibilityModel(n.columnVisibilityModel)}),[t,i,n.columnVisibilityModel])}(o,n),cS(o,n),_u(o,n),(t=>{const n=e.useRef({}),o=e.useCallback(((e,t,o)=>{const r=n.current;r[e]||(r[e]={}),r[e][t]=o}),[]),r=e.useCallback(((e,t)=>{var o;return null==(o=n.current[e])?void 0:o[t]}),[]),i=e.useCallback((e=>{const{columnIndex:n,rowId:r,minFirstColumnIndex:i,maxLastColumnIndex:l,columns:a}=e,s=a.length,u=a[n],c="function"==typeof u.colSpan?u.colSpan(t.current.getCellParams(r,u.field)):u.colSpan;if(!c||1===c)return o(r,n,{spannedByColSpan:!1,cellProps:{colSpan:1,width:u.computedWidth}}),{colSpan:1};let d=u.computedWidth;for(let e=1;e<c;e+=1){const t=n+e;t>=i&&t<l&&(d+=a[t].computedWidth,o(r,n+e,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(n+c,s-1),leftVisibleCellIndex:n})),o(r,n,{spannedByColSpan:!1,cellProps:{colSpan:c,width:d}})}return{colSpan:c}}),[t,o]),l={calculateColSpan:e.useCallback((({rowId:e,minFirstColumn:t,maxLastColumn:n,columns:o})=>{for(let r=t;r<n;r+=1){const l=i({columnIndex:r,rowId:e,minFirstColumnIndex:t,maxLastColumnIndex:n,columns:o});l.colSpan>1&&(r+=l.colSpan-1)}}),[i])};Mu(t,{unstable_getCellColSpanInfo:r},"public"),Mu(t,l,"private");const a=e.useCallback((()=>{n.current={}}),[]);Lm(t,"columnOrderChange",a)})(o),((t,n)=>{var o;const r=e.useCallback((e=>{var n;return null!=(n=Ys(t)[e])?n:[]}),[t]),i=e.useCallback((()=>Zs(t)),[t]);Mu(t,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:i},"public");const l=e.useCallback((()=>{var e;const o=UE(null!=(e=n.columnGroupingModel)?e:[]);t.current.setState((e=>{var t,n;const r=null!=(t=null==(n=e.columns)?void 0:n.orderedFields)?t:[],i=WE(r,o);return Ie({},e,{columnGrouping:Ie({},e.columnGrouping,{headerStructure:i})})}))}),[t,n.columnGroupingModel]),a=e.useCallback((e=>{var o;if(null==(o=n.experimentalFeatures)||!o.columnGrouping)return;const r=Za(t),i=ts(t),l=KE(e??[]),a=UE(e??[]),s=WE(r,a),u=0===i.length?0:Math.max(...i.map((e=>{var t,n;return null!=(t=null==(n=a[e])?void 0:n.length)?t:0})));t.current.setState((e=>Ie({},e,{columnGrouping:{lookup:l,unwrappedGroupingModel:a,headerStructure:s,maxDepth:u}})))}),[t,null==(o=n.experimentalFeatures)?void 0:o.columnGrouping]);Lm(t,"columnIndexChange",l),Lm(t,"columnsChange",(()=>{a(n.columnGroupingModel)})),Lm(t,"columnVisibilityModelChange",(()=>{a(n.columnGroupingModel)})),e.useEffect((()=>{a(n.columnGroupingModel)}),[a,n.columnGroupingModel])})(o,n),sS(o,n),((t,n)=>{const o=zm(t,"useGridFocus"),r=e.useRef(null),i=e.useCallback(((e,n)=>{e&&t.current.getRow(e.id)&&t.current.publishEvent("cellFocusOut",t.current.getCellParams(e.id,e.field),n)}),[t]),l=e.useCallback(((e,n)=>{const r=Ls(t);(null==r?void 0:r.id)===e&&(null==r?void 0:r.field)===n||(t.current.setState((t=>(o.debug(`Focusing on cell with id=${e} and field=${n}`),Ie({},t,{tabIndex:{cell:{id:e,field:n},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:e,field:n},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))),t.current.forceUpdate(),t.current.getRow(e)&&(r&&i(r,{}),t.current.publishEvent("cellFocusIn",t.current.getCellParams(e,n))))}),[t,o,i]),a=e.useCallback(((e,n={})=>{const r=Ls(t);i(r,n),t.current.setState((t=>(o.debug(`Focusing on column header with colIndex=${e}`),Ie({},t,{tabIndex:{columnHeader:{field:e},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:e},columnHeaderFilter:null,cell:null,columnGroupHeader:null}})))),t.current.forceUpdate()}),[t,o,i]),s=e.useCallback(((e,n={})=>{const r=Ls(t);i(r,n),t.current.setState((t=>(o.debug(`Focusing on column header filter with colIndex=${e}`),Ie({},t,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:e},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:e},cell:null,columnGroupHeader:null}})))),t.current.forceUpdate()}),[t,o,i]),u=e.useCallback(((e,n,o={})=>{const r=Ls(t);r&&t.current.publishEvent("cellFocusOut",t.current.getCellParams(r.id,r.field),o),t.current.setState((t=>Ie({},t,{tabIndex:{columnGroupHeader:{field:e,depth:n},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:e,depth:n},columnHeader:null,columnHeaderFilter:null,cell:null}}))),t.current.forceUpdate()}),[t]),c=e.useCallback((()=>$s(t)),[t]),d=e.useCallback(((e,o,r)=>{let i=t.current.getColumnIndex(o);const l=es(t),a=hO(t,{pagination:n.pagination,paginationMode:n.paginationMode}),s=vs(t),u=[].concat(s.top||[],a.rows,s.bottom||[]);let c=u.findIndex((t=>t.id===e));"right"===r?i+=1:"left"===r?i-=1:c+=1,i>=l.length?(c+=1,c<u.length&&(i=0)):i<0&&(c-=1,c>=0&&(i=l.length-1)),c=Um(c,0,u.length-1);const d=u[c];if(!d)return;const p=t.current.unstable_getCellColSpanInfo(d.id,i);p&&p.spannedByColSpan&&("left"===r||"below"===r?i=p.leftVisibleCellIndex:"right"===r&&(i=p.rightVisibleCellIndex)),i=Um(i,0,l.length-1);const f=l[i];t.current.setCellFocus(d.id,f.field)}),[t,n.pagination,n.paginationMode]),p=e.useCallback((({id:e,field:n})=>{t.current.setCellFocus(e,n)}),[t]),f=e.useCallback(((e,n)=>{"Enter"===n.key||"Tab"===n.key||"Shift"===n.key||Wp(n.key)||t.current.setCellFocus(e.id,e.field)}),[t]),h=e.useCallback((({field:e},n)=>{n.target===n.currentTarget&&t.current.setColumnHeaderFocus(e,n)}),[t]),m=e.useCallback((({fields:e,depth:n},o)=>{if(o.target!==o.currentTarget)return;const r=$s(t);null!==r&&r.depth===n&&e.includes(r.field)||t.current.setColumnGroupHeaderFocus(e[0],n,o)}),[t]),g=e.useCallback(((e,n)=>{var r;null!=(r=n.relatedTarget)&&r.className.includes(Da.columnHeader)||(o.debug("Clearing focus"),t.current.setState((e=>Ie({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))))}),[o,t]),b=e.useCallback((e=>{r.current=e}),[]),v=e.useCallback((e=>{const n=r.current;r.current=null;const o=Ls(t);if(!t.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:e,cell:n}))return;if(!o)return void(n&&t.current.setCellFocus(n.id,n.field));if((null==n?void 0:n.id)===o.id&&(null==n?void 0:n.field)===o.field)return;const l=t.current.getCellElement(o.id,o.field);null!=l&&l.contains(e.target)||(n?t.current.setCellFocus(n.id,n.field):(t.current.setState((e=>Ie({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),t.current.forceUpdate(),i(o,e)))}),[t,i]),y=e.useCallback((e=>{if("view"===e.cellMode)return;const n=Ls(t);((null==n?void 0:n.id)!==e.id||(null==n?void 0:n.field)!==e.field)&&t.current.setCellFocus(e.id,e.field)}),[t]),w=e.useCallback((()=>{const e=Ls(t);e&&!t.current.getRow(e.id)&&t.current.setState((e=>Ie({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))}),[t]),x={moveFocusToRelativeCell:d,setColumnGroupHeaderFocus:u,getColumnGroupHeaderFocus:c};Mu(t,{setCellFocus:l,setColumnHeaderFocus:a,setColumnHeaderFilterFocus:s},"public"),Mu(t,x,"private"),e.useEffect((()=>{const e=Rt(t.current.rootElementRef.current);return e.addEventListener("mouseup",v),()=>{e.removeEventListener("mouseup",v)}}),[t,v]),Lm(t,"columnHeaderBlur",g),Lm(t,"headerFilterBlur",g),Lm(t,"cellDoubleClick",p),Lm(t,"cellMouseDown",b),Lm(t,"cellKeyDown",f),Lm(t,"cellModeChange",y),Lm(t,"columnHeaderFocus",h),Lm(t,"columnGroupHeaderFocus",m),Lm(t,"rowsSet",w)})(o,n),((t,n)=>{var o;const r=zm(t,"useGridPreferencesPanel"),i=e.useRef(),l=e.useRef(),a=e.useCallback((()=>{r.debug("Hiding Preferences Panel");const e=ag(t.current.state);e.openedPanelValue&&t.current.publishEvent("preferencePanelClose",{openedPanelValue:e.openedPanelValue}),t.current.setState((e=>Ie({},e,{preferencePanel:{open:!1}}))),t.current.forceUpdate()}),[t,r]),s=e.useCallback((()=>{l.current=setTimeout((()=>clearTimeout(i.current)),0)}),[]),u=e.useCallback((()=>{i.current=setTimeout(a,100)}),[a]),c=e.useCallback(((e,n,o)=>{r.debug("Opening Preferences Panel"),s(),t.current.setState((t=>Ie({},t,{preferencePanel:Ie({},t.preferencePanel,{open:!0,openedPanelValue:e,panelId:n,labelId:o})}))),t.current.publishEvent("preferencePanelOpen",{openedPanelValue:e}),t.current.forceUpdate()}),[r,s,t]);Mu(t,{showPreferences:c,hidePreferences:u},"public");const d=e.useCallback(((e,o)=>{var r;const i=ag(t.current.state);return!o.exportOnlyDirtyModels||null!=(null==(r=n.initialState)?void 0:r.preferencePanel)||i.open?Ie({},e,{preferencePanel:i}):e}),[t,null==(o=n.initialState)?void 0:o.preferencePanel]),p=e.useCallback(((e,n)=>{const o=n.stateToRestore.preferencePanel;return null!=o&&t.current.setState((e=>Ie({},e,{preferencePanel:o}))),e}),[t]);GO(t,"exportState",d),GO(t,"restoreState",p),e.useEffect((()=>()=>{clearTimeout(i.current),clearTimeout(l.current)}),[])})(o,n),((t,n)=>{var o,r,i;const l=zm(t,"useGridFilter");t.current.registerControlState({stateId:"filter",propModel:n.filterModel,propOnChange:n.onFilterModelChange,stateSelector:Es,changeEvent:"filterModelChange"});const a=e.useCallback((()=>{t.current.setState((e=>{const o=Es(e,t.current.instanceId),r="client"===n.filterMode?qk(n.getRowId,o,t):null,i=t.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:r,filterModel:o??_m()}),l=Ie({},e,{filter:Ie({},e.filter,i)});return Ie({},l,{visibleRowsLookup:Gk(t,l)})})),t.current.publishEvent("filteredRowsSet")}),[t,n.filterMode,n.getRowId]),s=e.useCallback(((e,t)=>null==t||!1===t.filterable||n.disableColumnFilter?e:[...e,"columnMenuFilterItem"]),[n.disableColumnFilter]),u=e.useCallback((()=>{a(),t.current.forceUpdate()}),[t,a]),c=e.useCallback((e=>{const n=Es(t),o=[...n.items],r=o.findIndex((t=>t.id===e.id));-1===r?o.push(e):o[r]=e,t.current.setFilterModel(Ie({},n,{items:o}),"upsertFilterItem")}),[t]),d=e.useCallback((e=>{const n=Es(t),o=[...n.items];e.forEach((t=>{const n=e.findIndex((e=>e.id===t.id));-1===n?o.push(t):o[n]=t})),t.current.setFilterModel(Ie({},n,{items:e}),"upsertFilterItems")}),[t]),p=e.useCallback((e=>{const n=Es(t),o=n.items.filter((t=>t.id!==e.id));o.length!==n.items.length&&t.current.setFilterModel(Ie({},n,{items:o}),"deleteFilterItem")}),[t]),f=e.useCallback(((e,o,r)=>{if(l.debug("Displaying filter panel"),e){const o=Es(t),r=o.items.filter((e=>{var n;if(void 0!==e.value)return!(Array.isArray(e.value)&&0===e.value.length);const o=null==(n=t.current.getColumn(e.field).filterOperators)?void 0:n.find((t=>t.value===e.operator));return!(typeof(null==o?void 0:o.requiresFilterValue)>"u"||(null==o?void 0:o.requiresFilterValue))}));let i;const l=r.find((t=>t.field===e)),a=t.current.getColumn(e);i=l?r:n.disableMultipleColumnsFiltering?[Dk({field:e,operator:a.filterOperators[0].value},t)]:[...r,Dk({field:e,operator:a.filterOperators[0].value},t)],t.current.setFilterModel(Ie({},o,{items:i}))}t.current.showPreferences(sg.filters,o,r)}),[t,l,n.disableMultipleColumnsFiltering]),h=e.useCallback((()=>{l.debug("Hiding filter panel"),t.current.hidePreferences()}),[t,l]),m=e.useCallback((e=>{const n=Es(t);n.logicOperator!==e&&t.current.setFilterModel(Ie({},n,{logicOperator:e}),"changeLogicOperator")}),[t]),g=e.useCallback((e=>{const n=Es(t);Wm(n.quickFilterValues,e)||t.current.setFilterModel(Ie({},n,{quickFilterValues:[...e]}))}),[t]),b=e.useCallback(((e,o)=>{Es(t)!==e&&(l.debug("Setting filter model"),t.current.updateControlState("filter",$k(e,n.disableMultipleColumnsFiltering,t),o),t.current.unstable_applyFilters())}),[t,l,n.disableMultipleColumnsFiltering]);Mu(t,{setFilterLogicOperator:m,unstable_applyFilters:u,deleteFilterItem:p,upsertFilterItem:c,upsertFilterItems:d,setFilterModel:b,showFilterPanel:f,hideFilterPanel:h,setQuickFilterValues:g},"public");const v=e.useCallback(((e,o)=>{var r,i;const l=Es(t);return o.exportOnlyDirtyModels&&null==n.filterModel&&null==(null==(r=n.initialState)||null==(i=r.filter)?void 0:i.filterModel)&&Wm(l,_m())?e:Ie({},e,{filter:{filterModel:l}})}),[t,n.filterModel,null==(o=n.initialState)||null==(r=o.filter)?void 0:r.filterModel]),y=e.useCallback(((e,o)=>{var r;const i=null==(r=o.stateToRestore.filter)?void 0:r.filterModel;return null==i?e:(t.current.updateControlState("filter",$k(i,n.disableMultipleColumnsFiltering,t),"restoreState"),Ie({},e,{callbacks:[...e.callbacks,t.current.unstable_applyFilters]}))}),[t,n.disableMultipleColumnsFiltering]),w=e.useCallback(((e,t)=>{if(t===sg.filters){var o;const e=n.slots.filterPanel;return Me.jsx(e,Ie({},null==(o=n.slotProps)?void 0:o.filterPanel))}return e}),[n.slots.filterPanel,null==(i=n.slotProps)?void 0:i.filterPanel]),x=t.current.state.rows.dataRowIdToModelLookup,C=e.useMemo((()=>Object.values(x)),[x]),{getRowId:O}=n,k=e.useCallback((e=>{if("client"!==n.filterMode||!e.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const o=cs(t),r={},{isRowMatchingFilters:i}=e,l={},a={passingFilterItems:null,passingQuickFilterValues:null};for(let n=0;n<C.length;n+=1){const o=C[n],s=O?O(o):o.id;i(o,void 0,a);const u=Bk([a.passingFilterItems],[a.passingQuickFilterValues],e.filterModel,t,l);r[s]=u}const s="auto-generated-group-footer-root";return o[s]&&(r[s]=!0),{filteredRowsLookup:r,filteredDescendantCountLookup:{}}}),[t,C,n.filterMode,O]);GO(t,"columnMenu",s),GO(t,"exportState",v),GO(t,"restoreState",y),GO(t,"preferencePanel",w),YO(t,ZO,"filtering",k),YO(t,ZO,"visibleRowsLookupCreation",Wk);const S=e.useCallback((()=>{l.debug("onColUpdated - GridColumns changed, applying filters");const e=Es(t),n=is(t),o=e.items.filter((e=>e.field&&n[e.field]));o.length<e.items.length&&t.current.setFilterModel(Ie({},e,{items:o}))}),[t,l]),E=e.useCallback((e=>{"filtering"===e&&t.current.unstable_applyFilters()}),[t]),R=e.useCallback((()=>{t.current.setState((e=>Ie({},e,{visibleRowsLookup:Gk(t,e)}))),t.current.forceUpdate()}),[t]);Lm(t,"rowsSet",a),Lm(t,"columnsChange",S),Lm(t,"activeStrategyProcessorChange",E),Lm(t,"rowExpansionChange",R),Ym((()=>{t.current.unstable_applyFilters()})),Pt((()=>{void 0!==n.filterModel&&t.current.setFilterModel(n.filterModel)}),[t,l,n.filterModel])})(o,n),((t,n)=>{var o,r;const i=zm(t,"useGridSorting");t.current.registerControlState({stateId:"sortModel",propModel:n.sortModel,propOnChange:n.onSortModelChange,stateSelector:Os,changeEvent:"sortModelChange"});const l=e.useCallback(((e,n)=>{const o=Os(t),r=o.findIndex((t=>t.field===e));let i=[...o];return r>-1?n?i.splice(r,1,n):i.splice(r,1):i=[...o,n],i}),[t]),a=e.useCallback(((e,o)=>{var r;const i=Os(t).find((t=>t.field===e.field));if(i){var l;const t=void 0===o?bg(null!=(l=e.sortingOrder)?l:n.sortingOrder,i.sort):o;return null==t?void 0:Ie({},i,{sort:t})}return{field:e.field,sort:void 0===o?bg(null!=(r=e.sortingOrder)?r:n.sortingOrder):o}}),[t,n.sortingOrder]),s=e.useCallback(((e,t)=>null==t||!1===t.sortable?e:(t.sortingOrder||n.sortingOrder).some((e=>!!e))?[...e,"columnMenuSortItem"]:e),[n.sortingOrder]),u=e.useCallback((()=>{t.current.setState((e=>{if("server"===n.sortingMode)return i.debug("Skipping sorting rows as sortingMode = server"),Ie({},e,{sorting:Ie({},e.sorting,{sortedRows:uu(ps(t),nu,!1)})});const o=((e,t)=>{const n=e.map((e=>((e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const o=(e=>"desc"===e)(e.sort)?(...e)=>-1*n.sortComparator(...e):n.sortComparator;return{getSortCellParams:e=>({id:e,field:n.field,rowNode:t.current.getRowNode(e),value:t.current.getCellValue(e,n.field),api:t.current}),comparator:o}})(e,t))).filter((e=>!!e));return 0===n.length?null:e=>e.map((e=>({node:e,params:n.map((t=>t.getSortCellParams(e.id)))}))).sort(((e,t)=>((e,t,n)=>e.reduce(((e,o,r)=>{if(0!==e)return e;const i=t.params[r],l=n.params[r];return o.comparator(i.value,l.value,i,l)}),0))(n,e,t))).map((e=>e.node.id))})(Os(e,t.current.instanceId),t),r=t.current.applyStrategyProcessor("sorting",{sortRowList:o});return Ie({},e,{sorting:Ie({},e.sorting,{sortedRows:r})})})),t.current.publishEvent("sortedRowsSet"),t.current.forceUpdate()}),[t,i,n.sortingMode]),c=e.useCallback((e=>{Os(t)!==e&&(i.debug("Setting sort model"),t.current.setState(gg(e,n.disableMultipleColumnsSorting)),t.current.forceUpdate(),t.current.applySorting())}),[t,i,n.disableMultipleColumnsSorting]),d=e.useCallback(((e,o,r)=>{if(!e.sortable)return;const i=a(e,o);let s;s=!r||n.disableMultipleColumnsSorting?i?[i]:[]:l(e.field,i),t.current.setSortModel(s)}),[t,l,a,n.disableMultipleColumnsSorting]),p=e.useCallback((()=>Os(t)),[t]),f=e.useCallback((()=>Cs(t).map((e=>e.model))),[t]),h=e.useCallback((()=>xs(t)),[t]),m=e.useCallback((e=>t.current.getSortedRowIds()[e]),[t]);Mu(t,{getSortModel:p,getSortedRows:f,getSortedRowIds:h,getRowIdFromRowIndex:m,setSortModel:c,sortColumn:d,applySorting:u},"public");const g=e.useCallback(((e,o)=>{var r,i;const l=Os(t);return!o.exportOnlyDirtyModels||null!=n.sortModel||null!=(null==(r=n.initialState)||null==(i=r.sorting)?void 0:i.sortModel)||l.length>0?Ie({},e,{sorting:{sortModel:l}}):e}),[t,n.sortModel,null==(o=n.initialState)||null==(r=o.sorting)?void 0:r.sortModel]),b=e.useCallback(((e,o)=>{var r;const i=null==(r=o.stateToRestore.sorting)?void 0:r.sortModel;return null==i?e:(t.current.setState(gg(i,n.disableMultipleColumnsSorting)),Ie({},e,{callbacks:[...e.callbacks,t.current.applySorting]}))}),[t,n.disableMultipleColumnsSorting]),v=e.useCallback((e=>{const n=ps(t),o=n[nu],r=e.sortRowList?e.sortRowList(o.children.map((e=>n[e]))):[...o.children];return null!=o.footerId&&r.push(o.footerId),r}),[t]);GO(t,"exportState",g),GO(t,"restoreState",b),YO(t,ZO,"sorting",v);const y=e.useCallback((({colDef:e},t)=>{const n=t.shiftKey||t.metaKey||t.ctrlKey;d(e,void 0,n)}),[d]),w=e.useCallback((({colDef:e},t)=>{(e=>"Enter"===e)(t.key)&&!t.ctrlKey&&!t.metaKey&&d(e,void 0,t.shiftKey)}),[d]),x=e.useCallback((()=>{const e=Os(t),n=Xa(t);if(e.length>0){const o=e.filter((e=>n[e.field]));o.length<e.length&&t.current.setSortModel(o)}}),[t]),C=e.useCallback((e=>{"sorting"===e&&t.current.applySorting()}),[t]);GO(t,"columnMenu",s),Lm(t,"columnHeaderClick",y),Lm(t,"columnHeaderKeyDown",w),Lm(t,"rowsSet",t.current.applySorting),Lm(t,"columnsChange",x),Lm(t,"activeStrategyProcessorChange",C),Ym((()=>{t.current.applySorting()})),Pt((()=>{void 0!==n.sortModel&&t.current.setSortModel(n.sortModel)}),[t,n.sortModel])})(o,n),((t,n)=>{const o=zm(t,"useDensity"),r=e.useCallback((e=>{o.debug(`Set grid density to ${e}`),t.current.setState((t=>{const n=Us(t),o={value:e,factor:Nk[e]};return Wm(n,o)?t:Ie({},t,{density:o})})),t.current.forceUpdate()}),[o,t]);e.useEffect((()=>{t.current.setDensity(n.density)}),[t,n.density]),Mu(t,{setDensity:r},"public")})(o,n),((t,n)=>{var o,r;const i=zm(t,"useGridPagination"),l=_a(t,Is),a=_a(t,Gs),s=Math.floor(n.rowHeight*a);t.current.registerControlState({stateId:"pagination",propModel:n.paginationModel,propOnChange:n.onPaginationModelChange,stateSelector:tg,changeEvent:"paginationModelChange"});const u=e.useCallback((e=>{const n=tg(t);e!==n.page&&(i.debug(`Setting page to ${e}`),t.current.setPaginationModel({page:e,pageSize:n.pageSize}))}),[t,i]),c=e.useCallback((e=>{const n=tg(t);e!==n.pageSize&&(i.debug(`Setting page size to ${e}`),t.current.setPaginationModel({pageSize:e,page:n.page}))}),[t,i]),d=e.useCallback((e=>{var o;e!==tg(t)&&(i.debug("Setting 'paginationModel' to",e),t.current.updateControlState("pagination",Jk(null!=(o=n.rowCount)?o:l,n.signature,e),"setPaginationModel"),t.current.forceUpdate())}),[t,i,n.rowCount,n.signature,l]);Mu(t,{setPage:u,setPageSize:c,setPaginationModel:d},"public");const p=e.useCallback(((e,o)=>{var r,i;const l=tg(t);return!o.exportOnlyDirtyModels||null!=n.paginationModel||null!=(null==(r=n.initialState)||null==(i=r.pagination)?void 0:i.paginationModel)||0!==l.page&&l.pageSize!==(e=>e?0:100)(n.autoPageSize)?Ie({},e,{pagination:Ie({},e.pagination,{paginationModel:l})}):e}),[t,n.paginationModel,null==(o=n.initialState)||null==(r=o.pagination)?void 0:r.paginationModel,n.autoPageSize]),f=e.useCallback(((e,o)=>{var r,i,a;const s=null!=(r=o.stateToRestore.pagination)&&r.paginationModel?Ie({},Qm(n.autoPageSize),null==(i=o.stateToRestore.pagination)?void 0:i.paginationModel):tg(t);return t.current.updateControlState("pagination",Jk(null!=(a=n.rowCount)?a:l,n.signature,s),"stateRestorePreProcessing"),e}),[t,n.autoPageSize,n.rowCount,n.signature,l]);GO(t,"exportState",p),GO(t,"restoreState",f);const h=e.useCallback((()=>{const e=t.current.getRootDimensions();if(!n.autoPageSize||!e)return;const o=cu(t),r=Math.floor((e.viewportInnerSize.height-o.top-o.bottom)/s);t.current.setPageSize(r)}),[t,n.autoPageSize,s]);Lm(t,"viewportInnerSizeChange",h),Lm(t,"paginationModelChange",(()=>{var e;const n=tg(t);null!=(e=t.current.virtualScrollerRef)&&e.current&&t.current.scrollToIndexes({rowIndex:n.page*n.pageSize}),t.current.forceUpdate()})),e.useEffect((()=>{"production"!==process.env.NODE_ENV&&"server"===n.paginationMode&&null==n.rowCount&&Xm()}),[n.rowCount,n.paginationMode]),e.useEffect((()=>{var e;t.current.updateControlState("pagination",Jk(null!=(e=n.rowCount)?e:l,n.signature,n.paginationModel))}),[t,n.paginationModel,n.rowCount,n.paginationMode,l,n.signature]),e.useEffect((()=>{h()}),[h])})(o,n),((t,n)=>{const{getRowHeight:o,getRowSpacing:r,getEstimatedRowHeight:i}=n,l=e.useRef(Object.create(null)),a=e.useRef(-1),s=e.useRef(!1),u=_a(t,Gs),c=_a(t,Es),d=_a(t,eg),p=_a(t,Os),f=mO(t,n),h=_a(t,vs),m=zE(n.rowHeight,FE.rowHeight,qE),g=Math.floor(m*u),b=e.useCallback((()=>{var e,n;s.current=!1;const c=e=>{l.current[e.id]||(l.current[e.id]={sizes:{baseCenter:g},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:n,needsFirstMeasurement:a,sizes:c}=l.current[e.id];let d="number"==typeof g&&g>0?g:52;const p=c.baseCenter;if(n)d=p;else if(o){const t=o(Ie({},e,{densityFactor:u}));"auto"===t?(d=a?(i?i(Ie({},e,{densityFactor:u})):g)??g:p,s.current=!0,l.current[e.id].autoHeight=!0):(d=zE(t,g,HE),l.current[e.id].needsFirstMeasurement=!1,l.current[e.id].autoHeight=!1)}else l.current[e.id].needsFirstMeasurement=!1;const h={};for(const e in c)/^base[A-Z]/.test(e)&&(h[e]=c[e]);if(h.baseCenter=d,r){var m,b;const n=t.current.getRowIndexRelativeToVisibleRows(e.id),o=r(Ie({},e,{isFirstVisible:0===n,isLastVisible:n===f.rows.length-1,indexRelativeToCurrentPage:n}));h.spacingTop=null!=(m=o.top)?m:0,h.spacingBottom=null!=(b=o.bottom)?b:0}const v=t.current.unstable_applyPipeProcessors("rowHeight",h,e);return l.current[e.id].sizes=v,v},d=[],p=f.rows.reduce(((e,t)=>{d.push(e);let n=0,o=0;const r=c(t);for(const e in r){const t=r[e];/^base[A-Z]/.test(e)?n=t>n?t:n:o+=t}return e+n+o}),0);null==h||null==(e=h.top)||e.forEach((e=>{c(e)})),null==h||null==(n=h.bottom)||n.forEach((e=>{c(e)})),t.current.setState((e=>Ie({},e,{rowsMeta:{currentPageTotalHeight:p,positions:d}}))),s.current||(a.current=1/0),t.current.forceUpdate()}),[t,f.rows,g,o,r,i,h,u]),v=e.useCallback((e=>{const t=l.current[e];return t?t.sizes.baseCenter:g}),[g]),y=e.useCallback(((e,t)=>{l.current[e].sizes.baseCenter=t,l.current[e].isResized=!0,l.current[e].needsFirstMeasurement=!1,b()}),[b]),w=e.useMemo((()=>St(b)),[b]),x=e.useCallback(((e,t,n)=>{if(!l.current[e]||!l.current[e].autoHeight)return;const o=l.current[e].sizes[`base${Ot(n)}`]!==t;l.current[e].needsFirstMeasurement=!1,l.current[e].sizes[`base${Ot(n)}`]=t,o&&w()}),[w]),C=e.useCallback((e=>{var t;return(null==(t=l.current[e])?void 0:t.autoHeight)||!1}),[]),O=e.useCallback((()=>a.current),[]),k=e.useCallback((e=>{s.current&&e>a.current&&(a.current=e)}),[]),S=e.useCallback((()=>{l.current={},b()}),[b]);e.useEffect((()=>{b()}),[g,c,d,p,b]),KO(t,"rowHeight",b);const E={getLastMeasuredRowIndex:O,rowHasAutoHeight:C};Mu(t,{unstable_setLastMeasuredRowIndex:k,unstable_getRowHeight:v,unstable_getRowInternalSizes:e=>{var t;return null==(t=l.current[e])?void 0:t.sizes},unstable_setRowHeight:y,unstable_storeRowHeightMeasurement:x,resetRowHeights:S},"public"),Mu(t,E,"private")})(o,n),((t,n)=>{const o=mr(),r=zm(t,"useGridScroll"),i=t.current.columnHeadersElementRef,l=t.current.virtualScrollerRef,a=_a(t,Ts),s=e.useCallback((e=>{const o=as(t),i=es(t);if(null!=e.rowIndex&&0===o||0===i.length)return!1;r.debug(`Scrolling to cell at row ${e.rowIndex}, col: ${e.colIndex} `);let s={};if(null!=e.colIndex){const n=ns(t);let o;if(typeof e.rowIndex<"u"){var u;const n=null==(u=a[e.rowIndex])?void 0:u.id,r=t.current.unstable_getCellColSpanInfo(n,e.colIndex);r&&!r.spannedByColSpan&&(o=r.cellProps.width)}typeof o>"u"&&(o=i[e.colIndex].computedWidth),s.left=bS({clientHeight:l.current.clientWidth,scrollTop:Math.abs(l.current.scrollLeft),offsetHeight:o,offsetTop:n[e.colIndex]})}if(null!=e.rowIndex){var c,d;const o=ug(t.current.state),r=ng(t),i=og(t),a=n.pagination?e.rowIndex-r*i:e.rowIndex,u=o.positions[a+1]?o.positions[a+1]-o.positions[a]:o.currentPageTotalHeight-o.positions[a],p=(null==(c=l.current.querySelector(`.${Da["pinnedRows--top"]}`))?void 0:c.clientHeight)||0,f=(null==(d=l.current.querySelector(`.${Da["pinnedRows--bottom"]}`))?void 0:d.clientHeight)||0;s.top=bS({clientHeight:l.current.clientHeight-p-f,scrollTop:l.current.scrollTop,offsetHeight:u,offsetTop:o.positions[a]})}return s=t.current.unstable_applyPipeProcessors("scrollToIndexes",s,e),(void 0!==typeof s.left||void 0!==typeof s.top)&&(t.current.scroll(s),!0)}),[r,t,l,n.pagination,a]),u=e.useCallback((e=>{if(l.current&&null!=e.left&&i.current){const t="rtl"===o.direction?-1:1;i.current.scrollLeft=e.left,l.current.scrollLeft=t*e.left,r.debug(`Scrolling left: ${e.left}`)}l.current&&null!=e.top&&(l.current.scrollTop=e.top,r.debug(`Scrolling top: ${e.top}`)),r.debug("Scrolling, updating container, and viewport")}),[l,o.direction,i,r]),c=e.useCallback((()=>null!=l&&l.current?{top:l.current.scrollTop,left:l.current.scrollLeft}:{top:0,left:0}),[l]);Mu(t,{scroll:u,scrollToIndexes:s,getScrollPosition:c},"public")})(o,n),(t=>{const n=zm(t,"useGridColumnMenu"),o=e.useCallback((e=>{t.current.setState((t=>t.columnMenu.open&&t.columnMenu.field===e?t:(n.debug("Opening Column Menu"),Ie({},t,{columnMenu:{open:!0,field:e}}))))&&(t.current.hidePreferences(),t.current.forceUpdate())}),[t,n]),r=e.useCallback((()=>{const e=Js(t.current.state);if(e.field){const n=Xa(t),o=Ja(t),r=Za(t);let i=e.field;if(n[i]||(i=r[0]),!1===o[i]){const e=r.filter((e=>e===i||!1!==o[e])),t=e.indexOf(i);i=e[t+1]||e[t-1]}t.current.setColumnHeaderFocus(i)}t.current.setState((e=>e.columnMenu.open||void 0!==e.columnMenu.field?(n.debug("Hiding Column Menu"),Ie({},e,{columnMenu:Ie({},e.columnMenu,{open:!1,field:void 0})})):e))&&t.current.forceUpdate()}),[t,n]),i=e.useCallback((e=>{n.debug("Toggle Column Menu");const i=Js(t.current.state);i.open&&i.field===e?r():o(e)}),[t,n,o,r]);Mu(t,{showColumnMenu:o,hideColumnMenu:r,toggleColumnMenu:i},"public"),Lm(t,"columnResizeStart",r),Lm(t,"virtualScrollerWheel",t.current.hideColumnMenu),Lm(t,"virtualScrollerTouchMove",t.current.hideColumnMenu)})(o),_k(o,n),Ik(o,n),vk(o,n),function(t,n){const o=zm(t,"useResizeContainer"),r=e.useRef(!1),i=e.useRef(null),l=e.useRef(null),a=_a(t,ug),s=_a(t,Gs),u=Math.floor(n.rowHeight*s),c=Ek(t,n.columnHeaderHeight),d=e.useCallback((()=>{var e;const o=null==(e=t.current.rootElementRef)?void 0:e.current,r=os(t),s=cu(t);if(!i.current)return;let u,d,p,f;if(null!=n.scrollbarSize)u=n.scrollbarSize;else if(r&&o){const e=Rt(o).createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.overflow="scroll",e.className="scrollDiv",o.appendChild(e),u=e.offsetWidth-e.clientWidth,o.removeChild(e)}else u=0;if(n.autoHeight)f=!1,p=Math.round(r)>Math.round(i.current.width),d={width:i.current.width,height:a.currentPageTotalHeight+(p?u:0)};else{d={width:i.current.width,height:i.current.height-c};const e=(({content:e,container:t,scrollBarSize:n})=>{const o=e.width>t.width,r=e.height>t.height;let i=!1,l=!1;return(o||r)&&(i=o,l=e.height+(i?n:0)>t.height,l&&(i=e.width+n>t.width)),{hasScrollX:i,hasScrollY:l}})({content:{width:Math.round(r),height:a.currentPageTotalHeight},container:{width:Math.round(d.width),height:d.height-s.top-s.bottom},scrollBarSize:u});f=e.hasScrollY,p=e.hasScrollX}const h={viewportOuterSize:d,viewportInnerSize:{width:d.width-(f?u:0),height:d.height-(p?u:0)},hasScrollX:p,hasScrollY:f,scrollBarSize:u},m=l.current;l.current=h,(h.viewportInnerSize.width!==(null==m?void 0:m.viewportInnerSize.width)||h.viewportInnerSize.height!==(null==m?void 0:m.viewportInnerSize.height))&&t.current.publishEvent("viewportInnerSizeChange",h.viewportInnerSize)}),[t,n.scrollbarSize,n.autoHeight,a.currentPageTotalHeight,c]),[p,f]=e.useState(),h=e.useMemo((()=>St(f,60)),[]),m=e.useRef();Pt((()=>{p&&(d(),t.current.publishEvent("debouncedResize",i.current))}),[t,p,d]);const g=e.useCallback((()=>{t.current.computeSizeAndPublishResizeEvent()}),[t]),b=e.useCallback((()=>l.current),[]),v=e.useCallback((()=>{const e=t.current.getRootDimensions();if(!e)return 0;const o=hO(t,{pagination:n.pagination,paginationMode:n.paginationMode});if(n.getRowHeight){const e=t.current.getRenderContext(),n=e.lastRowIndex-e.firstRowIndex;return Math.min(n-1,o.rows.length)}const r=Math.floor(e.viewportInnerSize.height/u);return Math.min(r,o.rows.length)}),[t,n.pagination,n.paginationMode,n.getRowHeight,u]),y=e.useCallback((()=>{var e,n,o;const r=null==(e=t.current.mainElementRef)?void 0:e.current;if(!r)return;const i=Tt(r).getComputedStyle(r),l=parseFloat(i.height)||0,a=parseFloat(i.width)||0,s=l!==(null==(n=m.current)?void 0:n.height),u=a!==(null==(o=m.current)?void 0:o.width);if(!m.current||s||u){const e={width:a,height:l};t.current.publishEvent("resize",e),m.current=e}}),[t]),w={getViewportPageSize:v,updateGridDimensionsRef:d,computeSizeAndPublishResizeEvent:y};Mu(t,{resize:g,getRootDimensions:b},"public"),Mu(t,w,"private");const x=e.useRef(!0),C=e.useCallback((e=>{i.current=e;const t=/jsdom/.test(window.navigator.userAgent);return 0===e.height&&!r.current&&!n.autoHeight&&!t&&(o.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join("\n")),r.current=!0),0===e.width&&!r.current&&!t&&(o.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join("\n")),r.current=!0),vS||x.current?(f(e),void(x.current=!1)):void h(e)}),[n.autoHeight,h,o]);Pt((()=>d()),[d]),$m(t,"sortedRowsSet",d),$m(t,"paginationModelChange",d),$m(t,"columnsChange",d),Lm(t,"resize",C),$m(t,"debouncedResize",n.onResize)}(o,n),function(e,t){$m(e,"columnHeaderClick",t.onColumnHeaderClick),$m(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),$m(e,"columnHeaderOver",t.onColumnHeaderOver),$m(e,"columnHeaderOut",t.onColumnHeaderOut),$m(e,"columnHeaderEnter",t.onColumnHeaderEnter),$m(e,"columnHeaderLeave",t.onColumnHeaderLeave),$m(e,"cellClick",t.onCellClick),$m(e,"cellDoubleClick",t.onCellDoubleClick),$m(e,"cellKeyDown",t.onCellKeyDown),$m(e,"preferencePanelClose",t.onPreferencePanelClose),$m(e,"preferencePanelOpen",t.onPreferencePanelOpen),$m(e,"menuOpen",t.onMenuOpen),$m(e,"menuClose",t.onMenuClose),$m(e,"rowDoubleClick",t.onRowDoubleClick),$m(e,"rowClick",t.onRowClick),$m(e,"stateChange",t.onStateChange)}(o,n),(t=>{const n=e.useCallback(((e={})=>t.current.unstable_applyPipeProcessors("exportState",{},e)),[t]),o=e.useCallback((e=>{t.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:e}).callbacks.forEach((e=>{e()})),t.current.forceUpdate()}),[t]);Mu(t,{exportState:n,restoreState:o},"public")})(o),o},XE=Ro("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"}}),QE=e.forwardRef((function(e,t){const n=wa(),o=(e=>{const{classes:t}=e;return en({root:["virtualScroller"]},Ia,t)})(n);return Me.jsx(XE,Ie({ref:t},e,{className:vo(o.root,e.className),ownerState:n}))})),JE=Ro("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),eR=e.forwardRef((function(e,t){var n;const o=wa(),r=((e,t)=>{const{classes:n}=e;return en({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},Ia,n)})(o,!o.autoHeight&&"auto"===(null==(n=e.style)?void 0:n.minHeight));return Me.jsx(JE,Ie({ref:t},e,{ownerState:o,className:vo(r.root,e.className)}))})),tR=["className"],nR=Ro("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),oR=e.forwardRef((function(e,t){const{className:n}=e,o=De(e,tR),r=wa(),i=(e=>{const{classes:t}=e;return en({root:["virtualScrollerRenderZone"]},Ia,t)})(r);return Me.jsx(nR,Ie({ref:t,className:vo(i.root,n),ownerState:r},o))})),rR=["className","disableVirtualization"],iR=e.forwardRef((function(e,t){const{className:n,disableVirtualization:o}=e,r=De(e,rR),{getRootProps:i,getContentProps:l,getRenderZoneProps:a,getRows:s}=SS({ref:t,disableVirtualization:o});return Me.jsxs(QE,Ie({className:n},i(r),{children:[Me.jsx(gu,{}),Me.jsx(eR,Ie({},l(),{children:Me.jsx(oR,Ie({},a(),{children:s()}))}))]}))})),lR=e.forwardRef((function(e,t){const n=LE(e),o=ZE(n.apiRef,n);return Me.jsx(DO,{privateApiRef:o,props:n,children:Me.jsxs(tm,Ie({className:n.className,style:n.style,sx:n.sx,ref:t},n.forwardedProps,{children:[Me.jsx(rC,{}),Me.jsx(eu,{VirtualScrollerComponent:iR}),Me.jsx(tu,{})]}))})})),aR=e.memo(lR);lR.propTypes={apiRef:oe.shape({current:oe.object.isRequired}),"aria-label":oe.string,"aria-labelledby":oe.string,autoHeight:oe.bool,autoPageSize:oe.bool,cellModesModel:oe.object,checkboxSelection:oe.bool,classes:oe.object,clipboardCopyCellDelimiter:oe.string,columnBuffer:oe.number,columnGroupingModel:oe.arrayOf(oe.object),columnHeaderHeight:oe.number,columns:nt(oe.array.isRequired,(e=>e.columns&&e.columns.some((e=>e.resizable))?new Error(["MUI: `column.resizable = true` is not a valid prop.","Column resizing is not available in the MIT version.","","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n")):null)),columnThreshold:oe.number,columnVisibilityModel:oe.object,components:oe.object,componentsProps:oe.object,density:oe.oneOf(["comfortable","compact","standard"]),disableColumnFilter:oe.bool,disableColumnMenu:oe.bool,disableColumnSelector:oe.bool,disableDensitySelector:oe.bool,disableRowSelectionOnClick:oe.bool,disableVirtualization:oe.bool,editMode:oe.oneOf(["cell","row"]),experimentalFeatures:oe.shape({columnGrouping:oe.bool,warnIfFocusStateIsNotSynced:oe.bool}),filterMode:oe.oneOf(["client","server"]),filterModel:oe.shape({items:oe.arrayOf(oe.shape({field:oe.string.isRequired,id:oe.oneOfType([oe.number,oe.string]),operator:oe.string.isRequired,value:oe.any})).isRequired,logicOperator:oe.oneOf(["and","or"]),quickFilterLogicOperator:oe.oneOf(["and","or"]),quickFilterValues:oe.array}),forwardedProps:oe.object,getCellClassName:oe.func,getDetailPanelContent:oe.func,getEstimatedRowHeight:oe.func,getRowClassName:oe.func,getRowHeight:oe.func,getRowId:oe.func,getRowSpacing:oe.func,hideFooter:oe.bool,hideFooterPagination:oe.bool,hideFooterSelectedRowCount:oe.bool,initialState:oe.object,isCellEditable:oe.func,isRowSelectable:oe.func,keepNonExistentRowsSelected:oe.bool,loading:oe.bool,localeText:oe.object,logger:oe.shape({debug:oe.func.isRequired,error:oe.func.isRequired,info:oe.func.isRequired,warn:oe.func.isRequired}),logLevel:oe.oneOf(["debug","error","info","warn",!1]),nonce:oe.string,onCellClick:oe.func,onCellDoubleClick:oe.func,onCellEditStart:oe.func,onCellEditStop:oe.func,onCellKeyDown:oe.func,onCellModesModelChange:oe.func,onClipboardCopy:oe.func,onColumnHeaderClick:oe.func,onColumnHeaderDoubleClick:oe.func,onColumnHeaderEnter:oe.func,onColumnHeaderLeave:oe.func,onColumnHeaderOut:oe.func,onColumnHeaderOver:oe.func,onColumnOrderChange:oe.func,onColumnVisibilityModelChange:oe.func,onFilterModelChange:oe.func,onMenuClose:oe.func,onMenuOpen:oe.func,onPaginationModelChange:oe.func,onPreferencePanelClose:oe.func,onPreferencePanelOpen:oe.func,onProcessRowUpdateError:oe.func,onResize:oe.func,onRowClick:oe.func,onRowDoubleClick:oe.func,onRowEditCommit:oe.func,onRowEditStart:oe.func,onRowEditStop:oe.func,onRowModesModelChange:oe.func,onRowSelectionModelChange:oe.func,onSortModelChange:oe.func,onStateChange:oe.func,pageSizeOptions:oe.arrayOf(oe.oneOfType([oe.number,oe.shape({label:oe.string.isRequired,value:oe.number.isRequired})]).isRequired),pagination:e=>!1===e.pagination?new Error(["MUI: `<DataGrid pagination={false} />` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to DataGridPro or DataGridPremium component to disable the pagination."].join("\n")):null,paginationMode:oe.oneOf(["client","server"]),paginationModel:oe.shape({page:oe.number.isRequired,pageSize:oe.number.isRequired}),processRowUpdate:oe.func,rowBuffer:oe.number,rowCount:oe.number,rowHeight:oe.number,rowModesModel:oe.object,rows:oe.arrayOf(oe.object).isRequired,rowSelection:oe.bool,rowSelectionModel:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.number,oe.string]).isRequired),oe.number,oe.string]),rowSpacingType:oe.oneOf(["border","margin"]),rowThreshold:oe.number,scrollbarSize:oe.number,showCellVerticalBorder:oe.bool,showColumnVerticalBorder:oe.bool,slotProps:oe.object,slots:oe.object,sortingMode:oe.oneOf(["client","server"]),sortingOrder:oe.arrayOf(oe.oneOf(["asc","desc"])),sortModel:oe.arrayOf(oe.shape({field:oe.string.isRequired,sort:oe.oneOf(["asc","desc"])})),sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object]),unstable_ignoreValueFormatterDuringExport:oe.oneOfType([oe.shape({clipboardExport:oe.bool,csvExport:oe.bool}),oe.bool])};const sR=({apiRef:e,columnField:t})=>{const n=(null==e?void 0:e.current.getVisibleColumns().map((e=>e.field))).includes(t),[o,r]=l(n);return Me.jsx(YS,{size:"small",checked:o,onChange:()=>{null==e||e.current.setColumnVisibility(t,!o),r(!o)}})},uR=e=>Me.jsx(C,{...e}),cR=({columnsMenuTitle:e,apiRef:t,fixedColumns:n})=>{const o=(null==t?void 0:t.current.getAllColumns()).filter((e=>!("__check__"===e.field||null!=n&&n.includes(e.field))));return Me.jsxs("div",{className:"flex flex-col p-5",children:[e&&Me.jsx("div",{children:e}),Me.jsx(uR,{className:"flex flex-col !text-[14px]",children:o.map((e=>Me.jsx(ev,{className:"capitalize",control:Me.jsx(sR,{apiRef:t,columnField:e.field}),label:e.headerName},e.field))).slice(0,-1)})]})},dR=({apiRef:e,columnsMenuTitle:t,fixedColumns:n})=>{const[o,r]=l(null),i=!!o,a=i?"simple-popover":void 0;return Me.jsxs(Me.Fragment,{children:[Me.jsx("div",{className:"flex cursor-pointer items-center justify-center",onClick:e=>{r(e.currentTarget)},"aria-describedby":a,children:Me.jsx(tl,{icon:"mdi:pin",className:"text-delta-600",width:20,height:20})}),Me.jsx(O,{id:a,open:i,anchorEl:o,onClose:()=>{r(null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},children:Me.jsx(cR,{columnsMenuTitle:t,apiRef:e,fixedColumns:n})})]})},pR="_styled-data-grid_12ryp_1",fR="_cell_12ryp_5",hR="_cellContent_12ryp_9",mR="_columnHeader_12ryp_13",gR="_columnHeaderTitle_12ryp_17",bR="_columnHeaders_12ryp_21",vR="_footerContainer_12ryp_25",yR="_iconSeparator_12ryp_29",wR="_row_12ryp_33",xR="_virtualScrollerContent_12ryp_37",CR="_menuIconButton_12ryp_41",OR=t=>{var n,o,r,i,l,a,s,u,c,d,p,f,h,m,g,b,v,y,w,x,C;const O=e.useRef({}),k=[...t.columns];return t.disableRowActions||k.push(((e,t,n,o)=>({field:"actions",headerName:"Actions",width:50,disableColumnMenu:!0,sortable:!1,type:"actions",renderHeader:()=>Me.jsx(dR,{apiRef:e,columnsMenuTitle:n,fixedColumns:o}),getActions:t||(()=>[])}))(O,t.rowActions||(()=>[]),t.columnsMenuTitle||"",t.fixedColumns)),t.disableHeaderPin&&k.forEach((e=>{"actions"===e.type&&(e.renderHeader=()=>"")})),Me.jsx(aR,{disableColumnMenu:!0,apiRef:O,...t,columns:k,classes:{root:vo(`${pR}`,null==(n=t.classes)?void 0:n.root),cell:vo(`${fR}`,null==(o=t.classes)?void 0:o.cell),cellContent:vo(`${hR}`,null==(r=t.classes)?void 0:r.cellContent),columnHeader:vo(`${mR}`,null==(i=t.classes)?void 0:i.columnHeader),columnHeaderTitle:vo(`${gR}`,null==(l=t.classes)?void 0:l.columnHeaderTitle),columnHeaders:vo(`${bR}`,null==(a=t.classes)?void 0:a.columnHeaders),footerContainer:vo(`${vR}`,null==(s=t.classes)?void 0:s.footerContainer),iconSeparator:vo(`${yR}`,null==(u=t.classes)?void 0:u.iconSeparator),row:vo(`${wR}`,null==(c=t.classes)?void 0:c.row),virtualScrollerContent:vo(`${xR}`,null==(d=t.classes)?void 0:d.virtualScrollerContent),menuIconButton:vo(`${CR}`,null==(p=t.classes)?void 0:p.menuIconButton),...t.classes},slotProps:{baseCheckbox:{classes:{checked:vo("text-primary-700 hover:text-primary-700",null==(m=null==(h=null==(f=t.slotProps)?void 0:f.baseCheckbox)?void 0:h.classes)?void 0:m.checked)},className:vo("text-[#b5bec9] hover:text-primary-600 [&>svg]:h-5 [&>svg]:w-5 [&>input]:h-full [&>input]:w-full",null==(b=null==(g=t.slotProps)?void 0:g.baseCheckbox)?void 0:b.className),disableRipple:!0},baseIconButton:{classes:{root:vo("p-1 rounded text-delta-800 hover:bg-primary-50 active:bg-primary-100 focus:border-2 focus:border-solid focus:border-warning-500 disabled:text-delta-300",null==(w=null==(y=null==(v=t.slotProps)?void 0:v.baseIconButton)?void 0:y.classes)?void 0:w.root)},disableRipple:!0},basePopper:{className:vo("border border-solid border-delta-300 rounded shadow-[0px_2px_4px_0px_rgba(34,_33,_51,_0.15)]",null==(C=null==(x=t.slotProps)?void 0:x.basePopper)?void 0:C.className),sx:{"& .MuiList-root":{padding:"4px 0"}}},...t.slotProps}})};OR.defaultProps={disableHeaderPin:!1,disableRowActions:!1};const kR=e=>{var t;return Me.jsx(Fh,{...e,classes:{root:vo("px-3 py-2.5",null==(t=e.classes)?void 0:t.root)}})},SR={button:"_button_2p4hz_1",contained:"_contained_2p4hz_10",common:"_common_2p4hz_10",medium:"_medium_2p4hz_40",small:"_small_2p4hz_43",large:"_large_2p4hz_46",error:"_error_2p4hz_49",outlined:"_outlined_2p4hz_88",text:"_text_2p4hz_166",textGray:"_textGray_2p4hz_244"},ER=({variant:e="contained",className:t="",size:n="medium",children:o,refLink:r,startIcon:i,endIcon:l,dataTest:a,error:s,...u})=>{const c="large"===n||"medium"===n,d=s?"error":"common";return Me.jsxs(Me.Fragment,{children:[Me.jsx("div",{style:{display:"none"},children:Me.jsxs("button",{...u,className:vo(c?"px-2":"px-1.5",SR.button,SR[e],SR[d],SR[n],t),ref:r,"data-test":a,children:[i&&i,o&&Me.jsx("div",{className:"truncate flex items-center justify-center gap-2 "+(c?"px-2":"px-1"),children:o}),l&&l]})}),Me.jsxs("button",{...u,className:vo(c?"px-2":"px-1.5","asma-core-ui-button",e,d,n,t),ref:r,"data-test":a,children:[i&&i,o&&Me.jsx("div",{className:"truncate flex items-center justify-center gap-2 "+(c?"px-2":"px-1"),children:o}),l&&l]})]})},RR=({onCloseText:e,children:t,onClose:n,dataTest:o,showCloseIcon:r=!0,...i})=>Me.jsxs(k,{...i,"data-test":o,onClose:n,style:{zIndex:999,...i.style},children:[r&&Me.jsx("div",{className:"mr-2 mt-2 flex justify-end",children:Me.jsx(ER,{dataTest:`close-button-${o}`,variant:"textGray",endIcon:Me.jsx(tl,{icon:"ic:baseline-close",className:"text-2xl"}),onClick:e=>{n&&n(e,"escapeKeyDown")},className:"text-gray-800",children:e})}),t]}),TR=e=>Me.jsx(S,{...e,"data-test":"styled-dialog-actions",classes:{...e.classes,root:"p-0 m-0 justify-center"},children:Me.jsx("div",{className:vo("flex w-full justify-end space-x-4 p-4",e.className),children:e.children})}),NR=({children:e,classes:t,className:n,...o})=>Me.jsx(E,{...o,"data-test":"styled-dialog-content",classes:{...t,root:"p-4 mx-0 mt-0 w-full"},className:n,children:e}),PR=({children:e,...t})=>e?Me.jsx(R,{...t,"data-test":"styled-dialog-title",classes:{...t.classes,root:"space-x-3 p-4 text-xl font-semibold leading-tight"},children:e}):null,MR=e=>{var t,o,r,i,l,a,s,u,c,d,p,f,h;return Me.jsx(T,{...e,classes:{...e.classes,root:vo("border-solid text-sm font-normal px-3 py-2",n.count(e.children)>1?"items-start":"items-center",null==(t=e.classes)?void 0:t.root),action:vo("p-0 pl-4",null==(o=e.classes)?void 0:o.action),icon:vo("text-2xl text-inherit",null==(r=e.classes)?void 0:r.icon),filled:vo("border",null==(i=e.classes)?void 0:i.filled),filledError:vo("border-error-500 bg-error-100 text-error-700",null==(l=e.classes)?void 0:l.filledError),filledInfo:vo("border-info-500 bg-info-300 text-info-700",null==(a=e.classes)?void 0:a.filledInfo),filledSuccess:vo("border-success-500 bg-success-100 text-success-700",null==(s=e.classes)?void 0:s.filledSuccess),filledWarning:vo("border-warning-500 bg-warning-100 text-warning-700",null==(u=e.classes)?void 0:u.filledWarning),outlined:vo("border-2",null==(c=e.classes)?void 0:c.outlined),outlinedError:vo("border-error-700 text-error-700",null==(d=e.classes)?void 0:d.outlinedError),outlinedInfo:vo("border-info-700 text-info-700",null==(p=e.classes)?void 0:p.outlinedInfo),outlinedSuccess:vo("border-success-700 text-success-700",null==(f=e.classes)?void 0:f.outlinedSuccess),outlinedWarning:vo("border-warning-700 text-warning-700",null==(h=e.classes)?void 0:h.outlinedWarning)},iconMapping:{...e.iconMapping,success:Me.jsx(tl,{icon:"material-symbols:check-circle-outline",fontSize:"inherit"})}})},jR=e=>Me.jsx(N,{...e,classes:{root:vo("mb-0.5 font-semibold text-sm",e.className)}});let _R={data:""},IR=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||_R,DR=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,FR=/\/\*[^]*?\*\/| +/g,AR=/\n+/g,LR=(e,t)=>{let n="",o="",r="";for(let i in e){let l=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+l+";":o+="f"==i[1]?LR(l,i):i+"{"+LR(l,"k"==i[1]?"":t)+"}":"object"==typeof l?o+=LR(l,t?t.replace(/([^,])+/g,(e=>i.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=l&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),r+=LR.p?LR.p(i,l):i+":"+l+";")}return n+(t&&r?t+"{"+r+"}":r)+o},VR={},$R=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+$R(e[n]);return t}return e},zR=(e,t,n,o,r)=>{let i=$R(e),l=VR[i]||(VR[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!VR[l]){let t=i!==e?e:(e=>{let t,n,o=[{}];for(;t=DR.exec(e.replace(FR,""));)t[4]?o.shift():t[3]?(n=t[3].replace(AR," ").trim(),o.unshift(o[0][n]=o[0][n]||{})):o[0][t[1]]=t[2].replace(AR," ").trim();return o[0]})(e);VR[l]=LR(r?{["@keyframes "+l]:t}:t,n?"":"."+l)}let a=n&&VR.g?VR.g:null;return n&&(VR.g=VR[l]),s=VR[l],u=t,c=o,(d=a)?u.data=u.data.replace(d,s):-1===u.data.indexOf(s)&&(u.data=c?s+u.data:u.data+s),l;var s,u,c,d},qR=(e,t,n)=>e.reduce(((e,o,r)=>{let i=t[r];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":LR(e,""):!1===e?"":e}return e+o+(i??"")}),"");function HR(e){let t=this||{},n=e.call?e(t.p):e;return zR(n.unshift?n.raw?qR(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,IR(t.target),t.g,t.o,t.k)}function BR(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function UR(e,t,n){return t&&BR(e.prototype,t),n&&BR(e,n),e}function WR(){return WR=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},WR.apply(this,arguments)}function GR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function KR(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function YR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}HR.bind({g:1}),HR.bind({k:1});var ZR=function(){return""},XR=t.createContext({enqueueSnackbar:ZR,closeSnackbar:ZR}),QR="@media (max-width:599.95px)",JR="@media (min-width:600px)",eT=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},tT=function(e){return""+eT(e.vertical)+eT(e.horizontal)},nT=function(e){return!!e||0===e},oT="unmounted",rT="exited",iT="entering",lT="entered",aT="exiting",sT=function(e){function t(t){var n;n=e.call(this,t)||this;var o,r=t.appear;return n.appearStatus=null,t.in?r?(o=rT,n.appearStatus=iT):o=lT:o=t.unmountOnExit||t.mountOnEnter?oT:rT,n.state={status:o},n.nextCallback=null,n}GR(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===oT?{status:rT}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==iT&&n!==lT&&(t=iT):(n===iT||n===lT)&&(t=aT)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=e,n=e;return null!=e&&"number"!=typeof e&&"string"!=typeof e&&(n=e.exit,t=e.enter),{exit:n,enter:t}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===iT?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===rT&&this.setState({status:oT})},n.performEnter=function(e){var t=this,n=this.props.enter,o=e,r=this.getTimeouts();e||n?(this.props.onEnter&&this.props.onEnter(this.node,o),this.safeSetState({status:iT},(function(){t.props.onEntering&&t.props.onEntering(t.node,o),t.onTransitionEnd(r.enter,(function(){t.safeSetState({status:lT},(function(){t.props.onEntered&&t.props.onEntered(t.node,o)}))}))}))):this.safeSetState({status:lT},(function(){t.props.onEntered&&t.props.onEntered(t.node,o)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts();t?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:aT},(function(){e.props.onExiting&&e.props.onExiting(e.node),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:rT},(function(){e.props.onExited&&e.props.onExited(e.node)}))}))}))):this.safeSetState({status:rT},(function(){e.props.onExited&&e.props.onExited(e.node)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(){n&&(n=!1,t.nextCallback=null,e())},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=null==e&&!this.props.addEndListener;this.node&&!n?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===oT)return null;var t=this.props;return(0,t.children)(e,KR(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},UR(t,[{key:"node",get:function(){var e,t=null===(e=this.props.nodeRef)||void 0===e?void 0:e.current;if(!t)throw new Error("notistack - Custom snackbar is not refForwarding");return t}}]),t}(t.Component);function uT(){}function cT(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function dT(e,t){return p((function(){return null==e&&null==t?null:function(n){cT(e,n),cT(t,n)}}),[e,t])}function pT(e){var t=e.timeout,n=e.style,o=void 0===n?{}:n,r=e.mode;return{duration:"object"==typeof t?t[r]||0:t,easing:o.transitionTimingFunction,delay:o.transitionDelay}}sT.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:uT,onEntering:uT,onEntered:uT,onExit:uT,onExiting:uT,onExited:uT};var fT="cubic-bezier(0.4, 0, 0.2, 1)",hT="cubic-bezier(0.0, 0, 0.2, 1)",mT="cubic-bezier(0.4, 0, 0.6, 1)",gT=function(e){e.scrollTop=e.scrollTop},bT=function(e){return Math.round(e)+"ms"};function vT(e,t){void 0===e&&(e=["all"]);var n=t||{},o=n.duration,r=void 0===o?300:o,i=n.easing,l=void 0===i?fT:i,a=n.delay,s=void 0===a?0:a;return(Array.isArray(e)?e:[e]).map((function(e){var t="string"==typeof r?r:bT(r),n="string"==typeof s?s:bT(s);return e+" "+t+" "+l+" "+n})).join(",")}function yT(e){var t=function(e){return e&&e.ownerDocument||document}(e);return t.defaultView||window}function wT(e,t){if(t){var n=function(e,t){var n,o=t.getBoundingClientRect(),r=yT(t);if(t.fakeTransform)n=t.fakeTransform;else{var i=r.getComputedStyle(t);n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var l=0,a=0;if(n&&"none"!==n&&"string"==typeof n){var s=n.split("(")[1].split(")")[0].split(",");l=parseInt(s[4],10),a=parseInt(s[5],10)}switch(e){case"left":return"translateX("+(r.innerWidth+l-o.left)+"px)";case"right":return"translateX(-"+(o.left+o.width-l)+"px)";case"up":return"translateY("+(r.innerHeight+a-o.top)+"px)";default:return"translateY(-"+(o.top+o.height-a)+"px)"}}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var xT=a((function(e,t){var n=e.children,o=e.direction,l=void 0===o?"down":o,a=e.in,d=e.style,p=e.timeout,f=void 0===p?0:p,h=e.onEnter,m=e.onEntered,g=e.onExit,b=e.onExited,v=KR(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),y=s(null),w=dT(n.ref,y),x=dT(w,t),C=u((function(){y.current&&wT(l,y.current)}),[l]);return c((function(){if(!a&&"down"!==l&&"right"!==l){var e=function(e,t){var n;function o(){for(var o=this,r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];clearTimeout(n),n=setTimeout((function(){e.apply(o,i)}),t)}return void 0===t&&(t=166),o.clear=function(){clearTimeout(n)},o}((function(){y.current&&wT(l,y.current)})),t=yT(y.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[l,a]),c((function(){a||C()}),[a,C]),i(sT,Object.assign({appear:!0,nodeRef:y,onEnter:function(e,t){wT(l,e),gT(e),h&&h(e,t)},onEntered:m,onEntering:function(e){var t=(null==d?void 0:d.transitionTimingFunction)||hT,n=pT({timeout:f,mode:"enter",style:WR({},d,{transitionTimingFunction:t})});e.style.webkitTransition=vT("-webkit-transform",n),e.style.transition=vT("transform",n),e.style.webkitTransform="none",e.style.transform="none"},onExit:function(e){var t=(null==d?void 0:d.transitionTimingFunction)||mT,n=pT({timeout:f,mode:"exit",style:WR({},d,{transitionTimingFunction:t})});e.style.webkitTransition=vT("-webkit-transform",n),e.style.transition=vT("transform",n),wT(l,e),g&&g(e)},onExited:function(e){e.style.webkitTransition="",e.style.transition="",b&&b(e)},in:a,timeout:f},v),(function(e,t){return r(n,WR({ref:x,style:WR({visibility:"exited"!==e||a?void 0:"hidden"},d,{},n.props.style)},t))}))}));xT.displayName="Slide";var CT=function(e){return t.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},e))},OT=function(){return t.createElement(CT,null,t.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},kT=function(){return t.createElement(CT,null,t.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},ST=function(){return t.createElement(CT,null,t.createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},ET=function(){return t.createElement(CT,null,t.createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z"}))},RT={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:t.createElement(OT,null),warning:t.createElement(kT,null),error:t.createElement(ST,null),info:t.createElement(ET,null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:xT,transitionDuration:{enter:225,exit:195}},TT=function(e,t){return function(n,o){return void 0===o&&(o=!1),o?WR({},RT[n],{},t[n],{},e[n]):"autoHideDuration"===n?function(e,t){var n=function(e){return"number"==typeof e||null===e};return n(e)?e:n(t)?t:RT.autoHideDuration}(e.autoHideDuration,t.autoHideDuration):"transitionDuration"===n?function(e,t){var n=function(e,t){return t.some((function(t){return typeof e===t}))};return n(e,["string","number"])?e:n(e,["object"])?WR({},RT.transitionDuration,{},n(t,["object"])&&t,{},e):n(t,["string","number"])?t:n(t,["object"])?WR({},RT.transitionDuration,{},t):RT.transitionDuration}(e.transitionDuration,t.transitionDuration):e[n]||t[n]||RT[n]}};function NT(e){return Object.entries(e).reduce((function(e,t){var n,o=t[0],r=t[1];return WR({},e,((n={})[o]=HR(r),n))}),{})}var PT="notistack-SnackbarContainer",MT="notistack-Snackbar",jT="notistack-CollapseWrapper",_T="notistack-MuiContent",IT=function(e){return"notistack-MuiContent-"+e},DT=NT({root:{height:0},entered:{height:"auto"}}),FT="0px",AT=a((function(e,t){var n=e.children,o=e.in,r=e.onExited,l=s(null),a=s(null),u=dT(t,a),c=function(){return l.current?l.current.clientHeight:0};return i(sT,{in:o,unmountOnExit:!0,onEnter:function(e){e.style.height=FT},onEntered:function(e){e.style.height="auto"},onEntering:function(e){var t=c(),n=pT({timeout:175,mode:"enter"}),o=n.duration,r=n.easing;e.style.transitionDuration="string"==typeof o?o:o+"ms",e.style.height=t+"px",e.style.transitionTimingFunction=r||""},onExit:function(e){e.style.height=c()+"px"},onExited:r,onExiting:function(e){gT(e);var t=pT({timeout:175,mode:"exit"}),n=t.duration,o=t.easing;e.style.transitionDuration="string"==typeof n?n:n+"ms",e.style.height=FT,e.style.transitionTimingFunction=o||""},nodeRef:a,timeout:175},(function(e,t){return i("div",Object.assign({ref:u,className:vo(DT.root,"entered"===e&&DT.entered),style:WR({pointerEvents:"all",overflow:"hidden",minHeight:FT,transition:vT("height")},"entered"===e&&{overflow:"visible"},{},"exited"===e&&!o&&{visibility:"hidden"})},t),i("div",{ref:l,className:jT,style:{display:"flex",width:"100%"}},n))}))}));AT.displayName="Collapse";var LT={right:"left",left:"right",bottom:"up",top:"down"},VT=function(e){return"center"!==e.horizontal?LT[e.horizontal]:LT[e.vertical]},$T=function(e){return"anchorOrigin"+tT(e)},zT=function(){};function qT(e,t){return e.reduce((function(e,n){return null==n?e:function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];var l=[].concat(r);t&&-1===l.indexOf(t)&&l.push(t),e.apply(this,l),n.apply(this,l)}}),zT)}var HT=typeof window<"u"?h:c;function BT(e){var t=s(e);return HT((function(){t.current=e})),u((function(){return t.current.apply(void 0,arguments)}),[])}var UT=a((function(e,t){var n=e.children,o=e.className,r=e.autoHideDuration,l=e.disableWindowBlurListener,a=void 0!==l&&l,d=e.onClose,p=e.id,f=e.open,h=e.SnackbarProps,m=void 0===h?{}:h,g=s(),b=BT((function(){d&&d.apply(void 0,arguments)})),v=BT((function(e){!d||null==e||(g.current&&clearTimeout(g.current),g.current=setTimeout((function(){b(null,"timeout",p)}),e))}));c((function(){return f&&v(r),function(){g.current&&clearTimeout(g.current)}}),[f,r,v]);var y=function(){g.current&&clearTimeout(g.current)},w=u((function(){null!=r&&v(.5*r)}),[r,v]);return c((function(){if(!a&&f)return window.addEventListener("focus",w),window.addEventListener("blur",y),function(){window.removeEventListener("focus",w),window.removeEventListener("blur",y)}}),[a,w,f]),i("div",Object.assign({ref:t},m,{className:vo(MT,o),onMouseEnter:function(e){m.onMouseEnter&&m.onMouseEnter(e),y()},onMouseLeave:function(e){m.onMouseLeave&&m.onMouseLeave(e),w()}}),n)}));UT.displayName="Snackbar";var WT,GT=NT({root:(WT={display:"flex",flexWrap:"wrap",flexGrow:1},WT[JR]={flexGrow:"initial",minWidth:"288px"},WT)}),KT=a((function(e,n){var o=e.className,r=KR(e,["className"]);return t.createElement("div",Object.assign({ref:n,className:vo(GT.root,o)},r))}));KT.displayName="SnackbarContent";var YT=NT({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:"20px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),ZT="notistack-snackbar",XT=a((function(e,n){var o=e.id,r=e.message,i=e.action,l=e.iconVariant,a=e.variant,s=e.hideIconVariant,u=e.style,c=e.className,d=l[a],p=i;return"function"==typeof p&&(p=p(o)),t.createElement(KT,{ref:n,role:"alert","aria-describedby":ZT,style:u,className:vo(_T,IT(a),YT.root,YT[a],c,!s&&d&&YT.lessPadding)},t.createElement("div",{id:ZT,className:YT.message},s?null:d,r),p&&t.createElement("div",{className:YT.action},p))}));XT.displayName="MaterialDesignContent";var QT,JT,eN,tN,nN,oN,rN,iN=m(XT),lN=NT({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),aN=function(e){var n=s(),o=l(!0),r=o[0],i=o[1],a=qT([e.snack.onClose,e.onClose]),d=u((function(){n.current=setTimeout((function(){i((function(e){return!e}))}),125)}),[]);c((function(){return function(){n.current&&clearTimeout(n.current)}}),[]);var f=e.snack,h=e.classes,m=e.Component,g=void 0===m?iN:m,b=p((function(){return function(e){void 0===e&&(e={});var t={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(e).filter((function(e){return!t[e]})).reduce((function(t,n){var o;return WR({},t,((o={})[n]=e[n],o))}),{})}(h)}),[h]),v=f.open,y=f.SnackbarProps,w=f.TransitionComponent,x=f.TransitionProps,C=f.transitionDuration,O=f.disableWindowBlurListener,k=f.content,S=KR(f,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),E=WR({direction:VT(S.anchorOrigin),timeout:C},x),R=k;"function"==typeof R&&(R=R(S.id,S.message));var T=["onEnter","onEntered","onExit","onExited"].reduce((function(t,n){var o;return WR({},t,((o={})[n]=qT([e.snack[n],e[n]],S.id),o))}),{});return t.createElement(AT,{in:r,onExited:T.onExited},t.createElement(UT,{open:v,id:S.id,disableWindowBlurListener:O,autoHideDuration:S.autoHideDuration,className:vo(lN.wrappedRoot,b.root,b[$T(S.anchorOrigin)]),SnackbarProps:y,onClose:a},t.createElement(w,Object.assign({},E,{appear:!0,in:v,onExit:T.onExit,onExited:d,onEnter:T.onEnter,onEntered:qT([T.onEntered,function(){e.snack.requestClose&&a(null,"instructed",e.snack.id)}],S.id)}),R||t.createElement(g,Object.assign({},S)))))},sN={default:20,dense:4},uN={default:6,dense:2},cN="."+jT,dN=NT({root:(QT={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:vT(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},QT[cN]={padding:uN.default+"px 0px",transition:"padding 300ms ease 0ms"},QT.maxWidth="calc(100% - "+2*sN.default+"px)",QT[QR]={width:"100%",maxWidth:"calc(100% - 32px)"},QT),rootDense:(JT={},JT[cN]={padding:uN.dense+"px 0px"},JT),top:{top:sN.default-uN.default+"px",flexDirection:"column"},bottom:{bottom:sN.default-uN.default+"px",flexDirection:"column-reverse"},left:(eN={left:sN.default+"px"},eN[JR]={alignItems:"flex-start"},eN[QR]={left:"16px"},eN),right:(tN={right:sN.default+"px"},tN[JR]={alignItems:"flex-end"},tN[QR]={right:"16px"},tN),center:(nN={left:"50%",transform:"translateX(-50%)"},nN[JR]={alignItems:"center"},nN)}),pN=function(e){var n=e.classes,o=void 0===n?{}:n,r=e.anchorOrigin,i=e.dense,l=e.children,a=vo(PT,dN[r.vertical],dN[r.horizontal],dN.root,o.containerRoot,o["containerAnchorOrigin"+tT(r)],i&&dN.rootDense);return t.createElement("div",{className:a},l)},fN=m(pN),hN="production"!==process.env.NODE_ENV,mN={NO_PERSIST_ALL:"Reached maxSnack while all enqueued snackbars have 'persist' flag. Notistack will dismiss the oldest snackbar anyway to allow other ones in the queue to be presented."},gN=function(e){return!("string"==typeof e||o(e))},bN=function(e){function n(t){var n;return(n=e.call(this,t)||this).enqueueSnackbar=function(e,t){if(void 0===t&&(t={}),null==e)throw new Error("enqueueSnackbar called with invalid argument");var o=gN(e)?e:t,r=gN(e)?e.message:e,i=o.key,l=o.preventDuplicate,a=KR(o,["key","preventDuplicate"]),s=nT(i),u=s?i:(new Date).getTime()+Math.random(),c=TT(a,n.props),d=WR({id:u},a,{message:r,open:!0,entered:!1,requestClose:!1,persist:c("persist"),action:c("action"),content:c("content"),variant:c("variant"),anchorOrigin:c("anchorOrigin"),disableWindowBlurListener:c("disableWindowBlurListener"),autoHideDuration:c("autoHideDuration"),hideIconVariant:c("hideIconVariant"),TransitionComponent:c("TransitionComponent"),transitionDuration:c("transitionDuration"),TransitionProps:c("TransitionProps",!0),iconVariant:c("iconVariant",!0),style:c("style",!0),SnackbarProps:c("SnackbarProps",!0),className:vo(n.props.className,a.className)});return d.persist&&(d.autoHideDuration=void 0),n.setState((function(e){if(void 0===l&&n.props.preventDuplicate||l){var t=function(e){return s?e.id===u:e.message===r},o=e.queue.findIndex(t)>-1,i=e.snacks.findIndex(t)>-1;if(o||i)return e}return n.handleDisplaySnack(WR({},e,{queue:[].concat(e.queue,[d])}))})),u},n.handleDisplaySnack=function(e){return e.snacks.length>=n.maxSnack?n.handleDismissOldest(e):n.processQueue(e)},n.processQueue=function(e){var t=e.queue,n=e.snacks;return t.length>0?WR({},e,{snacks:[].concat(n,[t[0]]),queue:t.slice(1,t.length)}):e},n.handleDismissOldest=function(e){if(e.snacks.some((function(e){return!e.open||e.requestClose})))return e;var t=!1,o=!1;e.snacks.reduce((function(e,t){return e+(t.open&&t.persist?1:0)}),0)===n.maxSnack&&("production"!==process.env.NODE_ENV&&function(e){if(hN){var t=mN[e];typeof console<"u"&&console.error("WARNING - notistack: "+t);try{throw new Error(t)}catch{}}}("NO_PERSIST_ALL"),o=!0);var r=e.snacks.map((function(e){return t||e.persist&&!o?WR({},e):(t=!0,e.entered?(e.onClose&&e.onClose(null,"maxsnack",e.id),n.props.onClose&&n.props.onClose(null,"maxsnack",e.id),WR({},e,{open:!1})):WR({},e,{requestClose:!0}))}));return WR({},e,{snacks:r})},n.handleEnteredSnack=function(e,t,o){if(!nT(o))throw new Error("handleEnteredSnack Cannot be called with undefined key");n.setState((function(e){return{snacks:e.snacks.map((function(e){return e.id===o?WR({},e,{entered:!0}):WR({},e)}))}}))},n.handleCloseSnack=function(e,t,o){n.props.onClose&&n.props.onClose(e,t,o);var r=void 0===o;n.setState((function(e){var t=e.snacks,n=e.queue;return{snacks:t.map((function(e){return r||e.id===o?e.entered?WR({},e,{open:!1}):WR({},e,{requestClose:!0}):WR({},e)})),queue:n.filter((function(e){return e.id!==o}))}}))},n.closeSnackbar=function(e){var t=n.state.snacks.find((function(t){return t.id===e}));nT(e)&&t&&t.onClose&&t.onClose(null,"instructed",e),n.handleCloseSnack(null,"instructed",e)},n.handleExitedSnack=function(e,t){if(!nT(t))throw new Error("handleExitedSnack Cannot be called with undefined key");n.setState((function(e){var o=n.processQueue(WR({},e,{snacks:e.snacks.filter((function(e){return e.id!==t}))}));return 0===o.queue.length?o:n.handleDismissOldest(o)}))},oN=n.enqueueSnackbar,rN=n.closeSnackbar,n.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:n.enqueueSnackbar.bind(YR(n)),closeSnackbar:n.closeSnackbar.bind(YR(n))}},n}return GR(n,e),n.prototype.render=function(){var e=this,n=this.state.contextValue,o=this.props,r=o.domRoot,i=o.children,l=o.dense,a=void 0!==l&&l,s=o.Components,u=void 0===s?{}:s,c=o.classes,d=this.state.snacks.reduce((function(e,t){var n,o=tT(t.anchorOrigin),r=e[o]||[];return WR({},e,((n={})[o]=[].concat(r,[t]),n))}),{}),p=Object.keys(d).map((function(n){var o=d[n],r=o[0];return t.createElement(fN,{key:n,dense:a,anchorOrigin:r.anchorOrigin,classes:c},o.map((function(n){return t.createElement(aN,{key:n.id,snack:n,classes:c,Component:u[n.variant],onClose:e.handleCloseSnack,onEnter:e.props.onEnter,onExit:e.props.onExit,onExited:qT([e.handleExitedSnack,e.props.onExited],n.id),onEntered:qT([e.handleEnteredSnack,e.props.onEntered],n.id)})})))}));return t.createElement(XR.Provider,{value:n},i,r?ce(p,r):p)},UR(n,[{key:"maxSnack",get:function(){return this.props.maxSnack||RT.maxSnack}}]),n}(f),vN=function(){return d(XR)};const yN=a(((e,t)=>{const{id:n,message:o,severity:r,alertClassName:i,alertVariant:l,closeButton:a,...s}=pe(e,["anchorOrigin","autoHideDuration","hideIconVariant","iconVariant","persist"]),{closeSnackbar:u}=vN();return Me.jsx(KT,{ref:t,role:"alert",...s,children:Me.jsx(MR,{className:i,severity:r,variant:l,onClose:a?()=>u(n):void 0,children:o})})})),wN=a(((e,t)=>{const{id:n,message:o,closeButton:r,type:i,...l}=pe(e,["anchorOrigin","autoHideDuration","hideIconVariant","iconVariant","persist"]),{closeSnackbar:a}=vN(),s="loading"===i;return Me.jsx(KT,{ref:t,role:"alert",...l,children:Me.jsxs("div",{className:vo("flex items-center justify-center w-full",s&&"pl-6",r&&"pr-6"),children:["loading"===i?Me.jsx(Fl,{width:20,height:20,className:"left-2 absolute top-1/2 -translate-y-1/2"}):null,Me.jsx("div",{children:o}),r?Me.jsx(Bl,{onClick:()=>a(n),width:20,height:20,className:"right-2 absolute top-1/2 -translate-y-1/2"}):null]})})})),xN=e=>Me.jsx(bN,{...e,Components:{alert:yN,info:wN},autoHideDuration:6e3,anchorOrigin:{vertical:"top",horizontal:"right"},domRoot:document.body,maxSnack:3,classes:{root:"min-w-fit"},className:"w-fit min-w-fit max-w-fit ",children:e.children}),CN=({children:e,...t})=>Me.jsx(P,{autoHideDuration:t.autoHideDuration??3e3,...t,children:e&&Me.jsx("div",{children:e})});function ON(e){oN({message:e,variant:"alert",severity:"error",alertClassName:"min-w-[350px] max-w-[350px]",alertVariant:"filled",closeButton:!0,autoHideDuration:6e3,anchorOrigin:{vertical:"top",horizontal:"right"}})}function kN(e){oN({variant:"alert",message:e,severity:"success",alertClassName:"min-w-[350px] bg-theta-700 flex w-full text-center justify-center items-center !text-[color:var(--colors-link-text-standart)]",alertVariant:"filled",autoHideDuration:6e3,closeButton:!0,anchorOrigin:{vertical:"top",horizontal:"right"}})}function SN(e,t){return oN({variant:"info",message:e,autoHideDuration:6e3,className:"bg-gama-700 text-white !min-w-[100px] !max-w-[400px] rounded-md p-4 flex items-center",anchorOrigin:{vertical:"bottom",horizontal:"center"},...t}),()=>rN(null==t?void 0:t.id)}const EN={info:(e,t)=>SN(e,t),error:(e,t)=>function(e,t){return oN({variant:"info",message:e,autoHideDuration:6e3,className:"bg-red-700 text-white !min-w-[100px] !max-w-[400px] rounded-md p-4 flex items-center",anchorOrigin:{vertical:"bottom",horizontal:"center"},...t}),()=>rN(null==t?void 0:t.id)}(e,t),loading:(e,t)=>SN(e,{...t,type:"loading"})},RN=({dataTest:e,...t})=>Me.jsx(M,{...t,"data-test":e,sx:{...t.sx,"&.MuiCheckbox-root":{color:"var(--colors-gama-500) !important"},"&.MuiCheckbox-root.Mui-disabled":{color:"var(--colors-delta-200) !important"},"&.MuiCheckbox-root .PrivateSwitchBase-input":{height:"100% !important",width:"100% !important"}}}),TN={input:"_input_sj64y_1",active:"_active_sj64y_1",large:"_large_sj64y_40",small:"_small_sj64y_43",error:"_error_sj64y_46",disabled:"_disabled_sj64y_91",readOnly:"_readOnly_sj64y_136",notEditable:"_notEditable_sj64y_181",label:"_label_sj64y_227",description:"_description_sj64y_248",startIcon:"_startIcon_sj64y_269",endIcon:"_endIcon_sj64y_290"},NN=({description:e,error:t=!1,label:n,refLink:o,startIcon:r,endIcon:i,type:l,readOnly:a,notEditable:s,dataTest:u,size:c="large",className:d,...p})=>{const f=s?"text":l||"text",h="small"===c?TN.small:"",m=t?"error":p.disabled?"disabled":a?"readOnly":s?"notEditable":"active";return Me.jsxs("div",{className:vo("relative",d),children:[Me.jsx("label",{htmlFor:"custom-input",className:`${TN.label} ${TN[m]}`,children:n}),Me.jsx("span",{className:` ${TN.startIcon} ${TN[m]} ${"readOnly"===m?"left-0":""}`,children:r}),Me.jsx("input",{...p,ref:o,type:f,className:vo(TN.input,TN[m],h,"readOnly"===m&&r&&"pl-8","readOnly"===m&&i&&"pr-8",r&&"pl-12",i&&"pr-12",d),readOnly:s||a,"data-test":u}),Me.jsx("span",{className:`${TN.endIcon} ${TN[m]} ${"readOnly"===m?"right-0":""}`,children:i}),Me.jsx("div",{className:`${TN.description} ${TN[m]}`,children:e})]})},PN=({allowClear:e,onClear:t,dataTest:n,...o})=>Me.jsx(j,{...o,"data-test":n,type:"mui-input",InputProps:e&&o.value?{endAdornment:Me.jsx("div",{className:"z-40 hover:bg-gama-100 duration-300 absolute right-4 p-[2px] rounded-full flex items-center justify-center",onClick:e=>{e.stopPropagation(),e.preventDefault(),null==t||t()},children:Me.jsx(Bl,{width:18,height:18})})}:o.InputProps,sx:{"& input:-webkit-autofill, & .MuiInputBase-root:has(> input:-webkit-autofill)":{backgroundColor:"#e8f0fe !important"},"& input":{backgroundColor:"transparent"},"& .MuiInputBase-root":{backgroundColor:"transparent"},"& .MuiInputBase-colorPrimary fieldset":{borderColor:"var(--colors-delta-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused fieldset":{borderColor:"var(--colors-gama-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused::after":{borderColor:"var(--colors-gama-500) !important"},"& .MuiInputBase-colorPrimary:hover fieldset":{borderColor:"var(--colors-gama-300) !important",borderWidth:"2px !important"},"& .MuiInputBase-colorPrimary.Mui-focused:hover fieldset":{borderColor:"var(--colors-gama-500) !important"},"& .MuiInputBase-colorPrimary.Mui-error fieldset":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-error:hover fieldset":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused.Mui-error fieldset":{borderColor:"#d3302f !important"},"& .MuiInputBase-colorPrimary.Mui-disabled fieldset":{borderColor:"var(--colors-delta-300) !important"},"& label.Mui-focused":{color:"var(--colors-gama-500) !important"},"& label.Mui-focused.Mui-error":{color:"#d3302f !important"},"& label.Mui-disabled":{color:"var(--colors-delta-300) !important"},"& .MuiOutlinedInput-input::placeholder":{color:"#666666",opacity:"100"},"& .MuiOutlinedInput-input.Mui-disabled":{WebkitTextFillColor:"var(--colors-delta-300) !important"},...o.sx}}),MN={textarea:"_textarea_1p8hl_1",active:"_active_1p8hl_1",error:"_error_1p8hl_40",label:"_label_1p8hl_80",disabled:"_disabled_1p8hl_88",description:"_description_1p8hl_93"},jN=({id:e,variant:t="active",label:n="",labelClassName:o="",description:r="",value:i="",minRows:a=3,maxRows:u=1/0,disabled:d,error:p,errorMessage:f,containerClassName:m="",className:g="",maxLength:b=1/0,counter:v,refLink:y,dataTest:w,counterLimit:x,...C})=>{const O=s(null),k=y||O,S=!(!v||!x),[E,R]=l(!1);c((()=>{R(!0)}),[]),((e,t,n,o,r,i)=>{h((()=>{if(e){const t=i?32:0;e.style.height="auto";const n=20,r=e.scrollHeight-24;Math.ceil(r/n)>o?e.style.height=`${n*o+24+t}px`:e.style.height=`${e.scrollHeight+t}px`}}),[e,t,n,o,r,i])})(k.current,i,a,u,E,S),u<a&&(a=u);const[T,N]=l(i.length);c((()=>{N(i.length)}),[i]);const P=p?"error":"active",M=p?"error":d?"disabled":"active";return Me.jsxs("div",{className:`flex flex-col gap-1 relative ${m}`,"data-test":w,children:[Me.jsx("label",{htmlFor:e,className:`${MN.label} ${MN[M]} ${o}`,children:n}),Me.jsx("span",{className:`${MN.description} ${MN[M]}`,children:p?f:r}),"view_only"===t?Me.jsx("div",{className:"font-roboto text-sm font-normal pt-3 text-gray-700",children:i}):"not_editable"===t?Me.jsx("div",{className:"font-roboto text-sm font-normal rounded p-3 bg-gray-200 text-gray-700",children:i}):Me.jsx("textarea",{...C,id:e,ref:k,className:`${MN.textarea} ${MN[P]} ${g} ${S?"pb-[32px]":""}`,wrap:"soft",value:i,disabled:d,maxLength:b}),S&&Me.jsxs("div",{className:"flex justify-end absolute bottom-3 right-3 text-[10px] font-roboto h-[15px] pointer-events-none",children:[T,"/",x]})]})};var _N=function(){this.__data__=[],this.size=0};var IN=function(e,t){return e===t||e!=e&&t!=t},DN=IN;var FN=function(e,t){for(var n=e.length;n--;)if(DN(e[n][0],t))return n;return-1},AN=FN,LN=Array.prototype.splice;var VN=function(e){var t=this.__data__,n=AN(t,e);return!(n<0)&&(n==t.length-1?t.pop():LN.call(t,n,1),--this.size,!0)},$N=FN;var zN=function(e){var t=this.__data__,n=$N(t,e);return n<0?void 0:t[n][1]},qN=FN;var HN=function(e){return qN(this.__data__,e)>-1},BN=FN;var UN=function(e,t){var n=this.__data__,o=BN(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this},WN=_N,GN=VN,KN=zN,YN=HN,ZN=UN;function XN(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}XN.prototype.clear=WN,XN.prototype.delete=GN,XN.prototype.get=KN,XN.prototype.has=YN,XN.prototype.set=ZN;var QN=XN,JN=QN;var eP=function(){this.__data__=new JN,this.size=0};var tP=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var nP=function(e){return this.__data__.get(e)};var oP=function(e){return this.__data__.has(e)},rP="object"==typeof ke&&ke&&ke.Object===Object&&ke,iP=rP,lP="object"==typeof self&&self&&self.Object===Object&&self,aP=iP||lP||Function("return this")(),sP=aP.Symbol,uP=sP,cP=Object.prototype,dP=cP.hasOwnProperty,pP=cP.toString,fP=uP?uP.toStringTag:void 0;var hP=function(e){var t=dP.call(e,fP),n=e[fP];try{e[fP]=void 0;var o=!0}catch{}var r=pP.call(e);return o&&(t?e[fP]=n:delete e[fP]),r},mP=Object.prototype.toString;var gP=function(e){return mP.call(e)},bP=hP,vP=gP,yP=sP?sP.toStringTag:void 0;var wP=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":yP&&yP in Object(e)?bP(e):vP(e)};var xP=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},CP=wP,OP=xP;var kP=function(e){if(!OP(e))return!1;var t=CP(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},SP=aP["__core-js_shared__"],EP=function(){var e=/[^.]+$/.exec(SP&&SP.keys&&SP.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var RP=function(e){return!!EP&&EP in e},TP=Function.prototype.toString;var NP=function(e){if(null!=e){try{return TP.call(e)}catch{}try{return e+""}catch{}}return""},PP=kP,MP=RP,jP=xP,_P=NP,IP=/^\[object .+?Constructor\]$/,DP=Function.prototype,FP=Object.prototype,AP=DP.toString,LP=FP.hasOwnProperty,VP=RegExp("^"+AP.call(LP).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var $P=function(e){return!(!jP(e)||MP(e))&&(PP(e)?VP:IP).test(_P(e))};var zP=function(e,t){return null==e?void 0:e[t]},qP=$P,HP=zP;var BP=function(e,t){var n=HP(e,t);return qP(n)?n:void 0},UP=BP(aP,"Map"),WP=BP(Object,"create"),GP=WP;var KP=function(){this.__data__=GP?GP(null):{},this.size=0};var YP=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ZP=WP,XP=Object.prototype.hasOwnProperty;var QP=function(e){var t=this.__data__;if(ZP){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return XP.call(t,e)?t[e]:void 0},JP=WP,eM=Object.prototype.hasOwnProperty;var tM=function(e){var t=this.__data__;return JP?void 0!==t[e]:eM.call(t,e)},nM=WP;var oM=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nM&&void 0===t?"__lodash_hash_undefined__":t,this},rM=KP,iM=YP,lM=QP,aM=tM,sM=oM;function uM(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}uM.prototype.clear=rM,uM.prototype.delete=iM,uM.prototype.get=lM,uM.prototype.has=aM,uM.prototype.set=sM;var cM=uM,dM=QN,pM=UP;var fM=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},hM=fM;var mM=function(e,t){var n=e.__data__;return hM(t)?n["string"==typeof t?"string":"hash"]:n.map},gM=mM;var bM=function(e){var t=gM(this,e).delete(e);return this.size-=t?1:0,t},vM=mM;var yM=function(e){return vM(this,e).get(e)},wM=mM;var xM=function(e){return wM(this,e).has(e)},CM=mM;var OM=function(e,t){var n=CM(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this},kM=function(){this.size=0,this.__data__={hash:new cM,map:new(pM||dM),string:new cM}},SM=bM,EM=yM,RM=xM,TM=OM;function NM(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}NM.prototype.clear=kM,NM.prototype.delete=SM,NM.prototype.get=EM,NM.prototype.has=RM,NM.prototype.set=TM;var PM=NM,MM=QN,jM=UP,_M=PM;var IM=function(e,t){var n=this.__data__;if(n instanceof MM){var o=n.__data__;if(!jM||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new _M(o)}return n.set(e,t),this.size=n.size,this},DM=QN,FM=eP,AM=tP,LM=nP,VM=oP,$M=IM;function zM(e){var t=this.__data__=new DM(e);this.size=t.size}zM.prototype.clear=FM,zM.prototype.delete=AM,zM.prototype.get=LM,zM.prototype.has=VM,zM.prototype.set=$M;var qM=zM;var HM=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var BM=function(e){return this.__data__.has(e)},UM=PM,WM=HM,GM=BM;function KM(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new UM;++t<n;)this.add(e[t])}KM.prototype.add=KM.prototype.push=WM,KM.prototype.has=GM;var YM=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1};var ZM=function(e,t){return e.has(t)},XM=KM,QM=YM,JM=ZM;var ej=function(e,t,n,o,r,i){var l=1&n,a=e.length,s=t.length;if(a!=s&&!(l&&s>a))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,p=!0,f=2&n?new XM:void 0;for(i.set(e,t),i.set(t,e);++d<a;){var h=e[d],m=t[d];if(o)var g=l?o(m,h,d,t,e,i):o(h,m,d,e,t,i);if(void 0!==g){if(g)continue;p=!1;break}if(f){if(!QM(t,(function(e,t){if(!JM(f,t)&&(h===e||r(h,e,n,o,i)))return f.push(t)}))){p=!1;break}}else if(h!==m&&!r(h,m,n,o,i)){p=!1;break}}return i.delete(e),i.delete(t),p};var tj=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n};var nj=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},oj=aP.Uint8Array,rj=IN,ij=ej,lj=tj,aj=nj,sj=sP?sP.prototype:void 0,uj=sj?sj.valueOf:void 0;var cj=function(e,t,n,o,r,i,l){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new oj(e),new oj(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return rj(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=lj;case"[object Set]":var s=1&o;if(a||(a=aj),e.size!=t.size&&!s)return!1;var u=l.get(e);if(u)return u==t;o|=2,l.set(e,t);var c=ij(a(e),a(t),o,r,i,l);return l.delete(e),c;case"[object Symbol]":if(uj)return uj.call(e)==uj.call(t)}return!1};var dj=function(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e},pj=Array.isArray,fj=dj,hj=pj;var mj=function(e,t,n){var o=t(e);return hj(e)?o:fj(o,n(e))};var gj=function(e,t){for(var n=-1,o=null==e?0:e.length,r=0,i=[];++n<o;){var l=e[n];t(l,n,e)&&(i[r++]=l)}return i};var bj=gj,vj=function(){return[]},yj=Object.prototype.propertyIsEnumerable,wj=Object.getOwnPropertySymbols,xj=wj?function(e){return null==e?[]:(e=Object(e),bj(wj(e),(function(t){return yj.call(e,t)})))}:vj,Cj=xj;var Oj=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o};var kj=function(e){return null!=e&&"object"==typeof e},Sj=wP,Ej=kj;var Rj=function(e){return Ej(e)&&"[object Arguments]"==Sj(e)},Tj=Rj,Nj=kj,Pj=Object.prototype,Mj=Pj.hasOwnProperty,jj=Pj.propertyIsEnumerable,_j=Tj(function(){return arguments}())?Tj:function(e){return Nj(e)&&Mj.call(e,"callee")&&!jj.call(e,"callee")},Ij=_j,Dj={exports:{}};var Fj=function(){return!1};!function(e,t){var n=aP,o=Fj,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,l=i&&i.exports===r?n.Buffer:void 0,a=(l?l.isBuffer:void 0)||o;e.exports=a}(Dj,Dj.exports);var Aj=Dj.exports,Lj=/^(?:0|[1-9]\d*)$/;var Vj=function(e,t){var n=typeof e;return!!(t=t??9007199254740991)&&("number"==n||"symbol"!=n&&Lj.test(e))&&e>-1&&e%1==0&&e<t};var $j=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},zj=wP,qj=$j,Hj=kj,Bj={};Bj["[object Float32Array]"]=Bj["[object Float64Array]"]=Bj["[object Int8Array]"]=Bj["[object Int16Array]"]=Bj["[object Int32Array]"]=Bj["[object Uint8Array]"]=Bj["[object Uint8ClampedArray]"]=Bj["[object Uint16Array]"]=Bj["[object Uint32Array]"]=!0,Bj["[object Arguments]"]=Bj["[object Array]"]=Bj["[object ArrayBuffer]"]=Bj["[object Boolean]"]=Bj["[object DataView]"]=Bj["[object Date]"]=Bj["[object Error]"]=Bj["[object Function]"]=Bj["[object Map]"]=Bj["[object Number]"]=Bj["[object Object]"]=Bj["[object RegExp]"]=Bj["[object Set]"]=Bj["[object String]"]=Bj["[object WeakMap]"]=!1;var Uj=function(e){return Hj(e)&&qj(e.length)&&!!Bj[zj(e)]};var Wj=function(e){return function(t){return e(t)}},Gj={exports:{}};!function(e,t){var n=rP,o=t&&!t.nodeType&&t,r=o&&e&&!e.nodeType&&e,i=r&&r.exports===o&&n.process,l=function(){try{return r&&r.require&&r.require("util").types||i&&i.binding&&i.binding("util")}catch{}}();e.exports=l}(Gj,Gj.exports);var Kj=Gj.exports,Yj=Uj,Zj=Wj,Xj=Kj&&Kj.isTypedArray,Qj=Xj?Zj(Xj):Yj,Jj=Oj,e_=Ij,t_=pj,n_=Aj,o_=Vj,r_=Qj,i_=Object.prototype.hasOwnProperty;var l_=function(e,t){var n=t_(e),o=!n&&e_(e),r=!n&&!o&&n_(e),i=!n&&!o&&!r&&r_(e),l=n||o||r||i,a=l?Jj(e.length,String):[],s=a.length;for(var u in e)(t||i_.call(e,u))&&(!l||!("length"==u||r&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||o_(u,s)))&&a.push(u);return a},a_=Object.prototype;var s_=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||a_)};var u_=function(e,t){return function(n){return e(t(n))}},c_=u_(Object.keys,Object),d_=s_,p_=c_,f_=Object.prototype.hasOwnProperty;var h_=function(e){if(!d_(e))return p_(e);var t=[];for(var n in Object(e))f_.call(e,n)&&"constructor"!=n&&t.push(n);return t},m_=kP,g_=$j;var b_=function(e){return null!=e&&g_(e.length)&&!m_(e)},v_=l_,y_=h_,w_=b_;var x_=function(e){return w_(e)?v_(e):y_(e)},C_=mj,O_=Cj,k_=x_;var S_=function(e){return C_(e,k_,O_)},E_=S_,R_=Object.prototype.hasOwnProperty;var T_=function(e,t,n,o,r,i){var l=1&n,a=E_(e),s=a.length;if(s!=E_(t).length&&!l)return!1;for(var u=s;u--;){var c=a[u];if(!(l?c in t:R_.call(t,c)))return!1}var d=i.get(e),p=i.get(t);if(d&&p)return d==t&&p==e;var f=!0;i.set(e,t),i.set(t,e);for(var h=l;++u<s;){var m=e[c=a[u]],g=t[c];if(o)var b=l?o(g,m,c,t,e,i):o(m,g,c,e,t,i);if(!(void 0===b?m===g||r(m,g,n,o,i):b)){f=!1;break}h||(h="constructor"==c)}if(f&&!h){var v=e.constructor,y=t.constructor;v!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y)&&(f=!1)}return i.delete(e),i.delete(t),f},N_=BP(aP,"DataView"),P_=UP,M_=BP(aP,"Promise"),j_=BP(aP,"Set"),__=BP(aP,"WeakMap"),I_=wP,D_=NP,F_="[object Map]",A_="[object Promise]",L_="[object Set]",V_="[object WeakMap]",$_="[object DataView]",z_=D_(N_),q_=D_(P_),H_=D_(M_),B_=D_(j_),U_=D_(__),W_=I_;(N_&&W_(new N_(new ArrayBuffer(1)))!=$_||P_&&W_(new P_)!=F_||M_&&W_(M_.resolve())!=A_||j_&&W_(new j_)!=L_||__&&W_(new __)!=V_)&&(W_=function(e){var t=I_(e),n="[object Object]"==t?e.constructor:void 0,o=n?D_(n):"";if(o)switch(o){case z_:return $_;case q_:return F_;case H_:return A_;case B_:return L_;case U_:return V_}return t});var G_=qM,K_=ej,Y_=cj,Z_=T_,X_=W_,Q_=pj,J_=Aj,eI=Qj,tI="[object Arguments]",nI="[object Array]",oI="[object Object]",rI=Object.prototype.hasOwnProperty;var iI=function(e,t,n,o,r,i){var l=Q_(e),a=Q_(t),s=l?nI:X_(e),u=a?nI:X_(t),c=(s=s==tI?oI:s)==oI,d=(u=u==tI?oI:u)==oI,p=s==u;if(p&&J_(e)){if(!J_(t))return!1;l=!0,c=!1}if(p&&!c)return i||(i=new G_),l||eI(e)?K_(e,t,n,o,r,i):Y_(e,t,s,n,o,r,i);if(!(1&n)){var f=c&&rI.call(e,"__wrapped__"),h=d&&rI.call(t,"__wrapped__");if(f||h){var m=f?e.value():e,g=h?t.value():t;return i||(i=new G_),r(m,g,n,o,i)}}return!!p&&(i||(i=new G_),Z_(e,t,n,o,r,i))},lI=iI,aI=kj;var sI=function e(t,n,o,r,i){return t===n||(null==t||null==n||!aI(t)&&!aI(n)?t!=t&&n!=n:lI(t,n,o,r,e,i))},uI=sI;var cI=function(e,t){return uI(e,t)},dI={exports:{}};
|
|
195
|
+
`),hC))),vC=e.forwardRef((function(e,t){const n=wp({props:e,name:"MuiCircularProgress"}),{className:o,color:r="primary",disableShrink:i=!1,size:l=40,style:a,thickness:s=3.6,value:u=0,variant:c="indeterminate"}=n,d=De(n,lC),p=Ie({},n,{color:r,disableShrink:i,size:l,thickness:s,value:u,variant:c}),f=(e=>{const{classes:t,variant:n,color:o,disableShrink:r}=e;return en({root:["root",n,`color${Ot(o)}`],svg:["svg"],circle:["circle",`circle${Ot(n)}`,r&&"circleDisableShrink"]},iC,t)})(p),h={},m={},g={};if("determinate"===c){const e=2*Math.PI*((pC-s)/2);h.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(u),h.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,m.transform="rotate(-90deg)"}return Me.jsx(mC,Ie({className:vo(f.root,o),style:Ie({width:l,height:l},m,a),ownerState:p,ref:t,role:"progressbar"},g,d,{children:Me.jsx(gC,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:Me.jsx(bC,{className:f.circle,style:h,ownerState:p,cx:pC,cy:pC,r:(pC-s)/2,fill:"none",strokeWidth:s})})}))}));"production"!==process.env.NODE_ENV&&(vC.propTypes={classes:oe.object,className:oe.string,color:oe.oneOfType([oe.oneOf(["inherit","primary","secondary","error","info","success","warning"]),oe.string]),disableShrink:nt(oe.bool,(e=>e.disableShrink&&e.variant&&"indeterminate"!==e.variant?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null)),size:oe.oneOfType([oe.number,oe.string]),style:oe.object,sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object]),thickness:oe.number,value:oe.number,variant:oe.oneOf(["determinate","indeterminate"])});const yC=vC,wC=e.forwardRef((function(e,t){return Me.jsx(am,Ie({ref:t},e,{children:Me.jsx(yC,{})}))}));"production"!==process.env.NODE_ENV&&(wC.propTypes={sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object])});const xC=e.forwardRef((function(e,t){const n=va().current.getLocaleText("noRowsLabel");return Me.jsx(am,Ie({ref:t},e,{children:n}))}));"production"!==process.env.NODE_ENV&&(xC.propTypes={sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object])});const CC=e.createContext();"production"!==process.env.NODE_ENV&&(CC.displayName="TableContext");const OC=CC,kC=e.createContext();"production"!==process.env.NODE_ENV&&(kC.displayName="Tablelvl2Context");const SC=kC;function EC(e){return ln("MuiTableCell",e)}const RC=an("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),TC=["align","className","component","padding","scope","size","sortDirection","variant"],NC=yp("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Ot(n.size)}`],"normal"!==n.padding&&t[`padding${Ot(n.padding)}`],"inherit"!==n.align&&t[`align${Ot(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Ie({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?Fo(Io(e.palette.divider,1),.88):Do(Io(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${RC.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}))),PC=e.forwardRef((function(t,n){const o=wp({props:t,name:"MuiTableCell"}),{align:r="inherit",className:i,component:l,padding:a,scope:s,size:u,sortDirection:c,variant:d}=o,p=De(o,TC),f=e.useContext(OC),h=e.useContext(SC),m=h&&"head"===h.variant;let g;g=l||(m?"th":"td");let b=s;"td"===g?b=void 0:!b&&m&&(b="col");const v=d||h&&h.variant,y=Ie({},o,{align:r,component:g,padding:a||(f&&f.padding?f.padding:"normal"),size:u||(f&&f.size?f.size:"medium"),sortDirection:c,stickyHeader:"head"===v&&f&&f.stickyHeader,variant:v}),w=(e=>{const{classes:t,variant:n,align:o,padding:r,size:i,stickyHeader:l}=e;return en({root:["root",n,l&&"stickyHeader","inherit"!==o&&`align${Ot(o)}`,"normal"!==r&&`padding${Ot(r)}`,`size${Ot(i)}`]},EC,t)})(y);let x=null;return c&&(x="asc"===c?"ascending":"descending"),Me.jsx(NC,Ie({as:g,ref:n,className:vo(w.root,i),"aria-sort":x,scope:b,ownerState:y},p))}));"production"!==process.env.NODE_ENV&&(PC.propTypes={align:oe.oneOf(["center","inherit","justify","left","right"]),children:oe.node,classes:oe.object,className:oe.string,component:oe.elementType,padding:oe.oneOf(["checkbox","none","normal"]),scope:oe.string,size:oe.oneOfType([oe.oneOf(["medium","small"]),oe.string]),sortDirection:oe.oneOf(["asc","desc",!1]),sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object]),variant:oe.oneOfType([oe.oneOf(["body","footer","head"]),oe.string])});const MC=PC;function jC(e){return ln("MuiToolbar",e)}an("MuiToolbar",["root","gutters","regular","dense"]);const _C=["className","component","disableGutters","variant"],IC=yp("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((({theme:e,ownerState:t})=>Ie({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===t.variant&&{minHeight:48})),(({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar)),DC=e.forwardRef((function(e,t){const n=wp({props:e,name:"MuiToolbar"}),{className:o,component:r="div",disableGutters:i=!1,variant:l="regular"}=n,a=De(n,_C),s=Ie({},n,{component:r,disableGutters:i,variant:l}),u=(e=>{const{classes:t,disableGutters:n,variant:o}=e;return en({root:["root",!n&&"gutters",o]},jC,t)})(s);return Me.jsx(IC,Ie({as:r,className:vo(u.root,o),ref:t,ownerState:s},a))}));"production"!==process.env.NODE_ENV&&(DC.propTypes={children:oe.node,classes:oe.object,className:oe.string,component:oe.elementType,disableGutters:oe.bool,sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object]),variant:oe.oneOfType([oe.oneOf(["dense","regular"]),oe.string])});const FC=DC,AC=Fg(Me.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),LC=Fg(Me.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),VC=Fg(Me.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),$C=Fg(Me.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage");var zC,qC,HC,BC,UC,WC,GC,KC;const YC=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],ZC=e.forwardRef((function(e,t){const{backIconButtonProps:n,count:o,getItemAriaLabel:r,nextIconButtonProps:i,onPageChange:l,page:a,rowsPerPage:s,showFirstButton:u,showLastButton:c}=e,d=De(e,YC),p=mr();return Me.jsxs("div",Ie({ref:t},d,{children:[u&&Me.jsx(Rb,{onClick:e=>{l(e,0)},disabled:0===a,"aria-label":r("first",a),title:r("first",a),children:"rtl"===p.direction?zC||(zC=Me.jsx(VC,{})):qC||(qC=Me.jsx($C,{}))}),Me.jsx(Rb,Ie({onClick:e=>{l(e,a-1)},disabled:0===a,color:"inherit","aria-label":r("previous",a),title:r("previous",a)},n,{children:"rtl"===p.direction?HC||(HC=Me.jsx(LC,{})):BC||(BC=Me.jsx(AC,{}))})),Me.jsx(Rb,Ie({onClick:e=>{l(e,a+1)},disabled:-1!==o&&a>=Math.ceil(o/s)-1,color:"inherit","aria-label":r("next",a),title:r("next",a)},i,{children:"rtl"===p.direction?UC||(UC=Me.jsx(AC,{})):WC||(WC=Me.jsx(LC,{}))})),c&&Me.jsx(Rb,{onClick:e=>{l(e,Math.max(0,Math.ceil(o/s)-1))},disabled:a>=Math.ceil(o/s)-1,"aria-label":r("last",a),title:r("last",a),children:"rtl"===p.direction?GC||(GC=Me.jsx($C,{})):KC||(KC=Me.jsx(VC,{}))})]}))}));"production"!==process.env.NODE_ENV&&(ZC.propTypes={backIconButtonProps:oe.object,count:oe.number.isRequired,getItemAriaLabel:oe.func.isRequired,nextIconButtonProps:oe.object,onPageChange:oe.func.isRequired,page:oe.number.isRequired,rowsPerPage:oe.number.isRequired,showFirstButton:oe.bool.isRequired,showLastButton:oe.bool.isRequired});const XC=ZC;function QC(e){return ln("MuiTablePagination",e)}const JC=an("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var eO;const tO=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],nO=yp(MC,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),oO=yp(FC,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>Ie({[`& .${JC.actions}`]:t.actions},t.toolbar)})((({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${JC.actions}`]:{flexShrink:0,marginLeft:20}}))),rO=yp("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),iO=yp("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})((({theme:e})=>Ie({},e.typography.body2,{flexShrink:0}))),lO=yp(Bx,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>Ie({[`& .${JC.selectIcon}`]:t.selectIcon,[`& .${JC.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${JC.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),aO=yp(Ih,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),sO=yp("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})((({theme:e})=>Ie({},e.typography.body2,{flexShrink:0})));function uO({from:e,to:t,count:n}){return`${e}–${t} of ${-1!==n?n:`more than ${t}`}`}function cO(e){return`Go to ${e} page`}const dO=e.forwardRef((function(e,t){const n=wp({props:e,name:"MuiTablePagination"}),{ActionsComponent:o=XC,backIconButtonProps:r,className:l,colSpan:a,component:s=MC,count:u,getItemAriaLabel:c=cO,labelDisplayedRows:d=uO,labelRowsPerPage:p="Rows per page:",nextIconButtonProps:f,onPageChange:h,onRowsPerPageChange:m,page:g,rowsPerPage:b,rowsPerPageOptions:v=[10,25,50,100],SelectProps:y={},showFirstButton:w=!1,showLastButton:x=!1}=n,C=De(n,tO),O=n,k=(e=>{const{classes:t}=e;return en({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},QC,t)})(O),S=y.native?"option":aO;let E;(s===MC||"td"===s)&&(E=a||1e3);const R=_t(y.id),T=_t(y.labelId);return Me.jsx(nO,Ie({colSpan:E,ref:t,as:s,ownerState:O,className:vo(k.root,l)},C,{children:Me.jsxs(oO,{className:k.toolbar,children:[Me.jsx(rO,{className:k.spacer}),v.length>1&&Me.jsx(iO,{className:k.selectLabel,id:T,children:p}),v.length>1&&Me.jsx(lO,Ie({variant:"standard"},!y.variant&&{input:eO||(eO=Me.jsx(_p,{}))},{value:b,onChange:m,id:R,labelId:T},y,{classes:Ie({},y.classes,{root:vo(k.input,k.selectRoot,(y.classes||{}).root),select:vo(k.select,(y.classes||{}).select),icon:vo(k.selectIcon,(y.classes||{}).icon)}),children:v.map((e=>i(S,Ie({},!Xu(S)&&{ownerState:O},{className:k.menuItem,key:e.label?e.label:e,value:e.value?e.value:e}),e.label?e.label:e)))})),Me.jsx(sO,{className:k.displayedRows,children:d({from:0===u?0:g*b+1,to:-1===u?(g+1)*b:-1===b?u:Math.min(u,(g+1)*b),count:-1===u?-1:u,page:g})}),Me.jsx(o,{className:k.actions,backIconButtonProps:r,count:u,nextIconButtonProps:f,onPageChange:h,page:g,rowsPerPage:b,showFirstButton:w,showLastButton:x,getItemAriaLabel:c})]})}))}));"production"!==process.env.NODE_ENV&&(dO.propTypes={ActionsComponent:oe.elementType,backIconButtonProps:oe.object,classes:oe.object,className:oe.string,colSpan:oe.number,component:oe.elementType,count:Qt.isRequired,getItemAriaLabel:oe.func,labelDisplayedRows:oe.func,labelRowsPerPage:oe.node,nextIconButtonProps:oe.object,onPageChange:oe.func.isRequired,onRowsPerPageChange:oe.func,page:nt(Qt.isRequired,(e=>{const{count:t,page:n,rowsPerPage:o}=e;if(-1===t)return null;const r=Math.max(0,Math.ceil(t/o)-1);return n<0||n>r?new Error(`MUI: The page prop of a TablePagination is out of range (0 to ${r}, but page is ${n}).`):null})),rowsPerPage:Qt.isRequired,rowsPerPageOptions:oe.arrayOf(oe.oneOfType([oe.number,oe.shape({label:oe.string.isRequired,value:oe.number.isRequired})]).isRequired),SelectProps:oe.object,showFirstButton:oe.bool,showLastButton:oe.bool,sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object])});const pO=yp(dO)((({theme:e})=>({[`& .${JC.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${JC.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}}))),fO=e.forwardRef((function(t,n){const o=va(),r=wa(),i=_a(o,tg),l=_a(o,Is),a=e.useMemo((()=>{var e,t;return null!=(e=null!=(t=r.rowCount)?t:l)?e:0}),[r.rowCount,l]),s=e.useMemo((()=>Math.floor(a/(i.pageSize||1))),[a,i.pageSize]),u=e.useCallback((e=>{const t=Number(e.target.value);o.current.setPageSize(t)}),[o]),c=e.useCallback(((e,t)=>{o.current.setPage(t)}),[o]),d=e=>{for(let t=0;t<r.pageSizeOptions.length;t+=1){const n=r.pageSizeOptions[t];if("number"==typeof n){if(n===e)return!0}else if(n.value===e)return!0}return!1};if("production"!==process.env.NODE_ENV){var p,f;const t=e.useRef(!1),n=null!=(p=null==(f=r.paginationModel)?void 0:f.pageSize)?p:i.pageSize;!t.current&&!r.autoPageSize&&!d(n)&&(console.warn([`MUI: The page size \`${i.pageSize}\` is not preset in the \`pageSizeOptions\``,"Add it to show the pagination select."].join("\n")),t.current=!0)}const h=d(i.pageSize)?r.pageSizeOptions:[];return Me.jsx(pO,Ie({ref:n,component:"div",count:a,page:i.page<=s?i.page:s,rowsPerPageOptions:h,rowsPerPage:i.pageSize,onPageChange:c,onRowsPerPageChange:u},o.current.getLocaleText("MuiTablePagination"),t))})),hO=(e,t)=>{let n,o;return t.pagination&&"client"===t.paginationMode?(o=rg(e),n=ig(e)):(n=Ts(e),o=0===n.length?null:{firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:o}},mO=(t,n)=>{const o=hO(t,n);return e.useMemo((()=>({rows:o.rows,range:o.range})),[o.rows,o.range])},gO={current:null};function bO(e){return e.isInternal=!0,e}function vO(e){return void 0!==e&&!0===e.isInternal}function yO(e){return bO(((t,n)=>{const o=e(t,n);return o&&(e=>o(e.value,e.row,n,gO.current))}))}function wO(e){return e.map((e=>Ie({},e,{getApplyFilterFn:yO(e.getApplyFilterFnV7),getApplyFilterFnV7:bO(e.getApplyFilterFnV7)})))}function xO(e){return bO(((t,n,o)=>{const r=e(t,n,o);return r&&(e=>r(e.value,e.row,n,o))}))}const CO=bO((e=>{if(!e)return null;const t=new RegExp(Bm(e),"i");return(e,n,o,r)=>{const i=r.current.getRowFormattedValue(n,o);return null!=i&&t.test(i.toString())}})),OO={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:(e,t)=>{const n=vg(e,t);return null!==n?n:"string"==typeof e?yg.compare(e.toString(),t.toString()):e-t},type:"string",align:"left",filterOperators:((e=!1)=>wO([{value:"contains",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),o=new RegExp(Bm(n),"i");return e=>null!=e&&o.test(String(e))},InputComponent:zv},{value:"equals",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),o=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return e=>null!=e&&0===o.compare(n,e.toString())},InputComponent:zv},{value:"startsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),o=new RegExp(`^${Bm(n)}.*$`,"i");return e=>null!=e&&o.test(e.toString())},InputComponent:zv},{value:"endsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),o=new RegExp(`.*${Bm(n)}$`,"i");return e=>null!=e&&o.test(e.toString())},InputComponent:zv},{value:"isEmpty",getApplyFilterFnV7:()=>e=>""===e||null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>""!==e&&null!=e,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:t=>{if(!Array.isArray(t.value)||0===t.value.length)return null;const n=e?t.value:t.value.map((e=>e.trim())),o=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return e=>null!=e&&n.some((t=>0===o.compare(t,e.toString()||"")))},InputComponent:qy}]))(),renderEditCell:e=>Me.jsx(zp,Ie({},e)),getApplyQuickFilterFn:xO(CO),getApplyQuickFilterFnV7:CO};const kO=Ie({},OO,{type:"boolean",align:"center",headerAlign:"center",renderCell:e=>su(e.rowNode)?"":Me.jsx(Ku,Ie({},e)),renderEditCell:e=>Me.jsx(Zu,Ie({},e)),sortComparator:wg,valueFormatter:function({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")},filterOperators:wO([{value:"is",getApplyFilterFnV7:e=>{if(!e.value)return null;const t="true"===e.value;return e=>!!e===t},InputComponent:Zv}]),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,aggregable:!1,pastedValueParser:e=>(e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}})(e)}),SO="__check__",EO=Ie({},kO,{field:SO,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,valueGetter:e=>void 0!==fg(e.api.state,e.api.instanceId)[e.id],renderHeader:e=>Me.jsx(Pg,Ie({},e)),renderCell:e=>Me.jsx(Tg,Ie({},e))}),RO="actions",TO=Ie({},OO,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:e=>Me.jsx(Df,Ie({},e)),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0}),NO="__detail_panel_toggle__",PO=e=>e.editRows,MO=["selected","rowId","row","index","style","position","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","isLastVisible","focusedCell","tabbableCell","onClick","onDoubleClick","onMouseEnter","onMouseLeave"];function jO({width:e}){if(!e)return null;const t={width:e};return Me.jsx("div",{className:`${Da.cell} ${Da.withBorderColor}`,style:t})}const _O=e.forwardRef((function(t,n){const{selected:o,rowId:r,row:i,index:l,style:a,position:s,rowHeight:u,className:c,renderedColumns:d,containerWidth:p,firstColumnToRender:f,isLastVisible:h=!1,onClick:m,onDoubleClick:g,onMouseEnter:b,onMouseLeave:v}=t,y=De(t,MO),w=va(),x=e.useRef(null),C=wa(),O=mO(w,C),k=_a(w,os),S=_a(w,Os),E=_a(w,ms),R=_a(w,Qs),T=_a(w,PO),N=Ft(x,n),P=l+R+2,M=(e=>{const{editable:t,editing:n,selected:o,isLastVisible:r,rowHeight:i,classes:l}=e;return en({root:["row",o&&"selected",t&&"row--editable",n&&"row--editing",r&&"row--lastVisible","auto"===i&&"row--dynamicHeight"]},Ia,l)})({selected:o,isLastVisible:h,classes:C.classes,editing:w.current.getRowMode(r)===Cu.Edit,editable:C.editMode===wu.Row,rowHeight:u});e.useLayoutEffect((()=>{"auto"===u&&x.current&&typeof ResizeObserver>"u"&&w.current.unstable_storeRowHeightMeasurement(r,x.current.clientHeight,s)}),[w,u,r,s]),e.useLayoutEffect((()=>{if(O.range){const e=w.current.getRowIndexRelativeToVisibleRows(r);null!=e&&w.current.unstable_setLastMeasuredRowIndex(e)}const e=x.current;if(!e||"auto"!==u||typeof ResizeObserver>"u")return;const t=new ResizeObserver((e=>{const[t]=e,n=t.borderBoxSize&&t.borderBoxSize.length>0?t.borderBoxSize[0].blockSize:t.contentRect.height;w.current.unstable_storeRowHeightMeasurement(r,n,s)}));return t.observe(e),()=>t.disconnect()}),[w,O.range,l,u,r,s]);const j=e.useCallback(((e,t)=>n=>{1===n.target.nodeType&&!n.currentTarget.contains(n.target)||w.current.getRow(r)&&(w.current.publishEvent(e,w.current.getRowParams(r),n),t&&t(n))}),[w,r]),_=e.useCallback((e=>{const t=function(e,t){return e.closest(`.${t}`)}(e.target,Da.cell),n=null==t?void 0:t.getAttribute("data-field");n&&(n===EO.field||n===NO||"__reorder__"===n||w.current.getCellMode(r,n)===xu.Edit||w.current.getColumn(n).type===RO)||j("rowClick",m)(e)}),[w,m,j,r]),{slots:I,slotProps:D,disableColumnReorder:F}=C,A=I.cell===Uu?Uu:Hu,L=C.rowReordering,V=(e,t)=>{var n,o;const i=F&&e.disableReorder||!L&&!!S.length&&E>1&&Object.keys(T).length>0,l=null!=(n=null==(o=T[r])?void 0:o[e.field])?n:null;return Me.jsx(A,Ie({column:e,width:t.width,rowId:r,height:u,showRightBorder:t.showRightBorder,align:e.align||"left",colIndex:t.indexRelativeToAllColumns,colSpan:t.colSpan,disableDragEvents:i,editCellState:l},null==D?void 0:D.cell),e.field)},$=_a(w,(()=>Ie({},w.current.unstable_getRowInternalSizes(r))),Ma);let z=u;if("auto"===z&&$){let e=0;const t=Object.entries($).reduce(((t,[n,o])=>/^base[A-Z]/.test(n)?(e+=1,o>t?o:t):t),0);t>0&&e>1&&(z=t)}const q=Ie({},a,{maxHeight:"auto"===u?"none":u,minHeight:z});if(null!=$&&$.spacingTop){q["border"===C.rowSpacingType?"borderTopWidth":"marginTop"]=$.spacingTop}if(null!=$&&$.spacingBottom){const e="border"===C.rowSpacingType?"borderBottomWidth":"marginBottom";let t=q[e];"number"!=typeof t&&(t=parseInt(t||"0",10)),t+=$.spacingBottom,q[e]=t}const H=w.current.unstable_applyPipeProcessors("rowClassName",[],r);if("function"==typeof C.getRowClassName){var B;const e=l-((null==(B=O.range)?void 0:B.firstRowIndex)||0),t=Ie({},w.current.getRowParams(r),{isFirstVisible:0===e,isLastVisible:e===O.rows.length-1,indexRelativeToCurrentPage:e});H.push(C.getRowClassName(t))}const U=Gm(1e4,20,80),W=w.current.getRowNode(r);if(!W)return null;const G=W.type,K=[];for(let e=0;e<d.length;e+=1){const t=d[e],n=f+e,o=w.current.unstable_getCellColSpanInfo(r,n);if(o&&!o.spannedByColSpan)if("skeletonRow"!==G){const{colSpan:e,width:r}=o.cellProps,i={width:r,colSpan:e,showRightBorder:C.showCellVerticalBorder,indexRelativeToAllColumns:n};K.push(V(t,i))}else{const{width:e}=o.cellProps,n=Math.round(U());K.push(Me.jsx(I.skeletonCell,{width:e,contentWidth:n,field:t.field,align:t.align},t.field))}}const Y=p-k,Z=i?{onClick:_,onDoubleClick:j("rowDoubleClick",g),onMouseEnter:j("rowMouseEnter",b),onMouseLeave:j("rowMouseLeave",v)}:null;return Me.jsxs("div",Ie({ref:N,"data-id":r,"data-rowindex":l,role:"row",className:vo(...H,M.root,c),"aria-rowindex":P,"aria-selected":o,style:q},Z,y,{children:[K,Y>0&&Me.jsx(jO,{width:Y})]}))}));"production"!==process.env.NODE_ENV&&(_O.propTypes={containerWidth:oe.number.isRequired,firstColumnToRender:oe.number.isRequired,focusedCell:oe.string,index:oe.number.isRequired,isLastVisible:oe.bool,lastColumnToRender:oe.number.isRequired,onClick:oe.func,onDoubleClick:oe.func,onMouseEnter:oe.func,onMouseLeave:oe.func,position:oe.oneOf(["center","left","right"]).isRequired,renderedColumns:oe.arrayOf(oe.object).isRequired,row:oe.object,rowHeight:oe.oneOfType([oe.oneOf(["auto"]),oe.number]).isRequired,rowId:oe.oneOfType([oe.number,oe.string]).isRequired,selected:oe.bool.isRequired,tabbableCell:oe.string,visibleColumns:oe.arrayOf(oe.object).isRequired});const IO=bu(_O);function DO({privateApiRef:t,props:n,children:o}){const r=e.useRef(t.current.getPublicApi());return Me.jsx(ya.Provider,{value:n,children:Me.jsx(xa.Provider,{value:t,children:Me.jsx(ba.Provider,{value:r,children:o})})})}const FO=function(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}()&&null!=window.localStorage.getItem("DEBUG"),AO=()=>{},LO={debug:AO,info:AO,warn:AO,error:AO},VO=["debug","info","warn","error"];function $O(e,t,n=console){const o=VO.indexOf(t);if(-1===o)throw new Error(`MUI: Log level ${t} not recognized.`);return VO.reduce(((t,r,i)=>(t[r]=i>=o?(...t)=>{const[o,...i]=t;n[r](`MUI: ${e} - ${o}`,...i)}:AO,t)),{})}class zO{static create(e){return new zO(e)}constructor(e){this.value=void 0,this.listeners=void 0,this.subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)}),this.getSnapshot=()=>this.value,this.update=e=>{this.value=e,this.listeners.forEach((t=>t(e)))},this.value=e,this.listeners=new Set}}class qO{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(e,t,n={}){let o=this.events[e];if(o||(o={highPriority:new Map,regular:new Map},this.events[e]=o),n.isFirst?o.highPriority.set(t,!0):o.regular.set(t,!0),"production"!==process.env.NODE_ENV){const t=o.highPriority.size+o.regular.size;t>this.maxListeners&&!this.warnOnce&&(this.warnOnce=!0,console.warn([`Possible EventEmitter memory leak detected. ${t} ${e} listeners added.`].join("\n")))}}removeListener(e,t){this.events[e]&&(this.events[e].regular.delete(t),this.events[e].highPriority.delete(t))}removeAllListeners(){this.events={}}emit(e,...t){const n=this.events[e];if(!n)return;const o=Array.from(n.highPriority.keys()),r=Array.from(n.regular.keys());for(let e=o.length-1;e>=0;e-=1){const r=o[e];n.highPriority.has(r)&&r.apply(this,t)}for(let e=0;e<r.length;e+=1){const o=r[e];n.regular.has(o)&&o.apply(this,t)}}once(e,t){const n=this;this.on(e,(function o(...r){n.removeListener(e,o),t.apply(n,r)}))}}let HO=0;function BO(t,n){const o=e.useRef();if(!o.current){const e={};o.current={state:e,store:zO.create(e),instanceId:{id:HO}},HO+=1}const r=e.useRef();r.current||(r.current=(e=>{const t={getPublicApi:()=>e,register:(n,o)=>{Object.keys(o).forEach((r=>{"public"===n?e[r]=o[r]:t[r]=o[r]}))}};return new Proxy(e,{get:(e,n)=>n in e?e[n]:t[n],set:(e,t,n)=>(e[t]=n,!0)})})(o.current),r.current.register("private",{caches:{},eventManager:new qO})),e.useImperativeHandle(t,(()=>o.current),[o]);const i=e.useCallback(((...e)=>{const[t,o,i={}]=e;if(i.defaultMuiPrevented=!1,(e=>void 0!==e.isPropagationStopped)(i)&&i.isPropagationStopped())return;const l=n.signature===Fm.DataGridPro?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(t,o,i,l)}),[r,n.signature]),l=e.useCallback(((e,t,n)=>{r.current.eventManager.on(e,t,n);const o=r.current;return()=>{o.eventManager.removeListener(e,t)}}),[r]);return Mu(r,{subscribeEvent:l,publishEvent:i},"public"),e.useEffect((()=>{const e=r.current;return()=>{e.publishEvent("unmount")}}),[r]),r}function UO(e){return UO="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},UO(e)}function WO(e){var t=function(e,t){if("object"!=UO(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=UO(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==UO(t)?t:String(t)}const GO=(t,n,o)=>{const r=e.useRef(),i=e.useRef(`mui-${Math.round(1e9*Math.random())}`),l=e.useCallback((()=>{r.current=t.current.registerPipeProcessor(n,i.current,o)}),[t,o,n]);Ym((()=>{l()}));const a=e.useRef(!0);e.useEffect((()=>(a.current?a.current=!1:l(),()=>{r.current&&(r.current(),r.current=null)})),[l])},KO=(t,n,o)=>{const r=e.useRef(),i=e.useRef(`mui-${Math.round(1e9*Math.random())}`),l=e.useCallback((()=>{r.current=t.current.registerPipeApplier(n,i.current,o)}),[t,o,n]);Ym((()=>{l()}));const a=e.useRef(!0);e.useEffect((()=>(a.current?a.current=!1:l(),()=>{r.current&&(r.current(),r.current=null)})),[l])},YO=(t,n,o,r)=>{const i=e.useCallback((()=>{t.current.registerStrategyProcessor(n,o,r)}),[t,r,o,n]);Ym((()=>{i()}));const l=e.useRef(!0);e.useEffect((()=>{l.current?l.current=!1:i()}),[i])},ZO="none",XO={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},QO=(t,n)=>{const o=BO(t,n);return((t,n)=>{Mu(t,{getLogger:e.useCallback((e=>FO?$O(e,"debug",n.logger):n.logLevel?$O(e,n.logLevel.toString(),n.logger):LO),[n.logLevel,n.logger])},"private")})(o,n),((t,n)=>{const o=e.useRef({}),[,r]=e.useState(),i=e.useCallback((e=>{o.current[e.stateId]=e}),[]),l=e.useCallback(((e,r)=>{let i;if(i=qm(e)?e(t.current.state):e,t.current.state===i)return!1;let l=!1;const a=[];if(Object.keys(o.current).forEach((e=>{const n=o.current[e],r=n.stateSelector(t.current.state,t.current.instanceId),s=n.stateSelector(i,t.current.instanceId);s!==r&&(a.push({stateId:n.stateId,hasPropChanged:s!==n.propModel}),void 0!==n.propModel&&s!==n.propModel&&(l=!0))})),a.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${a[0].stateId}, therefore, you're not allowed to update ${a.map((e=>e.stateId)).join(", ")} in the same transaction.`);if(l||(t.current.state=i,t.current.publishEvent&&t.current.publishEvent("stateChange",i),t.current.store.update(i)),1===a.length){const{stateId:e,hasPropChanged:s}=a[0],u=o.current[e],c=u.stateSelector(i,t.current.instanceId);if(u.propOnChange&&s){const e=n.signature===Fm.DataGridPro?{api:t.current,reason:r}:{reason:r};u.propOnChange(c,e)}l||t.current.publishEvent(u.changeEvent,c,{reason:r})}return!l}),[t,n.signature]),a=e.useCallback(((e,n,o)=>t.current.setState((t=>Ie({},t,{[e]:n(t[e])})),o)),[t]),s=e.useCallback((()=>r((()=>t.current.state))),[t]),u={updateControlState:a,registerControlState:i};Mu(t,{setState:l,forceUpdate:s},"public"),Mu(t,u,"private")})(o,n),(t=>{const n=e.useRef({}),o=e.useCallback((e=>{e&&Object.values(e.appliers).forEach((e=>{e()}))}),[]),r=e.useCallback(((e,t,r)=>{n.current[e]||(n.current[e]={processors:new Map,appliers:{}});const i=n.current[e];return i.processors.get(t)!==r&&(i.processors.set(t,r),o(i)),()=>{n.current[e].processors.set(t,null)}}),[o]),i=e.useCallback(((e,t,o)=>(n.current[e]||(n.current[e]={processors:new Map,appliers:{}}),n.current[e].appliers[t]=o,()=>{const o=De(n.current[e].appliers,[t].map(WO));n.current[e].appliers=o})),[]),l=e.useCallback((e=>{const t=n.current[e];o(t)}),[o]),a={unstable_applyPipeProcessors:e.useCallback(((...e)=>{const[t,o,r]=e;return n.current[t]?Array.from(n.current[t].processors.values()).reduce(((e,t)=>t?t(e,r):e),o):o}),[])};Mu(t,{registerPipeProcessor:r,registerPipeApplier:i,requestPipeProcessorsApplication:l},"private"),Mu(t,a,"public")})(o),(t=>{const n=e.useRef(new Map),o=e.useRef({}),r=e.useCallback(((e,n,r)=>{o.current[n]||(o.current[n]={});const i=o.current[n],l=i[e];return i[e]=r,!l||l===r||e===t.current.getActiveStrategy(XO[n])&&t.current.publishEvent("activeStrategyProcessorChange",n),()=>{const t=De(o.current[n],[e].map(WO));o.current[n]=t}}),[t]),i=e.useCallback(((e,n)=>{const r=t.current.getActiveStrategy(XO[e]);if(null==r)throw new Error("Can't apply a strategy processor before defining an active strategy");const i=o.current[e];if(!i||!i[r])throw new Error(`No processor found for processor "${e}" on strategy "${r}"`);return(0,i[r])(n)}),[t]),l=e.useCallback((e=>{var t;const o=Array.from(n.current.entries()).find((([,t])=>t.group===e&&t.isAvailable()));return null!=(t=null==o?void 0:o[0])?t:ZO}),[]),a=e.useCallback(((e,o,r)=>{n.current.set(o,{group:e,isAvailable:r}),t.current.publishEvent("strategyAvailabilityChange")}),[t]);Mu(t,{registerStrategyProcessor:r,applyStrategyProcessor:i,getActiveStrategy:l,setStrategyAvailability:a},"private")})(o),((t,n)=>{const o=e.useCallback((e=>{if(null==n.localeText[e])throw new Error(`Missing translation for key ${e}.`);return n.localeText[e]}),[n.localeText]);t.current.register("public",{getLocaleText:o})})(o,n),o},JO=(t,n,o)=>{const r=e.useRef(!1);r.current||(n.current.state=t(n.current.state,o,n),r.current=!0)},ek=/(\d+)-(\d+)-(\d+)/,tk=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function nk(e,t,n,o){if(!e.value)return null;const[r,i,l,a,s]=e.value.match(n?tk:ek).slice(1).map(Number),u=new Date(r,i-1,l,a||0,s||0).getTime();return e=>{if(!e)return!1;if(o)return t(e.getTime(),u);const r=new Date(e).setHours(n?e.getHours():0,n?e.getMinutes():0,0,0);return t(r,u)}}const ok=e=>wO([{value:"is",getApplyFilterFnV7:t=>nk(t,((e,t)=>e===t),e),InputComponent:Hv,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFnV7:t=>nk(t,((e,t)=>e!==t),e),InputComponent:Hv,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFnV7:t=>nk(t,((e,t)=>e>t),e),InputComponent:Hv,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFnV7:t=>nk(t,((e,t)=>e>=t),e),InputComponent:Hv,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFnV7:t=>nk(t,((e,t)=>e<t),e,!e),InputComponent:Hv,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFnV7:t=>nk(t,((e,t)=>e<=t),e),InputComponent:Hv,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFnV7:()=>e=>null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>null!=e,requiresFilterValue:!1}]);function rk({value:e,columnType:t,rowId:n,field:o}){if(!(e instanceof Date))throw new Error([`MUI: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${o}".`].join("\n"))}const ik=Ie({},OO,{type:"date",sortComparator:xg,valueFormatter:function({value:e,field:t,id:n}){return e?(rk({value:e,columnType:"date",rowId:n,field:t}),e.toLocaleDateString()):""},filterOperators:ok(),renderEditCell:Lp,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,pastedValueParser:e=>new Date(e)}),lk=Ie({},OO,{type:"dateTime",sortComparator:xg,valueFormatter:function({value:e,field:t,id:n}){return e?(rk({value:e,columnType:"dateTime",rowId:n,field:t}),e.toLocaleString()):""},filterOperators:ok(!0),renderEditCell:Lp,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,pastedValueParser:e=>new Date(e)}),ak=e=>null==e?null:Number(e),sk=bO((e=>null==e||Number.isNaN(e)||""===e?null:t=>ak(t)===ak(e))),uk=Ie({},OO,{type:"number",align:"right",headerAlign:"right",sortComparator:wg,valueParser:e=>""===e?null:Number(e),valueFormatter:({value:e})=>function(e){return"number"==typeof e}(e)?e.toLocaleString():e||"",filterOperators:wO([{value:"=",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>ak(t)===e.value,InputComponent:zv,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>ak(t)!==e.value,InputComponent:zv,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&ak(t)>e.value,InputComponent:zv,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&ak(t)>=e.value,InputComponent:zv,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&ak(t)<e.value,InputComponent:zv,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&ak(t)<=e.value,InputComponent:zv,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFnV7:()=>e=>null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>null!=e,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:e=>Array.isArray(e.value)&&0!==e.value.length?t=>null!=t&&e.value.includes(Number(t)):null,InputComponent:qy,InputComponentProps:{type:"number"}}]),getApplyQuickFilterFn:xO(sk),getApplyQuickFilterFnV7:sk}),ck=e=>null!=e&&Hm(e)?e.value:e,dk=Ie({},OO,{type:"singleSelect",getOptionLabel:e=>Hm(e)?e.label:String(e),getOptionValue:e=>Hm(e)?e.value:e,valueFormatter(e){const{id:t,field:n,value:o,api:r}=e,i=e.api.getColumn(n);if(!Kp(i))return"";let l;if(l="function"==typeof i.valueOptions?i.valueOptions({id:t,row:t?r.getRow(t):null,field:n}):i.valueOptions,null==o)return"";if(!l)return o;if(!(e=>"object"==typeof e[0])(l))return i.getOptionLabel(o);const a=l.find((e=>i.getOptionValue(e)===o));return a?i.getOptionLabel(a):""},renderEditCell:e=>Me.jsx(Qp,Ie({},e)),filterOperators:wO([{value:"is",getApplyFilterFnV7:e=>null==e.value||""===e.value?null:t=>ck(t)===ck(e.value),InputComponent:Gv},{value:"not",getApplyFilterFnV7:e=>null==e.value||""===e.value?null:t=>ck(t)!==ck(e.value),InputComponent:Gv},{value:"isAnyOf",getApplyFilterFnV7:e=>{if(!Array.isArray(e.value)||0===e.value.length)return null;const t=e.value.map(ck);return e=>t.includes(ck(e))},InputComponent:Uy}]),pastedValueParser:(e,t)=>{const n=t.colDef,o=n.valueOptions,r="function"==typeof o?o({field:n.field}):o||[],i=n.getOptionValue;if(r.find((t=>i(t)===e)))return e}}),pk="__default__";function fk(e,t){if("string"==typeof e){const n=e.replace(/"/g,'""');return[t,"\n","\r"].some((e=>n.includes(e)))?`"${n}"`:n}return e}const hk=(e,t)=>{const{delimiterCharacter:n,ignoreValueFormatter:o}=t;let r;if(o){var i;const t=e.colDef.type;if("number"===t)r=String(e.value);else if("date"===t||"dateTime"===t){var l;r=null==(l=e.value)?void 0:l.toISOString()}else r="function"==typeof(null==(i=e.value)?void 0:i.toString)?e.value.toString():e.value}else r=e.formattedValue;return fk(r,n)},mk=Sa(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);function gk(e){const{columns:t,rowIds:n,getCellParams:o,delimiterCharacter:r,includeHeaders:i,ignoreValueFormatter:l}=e,a=n.reduce(((e,n)=>`${e}${(({id:e,columns:t,getCellParams:n,delimiterCharacter:o,ignoreValueFormatter:r})=>t.map((t=>{const i=n(e,t.field);return"production"!==process.env.NODE_ENV&&"[object Object]"===String(i.formattedValue)&&mk(),hk(i,{delimiterCharacter:o,ignoreValueFormatter:r})})))({id:n,columns:t,getCellParams:o,delimiterCharacter:r,ignoreValueFormatter:l}).join(r)}\r\n`),"").trim();return i?`${t.filter((e=>e.field!==EO.field)).map((e=>fk(e.headerName||e.field,r))).join(r)}\r\n${a}`.trim():a}function bk(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const o=window.getSelection();o.removeAllRanges(),o.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}const vk=(t,n)=>{const o=n.unstable_ignoreValueFormatterDuringExport,r=("object"==typeof o?null==o?void 0:o.clipboardExport:o)||!1,i=n.clipboardCopyCellDelimiter,l=e.useCallback((e=>{if(!e.ctrlKey&&!e.metaKey||"c"!==e.key||function(e){var t;return!!(null!=(t=window.getSelection())&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}(e.target))return;let n="";if(t.current.getSelectedRows().size>0)n=t.current.getDataAsCsv({includeHeaders:!1,delimiter:i});else{const e=Ls(t);if(e){const o=t.current.getCellParams(e.id,e.field);n=hk(o,{delimiterCharacter:i,ignoreValueFormatter:r})}}n=t.current.unstable_applyPipeProcessors("clipboardCopy",n),n&&(function(e){navigator.clipboard?navigator.clipboard.writeText(e).catch((()=>{bk(e)})):bk(e)}(n),t.current.publishEvent("clipboardCopy",n))}),[t,r,i]);((t,n,o,r,i)=>{const l=zm(t,"useNativeEventListener"),[a,s]=e.useState(!1),u=e.useRef(r),c=e.useCallback((e=>u.current&&u.current(e)),[]);e.useEffect((()=>{u.current=r}),[r]),e.useEffect((()=>{let e;if(e=qm(n)?n():n&&n.current?n.current:null,e&&o&&!a){l.debug(`Binding native ${o} event`),e.addEventListener(o,c,i);const n=e;s(!0);const r=()=>{l.debug(`Clearing native ${o} event`),n.removeEventListener(o,c,i)};t.current.subscribeEvent("unmount",r)}}),[n,c,o,a,l,i,t])})(t,t.current.rootElementRef,"keydown",l),$m(t,"clipboardCopy",n.onClipboardCopy)},yk=e=>Ie({},e,{columnMenu:{open:!1}}),wk=["maxWidth","minWidth","width","flex"];const xk=(e,t)=>{const n={};let o=0,r=0;const i=[];e.orderedFields.forEach((t=>{const l=Ie({},e.lookup[t]);if(!1===e.columnVisibilityModel[t])l.computedWidth=0;else{let e;l.flex&&l.flex>0?(o+=l.flex,e=0,i.push(l)):e=Um(l.width,l.minWidth,l.maxWidth),r+=e,l.computedWidth=e}n[t]=l}));const l=Math.max(t-r,0);if(o>0&&t>0){const e=function({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const o=new Set(n.map((e=>e.field))),r={all:{},frozenFields:[],freeze:e=>{const t=r.all[e];t&&!0!==t.frozen&&(r.all[e].frozen=!0,r.frozenFields.push(e))}};return function i(){if(r.frozenFields.length===o.size)return;const l={min:{},max:{}};let a=e,s=t,u=0;r.frozenFields.forEach((e=>{a-=r.all[e].computedWidth,s-=r.all[e].flex}));for(let e=0;e<n.length;e+=1){const t=n[e];if(r.all[t.field]&&!0===r.all[t.field].frozen)continue;let o=a/s*t.flex;o<t.minWidth?(u+=t.minWidth-o,o=t.minWidth,l.min[t.field]=!0):o>t.maxWidth&&(u+=t.maxWidth-o,o=t.maxWidth,l.max[t.field]=!0),r.all[t.field]={frozen:!1,computedWidth:o,flex:t.flex}}u<0?Object.keys(l.max).forEach((e=>{r.freeze(e)})):u>0?Object.keys(l.min).forEach((e=>{r.freeze(e)})):n.forEach((({field:e})=>{r.freeze(e)})),i()}(),r.all}({initialFreeSpace:l,totalFlexUnits:o,flexColumns:i});Object.keys(e).forEach((t=>{n[t].computedWidth=e[t].computedWidth}))}return Ie({},e,{lookup:n})},Ck=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:o,columnVisibilityModel:r=Ja(e),keepOnlyColumnsToUpsert:i=!1})=>{var l,a,s,u;const c=!e.current.state.columns;let d;if(c)d={orderedFields:[],lookup:{},columnVisibilityModel:r};else{const t=Ya(e.current.state);d={orderedFields:i?[]:[...t.orderedFields],lookup:Ie({},t.lookup),columnVisibilityModel:r}}let p={};i&&!c&&(p=Object.keys(d.lookup).reduce(((e,t)=>Ie({},e,{[t]:!1})),{})),t.forEach((e=>{const{field:t}=e;p[t]=!0;let n=d.lookup[t];if(null==n){let r=o[pk];e.type&&o[e.type]&&(r=o[e.type]),n=Ie({},r,{field:t,hasBeenResized:!1}),d.orderedFields.push(t)}else i&&d.orderedFields.push(t);let r=n.hasBeenResized;wk.forEach((t=>{void 0!==e[t]&&(r=!0,-1===e[t]&&(e[t]=1/0))})),d.lookup[t]=Ie({},n,e,{hasBeenResized:r})})),i&&!c&&Object.keys(d.lookup).forEach((e=>{p[e]||delete d.lookup[e]}));const f=((e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:o={}}=t,r=Object.keys(o);if(0===r.length&&0===n.length)return e;const i={},l=[];for(let t=0;t<n.length;t+=1){const o=n[t];e.lookup[o]&&(i[o]=!0,l.push(o))}const a=0===l.length?e.orderedFields:[...l,...e.orderedFields.filter((e=>!i[e]))],s=Ie({},e.lookup);for(let e=0;e<r.length;e+=1){const t=r[e],n=Ie({},s[t],{hasBeenResized:!0});Object.entries(o[t]).forEach((([e,t])=>{n[e]=-1===t?1/0:t})),s[t]=n}return Ie({},e,{orderedFields:a,lookup:s})})(e.current.unstable_applyPipeProcessors("hydrateColumns",d),n);return xk(f,null!=(l=null==(a=(s=e.current).getRootDimensions)||null==(u=a.call(s))?void 0:u.viewportInnerSize.width)?l:0)},Ok=e=>t=>Ie({},t,{columns:e});function kk({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:o,visibleRows:r}){let i=e;for(let l=n;l<o;l+=1)if(r[l]){const n=r[l].id,o=t.current.unstable_getCellColSpanInfo(n,e);o&&o.spannedByColSpan&&(i=o.leftVisibleCellIndex)}return i}function Sk({firstColumnIndex:e,minColumnIndex:t,columnBuffer:n,firstRowToRender:o,lastRowToRender:r,apiRef:i,visibleRows:l}){return kk({firstColumnToRender:Math.max(e-n,t),apiRef:i,firstRowToRender:o,lastRowToRender:r,visibleRows:l})}function Ek(e,t){const n=Gs(e),o=Qs(e);return Math.floor(t*n)*((o??0)+1)}const Rk={string:OO,number:uk,date:ik,dateTime:lk,boolean:kO,singleSelect:dk,[RO]:TO,[pk]:OO},Tk=(e,t,n)=>{var o,r,i,l,a;return Ie({},e,{columns:Ck({apiRef:n,columnTypes:Rk,columnsToUpsert:t.columns,initialState:null==(o=t.initialState)?void 0:o.columns,columnVisibilityModel:null!=(r=null!=(i=t.columnVisibilityModel)?i:null==(l=t.initialState)||null==(a=l.columns)?void 0:a.columnVisibilityModel)?r:{},keepOnlyColumnsToUpsert:!0})})};const Nk={compact:.7,comfortable:1.3,standard:1},Pk=(e,t)=>Ie({},e,{density:{value:t.density,factor:Nk[t.density]}});const Mk=({apiRef:e,options:t})=>{const n=Qa(e);return t.fields?t.fields.map((e=>n.find((t=>t.field===e)))).filter((e=>!!e)):(t.allColumns?n:es(e)).filter((e=>!e.disableExport))},jk=({apiRef:e})=>{var t,n;const o=Ms(e),r=ps(e),i=e.current.getSelectedRows(),l=o.filter((e=>"footer"!==r[e].type)),a=vs(e),s=(null==a||null==(t=a.top)?void 0:t.map((e=>e.id)))||[],u=(null==a||null==(n=a.bottom)?void 0:n.map((e=>e.id)))||[];return l.unshift(...s),l.push(...u),i.size>0?l.filter((e=>i.has(e))):l},_k=(t,n)=>{const o=zm(t,"useGridCsvExport"),r=n.unstable_ignoreValueFormatterDuringExport,i=("object"==typeof r?null==r?void 0:r.csvExport:r)||!1,l=e.useCallback(((e={})=>{var n,r;o.debug("Get data as CSV");return gk({columns:Mk({apiRef:t,options:e}),rowIds:(null!=(n=e.getRowsToExport)?n:jk)({apiRef:t}),getCellParams:t.current.getCellParams,delimiterCharacter:e.delimiter||",",includeHeaders:null==(r=e.includeHeaders)||r,ignoreValueFormatter:i})}),[o,t,i]),a=e.useCallback((e=>{o.debug("Export data as CSV");const t=l(e);!function(e,t="csv",n=document.title||"untitled"){const o=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const t=URL.createObjectURL(e),n=document.createElement("a");return n.href=t,n.download=o,n.click(),void setTimeout((()=>{URL.revokeObjectURL(t)}))}throw new Error("MUI: exportAs not supported")}(new Blob([null!=e&&e.utf8WithBom?new Uint8Array([239,187,191]):"",t],{type:"text/csv"}),"csv",null==e?void 0:e.fileName)}),[o,l]);Mu(t,{getDataAsCsv:l,exportDataAsCsv:a},"public");const s=e.useCallback(((e,t)=>{var n;return null!=(n=t.csvOptions)&&n.disableToolbarButton?e:[...e,{component:Me.jsx(Xy,{options:t.csvOptions}),componentName:"csvExport"}]}),[]);GO(t,"exportMenu",s)};const Ik=(t,n)=>{const o=zm(t,"useGridPrintExport"),r=e.useRef(null),i=e.useRef(null),l=e.useRef({});e.useEffect((()=>{r.current=Rt(t.current.rootElementRef.current)}),[t]);const a=e.useCallback(((e,n)=>new Promise((o=>{if(!e&&!n)return void o();const r=Mk({apiRef:t,options:{fields:e,allColumns:n}}).map((e=>e.field)),i=Qa(t),l={};i.forEach((e=>{l[e.field]=r.includes(e.field)})),t.current.setColumnVisibilityModel(l),o()}))),[t]),s=e.useCallback(((e,o)=>{var i,l;const a=Ie({copyStyles:!0,hideToolbar:!1,hideFooter:!1},o),s=e.contentDocument;if(!s)return;const u=ug(t.current.state),c=t.current.rootElementRef.current,d=c.cloneNode(!0);d.querySelector(`.${Da.main}`).style.overflow="visible",d.style.contain="size";d.querySelector(`.${Da.columnHeaders}`).querySelector(`.${Da.columnHeadersInner}`).style.width="100%";let p=(null==(i=c.querySelector(`.${Da.toolbarContainer}`))?void 0:i.offsetHeight)||0,f=(null==(l=c.querySelector(`.${Da.footerContainer}`))?void 0:l.offsetHeight)||0;var h,m;a.hideToolbar&&(null==(h=d.querySelector(`.${Da.toolbarContainer}`))||h.remove(),p=0);a.hideFooter&&(null==(m=d.querySelector(`.${Da.footerContainer}`))||m.remove(),f=0);d.style.height=`${u.currentPageTotalHeight+Ek(t,n.columnHeaderHeight)+p+f}px`,d.style.boxSizing="content-box";const g=document.createElement("div");g.appendChild(d),s.body.innerHTML=g.innerHTML;const b="function"==typeof a.pageStyle?a.pageStyle():a.pageStyle;if("string"==typeof b){const e=s.createElement("style");e.appendChild(s.createTextNode(b)),s.head.appendChild(e)}if(a.bodyClassName&&s.body.classList.add(...a.bodyClassName.split(" ")),a.copyStyles){const e=c.getRootNode(),t=("ShadowRoot"===e.constructor.name?e:r.current).querySelectorAll("style, link[rel='stylesheet']");for(let e=0;e<t.length;e+=1){const n=t[e];if("STYLE"===n.tagName){const e=s.createElement(n.tagName),t=n.sheet;if(t){let n="";for(let e=0;e<t.cssRules.length;e+=1)"string"==typeof t.cssRules[e].cssText&&(n+=`${t.cssRules[e].cssText}\r\n`);e.appendChild(s.createTextNode(n)),s.head.appendChild(e)}}else if(n.getAttribute("href")){const e=s.createElement(n.tagName);for(let t=0;t<n.attributes.length;t+=1){const o=n.attributes[t];o&&e.setAttribute(o.nodeName,o.nodeValue||"")}s.head.appendChild(e)}}}"test"!==process.env.NODE_ENV&&e.contentWindow.print()}),[t,r,n.columnHeaderHeight]),u=e.useCallback((e=>{var n,o;r.current.body.removeChild(e),t.current.restoreState(i.current||{}),null!=(n=i.current)&&null!=(o=n.columns)&&o.columnVisibilityModel||t.current.setColumnVisibilityModel(l.current),t.current.unstable_enableVirtualization(),i.current=null,l.current={}}),[t]),c={exportDataAsPrint:e.useCallback((async e=>{if(o.debug("Export data as Print"),!t.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");if(i.current=t.current.exportState(),l.current=Ja(t),n.pagination){const e=_s(t);t.current.setPageSize(e)}await a(null==e?void 0:e.fields,null==e?void 0:e.allColumns),t.current.unstable_disableVirtualization(),await new Promise((e=>{requestAnimationFrame((()=>{e()}))}));const c=function(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}(null==e?void 0:e.fileName);"test"===process.env.NODE_ENV?(r.current.body.appendChild(c),s(c,e),u(c)):(c.onload=()=>{s(c,e),c.contentWindow.matchMedia("print").addEventListener("change",(e=>{!1===e.matches&&u(c)}))},r.current.body.appendChild(c))}),[n,o,t,s,u,a])};Mu(t,c,"public");const d=e.useCallback(((e,t)=>{var n;return null!=(n=t.printOptions)&&n.disableToolbarButton?e:[...e,{component:Me.jsx(Qy,{options:t.printOptions}),componentName:"printExport"}]}),[]);GO(t,"exportMenu",d)},Dk=(e,t)=>{const n=Ie({},e);if(null==n.id&&(n.id=Math.round(1e5*Math.random())),null==n.operator){const e=Xa(t)[n.field];n.operator=e&&e.filterOperators[0].value}return n},Fk=Sa(["MUI: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),Ak=Sa("MUI: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),Lk=Sa("MUI: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),Vk=(e,t,n)=>{const o=e.items.length>1;let r;o&&t?(Fk(),r=[e.items[0]]):r=e.items;const i=o&&r.some((e=>null==e.id)),l=r.some((e=>null==e.operator));return i&&Ak(),l&&Lk(),l||i?Ie({},e,{items:r.map((e=>Dk(e,n)))}):e.items!==r?Ie({},e,{items:r}):e},$k=(e,t,n)=>o=>Ie({},o,{filterModel:Vk(e,t,n)}),zk=(e,t)=>{if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let o;if(n.valueParser){var r;const t=n.valueParser;o=Array.isArray(e.value)?null==(r=e.value)?void 0:r.map((e=>t(e))):t(e.value)}else o=e.value;const i=Ie({},e,{value:o}),l=n.filterOperators;if(null==l||!l.length)throw new Error(`MUI: No filter operators found for column '${n.field}'.`);const a=l.find((e=>e.value===i.operator));if(!a)throw new Error(`MUI: No filter operator found for column '${n.field}' and operator value '${i.operator}'.`);const s=!vO(a.getApplyFilterFn),u=!vO(a.getApplyFilterFnV7);if(a.getApplyFilterFnV7&&(!s||u)){const e=a.getApplyFilterFnV7(i,n);return"function"!=typeof e?null:{v7:!0,item:i,fn:o=>{const r=t.current.getRowValue(o,n);return e(r,o,n,t)}}}const c=a.getApplyFilterFn(i,n);return"function"!=typeof c?null:{v7:!1,item:i,fn:e=>{const n=t.current.getCellParams(e,i.field);gO.current=t;const o=c(n);return gO.current=null,o}}},qk=(e,t,n)=>{const o=((e,t,n)=>{const{items:o}=t,r=o.map((e=>zk(e,n))).filter((e=>!!e));return 0===r.length?null:(t,n)=>{const o={};for(let i=0;i<r.length;i+=1){const l=r[i];(!n||n(l.item.field))&&(o[l.item.id]=l.v7?l.fn(t):l.fn(e?e(t):t.id))}return o}})(e,t,n),r=((e,t,n)=>{var o,r;const i=null!=(o=null==(r=t.quickFilterValues)?void 0:r.filter(Boolean))?o:[];if(0===i.length)return null;const l=Za(n),a=[];return l.forEach((e=>{const t=n.current.getColumn(e),o=null==t?void 0:t.getApplyQuickFilterFn,r=null==t?void 0:t.getApplyQuickFilterFnV7,l=!vO(o),s=!vO(r);!r||l&&!s?o&&a.push({column:t,appliers:i.map((e=>({v7:!1,fn:o(e,t,n)})))}):a.push({column:t,appliers:i.map((e=>({v7:!0,fn:r(e,t,n)})))})})),function(t,o){const r={},l={};e:for(let u=0;u<i.length;u+=1){const c=i[u];for(let i=0;i<a.length;i+=1){const{column:d,appliers:p}=a[i],{field:f}=d;if(o&&!o(f))continue;const h=p[u],m=n.current.getRowValue(t,d);if(null!==h.fn)if(h.v7){if(h.fn(m,t,d,n)){r[c]=!0;continue e}}else{var s;const o=null!=(s=l[f])?s:n.current.getCellParams(e?e(t):t.id,f);if(l[f]=o,h.fn(o)){r[c]=!0;continue e}}}r[c]=!1}return r}})(e,t,n);return function(e,t,n){var i,l;n.passingFilterItems=null!=(i=null==o?void 0:o(e,t))?i:null,n.passingQuickFilterValues=null!=(l=null==r?void 0:r(e,t))?l:null}},Hk=e=>null!=e,Bk=(e,t,n,o,r)=>{const i=((e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter((e=>null!==zk(e,t)))),e.cleanedFilterItems))(r,o,n.items),l=e.filter(Hk),a=t.filter(Hk);if(l.length>0){var s;const e=e=>l.some((t=>t[e.id]));if((null!=(s=n.logicOperator)?s:_m().logicOperator)===Ou.And){if(!i.every(e))return!1}else if(!i.some(e))return!1}if(a.length>0&&null!=n.quickFilterValues){var u;const e=e=>a.some((t=>t[e]));if((null!=(u=n.quickFilterLogicOperator)?u:_m().quickFilterLogicOperator)===Ou.And){if(!n.quickFilterValues.every(e))return!1}else if(!n.quickFilterValues.some(e))return!1}return!0},Uk=(e,t,n)=>{var o,r,i,l;const a=null!=(o=null!=(r=t.filterModel)?r:null==(i=t.initialState)||null==(l=i.filter)?void 0:l.filterModel)?o:_m();return Ie({},e,{filter:{filterModel:Vk(a,t.disableMultipleColumnsFiltering,n),filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},Wk=e=>e.filteredRowsLookup;function Gk(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}const Kk=e=>Ie({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}});const Yk=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:o})=>{if("rtl"===o){if(e<n)return e+1}else if("ltr"===o&&e>t)return e-1;return null},Zk=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:o})=>{if("rtl"===o){if(e>t)return e-1}else if("ltr"===o&&e<n)return e+1;return null},Xk=(t,n)=>{const o=zm(t,"useGridKeyboardNavigation"),r=mO(t,n).rows,i=mr(),l=e.useMemo((()=>function(e,t){const n=vs(e)||{};return[...n.top||[],...t,...n.bottom||[]]}(t,r)),[t,r]),a="DataGrid"!==n.signature&&n.unstable_headerFilters,s=e.useCallback(((e,n,r="left")=>{const i=Ts(t),l=t.current.unstable_getCellColSpanInfo(n,e);l&&l.spannedByColSpan&&("left"===r?e=l.leftVisibleCellIndex:"right"===r&&(e=l.rightVisibleCellIndex));const a=i.findIndex((e=>e.id===n));o.debug(`Navigating to cell row ${a}, col ${e}`),t.current.scrollToIndexes({colIndex:e,rowIndex:a});const s=t.current.getVisibleColumns()[e].field;t.current.setCellFocus(n,s)}),[t,o]),u=e.useCallback(((e,n)=>{o.debug(`Navigating to header col ${e}`),t.current.scrollToIndexes({colIndex:e});const r=t.current.getVisibleColumns()[e].field;t.current.setColumnHeaderFocus(r,n)}),[t,o]),c=e.useCallback(((e,n)=>{o.debug(`Navigating to header filter col ${e}`),t.current.scrollToIndexes({colIndex:e});const r=t.current.getVisibleColumns()[e].field;t.current.setColumnHeaderFilterFocus(r,n)}),[t,o]),d=e.useCallback(((e,n,r)=>{o.debug(`Navigating to header col ${e}`),t.current.scrollToIndexes({colIndex:e});const{field:i}=t.current.getVisibleColumns()[e];t.current.setColumnGroupHeaderFocus(i,n,r)}),[t,o]),p=e.useCallback((e=>null==l?void 0:l[e].id),[l]),f=e.useCallback(((e,n)=>{const o=n.currentTarget.querySelector(`.${Da.columnHeaderTitleContainerContent}`);if(o&&o.contains(n.target)&&e.field!==EO.field||!t.current.getRootDimensions())return;const r=t.current.getViewportPageSize(),f=e.field?t.current.getColumnIndex(e.field):0,h=l.length-1,m=es(t).length-1,g=Qs(t);let b=!0;switch(n.key){case"ArrowDown":a?c(f,n):s(f,p(0));break;case"ArrowRight":{const e=Zk({currentColIndex:f,firstColIndex:0,lastColIndex:m,direction:i.direction});null!==e&&u(e,n);break}case"ArrowLeft":{const e=Yk({currentColIndex:f,firstColIndex:0,lastColIndex:m,direction:i.direction});null!==e&&u(e,n);break}case"ArrowUp":g>0&&d(f,g-1,n);break;case"PageDown":null!==h&&s(f,p(Math.min(0+r,h)));break;case"Home":u(0,n);break;case"End":u(m,n);break;case"Enter":(n.ctrlKey||n.metaKey)&&t.current.toggleColumnMenu(e.field);break;case" ":break;default:b=!1}b&&n.preventDefault()}),[t,l.length,a,c,s,p,i.direction,u,d]),h=e.useCallback(((e,n)=>{if(!t.current.getRootDimensions())return;const o=Og(t)===e.field,r=kg(t)===e.field;if(o||r||!Wp(n.key))return;const a=t.current.getViewportPageSize(),d=e.field?t.current.getColumnIndex(e.field):0,f=l.length-1,h=es(t).length-1;let m=!0;switch(n.key){case"ArrowDown":{const e=p(0);null!=e&&s(d,e);break}case"ArrowRight":{const e=Zk({currentColIndex:d,firstColIndex:0,lastColIndex:h,direction:i.direction});null!==e&&c(e,n);break}case"ArrowLeft":{const o=Yk({currentColIndex:d,firstColIndex:0,lastColIndex:h,direction:i.direction});null!==o?c(o,n):t.current.setColumnHeaderFilterFocus(e.field,n);break}case"ArrowUp":u(d,n);break;case"PageDown":null!==f&&s(d,p(Math.min(0+a,f)));break;case"Home":c(0,n);break;case"End":c(h,n);break;case" ":break;default:m=!1}m&&n.preventDefault()}),[t,l.length,c,i.direction,u,s,p]),m=e.useCallback(((e,n)=>{if(!t.current.getRootDimensions())return;const o=$s(t);if(null===o)return;const{field:r,depth:i}=o,{fields:a,depth:c,maxDepth:f}=e,h=t.current.getViewportPageSize(),m=t.current.getColumnIndex(r),g=r?t.current.getColumnIndex(r):0,b=l.length-1,v=es(t).length-1;let y=!0;switch(n.key){case"ArrowDown":c===f-1?u(m,n):d(m,i+1,n);break;case"ArrowUp":c>0&&d(m,i-1,n);break;case"ArrowRight":{const e=a.length-a.indexOf(r)-1;m+e+1<=v&&d(m+e+1,i,n);break}case"ArrowLeft":{const e=a.indexOf(r);m-e-1>=0&&d(m-e-1,i,n);break}case"PageDown":null!==b&&s(g,p(Math.min(0+h,b)));break;case"Home":d(0,i,n);break;case"End":d(v,i,n);break;case" ":break;default:y=!1}y&&n.preventDefault()}),[t,l.length,u,d,s,p]),g=e.useCallback(((e,n)=>{if(!n.currentTarget.contains(n.target))return;const o=t.current.getCellParams(e.id,e.field);if(o.cellMode===xu.Edit||!Wp(n.key)||!t.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:n,cell:o}))return;const r=t.current.getRootDimensions();if(0===l.length||!r)return;const d=i.direction,f=t.current.getViewportPageSize(),h=e.field?t.current.getColumnIndex(e.field):0,m=l.findIndex((t=>t.id===e.id)),g=l.length-1,b=es(t).length-1;let v=!0;switch(n.key){case"ArrowDown":m<g&&s(h,p(m+1));break;case"ArrowUp":m>0?s(h,p(m-1)):a?c(h,n):u(h,n);break;case"ArrowRight":{const e=Zk({currentColIndex:h,firstColIndex:0,lastColIndex:b,direction:d});null!==e&&s(e,p(m),"rtl"===d?"left":"right");break}case"ArrowLeft":{const e=Yk({currentColIndex:h,firstColIndex:0,lastColIndex:b,direction:d});null!==e&&s(e,p(m),"rtl"===d?"right":"left");break}case"Tab":n.shiftKey&&h>0?s(h-1,p(m),"left"):!n.shiftKey&&h<b&&s(h+1,p(m),"right");break;case" ":{if(e.field===NO)break;const t=e.colDef;if(t&&"treeDataGroup"===t.type)break;!n.shiftKey&&m<g&&s(h,p(Math.min(m+f,g)));break}case"PageDown":m<g&&s(h,p(Math.min(m+f,g)));break;case"PageUp":{const e=Math.max(m-f,0);e!==m&&e>=0?s(h,p(e)):u(h,n);break}case"Home":n.ctrlKey||n.metaKey||n.shiftKey?s(0,p(0)):s(0,p(m));break;case"End":n.ctrlKey||n.metaKey||n.shiftKey?s(b,p(g)):s(b,p(m));break;default:v=!1}v&&n.preventDefault()}),[t,l,i.direction,s,p,a,c,u]),b=e.useCallback(((e,{event:t})=>" "!==t.key&&e),[]);GO(t,"canStartEditing",b),Lm(t,"columnHeaderKeyDown",f),Lm(t,"headerFilterKeyDown",h),Lm(t,"columnGroupHeaderKeyDown",m),Lm(t,"cellKeyDown",g)},Qk=(e,t)=>{var n,o,r;const i=Ie({},Qm(t.autoPageSize),null!=(n=t.paginationModel)?n:null==(o=t.initialState)||null==(r=o.pagination)?void 0:r.paginationModel);return Jm(i.pageSize,t.signature),Ie({},e,{pagination:{paginationModel:i}})},Jk=(e,t,n)=>o=>{var r;let i=o.paginationModel;const l=null!=(r=null==n?void 0:n.pageSize)?r:i.pageSize,a=Zm(e,l);n&&((null==n?void 0:n.page)!==i.page||(null==n?void 0:n.pageSize)!==i.pageSize)&&(i=n);const s=((e,t=0)=>0===t?e:Math.max(Math.min(e,t-1),0))(i.page,a);return s!==i.page&&(i=Ie({},i,{page:s})),Jm(i.pageSize,t),{paginationModel:i}},eS=(e,t)=>{var n,o;return Ie({},e,{preferencePanel:null!=(n=null==(o=t.initialState)?void 0:o.preferencePanel)?n:{open:!1}})},tS=["id","field"],nS=["id","field"],oS=Sa(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),rS=["id"],iS=["id"],lS=Sa(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),aS=e=>Ie({},e,{editRows:{}}),sS=(t,n)=>{((t,n)=>{const[o,r]=e.useState({}),i=e.useRef(o),l=e.useRef({}),{processRowUpdate:a,onProcessRowUpdateError:s,cellModesModel:u,onCellModesModelChange:c}=n,d=e=>(...t)=>{n.editMode===wu.Cell&&e(...t)},p=e.useCallback(((e,n)=>{const o=t.current.getCellParams(e,n);if(!t.current.isCellEditable(o))throw new Error(`MUI: The cell with id=${e} and field=${n} is not editable.`)}),[t]),f=e.useCallback(((e,n,o)=>{if(t.current.getCellMode(e,n)!==o)throw new Error(`MUI: The cell with id=${e} and field=${n} is not in ${o} mode.`)}),[t]),h=e.useCallback(((e,n)=>{if(!e.isEditable||e.cellMode===xu.Edit)return;const o=Ie({},e,{reason:ku.cellDoubleClick});t.current.publishEvent("cellEditStart",o,n)}),[t]),m=e.useCallback(((e,n)=>{if(e.cellMode===xu.View||t.current.getCellMode(e.id,e.field)===xu.View)return;const o=Ie({},e,{reason:Su.cellFocusOut});t.current.publishEvent("cellEditStop",o,n)}),[t]),g=e.useCallback(((e,n)=>{if(e.cellMode===xu.Edit){if(229===n.which)return;let o;if("Escape"===n.key?o=Su.escapeKeyDown:"Enter"===n.key?o=Su.enterKeyDown:"Tab"===n.key&&(o=n.shiftKey?Su.shiftTabKeyDown:Su.tabKeyDown,n.preventDefault()),o){const r=Ie({},e,{reason:o});t.current.publishEvent("cellEditStop",r,n)}}else if(e.isEditable){let o;if(!t.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:n,cellParams:e,editMode:"cell"}))return;if(Up(n)||(n.ctrlKey||n.metaKey)&&"v"===n.key?o=ku.printableKeyDown:"Enter"===n.key?o=ku.enterKeyDown:("Delete"===n.key||"Backspace"===n.key)&&(o=ku.deleteKeyDown),o){const r=Ie({},e,{reason:o,key:n.key});t.current.publishEvent("cellEditStart",r,n)}}}),[t]),b=e.useCallback((n=>{const{id:o,field:r,reason:i,key:l,colDef:a}=n,s={id:o,field:r};if(i===ku.printableKeyDown)if(e.version.startsWith("17"))s.deleteValue=!0;else{const e=a.valueParser?a.valueParser(l):l;s.initialValue=e}else i===ku.deleteKeyDown&&(s.deleteValue=!0);t.current.startCellEditMode(s)}),[t]),v=e.useCallback((e=>{const{id:n,field:o,reason:r}=e;let i;t.current.runPendingEditCellValueMutation(n,o),r===Su.enterKeyDown?i="below":r===Su.tabKeyDown?i="right":r===Su.shiftTabKeyDown&&(i="left");const l="escapeKeyDown"===r;t.current.stopCellEditMode({id:n,field:o,ignoreModifications:l,cellToFocusAfter:i})}),[t]);Lm(t,"cellDoubleClick",d(h)),Lm(t,"cellFocusOut",d(m)),Lm(t,"cellKeyDown",d(g)),Lm(t,"cellEditStart",d(b)),Lm(t,"cellEditStop",d(v)),$m(t,"cellEditStart",n.onCellEditStart),$m(t,"cellEditStop",n.onCellEditStop);const y=e.useCallback(((e,n)=>{const o=PO(t.current.state);return o[e]&&o[e][n]?xu.Edit:xu.View}),[t]),w=Dt((e=>{const o=e!==n.cellModesModel;c&&o&&c(e,{}),(!n.cellModesModel||!o)&&(r(e),i.current=e,t.current.publishEvent("cellModesModelChange",e))})),x=e.useCallback(((e,t,n)=>{const o=Ie({},i.current);if(null!==n)o[e]=Ie({},o[e],{[t]:Ie({},n)});else{const n=De(o[e],[t].map(WO));o[e]=n,0===Object.keys(o[e]).length&&delete o[e]}w(o)}),[w]),C=e.useCallback(((e,n,o)=>{t.current.setState((t=>{const r=Ie({},t.editRows);return null!==o?r[e]=Ie({},r[e],{[n]:Ie({},o)}):(delete r[e][n],0===Object.keys(r[e]).length&&delete r[e]),Ie({},t,{editRows:r})})),t.current.forceUpdate()}),[t]),O=e.useCallback((e=>{const{id:t,field:n}=e,o=De(e,tS);p(t,n),f(t,n,xu.View),x(t,n,Ie({mode:xu.Edit},o))}),[p,f,x]),k=Dt((e=>{const{id:n,field:o,deleteValue:r,initialValue:i}=e;let l=t.current.getCellValue(n,o),a=!1;(r||i)&&(l=r?"":i,a=!0),C(n,o,{value:l,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:a}),t.current.setCellFocus(n,o)})),S=e.useCallback((e=>{const{id:t,field:n}=e,o=De(e,nS);f(t,n,xu.Edit),x(t,n,Ie({mode:xu.View},o))}),[f,x]),E=Dt((async e=>{const{id:n,field:o,ignoreModifications:r,cellToFocusAfter:i="none"}=e;f(n,o,xu.Edit),t.current.runPendingEditCellValueMutation(n,o);const u=()=>{C(n,o,null),x(n,o,null),"none"!==i&&t.current.moveFocusToRelativeCell(n,o,i)};if(r)return void u();const c=PO(t.current.state),{error:d,isProcessingProps:p}=c[n][o];if(d||p)return l.current[n][o].mode=xu.Edit,void x(n,o,{mode:xu.Edit});const h=t.current.getRowWithUpdatedValuesFromCellEditing(n,o);if(a){const e=e=>{l.current[n][o].mode=xu.Edit,x(n,o,{mode:xu.Edit}),s?s(e):oS()};try{const o=t.current.getRow(n);Promise.resolve(a(h,o)).then((e=>{t.current.updateRows([e]),u()})).catch(e)}catch(t){e(t)}}else t.current.updateRows([h]),u()})),R={setCellEditingEditCellValue:e.useCallback((async e=>{var n,o;const{id:r,field:i,value:l,debounceMs:a,unstable_skipValueParser:s}=e;p(r,i),f(r,i,xu.Edit);const u=t.current.getColumn(i),c=t.current.getRow(r);let d=l;u.valueParser&&!s&&(d=u.valueParser(l,t.current.getCellParams(r,i)));let h=PO(t.current.state),m=Ie({},h[r][i],{value:d,changeReason:a?"debouncedSetEditCellValue":"setEditCellValue"});if(u.preProcessEditCellProps){const e=l!==h[r][i].value;m=Ie({},m,{isProcessingProps:!0}),C(r,i,m),m=await Promise.resolve(u.preProcessEditCellProps({id:r,row:c,props:m,hasChanged:e}))}return t.current.getCellMode(r,i)!==xu.View&&(h=PO(t.current.state),m=Ie({},m,{isProcessingProps:!1}),m.value=u.preProcessEditCellProps?h[r][i].value:d,C(r,i,m),h=PO(t.current.state),!(null!=(n=h[r])&&null!=(o=n[i])&&o.error))}),[t,p,f,C]),getRowWithUpdatedValuesFromCellEditing:e.useCallback(((e,n)=>{const o=t.current.getColumn(n),r=PO(t.current.state),i=t.current.getRow(e);if(!r[e]||!r[e][n])return t.current.getRow(e);const{value:l}=r[e][n];return o.valueSetter?o.valueSetter({value:l,row:i}):Ie({},i,{[n]:l})}),[t])};Mu(t,{getCellMode:y,startCellEditMode:O,stopCellEditMode:S},"public"),Mu(t,R,"private"),e.useEffect((()=>{u&&w(u)}),[u,w]),e.useEffect((()=>{const e=ds(t),n=l.current;l.current=Km(o),Object.entries(o).forEach((([t,o])=>{Object.entries(o).forEach((([o,r])=>{var i,l,a;const s=(null==(i=n[t])||null==(l=i[o])?void 0:l.mode)||xu.View,u=null!=(a=e[t])?a:t;r.mode===xu.Edit&&s===xu.View?k(Ie({id:u,field:o},r)):r.mode===xu.View&&s===xu.Edit&&E(Ie({id:u,field:o},r))}))}))}),[t,o,k,E])})(t,n),((t,n)=>{const[o,r]=e.useState({}),i=e.useRef(o),l=e.useRef({}),a=e.useRef(null),s=e.useRef(null),{processRowUpdate:u,onProcessRowUpdateError:c,rowModesModel:d,onRowModesModelChange:p}=n,f=e=>(...t)=>{n.editMode===wu.Row&&e(...t)},h=e.useCallback(((e,n)=>{const o=t.current.getCellParams(e,n);if(!t.current.isCellEditable(o))throw new Error(`MUI: The cell with id=${e} and field=${n} is not editable.`)}),[t]),m=e.useCallback(((e,n)=>{if(t.current.getRowMode(e)!==n)throw new Error(`MUI: The row with id=${e} is not in ${n} mode.`)}),[t]),g=e.useCallback(((e,n)=>{if(!e.isEditable||t.current.getRowMode(e.id)===Cu.Edit)return;const o=Ie({},t.current.getRowParams(e.id),{field:e.field,reason:Eu.cellDoubleClick});t.current.publishEvent("rowEditStart",o,n)}),[t]),b=e.useCallback((e=>{s.current=e}),[]),v=e.useCallback(((e,n)=>{e.isEditable&&t.current.getRowMode(e.id)!==Cu.View&&(s.current=null,a.current=setTimeout((()=>{var o;if(a.current=null,(null==(o=s.current)?void 0:o.id)!==e.id){if(!t.current.getRow(e.id)||t.current.getRowMode(e.id)===Cu.View)return;const o=Ie({},t.current.getRowParams(e.id),{field:e.field,reason:Ru.rowFocusOut});t.current.publishEvent("rowEditStop",o,n)}})))}),[t]);e.useEffect((()=>()=>{clearTimeout(a.current)}),[]);const y=e.useCallback(((e,n)=>{if(e.cellMode===Cu.Edit){if(229===n.which)return;let o;if("Escape"===n.key)o=Ru.escapeKeyDown;else if("Enter"===n.key)o=Ru.enterKeyDown;else if("Tab"===n.key){const r=ts(t).filter((n=>t.current.getColumn(n).type===RO||t.current.isCellEditable(t.current.getCellParams(e.id,n))));if(n.shiftKey?e.field===r[0]&&(o=Ru.shiftTabKeyDown):e.field===r[r.length-1]&&(o=Ru.tabKeyDown),n.preventDefault(),!o){const o=r.findIndex((t=>t===e.field)),i=r[n.shiftKey?o-1:o+1];t.current.setCellFocus(e.id,i)}}if(o){const r=Ie({},t.current.getRowParams(e.id),{reason:o,field:e.field});t.current.publishEvent("rowEditStop",r,n)}}else if(e.isEditable){let o;if(!t.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:n,cellParams:e,editMode:"row"}))return;if(Up(n)||(n.ctrlKey||n.metaKey)&&"v"===n.key?o=Eu.printableKeyDown:"Enter"===n.key?o=Eu.enterKeyDown:("Delete"===n.key||"Backspace"===n.key)&&(o=Eu.deleteKeyDown),o){const r=Ie({},t.current.getRowParams(e.id),{field:e.field,key:n.key,reason:o});t.current.publishEvent("rowEditStart",r,n)}}}),[t]),w=e.useCallback((n=>{const{id:o,field:r,reason:i,key:l,columns:a}=n,s={id:o,fieldToFocus:r};if(i===Eu.printableKeyDown)if(e.version.startsWith("17"))s.deleteValue=!!r;else{const e=a.find((e=>e.field===r));s.initialValue=e.valueParser?e.valueParser(l):l}else i===Eu.deleteKeyDown&&(s.deleteValue=!!r);t.current.startRowEditMode(s)}),[t]),x=e.useCallback((e=>{const{id:n,reason:o,field:r}=e;let i;t.current.runPendingEditCellValueMutation(n),o===Ru.enterKeyDown?i="below":o===Ru.tabKeyDown?i="right":o===Ru.shiftTabKeyDown&&(i="left");const l="escapeKeyDown"===o;t.current.stopRowEditMode({id:n,ignoreModifications:l,field:r,cellToFocusAfter:i})}),[t]);Lm(t,"cellDoubleClick",f(g)),Lm(t,"cellFocusIn",f(b)),Lm(t,"cellFocusOut",f(v)),Lm(t,"cellKeyDown",f(y)),Lm(t,"rowEditStart",f(w)),Lm(t,"rowEditStop",f(x)),$m(t,"rowEditStart",n.onRowEditStart),$m(t,"rowEditStop",n.onRowEditStop);const C=e.useCallback((e=>{if(n.editMode===wu.Cell)return Cu.View;const o=PO(t.current.state);return o[e]&&Object.keys(o[e]).length>0?Cu.Edit:Cu.View}),[t,n.editMode]),O=Dt((e=>{const o=e!==n.rowModesModel;p&&o&&p(e,{}),(!n.rowModesModel||!o)&&(r(e),i.current=e,t.current.publishEvent("rowModesModelChange",e))})),k=e.useCallback(((e,t)=>{const n=Ie({},i.current);null!==t?n[e]=Ie({},t):delete n[e],O(n)}),[O]),S=e.useCallback(((e,n)=>{t.current.setState((t=>{const o=Ie({},t.editRows);return null!==n?o[e]=n:delete o[e],Ie({},t,{editRows:o})})),t.current.forceUpdate()}),[t]),E=e.useCallback(((e,n,o)=>{t.current.setState((t=>{const r=Ie({},t.editRows);return null!==o?r[e]=Ie({},r[e],{[n]:Ie({},o)}):(delete r[e][n],0===Object.keys(r[e]).length&&delete r[e]),Ie({},t,{editRows:r})})),t.current.forceUpdate()}),[t]),R=e.useCallback((e=>{const{id:t}=e,n=De(e,rS);m(t,Cu.View),k(t,Ie({mode:Cu.Edit},n))}),[m,k]),T=Dt((e=>{const{id:n,fieldToFocus:o,deleteValue:r,initialValue:i}=e,l=Za(t).reduce(((e,l)=>{if(!t.current.getCellParams(n,l).isEditable)return e;let a=t.current.getCellValue(n,l),s=!1;return o===l&&(r||i)&&(a=r?"":i,s=!0),e[l]={value:a,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:s},e}),{});S(n,l),o&&t.current.setCellFocus(n,o)})),N=e.useCallback((e=>{const{id:t}=e,n=De(e,iS);m(t,Cu.Edit),k(t,Ie({mode:Cu.View},n))}),[m,k]),P=Dt((e=>{const{id:n,ignoreModifications:o,field:r,cellToFocusAfter:i="none"}=e;t.current.runPendingEditCellValueMutation(n);const a=()=>{"none"!==i&&r&&t.current.moveFocusToRelativeCell(n,r,i),S(n,null),k(n,null)};if(o)return void a();const s=PO(t.current.state),d=t.current.getRow(n);if(Object.values(s[n]).some((e=>e.isProcessingProps)))return void(l.current[n].mode=Cu.Edit);if(Object.values(s[n]).some((e=>e.error)))return l.current[n].mode=Cu.Edit,void k(n,{mode:Cu.Edit});const p=t.current.getRowWithUpdatedValuesFromRowEditing(n);if(u){const e=e=>{l.current[n].mode=Cu.Edit,k(n,{mode:Cu.Edit}),c?c(e):lS()};try{Promise.resolve(u(p,d)).then((e=>{t.current.updateRows([e]),a()})).catch(e)}catch(t){e(t)}}else t.current.updateRows([p]),a()})),M={setRowEditingEditCellValue:e.useCallback((e=>{const{id:n,field:o,value:r,debounceMs:i,unstable_skipValueParser:l}=e;h(n,o);const a=t.current.getColumn(o),s=t.current.getRow(n);let u=r;a.valueParser&&!l&&(u=a.valueParser(r,t.current.getCellParams(n,o)));let c=PO(t.current.state),d=Ie({},c[n][o],{value:u,changeReason:i?"debouncedSetEditCellValue":"setEditCellValue"});return a.preProcessEditCellProps||E(n,o,d),new Promise((e=>{const r=[];if(a.preProcessEditCellProps){const i=d.value!==c[n][o].value;d=Ie({},d,{isProcessingProps:!0}),E(n,o,d);const l=De(c[n],[o].map(WO)),p=Promise.resolve(a.preProcessEditCellProps({id:n,row:s,props:d,hasChanged:i,otherFieldsProps:l})).then((r=>{t.current.getRowMode(n)!==Cu.View?(c=PO(t.current.state),(r=Ie({},r,{isProcessingProps:!1})).value=a.preProcessEditCellProps?c[n][o].value:u,E(n,o,r)):e(!1)}));r.push(p)}Object.entries(c[n]).forEach((([i,l])=>{if(i===o)return;const a=t.current.getColumn(i);if(!a.preProcessEditCellProps)return;l=Ie({},l,{isProcessingProps:!0}),E(n,i,l),c=PO(t.current.state);const u=De(c[n],[i].map(WO)),d=Promise.resolve(a.preProcessEditCellProps({id:n,row:s,props:l,hasChanged:!1,otherFieldsProps:u})).then((o=>{t.current.getRowMode(n)!==Cu.View?(o=Ie({},o,{isProcessingProps:!1}),E(n,i,o)):e(!1)}));r.push(d)})),Promise.all(r).then((()=>{t.current.getRowMode(n)===Cu.Edit?(c=PO(t.current.state),e(!c[n][o].error)):e(!1)}))}))}),[t,h,E]),getRowWithUpdatedValuesFromRowEditing:e.useCallback((e=>{const n=PO(t.current.state),o=t.current.getRow(e);if(!n[e])return t.current.getRow(e);let r=Ie({},o);return Object.entries(n[e]).forEach((([e,n])=>{const o=t.current.getColumn(e);o.valueSetter?r=o.valueSetter({value:n.value,row:r}):r[e]=n.value})),r}),[t])};Mu(t,{getRowMode:C,startRowEditMode:R,stopRowEditMode:N},"public"),Mu(t,M,"private"),e.useEffect((()=>{d&&O(d)}),[d,O]),e.useEffect((()=>{const e=ds(t),n=l.current;l.current=Km(o),Object.entries(o).forEach((([t,o])=>{var r,i;const l=(null==(r=n[t])?void 0:r.mode)||Cu.View,a=null!=(i=e[t])?i:t;o.mode===Cu.Edit&&l===Cu.View?T(Ie({id:a},o)):o.mode===Cu.View&&l===Cu.Edit&&P(Ie({id:a},o))}))}),[t,o,T,P])})(t,n);const o=e.useRef({}),{isCellEditable:r}=n,i=e.useCallback((e=>!(su(e.rowNode)||!e.colDef.editable||!e.colDef.renderEditCell)&&(!r||r(e))),[r]);e.useEffect((()=>{const e=o.current;return()=>{Object.entries(e).forEach((([t,n])=>{Object.keys(n).forEach((n=>{const[o]=e[t][n];clearTimeout(o),delete e[t][n]}))}))}}),[]);const l=e.useCallback(((e,t)=>{if(o.current[e])if(t){if(o.current[e][t]){const[,n]=o.current[e][t];n()}}else Object.keys(o.current[e]).forEach((t=>{const[,n]=o.current[e][t];n()}))}),[]),a=e.useCallback((e=>{const{id:r,field:i,debounceMs:l}=e;return new Promise((a=>{((e,t,n,r)=>{if(!n)return void r();if(o.current[e]||(o.current[e]={}),o.current[e][t]){const[n]=o.current[e][t];clearTimeout(n)}const i=setTimeout((()=>{r(),delete o.current[e][t]}),n);o.current[e][t]=[i,()=>{const[n]=o.current[e][t];clearTimeout(n),r(),delete o.current[e][t]}]})(r,i,l,(async()=>{const o=n.editMode===wu.Row?t.current.setRowEditingEditCellValue:t.current.setCellEditingEditCellValue;if(t.current.getCellMode(r,i)===xu.Edit){const t=await o(e);a(t)}}))}))}),[t,n.editMode]),s=e.useCallback(((e,o)=>n.editMode===wu.Cell?t.current.getRowWithUpdatedValuesFromCellEditing(e,o):t.current.getRowWithUpdatedValuesFromRowEditing(e)),[t,n.editMode]),u=e.useCallback(((e,n)=>{var o,r;return null!=(o=null==(r=PO(t.current.state)[e])?void 0:r[n])?o:null}),[t]),c={runPendingEditCellValueMutation:l};Mu(t,{isCellEditable:i,setEditCellValue:a,getRowWithUpdatedValues:s,unstable_getEditCellMeta:u},"public"),Mu(t,c,"private")},uS=(e,t,n)=>(n.current.caches.rows=iu({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),Ie({},e,{rows:au({apiRef:n,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:null,previousTreeDepths:null})})),cS=(t,n)=>{if("production"!==process.env.NODE_ENV)try{Object.freeze(n.rows)}catch{}const o=zm(t,"useGridRows"),r=mO(t,n),i=e.useRef(Date.now()),l=e.useRef(null),a=e.useCallback((e=>{const n=cs(t)[e];if(n)return n;const o=t.current.getRowNode(e);return o&&su(o)?{[ou]:e}:null}),[t]),s=e.useMemo((()=>r.rows.reduce(((e,{id:t},n)=>(e[t]=n,e)),{})),[r.rows]),u=e.useCallback((({cache:e,throttle:o})=>{const r=()=>{l.current=null,i.current=Date.now(),t.current.setState((e=>Ie({},e,{rows:au({apiRef:t,rowCountProp:n.rowCount,loadingProp:n.loading,previousTree:ps(t),previousTreeDepths:hs(t)})}))),t.current.publishEvent("rowsSet"),t.current.forceUpdate()};if(l.current&&(clearTimeout(l.current),l.current=null),t.current.caches.rows=e,!o)return void r();const a=n.throttleRowsMs-(Date.now()-i.current);a>0?l.current=setTimeout(r,a):r()}),[n.throttleRowsMs,n.rowCount,n.loading,t]),c=e.useCallback((e=>{o.debug(`Updating all rows, new length ${e.length}`);const r=iu({rows:e,getRowId:n.getRowId,loading:n.loading,rowCount:n.rowCount}),i=t.current.caches.rows;r.rowsBeforePartialUpdates=i.rowsBeforePartialUpdates,u({cache:r,throttle:!0})}),[o,n.getRowId,n.loading,n.rowCount,u,t]),d=e.useCallback((e=>{if(n.signature===Fm.DataGrid&&e.length>1)throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n"));const o=[];e.forEach((e=>{const r=ru(e,n.getRowId,"A row was provided without id when calling updateRows():"),i=t.current.getRowNode(r);if("pinnedRow"===(null==i?void 0:i.type)){const n=t.current.caches.pinnedRows,o=n.idLookup[r];o&&(n.idLookup[r]=Ie({},o,e))}else o.push(e)}));const r=(({previousCache:e,getRowId:t,updates:n})=>{var o,r,i;if("full"===e.updates.type)throw new Error("MUI: Unable to prepare a partial update if a full update is not applied yet");const l=new Map;n.forEach((e=>{const n=ru(e,t,"A row was provided without id when calling updateRows():");l.has(n)?l.set(n,Ie({},l.get(n),e)):l.set(n,e)}));const a={type:"partial",actions:{insert:[...null!=(o=e.updates.actions.insert)?o:[]],modify:[...null!=(r=e.updates.actions.modify)?r:[]],remove:[...null!=(i=e.updates.actions.remove)?i:[]]},idToActionLookup:Ie({},e.updates.idToActionLookup)},s=Ie({},e.dataRowIdToModelLookup),u=Ie({},e.dataRowIdToIdLookup),c={insert:{},modify:{},remove:{}};l.forEach(((e,t)=>{const n=a.idToActionLookup[t];if("delete"===e._action){if("remove"===n||!s[t])return;return null!=n&&(c[n][t]=!0),a.actions.remove.push(t),delete s[t],void delete u[t]}const o=s[t];if(o)return"remove"===n?(c.remove[t]=!0,a.actions.modify.push(t)):null==n&&a.actions.modify.push(t),void(s[t]=Ie({},o,e));"remove"===n?(c.remove[t]=!0,a.actions.insert.push(t)):null==n&&a.actions.insert.push(t),s[t]=e,u[t]=t}));const d=Object.keys(c);for(let e=0;e<d.length;e+=1){const t=d[e],n=c[t];Object.keys(n).length>0&&(a.actions[t]=a.actions[t].filter((e=>!n[e])))}return{dataRowIdToModelLookup:s,dataRowIdToIdLookup:u,updates:a,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}})({updates:o,getRowId:n.getRowId,previousCache:t.current.caches.rows});u({cache:r,throttle:!0})}),[n.signature,n.getRowId,u,t]),p=e.useCallback((()=>{const e=gs(t),n=cs(t);return new Map(e.map((e=>{var t;return[e,null!=(t=n[e])?t:{}]})))}),[t]),f=e.useCallback((()=>as(t)),[t]),h=e.useCallback((()=>gs(t)),[t]),m=e.useCallback((e=>s[e]),[s]),g=e.useCallback(((e,n)=>{const o=t.current.getRowNode(e);if(!o)throw new Error(`MUI: No row with id #${e} found`);if("group"!==o.type)throw new Error("MUI: Only group nodes can be expanded or collapsed");const r=Ie({},o,{childrenExpanded:n});t.current.setState((t=>Ie({},t,{rows:Ie({},t.rows,{tree:Ie({},t.rows.tree,{[e]:r})})}))),t.current.forceUpdate(),t.current.publishEvent("rowExpansionChange",r)}),[t]),b=e.useCallback((e=>{var n;return null!=(n=ps(t)[e])?n:null}),[t]),v=e.useCallback((({skipAutoGeneratedRows:e=!0,groupId:n,applySorting:o,applyFiltering:r})=>{const i=ps(t);let l;if(o){const o=i[n];if(!o)return[];const r=xs(t);l=[];const a=r.findIndex((e=>e===n))+1;for(let t=a;t<r.length&&i[r[t]].depth>o.depth;t+=1){const n=r[t];(!e||!su(i[n]))&&l.push(n)}}else l=uu(i,n,e);if(r){const e=Rs(t);l=l.filter((t=>!1!==e[t]))}return l}),[t]),y=e.useCallback(((e,n)=>{const r=t.current.getRowNode(e);if(!r)throw new Error(`MUI: No row with id #${e} found`);if(r.parent!==nu)throw new Error("MUI: The row reordering do not support reordering of grouped rows yet");if("leaf"!==r.type)throw new Error("MUI: The row reordering do not support reordering of footer or grouping rows");t.current.setState((r=>{const i=ps(r,t.current.instanceId)[nu],l=i.children,a=l.findIndex((t=>t===e));if(-1===a||a===n)return r;o.debug(`Moving row ${e} to index ${n}`);const s=[...l];return s.splice(n,0,s.splice(a,1)[0]),Ie({},r,{rows:Ie({},r.rows,{tree:Ie({},r.rows.tree,{[nu]:Ie({},i,{children:s})})})})})),t.current.publishEvent("rowsSet")}),[t,o]),w={getRow:a,getRowModels:p,getRowsCount:f,getAllRowIds:h,setRows:c,updateRows:d,getRowNode:b,getRowIndexRelativeToVisibleRows:m,unstable_replaceRows:e.useCallback(((e,o)=>{if(n.signature===Fm.DataGrid&&o.length>1)throw new Error(["MUI: You can't replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n"));if(0===o.length)return;if(ms(t)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const r=Ie({},ps(t)),i=Ie({},cs(t)),l=Ie({},ds(t)),a=r[nu],s=[...a.children];for(let t=0;t<o.length;t+=1){const a=o[t],u=ru(a,n.getRowId,"A row was provided without id when calling replaceRows()."),[c]=s.splice(e+t,1,u);delete i[c],delete l[c],delete r[c];const d={id:u,depth:0,parent:nu,type:"leaf",groupingKey:null};i[u]=a,l[u]=u,r[u]=d}r[nu]=Ie({},a,{children:s});const u=s.filter((e=>"leaf"===r[e].type));t.current.caches.rows.dataRowIdToModelLookup=i,t.current.caches.rows.dataRowIdToIdLookup=l,t.current.setState((e=>Ie({},e,{rows:Ie({},e.rows,{dataRowIdToModelLookup:i,dataRowIdToIdLookup:l,dataRowIds:u,tree:r})}))),t.current.publishEvent("rowsSet")}),[t,n.signature,n.getRowId])},x={setRowIndex:y,setRowChildrenExpansion:g,getRowGroupChildren:v},C=e.useCallback((()=>{let e;o.info("Row grouping pre-processing have changed, regenerating the row tree"),e=t.current.caches.rows.rowsBeforePartialUpdates===n.rows?Ie({},t.current.caches.rows,{updates:{type:"full",rows:gs(t)}}):iu({rows:n.rows,getRowId:n.getRowId,loading:n.loading,rowCount:n.rowCount}),u({cache:e,throttle:!1})}),[o,t,n.rows,n.getRowId,n.loading,n.rowCount,u]),O=e.useCallback((e=>{"rowTreeCreation"===e&&C()}),[C]),k=e.useCallback((()=>{t.current.getActiveStrategy("rowTree")!==fs(t)&&C()}),[t,C]);Lm(t,"activeStrategyProcessorChange",O),Lm(t,"strategyAvailabilityChange",k);const S=e.useCallback((()=>{t.current.setState((e=>{const o=t.current.unstable_applyPipeProcessors("hydrateRows",{tree:ps(e,t.current.instanceId),treeDepths:hs(e,t.current.instanceId),dataRowIds:gs(e,t.current.instanceId),dataRowIdToModelLookup:cs(e,t.current.instanceId),dataRowIdToIdLookup:ds(e,t.current.instanceId)});return Ie({},e,{rows:Ie({},e.rows,o,{totalTopLevelRowCount:lu({tree:o.tree,rowCountProp:n.rowCount})})})})),t.current.publishEvent("rowsSet"),t.current.forceUpdate()}),[t,n.rowCount]);KO(t,"hydrateRows",S),Mu(t,w,"public"),Mu(t,x,n.signature===Fm.DataGrid?"private":"public"),e.useEffect((()=>()=>{null!==l.current&&clearTimeout(l.current)}),[]);const E=e.useRef(!0);e.useEffect((()=>{if(E.current)return void(E.current=!1);const e=t.current.caches.rows.rowsBeforePartialUpdates===n.rows,r=t.current.caches.rows.loadingPropBeforePartialUpdates===n.loading,i=t.current.caches.rows.rowCountPropBeforePartialUpdates===n.rowCount;if(e)return r||(t.current.setState((e=>Ie({},e,{rows:Ie({},e.rows,{loading:n.loading})}))),t.current.caches.rows.loadingPropBeforePartialUpdates=n.loading,t.current.forceUpdate()),void(i||(t.current.setState((e=>Ie({},e,{rows:Ie({},e.rows,{totalRowCount:Math.max(n.rowCount||0,e.rows.totalRowCount),totalTopLevelRowCount:Math.max(n.rowCount||0,e.rows.totalTopLevelRowCount)})}))),t.current.caches.rows.rowCountPropBeforePartialUpdates=n.rowCount,t.current.forceUpdate()));o.debug(`Updating all rows, new length ${n.rows.length}`),u({cache:iu({rows:n.rows,getRowId:n.getRowId,loading:n.loading,rowCount:n.rowCount}),throttle:!1})}),[n.rows,n.rowCount,n.getRowId,n.loading,o,u,t])},dS=e=>"full"===e.updates.type?(e=>{const t={[nu]:Ie({},{type:"group",id:nu,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null},{children:e})};for(let n=0;n<e.length;n+=1){const o=e[n];t[o]={id:o,depth:0,parent:nu,type:"leaf",groupingKey:null}}return{groupingName:ZO,tree:t,treeDepths:{0:e.length},dataRowIds:e}})(e.updates.rows):(({previousTree:e,actions:t})=>{const n=Ie({},e),o={};for(let e=0;e<t.remove.length;e+=1){const r=t.remove[e];o[r]=!0,delete n[r]}for(let e=0;e<t.insert.length;e+=1){const o=t.insert[e];n[o]={id:o,depth:0,parent:nu,type:"leaf",groupingKey:null}}const r=n[nu];let i=[...r.children,...t.insert];return Object.values(o).length&&(i=i.filter((e=>!o[e]))),n[nu]=Ie({},r,{children:i}),{groupingName:ZO,tree:n,treeDepths:{0:i.length},dataRowIds:i}})({previousTree:e.previousTree,actions:e.updates.actions}),pS=(e,t)=>null==e||Array.isArray(e)?e:t&&t[0]===e?t:[e],fS=(e,t)=>{var n;return Ie({},e,{rowSelection:t.rowSelection&&null!=(n=pS(t.rowSelectionModel))?n:[]})},hS={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorEquals:"Equals",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>1!==e?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"},mS=(t,n)=>{const o=(t=>{const{classes:n}=t;return e.useMemo((()=>en({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Ia,n)),[n])})({classes:n.classes}),r=e.useCallback((e=>{const r=Ie({},EO,{cellClassName:o.cellCheckbox,headerClassName:o.columnHeaderCheckbox,headerName:t.current.getLocaleText("checkboxSelectionHeaderName")}),i=n.checkboxSelection,l=null!=e.lookup[SO];return i&&!l?(e.lookup[SO]=r,e.orderedFields=[SO,...e.orderedFields]):!i&&l?(delete e.lookup[SO],e.orderedFields=e.orderedFields.filter((e=>e!==SO))):i&&l&&(e.lookup[SO]=Ie({},r,e.lookup[SO])),e}),[t,o,n.checkboxSelection]);GO(t,"hydrateColumns",r)},gS=(e,t)=>{var n,o,r,i;const l=null!=(n=null!=(o=t.sortModel)?o:null==(r=t.initialState)||null==(i=r.sorting)?void 0:i.sortModel)?n:[];return Ie({},e,{sorting:{sortModel:mg(l,t.disableMultipleColumnsSorting),sortedRows:[]}})};function bS(e){const{clientHeight:t,scrollTop:n,offsetHeight:o,offsetTop:r}=e,i=r+o;return o>t?r:i-t>n?i-t:r<n?r:void 0}const vS="test"===process.env.NODE_ENV;const yS=["style"],wS=["style"];function xS(e,t,n=0,o=t.length){if(t.length<=0)return-1;if(n>=o)return n;const r=n+Math.floor((o-n)/2);return e<=t[r]?xS(e,t,n,r):xS(e,t,r+1,o)}const CS=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:o,maxLastIndex:r})=>[Um(e-n,o,r),Um(t+n,o,r)],OS=(e,t)=>e===t||e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,kS={maxSize:3},SS=t=>{var n,o;const r=Ca(),i=wa(),l=_a(r,es),{ref:a,disableVirtualization:s,onRenderZonePositioning:u,renderZoneMinColumnIndex:c=0,renderZoneMaxColumnIndex:d=l.length,getRowProps:p}=t,f=mr(),h=_a(r,ns),m=_a(r,os),g=_a(r,Ls),b=_a(r,qs),v=_a(r,ug),y=_a(r,fg),w=mO(r,i),x=e.useRef(null),C=e.useRef(null),O=Ft(a,C),[k,S]=e.useState(null),E=e.useRef(k),R=e.useRef({top:0,left:0}),[T,N]=e.useState({width:null,height:null}),P=e.useRef(m),M=e.useRef(Object.create(null)),j=e.useRef(),_=e.useRef(),I=e.useRef($a(((e,t,n)=>e.slice(t,n)),kS)),D=e.useCallback((e=>{var t,n;const o=r.current.getLastMeasuredRowIndex();let i=o===1/0;null!=(t=w.range)&&t.lastRowIndex&&!i&&(i=o>=w.range.lastRowIndex);const l=Um(o-((null==(n=w.range)?void 0:n.firstRowIndex)||0),0,v.positions.length);return i||v.positions[l]>=e?xS(e,v.positions):function(e,t,n){let o=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=o,o*=2;return xS(e,t,Math.floor(n/2),Math.min(n,t.length))}(e,v.positions,l)}),[r,null==(n=w.range)?void 0:n.firstRowIndex,null==(o=w.range)?void 0:o.lastRowIndex,v.positions]),F=e.useCallback((()=>{if(s)return{firstRowIndex:0,lastRowIndex:w.rows.length,firstColumnIndex:0,lastColumnIndex:l.length};const{top:e,left:t}=R.current,n=Math.min(D(e),v.positions.length-1),o=i.autoHeight?n+w.rows.length:D(e+T.height);let a=!1,u=0,c=h.length;const[d,p]=CS({firstIndex:n,lastIndex:o,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:i.rowBuffer});for(let e=d;e<p&&!a;e+=1){const t=w.rows[e];a=r.current.rowHasAutoHeight(t.id)}return a||(u=xS(Math.abs(t),h),c=xS(Math.abs(t)+T.width,h)),{firstRowIndex:n,lastRowIndex:o,firstColumnIndex:u,lastColumnIndex:c}}),[s,D,v.positions.length,i.autoHeight,i.rowBuffer,w.rows,h,l.length,r,T]);Pt((()=>{s?x.current.style.transform="translate3d(0px, 0px, 0px)":(C.current.scrollLeft=0,C.current.scrollTop=0)}),[s]),Pt((()=>{N({width:C.current.clientWidth,height:C.current.clientHeight})}),[v.currentPageTotalHeight]);const A=e.useCallback((()=>{C.current&&N({width:C.current.clientWidth,height:C.current.clientHeight})}),[]);Lm(r,"debouncedResize",A);const L=e.useCallback((e=>{const[t,n]=CS({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:i.rowBuffer}),[o]=CS({firstIndex:e.firstColumnIndex,lastIndex:e.lastColumnIndex,minFirstIndex:c,maxLastIndex:d,buffer:i.columnBuffer}),l=kk({firstColumnToRender:o,apiRef:r,firstRowToRender:t,lastRowToRender:n,visibleRows:w.rows}),a="ltr"===f.direction?1:-1,s=ug(r.current.state).positions[t],p=a*ns(r)[l];x.current.style.transform=`translate3d(${p}px, ${s}px, 0px)`,"function"==typeof u&&u({top:s,left:p})}),[r,w.rows,u,c,d,i.columnBuffer,i.rowBuffer,f.direction]),V=e.useCallback((e=>{if(E.current&&OS(e,E.current))return void L(e);S(e),L(e);const[t,n]=CS({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:i.rowBuffer});r.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:t,lastRowToRender:n}),E.current=e}),[r,S,E,w.rows.length,i.rowBuffer,L]);Pt((()=>{if(null==T.width)return;const e=F();V(e);const{top:t,left:n}=R.current,o={top:t,left:n,renderContext:e};r.current.publishEvent("scrollPositionChange",o)}),[r,F,T.width,V]);const $=Dt((e=>{const{scrollTop:t,scrollLeft:n}=e.currentTarget;if(R.current.top=t,R.current.left=n,!E.current||t<0||"ltr"===f.direction&&n<0||"rtl"===f.direction&&n>0)return;const o=s?E.current:F(),l=Math.abs(o.firstRowIndex-E.current.firstRowIndex),a=Math.abs(o.lastRowIndex-E.current.lastRowIndex),u=Math.abs(o.firstColumnIndex-E.current.firstColumnIndex),c=Math.abs(o.lastColumnIndex-E.current.lastColumnIndex),d=l>=i.rowThreshold||a>=i.rowThreshold||u>=i.columnThreshold||c>=i.columnThreshold||P.current!==m;r.current.publishEvent("scrollPositionChange",{top:t,left:n,renderContext:d?o:E.current},e),d&&(se.flushSync((()=>{V(o)})),P.current=m)})),z=Dt((e=>{r.current.publishEvent("virtualScrollerWheel",{},e)})),q=Dt((e=>{r.current.publishEvent("virtualScrollerTouchMove",{},e)})),H=T.width&&m>=T.width,B=e.useMemo((()=>{const e=Math.max(v.currentPageTotalHeight,1);let t=!1;null!=C&&C.current&&e<=(null==C?void 0:C.current.clientHeight)&&(t=!0);const n={width:H?m:"auto",height:e,minHeight:t?"100%":"auto"};return i.autoHeight&&0===w.rows.length&&(n.height=du(r,i.rowHeight)),n}),[r,C,m,v.currentPageTotalHeight,H,i.autoHeight,i.rowHeight,w.rows.length]);e.useEffect((()=>{r.current.publishEvent("virtualScrollerContentSizeChange")}),[r,B]);const U=e.useMemo((()=>{const e={};return H||(e.overflowX="hidden"),i.autoHeight&&(e.overflowY="hidden"),e}),[H,i.autoHeight]),W=e.useCallback((()=>E.current),[]);return r.current.register("private",{getRenderContext:W}),{renderContext:k,updateRenderZonePosition:L,getRows:(e={renderContext:k})=>{var t;const{onRowRender:n,renderContext:o,minFirstColumn:a=c,maxLastColumn:u=d,availableSpace:f=T.width,rowIndexOffset:h=0,position:m="center"}=e;if(!o||null==f)return null;const v=s?0:i.rowBuffer,x=s?0:i.columnBuffer,[C,O]=CS({firstIndex:o.firstRowIndex,lastIndex:o.lastRowIndex,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:v}),S=[];if(e.rows)e.rows.forEach((e=>{S.push(e),r.current.calculateColSpan({rowId:e.id,minFirstColumn:a,maxLastColumn:u,columns:l})}));else{if(!w.range)return null;for(let e=C;e<O;e+=1){const t=w.rows[e];S.push(t),r.current.calculateColSpan({rowId:t.id,minFirstColumn:a,maxLastColumn:u,columns:l})}}const[E,R]=CS({firstIndex:o.firstColumnIndex,lastIndex:o.lastColumnIndex,minFirstIndex:a,maxLastIndex:u,buffer:x}),N=kk({firstColumnToRender:E,apiRef:r,firstRowToRender:C,lastRowToRender:O,visibleRows:w.rows}),P=I.current(l,N,R),D=(null==(t=i.slotProps)?void 0:t.row)||{},{style:F}=D,A=De(D,yS);(j.current!==p||_.current!==F)&&(M.current=Object.create(null));const L=[];for(let e=0;e<S.length;e+=1){var V;const{id:t,model:o}=S[e],a=C+e===w.rows.length-1,s=r.current.rowHasAutoHeight(t)?"auto":r.current.unstable_getRowHeight(t);let u;u=null!=y[t]&&r.current.isRowSelectable(t),n&&n(t);const c=null!==g&&g.id===t?g.field:null;let d=null;null!==b&&b.id===t&&(d="view"===r.current.getCellParams(t,b.field).cellMode?b.field:null);const v="function"==typeof p&&p(t,o)||{},{style:x}=v,O=De(v,wS);if(!M.current[t]){const e=Ie({},x,F);M.current[t]=e}L.push(Me.jsx(i.slots.row,Ie({row:o,rowId:t,rowHeight:s,focusedCell:c,tabbableCell:d,renderedColumns:P,visibleColumns:l,firstColumnToRender:N,lastColumnToRender:R,selected:u,index:h+((null==w||null==(V=w.range)?void 0:V.firstRowIndex)||0)+C+e,containerWidth:f,isLastVisible:a,position:m},O,A,{style:M.current[t]}),t))}return j.current=p,_.current=F,L},getRootProps:(e={})=>Ie({ref:O,onScroll:$,onWheel:z,onTouchMove:q},e,{style:e.style?Ie({},e.style,U):U}),getContentProps:({style:e}={})=>({style:e?Ie({},e,B):B}),getRenderZoneProps:()=>({ref:x})}};function ES(t){var n;const{groupId:o,width:r,depth:i,maxDepth:l,fields:a,height:s,colIndex:u,hasFocus:c,tabIndex:d,isLastColumn:p}=t,f=wa(),h=e.useRef(null),m=va(),g=_a(m,Zs),b=o?g[o]:{},{headerName:v=o??"",description:y="",headerAlign:w}=b;let x;const C=o&&(null==(n=g[o])?void 0:n.renderHeaderGroup),O=e.useMemo((()=>({groupId:o,headerName:v,description:y,depth:i,maxDepth:l,fields:a,colIndex:u,isLastColumn:p})),[o,v,y,i,l,a,u,p]);o&&C&&(x=C(O));const k=f.showColumnVerticalBorder,S=Ie({},t,{classes:f.classes,showColumnBorder:k,headerAlign:w,depth:i,isDragging:!1}),E=v??o,R=_t(),T=null===o?`empty-group-cell-${R}`:o,N=(e=>{const{classes:t,headerAlign:n,isDragging:o,showColumnBorder:r,groupId:i}=e;return en({root:["columnHeader","left"===n&&"columnHeader--alignLeft","center"===n&&"columnHeader--alignCenter","right"===n&&"columnHeader--alignRight",o&&"columnHeader--moving",r&&"columnHeader--showColumnBorder",r&&"columnHeader--withRightBorder","withBorderColor",null===i?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},Ia,t)})(S);e.useLayoutEffect((()=>{if(c){const e=h.current.querySelector('[tabindex="0"]')||h.current;null==e||e.focus()}}),[m,c]);const P=e.useCallback((e=>t=>{t.currentTarget.contains(t.target)&&m.current.publishEvent(e,O,t)}),[m,O]),M=e.useMemo((()=>({onKeyDown:P("columnGroupHeaderKeyDown"),onFocus:P("columnGroupHeaderFocus"),onBlur:P("columnGroupHeaderBlur")})),[P]),j="function"==typeof b.headerClassName?b.headerClassName(O):b.headerClassName;return Me.jsx(Mm,Ie({ref:h,classes:N,columnMenuOpen:!1,colIndex:u,height:s,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:d,isDraggable:!1,headerComponent:x,headerClassName:j,description:y,elementId:T,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:E,"aria-colspan":a.length,"data-fields":`|-${a.join("-|-")}-|`},M))}const RS=Ro("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})((()=>({display:"flex"})));const TS=["className"],NS=Ro("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({position:"relative",overflow:"hidden",display:"flex",alignItems:"center",boxSizing:"border-box",borderBottom:"1px solid",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),PS=e.forwardRef((function(e,t){const{className:n}=e,o=De(e,TS),r=wa(),i=(e=>{const{classes:t}=e;return en({root:["columnHeaders","withBorderColor"]},Ia,t)})(r);return Me.jsx(NS,Ie({ref:t,className:vo(n,i.root),ownerState:r},o))})),MS=["isDragging","className"],jS=Ro("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${Da.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})((()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${Da.columnHeaderDropZone} .${Da.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${Da["columnHeadersInner--scrollable"]} .${Da.columnHeader}:last-child`]:{borderRight:"none"}}))),_S=e.forwardRef((function(e,t){var n,o;const{isDragging:r,className:i}=e,l=De(e,MS),a=va(),s=Ie({},wa(),{isDragging:r,hasScrollX:null!=(n=null==(o=a.current.getRootDimensions())?void 0:o.hasScrollX)&&n}),u=(e=>{const{isDragging:t,hasScrollX:n,classes:o}=e;return en({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},Ia,o)})(s);return Me.jsx(jS,Ie({ref:t,className:vo(i,u.root),ownerState:s},l))})),IS=["innerRef","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnPositions","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","densityFactor","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],DS=e.forwardRef((function(t,n){const{innerRef:o,visibleColumns:r,sortColumnLookup:i,filterColumnLookup:l,columnPositions:a,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:u,columnHeaderFocus:c,columnGroupHeaderFocus:d,densityFactor:p,headerGroupingMaxDepth:f,columnMenuState:h,columnVisibility:m,columnGroupsHeaderStructure:g,hasOtherElementInTabSequence:b}=t,v=De(t,IS),{isDragging:y,getRootProps:w,getInnerProps:x,getColumnHeaders:C,getColumnGroupHeaders:O}=(t=>{const{innerRef:n,minColumnIndex:o=0,visibleColumns:r,sortColumnLookup:i,filterColumnLookup:l,columnPositions:a,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:u,columnHeaderFocus:c,columnGroupHeaderFocus:d,densityFactor:p,headerGroupingMaxDepth:f,columnMenuState:h,columnVisibility:m,columnGroupsHeaderStructure:g,hasOtherElementInTabSequence:b}=t,v=fo(),[y,w]=e.useState(""),[x,C]=e.useState(""),O=Ca(),k=wa(),S=e.useRef(null),E=Ft(n,S),[R,T]=e.useState(null),N=e.useRef(R),P=e.useRef(0),M=mO(O,k),j=Ek(O,k.columnHeaderHeight),_=Math.floor(k.columnHeaderHeight*p),I=e.useCallback((e=>{R&&e&&OS(R,e)||T(e)}),[R]);e.useEffect((()=>{O.current.columnHeadersContainerElementRef.current.scrollLeft=0}),[O]);const D=e.useRef($a(Sk,{equalityCheck:(e,t)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every((n=>e[n]===t[n]))})),F=e.useCallback((e=>{const[t,n]=CS({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:M.rows.length,buffer:k.rowBuffer}),r=D.current({firstColumnIndex:e.firstColumnIndex,minColumnIndex:o,columnBuffer:k.columnBuffer,firstRowToRender:t,lastRowToRender:n,apiRef:O,visibleRows:M.rows}),i="ltr"===v.direction?1:-1,l=r>0?P.current-i*a[r]:P.current;S.current.style.transform=`translate3d(${-l}px, 0px, 0px)`}),[a,o,k.columnBuffer,O,M.rows,k.rowBuffer,v.direction]);e.useLayoutEffect((()=>{R&&F(R)}),[R,F]);const A=e.useCallback((({left:e,renderContext:t=null},n)=>{var o,r;if(!S.current||P.current===e&&(null==(o=N.current)?void 0:o.firstColumnIndex)===(null==t?void 0:t.firstColumnIndex)&&(null==(r=N.current)?void 0:r.lastColumnIndex)===(null==t?void 0:t.lastColumnIndex))return;P.current=e;let i=!1;t===N.current&&N.current?i=!0:(function(e){return!!e.target}(n)?(se.flushSync((()=>{I(t)})),i=!0):I(t),N.current=t),t&&i&&F(t)}),[F,I]),L=e.useCallback((e=>C(e.field)),[]),V=e.useCallback((()=>C("")),[]),$=e.useCallback((e=>w(e.field)),[]),z=e.useCallback((()=>w("")),[]);Lm(O,"columnResizeStart",L),Lm(O,"columnResizeStop",V),Lm(O,"columnHeaderDragStart",$),Lm(O,"columnHeaderDragEnd",z),Lm(O,"scrollPositionChange",A);const q=e=>{const{renderContext:t=R,minFirstColumn:n=o,maxLastColumn:i=r.length}=e||{};if(!t)return null;const[l,a]=CS({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:M.rows.length,buffer:k.rowBuffer}),s=D.current({firstColumnIndex:t.firstColumnIndex,minColumnIndex:n,columnBuffer:k.columnBuffer,apiRef:O,firstRowToRender:l,lastRowToRender:a,visibleRows:M.rows}),u=Math.min(t.lastColumnIndex+k.columnBuffer,i);return{renderedColumns:r.slice(s,u),firstColumnToRender:s,lastColumnToRender:u,minFirstColumn:n,maxLastColumn:i}},H={minHeight:j,maxHeight:j,lineHeight:`${_}px`};return{renderContext:R,getColumnHeaders:(e,t={})=>{const n=q(e);if(null==n)return null;const{renderedColumns:o,firstColumnToRender:r}=n,a=[];for(let e=0;e<o.length;e+=1){const n=o[e],u=r+e,d=0===u,p=null!==s&&s.field===n.field||d&&!b?0:-1,f=null!==c&&c.field===n.field,m=h.open&&h.field===n.field;a.push(Me.jsx(jm,Ie({},i[n.field],{columnMenuOpen:m,filterItemsCounter:l[n.field]&&l[n.field].length,headerHeight:_,isDragging:n.field===y,colDef:n,colIndex:u,isResizing:x===n.field,hasFocus:f,tabIndex:p},t),n.field))}return Me.jsx(RS,{role:"row","aria-rowindex":f+1,ownerState:k,children:a})},getColumnsToRender:q,getColumnGroupHeaders:e=>{if(0===f)return null;const t=q(e);if(null==t||0===t.renderedColumns.length)return null;const{firstColumnToRender:n,lastColumnToRender:o}=t,i=[],l=[];for(let e=0;e<f;e+=1){var a,s;const t=g[e],i=r[n].field,c=null!=(a=O.current.unstable_getColumnGroupPath(i)[e])?a:null,p=t.findIndex((({groupId:e,columnFields:t})=>e===c&&t.includes(i))),f=r[o-1].field,h=null!=(s=O.current.unstable_getColumnGroupPath(f)[e])?s:null,b=t.findIndex((({groupId:e,columnFields:t})=>e===h&&t.includes(f))),v=t.slice(p,b+1).map((e=>Ie({},e,{columnFields:e.columnFields.filter((e=>!1!==m[e]))}))).filter((e=>e.columnFields.length>0)),y=v[0].columnFields.indexOf(i),w=v[0].columnFields.slice(0,y).reduce(((e,t)=>{var n;return e+(null!=(n=O.current.getColumn(t).computedWidth)?n:0)}),0);let x=n;const C=v.map((({groupId:t,columnFields:n})=>{const o=null!==d&&d.depth===e&&n.includes(d.field),r=null!==u&&u.depth===e&&n.includes(u.field)?0:-1,i={groupId:t,width:n.reduce(((e,t)=>e+O.current.getColumn(t).computedWidth),0),fields:n,colIndex:x,hasFocus:o,tabIndex:r};return x+=n.length,i}));l.push({leftOverflow:w,elements:C})}return l.forEach(((e,t)=>{i.push(Me.jsx(RS,{style:{height:`${_}px`,transform:`translateX(-${e.leftOverflow}px)`},role:"row","aria-rowindex":t+1,ownerState:k,children:e.elements.map((({groupId:e,width:n,fields:o,colIndex:i,hasFocus:a,tabIndex:s},u)=>Me.jsx(ES,{groupId:e,width:n,fields:o,colIndex:i,depth:t,isLastColumn:i===r.length-o.length,maxDepth:l.length,height:_,hasFocus:a,tabIndex:s},u)))},t))})),i},isDragging:!!y,getRootProps:(e={})=>Ie({style:H},e),getInnerProps:()=>({ref:E,role:"rowgroup"}),headerHeight:_}})({innerRef:o,visibleColumns:r,sortColumnLookup:i,filterColumnLookup:l,columnPositions:a,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:u,columnHeaderFocus:c,columnGroupHeaderFocus:d,densityFactor:p,headerGroupingMaxDepth:f,columnMenuState:h,columnVisibility:m,columnGroupsHeaderStructure:g,hasOtherElementInTabSequence:b});return Me.jsx(PS,Ie({ref:n},w(v),{children:Me.jsxs(_S,Ie({isDragging:y},x(),{children:[O(),C()]}))}))}));"production"!==process.env.NODE_ENV&&(DS.propTypes={columnGroupHeaderFocus:oe.shape({depth:oe.number.isRequired,field:oe.string.isRequired}),columnGroupHeaderTabIndexState:oe.shape({depth:oe.number.isRequired,field:oe.string.isRequired}),columnGroupsHeaderStructure:oe.arrayOf(oe.arrayOf(oe.shape({columnFields:oe.arrayOf(oe.string).isRequired,groupId:oe.string}))).isRequired,columnHeaderFocus:oe.shape({field:oe.string.isRequired}),columnHeaderTabIndexState:oe.shape({field:oe.string.isRequired}),columnMenuState:oe.shape({field:oe.string,open:oe.bool.isRequired}).isRequired,columnPositions:oe.arrayOf(oe.number).isRequired,columnVisibility:oe.object.isRequired,densityFactor:oe.number.isRequired,filterColumnLookup:oe.object.isRequired,hasOtherElementInTabSequence:oe.bool.isRequired,headerGroupingMaxDepth:oe.number.isRequired,innerRef:oe.oneOfType([oe.func,oe.shape({current:oe.object})]),minColumnIndex:oe.number,sortColumnLookup:oe.object.isRequired,visibleColumns:oe.arrayOf(oe.object).isRequired});const FS=bu(DS),AS=e.forwardRef((function(e,t){const n=va().current.getLocaleText("noResultsOverlayLabel");return Me.jsx(am,Ie({ref:t},e,{children:n}))})),LS=Fg(Me.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),VS=Fg(Me.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),$S=Fg(Me.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function zS(e){return ln("MuiCheckbox",e)}const qS=an("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),HS=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],BS=yp(_b,{shouldForwardProp:e=>bp(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${Ot(n.color)}`]]}})((({theme:e,ownerState:t})=>Ie({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Io("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${qS.checked}, &.${qS.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${qS.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),US=Me.jsx(VS,{}),WS=Me.jsx(LS,{}),GS=Me.jsx($S,{}),KS=e.forwardRef((function(t,n){var o,r;const i=wp({props:t,name:"MuiCheckbox"}),{checkedIcon:l=US,color:a="primary",icon:s=WS,indeterminate:u=!1,indeterminateIcon:c=GS,inputProps:d,size:p="medium",className:f}=i,h=De(i,HS),m=u?c:s,g=u?c:l,b=Ie({},i,{color:a,indeterminate:u,size:p}),v=(e=>{const{classes:t,indeterminate:n,color:o}=e;return Ie({},t,en({root:["root",n&&"indeterminate",`color${Ot(o)}`]},zS,t))})(b);return Me.jsx(BS,Ie({type:"checkbox",inputProps:Ie({"data-indeterminate":u},d),icon:e.cloneElement(m,{fontSize:null!=(o=m.props.fontSize)?o:p}),checkedIcon:e.cloneElement(g,{fontSize:null!=(r=g.props.fontSize)?r:p}),ownerState:b,ref:n,className:vo(v.root,f)},h,{classes:v}))}));"production"!==process.env.NODE_ENV&&(KS.propTypes={checked:oe.bool,checkedIcon:oe.node,classes:oe.object,className:oe.string,color:oe.oneOfType([oe.oneOf(["default","primary","secondary","error","info","success","warning"]),oe.string]),defaultChecked:oe.bool,disabled:oe.bool,disableRipple:oe.bool,icon:oe.node,id:oe.string,indeterminate:oe.bool,indeterminateIcon:oe.node,inputProps:oe.object,inputRef:Ct,onChange:oe.func,required:oe.bool,size:oe.oneOfType([oe.oneOf(["medium","small"]),oe.string]),sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object]),value:oe.any});const YS=KS;function ZS(e){return ln("MuiButton",e)}const XS=an("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),QS=e.createContext({});"production"!==process.env.NODE_ENV&&(QS.displayName="ButtonGroupContext");const JS=QS,eE=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],tE=e=>Ie({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),nE=yp(nh,{shouldForwardProp:e=>bp(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Ot(n.color)}`],t[`size${Ot(n.size)}`],t[`${n.variant}Size${Ot(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,o;const r="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Ie({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Ie({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Io(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Io(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Io(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Ie({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${XS.focusVisible}`]:Ie({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${XS.disabled}`]:Ie({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Io(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(o=e.palette).getContrastText)?void 0:n.call(o,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:r,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${XS.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${XS.disabled}`]:{boxShadow:"none"}})),oE=yp("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Ot(n.size)}`]]}})((({ownerState:e})=>Ie({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},tE(e)))),rE=yp("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Ot(n.size)}`]]}})((({ownerState:e})=>Ie({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},tE(e)))),iE=e.forwardRef((function(t,n){const o=e.useContext(JS),r=wp({props:Jt(o,t),name:"MuiButton"}),{children:i,color:l="primary",component:a="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=r,y=De(r,eE),w=Ie({},r,{color:l,component:a,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),x=(e=>{const{color:t,disableElevation:n,fullWidth:o,size:r,variant:i,classes:l}=e;return Ie({},l,en({root:["root",i,`${i}${Ot(t)}`,`size${Ot(r)}`,`${i}Size${Ot(r)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",o&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Ot(r)}`],endIcon:["endIcon",`iconSize${Ot(r)}`]},ZS,l))})(w),C=g&&Me.jsx(oE,{className:x.startIcon,ownerState:w,children:g}),O=p&&Me.jsx(rE,{className:x.endIcon,ownerState:w,children:p});return Me.jsxs(nE,Ie({ownerState:w,className:vo(o.className,x.root,s),component:a,disabled:u,focusRipple:!d,focusVisibleClassName:vo(x.focusVisible,f),ref:n,type:b},y,{classes:x,children:[C,i,O]}))}));"production"!==process.env.NODE_ENV&&(iE.propTypes={children:oe.node,classes:oe.object,className:oe.string,color:oe.oneOfType([oe.oneOf(["inherit","primary","secondary","success","error","info","warning"]),oe.string]),component:oe.elementType,disabled:oe.bool,disableElevation:oe.bool,disableFocusRipple:oe.bool,disableRipple:oe.bool,endIcon:oe.node,focusVisibleClassName:oe.string,fullWidth:oe.bool,href:oe.string,size:oe.oneOfType([oe.oneOf(["small","medium","large"]),oe.string]),startIcon:oe.node,sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object]),type:oe.oneOfType([oe.oneOf(["button","reset","submit"]),oe.string]),variant:oe.oneOfType([oe.oneOf(["contained","outlined","text"]),oe.string])});const lE=iE;function aE(e){return ln("MuiInputAdornment",e)}const sE=an("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var uE;const cE=["children","className","component","disablePointerEvents","disableTypography","position","variant"],dE=yp("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Ot(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>Ie({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${sE.positionStart}&:not(.${sE.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),pE=e.forwardRef((function(t,n){const o=wp({props:t,name:"MuiInputAdornment"}),{children:r,className:i,component:l="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:u,variant:c}=o,d=De(o,cE),p=gp()||{};let f=c;c&&p.variant&&"production"!==process.env.NODE_ENV&&c===p.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),p&&!f&&(f=p.variant);const h=Ie({},o,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:a,position:u,variant:f}),m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:o,position:r,size:i,variant:l}=e;return en({root:["root",n&&"disablePointerEvents",r&&`position${Ot(r)}`,l,o&&"hiddenLabel",i&&`size${Ot(i)}`]},aE,t)})(h);return Me.jsx(mp.Provider,{value:null,children:Me.jsx(dE,Ie({as:l,ownerState:h,className:vo(m.root,i),ref:n},d,{children:"string"!=typeof r||s?Me.jsxs(e.Fragment,{children:["start"===u?uE||(uE=Me.jsx("span",{className:"notranslate",children:""})):null,r]}):Me.jsx(Ch,{color:"text.secondary",children:r})}))})}));"production"!==process.env.NODE_ENV&&(pE.propTypes={children:oe.node,classes:oe.object,className:oe.string,component:oe.elementType,disablePointerEvents:oe.bool,disableTypography:oe.bool,position:oe.oneOf(["end","start"]).isRequired,sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object]),variant:oe.oneOf(["filled","outlined","standard"])});const fE=pE;function hE(e){return ln("MuiTooltip",e)}const mE=an("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),gE=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function bE(e){return Math.round(1e5*e)/1e5}const vE=yp(Tf,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((({theme:e,ownerState:t,open:n})=>Ie({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${mE.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${mE.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${mE.arrow}`]:Ie({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${mE.arrow}`]:Ie({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),yE=yp("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Ot(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>Ie({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Io(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${bE(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${mE.popper}[data-popper-placement*="left"] &`]:Ie({transformOrigin:"right center"},t.isRtl?Ie({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):Ie({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${mE.popper}[data-popper-placement*="right"] &`]:Ie({transformOrigin:"left center"},t.isRtl?Ie({marginRight:"14px"},t.touch&&{marginRight:"24px"}):Ie({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${mE.popper}[data-popper-placement*="top"] &`]:Ie({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${mE.popper}[data-popper-placement*="bottom"] &`]:Ie({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})}))),wE=yp("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Io(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let xE=!1,CE=null,OE={x:0,y:0};function kE(e,t){return n=>{t&&t(n),e(n)}}const SE=e.forwardRef((function(t,n){var o,r,i,l,a,s,u,c,d,p,f,h,m,g,b,v,y,w,x;const C=wp({props:t,name:"MuiTooltip"}),{arrow:O=!1,children:k,components:S={},componentsProps:E={},describeChild:R=!1,disableFocusListener:T=!1,disableHoverListener:N=!1,disableInteractive:P=!1,disableTouchListener:M=!1,enterDelay:j=100,enterNextDelay:_=0,enterTouchDelay:I=700,followCursor:D=!1,id:F,leaveDelay:A=0,leaveTouchDelay:L=1500,onClose:V,onOpen:$,open:z,placement:q="bottom",PopperComponent:H,PopperProps:B={},slotProps:U={},slots:W={},title:G,TransitionComponent:K=yf,TransitionProps:Y}=C,Z=De(C,gE),X=e.isValidElement(k)?k:Me.jsx("span",{children:k}),Q=mr(),J="rtl"===Q.direction,[ee,te]=e.useState(),[ne,oe]=e.useState(null),re=e.useRef(!1),ie=P||D,le=e.useRef(),ae=e.useRef(),se=e.useRef(),ue=e.useRef(),[ce,de]=It({controlled:z,default:!1,name:"Tooltip",state:"open"});let pe=ce;if("production"!==process.env.NODE_ENV){const{current:t}=e.useRef(void 0!==z);e.useEffect((()=>{ee&&ee.disabled&&!t&&""!==G&&"button"===ee.tagName.toLowerCase()&&console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join("\n"))}),[G,ee,t])}const fe=_t(F),he=e.useRef(),me=e.useCallback((()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),clearTimeout(ue.current)}),[]);e.useEffect((()=>()=>{clearTimeout(le.current),clearTimeout(ae.current),clearTimeout(se.current),me()}),[me]);const ge=e=>{clearTimeout(CE),xE=!0,de(!0),$&&!pe&&$(e)},be=Dt((e=>{clearTimeout(CE),CE=setTimeout((()=>{xE=!1}),800+A),de(!1),V&&pe&&V(e),clearTimeout(le.current),le.current=setTimeout((()=>{re.current=!1}),Q.transitions.duration.shortest)})),ve=e=>{re.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),clearTimeout(ae.current),clearTimeout(se.current),j||xE&&_?ae.current=setTimeout((()=>{ge(e)}),xE?_:j):ge(e))},ye=e=>{clearTimeout(ae.current),clearTimeout(se.current),se.current=setTimeout((()=>{be(e)}),A)},{isFocusVisibleRef:we,onBlur:xe,onFocus:Ce,ref:Oe}=Ut(),[,ke]=e.useState(!1),Se=e=>{xe(e),!1===we.current&&(ke(!1),ye(e))},Ee=e=>{ee||te(e.currentTarget),Ce(e),!0===we.current&&(ke(!0),ve(e))},Re=e=>{re.current=!0;const t=X.props;t.onTouchStart&&t.onTouchStart(e)},Te=ve,Ne=ye;e.useEffect((()=>{if(pe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){("Escape"===e.key||"Esc"===e.key)&&be(e)}}),[be,pe]);const Pe=Ft(X.ref,Oe,te,n);!G&&0!==G&&(pe=!1);const je=e.useRef(),_e={},Fe="string"==typeof G;R?(_e.title=pe||!Fe||N?null:G,_e["aria-describedby"]=pe?fe:null):(_e["aria-label"]=Fe?G:null,_e["aria-labelledby"]=pe&&!Fe?fe:null);const Ae=Ie({},_e,Z,X.props,{className:vo(Z.className,X.props.className),onTouchStart:Re,ref:Pe},D?{onMouseMove:e=>{const t=X.props;t.onMouseMove&&t.onMouseMove(e),OE={x:e.clientX,y:e.clientY},je.current&&je.current.update()}}:{});"production"!==process.env.NODE_ENV&&(Ae["data-mui-internal-clone-element"]=!0,e.useEffect((()=>{ee&&!ee.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join("\n"))}),[ee]));const Le={};M||(Ae.onTouchStart=e=>{Re(e),clearTimeout(se.current),clearTimeout(le.current),me(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ue.current=setTimeout((()=>{document.body.style.WebkitUserSelect=he.current,ve(e)}),I)},Ae.onTouchEnd=e=>{X.props.onTouchEnd&&X.props.onTouchEnd(e),me(),clearTimeout(se.current),se.current=setTimeout((()=>{be(e)}),L)}),N||(Ae.onMouseOver=kE(Te,Ae.onMouseOver),Ae.onMouseLeave=kE(Ne,Ae.onMouseLeave),ie||(Le.onMouseOver=Te,Le.onMouseLeave=Ne)),T||(Ae.onFocus=kE(Ee,Ae.onFocus),Ae.onBlur=kE(Se,Ae.onBlur),ie||(Le.onFocus=Ee,Le.onBlur=Se)),"production"!==process.env.NODE_ENV&&X.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${X.props.title}\` or the Tooltip component.`].join("\n"));const Ve=e.useMemo((()=>{var e;let t=[{name:"arrow",enabled:!!ne,options:{element:ne,padding:4}}];return null!=(e=B.popperOptions)&&e.modifiers&&(t=t.concat(B.popperOptions.modifiers)),Ie({},B.popperOptions,{modifiers:t})}),[ne,B]),$e=Ie({},C,{isRtl:J,arrow:O,disableInteractive:ie,placement:q,PopperComponentProp:H,touch:re.current}),ze=(e=>{const{classes:t,disableInteractive:n,arrow:o,touch:r,placement:i}=e;return en({popper:["popper",!n&&"popperInteractive",o&&"popperArrow"],tooltip:["tooltip",o&&"tooltipArrow",r&&"touch",`tooltipPlacement${Ot(i.split("-")[0])}`],arrow:["arrow"]},hE,t)})($e),qe=null!=(o=null!=(r=W.popper)?r:S.Popper)?o:vE,He=null!=(i=null!=(l=null!=(a=W.transition)?a:S.Transition)?l:K)?i:yf,Be=null!=(s=null!=(u=W.tooltip)?u:S.Tooltip)?s:yE,Ue=null!=(c=null!=(d=W.arrow)?d:S.Arrow)?c:wE,We=Qu(qe,Ie({},B,null!=(p=U.popper)?p:E.popper,{className:vo(ze.popper,null==B?void 0:B.className,null==(f=null!=(h=U.popper)?h:E.popper)?void 0:f.className)}),$e),Ge=Qu(He,Ie({},Y,null!=(m=U.transition)?m:E.transition),$e),Ke=Qu(Be,Ie({},null!=(g=U.tooltip)?g:E.tooltip,{className:vo(ze.tooltip,null==(b=null!=(v=U.tooltip)?v:E.tooltip)?void 0:b.className)}),$e),Ye=Qu(Ue,Ie({},null!=(y=U.arrow)?y:E.arrow,{className:vo(ze.arrow,null==(w=null!=(x=U.arrow)?x:E.arrow)?void 0:w.className)}),$e);return Me.jsxs(e.Fragment,{children:[e.cloneElement(X,Ae),Me.jsx(qe,Ie({as:H??Tf,placement:q,anchorEl:D?{getBoundingClientRect:()=>({top:OE.y,left:OE.x,right:OE.x,bottom:OE.y,width:0,height:0})}:ee,popperRef:je,open:!!ee&&pe,id:fe,transition:!0},Le,We,{popperOptions:Ve,children:({TransitionProps:e})=>Me.jsx(He,Ie({timeout:Q.transitions.duration.shorter},e,Ge,{children:Me.jsxs(Be,Ie({},Ke,{children:[G,O?Me.jsx(Ue,Ie({},Ye,{ref:oe})):null]}))}))}))]})}));"production"!==process.env.NODE_ENV&&(SE.propTypes={arrow:oe.bool,children:st.isRequired,classes:oe.object,className:oe.string,components:oe.shape({Arrow:oe.elementType,Popper:oe.elementType,Tooltip:oe.elementType,Transition:oe.elementType}),componentsProps:oe.shape({arrow:oe.object,popper:oe.object,tooltip:oe.object,transition:oe.object}),describeChild:oe.bool,disableFocusListener:oe.bool,disableHoverListener:oe.bool,disableInteractive:oe.bool,disableTouchListener:oe.bool,enterDelay:oe.number,enterNextDelay:oe.number,enterTouchDelay:oe.number,followCursor:oe.bool,id:oe.string,leaveDelay:oe.number,leaveTouchDelay:oe.number,onClose:oe.func,onOpen:oe.func,open:oe.bool,placement:oe.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:oe.elementType,PopperProps:oe.object,slotProps:oe.shape({arrow:oe.object,popper:oe.object,tooltip:oe.object,transition:oe.object}),slots:oe.shape({arrow:oe.elementType,popper:oe.elementType,tooltip:oe.elementType,transition:oe.elementType}),sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object]),title:oe.node,TransitionComponent:oe.elementType,TransitionProps:oe.object});const EE=SE,RE=["sortingOrder"],TE=e.memo((function(e){const{sortingOrder:t}=e,n=De(e,RE),o=wa(),[r]=t,i="asc"===r?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return i?Me.jsx(i,Ie({},n)):null})),NE=["native"];const PE=Ie({},{BooleanCellTrueIcon:nb,BooleanCellFalseIcon:Zg,ColumnMenuIcon:Yg,OpenFilterButtonIcon:zg,FilterPanelDeleteIcon:Zg,ColumnFilteredIcon:qg,ColumnSelectorIcon:Bg,ColumnUnsortedIcon:TE,ColumnSortedAscendingIcon:Ag,ColumnSortedDescendingIcon:Lg,ColumnResizeIcon:Ug,DensityCompactIcon:Wg,DensityStandardIcon:Gg,DensityComfortableIcon:Kg,ExportIcon:tb,MoreActionsIcon:ob,TreeDataCollapseIcon:$g,TreeDataExpandIcon:Vg,GroupingCriteriaCollapseIcon:$g,GroupingCriteriaExpandIcon:Vg,DetailPanelExpandIcon:Xg,DetailPanelCollapseIcon:Qg,RowReorderIcon:eb,QuickFilterIcon:Hg,QuickFilterClearIcon:Zg,ColumnMenuHideIcon:rb,ColumnMenuSortAscendingIcon:Ag,ColumnMenuSortDescendingIcon:Lg,ColumnMenuFilterIcon:qg,ColumnMenuManageColumnsIcon:ib,ColumnMenuClearIcon:lb,LoadIcon:Jg,FilterPanelAddIcon:Xg,FilterPanelRemoveAllIcon:ab,ColumnReorderIcon:eb},{BaseCheckbox:YS,BaseTextField:Zx,BaseFormControl:Gb,BaseSelect:Bx,BaseSwitch:qb,BaseButton:lE,BaseIconButton:Rb,BaseInputAdornment:fE,BaseTooltip:EE,BasePopper:Tf,BaseInputLabel:jw,BaseSelectOption:function(e){let{native:t}=e,n=De(e,NE);return t?Me.jsx("option",Ie({},n)):Me.jsx(Ih,Ie({},n))},BaseChip:fy}),ME=Ie({},PE,{Cell:Uu,SkeletonCell:Zh,ColumnHeaderFilterIconButton:Sg,ColumnMenu:xb,ColumnHeaders:FS,Footer:oC,Toolbar:null,PreferencesPanel:Tv,LoadingOverlay:wC,NoResultsOverlay:AS,NoRowsOverlay:xC,Pagination:fO,FilterPanel:Jv,ColumnsPanel:Cv,Panel:Rv,Row:IO}),jE=e=>{if(void 0!==e)return Object.keys(e).reduce(((t,n)=>Ie({},t,{[`${n.charAt(0).toLowerCase()}${n.slice(1)}`]:e[n]})),{})};const _E=["components","componentsProps"];function IE(e){var t;const n=Object.keys(e);if(!n.some((e=>e.startsWith("aria-")||e.startsWith("data-"))))return e;const o={},r=null!=(t=e.forwardedProps)?t:{};for(let t=0;t<n.length;t+=1){const i=n[t];i.startsWith("aria-")||i.startsWith("data-")?r[i]=e[i]:o[i]=e[i]}return o.forwardedProps=r,o}const DE={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleRowSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},FE={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,rowSelection:!0,density:"standard",disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableMultipleColumnsFiltering:!1,disableMultipleRowSelection:!1,disableMultipleColumnsSorting:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:wu.Cell,filterMode:"client",columnHeaderHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,logger:console,logLevel:"production"===process.env.NODE_ENV?"error":"warn",pagination:!1,paginationMode:"client",rowHeight:52,pageSizeOptions:[25,50,100],rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingOrder:["asc","desc",null],sortingMode:"client",throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1,unstable_ignoreValueFormatterDuringExport:!1,clipboardCopyCellDelimiter:"\t"},AE=jE(ME),LE=t=>{const[n,o,r]=function(t){return e.useMemo((()=>{const{components:e,componentsProps:n}=t;return[e,n,IE(De(t,_E))]}),[t])}(wp({props:t,name:"MuiDataGrid"})),i=e.useMemo((()=>Ie({},hS,r.localeText)),[r.localeText]),l=e.useMemo((()=>function({defaultSlots:e,slots:t,components:n}){const o=t??(n?jE(n):null);return o&&0!==Object.keys(o).length?Ie({},e,o):e}({defaultSlots:AE,slots:r.slots,components:n})),[n,r.slots]);return e.useMemo((()=>{var e;return Ie({},FE,r,{localeText:i,slots:l,slotProps:null!=(e=r.slotProps)?e:o},DE)}),[r,i,l,o])},VE=e=>Ie({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}});let $E=!1;const zE=(e,t,n)=>"number"==typeof e&&e>0?e:("production"!==process.env.NODE_ENV&&!$E&&typeof e<"u"&&null!==e&&(console.warn(n),$E=!0),t),qE=["MUI: The `rowHeight` prop should be a number greater than 0.","The default value will be used instead."].join("\n"),HE=["MUI: The `getRowHeight` prop should return a number greater than 0 or 'auto'.","The default value will be used instead."].join("\n"),BE=(e,t,n)=>{if(Tu(e)){if(void 0!==n[e.field])throw new Error(["MUI: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join("\n"));return void(n[e.field]=t)}const{groupId:o,children:r}=e;r.forEach((e=>{BE(e,[...t,o],n)}))},UE=e=>{if(!e)return{};const t={};return e.forEach((e=>{BE(e,[],t)})),t},WE=(e,t)=>{const n=e=>{var n;return null!=(n=t[e])?n:[]},o=[],r=Math.max(...e.map((e=>n(e).length))),i=(e,t,o)=>Wm(n(e).slice(0,o+1),n(t).slice(0,o+1));for(let t=0;t<r;t+=1){const r=e.reduce(((e,o)=>{var r;const l=null!=(r=n(o)[t])?r:null;if(0===e.length)return[{columnFields:[o],groupId:l}];const a=e[e.length-1],s=a.columnFields[a.columnFields.length-1];return a.groupId===l&&i(s,o,t)?[...e.slice(0,e.length-1),{columnFields:[...a.columnFields,o],groupId:l}]:[...e,{columnFields:[o],groupId:l}]}),[]);o.push(r)}return o},GE=["groupId","children"],KE=e=>{let t={};return e.forEach((e=>{if(Tu(e))return;const{groupId:n,children:o}=e,r=De(e,GE);if(!n)throw new Error("MUI: An element of the columnGroupingModel does not have either `field` or `groupId`.");o||console.warn(`MUI: group groupId=${n} has no children.`);const i=Ie({},r,{groupId:n}),l=KE(o);if(void 0!==l[n]||void 0!==t[n])throw new Error(`MUI: The groupId ${n} is used multiple times in the columnGroupingModel.`);t=Ie({},t,l,{[n]:i})})),Ie({},t)},YE=(e,t,n)=>{var o,r,i;if(null==(o=t.experimentalFeatures)||!o.columnGrouping)return e;const l=Za(n),a=ts(n),s=KE(null!=(r=t.columnGroupingModel)?r:[]),u=UE(null!=(i=t.columnGroupingModel)?i:[]),c=WE(l,u),d=0===a.length?0:Math.max(...a.map((e=>{var t,n;return null!=(t=null==(n=u[e])?void 0:n.length)?t:0})));return Ie({},e,{columnGrouping:{lookup:s,unwrappedGroupingModel:u,headerStructure:c,maxDepth:d}})},ZE=(t,n)=>{const o=QO(t,n);return mS(o,n),(e=>{YO(e,ZO,"rowTreeCreation",dS)})(o),JO(fS,o,n),JO(Tk,o,n),JO(uS,o,n),JO(aS,o,n),JO(Kk,o,n),JO(gS,o,n),JO(eS,o,n),JO(Uk,o,n),JO(Pk,o,n),JO(Qk,o,n),JO(VE,o,n),JO(yk,o,n),JO(YE,o,n),Xk(o,n),((t,n)=>{const o=zm(t,"useGridSelection"),r=e=>(...t)=>{n.rowSelection&&e(...t)},i=e.useMemo((()=>pS(n.rowSelectionModel,cg(t.current.state))),[t,n.rowSelectionModel]),l=e.useRef(null);t.current.registerControlState({stateId:"rowSelection",propModel:i,propOnChange:n.onRowSelectionModelChange,stateSelector:cg,changeEvent:"rowSelectionChange"});const{checkboxSelection:a,disableMultipleRowSelection:s,disableRowSelectionOnClick:u,isRowSelectable:c}=n,d=!s||a,p=mO(t,n),f=e.useCallback((e=>{var n;let o=e;const r=null!=(n=l.current)?n:e,i=t.current.isRowSelected(e);if(i){const e=Ns(t),n=e.findIndex((e=>e===r)),i=e.findIndex((e=>e===o));if(n===i)return;o=n>i?e[i+1]:e[i-1]}l.current=e,t.current.selectRowRange({startId:r,endId:o},!i)}),[t]),h=e.useCallback((e=>{if(n.signature===Fm.DataGrid&&!n.checkboxSelection&&Array.isArray(e)&&e.length>1)throw new Error(["MUI: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join("\n"));cg(t.current.state)!==e&&(o.debug("Setting selection model"),t.current.setState((t=>Ie({},t,{rowSelection:n.rowSelection?e:[]}))),t.current.forceUpdate())}),[t,o,n.rowSelection,n.signature,n.checkboxSelection]),m=e.useCallback((e=>cg(t.current.state).includes(e)),[t]),g=e.useCallback((e=>{if(c&&!c(t.current.getRowParams(e)))return!1;const n=t.current.getRowNode(e);return!("footer"===(null==n?void 0:n.type)||"pinnedRow"===(null==n?void 0:n.type))}),[t,c]),b=e.useCallback((()=>pg(t)),[t]),v=e.useCallback(((e,n=!0,r=!1)=>{if(t.current.isRowSelectable(e))if(l.current=e,r)o.debug(`Setting selection for row ${e}`),t.current.setRowSelectionModel(n?[e]:[]);else{o.debug(`Toggling selection for row ${e}`);const r=cg(t.current.state).filter((t=>t!==e));n&&r.push(e),(r.length<2||d)&&t.current.setRowSelectionModel(r)}}),[t,o,d]),y=e.useCallback(((e,n=!0,r=!1)=>{o.debug("Setting selection for several rows");const i=e.filter((e=>t.current.isRowSelectable(e)));let l;if(r)l=n?i:[];else{const e=Ie({},fg(t));i.forEach((t=>{n?e[t]=t:delete e[t]})),l=Object.values(e)}(l.length<2||d)&&t.current.setRowSelectionModel(l)}),[t,o,d]),w=e.useCallback((({startId:e,endId:n},r=!0,i=!1)=>{if(!t.current.getRow(e)||!t.current.getRow(n))return;o.debug(`Expanding selection from row ${e} to row ${n}`);const l=Ns(t),a=l.indexOf(e),s=l.indexOf(n),[u,c]=a>s?[s,a]:[a,s],d=l.slice(u,c+1);t.current.selectRows(d,r,i)}),[t,o]),x={selectRows:y,selectRowRange:w};Mu(t,{selectRow:v,setRowSelectionModel:h,getSelectedRows:b,isRowSelected:m,isRowSelectable:g},"public"),Mu(t,x,n.signature===Fm.DataGrid?"private":"public");const C=e.useCallback((()=>{if(n.keepNonExistentRowsSelected)return;const e=cg(t.current.state),o=cs(t),r=Ie({},fg(t));let i=!1;e.forEach((e=>{o[e]||(delete r[e],i=!0)})),i&&t.current.setRowSelectionModel(Object.values(r))}),[t,n.keepNonExistentRowsSelected]),O=e.useCallback(((e,n)=>{const o=n.metaKey||n.ctrlKey,r=!a&&!o&&!(e=>!!e.key)(n),i=!d||r,l=t.current.isRowSelected(e);i?t.current.selectRow(e,!!r||!l,!0):t.current.selectRow(e,!l,!1)}),[t,d,a]),k=e.useCallback(((e,n)=>{var o;if(u)return;const r=null==(o=n.target.closest(`.${Da.cell}`))?void 0:o.getAttribute("data-field");r===EO.field||r===NO||r&&t.current.getColumn(r).type===RO||"pinnedRow"===t.current.getRowNode(e.id).type||(n.shiftKey&&(d||a)?f(e.id):O(e.id,n))}),[u,d,a,t,f,O]),S=e.useCallback(((e,t)=>{var n;d&&t.shiftKey&&(null==(n=window.getSelection())||n.removeAllRanges())}),[d]),E=e.useCallback(((e,n)=>{n.nativeEvent.shiftKey?f(e.id):t.current.selectRow(e.id,e.value)}),[t,f]),R=e.useCallback((e=>{const o=n.checkboxSelectionVisibleOnly&&n.pagination?lg(t):Ns(t);t.current.selectRows(o,e.value)}),[t,n.checkboxSelectionVisibleOnly,n.pagination]),T=e.useCallback(((e,n)=>{if(t.current.getCellMode(e.id,e.field)!==xu.Edit&&n.currentTarget.contains(n.target)){if(Wp(n.key)&&n.shiftKey){const o=Ls(t);if(o&&o.id!==e.id){n.preventDefault();const r=t.current.isRowSelected(o.id);if(!d)return void t.current.selectRow(o.id,!r,!0);const i=t.current.getRowIndexRelativeToVisibleRows(o.id),l=t.current.getRowIndexRelativeToVisibleRows(e.id);let a,s;i>l?r?(a=l,s=i-1):(a=l,s=i):r?(a=i+1,s=l):(a=i,s=l);const u=p.rows.slice(a,s+1).map((e=>e.id));return void t.current.selectRows(u,!r)}}if(" "===n.key&&n.shiftKey)return n.preventDefault(),void O(e.id,n);"a"===n.key&&(n.ctrlKey||n.metaKey)&&(n.preventDefault(),y(t.current.getAllRowIds(),!0))}}),[t,O,y,p.rows,d]);Lm(t,"sortedRowsSet",r(C)),Lm(t,"rowClick",r(k)),Lm(t,"rowSelectionCheckboxChange",r(E)),Lm(t,"headerSelectionCheckboxChange",R),Lm(t,"cellMouseDown",r(S)),Lm(t,"cellKeyDown",r(T)),e.useEffect((()=>{void 0!==i&&t.current.setRowSelectionModel(i)}),[t,i,n.rowSelection]),e.useEffect((()=>{n.rowSelection||t.current.setRowSelectionModel([])}),[t,n.rowSelection]);const N=null!=i;e.useEffect((()=>{if(N||!n.rowSelection)return;const e=cg(t.current.state);if(g){const n=e.filter((e=>g(e)));n.length<e.length&&t.current.setRowSelectionModel(n)}}),[t,g,N,n.rowSelection]),e.useEffect((()=>{if(!n.rowSelection||N)return;const e=cg(t.current.state);!d&&e.length>1&&t.current.setRowSelectionModel([])}),[t,d,a,N,n.rowSelection])})(o,n),function(t,n){var o,r;const i=zm(t,"useGridColumns"),l=Rk,a=e.useRef(n.columns),s=e.useRef(l);t.current.registerControlState({stateId:"visibleColumns",propModel:n.columnVisibilityModel,propOnChange:n.onColumnVisibilityModelChange,stateSelector:Ja,changeEvent:"columnVisibilityModelChange"});const u=e.useCallback((e=>{i.debug("Updating columns state."),t.current.setState(Ok(e)),t.current.forceUpdate(),t.current.publishEvent("columnsChange",e.orderedFields)}),[i,t]),c=e.useCallback((e=>Xa(t)[e]),[t]),d=e.useCallback((()=>Qa(t)),[t]),p=e.useCallback((()=>es(t)),[t]),f=e.useCallback(((e,n=!0)=>(n?es(t):Qa(t)).findIndex((t=>t.field===e))),[t]),h=e.useCallback((e=>{const n=f(e);return ns(t)[n]}),[t,f]),m=e.useCallback((e=>{Ja(t)!==e&&(t.current.setState((n=>Ie({},n,{columns:Ck({apiRef:t,columnTypes:l,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:e,keepOnlyColumnsToUpsert:!1})}))),t.current.forceUpdate())}),[t,l]),g=e.useCallback((e=>{const n=Ck({apiRef:t,columnTypes:l,columnsToUpsert:e,initialState:void 0,keepOnlyColumnsToUpsert:!1});u(n)}),[t,u,l]),b=e.useCallback(((e,n)=>{var o;const r=Ja(t);if(n!==(null==(o=r[e])||o)){const o=Ie({},r,{[e]:n});t.current.setColumnVisibilityModel(o)}}),[t]),v=e.useCallback((e=>Za(t).findIndex((t=>t===e))),[t]),y=e.useCallback(((e,n)=>{const o=Za(t),r=v(e);if(r===n)return;i.debug(`Moving column ${e} to index ${n}`);const l=[...o],a=l.splice(r,1)[0];l.splice(n,0,a),u(Ie({},Ya(t.current.state),{orderedFields:l}));const s={column:t.current.getColumn(e),targetIndex:t.current.getColumnIndexRelativeToVisibleColumns(e),oldIndex:r};t.current.publishEvent("columnIndexChange",s)}),[t,i,u,v]),w=e.useCallback(((e,n)=>{i.debug(`Updating column ${e} width to ${n}`);const o=Ie({},t.current.getColumn(e),{width:n});t.current.updateColumns([o]),t.current.publishEvent("columnWidthChange",{element:t.current.getColumnHeaderElement(e),colDef:o,width:n})}),[t,i]),x={setColumnIndex:y};Mu(t,{getColumn:c,getAllColumns:d,getColumnIndex:f,getColumnPosition:h,getVisibleColumns:p,getColumnIndexRelativeToVisibleColumns:v,updateColumns:g,setColumnVisibilityModel:m,setColumnVisibility:b,setColumnWidth:w},"public"),Mu(t,x,n.signature===Fm.DataGrid?"private":"public");const C=e.useCallback(((e,o)=>{var r,i,l;const a={},s=Ja(t);(!o.exportOnlyDirtyModels||null!=n.columnVisibilityModel||Object.keys(null!=(r=null==(i=n.initialState)||null==(l=i.columns)?void 0:l.columnVisibilityModel)?r:{}).length>0||Object.keys(s).length>0)&&(a.columnVisibilityModel=s),a.orderedFields=Za(t);const u=Qa(t),c={};return u.forEach((e=>{if(e.hasBeenResized){const t={};wk.forEach((n=>{let o=e[n];o===1/0&&(o=-1),t[n]=o})),c[e.field]=t}})),Object.keys(c).length>0&&(a.dimensions=c),Ie({},e,{columns:a})}),[t,n.columnVisibilityModel,null==(o=n.initialState)?void 0:o.columns]),O=e.useCallback(((e,n)=>{var o;const r=null==(o=n.stateToRestore.columns)?void 0:o.columnVisibilityModel,i=n.stateToRestore.columns;if(null==r&&null==i)return e;const a=Ck({apiRef:t,columnTypes:l,columnsToUpsert:[],initialState:i,columnVisibilityModel:r,keepOnlyColumnsToUpsert:!1});return t.current.setState(Ok(a)),null!=i&&t.current.publishEvent("columnsChange",a.orderedFields),e}),[t,l]),k=e.useCallback(((e,t)=>{if(t===sg.columns){var o;const e=n.slots.columnsPanel;return Me.jsx(e,Ie({},null==(o=n.slotProps)?void 0:o.columnsPanel))}return e}),[n.slots.columnsPanel,null==(r=n.slotProps)?void 0:r.columnsPanel]),S=e.useCallback((e=>n.disableColumnSelector?e:[...e,"columnMenuColumnsItem"]),[n.disableColumnSelector]);GO(t,"columnMenu",S),GO(t,"exportState",C),GO(t,"restoreState",O),GO(t,"preferencePanel",k);const E=e.useRef(null);Lm(t,"viewportInnerSizeChange",(e=>{E.current!==e.width&&(E.current=e.width,u(xk(Ya(t.current.state),e.width)))}));const R=e.useCallback((()=>{i.info("Columns pipe processing have changed, regenerating the columns");const e=Ck({apiRef:t,columnTypes:l,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});u(e)}),[t,i,u,l]);KO(t,"hydrateColumns",R);const T=e.useRef(!0);e.useEffect((()=>{if(T.current)return void(T.current=!1);if(i.info(`GridColumns have changed, new length ${n.columns.length}`),a.current===n.columns&&s.current===l)return;const e=Ck({apiRef:t,columnTypes:l,initialState:void 0,columnsToUpsert:n.columns,keepOnlyColumnsToUpsert:!0});a.current=n.columns,s.current=l,u(e)}),[i,t,u,n.columns,l]),e.useEffect((()=>{void 0!==n.columnVisibilityModel&&t.current.setColumnVisibilityModel(n.columnVisibilityModel)}),[t,i,n.columnVisibilityModel])}(o,n),cS(o,n),_u(o,n),(t=>{const n=e.useRef({}),o=e.useCallback(((e,t,o)=>{const r=n.current;r[e]||(r[e]={}),r[e][t]=o}),[]),r=e.useCallback(((e,t)=>{var o;return null==(o=n.current[e])?void 0:o[t]}),[]),i=e.useCallback((e=>{const{columnIndex:n,rowId:r,minFirstColumnIndex:i,maxLastColumnIndex:l,columns:a}=e,s=a.length,u=a[n],c="function"==typeof u.colSpan?u.colSpan(t.current.getCellParams(r,u.field)):u.colSpan;if(!c||1===c)return o(r,n,{spannedByColSpan:!1,cellProps:{colSpan:1,width:u.computedWidth}}),{colSpan:1};let d=u.computedWidth;for(let e=1;e<c;e+=1){const t=n+e;t>=i&&t<l&&(d+=a[t].computedWidth,o(r,n+e,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(n+c,s-1),leftVisibleCellIndex:n})),o(r,n,{spannedByColSpan:!1,cellProps:{colSpan:c,width:d}})}return{colSpan:c}}),[t,o]),l={calculateColSpan:e.useCallback((({rowId:e,minFirstColumn:t,maxLastColumn:n,columns:o})=>{for(let r=t;r<n;r+=1){const l=i({columnIndex:r,rowId:e,minFirstColumnIndex:t,maxLastColumnIndex:n,columns:o});l.colSpan>1&&(r+=l.colSpan-1)}}),[i])};Mu(t,{unstable_getCellColSpanInfo:r},"public"),Mu(t,l,"private");const a=e.useCallback((()=>{n.current={}}),[]);Lm(t,"columnOrderChange",a)})(o),((t,n)=>{var o;const r=e.useCallback((e=>{var n;return null!=(n=Ys(t)[e])?n:[]}),[t]),i=e.useCallback((()=>Zs(t)),[t]);Mu(t,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:i},"public");const l=e.useCallback((()=>{var e;const o=UE(null!=(e=n.columnGroupingModel)?e:[]);t.current.setState((e=>{var t,n;const r=null!=(t=null==(n=e.columns)?void 0:n.orderedFields)?t:[],i=WE(r,o);return Ie({},e,{columnGrouping:Ie({},e.columnGrouping,{headerStructure:i})})}))}),[t,n.columnGroupingModel]),a=e.useCallback((e=>{var o;if(null==(o=n.experimentalFeatures)||!o.columnGrouping)return;const r=Za(t),i=ts(t),l=KE(e??[]),a=UE(e??[]),s=WE(r,a),u=0===i.length?0:Math.max(...i.map((e=>{var t,n;return null!=(t=null==(n=a[e])?void 0:n.length)?t:0})));t.current.setState((e=>Ie({},e,{columnGrouping:{lookup:l,unwrappedGroupingModel:a,headerStructure:s,maxDepth:u}})))}),[t,null==(o=n.experimentalFeatures)?void 0:o.columnGrouping]);Lm(t,"columnIndexChange",l),Lm(t,"columnsChange",(()=>{a(n.columnGroupingModel)})),Lm(t,"columnVisibilityModelChange",(()=>{a(n.columnGroupingModel)})),e.useEffect((()=>{a(n.columnGroupingModel)}),[a,n.columnGroupingModel])})(o,n),sS(o,n),((t,n)=>{const o=zm(t,"useGridFocus"),r=e.useRef(null),i=e.useCallback(((e,n)=>{e&&t.current.getRow(e.id)&&t.current.publishEvent("cellFocusOut",t.current.getCellParams(e.id,e.field),n)}),[t]),l=e.useCallback(((e,n)=>{const r=Ls(t);(null==r?void 0:r.id)===e&&(null==r?void 0:r.field)===n||(t.current.setState((t=>(o.debug(`Focusing on cell with id=${e} and field=${n}`),Ie({},t,{tabIndex:{cell:{id:e,field:n},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:e,field:n},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))),t.current.forceUpdate(),t.current.getRow(e)&&(r&&i(r,{}),t.current.publishEvent("cellFocusIn",t.current.getCellParams(e,n))))}),[t,o,i]),a=e.useCallback(((e,n={})=>{const r=Ls(t);i(r,n),t.current.setState((t=>(o.debug(`Focusing on column header with colIndex=${e}`),Ie({},t,{tabIndex:{columnHeader:{field:e},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:e},columnHeaderFilter:null,cell:null,columnGroupHeader:null}})))),t.current.forceUpdate()}),[t,o,i]),s=e.useCallback(((e,n={})=>{const r=Ls(t);i(r,n),t.current.setState((t=>(o.debug(`Focusing on column header filter with colIndex=${e}`),Ie({},t,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:e},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:e},cell:null,columnGroupHeader:null}})))),t.current.forceUpdate()}),[t,o,i]),u=e.useCallback(((e,n,o={})=>{const r=Ls(t);r&&t.current.publishEvent("cellFocusOut",t.current.getCellParams(r.id,r.field),o),t.current.setState((t=>Ie({},t,{tabIndex:{columnGroupHeader:{field:e,depth:n},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:e,depth:n},columnHeader:null,columnHeaderFilter:null,cell:null}}))),t.current.forceUpdate()}),[t]),c=e.useCallback((()=>$s(t)),[t]),d=e.useCallback(((e,o,r)=>{let i=t.current.getColumnIndex(o);const l=es(t),a=hO(t,{pagination:n.pagination,paginationMode:n.paginationMode}),s=vs(t),u=[].concat(s.top||[],a.rows,s.bottom||[]);let c=u.findIndex((t=>t.id===e));"right"===r?i+=1:"left"===r?i-=1:c+=1,i>=l.length?(c+=1,c<u.length&&(i=0)):i<0&&(c-=1,c>=0&&(i=l.length-1)),c=Um(c,0,u.length-1);const d=u[c];if(!d)return;const p=t.current.unstable_getCellColSpanInfo(d.id,i);p&&p.spannedByColSpan&&("left"===r||"below"===r?i=p.leftVisibleCellIndex:"right"===r&&(i=p.rightVisibleCellIndex)),i=Um(i,0,l.length-1);const f=l[i];t.current.setCellFocus(d.id,f.field)}),[t,n.pagination,n.paginationMode]),p=e.useCallback((({id:e,field:n})=>{t.current.setCellFocus(e,n)}),[t]),f=e.useCallback(((e,n)=>{"Enter"===n.key||"Tab"===n.key||"Shift"===n.key||Wp(n.key)||t.current.setCellFocus(e.id,e.field)}),[t]),h=e.useCallback((({field:e},n)=>{n.target===n.currentTarget&&t.current.setColumnHeaderFocus(e,n)}),[t]),m=e.useCallback((({fields:e,depth:n},o)=>{if(o.target!==o.currentTarget)return;const r=$s(t);null!==r&&r.depth===n&&e.includes(r.field)||t.current.setColumnGroupHeaderFocus(e[0],n,o)}),[t]),g=e.useCallback(((e,n)=>{var r;null!=(r=n.relatedTarget)&&r.className.includes(Da.columnHeader)||(o.debug("Clearing focus"),t.current.setState((e=>Ie({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))))}),[o,t]),b=e.useCallback((e=>{r.current=e}),[]),v=e.useCallback((e=>{const n=r.current;r.current=null;const o=Ls(t);if(!t.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:e,cell:n}))return;if(!o)return void(n&&t.current.setCellFocus(n.id,n.field));if((null==n?void 0:n.id)===o.id&&(null==n?void 0:n.field)===o.field)return;const l=t.current.getCellElement(o.id,o.field);null!=l&&l.contains(e.target)||(n?t.current.setCellFocus(n.id,n.field):(t.current.setState((e=>Ie({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),t.current.forceUpdate(),i(o,e)))}),[t,i]),y=e.useCallback((e=>{if("view"===e.cellMode)return;const n=Ls(t);((null==n?void 0:n.id)!==e.id||(null==n?void 0:n.field)!==e.field)&&t.current.setCellFocus(e.id,e.field)}),[t]),w=e.useCallback((()=>{const e=Ls(t);e&&!t.current.getRow(e.id)&&t.current.setState((e=>Ie({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))}),[t]),x={moveFocusToRelativeCell:d,setColumnGroupHeaderFocus:u,getColumnGroupHeaderFocus:c};Mu(t,{setCellFocus:l,setColumnHeaderFocus:a,setColumnHeaderFilterFocus:s},"public"),Mu(t,x,"private"),e.useEffect((()=>{const e=Rt(t.current.rootElementRef.current);return e.addEventListener("mouseup",v),()=>{e.removeEventListener("mouseup",v)}}),[t,v]),Lm(t,"columnHeaderBlur",g),Lm(t,"headerFilterBlur",g),Lm(t,"cellDoubleClick",p),Lm(t,"cellMouseDown",b),Lm(t,"cellKeyDown",f),Lm(t,"cellModeChange",y),Lm(t,"columnHeaderFocus",h),Lm(t,"columnGroupHeaderFocus",m),Lm(t,"rowsSet",w)})(o,n),((t,n)=>{var o;const r=zm(t,"useGridPreferencesPanel"),i=e.useRef(),l=e.useRef(),a=e.useCallback((()=>{r.debug("Hiding Preferences Panel");const e=ag(t.current.state);e.openedPanelValue&&t.current.publishEvent("preferencePanelClose",{openedPanelValue:e.openedPanelValue}),t.current.setState((e=>Ie({},e,{preferencePanel:{open:!1}}))),t.current.forceUpdate()}),[t,r]),s=e.useCallback((()=>{l.current=setTimeout((()=>clearTimeout(i.current)),0)}),[]),u=e.useCallback((()=>{i.current=setTimeout(a,100)}),[a]),c=e.useCallback(((e,n,o)=>{r.debug("Opening Preferences Panel"),s(),t.current.setState((t=>Ie({},t,{preferencePanel:Ie({},t.preferencePanel,{open:!0,openedPanelValue:e,panelId:n,labelId:o})}))),t.current.publishEvent("preferencePanelOpen",{openedPanelValue:e}),t.current.forceUpdate()}),[r,s,t]);Mu(t,{showPreferences:c,hidePreferences:u},"public");const d=e.useCallback(((e,o)=>{var r;const i=ag(t.current.state);return!o.exportOnlyDirtyModels||null!=(null==(r=n.initialState)?void 0:r.preferencePanel)||i.open?Ie({},e,{preferencePanel:i}):e}),[t,null==(o=n.initialState)?void 0:o.preferencePanel]),p=e.useCallback(((e,n)=>{const o=n.stateToRestore.preferencePanel;return null!=o&&t.current.setState((e=>Ie({},e,{preferencePanel:o}))),e}),[t]);GO(t,"exportState",d),GO(t,"restoreState",p),e.useEffect((()=>()=>{clearTimeout(i.current),clearTimeout(l.current)}),[])})(o,n),((t,n)=>{var o,r,i;const l=zm(t,"useGridFilter");t.current.registerControlState({stateId:"filter",propModel:n.filterModel,propOnChange:n.onFilterModelChange,stateSelector:Es,changeEvent:"filterModelChange"});const a=e.useCallback((()=>{t.current.setState((e=>{const o=Es(e,t.current.instanceId),r="client"===n.filterMode?qk(n.getRowId,o,t):null,i=t.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:r,filterModel:o??_m()}),l=Ie({},e,{filter:Ie({},e.filter,i)});return Ie({},l,{visibleRowsLookup:Gk(t,l)})})),t.current.publishEvent("filteredRowsSet")}),[t,n.filterMode,n.getRowId]),s=e.useCallback(((e,t)=>null==t||!1===t.filterable||n.disableColumnFilter?e:[...e,"columnMenuFilterItem"]),[n.disableColumnFilter]),u=e.useCallback((()=>{a(),t.current.forceUpdate()}),[t,a]),c=e.useCallback((e=>{const n=Es(t),o=[...n.items],r=o.findIndex((t=>t.id===e.id));-1===r?o.push(e):o[r]=e,t.current.setFilterModel(Ie({},n,{items:o}),"upsertFilterItem")}),[t]),d=e.useCallback((e=>{const n=Es(t),o=[...n.items];e.forEach((t=>{const n=e.findIndex((e=>e.id===t.id));-1===n?o.push(t):o[n]=t})),t.current.setFilterModel(Ie({},n,{items:e}),"upsertFilterItems")}),[t]),p=e.useCallback((e=>{const n=Es(t),o=n.items.filter((t=>t.id!==e.id));o.length!==n.items.length&&t.current.setFilterModel(Ie({},n,{items:o}),"deleteFilterItem")}),[t]),f=e.useCallback(((e,o,r)=>{if(l.debug("Displaying filter panel"),e){const o=Es(t),r=o.items.filter((e=>{var n;if(void 0!==e.value)return!(Array.isArray(e.value)&&0===e.value.length);const o=null==(n=t.current.getColumn(e.field).filterOperators)?void 0:n.find((t=>t.value===e.operator));return!(typeof(null==o?void 0:o.requiresFilterValue)>"u"||(null==o?void 0:o.requiresFilterValue))}));let i;const l=r.find((t=>t.field===e)),a=t.current.getColumn(e);i=l?r:n.disableMultipleColumnsFiltering?[Dk({field:e,operator:a.filterOperators[0].value},t)]:[...r,Dk({field:e,operator:a.filterOperators[0].value},t)],t.current.setFilterModel(Ie({},o,{items:i}))}t.current.showPreferences(sg.filters,o,r)}),[t,l,n.disableMultipleColumnsFiltering]),h=e.useCallback((()=>{l.debug("Hiding filter panel"),t.current.hidePreferences()}),[t,l]),m=e.useCallback((e=>{const n=Es(t);n.logicOperator!==e&&t.current.setFilterModel(Ie({},n,{logicOperator:e}),"changeLogicOperator")}),[t]),g=e.useCallback((e=>{const n=Es(t);Wm(n.quickFilterValues,e)||t.current.setFilterModel(Ie({},n,{quickFilterValues:[...e]}))}),[t]),b=e.useCallback(((e,o)=>{Es(t)!==e&&(l.debug("Setting filter model"),t.current.updateControlState("filter",$k(e,n.disableMultipleColumnsFiltering,t),o),t.current.unstable_applyFilters())}),[t,l,n.disableMultipleColumnsFiltering]);Mu(t,{setFilterLogicOperator:m,unstable_applyFilters:u,deleteFilterItem:p,upsertFilterItem:c,upsertFilterItems:d,setFilterModel:b,showFilterPanel:f,hideFilterPanel:h,setQuickFilterValues:g},"public");const v=e.useCallback(((e,o)=>{var r,i;const l=Es(t);return o.exportOnlyDirtyModels&&null==n.filterModel&&null==(null==(r=n.initialState)||null==(i=r.filter)?void 0:i.filterModel)&&Wm(l,_m())?e:Ie({},e,{filter:{filterModel:l}})}),[t,n.filterModel,null==(o=n.initialState)||null==(r=o.filter)?void 0:r.filterModel]),y=e.useCallback(((e,o)=>{var r;const i=null==(r=o.stateToRestore.filter)?void 0:r.filterModel;return null==i?e:(t.current.updateControlState("filter",$k(i,n.disableMultipleColumnsFiltering,t),"restoreState"),Ie({},e,{callbacks:[...e.callbacks,t.current.unstable_applyFilters]}))}),[t,n.disableMultipleColumnsFiltering]),w=e.useCallback(((e,t)=>{if(t===sg.filters){var o;const e=n.slots.filterPanel;return Me.jsx(e,Ie({},null==(o=n.slotProps)?void 0:o.filterPanel))}return e}),[n.slots.filterPanel,null==(i=n.slotProps)?void 0:i.filterPanel]),x=t.current.state.rows.dataRowIdToModelLookup,C=e.useMemo((()=>Object.values(x)),[x]),{getRowId:O}=n,k=e.useCallback((e=>{if("client"!==n.filterMode||!e.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const o=cs(t),r={},{isRowMatchingFilters:i}=e,l={},a={passingFilterItems:null,passingQuickFilterValues:null};for(let n=0;n<C.length;n+=1){const o=C[n],s=O?O(o):o.id;i(o,void 0,a);const u=Bk([a.passingFilterItems],[a.passingQuickFilterValues],e.filterModel,t,l);r[s]=u}const s="auto-generated-group-footer-root";return o[s]&&(r[s]=!0),{filteredRowsLookup:r,filteredDescendantCountLookup:{}}}),[t,C,n.filterMode,O]);GO(t,"columnMenu",s),GO(t,"exportState",v),GO(t,"restoreState",y),GO(t,"preferencePanel",w),YO(t,ZO,"filtering",k),YO(t,ZO,"visibleRowsLookupCreation",Wk);const S=e.useCallback((()=>{l.debug("onColUpdated - GridColumns changed, applying filters");const e=Es(t),n=is(t),o=e.items.filter((e=>e.field&&n[e.field]));o.length<e.items.length&&t.current.setFilterModel(Ie({},e,{items:o}))}),[t,l]),E=e.useCallback((e=>{"filtering"===e&&t.current.unstable_applyFilters()}),[t]),R=e.useCallback((()=>{t.current.setState((e=>Ie({},e,{visibleRowsLookup:Gk(t,e)}))),t.current.forceUpdate()}),[t]);Lm(t,"rowsSet",a),Lm(t,"columnsChange",S),Lm(t,"activeStrategyProcessorChange",E),Lm(t,"rowExpansionChange",R),Ym((()=>{t.current.unstable_applyFilters()})),Pt((()=>{void 0!==n.filterModel&&t.current.setFilterModel(n.filterModel)}),[t,l,n.filterModel])})(o,n),((t,n)=>{var o,r;const i=zm(t,"useGridSorting");t.current.registerControlState({stateId:"sortModel",propModel:n.sortModel,propOnChange:n.onSortModelChange,stateSelector:Os,changeEvent:"sortModelChange"});const l=e.useCallback(((e,n)=>{const o=Os(t),r=o.findIndex((t=>t.field===e));let i=[...o];return r>-1?n?i.splice(r,1,n):i.splice(r,1):i=[...o,n],i}),[t]),a=e.useCallback(((e,o)=>{var r;const i=Os(t).find((t=>t.field===e.field));if(i){var l;const t=void 0===o?bg(null!=(l=e.sortingOrder)?l:n.sortingOrder,i.sort):o;return null==t?void 0:Ie({},i,{sort:t})}return{field:e.field,sort:void 0===o?bg(null!=(r=e.sortingOrder)?r:n.sortingOrder):o}}),[t,n.sortingOrder]),s=e.useCallback(((e,t)=>null==t||!1===t.sortable?e:(t.sortingOrder||n.sortingOrder).some((e=>!!e))?[...e,"columnMenuSortItem"]:e),[n.sortingOrder]),u=e.useCallback((()=>{t.current.setState((e=>{if("server"===n.sortingMode)return i.debug("Skipping sorting rows as sortingMode = server"),Ie({},e,{sorting:Ie({},e.sorting,{sortedRows:uu(ps(t),nu,!1)})});const o=((e,t)=>{const n=e.map((e=>((e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const o=(e=>"desc"===e)(e.sort)?(...e)=>-1*n.sortComparator(...e):n.sortComparator;return{getSortCellParams:e=>({id:e,field:n.field,rowNode:t.current.getRowNode(e),value:t.current.getCellValue(e,n.field),api:t.current}),comparator:o}})(e,t))).filter((e=>!!e));return 0===n.length?null:e=>e.map((e=>({node:e,params:n.map((t=>t.getSortCellParams(e.id)))}))).sort(((e,t)=>((e,t,n)=>e.reduce(((e,o,r)=>{if(0!==e)return e;const i=t.params[r],l=n.params[r];return o.comparator(i.value,l.value,i,l)}),0))(n,e,t))).map((e=>e.node.id))})(Os(e,t.current.instanceId),t),r=t.current.applyStrategyProcessor("sorting",{sortRowList:o});return Ie({},e,{sorting:Ie({},e.sorting,{sortedRows:r})})})),t.current.publishEvent("sortedRowsSet"),t.current.forceUpdate()}),[t,i,n.sortingMode]),c=e.useCallback((e=>{Os(t)!==e&&(i.debug("Setting sort model"),t.current.setState(gg(e,n.disableMultipleColumnsSorting)),t.current.forceUpdate(),t.current.applySorting())}),[t,i,n.disableMultipleColumnsSorting]),d=e.useCallback(((e,o,r)=>{if(!e.sortable)return;const i=a(e,o);let s;s=!r||n.disableMultipleColumnsSorting?i?[i]:[]:l(e.field,i),t.current.setSortModel(s)}),[t,l,a,n.disableMultipleColumnsSorting]),p=e.useCallback((()=>Os(t)),[t]),f=e.useCallback((()=>Cs(t).map((e=>e.model))),[t]),h=e.useCallback((()=>xs(t)),[t]),m=e.useCallback((e=>t.current.getSortedRowIds()[e]),[t]);Mu(t,{getSortModel:p,getSortedRows:f,getSortedRowIds:h,getRowIdFromRowIndex:m,setSortModel:c,sortColumn:d,applySorting:u},"public");const g=e.useCallback(((e,o)=>{var r,i;const l=Os(t);return!o.exportOnlyDirtyModels||null!=n.sortModel||null!=(null==(r=n.initialState)||null==(i=r.sorting)?void 0:i.sortModel)||l.length>0?Ie({},e,{sorting:{sortModel:l}}):e}),[t,n.sortModel,null==(o=n.initialState)||null==(r=o.sorting)?void 0:r.sortModel]),b=e.useCallback(((e,o)=>{var r;const i=null==(r=o.stateToRestore.sorting)?void 0:r.sortModel;return null==i?e:(t.current.setState(gg(i,n.disableMultipleColumnsSorting)),Ie({},e,{callbacks:[...e.callbacks,t.current.applySorting]}))}),[t,n.disableMultipleColumnsSorting]),v=e.useCallback((e=>{const n=ps(t),o=n[nu],r=e.sortRowList?e.sortRowList(o.children.map((e=>n[e]))):[...o.children];return null!=o.footerId&&r.push(o.footerId),r}),[t]);GO(t,"exportState",g),GO(t,"restoreState",b),YO(t,ZO,"sorting",v);const y=e.useCallback((({colDef:e},t)=>{const n=t.shiftKey||t.metaKey||t.ctrlKey;d(e,void 0,n)}),[d]),w=e.useCallback((({colDef:e},t)=>{(e=>"Enter"===e)(t.key)&&!t.ctrlKey&&!t.metaKey&&d(e,void 0,t.shiftKey)}),[d]),x=e.useCallback((()=>{const e=Os(t),n=Xa(t);if(e.length>0){const o=e.filter((e=>n[e.field]));o.length<e.length&&t.current.setSortModel(o)}}),[t]),C=e.useCallback((e=>{"sorting"===e&&t.current.applySorting()}),[t]);GO(t,"columnMenu",s),Lm(t,"columnHeaderClick",y),Lm(t,"columnHeaderKeyDown",w),Lm(t,"rowsSet",t.current.applySorting),Lm(t,"columnsChange",x),Lm(t,"activeStrategyProcessorChange",C),Ym((()=>{t.current.applySorting()})),Pt((()=>{void 0!==n.sortModel&&t.current.setSortModel(n.sortModel)}),[t,n.sortModel])})(o,n),((t,n)=>{const o=zm(t,"useDensity"),r=e.useCallback((e=>{o.debug(`Set grid density to ${e}`),t.current.setState((t=>{const n=Us(t),o={value:e,factor:Nk[e]};return Wm(n,o)?t:Ie({},t,{density:o})})),t.current.forceUpdate()}),[o,t]);e.useEffect((()=>{t.current.setDensity(n.density)}),[t,n.density]),Mu(t,{setDensity:r},"public")})(o,n),((t,n)=>{var o,r;const i=zm(t,"useGridPagination"),l=_a(t,Is),a=_a(t,Gs),s=Math.floor(n.rowHeight*a);t.current.registerControlState({stateId:"pagination",propModel:n.paginationModel,propOnChange:n.onPaginationModelChange,stateSelector:tg,changeEvent:"paginationModelChange"});const u=e.useCallback((e=>{const n=tg(t);e!==n.page&&(i.debug(`Setting page to ${e}`),t.current.setPaginationModel({page:e,pageSize:n.pageSize}))}),[t,i]),c=e.useCallback((e=>{const n=tg(t);e!==n.pageSize&&(i.debug(`Setting page size to ${e}`),t.current.setPaginationModel({pageSize:e,page:n.page}))}),[t,i]),d=e.useCallback((e=>{var o;e!==tg(t)&&(i.debug("Setting 'paginationModel' to",e),t.current.updateControlState("pagination",Jk(null!=(o=n.rowCount)?o:l,n.signature,e),"setPaginationModel"),t.current.forceUpdate())}),[t,i,n.rowCount,n.signature,l]);Mu(t,{setPage:u,setPageSize:c,setPaginationModel:d},"public");const p=e.useCallback(((e,o)=>{var r,i;const l=tg(t);return!o.exportOnlyDirtyModels||null!=n.paginationModel||null!=(null==(r=n.initialState)||null==(i=r.pagination)?void 0:i.paginationModel)||0!==l.page&&l.pageSize!==(e=>e?0:100)(n.autoPageSize)?Ie({},e,{pagination:Ie({},e.pagination,{paginationModel:l})}):e}),[t,n.paginationModel,null==(o=n.initialState)||null==(r=o.pagination)?void 0:r.paginationModel,n.autoPageSize]),f=e.useCallback(((e,o)=>{var r,i,a;const s=null!=(r=o.stateToRestore.pagination)&&r.paginationModel?Ie({},Qm(n.autoPageSize),null==(i=o.stateToRestore.pagination)?void 0:i.paginationModel):tg(t);return t.current.updateControlState("pagination",Jk(null!=(a=n.rowCount)?a:l,n.signature,s),"stateRestorePreProcessing"),e}),[t,n.autoPageSize,n.rowCount,n.signature,l]);GO(t,"exportState",p),GO(t,"restoreState",f);const h=e.useCallback((()=>{const e=t.current.getRootDimensions();if(!n.autoPageSize||!e)return;const o=cu(t),r=Math.floor((e.viewportInnerSize.height-o.top-o.bottom)/s);t.current.setPageSize(r)}),[t,n.autoPageSize,s]);Lm(t,"viewportInnerSizeChange",h),Lm(t,"paginationModelChange",(()=>{var e;const n=tg(t);null!=(e=t.current.virtualScrollerRef)&&e.current&&t.current.scrollToIndexes({rowIndex:n.page*n.pageSize}),t.current.forceUpdate()})),e.useEffect((()=>{"production"!==process.env.NODE_ENV&&"server"===n.paginationMode&&null==n.rowCount&&Xm()}),[n.rowCount,n.paginationMode]),e.useEffect((()=>{var e;t.current.updateControlState("pagination",Jk(null!=(e=n.rowCount)?e:l,n.signature,n.paginationModel))}),[t,n.paginationModel,n.rowCount,n.paginationMode,l,n.signature]),e.useEffect((()=>{h()}),[h])})(o,n),((t,n)=>{const{getRowHeight:o,getRowSpacing:r,getEstimatedRowHeight:i}=n,l=e.useRef(Object.create(null)),a=e.useRef(-1),s=e.useRef(!1),u=_a(t,Gs),c=_a(t,Es),d=_a(t,eg),p=_a(t,Os),f=mO(t,n),h=_a(t,vs),m=zE(n.rowHeight,FE.rowHeight,qE),g=Math.floor(m*u),b=e.useCallback((()=>{var e,n;s.current=!1;const c=e=>{l.current[e.id]||(l.current[e.id]={sizes:{baseCenter:g},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:n,needsFirstMeasurement:a,sizes:c}=l.current[e.id];let d="number"==typeof g&&g>0?g:52;const p=c.baseCenter;if(n)d=p;else if(o){const t=o(Ie({},e,{densityFactor:u}));"auto"===t?(d=a?(i?i(Ie({},e,{densityFactor:u})):g)??g:p,s.current=!0,l.current[e.id].autoHeight=!0):(d=zE(t,g,HE),l.current[e.id].needsFirstMeasurement=!1,l.current[e.id].autoHeight=!1)}else l.current[e.id].needsFirstMeasurement=!1;const h={};for(const e in c)/^base[A-Z]/.test(e)&&(h[e]=c[e]);if(h.baseCenter=d,r){var m,b;const n=t.current.getRowIndexRelativeToVisibleRows(e.id),o=r(Ie({},e,{isFirstVisible:0===n,isLastVisible:n===f.rows.length-1,indexRelativeToCurrentPage:n}));h.spacingTop=null!=(m=o.top)?m:0,h.spacingBottom=null!=(b=o.bottom)?b:0}const v=t.current.unstable_applyPipeProcessors("rowHeight",h,e);return l.current[e.id].sizes=v,v},d=[],p=f.rows.reduce(((e,t)=>{d.push(e);let n=0,o=0;const r=c(t);for(const e in r){const t=r[e];/^base[A-Z]/.test(e)?n=t>n?t:n:o+=t}return e+n+o}),0);null==h||null==(e=h.top)||e.forEach((e=>{c(e)})),null==h||null==(n=h.bottom)||n.forEach((e=>{c(e)})),t.current.setState((e=>Ie({},e,{rowsMeta:{currentPageTotalHeight:p,positions:d}}))),s.current||(a.current=1/0),t.current.forceUpdate()}),[t,f.rows,g,o,r,i,h,u]),v=e.useCallback((e=>{const t=l.current[e];return t?t.sizes.baseCenter:g}),[g]),y=e.useCallback(((e,t)=>{l.current[e].sizes.baseCenter=t,l.current[e].isResized=!0,l.current[e].needsFirstMeasurement=!1,b()}),[b]),w=e.useMemo((()=>St(b)),[b]),x=e.useCallback(((e,t,n)=>{if(!l.current[e]||!l.current[e].autoHeight)return;const o=l.current[e].sizes[`base${Ot(n)}`]!==t;l.current[e].needsFirstMeasurement=!1,l.current[e].sizes[`base${Ot(n)}`]=t,o&&w()}),[w]),C=e.useCallback((e=>{var t;return(null==(t=l.current[e])?void 0:t.autoHeight)||!1}),[]),O=e.useCallback((()=>a.current),[]),k=e.useCallback((e=>{s.current&&e>a.current&&(a.current=e)}),[]),S=e.useCallback((()=>{l.current={},b()}),[b]);e.useEffect((()=>{b()}),[g,c,d,p,b]),KO(t,"rowHeight",b);const E={getLastMeasuredRowIndex:O,rowHasAutoHeight:C};Mu(t,{unstable_setLastMeasuredRowIndex:k,unstable_getRowHeight:v,unstable_getRowInternalSizes:e=>{var t;return null==(t=l.current[e])?void 0:t.sizes},unstable_setRowHeight:y,unstable_storeRowHeightMeasurement:x,resetRowHeights:S},"public"),Mu(t,E,"private")})(o,n),((t,n)=>{const o=mr(),r=zm(t,"useGridScroll"),i=t.current.columnHeadersElementRef,l=t.current.virtualScrollerRef,a=_a(t,Ts),s=e.useCallback((e=>{const o=as(t),i=es(t);if(null!=e.rowIndex&&0===o||0===i.length)return!1;r.debug(`Scrolling to cell at row ${e.rowIndex}, col: ${e.colIndex} `);let s={};if(null!=e.colIndex){const n=ns(t);let o;if(typeof e.rowIndex<"u"){var u;const n=null==(u=a[e.rowIndex])?void 0:u.id,r=t.current.unstable_getCellColSpanInfo(n,e.colIndex);r&&!r.spannedByColSpan&&(o=r.cellProps.width)}typeof o>"u"&&(o=i[e.colIndex].computedWidth),s.left=bS({clientHeight:l.current.clientWidth,scrollTop:Math.abs(l.current.scrollLeft),offsetHeight:o,offsetTop:n[e.colIndex]})}if(null!=e.rowIndex){var c,d;const o=ug(t.current.state),r=ng(t),i=og(t),a=n.pagination?e.rowIndex-r*i:e.rowIndex,u=o.positions[a+1]?o.positions[a+1]-o.positions[a]:o.currentPageTotalHeight-o.positions[a],p=(null==(c=l.current.querySelector(`.${Da["pinnedRows--top"]}`))?void 0:c.clientHeight)||0,f=(null==(d=l.current.querySelector(`.${Da["pinnedRows--bottom"]}`))?void 0:d.clientHeight)||0;s.top=bS({clientHeight:l.current.clientHeight-p-f,scrollTop:l.current.scrollTop,offsetHeight:u,offsetTop:o.positions[a]})}return s=t.current.unstable_applyPipeProcessors("scrollToIndexes",s,e),(void 0!==typeof s.left||void 0!==typeof s.top)&&(t.current.scroll(s),!0)}),[r,t,l,n.pagination,a]),u=e.useCallback((e=>{if(l.current&&null!=e.left&&i.current){const t="rtl"===o.direction?-1:1;i.current.scrollLeft=e.left,l.current.scrollLeft=t*e.left,r.debug(`Scrolling left: ${e.left}`)}l.current&&null!=e.top&&(l.current.scrollTop=e.top,r.debug(`Scrolling top: ${e.top}`)),r.debug("Scrolling, updating container, and viewport")}),[l,o.direction,i,r]),c=e.useCallback((()=>null!=l&&l.current?{top:l.current.scrollTop,left:l.current.scrollLeft}:{top:0,left:0}),[l]);Mu(t,{scroll:u,scrollToIndexes:s,getScrollPosition:c},"public")})(o,n),(t=>{const n=zm(t,"useGridColumnMenu"),o=e.useCallback((e=>{t.current.setState((t=>t.columnMenu.open&&t.columnMenu.field===e?t:(n.debug("Opening Column Menu"),Ie({},t,{columnMenu:{open:!0,field:e}}))))&&(t.current.hidePreferences(),t.current.forceUpdate())}),[t,n]),r=e.useCallback((()=>{const e=Js(t.current.state);if(e.field){const n=Xa(t),o=Ja(t),r=Za(t);let i=e.field;if(n[i]||(i=r[0]),!1===o[i]){const e=r.filter((e=>e===i||!1!==o[e])),t=e.indexOf(i);i=e[t+1]||e[t-1]}t.current.setColumnHeaderFocus(i)}t.current.setState((e=>e.columnMenu.open||void 0!==e.columnMenu.field?(n.debug("Hiding Column Menu"),Ie({},e,{columnMenu:Ie({},e.columnMenu,{open:!1,field:void 0})})):e))&&t.current.forceUpdate()}),[t,n]),i=e.useCallback((e=>{n.debug("Toggle Column Menu");const i=Js(t.current.state);i.open&&i.field===e?r():o(e)}),[t,n,o,r]);Mu(t,{showColumnMenu:o,hideColumnMenu:r,toggleColumnMenu:i},"public"),Lm(t,"columnResizeStart",r),Lm(t,"virtualScrollerWheel",t.current.hideColumnMenu),Lm(t,"virtualScrollerTouchMove",t.current.hideColumnMenu)})(o),_k(o,n),Ik(o,n),vk(o,n),function(t,n){const o=zm(t,"useResizeContainer"),r=e.useRef(!1),i=e.useRef(null),l=e.useRef(null),a=_a(t,ug),s=_a(t,Gs),u=Math.floor(n.rowHeight*s),c=Ek(t,n.columnHeaderHeight),d=e.useCallback((()=>{var e;const o=null==(e=t.current.rootElementRef)?void 0:e.current,r=os(t),s=cu(t);if(!i.current)return;let u,d,p,f;if(null!=n.scrollbarSize)u=n.scrollbarSize;else if(r&&o){const e=Rt(o).createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.overflow="scroll",e.className="scrollDiv",o.appendChild(e),u=e.offsetWidth-e.clientWidth,o.removeChild(e)}else u=0;if(n.autoHeight)f=!1,p=Math.round(r)>Math.round(i.current.width),d={width:i.current.width,height:a.currentPageTotalHeight+(p?u:0)};else{d={width:i.current.width,height:i.current.height-c};const e=(({content:e,container:t,scrollBarSize:n})=>{const o=e.width>t.width,r=e.height>t.height;let i=!1,l=!1;return(o||r)&&(i=o,l=e.height+(i?n:0)>t.height,l&&(i=e.width+n>t.width)),{hasScrollX:i,hasScrollY:l}})({content:{width:Math.round(r),height:a.currentPageTotalHeight},container:{width:Math.round(d.width),height:d.height-s.top-s.bottom},scrollBarSize:u});f=e.hasScrollY,p=e.hasScrollX}const h={viewportOuterSize:d,viewportInnerSize:{width:d.width-(f?u:0),height:d.height-(p?u:0)},hasScrollX:p,hasScrollY:f,scrollBarSize:u},m=l.current;l.current=h,(h.viewportInnerSize.width!==(null==m?void 0:m.viewportInnerSize.width)||h.viewportInnerSize.height!==(null==m?void 0:m.viewportInnerSize.height))&&t.current.publishEvent("viewportInnerSizeChange",h.viewportInnerSize)}),[t,n.scrollbarSize,n.autoHeight,a.currentPageTotalHeight,c]),[p,f]=e.useState(),h=e.useMemo((()=>St(f,60)),[]),m=e.useRef();Pt((()=>{p&&(d(),t.current.publishEvent("debouncedResize",i.current))}),[t,p,d]);const g=e.useCallback((()=>{t.current.computeSizeAndPublishResizeEvent()}),[t]),b=e.useCallback((()=>l.current),[]),v=e.useCallback((()=>{const e=t.current.getRootDimensions();if(!e)return 0;const o=hO(t,{pagination:n.pagination,paginationMode:n.paginationMode});if(n.getRowHeight){const e=t.current.getRenderContext(),n=e.lastRowIndex-e.firstRowIndex;return Math.min(n-1,o.rows.length)}const r=Math.floor(e.viewportInnerSize.height/u);return Math.min(r,o.rows.length)}),[t,n.pagination,n.paginationMode,n.getRowHeight,u]),y=e.useCallback((()=>{var e,n,o;const r=null==(e=t.current.mainElementRef)?void 0:e.current;if(!r)return;const i=Tt(r).getComputedStyle(r),l=parseFloat(i.height)||0,a=parseFloat(i.width)||0,s=l!==(null==(n=m.current)?void 0:n.height),u=a!==(null==(o=m.current)?void 0:o.width);if(!m.current||s||u){const e={width:a,height:l};t.current.publishEvent("resize",e),m.current=e}}),[t]),w={getViewportPageSize:v,updateGridDimensionsRef:d,computeSizeAndPublishResizeEvent:y};Mu(t,{resize:g,getRootDimensions:b},"public"),Mu(t,w,"private");const x=e.useRef(!0),C=e.useCallback((e=>{i.current=e;const t=/jsdom/.test(window.navigator.userAgent);return 0===e.height&&!r.current&&!n.autoHeight&&!t&&(o.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join("\n")),r.current=!0),0===e.width&&!r.current&&!t&&(o.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join("\n")),r.current=!0),vS||x.current?(f(e),void(x.current=!1)):void h(e)}),[n.autoHeight,h,o]);Pt((()=>d()),[d]),$m(t,"sortedRowsSet",d),$m(t,"paginationModelChange",d),$m(t,"columnsChange",d),Lm(t,"resize",C),$m(t,"debouncedResize",n.onResize)}(o,n),function(e,t){$m(e,"columnHeaderClick",t.onColumnHeaderClick),$m(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),$m(e,"columnHeaderOver",t.onColumnHeaderOver),$m(e,"columnHeaderOut",t.onColumnHeaderOut),$m(e,"columnHeaderEnter",t.onColumnHeaderEnter),$m(e,"columnHeaderLeave",t.onColumnHeaderLeave),$m(e,"cellClick",t.onCellClick),$m(e,"cellDoubleClick",t.onCellDoubleClick),$m(e,"cellKeyDown",t.onCellKeyDown),$m(e,"preferencePanelClose",t.onPreferencePanelClose),$m(e,"preferencePanelOpen",t.onPreferencePanelOpen),$m(e,"menuOpen",t.onMenuOpen),$m(e,"menuClose",t.onMenuClose),$m(e,"rowDoubleClick",t.onRowDoubleClick),$m(e,"rowClick",t.onRowClick),$m(e,"stateChange",t.onStateChange)}(o,n),(t=>{const n=e.useCallback(((e={})=>t.current.unstable_applyPipeProcessors("exportState",{},e)),[t]),o=e.useCallback((e=>{t.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:e}).callbacks.forEach((e=>{e()})),t.current.forceUpdate()}),[t]);Mu(t,{exportState:n,restoreState:o},"public")})(o),o},XE=Ro("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"}}),QE=e.forwardRef((function(e,t){const n=wa(),o=(e=>{const{classes:t}=e;return en({root:["virtualScroller"]},Ia,t)})(n);return Me.jsx(XE,Ie({ref:t},e,{className:vo(o.root,e.className),ownerState:n}))})),JE=Ro("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),eR=e.forwardRef((function(e,t){var n;const o=wa(),r=((e,t)=>{const{classes:n}=e;return en({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},Ia,n)})(o,!o.autoHeight&&"auto"===(null==(n=e.style)?void 0:n.minHeight));return Me.jsx(JE,Ie({ref:t},e,{ownerState:o,className:vo(r.root,e.className)}))})),tR=["className"],nR=Ro("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),oR=e.forwardRef((function(e,t){const{className:n}=e,o=De(e,tR),r=wa(),i=(e=>{const{classes:t}=e;return en({root:["virtualScrollerRenderZone"]},Ia,t)})(r);return Me.jsx(nR,Ie({ref:t,className:vo(i.root,n),ownerState:r},o))})),rR=["className","disableVirtualization"],iR=e.forwardRef((function(e,t){const{className:n,disableVirtualization:o}=e,r=De(e,rR),{getRootProps:i,getContentProps:l,getRenderZoneProps:a,getRows:s}=SS({ref:t,disableVirtualization:o});return Me.jsxs(QE,Ie({className:n},i(r),{children:[Me.jsx(gu,{}),Me.jsx(eR,Ie({},l(),{children:Me.jsx(oR,Ie({},a(),{children:s()}))}))]}))})),lR=e.forwardRef((function(e,t){const n=LE(e),o=ZE(n.apiRef,n);return Me.jsx(DO,{privateApiRef:o,props:n,children:Me.jsxs(tm,Ie({className:n.className,style:n.style,sx:n.sx,ref:t},n.forwardedProps,{children:[Me.jsx(rC,{}),Me.jsx(eu,{VirtualScrollerComponent:iR}),Me.jsx(tu,{})]}))})})),aR=e.memo(lR);lR.propTypes={apiRef:oe.shape({current:oe.object.isRequired}),"aria-label":oe.string,"aria-labelledby":oe.string,autoHeight:oe.bool,autoPageSize:oe.bool,cellModesModel:oe.object,checkboxSelection:oe.bool,classes:oe.object,clipboardCopyCellDelimiter:oe.string,columnBuffer:oe.number,columnGroupingModel:oe.arrayOf(oe.object),columnHeaderHeight:oe.number,columns:nt(oe.array.isRequired,(e=>e.columns&&e.columns.some((e=>e.resizable))?new Error(["MUI: `column.resizable = true` is not a valid prop.","Column resizing is not available in the MIT version.","","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n")):null)),columnThreshold:oe.number,columnVisibilityModel:oe.object,components:oe.object,componentsProps:oe.object,density:oe.oneOf(["comfortable","compact","standard"]),disableColumnFilter:oe.bool,disableColumnMenu:oe.bool,disableColumnSelector:oe.bool,disableDensitySelector:oe.bool,disableRowSelectionOnClick:oe.bool,disableVirtualization:oe.bool,editMode:oe.oneOf(["cell","row"]),experimentalFeatures:oe.shape({columnGrouping:oe.bool,warnIfFocusStateIsNotSynced:oe.bool}),filterMode:oe.oneOf(["client","server"]),filterModel:oe.shape({items:oe.arrayOf(oe.shape({field:oe.string.isRequired,id:oe.oneOfType([oe.number,oe.string]),operator:oe.string.isRequired,value:oe.any})).isRequired,logicOperator:oe.oneOf(["and","or"]),quickFilterLogicOperator:oe.oneOf(["and","or"]),quickFilterValues:oe.array}),forwardedProps:oe.object,getCellClassName:oe.func,getDetailPanelContent:oe.func,getEstimatedRowHeight:oe.func,getRowClassName:oe.func,getRowHeight:oe.func,getRowId:oe.func,getRowSpacing:oe.func,hideFooter:oe.bool,hideFooterPagination:oe.bool,hideFooterSelectedRowCount:oe.bool,initialState:oe.object,isCellEditable:oe.func,isRowSelectable:oe.func,keepNonExistentRowsSelected:oe.bool,loading:oe.bool,localeText:oe.object,logger:oe.shape({debug:oe.func.isRequired,error:oe.func.isRequired,info:oe.func.isRequired,warn:oe.func.isRequired}),logLevel:oe.oneOf(["debug","error","info","warn",!1]),nonce:oe.string,onCellClick:oe.func,onCellDoubleClick:oe.func,onCellEditStart:oe.func,onCellEditStop:oe.func,onCellKeyDown:oe.func,onCellModesModelChange:oe.func,onClipboardCopy:oe.func,onColumnHeaderClick:oe.func,onColumnHeaderDoubleClick:oe.func,onColumnHeaderEnter:oe.func,onColumnHeaderLeave:oe.func,onColumnHeaderOut:oe.func,onColumnHeaderOver:oe.func,onColumnOrderChange:oe.func,onColumnVisibilityModelChange:oe.func,onFilterModelChange:oe.func,onMenuClose:oe.func,onMenuOpen:oe.func,onPaginationModelChange:oe.func,onPreferencePanelClose:oe.func,onPreferencePanelOpen:oe.func,onProcessRowUpdateError:oe.func,onResize:oe.func,onRowClick:oe.func,onRowDoubleClick:oe.func,onRowEditCommit:oe.func,onRowEditStart:oe.func,onRowEditStop:oe.func,onRowModesModelChange:oe.func,onRowSelectionModelChange:oe.func,onSortModelChange:oe.func,onStateChange:oe.func,pageSizeOptions:oe.arrayOf(oe.oneOfType([oe.number,oe.shape({label:oe.string.isRequired,value:oe.number.isRequired})]).isRequired),pagination:e=>!1===e.pagination?new Error(["MUI: `<DataGrid pagination={false} />` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to DataGridPro or DataGridPremium component to disable the pagination."].join("\n")):null,paginationMode:oe.oneOf(["client","server"]),paginationModel:oe.shape({page:oe.number.isRequired,pageSize:oe.number.isRequired}),processRowUpdate:oe.func,rowBuffer:oe.number,rowCount:oe.number,rowHeight:oe.number,rowModesModel:oe.object,rows:oe.arrayOf(oe.object).isRequired,rowSelection:oe.bool,rowSelectionModel:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.number,oe.string]).isRequired),oe.number,oe.string]),rowSpacingType:oe.oneOf(["border","margin"]),rowThreshold:oe.number,scrollbarSize:oe.number,showCellVerticalBorder:oe.bool,showColumnVerticalBorder:oe.bool,slotProps:oe.object,slots:oe.object,sortingMode:oe.oneOf(["client","server"]),sortingOrder:oe.arrayOf(oe.oneOf(["asc","desc"])),sortModel:oe.arrayOf(oe.shape({field:oe.string.isRequired,sort:oe.oneOf(["asc","desc"])})),sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object]),unstable_ignoreValueFormatterDuringExport:oe.oneOfType([oe.shape({clipboardExport:oe.bool,csvExport:oe.bool}),oe.bool])};const sR=({apiRef:e,columnField:t})=>{const n=(null==e?void 0:e.current.getVisibleColumns().map((e=>e.field))).includes(t),[o,r]=l(n);return Me.jsx(YS,{size:"small",checked:o,onChange:()=>{null==e||e.current.setColumnVisibility(t,!o),r(!o)}})},uR=e=>Me.jsx(C,{...e}),cR=({columnsMenuTitle:e,apiRef:t,fixedColumns:n})=>{const o=(null==t?void 0:t.current.getAllColumns()).filter((e=>!("__check__"===e.field||null!=n&&n.includes(e.field))));return Me.jsxs("div",{className:"flex flex-col p-5",children:[e&&Me.jsx("div",{children:e}),Me.jsx(uR,{className:"flex flex-col !text-[14px]",children:o.map((e=>Me.jsx(ev,{className:"capitalize",control:Me.jsx(sR,{apiRef:t,columnField:e.field}),label:e.headerName},e.field))).slice(0,-1)})]})},dR=({apiRef:e,columnsMenuTitle:t,fixedColumns:n})=>{const[o,r]=l(null),i=!!o,a=i?"simple-popover":void 0;return Me.jsxs(Me.Fragment,{children:[Me.jsx("div",{className:"flex cursor-pointer items-center justify-center",onClick:e=>{r(e.currentTarget)},"aria-describedby":a,children:Me.jsx(tl,{icon:"mdi:pin",className:"text-delta-600",width:20,height:20})}),Me.jsx(O,{id:a,open:i,anchorEl:o,onClose:()=>{r(null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},children:Me.jsx(cR,{columnsMenuTitle:t,apiRef:e,fixedColumns:n})})]})},pR="_styled-data-grid_12ryp_1",fR="_cell_12ryp_5",hR="_cellContent_12ryp_9",mR="_columnHeader_12ryp_13",gR="_columnHeaderTitle_12ryp_17",bR="_columnHeaders_12ryp_21",vR="_footerContainer_12ryp_25",yR="_iconSeparator_12ryp_29",wR="_row_12ryp_33",xR="_virtualScrollerContent_12ryp_37",CR="_menuIconButton_12ryp_41",OR=t=>{var n,o,r,i,l,a,s,u,c,d,p,f,h,m,g,b,v,y,w,x,C;const O=e.useRef({}),k=[...t.columns];return t.disableRowActions||k.push(((e,t,n,o)=>({field:"actions",headerName:"Actions",width:50,disableColumnMenu:!0,sortable:!1,type:"actions",renderHeader:()=>Me.jsx(dR,{apiRef:e,columnsMenuTitle:n,fixedColumns:o}),getActions:t||(()=>[])}))(O,t.rowActions||(()=>[]),t.columnsMenuTitle||"",t.fixedColumns)),t.disableHeaderPin&&k.forEach((e=>{"actions"===e.type&&(e.renderHeader=()=>"")})),Me.jsx(aR,{disableColumnMenu:!0,apiRef:O,...t,columns:k,classes:{root:vo(`${pR}`,null==(n=t.classes)?void 0:n.root),cell:vo(`${fR}`,null==(o=t.classes)?void 0:o.cell),cellContent:vo(`${hR}`,null==(r=t.classes)?void 0:r.cellContent),columnHeader:vo(`${mR}`,null==(i=t.classes)?void 0:i.columnHeader),columnHeaderTitle:vo(`${gR}`,null==(l=t.classes)?void 0:l.columnHeaderTitle),columnHeaders:vo(`${bR}`,null==(a=t.classes)?void 0:a.columnHeaders),footerContainer:vo(`${vR}`,null==(s=t.classes)?void 0:s.footerContainer),iconSeparator:vo(`${yR}`,null==(u=t.classes)?void 0:u.iconSeparator),row:vo(`${wR}`,null==(c=t.classes)?void 0:c.row),virtualScrollerContent:vo(`${xR}`,null==(d=t.classes)?void 0:d.virtualScrollerContent),menuIconButton:vo(`${CR}`,null==(p=t.classes)?void 0:p.menuIconButton),...t.classes},slotProps:{baseCheckbox:{classes:{checked:vo("text-primary-700 hover:text-primary-700",null==(m=null==(h=null==(f=t.slotProps)?void 0:f.baseCheckbox)?void 0:h.classes)?void 0:m.checked)},className:vo("text-[#b5bec9] hover:text-primary-600 [&>svg]:h-5 [&>svg]:w-5 [&>input]:h-full [&>input]:w-full",null==(b=null==(g=t.slotProps)?void 0:g.baseCheckbox)?void 0:b.className),disableRipple:!0},baseIconButton:{classes:{root:vo("p-1 rounded text-delta-800 hover:bg-primary-50 active:bg-primary-100 focus:border-2 focus:border-solid focus:border-warning-500 disabled:text-delta-300",null==(w=null==(y=null==(v=t.slotProps)?void 0:v.baseIconButton)?void 0:y.classes)?void 0:w.root)},disableRipple:!0},basePopper:{className:vo("border border-solid border-delta-300 rounded shadow-[0px_2px_4px_0px_rgba(34,_33,_51,_0.15)]",null==(C=null==(x=t.slotProps)?void 0:x.basePopper)?void 0:C.className),sx:{"& .MuiList-root":{padding:"4px 0"}}},...t.slotProps}})};OR.defaultProps={disableHeaderPin:!1,disableRowActions:!1};const kR=e=>{var t;return Me.jsx(Fh,{...e,classes:{root:vo("px-3 py-2.5",null==(t=e.classes)?void 0:t.root)}})},SR={button:"_button_2p4hz_1",contained:"_contained_2p4hz_10",common:"_common_2p4hz_10",medium:"_medium_2p4hz_40",small:"_small_2p4hz_43",large:"_large_2p4hz_46",error:"_error_2p4hz_49",outlined:"_outlined_2p4hz_88",text:"_text_2p4hz_166",textGray:"_textGray_2p4hz_244"},ER=({variant:e="contained",className:t="",size:n="medium",children:o,refLink:r,startIcon:i,endIcon:l,dataTest:a,error:s,...u})=>{const c="large"===n||"medium"===n,d=s?"error":"common";return Me.jsxs(Me.Fragment,{children:[Me.jsx("div",{style:{display:"none"},children:Me.jsxs("button",{...u,className:vo(c?"px-2":"px-1.5",SR.button,SR[e],SR[d],SR[n],t),ref:r,"data-test":a,children:[i&&i,o&&Me.jsx("div",{className:"truncate flex items-center justify-center gap-2 "+(c?"px-2":"px-1"),children:o}),l&&l]})}),Me.jsxs("button",{...u,className:vo(c?"px-2":"px-1.5","asma-core-ui-button",e,d,n,t),ref:r,"data-test":a,children:[i&&i,o&&Me.jsx("div",{className:"truncate flex items-center justify-center gap-2 "+(c?"px-2":"px-1"),children:o}),l&&l]})]})},RR=({onCloseText:e,children:t,onClose:n,dataTest:o,showCloseIcon:r=!0,...i})=>Me.jsxs(k,{...i,"data-test":o,onClose:n,style:{zIndex:999,...i.style},children:[r&&Me.jsx("div",{className:"mr-2 mt-2 flex justify-end",children:Me.jsx(ER,{dataTest:`close-button-${o}`,variant:"textGray",endIcon:Me.jsx(tl,{icon:"ic:baseline-close",className:"text-2xl"}),onClick:e=>{n&&n(e,"escapeKeyDown")},className:"text-gray-800",children:e})}),t]}),TR=e=>Me.jsx(S,{...e,"data-test":"styled-dialog-actions",classes:{...e.classes,root:"p-0 m-0 justify-center"},children:Me.jsx("div",{className:vo("flex w-full justify-end space-x-4 p-4",e.className),children:e.children})}),NR=({children:e,classes:t,className:n,...o})=>Me.jsx(E,{...o,"data-test":"styled-dialog-content",classes:{...t,root:"p-4 mx-0 mt-0 w-full"},className:n,children:e}),PR=({children:e,...t})=>e?Me.jsx(R,{...t,"data-test":"styled-dialog-title",classes:{...t.classes,root:"space-x-3 p-4 text-xl font-semibold leading-tight"},children:e}):null,MR=e=>{var t,o,r,i,l,a,s,u,c,d,p,f,h;return Me.jsx(T,{...e,classes:{...e.classes,root:vo("border-solid text-sm font-normal px-3 py-2",n.count(e.children)>1?"items-start":"items-center",null==(t=e.classes)?void 0:t.root),action:vo("p-0 pl-4",null==(o=e.classes)?void 0:o.action),icon:vo("text-2xl text-inherit",null==(r=e.classes)?void 0:r.icon),filled:vo("border",null==(i=e.classes)?void 0:i.filled),filledError:vo("border-error-500 bg-error-100 text-error-700",null==(l=e.classes)?void 0:l.filledError),filledInfo:vo("border-info-500 bg-info-300 text-info-700",null==(a=e.classes)?void 0:a.filledInfo),filledSuccess:vo("border-success-500 bg-success-100 text-success-700",null==(s=e.classes)?void 0:s.filledSuccess),filledWarning:vo("border-warning-500 bg-warning-100 text-warning-700",null==(u=e.classes)?void 0:u.filledWarning),outlined:vo("border-2",null==(c=e.classes)?void 0:c.outlined),outlinedError:vo("border-error-700 text-error-700",null==(d=e.classes)?void 0:d.outlinedError),outlinedInfo:vo("border-info-700 text-info-700",null==(p=e.classes)?void 0:p.outlinedInfo),outlinedSuccess:vo("border-success-700 text-success-700",null==(f=e.classes)?void 0:f.outlinedSuccess),outlinedWarning:vo("border-warning-700 text-warning-700",null==(h=e.classes)?void 0:h.outlinedWarning)},iconMapping:{...e.iconMapping,success:Me.jsx(tl,{icon:"material-symbols:check-circle-outline",fontSize:"inherit"})}})},jR=e=>Me.jsx(N,{...e,classes:{root:vo("mb-0.5 font-semibold text-sm",e.className)}});let _R={data:""},IR=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||_R,DR=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,FR=/\/\*[^]*?\*\/| +/g,AR=/\n+/g,LR=(e,t)=>{let n="",o="",r="";for(let i in e){let l=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+l+";":o+="f"==i[1]?LR(l,i):i+"{"+LR(l,"k"==i[1]?"":t)+"}":"object"==typeof l?o+=LR(l,t?t.replace(/([^,])+/g,(e=>i.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=l&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),r+=LR.p?LR.p(i,l):i+":"+l+";")}return n+(t&&r?t+"{"+r+"}":r)+o},VR={},$R=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+$R(e[n]);return t}return e},zR=(e,t,n,o,r)=>{let i=$R(e),l=VR[i]||(VR[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!VR[l]){let t=i!==e?e:(e=>{let t,n,o=[{}];for(;t=DR.exec(e.replace(FR,""));)t[4]?o.shift():t[3]?(n=t[3].replace(AR," ").trim(),o.unshift(o[0][n]=o[0][n]||{})):o[0][t[1]]=t[2].replace(AR," ").trim();return o[0]})(e);VR[l]=LR(r?{["@keyframes "+l]:t}:t,n?"":"."+l)}let a=n&&VR.g?VR.g:null;return n&&(VR.g=VR[l]),s=VR[l],u=t,c=o,(d=a)?u.data=u.data.replace(d,s):-1===u.data.indexOf(s)&&(u.data=c?s+u.data:u.data+s),l;var s,u,c,d},qR=(e,t,n)=>e.reduce(((e,o,r)=>{let i=t[r];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":LR(e,""):!1===e?"":e}return e+o+(i??"")}),"");function HR(e){let t=this||{},n=e.call?e(t.p):e;return zR(n.unshift?n.raw?qR(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,IR(t.target),t.g,t.o,t.k)}function BR(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function UR(e,t,n){return t&&BR(e.prototype,t),n&&BR(e,n),e}function WR(){return WR=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},WR.apply(this,arguments)}function GR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function KR(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function YR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}HR.bind({g:1}),HR.bind({k:1});var ZR=function(){return""},XR=t.createContext({enqueueSnackbar:ZR,closeSnackbar:ZR}),QR="@media (max-width:599.95px)",JR="@media (min-width:600px)",eT=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},tT=function(e){return""+eT(e.vertical)+eT(e.horizontal)},nT=function(e){return!!e||0===e},oT="unmounted",rT="exited",iT="entering",lT="entered",aT="exiting",sT=function(e){function t(t){var n;n=e.call(this,t)||this;var o,r=t.appear;return n.appearStatus=null,t.in?r?(o=rT,n.appearStatus=iT):o=lT:o=t.unmountOnExit||t.mountOnEnter?oT:rT,n.state={status:o},n.nextCallback=null,n}GR(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===oT?{status:rT}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==iT&&n!==lT&&(t=iT):(n===iT||n===lT)&&(t=aT)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=e,n=e;return null!=e&&"number"!=typeof e&&"string"!=typeof e&&(n=e.exit,t=e.enter),{exit:n,enter:t}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===iT?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===rT&&this.setState({status:oT})},n.performEnter=function(e){var t=this,n=this.props.enter,o=e,r=this.getTimeouts();e||n?(this.props.onEnter&&this.props.onEnter(this.node,o),this.safeSetState({status:iT},(function(){t.props.onEntering&&t.props.onEntering(t.node,o),t.onTransitionEnd(r.enter,(function(){t.safeSetState({status:lT},(function(){t.props.onEntered&&t.props.onEntered(t.node,o)}))}))}))):this.safeSetState({status:lT},(function(){t.props.onEntered&&t.props.onEntered(t.node,o)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts();t?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:aT},(function(){e.props.onExiting&&e.props.onExiting(e.node),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:rT},(function(){e.props.onExited&&e.props.onExited(e.node)}))}))}))):this.safeSetState({status:rT},(function(){e.props.onExited&&e.props.onExited(e.node)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(){n&&(n=!1,t.nextCallback=null,e())},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=null==e&&!this.props.addEndListener;this.node&&!n?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===oT)return null;var t=this.props;return(0,t.children)(e,KR(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},UR(t,[{key:"node",get:function(){var e,t=null===(e=this.props.nodeRef)||void 0===e?void 0:e.current;if(!t)throw new Error("notistack - Custom snackbar is not refForwarding");return t}}]),t}(t.Component);function uT(){}function cT(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function dT(e,t){return p((function(){return null==e&&null==t?null:function(n){cT(e,n),cT(t,n)}}),[e,t])}function pT(e){var t=e.timeout,n=e.style,o=void 0===n?{}:n,r=e.mode;return{duration:"object"==typeof t?t[r]||0:t,easing:o.transitionTimingFunction,delay:o.transitionDelay}}sT.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:uT,onEntering:uT,onEntered:uT,onExit:uT,onExiting:uT,onExited:uT};var fT="cubic-bezier(0.4, 0, 0.2, 1)",hT="cubic-bezier(0.0, 0, 0.2, 1)",mT="cubic-bezier(0.4, 0, 0.6, 1)",gT=function(e){e.scrollTop=e.scrollTop},bT=function(e){return Math.round(e)+"ms"};function vT(e,t){void 0===e&&(e=["all"]);var n=t||{},o=n.duration,r=void 0===o?300:o,i=n.easing,l=void 0===i?fT:i,a=n.delay,s=void 0===a?0:a;return(Array.isArray(e)?e:[e]).map((function(e){var t="string"==typeof r?r:bT(r),n="string"==typeof s?s:bT(s);return e+" "+t+" "+l+" "+n})).join(",")}function yT(e){var t=function(e){return e&&e.ownerDocument||document}(e);return t.defaultView||window}function wT(e,t){if(t){var n=function(e,t){var n,o=t.getBoundingClientRect(),r=yT(t);if(t.fakeTransform)n=t.fakeTransform;else{var i=r.getComputedStyle(t);n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var l=0,a=0;if(n&&"none"!==n&&"string"==typeof n){var s=n.split("(")[1].split(")")[0].split(",");l=parseInt(s[4],10),a=parseInt(s[5],10)}switch(e){case"left":return"translateX("+(r.innerWidth+l-o.left)+"px)";case"right":return"translateX(-"+(o.left+o.width-l)+"px)";case"up":return"translateY("+(r.innerHeight+a-o.top)+"px)";default:return"translateY(-"+(o.top+o.height-a)+"px)"}}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var xT=a((function(e,t){var n=e.children,o=e.direction,l=void 0===o?"down":o,a=e.in,d=e.style,p=e.timeout,f=void 0===p?0:p,h=e.onEnter,m=e.onEntered,g=e.onExit,b=e.onExited,v=KR(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),y=s(null),w=dT(n.ref,y),x=dT(w,t),C=u((function(){y.current&&wT(l,y.current)}),[l]);return c((function(){if(!a&&"down"!==l&&"right"!==l){var e=function(e,t){var n;function o(){for(var o=this,r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];clearTimeout(n),n=setTimeout((function(){e.apply(o,i)}),t)}return void 0===t&&(t=166),o.clear=function(){clearTimeout(n)},o}((function(){y.current&&wT(l,y.current)})),t=yT(y.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[l,a]),c((function(){a||C()}),[a,C]),i(sT,Object.assign({appear:!0,nodeRef:y,onEnter:function(e,t){wT(l,e),gT(e),h&&h(e,t)},onEntered:m,onEntering:function(e){var t=(null==d?void 0:d.transitionTimingFunction)||hT,n=pT({timeout:f,mode:"enter",style:WR({},d,{transitionTimingFunction:t})});e.style.webkitTransition=vT("-webkit-transform",n),e.style.transition=vT("transform",n),e.style.webkitTransform="none",e.style.transform="none"},onExit:function(e){var t=(null==d?void 0:d.transitionTimingFunction)||mT,n=pT({timeout:f,mode:"exit",style:WR({},d,{transitionTimingFunction:t})});e.style.webkitTransition=vT("-webkit-transform",n),e.style.transition=vT("transform",n),wT(l,e),g&&g(e)},onExited:function(e){e.style.webkitTransition="",e.style.transition="",b&&b(e)},in:a,timeout:f},v),(function(e,t){return r(n,WR({ref:x,style:WR({visibility:"exited"!==e||a?void 0:"hidden"},d,{},n.props.style)},t))}))}));xT.displayName="Slide";var CT=function(e){return t.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},e))},OT=function(){return t.createElement(CT,null,t.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},kT=function(){return t.createElement(CT,null,t.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},ST=function(){return t.createElement(CT,null,t.createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},ET=function(){return t.createElement(CT,null,t.createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z"}))},RT={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:t.createElement(OT,null),warning:t.createElement(kT,null),error:t.createElement(ST,null),info:t.createElement(ET,null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:xT,transitionDuration:{enter:225,exit:195}},TT=function(e,t){return function(n,o){return void 0===o&&(o=!1),o?WR({},RT[n],{},t[n],{},e[n]):"autoHideDuration"===n?function(e,t){var n=function(e){return"number"==typeof e||null===e};return n(e)?e:n(t)?t:RT.autoHideDuration}(e.autoHideDuration,t.autoHideDuration):"transitionDuration"===n?function(e,t){var n=function(e,t){return t.some((function(t){return typeof e===t}))};return n(e,["string","number"])?e:n(e,["object"])?WR({},RT.transitionDuration,{},n(t,["object"])&&t,{},e):n(t,["string","number"])?t:n(t,["object"])?WR({},RT.transitionDuration,{},t):RT.transitionDuration}(e.transitionDuration,t.transitionDuration):e[n]||t[n]||RT[n]}};function NT(e){return Object.entries(e).reduce((function(e,t){var n,o=t[0],r=t[1];return WR({},e,((n={})[o]=HR(r),n))}),{})}var PT="notistack-SnackbarContainer",MT="notistack-Snackbar",jT="notistack-CollapseWrapper",_T="notistack-MuiContent",IT=function(e){return"notistack-MuiContent-"+e},DT=NT({root:{height:0},entered:{height:"auto"}}),FT="0px",AT=a((function(e,t){var n=e.children,o=e.in,r=e.onExited,l=s(null),a=s(null),u=dT(t,a),c=function(){return l.current?l.current.clientHeight:0};return i(sT,{in:o,unmountOnExit:!0,onEnter:function(e){e.style.height=FT},onEntered:function(e){e.style.height="auto"},onEntering:function(e){var t=c(),n=pT({timeout:175,mode:"enter"}),o=n.duration,r=n.easing;e.style.transitionDuration="string"==typeof o?o:o+"ms",e.style.height=t+"px",e.style.transitionTimingFunction=r||""},onExit:function(e){e.style.height=c()+"px"},onExited:r,onExiting:function(e){gT(e);var t=pT({timeout:175,mode:"exit"}),n=t.duration,o=t.easing;e.style.transitionDuration="string"==typeof n?n:n+"ms",e.style.height=FT,e.style.transitionTimingFunction=o||""},nodeRef:a,timeout:175},(function(e,t){return i("div",Object.assign({ref:u,className:vo(DT.root,"entered"===e&&DT.entered),style:WR({pointerEvents:"all",overflow:"hidden",minHeight:FT,transition:vT("height")},"entered"===e&&{overflow:"visible"},{},"exited"===e&&!o&&{visibility:"hidden"})},t),i("div",{ref:l,className:jT,style:{display:"flex",width:"100%"}},n))}))}));AT.displayName="Collapse";var LT={right:"left",left:"right",bottom:"up",top:"down"},VT=function(e){return"center"!==e.horizontal?LT[e.horizontal]:LT[e.vertical]},$T=function(e){return"anchorOrigin"+tT(e)},zT=function(){};function qT(e,t){return e.reduce((function(e,n){return null==n?e:function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];var l=[].concat(r);t&&-1===l.indexOf(t)&&l.push(t),e.apply(this,l),n.apply(this,l)}}),zT)}var HT=typeof window<"u"?h:c;function BT(e){var t=s(e);return HT((function(){t.current=e})),u((function(){return t.current.apply(void 0,arguments)}),[])}var UT=a((function(e,t){var n=e.children,o=e.className,r=e.autoHideDuration,l=e.disableWindowBlurListener,a=void 0!==l&&l,d=e.onClose,p=e.id,f=e.open,h=e.SnackbarProps,m=void 0===h?{}:h,g=s(),b=BT((function(){d&&d.apply(void 0,arguments)})),v=BT((function(e){!d||null==e||(g.current&&clearTimeout(g.current),g.current=setTimeout((function(){b(null,"timeout",p)}),e))}));c((function(){return f&&v(r),function(){g.current&&clearTimeout(g.current)}}),[f,r,v]);var y=function(){g.current&&clearTimeout(g.current)},w=u((function(){null!=r&&v(.5*r)}),[r,v]);return c((function(){if(!a&&f)return window.addEventListener("focus",w),window.addEventListener("blur",y),function(){window.removeEventListener("focus",w),window.removeEventListener("blur",y)}}),[a,w,f]),i("div",Object.assign({ref:t},m,{className:vo(MT,o),onMouseEnter:function(e){m.onMouseEnter&&m.onMouseEnter(e),y()},onMouseLeave:function(e){m.onMouseLeave&&m.onMouseLeave(e),w()}}),n)}));UT.displayName="Snackbar";var WT,GT=NT({root:(WT={display:"flex",flexWrap:"wrap",flexGrow:1},WT[JR]={flexGrow:"initial",minWidth:"288px"},WT)}),KT=a((function(e,n){var o=e.className,r=KR(e,["className"]);return t.createElement("div",Object.assign({ref:n,className:vo(GT.root,o)},r))}));KT.displayName="SnackbarContent";var YT=NT({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:"20px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),ZT="notistack-snackbar",XT=a((function(e,n){var o=e.id,r=e.message,i=e.action,l=e.iconVariant,a=e.variant,s=e.hideIconVariant,u=e.style,c=e.className,d=l[a],p=i;return"function"==typeof p&&(p=p(o)),t.createElement(KT,{ref:n,role:"alert","aria-describedby":ZT,style:u,className:vo(_T,IT(a),YT.root,YT[a],c,!s&&d&&YT.lessPadding)},t.createElement("div",{id:ZT,className:YT.message},s?null:d,r),p&&t.createElement("div",{className:YT.action},p))}));XT.displayName="MaterialDesignContent";var QT,JT,eN,tN,nN,oN,rN,iN=m(XT),lN=NT({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),aN=function(e){var n=s(),o=l(!0),r=o[0],i=o[1],a=qT([e.snack.onClose,e.onClose]),d=u((function(){n.current=setTimeout((function(){i((function(e){return!e}))}),125)}),[]);c((function(){return function(){n.current&&clearTimeout(n.current)}}),[]);var f=e.snack,h=e.classes,m=e.Component,g=void 0===m?iN:m,b=p((function(){return function(e){void 0===e&&(e={});var t={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(e).filter((function(e){return!t[e]})).reduce((function(t,n){var o;return WR({},t,((o={})[n]=e[n],o))}),{})}(h)}),[h]),v=f.open,y=f.SnackbarProps,w=f.TransitionComponent,x=f.TransitionProps,C=f.transitionDuration,O=f.disableWindowBlurListener,k=f.content,S=KR(f,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),E=WR({direction:VT(S.anchorOrigin),timeout:C},x),R=k;"function"==typeof R&&(R=R(S.id,S.message));var T=["onEnter","onEntered","onExit","onExited"].reduce((function(t,n){var o;return WR({},t,((o={})[n]=qT([e.snack[n],e[n]],S.id),o))}),{});return t.createElement(AT,{in:r,onExited:T.onExited},t.createElement(UT,{open:v,id:S.id,disableWindowBlurListener:O,autoHideDuration:S.autoHideDuration,className:vo(lN.wrappedRoot,b.root,b[$T(S.anchorOrigin)]),SnackbarProps:y,onClose:a},t.createElement(w,Object.assign({},E,{appear:!0,in:v,onExit:T.onExit,onExited:d,onEnter:T.onEnter,onEntered:qT([T.onEntered,function(){e.snack.requestClose&&a(null,"instructed",e.snack.id)}],S.id)}),R||t.createElement(g,Object.assign({},S)))))},sN={default:20,dense:4},uN={default:6,dense:2},cN="."+jT,dN=NT({root:(QT={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:vT(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},QT[cN]={padding:uN.default+"px 0px",transition:"padding 300ms ease 0ms"},QT.maxWidth="calc(100% - "+2*sN.default+"px)",QT[QR]={width:"100%",maxWidth:"calc(100% - 32px)"},QT),rootDense:(JT={},JT[cN]={padding:uN.dense+"px 0px"},JT),top:{top:sN.default-uN.default+"px",flexDirection:"column"},bottom:{bottom:sN.default-uN.default+"px",flexDirection:"column-reverse"},left:(eN={left:sN.default+"px"},eN[JR]={alignItems:"flex-start"},eN[QR]={left:"16px"},eN),right:(tN={right:sN.default+"px"},tN[JR]={alignItems:"flex-end"},tN[QR]={right:"16px"},tN),center:(nN={left:"50%",transform:"translateX(-50%)"},nN[JR]={alignItems:"center"},nN)}),pN=function(e){var n=e.classes,o=void 0===n?{}:n,r=e.anchorOrigin,i=e.dense,l=e.children,a=vo(PT,dN[r.vertical],dN[r.horizontal],dN.root,o.containerRoot,o["containerAnchorOrigin"+tT(r)],i&&dN.rootDense);return t.createElement("div",{className:a},l)},fN=m(pN),hN="production"!==process.env.NODE_ENV,mN={NO_PERSIST_ALL:"Reached maxSnack while all enqueued snackbars have 'persist' flag. Notistack will dismiss the oldest snackbar anyway to allow other ones in the queue to be presented."},gN=function(e){return!("string"==typeof e||o(e))},bN=function(e){function n(t){var n;return(n=e.call(this,t)||this).enqueueSnackbar=function(e,t){if(void 0===t&&(t={}),null==e)throw new Error("enqueueSnackbar called with invalid argument");var o=gN(e)?e:t,r=gN(e)?e.message:e,i=o.key,l=o.preventDuplicate,a=KR(o,["key","preventDuplicate"]),s=nT(i),u=s?i:(new Date).getTime()+Math.random(),c=TT(a,n.props),d=WR({id:u},a,{message:r,open:!0,entered:!1,requestClose:!1,persist:c("persist"),action:c("action"),content:c("content"),variant:c("variant"),anchorOrigin:c("anchorOrigin"),disableWindowBlurListener:c("disableWindowBlurListener"),autoHideDuration:c("autoHideDuration"),hideIconVariant:c("hideIconVariant"),TransitionComponent:c("TransitionComponent"),transitionDuration:c("transitionDuration"),TransitionProps:c("TransitionProps",!0),iconVariant:c("iconVariant",!0),style:c("style",!0),SnackbarProps:c("SnackbarProps",!0),className:vo(n.props.className,a.className)});return d.persist&&(d.autoHideDuration=void 0),n.setState((function(e){if(void 0===l&&n.props.preventDuplicate||l){var t=function(e){return s?e.id===u:e.message===r},o=e.queue.findIndex(t)>-1,i=e.snacks.findIndex(t)>-1;if(o||i)return e}return n.handleDisplaySnack(WR({},e,{queue:[].concat(e.queue,[d])}))})),u},n.handleDisplaySnack=function(e){return e.snacks.length>=n.maxSnack?n.handleDismissOldest(e):n.processQueue(e)},n.processQueue=function(e){var t=e.queue,n=e.snacks;return t.length>0?WR({},e,{snacks:[].concat(n,[t[0]]),queue:t.slice(1,t.length)}):e},n.handleDismissOldest=function(e){if(e.snacks.some((function(e){return!e.open||e.requestClose})))return e;var t=!1,o=!1;e.snacks.reduce((function(e,t){return e+(t.open&&t.persist?1:0)}),0)===n.maxSnack&&("production"!==process.env.NODE_ENV&&function(e){if(hN){var t=mN[e];typeof console<"u"&&console.error("WARNING - notistack: "+t);try{throw new Error(t)}catch{}}}("NO_PERSIST_ALL"),o=!0);var r=e.snacks.map((function(e){return t||e.persist&&!o?WR({},e):(t=!0,e.entered?(e.onClose&&e.onClose(null,"maxsnack",e.id),n.props.onClose&&n.props.onClose(null,"maxsnack",e.id),WR({},e,{open:!1})):WR({},e,{requestClose:!0}))}));return WR({},e,{snacks:r})},n.handleEnteredSnack=function(e,t,o){if(!nT(o))throw new Error("handleEnteredSnack Cannot be called with undefined key");n.setState((function(e){return{snacks:e.snacks.map((function(e){return e.id===o?WR({},e,{entered:!0}):WR({},e)}))}}))},n.handleCloseSnack=function(e,t,o){n.props.onClose&&n.props.onClose(e,t,o);var r=void 0===o;n.setState((function(e){var t=e.snacks,n=e.queue;return{snacks:t.map((function(e){return r||e.id===o?e.entered?WR({},e,{open:!1}):WR({},e,{requestClose:!0}):WR({},e)})),queue:n.filter((function(e){return e.id!==o}))}}))},n.closeSnackbar=function(e){var t=n.state.snacks.find((function(t){return t.id===e}));nT(e)&&t&&t.onClose&&t.onClose(null,"instructed",e),n.handleCloseSnack(null,"instructed",e)},n.handleExitedSnack=function(e,t){if(!nT(t))throw new Error("handleExitedSnack Cannot be called with undefined key");n.setState((function(e){var o=n.processQueue(WR({},e,{snacks:e.snacks.filter((function(e){return e.id!==t}))}));return 0===o.queue.length?o:n.handleDismissOldest(o)}))},oN=n.enqueueSnackbar,rN=n.closeSnackbar,n.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:n.enqueueSnackbar.bind(YR(n)),closeSnackbar:n.closeSnackbar.bind(YR(n))}},n}return GR(n,e),n.prototype.render=function(){var e=this,n=this.state.contextValue,o=this.props,r=o.domRoot,i=o.children,l=o.dense,a=void 0!==l&&l,s=o.Components,u=void 0===s?{}:s,c=o.classes,d=this.state.snacks.reduce((function(e,t){var n,o=tT(t.anchorOrigin),r=e[o]||[];return WR({},e,((n={})[o]=[].concat(r,[t]),n))}),{}),p=Object.keys(d).map((function(n){var o=d[n],r=o[0];return t.createElement(fN,{key:n,dense:a,anchorOrigin:r.anchorOrigin,classes:c},o.map((function(n){return t.createElement(aN,{key:n.id,snack:n,classes:c,Component:u[n.variant],onClose:e.handleCloseSnack,onEnter:e.props.onEnter,onExit:e.props.onExit,onExited:qT([e.handleExitedSnack,e.props.onExited],n.id),onEntered:qT([e.handleEnteredSnack,e.props.onEntered],n.id)})})))}));return t.createElement(XR.Provider,{value:n},i,r?ce(p,r):p)},UR(n,[{key:"maxSnack",get:function(){return this.props.maxSnack||RT.maxSnack}}]),n}(f),vN=function(){return d(XR)};const yN=a(((e,t)=>{const{id:n,message:o,severity:r,alertClassName:i,alertVariant:l,closeButton:a,...s}=pe(e,["anchorOrigin","autoHideDuration","hideIconVariant","iconVariant","persist"]),{closeSnackbar:u}=vN();return Me.jsx(KT,{ref:t,role:"alert",...s,children:Me.jsx(MR,{className:i,severity:r,variant:l,onClose:a?()=>u(n):void 0,children:o})})})),wN=a(((e,t)=>{const{id:n,message:o,closeButton:r,type:i,...l}=pe(e,["anchorOrigin","autoHideDuration","hideIconVariant","iconVariant","persist"]),{closeSnackbar:a}=vN(),s="loading"===i;return Me.jsx(KT,{ref:t,role:"alert",...l,children:Me.jsxs("div",{className:vo("flex items-center justify-center w-full",s&&"pl-6",r&&"pr-6"),children:["loading"===i?Me.jsx(Fl,{width:20,height:20,className:"left-2 absolute top-1/2 -translate-y-1/2"}):null,Me.jsx("div",{children:o}),r?Me.jsx(Bl,{onClick:()=>a(n),width:20,height:20,className:"right-2 absolute top-1/2 -translate-y-1/2"}):null]})})})),xN=e=>Me.jsx(bN,{...e,Components:{alert:yN,info:wN},autoHideDuration:6e3,anchorOrigin:{vertical:"top",horizontal:"right"},domRoot:document.body,maxSnack:3,classes:{root:"min-w-fit"},className:"w-fit min-w-fit max-w-fit ",children:e.children}),CN=({children:e,...t})=>Me.jsx(P,{autoHideDuration:t.autoHideDuration??3e3,...t,children:e&&Me.jsx("div",{children:e})});function ON(e){oN({message:e,variant:"alert",severity:"error",alertClassName:"min-w-[350px] max-w-[350px]",alertVariant:"filled",closeButton:!0,autoHideDuration:6e3,anchorOrigin:{vertical:"top",horizontal:"right"}})}function kN(e){oN({variant:"alert",message:e,severity:"success",alertClassName:"min-w-[350px] bg-theta-700 flex w-full text-center justify-center items-center !text-[color:var(--colors-link-text-standart)]",alertVariant:"filled",autoHideDuration:6e3,closeButton:!0,anchorOrigin:{vertical:"top",horizontal:"right"}})}function SN(e,t){return oN({variant:"info",message:e,autoHideDuration:6e3,className:"bg-gama-700 text-white !min-w-[100px] !max-w-[400px] rounded-md p-4 flex items-center",anchorOrigin:{vertical:"bottom",horizontal:"center"},...t}),()=>rN(null==t?void 0:t.id)}const EN={info:(e,t)=>SN(e,t),error:(e,t)=>function(e,t){return oN({variant:"info",message:e,autoHideDuration:6e3,className:"bg-red-700 text-white !min-w-[100px] !max-w-[400px] rounded-md p-4 flex items-center",anchorOrigin:{vertical:"bottom",horizontal:"center"},...t}),()=>rN(null==t?void 0:t.id)}(e,t),loading:(e,t)=>SN(e,{...t,type:"loading"})},RN=({dataTest:e,...t})=>Me.jsx(M,{...t,"data-test":e,sx:{...t.sx,"&.MuiCheckbox-root":{color:"var(--colors-delta-500) !important"},"&.MuiCheckbox-root.Mui-checked":{color:"var(--colors-gama-500) !important"},"&.MuiCheckbox-root.MuiCheckbox-indeterminate":{color:"var(--colors-gama-500) !important"},"&.MuiCheckbox-root.Mui-disabled":{color:"var(--colors-delta-200) !important"},"&.MuiCheckbox-root .PrivateSwitchBase-input":{height:"100% !important",width:"100% !important"}}}),TN={input:"_input_sj64y_1",active:"_active_sj64y_1",large:"_large_sj64y_40",small:"_small_sj64y_43",error:"_error_sj64y_46",disabled:"_disabled_sj64y_91",readOnly:"_readOnly_sj64y_136",notEditable:"_notEditable_sj64y_181",label:"_label_sj64y_227",description:"_description_sj64y_248",startIcon:"_startIcon_sj64y_269",endIcon:"_endIcon_sj64y_290"},NN=({description:e,error:t=!1,label:n,refLink:o,startIcon:r,endIcon:i,type:l,readOnly:a,notEditable:s,dataTest:u,size:c="large",className:d,...p})=>{const f=s?"text":l||"text",h="small"===c?TN.small:"",m=t?"error":p.disabled?"disabled":a?"readOnly":s?"notEditable":"active";return Me.jsxs("div",{className:vo("relative",d),children:[Me.jsx("label",{htmlFor:"custom-input",className:`${TN.label} ${TN[m]}`,children:n}),Me.jsx("span",{className:` ${TN.startIcon} ${TN[m]} ${"readOnly"===m?"left-0":""}`,children:r}),Me.jsx("input",{...p,ref:o,type:f,className:vo(TN.input,TN[m],h,"readOnly"===m&&r&&"pl-8","readOnly"===m&&i&&"pr-8",r&&"pl-12",i&&"pr-12",d),readOnly:s||a,"data-test":u}),Me.jsx("span",{className:`${TN.endIcon} ${TN[m]} ${"readOnly"===m?"right-0":""}`,children:i}),Me.jsx("div",{className:`${TN.description} ${TN[m]}`,children:e})]})},PN=({allowClear:e,onClear:t,dataTest:n,...o})=>Me.jsx(j,{...o,"data-test":n,type:"mui-input",InputProps:e&&o.value?{endAdornment:Me.jsx("div",{className:"z-40 hover:bg-gama-100 duration-300 absolute right-4 p-[2px] rounded-full flex items-center justify-center",onClick:e=>{e.stopPropagation(),e.preventDefault(),null==t||t()},children:Me.jsx(Bl,{width:18,height:18})})}:o.InputProps,sx:{"& input:-webkit-autofill, & .MuiInputBase-root:has(> input:-webkit-autofill)":{backgroundColor:"#e8f0fe !important"},"& input":{backgroundColor:"transparent"},"& .MuiInputBase-root":{backgroundColor:"transparent"},"& .MuiInputBase-colorPrimary fieldset":{borderColor:"var(--colors-delta-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused fieldset":{borderColor:"var(--colors-gama-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused::after":{borderColor:"var(--colors-gama-500) !important"},"& .MuiInputBase-colorPrimary:hover fieldset":{borderColor:"var(--colors-gama-300) !important",borderWidth:"2px !important"},"& .MuiInputBase-colorPrimary.Mui-focused:hover fieldset":{borderColor:"var(--colors-gama-500) !important"},"& .MuiInputBase-colorPrimary.Mui-error fieldset":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-error:hover fieldset":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused.Mui-error fieldset":{borderColor:"#d3302f !important"},"& .MuiInputBase-colorPrimary.Mui-disabled fieldset":{borderColor:"var(--colors-delta-300) !important"},"& label.Mui-focused":{color:"var(--colors-gama-500) !important"},"& label.Mui-focused.Mui-error":{color:"#d3302f !important"},"& label.Mui-disabled":{color:"var(--colors-delta-300) !important"},"& .MuiOutlinedInput-input::placeholder":{color:"#666666",opacity:"100"},"& .MuiOutlinedInput-input.Mui-disabled":{WebkitTextFillColor:"var(--colors-delta-300) !important"},...o.sx}}),MN={textarea:"_textarea_1p8hl_1",active:"_active_1p8hl_1",error:"_error_1p8hl_40",label:"_label_1p8hl_80",disabled:"_disabled_1p8hl_88",description:"_description_1p8hl_93"},jN=({id:e,variant:t="active",label:n="",labelClassName:o="",description:r="",value:i="",minRows:a=3,maxRows:u=1/0,disabled:d,error:p,errorMessage:f,containerClassName:m="",className:g="",maxLength:b=1/0,counter:v,refLink:y,dataTest:w,counterLimit:x,...C})=>{const O=s(null),k=y||O,S=!(!v||!x),[E,R]=l(!1);c((()=>{R(!0)}),[]),((e,t,n,o,r,i)=>{h((()=>{if(e){const t=i?32:0;e.style.height="auto";const n=20,r=e.scrollHeight-24;Math.ceil(r/n)>o?e.style.height=`${n*o+24+t}px`:e.style.height=`${e.scrollHeight+t}px`}}),[e,t,n,o,r,i])})(k.current,i,a,u,E,S),u<a&&(a=u);const[T,N]=l(i.length);c((()=>{N(i.length)}),[i]);const P=p?"error":"active",M=p?"error":d?"disabled":"active";return Me.jsxs("div",{className:`flex flex-col gap-1 relative ${m}`,"data-test":w,children:[Me.jsx("label",{htmlFor:e,className:`${MN.label} ${MN[M]} ${o}`,children:n}),Me.jsx("span",{className:`${MN.description} ${MN[M]}`,children:p?f:r}),"view_only"===t?Me.jsx("div",{className:"font-roboto text-sm font-normal pt-3 text-gray-700",children:i}):"not_editable"===t?Me.jsx("div",{className:"font-roboto text-sm font-normal rounded p-3 bg-gray-200 text-gray-700",children:i}):Me.jsx("textarea",{...C,id:e,ref:k,className:`${MN.textarea} ${MN[P]} ${g} ${S?"pb-[32px]":""}`,wrap:"soft",value:i,disabled:d,maxLength:b}),S&&Me.jsxs("div",{className:"flex justify-end absolute bottom-3 right-3 text-[10px] font-roboto h-[15px] pointer-events-none",children:[T,"/",x]})]})};var _N=function(){this.__data__=[],this.size=0};var IN=function(e,t){return e===t||e!=e&&t!=t},DN=IN;var FN=function(e,t){for(var n=e.length;n--;)if(DN(e[n][0],t))return n;return-1},AN=FN,LN=Array.prototype.splice;var VN=function(e){var t=this.__data__,n=AN(t,e);return!(n<0)&&(n==t.length-1?t.pop():LN.call(t,n,1),--this.size,!0)},$N=FN;var zN=function(e){var t=this.__data__,n=$N(t,e);return n<0?void 0:t[n][1]},qN=FN;var HN=function(e){return qN(this.__data__,e)>-1},BN=FN;var UN=function(e,t){var n=this.__data__,o=BN(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this},WN=_N,GN=VN,KN=zN,YN=HN,ZN=UN;function XN(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}XN.prototype.clear=WN,XN.prototype.delete=GN,XN.prototype.get=KN,XN.prototype.has=YN,XN.prototype.set=ZN;var QN=XN,JN=QN;var eP=function(){this.__data__=new JN,this.size=0};var tP=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var nP=function(e){return this.__data__.get(e)};var oP=function(e){return this.__data__.has(e)},rP="object"==typeof ke&&ke&&ke.Object===Object&&ke,iP=rP,lP="object"==typeof self&&self&&self.Object===Object&&self,aP=iP||lP||Function("return this")(),sP=aP.Symbol,uP=sP,cP=Object.prototype,dP=cP.hasOwnProperty,pP=cP.toString,fP=uP?uP.toStringTag:void 0;var hP=function(e){var t=dP.call(e,fP),n=e[fP];try{e[fP]=void 0;var o=!0}catch{}var r=pP.call(e);return o&&(t?e[fP]=n:delete e[fP]),r},mP=Object.prototype.toString;var gP=function(e){return mP.call(e)},bP=hP,vP=gP,yP=sP?sP.toStringTag:void 0;var wP=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":yP&&yP in Object(e)?bP(e):vP(e)};var xP=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},CP=wP,OP=xP;var kP=function(e){if(!OP(e))return!1;var t=CP(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},SP=aP["__core-js_shared__"],EP=function(){var e=/[^.]+$/.exec(SP&&SP.keys&&SP.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var RP=function(e){return!!EP&&EP in e},TP=Function.prototype.toString;var NP=function(e){if(null!=e){try{return TP.call(e)}catch{}try{return e+""}catch{}}return""},PP=kP,MP=RP,jP=xP,_P=NP,IP=/^\[object .+?Constructor\]$/,DP=Function.prototype,FP=Object.prototype,AP=DP.toString,LP=FP.hasOwnProperty,VP=RegExp("^"+AP.call(LP).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var $P=function(e){return!(!jP(e)||MP(e))&&(PP(e)?VP:IP).test(_P(e))};var zP=function(e,t){return null==e?void 0:e[t]},qP=$P,HP=zP;var BP=function(e,t){var n=HP(e,t);return qP(n)?n:void 0},UP=BP(aP,"Map"),WP=BP(Object,"create"),GP=WP;var KP=function(){this.__data__=GP?GP(null):{},this.size=0};var YP=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ZP=WP,XP=Object.prototype.hasOwnProperty;var QP=function(e){var t=this.__data__;if(ZP){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return XP.call(t,e)?t[e]:void 0},JP=WP,eM=Object.prototype.hasOwnProperty;var tM=function(e){var t=this.__data__;return JP?void 0!==t[e]:eM.call(t,e)},nM=WP;var oM=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nM&&void 0===t?"__lodash_hash_undefined__":t,this},rM=KP,iM=YP,lM=QP,aM=tM,sM=oM;function uM(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}uM.prototype.clear=rM,uM.prototype.delete=iM,uM.prototype.get=lM,uM.prototype.has=aM,uM.prototype.set=sM;var cM=uM,dM=QN,pM=UP;var fM=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},hM=fM;var mM=function(e,t){var n=e.__data__;return hM(t)?n["string"==typeof t?"string":"hash"]:n.map},gM=mM;var bM=function(e){var t=gM(this,e).delete(e);return this.size-=t?1:0,t},vM=mM;var yM=function(e){return vM(this,e).get(e)},wM=mM;var xM=function(e){return wM(this,e).has(e)},CM=mM;var OM=function(e,t){var n=CM(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this},kM=function(){this.size=0,this.__data__={hash:new cM,map:new(pM||dM),string:new cM}},SM=bM,EM=yM,RM=xM,TM=OM;function NM(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}NM.prototype.clear=kM,NM.prototype.delete=SM,NM.prototype.get=EM,NM.prototype.has=RM,NM.prototype.set=TM;var PM=NM,MM=QN,jM=UP,_M=PM;var IM=function(e,t){var n=this.__data__;if(n instanceof MM){var o=n.__data__;if(!jM||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new _M(o)}return n.set(e,t),this.size=n.size,this},DM=QN,FM=eP,AM=tP,LM=nP,VM=oP,$M=IM;function zM(e){var t=this.__data__=new DM(e);this.size=t.size}zM.prototype.clear=FM,zM.prototype.delete=AM,zM.prototype.get=LM,zM.prototype.has=VM,zM.prototype.set=$M;var qM=zM;var HM=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var BM=function(e){return this.__data__.has(e)},UM=PM,WM=HM,GM=BM;function KM(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new UM;++t<n;)this.add(e[t])}KM.prototype.add=KM.prototype.push=WM,KM.prototype.has=GM;var YM=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1};var ZM=function(e,t){return e.has(t)},XM=KM,QM=YM,JM=ZM;var ej=function(e,t,n,o,r,i){var l=1&n,a=e.length,s=t.length;if(a!=s&&!(l&&s>a))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,p=!0,f=2&n?new XM:void 0;for(i.set(e,t),i.set(t,e);++d<a;){var h=e[d],m=t[d];if(o)var g=l?o(m,h,d,t,e,i):o(h,m,d,e,t,i);if(void 0!==g){if(g)continue;p=!1;break}if(f){if(!QM(t,(function(e,t){if(!JM(f,t)&&(h===e||r(h,e,n,o,i)))return f.push(t)}))){p=!1;break}}else if(h!==m&&!r(h,m,n,o,i)){p=!1;break}}return i.delete(e),i.delete(t),p};var tj=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n};var nj=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},oj=aP.Uint8Array,rj=IN,ij=ej,lj=tj,aj=nj,sj=sP?sP.prototype:void 0,uj=sj?sj.valueOf:void 0;var cj=function(e,t,n,o,r,i,l){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new oj(e),new oj(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return rj(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=lj;case"[object Set]":var s=1&o;if(a||(a=aj),e.size!=t.size&&!s)return!1;var u=l.get(e);if(u)return u==t;o|=2,l.set(e,t);var c=ij(a(e),a(t),o,r,i,l);return l.delete(e),c;case"[object Symbol]":if(uj)return uj.call(e)==uj.call(t)}return!1};var dj=function(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e},pj=Array.isArray,fj=dj,hj=pj;var mj=function(e,t,n){var o=t(e);return hj(e)?o:fj(o,n(e))};var gj=function(e,t){for(var n=-1,o=null==e?0:e.length,r=0,i=[];++n<o;){var l=e[n];t(l,n,e)&&(i[r++]=l)}return i};var bj=gj,vj=function(){return[]},yj=Object.prototype.propertyIsEnumerable,wj=Object.getOwnPropertySymbols,xj=wj?function(e){return null==e?[]:(e=Object(e),bj(wj(e),(function(t){return yj.call(e,t)})))}:vj,Cj=xj;var Oj=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o};var kj=function(e){return null!=e&&"object"==typeof e},Sj=wP,Ej=kj;var Rj=function(e){return Ej(e)&&"[object Arguments]"==Sj(e)},Tj=Rj,Nj=kj,Pj=Object.prototype,Mj=Pj.hasOwnProperty,jj=Pj.propertyIsEnumerable,_j=Tj(function(){return arguments}())?Tj:function(e){return Nj(e)&&Mj.call(e,"callee")&&!jj.call(e,"callee")},Ij=_j,Dj={exports:{}};var Fj=function(){return!1};!function(e,t){var n=aP,o=Fj,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,l=i&&i.exports===r?n.Buffer:void 0,a=(l?l.isBuffer:void 0)||o;e.exports=a}(Dj,Dj.exports);var Aj=Dj.exports,Lj=/^(?:0|[1-9]\d*)$/;var Vj=function(e,t){var n=typeof e;return!!(t=t??9007199254740991)&&("number"==n||"symbol"!=n&&Lj.test(e))&&e>-1&&e%1==0&&e<t};var $j=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},zj=wP,qj=$j,Hj=kj,Bj={};Bj["[object Float32Array]"]=Bj["[object Float64Array]"]=Bj["[object Int8Array]"]=Bj["[object Int16Array]"]=Bj["[object Int32Array]"]=Bj["[object Uint8Array]"]=Bj["[object Uint8ClampedArray]"]=Bj["[object Uint16Array]"]=Bj["[object Uint32Array]"]=!0,Bj["[object Arguments]"]=Bj["[object Array]"]=Bj["[object ArrayBuffer]"]=Bj["[object Boolean]"]=Bj["[object DataView]"]=Bj["[object Date]"]=Bj["[object Error]"]=Bj["[object Function]"]=Bj["[object Map]"]=Bj["[object Number]"]=Bj["[object Object]"]=Bj["[object RegExp]"]=Bj["[object Set]"]=Bj["[object String]"]=Bj["[object WeakMap]"]=!1;var Uj=function(e){return Hj(e)&&qj(e.length)&&!!Bj[zj(e)]};var Wj=function(e){return function(t){return e(t)}},Gj={exports:{}};!function(e,t){var n=rP,o=t&&!t.nodeType&&t,r=o&&e&&!e.nodeType&&e,i=r&&r.exports===o&&n.process,l=function(){try{return r&&r.require&&r.require("util").types||i&&i.binding&&i.binding("util")}catch{}}();e.exports=l}(Gj,Gj.exports);var Kj=Gj.exports,Yj=Uj,Zj=Wj,Xj=Kj&&Kj.isTypedArray,Qj=Xj?Zj(Xj):Yj,Jj=Oj,e_=Ij,t_=pj,n_=Aj,o_=Vj,r_=Qj,i_=Object.prototype.hasOwnProperty;var l_=function(e,t){var n=t_(e),o=!n&&e_(e),r=!n&&!o&&n_(e),i=!n&&!o&&!r&&r_(e),l=n||o||r||i,a=l?Jj(e.length,String):[],s=a.length;for(var u in e)(t||i_.call(e,u))&&(!l||!("length"==u||r&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||o_(u,s)))&&a.push(u);return a},a_=Object.prototype;var s_=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||a_)};var u_=function(e,t){return function(n){return e(t(n))}},c_=u_(Object.keys,Object),d_=s_,p_=c_,f_=Object.prototype.hasOwnProperty;var h_=function(e){if(!d_(e))return p_(e);var t=[];for(var n in Object(e))f_.call(e,n)&&"constructor"!=n&&t.push(n);return t},m_=kP,g_=$j;var b_=function(e){return null!=e&&g_(e.length)&&!m_(e)},v_=l_,y_=h_,w_=b_;var x_=function(e){return w_(e)?v_(e):y_(e)},C_=mj,O_=Cj,k_=x_;var S_=function(e){return C_(e,k_,O_)},E_=S_,R_=Object.prototype.hasOwnProperty;var T_=function(e,t,n,o,r,i){var l=1&n,a=E_(e),s=a.length;if(s!=E_(t).length&&!l)return!1;for(var u=s;u--;){var c=a[u];if(!(l?c in t:R_.call(t,c)))return!1}var d=i.get(e),p=i.get(t);if(d&&p)return d==t&&p==e;var f=!0;i.set(e,t),i.set(t,e);for(var h=l;++u<s;){var m=e[c=a[u]],g=t[c];if(o)var b=l?o(g,m,c,t,e,i):o(m,g,c,e,t,i);if(!(void 0===b?m===g||r(m,g,n,o,i):b)){f=!1;break}h||(h="constructor"==c)}if(f&&!h){var v=e.constructor,y=t.constructor;v!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y)&&(f=!1)}return i.delete(e),i.delete(t),f},N_=BP(aP,"DataView"),P_=UP,M_=BP(aP,"Promise"),j_=BP(aP,"Set"),__=BP(aP,"WeakMap"),I_=wP,D_=NP,F_="[object Map]",A_="[object Promise]",L_="[object Set]",V_="[object WeakMap]",$_="[object DataView]",z_=D_(N_),q_=D_(P_),H_=D_(M_),B_=D_(j_),U_=D_(__),W_=I_;(N_&&W_(new N_(new ArrayBuffer(1)))!=$_||P_&&W_(new P_)!=F_||M_&&W_(M_.resolve())!=A_||j_&&W_(new j_)!=L_||__&&W_(new __)!=V_)&&(W_=function(e){var t=I_(e),n="[object Object]"==t?e.constructor:void 0,o=n?D_(n):"";if(o)switch(o){case z_:return $_;case q_:return F_;case H_:return A_;case B_:return L_;case U_:return V_}return t});var G_=qM,K_=ej,Y_=cj,Z_=T_,X_=W_,Q_=pj,J_=Aj,eI=Qj,tI="[object Arguments]",nI="[object Array]",oI="[object Object]",rI=Object.prototype.hasOwnProperty;var iI=function(e,t,n,o,r,i){var l=Q_(e),a=Q_(t),s=l?nI:X_(e),u=a?nI:X_(t),c=(s=s==tI?oI:s)==oI,d=(u=u==tI?oI:u)==oI,p=s==u;if(p&&J_(e)){if(!J_(t))return!1;l=!0,c=!1}if(p&&!c)return i||(i=new G_),l||eI(e)?K_(e,t,n,o,r,i):Y_(e,t,s,n,o,r,i);if(!(1&n)){var f=c&&rI.call(e,"__wrapped__"),h=d&&rI.call(t,"__wrapped__");if(f||h){var m=f?e.value():e,g=h?t.value():t;return i||(i=new G_),r(m,g,n,o,i)}}return!!p&&(i||(i=new G_),Z_(e,t,n,o,r,i))},lI=iI,aI=kj;var sI=function e(t,n,o,r,i){return t===n||(null==t||null==n||!aI(t)&&!aI(n)?t!=t&&n!=n:lI(t,n,o,r,e,i))},uI=sI;var cI=function(e,t){return uI(e,t)},dI={exports:{}};
|
|
196
196
|
/*!
|
|
197
197
|
* Quill Editor v1.3.7
|
|
198
198
|
* https://quilljs.com/
|
|
199
199
|
* Copyright (c) 2014, Jason Chen
|
|
200
200
|
* Copyright (c) 2013, salesforce.com
|
|
201
|
-
*/typeof self<"u"&&self;var pI=dI.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),r=n(18),i=n(19),l=n(45),a=n(46),s=n(47),u=n(48),c=n(49),d=n(12),p=n(32),f=n(33),h=n(31),m=n(1),g={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:o.default,Format:r.default,Leaf:i.default,Embed:u.default,Scroll:l.default,Block:s.default,Inline:a.default,Text:c.default,Attributor:{Attribute:d.default,Class:p.default,Style:f.default,Store:h.default}};t.default=g},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return r(t,e),t}(Error);t.ParchmentError=i;var l,a={},s={},u={},c={};function d(e,t){var n=f(e);if(null==n)throw new i("Unable to create "+e+" blot");var o=n,r=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:o.create(t);return new o(r,t)}function p(e,n){return void 0===n&&(n=!1),null==e?null:null!=e[t.DATA_KEY]?e[t.DATA_KEY].blot:n?p(e.parentNode,n):null}function f(e,t){var n;if(void 0===t&&(t=l.ANY),"string"==typeof e)n=c[e]||a[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=c.text;else if("number"==typeof e)e&l.LEVEL&l.BLOCK?n=c.block:e&l.LEVEL&l.INLINE&&(n=c.inline);else if(e instanceof HTMLElement){var o=(e.getAttribute("class")||"").split(/\s+/);for(var r in o)if(n=s[o[r]])break;n=n||u[e.tagName]}return null==n?null:t&l.LEVEL&n.scope&&t&l.TYPE&n.scope?n:null}function h(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length>1)return e.map((function(e){return h(e)}));var n=e[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new i("Invalid definition");if("abstract"===n.blotName)throw new i("Cannot register abstract class");return c[n.blotName||n.attrName]=n,"string"==typeof n.keyName?a[n.keyName]=n:(null!=n.className&&(s[n.className]=n),null!=n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(e){return e.toUpperCase()})):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach((function(e){(null==u[e]||null==n.className)&&(u[e]=n)})))),n}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(l=t.Scope||(t.Scope={})),t.create=d,t.find=p,t.query=f,t.register=h},function(e,t,n){var o=n(51),r=n(11),i=n(3),l=n(20),a=String.fromCharCode(0),s=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};s.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},s.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},s.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},s.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=i(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(r(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},s.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},s.prototype.filter=function(e){return this.ops.filter(e)},s.prototype.forEach=function(e){this.ops.forEach(e)},s.prototype.map=function(e){return this.ops.map(e)},s.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(o){(e(o)?t:n).push(o)})),[t,n]},s.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},s.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+l.length(t):t.delete?e-t.delete:e}),0)},s.prototype.length=function(){return this.reduce((function(e,t){return e+l.length(t)}),0)},s.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],o=l.iterator(this.ops),r=0;r<t&&o.hasNext();){var i;r<e?i=o.next(e-r):(i=o.next(t-r),n.push(i)),r+=l.length(i)}return new s(n)},s.prototype.compose=function(e){var t=l.iterator(this.ops),n=l.iterator(e.ops),o=[],i=n.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var a=i.retain;"insert"===t.peekType()&&t.peekLength()<=a;)a-=t.peekLength(),o.push(t.next());i.retain-a>0&&n.next(i.retain-a)}for(var u=new s(o);t.hasNext()||n.hasNext();)if("insert"===n.peekType())u.push(n.next());else if("delete"===t.peekType())u.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),d=t.next(c),p=n.next(c);if("number"==typeof p.retain){var f={};"number"==typeof d.retain?f.retain=c:f.insert=d.insert;var h=l.attributes.compose(d.attributes,p.attributes,"number"==typeof d.retain);if(h&&(f.attributes=h),u.push(f),!n.hasNext()&&r(u.ops[u.ops.length-1],f)){var m=new s(t.rest());return u.concat(m).chop()}}else"number"==typeof p.delete&&"number"==typeof d.retain&&u.push(p)}return u.chop()},s.prototype.concat=function(e){var t=new s(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},s.prototype.diff=function(e,t){if(this.ops===e.ops)return new s;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:a;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),i=new s,u=o(n[0],n[1],t),c=l.iterator(this.ops),d=l.iterator(e.ops);return u.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case o.INSERT:n=Math.min(d.peekLength(),t),i.push(d.next(n));break;case o.DELETE:n=Math.min(t,c.peekLength()),c.next(n),i.delete(n);break;case o.EQUAL:n=Math.min(c.peekLength(),d.peekLength(),t);var a=c.next(n),s=d.next(n);r(a.insert,s.insert)?i.retain(n,l.attributes.diff(a.attributes,s.attributes)):i.push(s).delete(n)}t-=n}})),i.chop()},s.prototype.eachLine=function(e,t){t=t||"\n";for(var n=l.iterator(this.ops),o=new s,r=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),a=l.length(i)-n.peekLength(),u="string"==typeof i.insert?i.insert.indexOf(t,a)-a:-1;if(u<0)o.push(n.next());else if(u>0)o.push(n.next(u));else{if(!1===e(o,n.next(1).attributes||{},r))return;r+=1,o=new s}}o.length()>0&&e(o,{},r)},s.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=l.iterator(this.ops),o=l.iterator(e.ops),r=new s;n.hasNext()||o.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===o.peekType())if("insert"===o.peekType())r.push(o.next());else{var i=Math.min(n.peekLength(),o.peekLength()),a=n.next(i),u=o.next(i);if(a.delete)continue;u.delete?r.push(u):r.retain(i,l.attributes.transform(a.attributes,u.attributes,t))}else r.retain(l.length(n.next()));return r.chop()},s.prototype.transformPosition=function(e,t){t=!!t;for(var n=l.iterator(this.ops),o=0;n.hasNext()&&o<=e;){var r=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(o<e||!t)&&(e+=r),o+=r):e-=Math.min(r,e-o)}return e},e.exports=s},function(e,t){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)},a=function(e){if(!e||"[object Object]"!==o.call(e))return!1;var t,r=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!i)return!1;for(t in e);return typeof t>"u"||n.call(e,t)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,n,o,r,i,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)o=u(d,n),d!==(r=u(t,n))&&(h&&r&&(a(r)||(i=l(r)))?(i?(i=!1,c=o&&l(o)?o:[]):c=o&&a(o)?o:{},s(d,{name:n,newValue:e(h,c,r)})):typeof r<"u"&&s(d,{name:n,newValue:r}));return d}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=d(n(3)),l=d(n(2)),a=d(n(0)),s=d(n(16)),u=d(n(6)),c=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=1,g=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),o(t,[{key:"attach",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new a.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new l.default).insert(this.value(),(0,i.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=a.default.query(e,a.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,o){this.format(n,o)}},{key:"insertAt",value:function(e,n,o){if("string"==typeof n&&n.endsWith("\n")){var i=a.default.create(b.blotName);this.parent.insertBefore(i,0===e?this:this.next),i.insertAt(0,n.slice(0,-1))}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o)}}]),t}(a.default.Embed);g.scope=a.default.Scope.BLOCK_BLOT;var b=function(e){function t(e){p(this,t);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return h(t,e),o(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(a.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),v(t))}),new l.default).insert("\n",v(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,o,i){n<=0||(a.default.query(o,a.default.Scope.BLOCK)?e+n===this.length()&&this.format(o,i):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),o,i),this.cache={})}},{key:"insertAt",value:function(e,n,o){if(null!=o)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o);if(0!==n.length){var i=n.split("\n"),l=i.shift();l.length>0&&(e<this.length()-1||null==this.children.tail?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),l):this.children.tail.insertAt(this.children.tail.length(),l),this.cache={});var a=this;i.reduce((function(e,t){return(a=a.split(e,!0)).insertAt(0,t),t.length}),e+l.length)}}},{key:"insertBefore",value:function(e,n){var o=this.children.head;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),o instanceof s.default&&o.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+m),this.cache.length}},{key:"moveChildren",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-m)){var o=this.clone();return 0===e?(this.parent.insertBefore(o,this),this):(this.parent.insertBefore(o,this.next),o)}var i=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},i}}]),t}(a.default.Block);function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e||("function"==typeof e.formats&&(t=(0,i.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope)?t:v(e.parent,t)}b.blotName="block",b.tagName="P",b.defaultChild="break",b.allowedChildren=[u.default,a.default.Embed,c.default],t.bubbleFormats=v,t.BlockEmbed=g,t.default=b},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var o="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},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();n(50);var l=g(n(2)),a=g(n(14)),s=g(n(8)),u=g(n(9)),c=g(n(0)),d=n(15),p=g(d),f=g(n(3)),h=g(n(10)),m=g(n(34));function g(e){return e&&e.__esModule?e:{default:e}}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var y=(0,h.default)("quill"),w=function(){function e(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(v(this,e),this.options=x(t,o),this.container=this.options.container,null==this.container)return y.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new s.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new a.default(this.scroll),this.selection=new p.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e){e===s.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(s.default.events.SCROLL_UPDATE,(function(e,t){var o=n.selection.lastRange,r=o&&0===o.length?o.index:void 0;C.call(n,(function(){return n.editor.update(null,t,r)}),e)}));var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+r+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||c.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&y.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var r=e.attrName||e.blotName;"string"==typeof r?this.register("formats/"+r,e,t):Object.keys(e).forEach((function(o){n.register(o,e[o],t)}))}else null!=this.imports[e]&&!o&&y.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?c.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),i(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var o=this,i=O(e,t,n),l=r(i,4);return e=l[0],t=l[1],n=l[3],C.call(this,(function(){return o.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;return C.call(this,(function(){var o=n.getSelection(!0),r=new l.default;if(null==o)return r;if(c.default.query(e,c.default.Scope.BLOCK))r=n.editor.formatLine(o.index,o.length,b({},e,t));else{if(0===o.length)return n.selection.format(e,t),r;r=n.editor.formatText(o.index,o.length,b({},e,t))}return n.setSelection(o,s.default.sources.SILENT),r}),o)}},{key:"formatLine",value:function(e,t,n,o,i){var l=this,a=void 0,s=O(e,t,n,o,i),u=r(s,4);return e=u[0],t=u[1],a=u[2],i=u[3],C.call(this,(function(){return l.editor.formatLine(e,t,a)}),i,e,0)}},{key:"formatText",value:function(e,t,n,o,i){var l=this,a=void 0,s=O(e,t,n,o,i),u=r(s,4);return e=u[0],t=u[1],a=u[2],i=u[3],C.call(this,(function(){return l.editor.formatText(e,t,a)}),i,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var o=this.container.getBoundingClientRect();return{bottom:n.bottom-o.top,height:n.height,left:n.left-o.left,right:n.right-o.left,top:n.top-o.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=O(e,t),o=r(n,2);return e=o[0],t=o[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=O(e,t),o=r(n,2);return e=o[0],t=o[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,o){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return C.call(this,(function(){return r.editor.insertEmbed(t,n,o)}),i,t)}},{key:"insertText",value:function(e,t,n,o,i){var l=this,a=void 0,s=O(e,0,n,o,i),u=r(s,4);return e=u[0],a=u[2],i=u[3],C.call(this,(function(){return l.editor.insertText(e,t,a)}),i,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var o=this,i=O(e,t,n),l=r(i,4);return e=l[0],t=l[1],n=l[3],C.call(this,(function(){return o.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return C.call(this,(function(){e=new l.default(e);var n=t.getLength(),o=t.editor.deleteText(0,n),r=t.editor.applyDelta(e),i=r.ops[r.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),r.delete(1)),o.compose(r)}),n)}},{key:"setSelection",value:function(t,n,o){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var i=O(t,n,o),l=r(i,4);t=l[0],n=l[1],o=l[3],this.selection.setRange(new d.Range(t,n),o),o!==s.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API,n=(new l.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return C.call(this,(function(){return e=new l.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function x(e,t){if((t=(0,f.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==w.DEFAULTS.theme){if(t.theme=w.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=m.default;var n=(0,f.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var o=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=w.import("modules/"+t);return null==n?y.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,f.default)(!0,{},w.DEFAULTS,{modules:o},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function C(e,t,n,o){if(this.options.strict&&!this.isEnabled()&&t===s.default.sources.USER)return new l.default;var r=null==n?null:this.getSelection(),i=this.editor.delta,a=e();if(null!=r&&(!0===n&&(n=r.index),null==o?r=k(r,a,t):0!==o&&(r=k(r,n,o,t)),this.setSelection(r,s.default.sources.SILENT)),a.length()>0){var u,c,d=[s.default.events.TEXT_CHANGE,a,i,t];(u=this.emitter).emit.apply(u,[s.default.events.EDITOR_CHANGE].concat(d)),t!==s.default.sources.SILENT&&(c=this.emitter).emit.apply(c,d)}return a}function O(e,t,n,r,i){var l={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(i=r,r=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(i=r,r=n,n=t,t=0),"object"===(typeof n>"u"?"undefined":o(n))?(l=n,i=r):"string"==typeof n&&(null!=r?l[n]=r:i=n),[e,t,l,i=i||s.default.sources.API]}function k(e,t,n,o){if(null==e)return null;var i=void 0,a=void 0;if(t instanceof l.default){var u=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,o!==s.default.sources.USER)})),c=r(u,2);i=c[0],a=c[1]}else{var p=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&o===s.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),f=r(p,2);i=f[0],a=f[1]}return new d.Range(i,a-i)}w.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},w.events=s.default.events,w.sources=s.default.sources,w.version="1.3.7",w.imports={delta:l.default,parchment:c.default,"core/module":u.default,"core/theme":m.default},t.expandConfig=x,t.overload=O,t.default=w},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=a(n(7)),l=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),o(t,[{key:"formatAt",value:function(e,n,o,i){if(t.compare(this.statics.blotName,o)<0&&l.default.query(o,l.default.Scope.BLOT)){var a=this.isolate(e,n);i&&a.wrap(o,i)}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,o,i)}},{key:"optimize",value:function(e){if(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var o=t.order.indexOf(e),r=t.order.indexOf(n);return o>=0||r>=0?o-r:e===n?0:e<n?-1:1}}]),t}(l.default.Inline);d.allowedChildren=[d,l.default.Embed,i.default],d.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=d},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(o(n(0)).default.Text);t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=l(n(54));function l(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=(0,l(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var d=function(e){function t(){a(this,t);var e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",c.error),e}return u(t,e),o(t,[{key:"emit",value:function(){c.log.apply(c,arguments),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];(this.listeners[e.type]||[]).forEach((function(t){var o=t.node,r=t.handler;(e.target===o||o.contains(e.target))&&r.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(i.default);d.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},d.sources={API:"api",SILENT:"silent",USER:"user"},t.default=d},function(e,t,n){function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.quill=t,this.options=n};r.DEFAULTS={},t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=["error","warn","log","info"],r="warn";function i(e){if(o.indexOf(e)<=o.indexOf(r)){for(var t,n=arguments.length,i=Array(n>1?n-1:0),l=1;l<n;l++)i[l-1]=arguments[l];(t=console)[e].apply(t,i)}}function l(e){return o.reduce((function(t,n){return t[n]=i.bind(console,n,e),t}),{})}i.level=l.level=function(e){r=e},t.default=l},function(e,t,n){var o=Array.prototype.slice,r=n(52),i=n(53),l=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:u(e,t,n))};function a(e){return null==e}function s(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}function u(e,t,n){var u,c;if(a(e)||a(t)||e.prototype!==t.prototype)return!1;if(i(e))return!!i(t)&&(e=o.call(e),t=o.call(t),l(e,t,n));if(s(e)){if(!s(t)||e.length!==t.length)return!1;for(u=0;u<e.length;u++)if(e[u]!==t[u])return!1;return!0}try{var d=r(e),p=r(t)}catch{return!1}if(d.length!=p.length)return!1;for(d.sort(),p.sort(),u=d.length-1;u>=0;u--)if(d[u]!=p[u])return!1;for(u=d.length-1;u>=0;u--)if(c=d[u],!l(e[c],t[c],n))return!1;return typeof e==typeof t}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var r=o.Scope.TYPE&o.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&o.Scope.LEVEL|r:this.scope=o.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=o.query(e,o.Scope.BLOT&(this.scope|o.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},l=d(n(2)),a=d(n(0)),s=d(n(4)),u=d(n(6)),c=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),t}(u.default);m.blotName="code",m.tagName="CODE";var g=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),r(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new l.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var r=this.descendant(c.default,this.length()-1),l=o(r,1)[0];null!=l&&l.deleteAt(l.length()-1,1),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,o,r){if(0!==n&&null!=a.default.query(o,a.default.Scope.BLOCK)&&(o!==this.statics.blotName||r!==this.statics.formats(this.domNode))){var i=this.newlineIndex(e);if(!(i<0||i>=e+n)){var l=this.newlineIndex(e,!0)+1,s=i-l+1,u=this.isolate(l,s),c=u.next;u.format(o,r),c instanceof t&&c.formatAt(0,e-l+n-s,o,r)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var r=this.descendant(c.default,e),i=o(r,2),l=i[0],a=i[1];l.insertAt(a,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(a.default.create("text","\n")),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=a.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof a.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(s.default);g.blotName="code-block",g.tagName="PRE",g.TAB=" ",t.Code=m,t.default=g},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o="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},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=b(n(2)),a=b(n(20)),s=b(n(0)),u=b(n(13)),c=b(n(24)),d=n(4),p=b(d),f=b(n(16)),h=b(n(21)),m=b(n(11)),g=b(n(3));function b(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var w=/^[ -~]*$/,x=function(){function e(t){y(this,e),this.scroll=t,this.delta=this.getDelta()}return i(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),(e=O(e)).reduce((function(e,l){var u=l.retain||l.delete||l.insert.length||1,c=l.attributes||{};if(null!=l.insert){if("string"==typeof l.insert){var f=l.insert;f.endsWith("\n")&&n&&(n=!1,f=f.slice(0,-1)),e>=i&&!f.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,f);var h=t.scroll.line(e),m=r(h,2),b=m[0],v=m[1],y=(0,g.default)({},(0,d.bubbleFormats)(b));if(b instanceof p.default){var w=b.descendant(s.default.Leaf,v),x=r(w,1)[0];y=(0,g.default)(y,(0,d.bubbleFormats)(x))}c=a.default.attributes.diff(y,c)||{}}else if("object"===o(l.insert)){var C=Object.keys(l.insert)[0];if(null==C)return e;t.scroll.insertAt(e,C,l.insert[C])}i+=u}return Object.keys(c).forEach((function(n){t.scroll.formatAt(e,u,n,c[n])})),e+u}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new l.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(o).forEach((function(r){if(null==n.scroll.whitelist||n.scroll.whitelist[r]){var i=n.scroll.lines(e,Math.max(t,1)),l=t;i.forEach((function(t){var i=t.length();if(t instanceof u.default){var a=e-t.offset(n.scroll),s=t.newlineIndex(a+l)-a+1;t.formatAt(a,s,r,o[r])}else t.format(r,o[r]);l-=i}))}})),this.scroll.optimize(),this.update((new l.default).retain(e).retain(t,(0,h.default)(o)))}},{key:"formatText",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(o).forEach((function(r){n.scroll.formatAt(e,t,r,o[r])})),this.update((new l.default).retain(e).retain(t,(0,h.default)(o)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new l.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],o=[];0===t?this.scroll.path(e).forEach((function(e){var t=r(e,1)[0];t instanceof p.default?n.push(t):t instanceof s.default.Leaf&&o.push(t)})):(n=this.scroll.lines(e,t),o=this.scroll.descendants(s.default.Leaf,e,t));var i=[n,o].map((function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=C((0,d.bubbleFormats)(n),t)}return t}));return g.default.apply(g.default,i)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new l.default).retain(e).insert(v({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(o).forEach((function(r){n.scroll.formatAt(e,t.length,r,o[r])})),this.update((new l.default).retain(e).insert(t,(0,h.default)(o)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return!(e.statics.blotName!==p.default.blotName||e.children.length>1)&&e.children.head instanceof f.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),o=this.scroll.line(e+t),i=r(o,2),a=i[0],s=i[1],c=0,d=new l.default;null!=a&&(c=a instanceof u.default?a.newlineIndex(s)-s+1:a.length()-s,d=a.delta().slice(s,s+c-1).insert("\n"));var p=this.getContents(e,t+c).diff((new l.default).insert(n).concat(d)),f=(new l.default).retain(e).concat(p);return this.applyDelta(f)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,o=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(w)&&s.default.find(t[0].target)){var r=s.default.find(t[0].target),i=(0,d.bubbleFormats)(r),a=r.offset(this.scroll),u=t[0].oldValue.replace(c.default.CONTENTS,""),p=(new l.default).insert(u),f=(new l.default).insert(r.value());e=(new l.default).retain(a).concat(p.diff(f,n)).reduce((function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)}),new l.default),this.delta=o.compose(e)}else this.delta=this.getDelta(),(!e||!(0,m.default)(o.compose(e),this.delta))&&(e=o.diff(this.delta,n));return e}}]),e}();function C(e,t){return Object.keys(t).reduce((function(n,o){return null==e[o]||(t[o]===e[o]?n[o]=t[o]:Array.isArray(t[o])?t[o].indexOf(e[o])<0&&(n[o]=t[o].concat([e[o]])):n[o]=[t[o],e[o]]),n}),{})}function O(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,h.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null!=t.attributes&&(!0===t.attributes.list||!0===t.attributes.bullet)&&((t=(0,h.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var o=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(o,t.attributes)}return e.push(t)}),new l.default)}t.default=x},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=u(n(0)),l=u(n(21)),a=u(n(11)),s=u(n(8));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var p=(0,u(n(10)).default)("quill:selection"),f=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=n},h=function(){function e(t,n){var o=this;d(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new f(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){o.mouseDown||setTimeout(o.update.bind(o,s.default.sources.USER),1)})),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e,t){e===s.default.events.TEXT_CHANGE&&t.length()>0&&o.update(s.default.sources.SILENT)})),this.emitter.on(s.default.events.SCROLL_BEFORE_UPDATE,(function(){if(o.hasFocus()){var e=o.getNativeRange();null!=e&&e.start.node!==o.cursor.textNode&&o.emitter.once(s.default.events.SCROLL_UPDATE,(function(){try{o.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch{}}))}})),this.emitter.on(s.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,r=n.startNode,i=n.startOffset,l=n.endNode,a=n.endOffset;o.setNativeRange(r,i,l,a)}})),this.update(s.default.sources.SILENT)}return r(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(s.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!i.default.query(e,i.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var o=i.default.find(n.start.node,!1);if(null==o)return;if(o instanceof i.default.Leaf){var r=o.split(n.start.offset);o.parent.insertBefore(this.cursor,r)}else o.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var r=void 0,i=this.scroll.leaf(e),l=o(i,2),a=l[0],s=l[1];if(null==a)return null;var u=a.position(s,!0),c=o(u,2);r=c[0],s=c[1];var d=document.createRange();if(t>0){d.setStart(r,s);var p=this.scroll.leaf(e+t),f=o(p,2);if(a=f[0],s=f[1],null==a)return null;var h=a.position(s,!0),m=o(h,2);return r=m[0],s=m[1],d.setEnd(r,s),d.getBoundingClientRect()}var g="left",b=void 0;return r instanceof Text?(s<r.data.length?(d.setStart(r,s),d.setEnd(r,s+1)):(d.setStart(r,s-1),d.setEnd(r,s),g="right"),b=d.getBoundingClientRect()):(b=a.domNode.getBoundingClientRect(),s>0&&(g="right")),{bottom:b.top+b.height,height:b.height,left:b[g],right:b[g],top:b.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return p.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var r=n.map((function(e){var n=o(e,2),r=n[0],l=n[1],a=i.default.find(r,!0),s=a.offset(t.scroll);return 0===l?s:a instanceof i.default.Container?s+a.length():s+a.index(r,l)})),l=Math.min(Math.max.apply(Math,c(r)),this.scroll.length()-1),a=Math.min.apply(Math,[l].concat(c(r)));return new f(a,l-a)}},{key:"normalizeNative",value:function(e){if(!m(this.root,e.startContainer)||!e.collapsed&&!m(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],r=[],i=this.scroll.length();return n.forEach((function(e,n){e=Math.min(i-1,e);var l=void 0,a=t.scroll.leaf(e),s=o(a,2),u=s[0],c=s[1],d=u.position(c,0!==n),p=o(d,2);l=p[0],c=p[1],r.push(l,c)})),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var r=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,r)),l=o(i,1)[0],a=l;if(t.length>0){var s=this.scroll.line(Math.min(t.index+t.length,r));a=o(s,1)[0]}if(null!=l&&null!=a){var u=e.getBoundingClientRect();n.top<u.top?e.scrollTop-=u.top-n.top:n.bottom>u.bottom&&(e.scrollTop+=n.bottom-u.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(p.info("setNativeRange",e,t,n,o),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus();var l=(this.getNativeRange()||{}).native;if(null==l||r||e!==l.startContainer||t!==l.startOffset||n!==l.endContainer||o!==l.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(o=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var a=document.createRange();a.setStart(e,t),a.setEnd(n,o),i.removeAllRanges(),i.addRange(a)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if("string"==typeof t&&(n=t,t=!1),p.info("setRange",e),null!=e){var o=this.rangeToNative(e);this.setNativeRange.apply(this,c(o).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.lastRange,n=this.getRange(),r=o(n,2),i=r[0],u=r[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,a.default)(t,this.lastRange)){var c;!this.composing&&null!=u&&u.native.collapsed&&u.start.node!==this.cursor.textNode&&this.cursor.restore();var d,p=[s.default.events.SELECTION_CHANGE,(0,l.default)(this.lastRange),(0,l.default)(t),e];(c=this.emitter).emit.apply(c,[s.default.events.EDITOR_CHANGE].concat(p)),e!==s.default.sources.SILENT&&(d=this.emitter).emit.apply(d,p)}}}]),e}();function m(e,t){try{t.parentNode}catch{return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=f,t.default=h},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return l(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,[{key:"insertInto",value:function(e,n){0===e.children.length?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(i(n(0)).default.Embed);u.blotName="break",u.tagName="BR",t.default=u},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),l=n(30),a=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return r(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=u(t);e.insertBefore(n,e.children.head||void 0)}catch(e){if(e instanceof a.ParchmentError)return;throw e}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var o=this.children.find(n),r=o[0],i=o[1];return null==e.blotName&&e(r)||null!=e.blotName&&r instanceof e?[r,i]:r instanceof t?r.descendant(e,i):[null,-1]},t.prototype.descendants=function(e,n,o){void 0===n&&(n=0),void 0===o&&(o=Number.MAX_VALUE);var r=[],i=o;return this.children.forEachAt(n,o,(function(n,o,l){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&r.push(n),n instanceof t&&(r=r.concat(n.descendants(e,o,i))),i-=l})),r},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,o){this.children.forEachAt(e,t,(function(e,t,r){e.formatAt(t,r,n,o)}))},t.prototype.insertAt=function(e,t,n){var o=this.children.find(e),r=o[0],i=o[1];if(r)r.insertAt(i,t,n);else{var l=null==n?a.create("text",t):a.create(t,n);this.appendChild(l)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new a.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var o=this.children.find(e,n),r=o[0],i=o[1],l=[[this,e]];return r instanceof t?l.concat(r.path(i,n)):(null!=r&&l.push([r,i]),l)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,o,r){e=e.split(o,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,o=[],r=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(o.push.apply(o,e.addedNodes),r.push.apply(r,e.removedNodes))})),r.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=a.find(e);null!=t&&(null==t.domNode.parentNode||t.domNode.parentNode===n.domNode)&&t.detach()}})),o.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=a.find(e.nextSibling));var o=u(e);(o.next!=t||null==o.next)&&(null!=o.parent&&o.parent.removeChild(n),n.insertBefore(o,t||void 0))}))},t}(l.default);function u(e){var t=a.find(e);if(null==t)try{t=a.create(e)}catch{t=a.create(a.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=s},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),l=n(31),a=n(17),s=n(1),u=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new l.default(n.domNode),n}return r(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=s.query(e);n instanceof i.default?this.attributes.attribute(n,t):t&&null!=n&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t)},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var o=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(o),o},t.prototype.update=function(t,n){var o=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===o.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,o){var r=e.prototype.wrap.call(this,n,o);return r instanceof t&&r.statics.scope===this.statics.scope&&this.attributes.move(r),r},t}(a.default);t.default=u},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),l=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=l.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){var o=n(11),r=n(3),i={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var o=r(!0,{},t);for(var i in n||(o=Object.keys(o).reduce((function(e,t){return null!=o[t]&&(e[t]=o[t]),e}),{})),e)void 0!==e[i]&&void 0===t[i]&&(o[i]=e[i]);return Object.keys(o).length>0?o:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,r){return o(e[r],t[r])||(n[r]=void 0===t[r]?null:t[r]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var o=Object.keys(t).reduce((function(n,o){return void 0===e[o]&&(n[o]=t[o]),n}),{});return Object.keys(o).length>0?o:void 0}}},iterator:function(e){return new l(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function l(e){this.ops=e,this.index=0,this.offset=0}l.prototype.hasNext=function(){return this.peekLength()<1/0},l.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,o=i.length(t);if(e>=o-n?(e=o-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var r={};return t.attributes&&(r.attributes=t.attributes),"number"==typeof t.retain?r.retain=e:"string"==typeof t.insert?r.insert=t.insert.substr(n,e):r.insert=t.insert,r}return{retain:1/0}},l.prototype.peek=function(){return this.ops[this.index]},l.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},l.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},l.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),o=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(o)}return[]},e.exports=i},function(e,t){var n=function(){function e(e,t){return null!=t&&e instanceof t}var t,n,o;try{t=Map}catch{t=function(){}}try{n=Set}catch{n=function(){}}try{o=Promise}catch{o=function(){}}function r(i,l,a,s,c){"object"==typeof l&&(a=l.depth,s=l.prototype,c=l.includeNonEnumerable,l=l.circular);var d=[],p=[],f=typeof Buffer<"u";function h(i,a){if(null===i)return null;if(0===a)return i;var m,g;if("object"!=typeof i)return i;if(e(i,t))m=new t;else if(e(i,n))m=new n;else if(e(i,o))m=new o((function(e,t){i.then((function(t){e(h(t,a-1))}),(function(e){t(h(e,a-1))}))}));else if(r.__isArray(i))m=[];else if(r.__isRegExp(i))m=new RegExp(i.source,u(i)),i.lastIndex&&(m.lastIndex=i.lastIndex);else if(r.__isDate(i))m=new Date(i.getTime());else{if(f&&Buffer.isBuffer(i))return m=Buffer.allocUnsafe?Buffer.allocUnsafe(i.length):new Buffer(i.length),i.copy(m),m;e(i,Error)?m=Object.create(i):typeof s>"u"?(g=Object.getPrototypeOf(i),m=Object.create(g)):(m=Object.create(s),g=s)}if(l){var b=d.indexOf(i);if(-1!=b)return p[b];d.push(i),p.push(m)}for(var v in e(i,t)&&i.forEach((function(e,t){var n=h(t,a-1),o=h(e,a-1);m.set(n,o)})),e(i,n)&&i.forEach((function(e){var t=h(e,a-1);m.add(t)})),i){var y;g&&(y=Object.getOwnPropertyDescriptor(g,v)),(!y||null!=y.set)&&(m[v]=h(i[v],a-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(i);for(v=0;v<w.length;v++){var x=w[v];(O=Object.getOwnPropertyDescriptor(i,x))&&!O.enumerable&&!c||(m[x]=h(i[x],a-1),O.enumerable||Object.defineProperty(m,x,{enumerable:!1}))}}if(c){var C=Object.getOwnPropertyNames(i);for(v=0;v<C.length;v++){var O,k=C[v];(O=Object.getOwnPropertyDescriptor(i,k))&&O.enumerable||(m[k]=h(i[k],a-1),Object.defineProperty(m,k,{enumerable:!1}))}}return m}return typeof l>"u"&&(l=!0),typeof a>"u"&&(a=1/0),h(i,a)}function i(e){return Object.prototype.toString.call(e)}function l(e){return"object"==typeof e&&"[object Date]"===i(e)}function a(e){return"object"==typeof e&&"[object Array]"===i(e)}function s(e){return"object"==typeof e&&"[object RegExp]"===i(e)}function u(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return r.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},r.__objToStr=i,r.__isDate=l,r.__isArray=a,r.__isRegExp=s,r.__getRegExpFlags=u,r}();"object"==typeof e&&e.exports&&(e.exports=n)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},l=f(n(0)),a=f(n(8)),s=n(4),u=f(s),c=f(n(16)),d=f(n(13)),p=f(n(25));function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function b(e){return e instanceof u.default||e instanceof s.BlockEmbed}var v=function(e){function t(e,n){h(this,t);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.emitter=n.emitter,Array.isArray(n.whitelist)&&(o.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),o.domNode.addEventListener("DOMNodeInserted",(function(){})),o.optimize(),o.enable(),o}return g(t,e),r(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var r=this.line(e),l=o(r,2),a=l[0],u=l[1],p=this.line(e+n),f=o(p,1)[0];if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=f&&a!==f&&u>0){if(a instanceof s.BlockEmbed||f instanceof s.BlockEmbed)return void this.optimize();if(a instanceof d.default){var h=a.newlineIndex(a.length(),!0);if(h>-1&&(a=a.split(h+1))===f)return void this.optimize()}else if(f instanceof d.default){var m=f.newlineIndex(0);m>-1&&f.split(m+1)}var g=f.children.head instanceof c.default?null:f.children.head;a.moveChildren(f,g),a.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,o,r){null!=this.whitelist&&!this.whitelist[o]||(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,o,r),this.optimize())}},{key:"insertAt",value:function(e,n,o){if(null==o||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==o||null==l.default.query(n,l.default.Scope.BLOCK)){var r=l.default.create(this.statics.defaultChild);this.appendChild(r),null==o&&n.endsWith("\n")&&(n=n.slice(0,-1)),r.insertAt(0,n,o)}else{var a=l.default.create(n,o);this.appendChild(a)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===l.default.Scope.INLINE_BLOT){var o=l.default.create(this.statics.defaultChild);o.appendChild(e),e=o}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(b,e)}},{key:"lines",value:function(){return function e(t,n,o){var r=[],i=o;return t.children.forEachAt(n,o,(function(t,n,o){b(t)?r.push(t):t instanceof l.default.Container&&(r=r.concat(e(t,n,i))),i-=o})),r}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(a.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=a.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(a.default.events.SCROLL_BEFORE_UPDATE,n,e),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(a.default.events.SCROLL_UPDATE,n,e)}}}]),t}(l.default.Scroll);v.blotName="scroll",v.className="ql-editor",v.tagName="DIV",v.defaultChild="block",v.allowedChildren=[u.default,s.BlockEmbed,p.default],t.default=v},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var o="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},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=m(n(21)),a=m(n(11)),s=m(n(3)),u=m(n(2)),c=m(n(20)),d=m(n(0)),p=m(n(5)),f=m(n(10)),h=m(n(9));function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var w=(0,f.default)("quill:keyboard"),x=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",C=function(e){function t(e,n){b(this,t);var o=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.bindings={},Object.keys(o.options.bindings).forEach((function(t){"list autofill"===t&&null!=e.scroll.whitelist&&!e.scroll.whitelist.list||o.options.bindings[t]&&o.addBinding(o.options.bindings[t])})),o.addBinding({key:t.keys.ENTER,shiftKey:null},R),o.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(o.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},k),o.addBinding({key:t.keys.DELETE},{collapsed:!0},S)):(o.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},k),o.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},S)),o.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},E),o.addBinding({key:t.keys.DELETE},{collapsed:!1},E),o.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},k),o.listen(),o}return y(t,e),i(t,null,[{key:"match",value:function(e,t){return t=P(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),i(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=P(e);if(null==o||null==o.key)return w.warn("Attempted to add invalid keyboard binding",o);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),o=(0,s.default)(o,t,n),this.bindings[o.key]=this.bindings[o.key]||[],this.bindings[o.key].push(o)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,l=(e.bindings[i]||[]).filter((function(e){return t.match(n,e)}));if(0!==l.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var u=e.quill.getLine(s.index),c=r(u,2),p=c[0],f=c[1],h=e.quill.getLeaf(s.index),m=r(h,2),g=m[0],b=m[1],v=0===s.length?[g,b]:e.quill.getLeaf(s.index+s.length),y=r(v,2),w=y[0],x=y[1],C=g instanceof d.default.Text?g.value().slice(0,b):"",O=w instanceof d.default.Text?w.value().slice(x):"",k={collapsed:0===s.length,empty:0===s.length&&p.length()<=1,format:e.quill.getFormat(s),offset:f,prefix:C,suffix:O};l.some((function(t){if(null!=t.collapsed&&t.collapsed!==k.collapsed||null!=t.empty&&t.empty!==k.empty||null!=t.offset&&t.offset!==k.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==k.format[e]})))return!1}else if("object"===o(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=k.format[e]:!1===t.format[e]?null==k.format[e]:(0,a.default)(t.format[e],k.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(k.prefix)||null!=t.suffix&&!t.suffix.test(k.suffix))&&!0!==t.handler.call(e,s,k)}))&&n.preventDefault()}}}}))}}]),t}(h.default);function O(e,t){var n,o=e===C.keys.LEFT?"prefix":"suffix";return g(n={key:e,shiftKey:t,altKey:null},o,/^$/),g(n,"handler",(function(n){var o=n.index;e===C.keys.RIGHT&&(o+=n.length+1);var i=this.quill.getLeaf(o);return!(r(i,1)[0]instanceof d.default.Embed&&(e===C.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,p.default.sources.USER):this.quill.setSelection(n.index-1,p.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,p.default.sources.USER):this.quill.setSelection(n.index+n.length+1,p.default.sources.USER),1))})),n}function k(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),o=r(n,1)[0],i={};if(0===t.offset){var l=this.quill.getLine(e.index-1),a=r(l,1)[0];if(null!=a&&a.length()>1){var s=o.formats(),u=this.quill.getFormat(e.index-1,1);i=c.default.attributes.diff(s,u)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,p.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-d,d,i,p.default.sources.USER),this.quill.focus()}}function S(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var o={},i=0,l=this.quill.getLine(e.index),a=r(l,1)[0];if(t.offset>=a.length()-1){var s=this.quill.getLine(e.index+1),u=r(s,1)[0];if(u){var d=a.formats(),f=this.quill.getFormat(e.index,1);o=c.default.attributes.diff(d,f)||{},i=u.length()}}this.quill.deleteText(e.index,n,p.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(e.index+i-1,n,o,p.default.sources.USER)}}function E(e){var t=this.quill.getLines(e),n={};if(t.length>1){var o=t[0].formats(),r=t[t.length-1].formats();n=c.default.attributes.diff(r,o)||{}}this.quill.deleteText(e,p.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,p.default.sources.USER),this.quill.setSelection(e.index,p.default.sources.SILENT),this.quill.focus()}function R(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var o=Object.keys(t.format).reduce((function(e,n){return d.default.query(n,d.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",o,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==o[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],p.default.sources.USER))}))}function T(e){return{key:C.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=d.default.query("code-block"),o=t.index,i=t.length,l=this.quill.scroll.descendant(n,o),a=r(l,2),s=a[0],u=a[1];if(null!=s){var c=this.quill.getIndex(s),f=s.newlineIndex(u,!0)+1,h=s.newlineIndex(c+u+i),m=s.domNode.textContent.slice(f,h).split("\n");u=0,m.forEach((function(t,r){e?(s.insertAt(f+u,n.TAB),u+=n.TAB.length,0===r?o+=n.TAB.length:i+=n.TAB.length):t.startsWith(n.TAB)&&(s.deleteAt(f+u,n.TAB.length),u-=n.TAB.length,0===r?o-=n.TAB.length:i-=n.TAB.length),u+=t.length+1})),this.quill.update(p.default.sources.USER),this.quill.setSelection(o,i,p.default.sources.SILENT)}}}}function N(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],p.default.sources.USER)}}}function P(e){if("string"==typeof e||"number"==typeof e)return P({key:e});if("object"===(typeof e>"u"?"undefined":o(e))&&(e=(0,l.default)(e,!1)),"string"==typeof e.key)if(null!=C.keys[e.key.toUpperCase()])e.key=C.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[x]=e.shortKey,delete e.shortKey),e}C.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},C.DEFAULTS={bindings:{bold:N("bold"),italic:N("italic"),underline:N("underline"),indent:{key:C.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",p.default.sources.USER)}},outdent:{key:C.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",p.default.sources.USER)}},"outdent backspace":{key:C.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",p.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,p.default.sources.USER)}},"indent code-block":T(!0),"outdent code-block":T(!1),"remove tab":{key:C.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,p.default.sources.USER)}},tab:{key:C.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new u.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,p.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,p.default.sources.SILENT)}},"list empty enter":{key:C.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,p.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,p.default.sources.USER)}},"checklist enter":{key:C.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),o=n[0],i=n[1],l=(0,s.default)({},o.formats(),{list:"checked"}),a=(new u.default).retain(e.index).insert("\n",l).retain(o.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(a,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:C.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),o=r(n,2),i=o[0],l=o[1],a=(new u.default).retain(e.index).insert("\n",t.format).retain(i.length()-l-1).retain(1,{header:null});this.quill.updateContents(a,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,o=this.quill.getLine(e.index),i=r(o,2),l=i[0],a=i[1];if(a>n)return!0;var s=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(e.index," ",p.default.sources.USER),this.quill.history.cutoff();var c=(new u.default).retain(e.index-a).delete(n+1).retain(l.length()-2-a).retain(1,{list:s});this.quill.updateContents(c,p.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,p.default.sources.SILENT)}},"code exit":{key:C.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),o=n[0],i=n[1],l=(new u.default).retain(e.index+o.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(l,p.default.sources.USER)}},"embed left":O(C.keys.LEFT,!1),"embed left shift":O(C.keys.LEFT,!0),"embed right":O(C.keys.RIGHT,!1),"embed right shift":O(C.keys.RIGHT,!0)}},t.default=C,t.SHORTKEY=x},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=s(n(0)),a=s(n(7));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(e,n){u(this,t);var o=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.selection=n,o.textNode=document.createTextNode(t.CONTENTS),o.domNode.appendChild(o.textNode),o._length=0,o}return d(t,e),i(t,null,[{key:"value",value:function(){}}]),i(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var o=this,i=0;null!=o&&o.statics.scope!==l.default.Scope.BLOCK_BLOT;)i+=o.offset(o.parent),o=o.parent;null!=o&&(this._length=t.CONTENTS.length,o.optimize(),o.formatAt(i,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),r=void 0,i=void 0,s=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var u=[e,n.start.offset,n.end.offset];r=u[0],i=u[1],s=u[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var c=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof a.default?(r=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=t.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(l.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var d=[i,s].map((function(e){return Math.max(0,Math.min(r.data.length,e-1))})),p=o(d,2);return i=p[0],s=p[1],{startNode:r,startOffset:i,endNode:r,endOffset:s}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var o=this.restore();o&&(t.range=o)}}},{key:"value",value:function(){return""}}]),t}(l.default.Embed);p.blotName="cursor",p.className="ql-cursor",p.tagName="span",p.CONTENTS="\ufeff",t.default=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=l(n(0)),r=n(4),i=l(r);function l(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),t}(o.default.Container);c.allowedChildren=[i.default,r.BlockEmbed,c],t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),o(t,[{key:"value",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?"#"+(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join(""):n}}]),t}(i.default.Attributor.Style),d=new i.default.Attributor.Class("color","ql-color",{scope:i.default.Scope.INLINE}),p=new c("color","color",{scope:i.default.Scope.INLINE});t.ColorAttributor=c,t.ColorClass=d,t.ColorStyle=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return l(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return c(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(i(n(6)).default);function c(e,t){var n=document.createElement("a");n.href=e;var o=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(o)>-1}u.blotName="link",u.tagName="A",u.SANITIZED_URL="about:blank",u.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=u,t.sanitize=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o="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},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=a(n(23)),l=a(n(107));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=0;function c(e,t){e.setAttribute(t,"true"!==e.getAttribute(t))}var d=function(){function e(t){var n=this;s(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:n.togglePicker();break;case i.default.keys.ESCAPE:n.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return r(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),c(this.label,"aria-expanded"),c(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case i.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=l.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+u,u+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var o=e.buildItem(n);t.appendChild(o),!0===n.selected&&e.selectItem(o)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===(typeof Event>"u"?"undefined":o(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=b(n(0)),r=b(n(5)),i=n(4),l=b(i),a=b(n(16)),s=b(n(25)),u=b(n(24)),c=b(n(35)),d=b(n(6)),p=b(n(22)),f=b(n(7)),h=b(n(55)),m=b(n(42)),g=b(n(23));function b(e){return e&&e.__esModule?e:{default:e}}r.default.register({"blots/block":l.default,"blots/block/embed":i.BlockEmbed,"blots/break":a.default,"blots/container":s.default,"blots/cursor":u.default,"blots/embed":c.default,"blots/inline":d.default,"blots/scroll":p.default,"blots/text":f.default,"modules/clipboard":h.default,"modules/history":m.default,"modules/keyboard":g.default}),o.default.register(l.default,a.default,u.default,d.default,p.default,f.default),t.default=r.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=function(){function e(e){this.domNode=e,this.domNode[o.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new o.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return o.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[o.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,r){var i=this.isolate(e,t);if(null!=o.query(n,o.Scope.BLOT)&&r)i.wrap(n,r);else if(null!=o.query(n,o.Scope.ATTRIBUTE)){var l=o.create(this.statics.scope);i.wrap(l),l.format(n,r)}},e.prototype.insertAt=function(e,t,n){var r=null==n?o.create("text",t):o.create(t,n),i=this.split(e);this.parent.insertBefore(r,i)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),(this.domNode.parentNode!=e.domNode||this.domNode.nextSibling!=n)&&e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[o.DATA_KEY]&&delete this.domNode[o.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?o.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?o.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),r=n(32),i=n(33),l=n(1),a=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=o.default.keys(this.domNode),n=r.default.keys(this.domNode),a=i.default.keys(this.domNode);t.concat(n).concat(a).forEach((function(t){var n=l.query(t,l.Scope.ATTRIBUTE);n instanceof o.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var o=t.attributes[n].value(t.domNode);e.format(n,o)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=a},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){i(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(i(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=l},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[i(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[i(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(t,n){r(this,e),this.quill=t,this.options=n,this.modules={}}return o(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();i.DEFAULTS={modules:{}},i.themes={default:i},t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=a(n(0)),l=a(n(7));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d="\ufeff",p=function(e){function t(e){s(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(d),n.rightGuard=document.createTextNode(d),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return c(t,e),o(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,o=e.data.split(d).join("");if(e===this.leftGuard)if(this.prev instanceof l.default){var r=this.prev.length();this.prev.insertAt(r,o),t={startNode:this.prev.domNode,startOffset:r+o.length}}else n=document.createTextNode(o),this.parent.insertBefore(i.default.create(n),this),t={startNode:n,startOffset:o.length};else e===this.rightGuard&&(this.next instanceof l.default?(this.next.insertAt(0,o),t={startNode:this.next.domNode,startOffset:o.length}):(n=document.createTextNode(o),this.parent.insertBefore(i.default.create(n),this.next),t={startNode:n,startOffset:o.length}));return e.data=d,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var o=n.restore(e.target);o&&(t.range=o)}}))}}]),t}(i.default.Embed);t.default=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var o=r(n(0));function r(e){return e&&e.__esModule?e:{default:e}}var i={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},l=new o.default.Attributor.Attribute("align","align",i),a=new o.default.Attributor.Class("align","ql-align",i),s=new o.default.Attributor.Style("align","text-align",i);t.AlignAttribute=l,t.AlignClass=a,t.AlignStyle=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var o=i(n(0)),r=n(26);function i(e){return e&&e.__esModule?e:{default:e}}var l=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),a=new r.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});t.BackgroundClass=l,t.BackgroundStyle=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var o=r(n(0));function r(e){return e&&e.__esModule?e:{default:e}}var i={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},l=new o.default.Attributor.Attribute("direction","dir",i),a=new o.default.Attributor.Class("direction","ql-direction",i),s=new o.default.Attributor.Style("direction","direction",i);t.DirectionAttribute=l,t.DirectionClass=a,t.DirectionStyle=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c={scope:i.default.Scope.INLINE,whitelist:["serif","monospace"]},d=new i.default.Attributor.Class("font","ql-font",c),p=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),o(t,[{key:"value",value:function(e){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(i.default.Attributor.Style),f=new p("font","font-family",c);t.FontStyle=f,t.FontClass=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var o=r(n(0));function r(e){return e&&e.__esModule?e:{default:e}}var i=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),l=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=i,t.SizeStyle=l},function(e,t,n){e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=l(n(0)),i=l(n(5));function l(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(e,n){a(this,t);var o=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.lastRecorded=0,o.ignoreChange=!1,o.clear(),o.quill.on(i.default.events.EDITOR_CHANGE,(function(e,t,n,r){e!==i.default.events.TEXT_CHANGE||o.ignoreChange||(o.options.userOnly&&r!==i.default.sources.USER?o.transform(t):o.record(t,n))})),o.quill.keyboard.addBinding({key:"Z",shortKey:!0},o.undo.bind(o)),o.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},o.redo.bind(o)),/Win/i.test(navigator.platform)&&o.quill.keyboard.addBinding({key:"Y",shortKey:!0},o.redo.bind(o)),o}return u(t,e),o(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],i.default.sources.USER),this.ignoreChange=!1;var o=p(n[e]);this.quill.setSelection(o)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),o=Date.now();if(this.lastRecorded+this.options.delay>o&&this.stack.undo.length>0){var r=this.stack.undo.pop();n=n.compose(r.undo),e=r.redo.compose(e)}else this.lastRecorded=o;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(l(n(9)).default);function d(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=r.default.query(e,r.default.Scope.BLOCK)})))}function p(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return d(e)&&(n-=1),n}c.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=c,t.getLastChangeIndex=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=h(n(3)),l=h(n(2)),a=h(n(8)),s=h(n(23)),u=h(n(34)),c=h(n(59)),d=h(n(60)),p=h(n(28)),f=h(n(61));function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=[!1,"center","right","justify"],y=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],w=[!1,"serif","monospace"],x=["1","2","3",!1],C=["small",!1,"large","huge"],O=function(e){function t(e,n){m(this,t);var o=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),r=function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null!=o.tooltip&&!o.tooltip.root.contains(n.target)&&document.activeElement!==o.tooltip.textbox&&!o.quill.hasFocus()&&o.tooltip.hide(),null!=o.pickers&&o.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))};return e.emitter.listenDOM("click",document.body,r),o}return b(t,e),o(t,[{key:"addModule",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice(3),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var o=e.value||"";null!=o&&t[n][o]&&(e.innerHTML=t[n][o])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&E(e,v),new d.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&E(e,y,"background"===n?"#ffffff":"#000000"),new c.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?E(e,w):e.classList.contains("ql-header")?E(e,x):e.classList.contains("ql-size")&&E(e,C)),new p.default(e)}));var o=function(){n.pickers.forEach((function(e){e.update()}))};this.quill.on(a.default.events.EDITOR_CHANGE,o)}}]),t}(u.default);O.DEFAULTS=(0,i.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var o=e.quill.getSelection(!0);e.quill.updateContents((new l.default).retain(o.index).delete(o.length).insert({image:n.target.result}),a.default.sources.USER),e.quill.setSelection(o.index+1,a.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var k=function(e){function t(e,n){m(this,t);var o=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.textbox=o.root.querySelector('input[type="text"]'),o.listen(),o}return b(t,e),o(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){s.default.match(t,"enter")?(e.save(),t.preventDefault()):s.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,a.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=S(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var o=n.index+n.length;this.quill.insertEmbed(o,this.root.getAttribute("data-mode"),e,a.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(o+1," ",a.default.sources.USER),this.quill.setSelection(o+2,a.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(f.default);function S(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e}function E(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var o=document.createElement("option");t===n?o.setAttribute("selected","selected"):o.setAttribute("value",t),e.appendChild(o)}))}t.BaseTooltip=k,t.default=O},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,o=this.iterator();n=o();){var r=n.length();if(e<r||t&&e===r&&(null==n.next||0!==n.next.length()))return[n,e];e-=r}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var o,r=this.find(e),i=r[0],l=e-r[1],a=this.iterator(i);(o=a())&&l<e+t;){var s=o.length();e>l?n(o,e-l,Math.min(t,l+s-e)):n(o,0,Math.min(s,e+t-l)),l+=s}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,o=this.iterator();n=o();)t=e(t,n);return t},e}();t.default=o},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),l=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=100,u=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,a),n.attach(),n}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,o,r){this.update(),e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.insertAt=function(t,n,o){this.update(),e.prototype.insertAt.call(this,t,n,o)},t.prototype.optimize=function(t,n){var o=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var r=[].slice.call(this.observer.takeRecords());r.length>0;)t.push(r.pop());for(var a=function(e,t){void 0===t&&(t=!0),null!=e&&e!==o&&null!=e.domNode.parentNode&&(null==e.domNode[l.DATA_KEY].mutations&&(e.domNode[l.DATA_KEY].mutations=[]),t&&a(e.parent))},u=function(e){null==e.domNode[l.DATA_KEY]||null==e.domNode[l.DATA_KEY].mutations||(e instanceof i.default&&e.children.forEach(u),e.optimize(n))},c=t,d=0;c.length>0;d+=1){if(d>=s)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach((function(e){var t=l.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(a(l.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=l.find(e,!1);a(t,!1),t instanceof i.default&&t.children.forEach((function(e){a(e,!1)}))}))):"attributes"===e.type&&a(t.prev)),a(t))})),this.children.forEach(u),r=(c=[].slice.call(this.observer.takeRecords())).slice();r.length>0;)t.push(r.pop())}},t.prototype.update=function(t,n){var o=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=l.find(e.target,!0);return null==t?null:null==t.domNode[l.DATA_KEY].mutations?(t.domNode[l.DATA_KEY].mutations=[e],t):(t.domNode[l.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null==e||e===o||null==e.domNode[l.DATA_KEY]||e.update(e.domNode[l.DATA_KEY].mutations||[],n)})),null!=this.domNode[l.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[l.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=l.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=u},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),l=n(1);function a(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,o){var r=this;n!==this.statics.blotName||o?e.prototype.format.call(this,n,o):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),r.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,o,r){null!=this.formats()[o]||l.query(o,l.Scope.ATTRIBUTE)?this.isolate(t,n).format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var o=this.formats();if(0===Object.keys(o).length)return this.unwrap();var r=this.next;r instanceof t&&r.prev===this&&a(o,r.formats())&&(r.moveChildren(this),r.remove())},t.blotName="inline",t.scope=l.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=s},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),l=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){var o=l.query(t.blotName).tagName;if(n.tagName!==o)return e.formats.call(this,n)},t.prototype.format=function(n,o){null!=l.query(n,l.Scope.BLOCK)&&(n!==this.statics.blotName||o?e.prototype.format.call(this,n,o):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,o,r){null!=l.query(o,l.Scope.BLOCK)?this.format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.insertAt=function(t,n,o){if(null==o||null!=l.query(n,l.Scope.INLINE))e.prototype.insertAt.call(this,t,n,o);else{var r=this.split(t),i=l.create(n,o);r.parent.insertBefore(i,r)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=l.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=a},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,o,r){0===t&&n===this.length()?this.format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=i},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),l=n(1),a=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return r(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,o){null==o?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,o)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=l.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=l.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){var o=document.createElement("div");if(o.classList.toggle("test-class",!1),o.classList.contains("test-class")){var r=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:r.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var o=n.indexOf(e,t);return-1!==o&&o===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),o=n.length>>>0,r=arguments[1],i=0;i<o;i++)if(t=n[i],e.call(r,t,i,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1,o=1,r=0;function i(e,t,n){if(e==t)return e?[[r,e]]:[];(n<0||e.length<n)&&(n=null);var o=u(e,t),i=e.substring(0,o);o=c(e=e.substring(o),t=t.substring(o));var a=e.substring(e.length-o),s=l(e=e.substring(0,e.length-o),t=t.substring(0,t.length-o));return i&&s.unshift([r,i]),a&&s.push([r,a]),p(s),null!=n&&(s=m(s,n)),s=g(s)}function l(e,t){var l;if(!e)return[[o,t]];if(!t)return[[n,e]];var s=e.length>t.length?e:t,u=e.length>t.length?t:e,c=s.indexOf(u);if(-1!=c)return l=[[o,s.substring(0,c)],[r,u],[o,s.substring(c+u.length)]],e.length>t.length&&(l[0][0]=l[2][0]=n),l;if(1==u.length)return[[n,e],[o,t]];var p=d(e,t);if(p){var f=p[0],h=p[1],m=p[2],g=p[3],b=p[4],v=i(f,m),y=i(h,g);return v.concat([[r,b]],y)}return a(e,t)}function a(e,t){for(var r=e.length,i=t.length,l=Math.ceil((r+i)/2),a=l,u=2*l,c=new Array(u),d=new Array(u),p=0;p<u;p++)c[p]=-1,d[p]=-1;c[a+1]=0,d[a+1]=0;for(var f=r-i,h=f%2!=0,m=0,g=0,b=0,v=0,y=0;y<l;y++){for(var w=-y+m;w<=y-g;w+=2){for(var x=a+w,C=(R=w==-y||w!=y&&c[x-1]<c[x+1]?c[x+1]:c[x-1]+1)-w;R<r&&C<i&&e.charAt(R)==t.charAt(C);)R++,C++;if(c[x]=R,R>r)g+=2;else if(C>i)m+=2;else if(h&&(S=a+f-w)>=0&&S<u&&-1!=d[S]&&R>=(k=r-d[S]))return s(e,t,R,C)}for(var O=-y+b;O<=y-v;O+=2){for(var k,S=a+O,E=(k=O==-y||O!=y&&d[S-1]<d[S+1]?d[S+1]:d[S-1]+1)-O;k<r&&E<i&&e.charAt(r-k-1)==t.charAt(i-E-1);)k++,E++;if(d[S]=k,k>r)v+=2;else if(E>i)b+=2;else if(!h){var R;if((x=a+f-O)>=0&&x<u&&-1!=c[x]&&(C=a+(R=c[x])-x,R>=(k=r-k)))return s(e,t,R,C)}}}return[[n,e],[o,t]]}function s(e,t,n,o){var r=e.substring(0,n),l=t.substring(0,o),a=e.substring(n),s=t.substring(o),u=i(r,l),c=i(a,s);return u.concat(c)}function u(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,o=Math.min(e.length,t.length),r=o,i=0;n<r;)e.substring(i,r)==t.substring(i,r)?i=n=r:o=r,r=Math.floor((o-n)/2+n);return r}function c(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,o=Math.min(e.length,t.length),r=o,i=0;n<r;)e.substring(e.length-r,e.length-i)==t.substring(t.length-r,t.length-i)?i=n=r:o=r,r=Math.floor((o-n)/2+n);return r}function d(e,t){var n=e.length>t.length?e:t,o=e.length>t.length?t:e;if(n.length<4||2*o.length<n.length)return null;function r(e,t,n){for(var o,r,i,l,a=e.substring(n,n+Math.floor(e.length/4)),s=-1,d="";-1!=(s=t.indexOf(a,s+1));){var p=u(e.substring(n),t.substring(s)),f=c(e.substring(0,n),t.substring(0,s));d.length<f+p&&(d=t.substring(s-f,s)+t.substring(s,s+p),o=e.substring(0,n-f),r=e.substring(n+p),i=t.substring(0,s-f),l=t.substring(s+p))}return 2*d.length>=e.length?[o,r,i,l,d]:null}var i,l,a,s,d,p=r(n,o,Math.ceil(n.length/4)),f=r(n,o,Math.ceil(n.length/2));return p||f?(i=f?p&&p[4].length>f[4].length?p:f:p,e.length>t.length?(l=i[0],a=i[1],s=i[2],d=i[3]):(s=i[0],d=i[1],l=i[2],a=i[3]),[l,a,s,d,i[4]]):null}function p(e){e.push([r,""]);for(var t,i=0,l=0,a=0,s="",d="";i<e.length;)switch(e[i][0]){case o:a++,d+=e[i][1],i++;break;case n:l++,s+=e[i][1],i++;break;case r:l+a>1?(0!==l&&0!==a&&(0!==(t=u(d,s))&&(i-l-a>0&&e[i-l-a-1][0]==r?e[i-l-a-1][1]+=d.substring(0,t):(e.splice(0,0,[r,d.substring(0,t)]),i++),d=d.substring(t),s=s.substring(t)),0!==(t=c(d,s))&&(e[i][1]=d.substring(d.length-t)+e[i][1],d=d.substring(0,d.length-t),s=s.substring(0,s.length-t))),0===l?e.splice(i-a,l+a,[o,d]):0===a?e.splice(i-l,l+a,[n,s]):e.splice(i-l-a,l+a,[n,s],[o,d]),i=i-l-a+(l?1:0)+(a?1:0)+1):0!==i&&e[i-1][0]==r?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,a=0,l=0,s="",d=""}""===e[e.length-1][1]&&e.pop();var f=!1;for(i=1;i<e.length-1;)e[i-1][0]==r&&e[i+1][0]==r&&(e[i][1].substring(e[i][1].length-e[i-1][1].length)==e[i-1][1]?(e[i][1]=e[i-1][1]+e[i][1].substring(0,e[i][1].length-e[i-1][1].length),e[i+1][1]=e[i-1][1]+e[i+1][1],e.splice(i-1,1),f=!0):e[i][1].substring(0,e[i+1][1].length)==e[i+1][1]&&(e[i-1][1]+=e[i+1][1],e[i][1]=e[i][1].substring(e[i+1][1].length)+e[i+1][1],e.splice(i+1,1),f=!0)),i++;f&&p(e)}var f=i;function h(e,t){if(0===t)return[r,e];for(var o=0,i=0;i<e.length;i++){var l=e[i];if(l[0]===n||l[0]===r){var a=o+l[1].length;if(t===a)return[i+1,e];if(t<a){e=e.slice();var s=t-o,u=[l[0],l[1].slice(0,s)],c=[l[0],l[1].slice(s)];return e.splice(i,1,u,c),[i+1,e]}o=a}}throw new Error("cursor_pos is out of bounds!")}function m(e,t){var n=h(e,t),o=n[1],i=n[0],l=o[i],a=o[i+1];if(null==l)return e;if(l[0]!==r)return e;if(null!=a&&l[1]+a[1]===a[1]+l[1])return o.splice(i,2,a,l),b(o,i,2);if(null!=a&&0===a[1].indexOf(l[1])){o.splice(i,2,[a[0],l[1]],[0,l[1]]);var s=a[1].slice(l[1].length);return s.length>0&&o.splice(i+2,0,[a[0],s]),b(o,i,3)}return e}function g(e){for(var t=!1,i=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},l=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},a=2;a<e.length;a+=1)e[a-2][0]===r&&l(e[a-2][1])&&e[a-1][0]===n&&i(e[a-1][1])&&e[a][0]===o&&i(e[a][1])&&(t=!0,e[a-1][1]=e[a-2][1].slice(-1)+e[a-1][1],e[a][1]=e[a-2][1].slice(-1)+e[a][1],e[a-2][1]=e[a-2][1].slice(0,-1));if(!t)return e;var s=[];for(a=0;a<e.length;a+=1)e[a][1].length>0&&s.push(e[a]);return s}function b(e,t,n){for(var o=t+n-1;o>=0&&o>=t-1;o--)if(o+1<e.length){var r=e[o],i=e[o+1];r[0]===i[1]&&e.splice(o,2,[r[0],r[1]+i[1]])}return e}f.INSERT=o,f.DELETE=n,f.EQUAL=r,e.exports=f},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function o(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?o:r).supported=o,t.unsupported=r},function(e,t){var n=Object.prototype.hasOwnProperty,o="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function l(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(o=!1)),l.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},l.prototype.listeners=function(e,t){var n=o?o+e:e,r=this._events[n];if(t)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var i=0,l=r.length,a=new Array(l);i<l;i++)a[i]=r[i].fn;return a},l.prototype.emit=function(e,t,n,r,i,l){var a=o?o+e:e;if(!this._events[a])return!1;var s,u,c=this._events[a],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,r),!0;case 5:return c.fn.call(c.context,t,n,r,i),!0;case 6:return c.fn.call(c.context,t,n,r,i,l),!0}for(u=1,s=new Array(d-1);u<d;u++)s[u-1]=arguments[u];c.fn.apply(c.context,s)}else{var p,f=c.length;for(u=0;u<f;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,r);break;default:if(!s)for(p=1,s=new Array(d-1);p<d;p++)s[p-1]=arguments[p];c[u].fn.apply(c[u].context,s)}}return!0},l.prototype.on=function(e,t,n){var r=new i(t,n||this),l=o?o+e:e;return this._events[l]?this._events[l].fn?this._events[l]=[this._events[l],r]:this._events[l].push(r):(this._events[l]=r,this._eventsCount++),this},l.prototype.once=function(e,t,n){var r=new i(t,n||this,!0),l=o?o+e:e;return this._events[l]?this._events[l].fn?this._events[l]=[this._events[l],r]:this._events[l].push(r):(this._events[l]=r,this._eventsCount++),this},l.prototype.removeListener=function(e,t,n,i){var l=o?o+e:e;if(!this._events[l])return this;if(!t)return 0==--this._eventsCount?this._events=new r:delete this._events[l],this;var a=this._events[l];if(a.fn)a.fn===t&&(!i||a.once)&&(!n||a.context===n)&&(0==--this._eventsCount?this._events=new r:delete this._events[l]);else{for(var s=0,u=[],c=a.length;s<c;s++)(a[s].fn!==t||i&&!a[s].once||n&&a[s].context!==n)&&u.push(a[s]);u.length?this._events[l]=1===u.length?u[0]:u:0==--this._eventsCount?this._events=new r:delete this._events[l]}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=o?o+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new r:delete this._events[t])):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prototype.setMaxListeners=function(){return this},l.prefixed=o,l.EventEmitter=l,typeof e<"u"&&(e.exports=l)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var o="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},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=y(n(3)),a=y(n(2)),s=y(n(0)),u=y(n(5)),c=y(n(10)),d=y(n(9)),p=n(36),f=n(37),h=y(n(13)),m=n(26),g=n(38),b=n(39),v=n(40);function y(e){return e&&e.__esModule?e:{default:e}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function O(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var k=(0,c.default)("quill:clipboard"),S="__ql-matcher",E=[[Node.TEXT_NODE,B],[Node.TEXT_NODE,z],["br",L],[Node.ELEMENT_NODE,z],[Node.ELEMENT_NODE,A],[Node.ELEMENT_NODE,q],[Node.ELEMENT_NODE,F],[Node.ELEMENT_NODE,H],["li",$],["b",D.bind(D,"bold")],["i",D.bind(D,"italic")],["style",V]],R=[p.AlignAttribute,g.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),T=[p.AlignStyle,f.BackgroundStyle,m.ColorStyle,g.DirectionStyle,b.FontStyle,v.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),N=function(e){function t(e,n){x(this,t);var o=C(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.root.addEventListener("paste",o.onPaste.bind(o)),o.container=o.quill.addContainer("ql-clipboard"),o.container.setAttribute("contenteditable",!0),o.container.setAttribute("tabindex",-1),o.matchers=[],E.concat(o.options.matchers).forEach((function(e){var t=r(e,2),i=t[0],l=t[1];!n.matchVisual&&l===q||o.addMatcher(i,l)})),o}return O(t,e),i(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new a.default).insert(n,w({},h.default.blotName,t[h.default.blotName]))}var o=this.prepareMatching(),i=r(o,2),l=i[0],s=i[1],u=I(this.container,l,s);return j(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new a.default).retain(u.length()-1).delete(1))),k.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,u.default.sources.SILENT);else{var o=this.convert(t);this.quill.updateContents((new a.default).retain(e).concat(o),n),this.quill.setSelection(e+o.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),o=(new a.default).retain(n.index),r=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout((function(){o=o.concat(t.convert()).delete(n.length),t.quill.updateContents(o,u.default.sources.USER),t.quill.setSelection(o.length()-n.length,u.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=r,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(o){var i=r(o,2),l=i[0],a=i[1];switch(l){case Node.TEXT_NODE:n.push(a);break;case Node.ELEMENT_NODE:t.push(a);break;default:[].forEach.call(e.container.querySelectorAll(l),(function(e){e[S]=e[S]||[],e[S].push(a)}))}})),[t,n]}}]),t}(d.default);function P(e,t,n){return"object"===(typeof t>"u"?"undefined":o(t))?Object.keys(t).reduce((function(e,n){return P(e,n,t[n])}),e):e.reduce((function(e,o){return o.attributes&&o.attributes[t]?e.push(o):e.insert(o.insert,(0,l.default)({},w({},t,n),o.attributes))}),new a.default)}function M(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function j(e,t){for(var n="",o=e.ops.length-1;o>=0&&n.length<t.length;--o){var r=e.ops[o];if("string"!=typeof r.insert)break;n=r.insert+n}return n.slice(-1*t.length)===t}function _(e){if(0===e.childNodes.length)return!1;var t=M(e);return["block","list-item"].indexOf(t.display)>-1}function I(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new a.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(o,r){var i=I(r,t,n);return r.nodeType===e.ELEMENT_NODE&&(i=t.reduce((function(e,t){return t(r,e)}),i),i=(r[S]||[]).reduce((function(e,t){return t(r,e)}),i)),o.concat(i)}),new a.default):new a.default}function D(e,t,n){return P(n,e,!0)}function F(e,t){var n=s.default.Attributor.Attribute.keys(e),o=s.default.Attributor.Class.keys(e),r=s.default.Attributor.Style.keys(e),i={};return n.concat(o).concat(r).forEach((function(t){var n=s.default.query(t,s.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(e),i[n.attrName])||(null!=(n=R[t])&&(n.attrName===t||n.keyName===t)&&(i[n.attrName]=n.value(e)||void 0),null!=(n=T[t])&&(n.attrName===t||n.keyName===t)&&(n=T[t],i[n.attrName]=n.value(e)||void 0))})),Object.keys(i).length>0&&(t=P(t,i)),t}function A(e,t){var n=s.default.query(e);if(null==n)return t;if(n.prototype instanceof s.default.Embed){var o={},r=n.value(e);null!=r&&(o[n.blotName]=r,t=(new a.default).insert(o,n.formats(e)))}else"function"==typeof n.formats&&(t=P(t,n.blotName,n.formats(e)));return t}function L(e,t){return j(t,"\n")||t.insert("\n"),t}function V(){return new a.default}function $(e,t){var n=s.default.query(e);if(null==n||"list-item"!==n.blotName||!j(t,"\n"))return t;for(var o=-1,r=e.parentNode;!r.classList.contains("ql-clipboard");)"list"===(s.default.query(r)||{}).blotName&&(o+=1),r=r.parentNode;return o<=0?t:t.compose((new a.default).retain(t.length()-1).retain(1,{indent:o}))}function z(e,t){return j(t,"\n")||(_(e)||t.length()>0&&e.nextSibling&&_(e.nextSibling))&&t.insert("\n"),t}function q(e,t){if(_(e)&&null!=e.nextElementSibling&&!j(t,"\n\n")){var n=e.offsetHeight+parseFloat(M(e).marginTop)+parseFloat(M(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function H(e,t){var n={},o=e.style||{};return o.fontStyle&&"italic"===M(e).fontStyle&&(n.italic=!0),o.fontWeight&&(M(e).fontWeight.startsWith("bold")||parseInt(M(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=P(t,n)),parseFloat(o.textIndent||0)>0&&(t=(new a.default).insert("\t").concat(t)),t}function B(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!M(e.parentNode).whiteSpace.startsWith("pre")){var o=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,o.bind(o,!0)),(null==e.previousSibling&&_(e.parentNode)||null!=e.previousSibling&&_(e.previousSibling))&&(n=n.replace(/^\s+/,o.bind(o,!1))),(null==e.nextSibling&&_(e.parentNode)||null!=e.nextSibling&&_(e.nextSibling))&&(n=n.replace(/\s+$/,o.bind(o,!1)))}return t.insert(n)}N.DEFAULTS={matchers:[],matchVisual:!0},t.default=N,t.matchAttributor=F,t.matchBlot=A,t.matchNewline=z,t.matchSpacing=q,t.matchText=B},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return l(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,[{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(i(n(6)).default);u.blotName="bold",u.tagName=["STRONG","B"],t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=c(n(2)),l=c(n(0)),a=c(n(5)),s=c(n(10)),u=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=(0,s.default)("quill:toolbar"),g=function(e){function t(e,n){p(this,t);var r,i=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(i.options.container)){var l=document.createElement("div");v(l,i.options.container),e.container.parentNode.insertBefore(l,e.container),i.container=l}else"string"==typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach((function(e){i.addHandler(e,i.options.handlers[e])})),[].forEach.call(i.container.querySelectorAll("button, select"),(function(e){i.attach(e)})),i.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t){e===a.default.events.SELECTION_CHANGE&&i.update(t)})),i.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){var e=i.quill.selection.getRange(),t=o(e,1)[0];i.update(t)})),i):(r=m.error("Container required for toolbar",i.options),f(i,r))}return h(t,e),r(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice(3),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void m.warn("ignoring attaching to disabled format",n,e);if(null==l.default.query(n))return void m.warn("ignoring attaching to nonexistent format",n,e)}var r="SELECT"===e.tagName?"change":"click";e.addEventListener(r,(function(r){var s=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var u=e.options[e.selectedIndex];s=!u.hasAttribute("selected")&&(u.value||!1)}else s=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),r.preventDefault();t.quill.focus();var c=t.quill.selection.getRange(),p=o(c,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,s);else if(l.default.query(n).prototype instanceof l.default.Embed){if(!(s=prompt("Enter "+n)))return;t.quill.updateContents((new i.default).retain(p.index).delete(p.length).insert(d({},n,s)),a.default.sources.USER)}else t.quill.format(n,s,a.default.sources.USER);t.update(p)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var r=o(n,2),i=r[0],l=r[1];if("SELECT"===l.tagName){var a=void 0;if(null==e)a=null;else if(null==t[i])a=l.querySelector("option[selected]");else if(!Array.isArray(t[i])){var s=t[i];"string"==typeof s&&(s=s.replace(/\"/g,'\\"')),a=l.querySelector('option[value="'+s+'"]')}null==a?(l.value="",l.selectedIndex=-1):a.selected=!0}else if(null==e)l.classList.remove("ql-active");else if(l.hasAttribute("value")){var u=t[i]===l.getAttribute("value")||null!=t[i]&&t[i].toString()===l.getAttribute("value")||null==t[i]&&!l.getAttribute("value");l.classList.toggle("ql-active",u)}else l.classList.toggle("ql-active",null!=t[i])}))}}]),t}(u.default);function b(e,t,n){var o=document.createElement("button");o.setAttribute("type","button"),o.classList.add("ql-"+t),null!=n&&(o.value=n),e.appendChild(o)}function v(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)b(n,e);else{var t=Object.keys(e)[0],o=e[t];Array.isArray(o)?y(n,t,o):b(n,t,o)}})),e.appendChild(n)}))}function y(e,t,n){var o=document.createElement("select");o.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),o.appendChild(t)})),e.appendChild(o)}g.DEFAULTS={},g.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=l.default.query(t,l.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,a.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",a.default.sources.USER):!e&&"right"===t&&this.quill.format("align",!1,a.default.sources.USER),this.quill.format("direction",e,a.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),o=parseInt(n.indent||0);if("+1"===e||"-1"===e){var r="+1"===e?1:-1;"rtl"===n.direction&&(r*=-1),this.quill.format("indent",o+r,a.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,a.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,a.default.sources.USER):this.quill.format("list","unchecked",a.default.sources.USER):this.quill.format("list",e,a.default.sources.USER)}}},t.default=g,t.addControls=v},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(e,n){l(this,t);var o=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.label.innerHTML=n,o.container.classList.add("ql-color-picker"),[].slice.call(o.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),o}return s(t,e),o(t,[{key:"buildItem",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var o=this.label.querySelector(".ql-color-label"),i=e&&e.getAttribute("data-value")||"";o&&("line"===o.tagName?o.style.stroke=i:o.style.fill=i)}}]),t}(i(n(28)).default);t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(e,n){l(this,t);var o=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.container.classList.add("ql-icon-picker"),[].forEach.call(o.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),o.defaultItem=o.container.querySelector(".ql-selected"),o.selectItem(o.defaultItem),o}return s(t,e),o(t,[{key:"selectItem",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(i(n(28)).default);t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(t,n){var o=this;r(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"})),this.hide()}return o(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var o=this.boundsContainer.getBoundingClientRect(),r=this.root.getBoundingClientRect(),i=0;if(r.right>o.right&&(i=o.right-r.right,this.root.style.left=t+i+"px"),r.left<o.left&&(i=o.left-r.left,this.root.style.left=t+i+"px"),r.bottom>o.bottom){var l=r.bottom-r.top,a=e.bottom-e.top+l;this.root.style.top=n-a+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=f(n(3)),a=f(n(8)),s=n(43),u=f(s),c=f(n(27)),d=n(15),p=f(n(41));function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var b=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],v=function(e){function t(e,n){h(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=b);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.container.classList.add("ql-snow"),o}return g(t,e),i(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),p.default),this.tooltip=new y(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)}))}}]),t}(u.default);v.DEFAULTS=(0,l.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var y=function(e){function t(e,n){h(this,t);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.preview=o.root.querySelector("a.ql-preview"),o}return g(t,e),i(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,a.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(a.default.events.SELECTION_CHANGE,(function(t,n,r){if(null!=t){if(0===t.length&&r===a.default.sources.USER){var i=e.quill.scroll.descendant(c.default,t.index),l=o(i,2),s=l[0],u=l[1];if(null!=s){e.linkRange=new d.Range(t.index-u,s.length());var p=c.default.formats(s.domNode);return e.preview.textContent=p,e.preview.setAttribute("href",p),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(s.BaseTooltip);y.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=v},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=D(n(29)),r=n(36),i=n(38),l=n(64),a=D(n(65)),s=D(n(66)),u=n(67),c=D(u),d=n(37),p=n(26),f=n(39),h=n(40),m=D(n(56)),g=D(n(68)),b=D(n(27)),v=D(n(69)),y=D(n(70)),w=D(n(71)),x=D(n(72)),C=D(n(73)),O=n(13),k=D(O),S=D(n(74)),E=D(n(75)),R=D(n(57)),T=D(n(41)),N=D(n(28)),P=D(n(59)),M=D(n(60)),j=D(n(61)),_=D(n(108)),I=D(n(62));function D(e){return e&&e.__esModule?e:{default:e}}o.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":r.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":p.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":f.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":r.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":p.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":f.FontStyle,"attributors/style/size":h.SizeStyle},!0),o.default.register({"formats/align":r.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":l.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":p.ColorStyle,"formats/font":f.FontClass,"formats/size":h.SizeClass,"formats/blockquote":a.default,"formats/code-block":k.default,"formats/header":s.default,"formats/list":c.default,"formats/bold":m.default,"formats/code":O.Code,"formats/italic":g.default,"formats/link":b.default,"formats/script":v.default,"formats/strike":y.default,"formats/underline":w.default,"formats/image":x.default,"formats/video":C.default,"formats/list/item":u.ListItem,"modules/formula":S.default,"modules/syntax":E.default,"modules/toolbar":R.default,"themes/bubble":_.default,"themes/snow":I.default,"ui/icons":T.default,"ui/picker":N.default,"ui/icon-picker":M.default,"ui/color-picker":P.default,"ui/tooltip":j.default},!0),t.default=o.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),o(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var o=this.value(e)||0;n="+1"===n?o+1:o-1}return 0===n?(this.remove(e),!0):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(i.default.Attributor.Class),d=new c("indent","ql-indent",{scope:i.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=d},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(o(n(4)).default);a.blotName="blockquote",a.tagName="blockquote",t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(e){function t(){return i(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),o(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(r(n(4)).default);s.blotName="header",s.tagName=["H1","H2","H3","H4","H5","H6"],t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=s(n(0)),l=s(n(4)),a=s(n(25));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return c(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),o(t,[{key:"format",value:function(e,n){e!==h.blotName||n?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(i.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:r(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(l.default);f.blotName="list-item",f.tagName="LI";var h=function(e){function t(e){c(this,t);var n=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),o=function(t){if(t.target.parentNode===e){var o=n.statics.formats(e),r=i.default.find(t.target);"checked"===o?r.format("list","unchecked"):"unchecked"===o&&r.format("list","checked")}};return e.addEventListener("touchstart",o),e.addEventListener("mousedown",o),n}return p(t,e),o(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",o=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return("checked"===e||"unchecked"===e)&&o.setAttribute("data-checked","checked"===e),o}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),o(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return u({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(e,n){if(e instanceof f)r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var o=null==n?this.length():n.offset(this),i=this.split(o);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=i.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(a.default);h.blotName="list",h.scope=i.default.Scope.BLOCK_BLOT,h.tagName=["OL","UL"],h.defaultChild="list-item",h.allowedChildren=[f],t.ListItem=f,t.default=h},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(o(n(56)).default);a.blotName="italic",a.tagName=["EM","I"],t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return l(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(i(n(6)).default);u.blotName="script",u.tagName=["SUB","SUP"],t.default=u},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(o(n(6)).default);a.blotName="strike",a.tagName="S",t.default=a},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(o(n(6)).default);a.blotName="underline",a.tagName="U",t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=a(n(0)),l=n(27);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=["alt","height","width"],p=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),o(t,[{key:"format",value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,l.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(i.default.Embed);p.blotName="image",p.tagName="IMG",t.default=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=n(4),l=a(n(27));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=["height","width"],p=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),o(t,[{key:"format",value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return l.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(i.BlockEmbed);p.blotName="video",p.className="ql-video",p.tagName="IFRAME",t.default=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=s(n(35)),l=s(n(5)),a=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),o(t,null,[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(i.default);p.blotName="formula",p.className="ql-formula",p.tagName="SPAN";var f=function(e){function t(){u(this,t);var e=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return d(t,e),o(t,null,[{key:"register",value:function(){l.default.register(p,!0)}}]),t}(a.default);t.FormulaBlot=p,t.default=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=s(n(0)),l=s(n(5)),a=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),o(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(s(n(13)).default);p.className="ql-syntax";var f=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),h=function(e){function t(e,n){u(this,t);var o=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof o.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var r=null;return o.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(r),r=setTimeout((function(){o.highlight(),r=null}),o.options.interval)})),o.highlight(),o}return d(t,e),o(t,null,[{key:"register",value:function(){l.default.register(f,!0),l.default.register(p,!0)}}]),o(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(l.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(p).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(l.default.sources.SILENT),null!=t&&this.quill.setSelection(t,l.default.sources.SILENT)}}}]),t}(a.default);h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=p,t.CodeToken=f,t.default=h},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var o=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=d(n(3)),l=d(n(8)),a=n(43),s=d(a),u=n(15),c=d(n(41));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],g=function(e){function t(e,n){p(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=m);var o=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.container.classList.add("ql-bubble"),o}return h(t,e),r(t,[{key:"extendToolbar",value:function(e){this.tooltip=new b(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),c.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),c.default)}}]),t}(s.default);g.DEFAULTS=(0,i.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var b=function(e){function t(e,n){p(this,t);var o=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.on(l.default.events.EDITOR_CHANGE,(function(e,t,n,r){if(e===l.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&r===l.default.sources.USER){o.show(),o.root.style.left="0px",o.root.style.width="",o.root.style.width=o.root.offsetWidth+"px";var i=o.quill.getLines(t.index,t.length);if(1===i.length)o.position(o.quill.getBounds(t));else{var a=i[i.length-1],s=o.quill.getIndex(a),c=Math.min(a.length()-1,t.index+t.length-s),d=o.quill.getBounds(new u.Range(s,c));o.position(d)}}else document.activeElement!==o.textbox&&o.quill.hasFocus()&&o.hide()})),o}return h(t,e),r(t,[{key:"listen",value:function(){var e=this;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),t}(a.BaseTooltip);b.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=b,t.default=g},function(e,t,n){e.exports=n(63)}]).default,fI=ke&&ke.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),hI=ke&&ke.__assign||function(){return hI=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},hI.apply(this,arguments)},mI=ke&&ke.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],l=0,a=i.length;l<a;l++,r++)o[r]=i[l];return o},gI=ke&&ke.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},bI=gI(t),vI=gI(ue),yI=gI(cI),wI=gI(pI),xI=function(e){function t(t){var n=e.call(this,t)||this;n.dirtyProps=["modules","formats","bounds","theme","children"],n.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],n.state={generation:0},n.selection=null,n.onEditorChange=function(e,t,o,r){var i,l,a,s;"text-change"===e?null===(l=(i=n).onEditorChangeText)||void 0===l||l.call(i,n.editor.root.innerHTML,t,r,n.unprivilegedEditor):"selection-change"===e&&(null===(s=(a=n).onEditorChangeSelection)||void 0===s||s.call(a,t,r,n.unprivilegedEditor))};var o=n.isControlled()?t.value:t.defaultValue;return n.value=o??"",n}return fI(t,e),t.prototype.validateProps=function(e){var t;if(bI.default.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(bI.default.Children.count(e.children)&&"textarea"===(null===(t=bI.default.Children.only(e.children))||void 0===t?void 0:t.type))throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.");if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},t.prototype.shouldComponentUpdate=function(e,t){var n=this;if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){var o=this.getEditorContents(),r=e.value??"";this.isEqualValue(r,o)||this.setEditorContents(this.editor,r)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),mI(this.cleanProps,this.dirtyProps).some((function(t){return!yI.default(e[t],n.props[t])}))},t.prototype.shouldComponentRegenerate=function(e){var t=this;return this.dirtyProps.some((function(n){return!yI.default(e[n],t.props[n])}))},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(e,t){var n=this;if(this.editor&&this.shouldComponentRegenerate(e)){var o=this.editor.getContents(),r=this.editor.getSelection();this.regenerationSnapshot={delta:o,selection:r},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){var i=this.regenerationSnapshot,l=(o=i.delta,i.selection);delete this.regenerationSnapshot,this.instantiateEditor();var a=this.editor;a.setContents(o),CI((function(){return n.setEditorSelection(a,l)}))}},t.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},t.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(e,t){var n=new wI.default(e,t);return null!=t.tabIndex&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n},t.prototype.hookEditor=function(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(e){e.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(e){return e&&e.ops},t.prototype.isEqualValue=function(e,t){return this.isDelta(e)&&this.isDelta(t)?yI.default(e.ops,t.ops):yI.default(e,t)},t.prototype.setEditorContents=function(e,t){var n=this;this.value=t;var o=this.getEditorSelection();"string"==typeof t?e.setContents(e.clipboard.convert(t)):e.setContents(t),CI((function(){return n.setEditorSelection(e,o)}))},t.prototype.setEditorSelection=function(e,t){if(this.selection=t,t){var n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}},t.prototype.setEditorTabIndex=function(e,t){var n,o;null!==(o=null===(n=e)||void 0===n?void 0:n.scroll)&&void 0!==o&&o.domNode&&(e.scroll.domNode.tabIndex=t)},t.prototype.setEditorReadOnly=function(e,t){t?e.disable():e.enable()},t.prototype.makeUnprivilegedEditor=function(e){var t=e;return{getHTML:function(){return t.root.innerHTML},getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var e=vI.default.findDOMNode(this.editingArea);if(!e)throw new Error("Cannot find element for editing area");if(3===e.nodeType)throw new Error("Editing area cannot be a text node");return e},t.prototype.renderEditingArea=function(){var e=this,t=this.props,n=t.children,o=t.preserveWhitespace,r={key:this.state.generation,ref:function(t){e.editingArea=t}};return bI.default.Children.count(n)?bI.default.cloneElement(bI.default.Children.only(n),r):o?bI.default.createElement("pre",hI({},r)):bI.default.createElement("div",hI({},r))},t.prototype.render=function(){var e;return bI.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(e=this.props.className,e??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(e,t,n,o){var r,i;if(this.editor){var l=this.isDelta(this.value)?o.getContents():o.getHTML();l!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=l,null===(i=(r=this.props).onChange)||void 0===i||i.call(r,e,t,n,o))}},t.prototype.onEditorChangeSelection=function(e,t,n){var o,r,i,l,a,s;if(this.editor){var u=this.getEditorSelection(),c=!u&&e,d=u&&!e;yI.default(e,u)||(this.selection=e,null===(r=(o=this.props).onChangeSelection)||void 0===r||r.call(o,e,t,n),c?null===(l=(i=this.props).onFocus)||void 0===l||l.call(i,e,t,n):d&&(null===(s=(a=this.props).onBlur)||void 0===s||s.call(a,u,t,n)))}},t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=wI.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(bI.default.Component);function CI(e){Promise.resolve().then(e)}const OI=Se(xI),kI="_viewMode_dgzrp_1",SI="_editMode_dgzrp_2",EI="_text-label_dgzrp_24",RI="_error-message_dgzrp_28",TI={toolbar:[[{font:[]}],[{size:[]}],["bold","italic","underline","strike","blockquote"],[{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}]]},NI=["size","font","bold","italic","underline","strike","blockquote","list","bullet","indent"],PI=({dataTest:e,...t})=>Me.jsxs(Me.Fragment,{children:[t.label&&Me.jsx("span",{className:vo(EI),"data-test":`label-${e}`,children:t.label}),t.disabled?Me.jsx(OI,{...t,className:vo(kI,t.className),readOnly:!0,modules:{toolbar:!1},"data-test":e}):Me.jsx(OI,{...t,className:vo(SI,t.className),modules:{...TI,...t.modules},formats:{...NI,...t.formats},"data-test":e}),(t.is_error?"error":t.is_warning?"warning":!!t.isRequired||null)&&Me.jsx("span",{className:RI,"data-test":`error-${e}`,children:t.error?t.error:"error"})]}),MI=({dataTest:e,allowClear:t,...n})=>Me.jsx(_,{...n,"data-test":e,value:n.value,IconComponent:e=>Me.jsx(tl,{...e,icon:"material-symbols:expand-more-rounded",width:24,height:24,className:vo(e.className,"select-custom-icon")}),endAdornment:t&&n.value?Me.jsx("div",{className:"hover:bg-gama-100 duration-300 absolute right-8 p-[2px] rounded-full flex items-center justify-center",onClick:()=>{var e;null==(e=n.onChange)||e.call(n,{target:{value:""}},null)},children:Me.jsx(Bl,{width:18,height:18})}):null,sx:{...n.sx,".MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-delta-500) !important"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-gama-500) !important"},"&.Mui-focused::after":{borderColor:"var(--colors-gama-500) !important"},"& .select-custom-icon":{marginTop:"-3.5px !important"}}}),jI=e=>Me.jsx(I,{...e,sx:{"&.MuiMenuItem-root":{fontSize:"14px !important"},"&.Mui-selected":{backgroundColor:"var(--colors-gama-50) !important"}},children:e.children});function _I({dataTest:e,...t}){return Me.jsx(D,{...t,className:vo("!text-sm",t.className),popupIcon:t.popupIcon||Me.jsx(tl,{icon:"material-symbols:expand-more-rounded",width:24,height:24,className:vo("select-custom-icon")}),"data-test":e,PaperComponent:({children:t})=>Me.jsx(F,{"data-test":`paper-${e}`,sx:{"& .MuiAutocomplete-option.Mui-focused":{background:"var(--colors-delta-50) !important"},"& li[aria-selected=true]":{background:"var(--colors-gama-50) !important"},"& li[aria-selected=true].MuiAutocomplete-option.Mui-focused":{background:"var(--colors-gama-50) !important"}},children:t}),sx:{...t.sx,"& .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-gama-500) !important"},"& .select-custom-icon":{marginTop:"-0.5px !important"},"& .MuiInputBase-inputSizeSmall":{minHeight:"23px !important"}}})}const II=({dataTest:e,...t})=>{var n,o,r;return Me.jsx(A,{...t,"data-test":e,classes:{...t.classes},slotProps:{...t.slotProps,thumb:{className:vo("w-4 h-4","before:shadow-none","vertical"===t.orientation?"ml-0 mb-1":"ml-1",t.disabled||!t.value?"bg-delta-200":"bg-gama-600"),...null==(n=t.slotProps)?void 0:n.thumb},rail:{className:"bg-delta-200",...null==(o=t.slotProps)?void 0:o.rail},markLabel:{className:vo("text-delta-600 text-sm font-semibold ml-1","vertical"===t.orientation&&"mb-1"),...null==(r=t.slotProps)?void 0:r.markLabel}},sx:{...t.sx,"& .MuiSlider-track":{backgroundColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)",borderColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)"},"& .MuiSlider-mark":{backgroundColor:"white",border:"1px solid var(--colors-gray-200)",borderRadius:"50%",height:"8px",width:"8px","&.MuiSlider-markActive":{backgroundColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)",border:"1px solid",borderColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)",opacity:1}}}})},DI=({dataTest:e,...t})=>Me.jsx(L,{...t,"data-test":e,sx:{"& .MuiButtonBase-root.Mui-checked":{color:"var(--colors-gama-500) !important"},"& .Mui-disabled .MuiSwitch-thumb":{backgroundColor:"var(--colors-gama-200) !important"},"& .MuiSwitch-thumb":{backgroundColor:"var(--colors-gama-500) !important"},"& .MuiSwitch-input:not(:checked) ~ .MuiSwitch-thumb":{backgroundColor:"var(--colors-gray-10) !important"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"var(--colors-gama-200) !important"},"& .PrivateSwitchBase-input.MuiSwitch-input":{height:"100% !important"}}}),FI=({dataTest:e,...t})=>Me.jsx(V,{...t,"data-test":e,sx:{"&":{color:"var(--colors-gray-200)"},"&.Mui-checked":{color:"var(--colors-gama-500)"}}}),AI=({dataTest:e,...t})=>Me.jsx($,{"data-test":e,...t});function LI(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function VI(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function $I(e){VI(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===UO(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function zI(e,t){VI(2,arguments);var n=$I(e),o=LI(t);return isNaN(o)?new Date(NaN):(o&&n.setDate(n.getDate()+o),n)}function qI(e,t){VI(2,arguments);var n=$I(e),o=LI(t);if(isNaN(o))return new Date(NaN);if(!o)return n;var r=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+o+1,0),r>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}var HI={};function BI(){return HI}function UI(e,t){var n,o,r,i,l,a,s,u;VI(1,arguments);var c=BI(),d=LI(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(l=t.locale)||void 0===l||null===(a=l.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:c.weekStartsOn)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=$I(e),f=p.getDay(),h=(f<d?7:0)+f-d;return p.setDate(p.getDate()-h),p.setHours(0,0,0,0),p}function WI(e){return VI(1,arguments),UI(e,{weekStartsOn:1})}function GI(e){VI(1,arguments);var t=function(e){VI(1,arguments);var t=$I(e),n=t.getFullYear(),o=new Date(0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);var r=WI(o),i=new Date(0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);var l=WI(i);return t.getTime()>=r.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),WI(n)}function KI(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function YI(e){VI(1,arguments);var t=$I(e);return t.setHours(0,0,0,0),t}var ZI=864e5;function XI(e,t){VI(2,arguments);var n=YI(e),o=YI(t),r=n.getTime()-KI(n),i=o.getTime()-KI(o);return Math.round((r-i)/ZI)}function QI(e,t){return VI(2,arguments),zI(e,7*LI(t))}function JI(e,t){return VI(2,arguments),qI(e,12*LI(t))}function eD(e,t){VI(2,arguments);var n=YI(e),o=YI(t);return n.getTime()===o.getTime()}function tD(e){return VI(1,arguments),e instanceof Date||"object"===UO(e)&&"[object Date]"===Object.prototype.toString.call(e)}function nD(e,t){VI(2,arguments);var n=$I(e),o=$I(t);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}var oD=6048e5;function rD(e){VI(1,arguments);var t=$I(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function iD(e){VI(1,arguments);var t=$I(e);return t.setDate(1),t.setHours(0,0,0,0),t}function lD(e){VI(1,arguments);var t=$I(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function aD(e,t){var n,o,r,i,l,a,s,u;VI(1,arguments);var c=BI(),d=LI(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(l=t.locale)||void 0===l||null===(a=l.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:c.weekStartsOn)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=$I(e),f=p.getDay(),h=6+(f<d?-7:0)-(f-d);return p.setDate(p.getDate()+h),p.setHours(23,59,59,999),p}function sD(e){return VI(1,arguments),aD(e,{weekStartsOn:1})}function uD(e,t){return VI(2,arguments),function(e,t){VI(2,arguments);var n=$I(e).getTime(),o=LI(t);return new Date(n+o)}(e,-LI(t))}function cD(e){VI(1,arguments);var t=$I(e),n=t.getUTCDay(),o=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}function dD(e){VI(1,arguments);var t=$I(e),n=t.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var r=cD(o),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var l=cD(i);return t.getTime()>=r.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}function pD(e){VI(1,arguments);var t=$I(e),n=cD(t).getTime()-function(e){VI(1,arguments);var t=dD(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),cD(n)}(t).getTime();return Math.round(n/6048e5)+1}function fD(e,t){var n,o,r,i,l,a,s,u;VI(1,arguments);var c=BI(),d=LI(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(l=t.locale)||void 0===l||null===(a=l.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:c.weekStartsOn)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=$I(e),f=p.getUTCDay(),h=(f<d?7:0)+f-d;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function hD(e,t){var n,o,r,i,l,a,s,u;VI(1,arguments);var c=$I(e),d=c.getUTCFullYear(),p=BI(),f=LI(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(l=t.locale)||void 0===l||null===(a=l.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:p.firstWeekContainsDate)&&void 0!==o?o:null===(s=p.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(d+1,0,f),h.setUTCHours(0,0,0,0);var m=fD(h,t),g=new Date(0);g.setUTCFullYear(d,0,f),g.setUTCHours(0,0,0,0);var b=fD(g,t);return c.getTime()>=m.getTime()?d+1:c.getTime()>=b.getTime()?d:d-1}function mD(e,t){VI(1,arguments);var n=$I(e),o=fD(n,t).getTime()-function(e,t){var n,o,r,i,l,a,s,u;VI(1,arguments);var c=BI(),d=LI(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(l=t.locale)||void 0===l||null===(a=l.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:c.firstWeekContainsDate)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),p=hD(e,t),f=new Date(0);return f.setUTCFullYear(p,0,d),f.setUTCHours(0,0,0,0),fD(f,t)}(n,t).getTime();return Math.round(o/6048e5)+1}function gD(e,t){for(var n=e<0?"-":"",o=Math.abs(e).toString();o.length<t;)o="0"+o;return n+o}var bD={y:function(e,t){var n=e.getUTCFullYear(),o=n>0?n:1-n;return gD("yy"===t?o%100:o,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):gD(n+1,2)},d:function(e,t){return gD(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return gD(e.getUTCHours()%12||12,t.length)},H:function(e,t){return gD(e.getUTCHours(),t.length)},m:function(e,t){return gD(e.getUTCMinutes(),t.length)},s:function(e,t){return gD(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,o=e.getUTCMilliseconds();return gD(Math.floor(o*Math.pow(10,n-3)),t.length)}};const vD=bD;var yD="midnight",wD="noon",xD="morning",CD="afternoon",OD="evening",kD="night",SD={G:function(e,t,n){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});default:return n.era(o,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var o=e.getUTCFullYear(),r=o>0?o:1-o;return n.ordinalNumber(r,{unit:"year"})}return vD.y(e,t)},Y:function(e,t,n,o){var r=hD(e,o),i=r>0?r:1-r;return"YY"===t?gD(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):gD(i,t.length)},R:function(e,t){return gD(dD(e),t.length)},u:function(e,t){return gD(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return gD(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return gD(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,n){var o=e.getUTCMonth();switch(t){case"M":case"MM":return vD.M(e,t);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,n){var o=e.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return gD(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,n,o){var r=mD(e,o);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):gD(r,t.length)},I:function(e,t,n){var o=pD(e);return"Io"===t?n.ordinalNumber(o,{unit:"week"}):gD(o,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):vD.d(e,t)},D:function(e,t,n){var o=function(e){VI(1,arguments);var t=$I(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var o=n-t.getTime();return Math.floor(o/864e5)+1}(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):gD(o,t.length)},E:function(e,t,n){var o=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,n,o){var r=e.getUTCDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return gD(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,o){var r=e.getUTCDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return gD(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){var o=e.getUTCDay(),r=0===o?7:o;switch(t){case"i":return String(r);case"ii":return gD(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,n){var o=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){var o,r=e.getUTCHours();switch(o=12===r?wD:0===r?yD:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){var o,r=e.getUTCHours();switch(o=r>=17?OD:r>=12?CD:r>=4?xD:kD,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var o=e.getUTCHours()%12;return 0===o&&(o=12),n.ordinalNumber(o,{unit:"hour"})}return vD.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):vD.H(e,t)},K:function(e,t,n){var o=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(o,{unit:"hour"}):gD(o,t.length)},k:function(e,t,n){var o=e.getUTCHours();return 0===o&&(o=24),"ko"===t?n.ordinalNumber(o,{unit:"hour"}):gD(o,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):vD.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):vD.s(e,t)},S:function(e,t){return vD.S(e,t)},X:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return RD(r);case"XXXX":case"XX":return TD(r);default:return TD(r,":")}},x:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"x":return RD(r);case"xxxx":case"xx":return TD(r);default:return TD(r,":")}},O:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ED(r,":");default:return"GMT"+TD(r,":")}},z:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ED(r,":");default:return"GMT"+TD(r,":")}},t:function(e,t,n,o){var r=o._originalDate||e;return gD(Math.floor(r.getTime()/1e3),t.length)},T:function(e,t,n,o){return gD((o._originalDate||e).getTime(),t.length)}};function ED(e,t){var n=e>0?"-":"+",o=Math.abs(e),r=Math.floor(o/60),i=o%60;if(0===i)return n+String(r);var l=t||"";return n+String(r)+l+gD(i,2)}function RD(e,t){return e%60==0?(e>0?"-":"+")+gD(Math.abs(e)/60,2):TD(e,t)}function TD(e,t){var n=t||"",o=e>0?"-":"+",r=Math.abs(e);return o+gD(Math.floor(r/60),2)+n+gD(r%60,2)}const ND=SD;var PD=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},MD=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},jD={p:MD,P:function(e,t){var n,o=e.match(/(P+)(p+)?/)||[],r=o[1],i=o[2];if(!i)return PD(e,t);switch(r){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",PD(r,t)).replace("{{time}}",MD(i,t))}};const _D=jD;var ID=["D","DD"],DD=["YY","YYYY"];function FD(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var AD={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const LD=function(e,t,n){var o,r=AD[e];return o="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};function VD(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const $D={date:VD({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:VD({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:VD({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var zD={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const qD=function(e,t,n,o){return zD[e]};function HD(e){return function(t,n){var o;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):r;o=e.formattingValues[i]||e.formattingValues[r]}else{var l=e.defaultWidth,a=null!=n&&n.width?String(n.width):e.defaultWidth;o=e.values[a]||e.values[l]}return o[e.argumentCallback?e.argumentCallback(t):t]}}var BD={ordinalNumber:function(e,t){var n=Number(e),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:HD({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:HD({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:HD({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:HD({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:HD({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};const UD=BD;function WD(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.width,r=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;var l,a=i[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(s,(function(e){return e.test(a)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(s,(function(e){return e.test(a)}));return l=e.valueCallback?e.valueCallback(u):u,{value:l=n.valueCallback?n.valueCallback(l):l,rest:t.slice(a.length)}}}var GD={ordinalNumber:function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.match(e.matchPattern);if(!o)return null;var r=o[0],i=t.match(e.parsePattern);if(!i)return null;var l=e.valueCallback?e.valueCallback(i[0]):i[0];return{value:l=n.valueCallback?n.valueCallback(l):l,rest:t.slice(r.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:WD({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:WD({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:WD({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:WD({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:WD({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const KD=GD;const YD={code:"en-US",formatDistance:LD,formatLong:$D,formatRelative:qD,localize:UD,match:KD,options:{weekStartsOn:0,firstWeekContainsDate:1}};var ZD=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,XD=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,QD=/^'([^]*?)'?$/,JD=/''/g,eF=/[a-zA-Z]/;function tF(e,t,n){var o,r,i,l,a,s,u,c,d,p,f,h,m,g,b,v,y,w;VI(2,arguments);var x=String(t),C=BI(),O=null!==(o=null!==(r=null==n?void 0:n.locale)&&void 0!==r?r:C.locale)&&void 0!==o?o:YD,k=LI(null!==(i=null!==(l=null!==(a=null!==(s=null==n?void 0:n.firstWeekContainsDate)&&void 0!==s?s:null==n||null===(u=n.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==a?a:C.firstWeekContainsDate)&&void 0!==l?l:null===(d=C.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==i?i:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=LI(null!==(f=null!==(h=null!==(m=null!==(g=null==n?void 0:n.weekStartsOn)&&void 0!==g?g:null==n||null===(b=n.locale)||void 0===b||null===(v=b.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==m?m:C.weekStartsOn)&&void 0!==h?h:null===(y=C.locale)||void 0===y||null===(w=y.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==f?f:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!O.localize)throw new RangeError("locale must contain localize property");if(!O.formatLong)throw new RangeError("locale must contain formatLong property");var E=$I(e);if(!function(e){if(VI(1,arguments),!tD(e)&&"number"!=typeof e)return!1;var t=$I(e);return!isNaN(Number(t))}(E))throw new RangeError("Invalid time value");var R=uD(E,KI(E)),T={firstWeekContainsDate:k,weekStartsOn:S,locale:O,_originalDate:E},N=x.match(XD).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,_D[t])(e,O.formatLong):e})).join("").match(ZD).map((function(o){if("''"===o)return"'";var r=o[0];if("'"===r)return function(e){var t=e.match(QD);return t?t[1].replace(JD,"'"):e}(o);var i=ND[r];if(i)return!(null!=n&&n.useAdditionalWeekYearTokens)&&function(e){return-1!==DD.indexOf(e)}(o)&&FD(o,t,String(e)),!(null!=n&&n.useAdditionalDayOfYearTokens)&&function(e){return-1!==ID.indexOf(e)}(o)&&FD(o,t,String(e)),i(R,o,O.localize,T);if(r.match(eF))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return o})).join("");return N}var nF=6048e5;function oF(e){return VI(1,arguments),Math.floor(function(e){return VI(1,arguments),$I(e).getTime()}(e)/1e3)}function rF(e,t){var n,o,r,i,l,a,s,u;VI(1,arguments);var c=BI(),d=LI(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(l=t.locale)||void 0===l||null===(a=l.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:c.firstWeekContainsDate)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),p=function(e,t){var n,o,r,i,l,a,s,u;VI(1,arguments);var c=$I(e),d=c.getFullYear(),p=BI(),f=LI(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(l=t.locale)||void 0===l||null===(a=l.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:p.firstWeekContainsDate)&&void 0!==o?o:null===(s=p.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setFullYear(d+1,0,f),h.setHours(0,0,0,0);var m=UI(h,t),g=new Date(0);g.setFullYear(d,0,f),g.setHours(0,0,0,0);var b=UI(g,t);return c.getTime()>=m.getTime()?d+1:c.getTime()>=b.getTime()?d:d-1}(e,t),f=new Date(0);return f.setFullYear(p,0,d),f.setHours(0,0,0,0),UI(f,t)}var iF=6048e5;function lF(e,t){return VI(1,arguments),function(e,t,n){VI(2,arguments);var o=UI(e,n),r=UI(t,n),i=o.getTime()-KI(o),l=r.getTime()-KI(r);return Math.round((i-l)/oD)}(function(e){VI(1,arguments);var t=$I(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}(e),iD(e),t)+1}function aF(e,t){VI(2,arguments);var n=$I(e),o=$I(t);return n.getTime()>o.getTime()}function sF(e,t){VI(2,arguments);var n=$I(e),o=$I(t);return n.getTime()<o.getTime()}function uF(e,t){VI(2,arguments);var n=$I(e),o=$I(t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}function cF(e,t){return VI(2,arguments),zI(e,-LI(t))}function dF(e,t){VI(2,arguments);var n=$I(e),o=LI(t),r=n.getFullYear(),i=n.getDate(),l=new Date(0);l.setFullYear(r,o,15),l.setHours(0,0,0,0);var a=function(e){VI(1,arguments);var t=$I(e),n=t.getFullYear(),o=t.getMonth(),r=new Date(0);return r.setFullYear(n,o+1,0),r.setHours(0,0,0,0),r.getDate()}(l);return n.setMonth(o,Math.min(i,a)),n}function pF(e,t){VI(2,arguments);var n=$I(e),o=LI(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(o),n)}const fF={code:"en-GB",formatDistance:LD,formatLong:{date:VD({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:VD({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:VD({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:qD,localize:UD,match:KD,options:{weekStartsOn:1,firstWeekContainsDate:4}};var hF=function(){return hF=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},hF.apply(this,arguments)};function mF(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function gF(e){return"multiple"===e.mode}function bF(e){return"range"===e.mode}function vF(e){return"single"===e.mode}var yF={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};var wF=Object.freeze({__proto__:null,formatCaption:function(e,t){return tF(e,"LLLL y",t)},formatDay:function(e,t){return tF(e,"d",t)},formatMonthCaption:function(e,t){return tF(e,"LLLL",t)},formatWeekNumber:function(e){return"".concat(e)},formatWeekdayName:function(e,t){return tF(e,"cccccc",t)},formatYearCaption:function(e,t){return tF(e,"yyyy",t)}}),xF=Object.freeze({__proto__:null,labelDay:function(e,t,n){return tF(e,"do MMMM (EEEE)",n)},labelMonthDropdown:function(){return"Month: "},labelNext:function(){return"Go to next month"},labelPrevious:function(){return"Go to previous month"},labelWeekNumber:function(e){return"Week n. ".concat(e)},labelWeekday:function(e,t){return tF(e,"cccc",t)},labelYearDropdown:function(){return"Year: "}});var CF=g(void 0);function OF(e){var n,o,r=e.initialProps,i={captionLayout:"buttons",classNames:yF,formatters:wF,labels:xF,locale:YD,modifiersClassNames:{},modifiers:{},numberOfMonths:1,styles:{},today:new Date,mode:"default"},l=function(e){var t=e.fromYear,n=e.toYear,o=e.fromMonth,r=e.toMonth,i=e.fromDate,l=e.toDate;return o?i=iD(o):t&&(i=new Date(t,0,1)),r?l=rD(r):n&&(l=new Date(n,11,31)),{fromDate:i?YI(i):void 0,toDate:l?YI(l):void 0}}(r),a=l.fromDate,s=l.toDate,u=null!==(n=r.captionLayout)&&void 0!==n?n:i.captionLayout;"buttons"!==u&&(!a||!s)&&(u="buttons"),(vF(r)||gF(r)||bF(r))&&(o=r.onSelect);var c=hF(hF(hF({},i),r),{captionLayout:u,classNames:hF(hF({},i.classNames),r.classNames),components:hF({},r.components),formatters:hF(hF({},i.formatters),r.formatters),fromDate:a,labels:hF(hF({},i.labels),r.labels),mode:r.mode||i.mode,modifiers:hF(hF({},i.modifiers),r.modifiers),modifiersClassNames:hF(hF({},i.modifiersClassNames),r.modifiersClassNames),onSelect:o,styles:hF(hF({},i.styles),r.styles),toDate:s});return t.createElement(CF.Provider,{value:c},e.children)}function kF(){var e=d(CF);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function SF(e){var n=kF(),o=n.locale,r=n.classNames,i=n.styles,l=n.formatters.formatCaption;return t.createElement("div",{className:r.caption_label,style:i.caption_label,"aria-live":"polite",role:"presentation",id:e.id},l(e.displayMonth,{locale:o}))}function EF(e){return t.createElement("svg",hF({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e),t.createElement("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"}))}function RF(e){var n,o,r=e.onChange,i=e.value,l=e.children,a=e.caption,s=e.className,u=e.style,c=kF(),d=null!==(o=null===(n=c.components)||void 0===n?void 0:n.IconDropdown)&&void 0!==o?o:EF;return t.createElement("div",{className:s,style:u},t.createElement("span",{className:c.classNames.vhidden},e["aria-label"]),t.createElement("select",{name:e.name,"aria-label":e["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:i,onChange:r},l),t.createElement("div",{className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true"},a,t.createElement(d,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})))}function TF(e){var n,o=kF(),r=o.fromDate,i=o.toDate,l=o.styles,a=o.locale,s=o.formatters.formatMonthCaption,u=o.classNames,c=o.components,d=o.labels.labelMonthDropdown;if(!r)return t.createElement(t.Fragment,null);if(!i)return t.createElement(t.Fragment,null);var p=[];if(function(e,t){VI(2,arguments);var n=$I(e),o=$I(t);return n.getFullYear()===o.getFullYear()}(r,i))for(var f=iD(r),h=r.getMonth();h<=i.getMonth();h++)p.push(dF(f,h));else for(f=iD(new Date),h=0;h<=11;h++)p.push(dF(f,h));var m=null!==(n=null==c?void 0:c.Dropdown)&&void 0!==n?n:RF;return t.createElement(m,{name:"months","aria-label":d(),className:u.dropdown_month,style:l.dropdown_month,onChange:function(t){var n=Number(t.target.value),o=dF(iD(e.displayMonth),n);e.onChange(o)},value:e.displayMonth.getMonth(),caption:s(e.displayMonth,{locale:a})},p.map((function(e){return t.createElement("option",{key:e.getMonth(),value:e.getMonth()},s(e,{locale:a}))})))}function NF(e){var n,o=e.displayMonth,r=kF(),i=r.fromDate,l=r.toDate,a=r.locale,s=r.styles,u=r.classNames,c=r.components,d=r.formatters.formatYearCaption,p=r.labels.labelYearDropdown,f=[];if(!i)return t.createElement(t.Fragment,null);if(!l)return t.createElement(t.Fragment,null);for(var h=i.getFullYear(),m=l.getFullYear(),g=h;g<=m;g++)f.push(pF(lD(new Date),g));var b=null!==(n=null==c?void 0:c.Dropdown)&&void 0!==n?n:RF;return t.createElement(b,{name:"years","aria-label":p(),className:u.dropdown_year,style:s.dropdown_year,onChange:function(t){var n=pF(iD(o),Number(t.target.value));e.onChange(n)},value:o.getFullYear(),caption:d(o,{locale:a})},f.map((function(e){return t.createElement("option",{key:e.getFullYear(),value:e.getFullYear()},d(e,{locale:a}))})))}function PF(){var e=kF(),t=function(e){var t=e.month,n=e.defaultMonth,o=e.today,r=t||n||o||new Date,i=e.toDate,l=e.fromDate,a=e.numberOfMonths,s=void 0===a?1:a;return i&&nD(i,r)<0&&(r=qI(i,-1*(s-1))),l&&nD(r,l)<0&&(r=l),iD(r)}(e),n=function(e,t){var n=l(e),o=n[0];return[void 0===t?o:t,n[1]]}(t,e.month),o=n[0],r=n[1];return[o,function(t){var n;if(!e.disableNavigation){var o=iD(t);r(o),null===(n=e.onMonthChange)||void 0===n||n.call(e,o)}}]}var MF=g(void 0);function jF(e){var n=kF(),o=PF(),r=o[0],i=o[1],l=function(e,t){for(var n=t.reverseMonths,o=t.numberOfMonths,r=iD(e),i=nD(iD(qI(r,o)),r),l=[],a=0;a<i;a++){var s=qI(r,a);l.push(s)}return n&&(l=l.reverse()),l}(r,n),a=function(e,t){if(!t.disableNavigation){var n=t.toDate,o=t.pagedNavigation,r=t.numberOfMonths,i=void 0===r?1:r,l=o?i:1,a=iD(e);if(!n)return qI(a,l);if(!(nD(n,e)<i))return qI(a,l)}}(r,n),s=function(e,t){if(!t.disableNavigation){var n=t.fromDate,o=t.pagedNavigation,r=t.numberOfMonths,i=o?void 0===r?1:r:1,l=iD(e);if(!n)return qI(l,-i);if(!(nD(l,n)<=0))return qI(l,-i)}}(r,n),u=function(e){return l.some((function(t){return uF(e,t)}))},c={currentMonth:r,displayMonths:l,goToMonth:i,goToDate:function(e,t){u(e)||(t&&sF(e,t)?i(qI(e,1+-1*n.numberOfMonths)):i(e))},previousMonth:s,nextMonth:a,isDateDisplayed:u};return t.createElement(MF.Provider,{value:c},e.children)}function _F(){var e=d(MF);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function IF(e){var n,o=kF(),r=o.classNames,i=o.styles,l=o.components,a=_F().goToMonth,s=function(t){a(qI(t,e.displayIndex?-e.displayIndex:0))},u=null!==(n=null==l?void 0:l.CaptionLabel)&&void 0!==n?n:SF,c=t.createElement(u,{id:e.id,displayMonth:e.displayMonth});return t.createElement("div",{className:r.caption_dropdowns,style:i.caption_dropdowns},t.createElement("div",{className:r.vhidden},c),t.createElement(TF,{onChange:s,displayMonth:e.displayMonth}),t.createElement(NF,{onChange:s,displayMonth:e.displayMonth}))}function DF(e){return t.createElement("svg",hF({width:"16px",height:"16px",viewBox:"0 0 120 120"},e),t.createElement("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"}))}function FF(e){return t.createElement("svg",hF({width:"16px",height:"16px",viewBox:"0 0 120 120"},e),t.createElement("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"}))}var AF=a((function(e,n){var o=kF(),r=o.classNames,i=o.styles,l=[r.button_reset,r.button];e.className&&l.push(e.className);var a=l.join(" "),s=hF(hF({},i.button_reset),i.button);return e.style&&Object.assign(s,e.style),t.createElement("button",hF({},e,{ref:n,type:"button",className:a,style:s}))}));function LF(e){var n,o,r=kF(),i=r.dir,l=r.locale,a=r.classNames,s=r.styles,u=r.labels,c=u.labelPrevious,d=u.labelNext,p=r.components;if(!e.nextMonth&&!e.previousMonth)return t.createElement(t.Fragment,null);var f=c(e.previousMonth,{locale:l}),h=[a.nav_button,a.nav_button_previous].join(" "),m=d(e.nextMonth,{locale:l}),g=[a.nav_button,a.nav_button_next].join(" "),b=null!==(n=null==p?void 0:p.IconRight)&&void 0!==n?n:FF,v=null!==(o=null==p?void 0:p.IconLeft)&&void 0!==o?o:DF;return t.createElement("div",{className:a.nav,style:s.nav},!e.hidePrevious&&t.createElement(AF,{name:"previous-month","aria-label":f,className:h,style:s.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick},"rtl"===i?t.createElement(b,{className:a.nav_icon,style:s.nav_icon}):t.createElement(v,{className:a.nav_icon,style:s.nav_icon})),!e.hideNext&&t.createElement(AF,{name:"next-month","aria-label":m,className:g,style:s.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick},"rtl"===i?t.createElement(v,{className:a.nav_icon,style:s.nav_icon}):t.createElement(b,{className:a.nav_icon,style:s.nav_icon})))}function VF(e){var n=kF().numberOfMonths,o=_F(),r=o.previousMonth,i=o.nextMonth,l=o.goToMonth,a=o.displayMonths,s=a.findIndex((function(t){return uF(e.displayMonth,t)})),u=0===s,c=s===a.length-1,d=n>1&&(u||!c),p=n>1&&(c||!u);return t.createElement(LF,{displayMonth:e.displayMonth,hideNext:d,hidePrevious:p,nextMonth:i,previousMonth:r,onPreviousClick:function(){r&&l(r)},onNextClick:function(){i&&l(i)}})}function $F(e){var n,o,r=kF(),i=r.classNames,l=r.disableNavigation,a=r.styles,s=r.captionLayout,u=r.components,c=null!==(n=null==u?void 0:u.CaptionLabel)&&void 0!==n?n:SF;return o=l?t.createElement(c,{id:e.id,displayMonth:e.displayMonth}):"dropdown"===s?t.createElement(IF,{displayMonth:e.displayMonth,id:e.id}):"dropdown-buttons"===s?t.createElement(t.Fragment,null,t.createElement(IF,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),t.createElement(VF,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})):t.createElement(t.Fragment,null,t.createElement(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),t.createElement(VF,{displayMonth:e.displayMonth,id:e.id})),t.createElement("div",{className:i.caption,style:a.caption},o)}function zF(e){var n=kF(),o=n.footer,r=n.styles,i=n.classNames.tfoot;return o?t.createElement("tfoot",{className:i,style:r.tfoot},t.createElement("tr",null,t.createElement("td",{colSpan:8},o))):t.createElement(t.Fragment,null)}function qF(){var e=kF(),n=e.classNames,o=e.styles,r=e.showWeekNumber,i=e.locale,l=e.weekStartsOn,a=e.ISOWeek,s=e.formatters.formatWeekdayName,u=e.labels.labelWeekday,c=function(e,t,n){for(var o=n?WI(new Date):UI(new Date,{locale:e,weekStartsOn:t}),r=[],i=0;i<7;i++){var l=zI(o,i);r.push(l)}return r}(i,l,a);return t.createElement("tr",{style:o.head_row,className:n.head_row},r&&t.createElement("td",{style:o.head_cell,className:n.head_cell}),c.map((function(e,r){return t.createElement("th",{key:r,scope:"col",className:n.head_cell,style:o.head_cell,"aria-label":u(e,{locale:i})},s(e,{locale:i}))})))}function HF(){var e,n=kF(),o=n.classNames,r=n.styles,i=n.components,l=null!==(e=null==i?void 0:i.HeadRow)&&void 0!==e?e:qF;return t.createElement("thead",{style:r.head,className:o.head},t.createElement(l,null))}function BF(e){var n=kF(),o=n.locale,r=n.formatters.formatDay;return t.createElement(t.Fragment,null,r(e.date,{locale:o}))}var UF=g(void 0);function WF(e){if(!gF(e.initialProps)){return t.createElement(UF.Provider,{value:{selected:void 0,modifiers:{disabled:[]}}},e.children)}return t.createElement(GF,{initialProps:e.initialProps,children:e.children})}function GF(e){var n=e.initialProps,o=e.children,r=n.selected,i=n.min,l=n.max,a={disabled:[]};r&&a.disabled.push((function(e){var t=l&&r.length>l-1,n=r.some((function(t){return eD(t,e)}));return!(!t||n)}));var s={selected:r,onDayClick:function(e,t,o){var a,s;if((null===(a=n.onDayClick)||void 0===a||a.call(n,e,t,o),!!(!t.selected||!i||(null==r?void 0:r.length)!==i))&&!!(t.selected||!l||(null==r?void 0:r.length)!==l)){var u=r?mF([],r,!0):[];if(t.selected){var c=u.findIndex((function(t){return eD(e,t)}));u.splice(c,1)}else u.push(e);null===(s=n.onSelect)||void 0===s||s.call(n,u,e,t,o)}},modifiers:a};return t.createElement(UF.Provider,{value:s},o)}function KF(){var e=d(UF);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}var YF,ZF=g(void 0);function XF(e){if(!bF(e.initialProps)){return t.createElement(ZF.Provider,{value:{selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}}},e.children)}return t.createElement(QF,{initialProps:e.initialProps,children:e.children})}function QF(e){var n=e.initialProps,o=e.children,r=n.selected,i=r||{},l=i.from,a=i.to,s=n.min,u=n.max,c={range_start:[],range_end:[],range_middle:[],disabled:[]};if(l?(c.range_start=[l],a?(c.range_end=[a],eD(l,a)||(c.range_middle=[{after:l,before:a}])):c.range_end=[l]):a&&(c.range_start=[a],c.range_end=[a]),s&&(l&&!a&&c.disabled.push({after:cF(l,s-1),before:zI(l,s-1)}),l&&a&&c.disabled.push({after:l,before:zI(l,s-1)}),!l&&a&&c.disabled.push({after:cF(a,s-1),before:zI(a,s-1)})),u){if(l&&!a&&(c.disabled.push({before:zI(l,1-u)}),c.disabled.push({after:zI(l,u-1)})),l&&a){var d=u-(XI(a,l)+1);c.disabled.push({before:cF(l,d)}),c.disabled.push({after:zI(a,d)})}!l&&a&&(c.disabled.push({before:zI(a,1-u)}),c.disabled.push({after:zI(a,u-1)}))}return t.createElement(ZF.Provider,{value:{selected:r,onDayClick:function(e,t,o){var i,l;null===(i=n.onDayClick)||void 0===i||i.call(n,e,t,o);var a=function(e,t){var n=t||{},o=n.from,r=n.to;return o&&r?eD(r,e)&&eD(o,e)?void 0:eD(r,e)?{from:r,to:void 0}:eD(o,e)?void 0:aF(o,e)?{from:e,to:r}:{from:o,to:e}:r?aF(e,r)?{from:r,to:e}:{from:e,to:r}:o?sF(e,o)?{from:e,to:o}:{from:o,to:e}:{from:e,to:void 0}}(e,r);null===(l=n.onSelect)||void 0===l||l.call(n,a,e,t,o)},modifiers:c}},o)}function JF(){var e=d(ZF);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function eA(e){return Array.isArray(e)?mF([],e,!0):void 0!==e?[e]:[]}!function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"}(YF||(YF={}));var tA=YF.Selected,nA=YF.Disabled,oA=YF.Hidden,rA=YF.Today,iA=YF.RangeEnd,lA=YF.RangeMiddle,aA=YF.RangeStart,sA=YF.Outside;var uA=g(void 0);function cA(e){var n=kF(),o=function(e,t,n){var o,r=((o={})[tA]=eA(e.selected),o[nA]=eA(e.disabled),o[oA]=eA(e.hidden),o[rA]=[e.today],o[iA]=[],o[lA]=[],o[aA]=[],o[sA]=[],o);return e.fromDate&&r[nA].push({before:e.fromDate}),e.toDate&&r[nA].push({after:e.toDate}),gF(e)?r[nA]=r[nA].concat(t.modifiers[nA]):bF(e)&&(r[nA]=r[nA].concat(n.modifiers[nA]),r[aA]=n.modifiers[aA],r[lA]=n.modifiers[lA],r[iA]=n.modifiers[iA]),r}(n,KF(),JF()),r=function(e){var t={};return Object.entries(e).forEach((function(e){var n=e[0],o=e[1];t[n]=eA(o)})),t}(n.modifiers),i=hF(hF({},o),r);return t.createElement(uA.Provider,{value:i},e.children)}function dA(){var e=d(uA);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function pA(e,t){return t.some((function(t){if("boolean"==typeof t)return t;if(function(e){return tD(e)}(t))return eD(e,t);if(function(e){return Array.isArray(e)&&e.every(tD)}(t))return t.includes(e);if(function(e){return!(!e||"object"!=typeof e||!("from"in e))}(t))return function(e,t){var n,o=t.from,r=t.to;return o&&r?(XI(r,o)<0&&(o=(n=[r,o])[0],r=n[1]),XI(e,o)>=0&&XI(r,e)>=0):r?eD(r,e):!!o&&eD(o,e)}(e,t);if(function(e){return!(!e||"object"!=typeof e||!("dayOfWeek"in e))}(t))return t.dayOfWeek.includes(e.getDay());if(function(e){return!!(e&&"object"==typeof e&&"before"in e&&"after"in e)}(t)){var n=XI(t.before,e)>0,o=XI(t.after,e)<0;return aF(t.before,t.after)?o&&n:n||o}return function(e){return!(!e||"object"!=typeof e||!("after"in e))}(t)?XI(e,t.after)>0:function(e){return!(!e||"object"!=typeof e||!("before"in e))}(t)?XI(t.before,e)>0:"function"==typeof t&&t(e)}))}function fA(e,t,n){var o=Object.keys(t).reduce((function(n,o){var r=t[o];return pA(e,r)&&n.push(o),n}),[]),r={};return o.forEach((function(e){return r[e]=!0})),n&&!uF(e,n)&&(r.outside=!0),r}var hA=365;function mA(e,t){var n=t.moveBy,o=t.direction,r=t.context,i=t.modifiers,l=t.retry,a=void 0===l?{count:0,lastFocused:e}:l,s=r.weekStartsOn,u=r.fromDate,c=r.toDate,d=r.locale,p={day:zI,week:QI,month:qI,year:JI,startOfWeek:function(e){return r.ISOWeek?WI(e):UI(e,{locale:d,weekStartsOn:s})},endOfWeek:function(e){return r.ISOWeek?sD(e):aD(e,{locale:d,weekStartsOn:s})}}[n](e,"after"===o?1:-1);"before"===o&&u?p=function(e){var t,n;if(VI(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==UO(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=$I(e);(void 0===n||n<t||isNaN(Number(t)))&&(n=t)})),n||new Date(NaN)}([u,p]):"after"===o&&c&&(p=function(e){var t,n;if(VI(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==UO(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=$I(e);(void 0===n||n>t||isNaN(t.getDate()))&&(n=t)})),n||new Date(NaN)}([c,p]));var f=!0;if(i){var h=fA(p,i);f=!h.disabled&&!h.hidden}return f?p:a.count>hA?a.lastFocused:mA(p,{moveBy:n,direction:o,context:r,modifiers:i,retry:hF(hF({},a),{count:a.count+1})})}var gA=g(void 0);function bA(e){var n=_F(),o=dA(),r=l(),i=r[0],a=r[1],s=l(),u=s[0],c=s[1],d=function(e,t){for(var n,o,r=iD(e[0]),i=rD(e[e.length-1]),l=r;l<=i;){var a=fA(l,t);if(a.disabled||a.hidden)l=zI(l,1);else{if(a.selected)return l;a.today&&!o&&(o=l),n||(n=l),l=zI(l,1)}}return o||n}(n.displayMonths,o),p=i??(u&&n.isDateDisplayed(u))?u:d,f=function(e){a(e)},h=kF(),m=function(e,t){if(i){var r=mA(i,{moveBy:e,direction:t,context:h,modifiers:o});eD(i,r)||(n.goToDate(r,i),f(r))}},g={focusedDay:i,focusTarget:p,blur:function(){c(i),a(void 0)},focus:f,focusDayAfter:function(){return m("day","after")},focusDayBefore:function(){return m("day","before")},focusWeekAfter:function(){return m("week","after")},focusWeekBefore:function(){return m("week","before")},focusMonthBefore:function(){return m("month","before")},focusMonthAfter:function(){return m("month","after")},focusYearBefore:function(){return m("year","before")},focusYearAfter:function(){return m("year","after")},focusStartOfWeek:function(){return m("startOfWeek","before")},focusEndOfWeek:function(){return m("endOfWeek","after")}};return t.createElement(gA.Provider,{value:g},e.children)}function vA(){var e=d(gA);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}var yA=g(void 0);function wA(e){if(!vF(e.initialProps)){return t.createElement(yA.Provider,{value:{selected:void 0}},e.children)}return t.createElement(xA,{initialProps:e.initialProps,children:e.children})}function xA(e){var n=e.initialProps,o=e.children,r={selected:n.selected,onDayClick:function(e,t,o){var r,i,l;null===(r=n.onDayClick)||void 0===r||r.call(n,e,t,o),!t.selected||n.required?null===(l=n.onSelect)||void 0===l||l.call(n,e,e,t,o):null===(i=n.onSelect)||void 0===i||i.call(n,void 0,e,t,o)}};return t.createElement(yA.Provider,{value:r},o)}function CA(){var e=d(yA);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function OA(e,t){var n=[e.classNames.day];return Object.keys(t).forEach((function(t){var o=e.modifiersClassNames[t];if(o)n.push(o);else if(function(e){return Object.values(YF).includes(e)}(t)){var r=e.classNames["day_".concat(t)];r&&n.push(r)}})),n}function kA(e,n,o){var r,i,l,a=kF(),s=vA(),u=function(e,t){return fA(e,dA(),t)}(e,n),d=function(e,t){var n=kF(),o=CA(),r=KF(),i=JF(),l=vA(),a=l.focusDayAfter,s=l.focusDayBefore,u=l.focusWeekAfter,c=l.focusWeekBefore,d=l.blur,p=l.focus,f=l.focusMonthBefore,h=l.focusMonthAfter,m=l.focusYearBefore,g=l.focusYearAfter,b=l.focusStartOfWeek,v=l.focusEndOfWeek;return{onClick:function(l){var a,s,u,c;vF(n)?null===(a=o.onDayClick)||void 0===a||a.call(o,e,t,l):gF(n)?null===(s=r.onDayClick)||void 0===s||s.call(r,e,t,l):bF(n)?null===(u=i.onDayClick)||void 0===u||u.call(i,e,t,l):null===(c=n.onDayClick)||void 0===c||c.call(n,e,t,l)},onFocus:function(o){var r;p(e),null===(r=n.onDayFocus)||void 0===r||r.call(n,e,t,o)},onBlur:function(o){var r;d(),null===(r=n.onDayBlur)||void 0===r||r.call(n,e,t,o)},onKeyDown:function(o){var r;switch(o.key){case"ArrowLeft":o.preventDefault(),o.stopPropagation(),"rtl"===n.dir?a():s();break;case"ArrowRight":o.preventDefault(),o.stopPropagation(),"rtl"===n.dir?s():a();break;case"ArrowDown":o.preventDefault(),o.stopPropagation(),u();break;case"ArrowUp":o.preventDefault(),o.stopPropagation(),c();break;case"PageUp":o.preventDefault(),o.stopPropagation(),o.shiftKey?m():f();break;case"PageDown":o.preventDefault(),o.stopPropagation(),o.shiftKey?g():h();break;case"Home":o.preventDefault(),o.stopPropagation(),b();break;case"End":o.preventDefault(),o.stopPropagation(),v()}null===(r=n.onDayKeyDown)||void 0===r||r.call(n,e,t,o)},onKeyUp:function(o){var r;null===(r=n.onDayKeyUp)||void 0===r||r.call(n,e,t,o)},onMouseEnter:function(o){var r;null===(r=n.onDayMouseEnter)||void 0===r||r.call(n,e,t,o)},onMouseLeave:function(o){var r;null===(r=n.onDayMouseLeave)||void 0===r||r.call(n,e,t,o)},onPointerEnter:function(o){var r;null===(r=n.onDayPointerEnter)||void 0===r||r.call(n,e,t,o)},onPointerLeave:function(o){var r;null===(r=n.onDayPointerLeave)||void 0===r||r.call(n,e,t,o)},onTouchCancel:function(o){var r;null===(r=n.onDayTouchCancel)||void 0===r||r.call(n,e,t,o)},onTouchEnd:function(o){var r;null===(r=n.onDayTouchEnd)||void 0===r||r.call(n,e,t,o)},onTouchMove:function(o){var r;null===(r=n.onDayTouchMove)||void 0===r||r.call(n,e,t,o)},onTouchStart:function(o){var r;null===(r=n.onDayTouchStart)||void 0===r||r.call(n,e,t,o)}}}(e,u),p=function(){var e=kF(),t=CA(),n=KF(),o=JF();return vF(e)?t.selected:gF(e)?n.selected:bF(e)?o.selected:void 0}(),f=!(!a.onDayClick&&"default"===a.mode);c((function(){var t;u.outside||s.focusedDay&&f&&eD(s.focusedDay,e)&&(null===(t=o.current)||void 0===t||t.focus())}),[s.focusedDay,e,o,f,u.outside]);var h=OA(a,u).join(" "),m=function(e,t){var n=hF({},e.styles.day);return Object.keys(t).forEach((function(t){var o;n=hF(hF({},n),null===(o=e.modifiersStyles)||void 0===o?void 0:o[t])})),n}(a,u),g=!!(u.outside&&!a.showOutsideDays||u.hidden),b=null!==(l=null===(i=a.components)||void 0===i?void 0:i.DayContent)&&void 0!==l?l:BF,v={style:m,className:h,children:t.createElement(b,{date:e,displayMonth:n,activeModifiers:u}),role:"gridcell"},y=s.focusTarget&&eD(s.focusTarget,e)&&!u.outside,w=s.focusedDay&&eD(s.focusedDay,e),x=hF(hF(hF({},v),((r={disabled:u.disabled,role:"gridcell"})["aria-selected"]=u.selected,r.tabIndex=w||y?0:-1,r)),d);return{isButton:f,isHidden:g,activeModifiers:u,selectedDays:p,buttonProps:x,divProps:v}}function SA(e){var n=s(null),o=kA(e.date,e.displayMonth,n);return o.isHidden?t.createElement("div",{role:"gridcell"}):o.isButton?t.createElement(AF,hF({name:"day",ref:n},o.buttonProps)):t.createElement("div",hF({},o.divProps))}function EA(e){var n=e.number,o=e.dates,r=kF(),i=r.onWeekNumberClick,l=r.styles,a=r.classNames,s=r.locale,u=r.labels.labelWeekNumber,c=(0,r.formatters.formatWeekNumber)(Number(n),{locale:s});if(!i)return t.createElement("span",{className:a.weeknumber,style:l.weeknumber},c);var d=u(Number(n),{locale:s});return t.createElement(AF,{name:"week-number","aria-label":d,className:a.weeknumber,style:l.weeknumber,onClick:function(e){i(n,o,e)}},c)}function RA(e){var n,o,r,i=kF(),l=i.styles,a=i.classNames,s=i.showWeekNumber,u=i.components,c=null!==(n=null==u?void 0:u.Day)&&void 0!==n?n:SA,d=null!==(o=null==u?void 0:u.WeekNumber)&&void 0!==o?o:EA;return s&&(r=t.createElement("td",{className:a.cell,style:l.cell},t.createElement(d,{number:e.weekNumber,dates:e.dates}))),t.createElement("tr",{className:a.row,style:l.row},r,e.dates.map((function(n){return t.createElement("td",{className:a.cell,style:l.cell,key:oF(n),role:"presentation"},t.createElement(c,{displayMonth:e.displayMonth,date:n}))})))}function TA(e,t,n){for(var o=null!=n&&n.ISOWeek?sD(t):aD(t,n),r=null!=n&&n.ISOWeek?WI(e):UI(e,n),i=XI(o,r),l=[],a=0;a<=i;a++)l.push(zI(r,a));var s=l.reduce((function(e,t){var o=null!=n&&n.ISOWeek?function(e){VI(1,arguments);var t=$I(e),n=WI(t).getTime()-GI(t).getTime();return Math.round(n/nF)+1}(t):function(e,t){VI(1,arguments);var n=$I(e),o=UI(n,t).getTime()-rF(n,t).getTime();return Math.round(o/iF)+1}(t,n),r=e.find((function(e){return e.weekNumber===o}));return r?(r.dates.push(t),e):(e.push({weekNumber:o,dates:[t]}),e)}),[]);return s}function NA(e){var n,o,r,i=kF(),l=i.locale,a=i.classNames,s=i.styles,u=i.hideHead,c=i.fixedWeeks,d=i.components,p=i.weekStartsOn,f=i.firstWeekContainsDate,h=i.ISOWeek,m=function(e,t){var n=TA(iD(e),rD(e),t);if(null!=t&&t.useFixedWeeks){var o=lF(e,t);if(o<6){var r=n[n.length-1],i=r.dates[r.dates.length-1],l=QI(i,6-o),a=TA(QI(i,1),l,t);n.push.apply(n,a)}}return n}(e.displayMonth,{useFixedWeeks:!!c,ISOWeek:h,locale:l,weekStartsOn:p,firstWeekContainsDate:f}),g=null!==(n=null==d?void 0:d.Head)&&void 0!==n?n:HF,b=null!==(o=null==d?void 0:d.Row)&&void 0!==o?o:RA,v=null!==(r=null==d?void 0:d.Footer)&&void 0!==r?r:zF;return t.createElement("table",{id:e.id,className:a.table,style:s.table,role:"grid","aria-labelledby":e["aria-labelledby"]},!u&&t.createElement(g,null),t.createElement("tbody",{className:a.tbody,style:s.tbody},m.map((function(n){return t.createElement(b,{displayMonth:e.displayMonth,key:n.weekNumber,dates:n.dates,weekNumber:n.weekNumber})}))),t.createElement(v,{displayMonth:e.displayMonth}))}var PA=typeof window<"u"&&window.document&&window.document.createElement?e.useLayoutEffect:e.useEffect,MA=!1,jA=0;function _A(){return"react-day-picker-".concat(++jA)}function IA(n){var o,r,i=kF(),l=i.dir,a=i.classNames,s=i.styles,u=i.components,c=_F().displayMonths,d=function(t){var n,o=t??(MA?_A():null),r=e.useState(o),i=r[0],l=r[1];return PA((function(){null===i&&l(_A())}),[]),e.useEffect((function(){!1===MA&&(MA=!0)}),[]),null!==(n=t??i)&&void 0!==n?n:void 0}(i.id?"".concat(i.id,"-").concat(n.displayIndex):void 0),p=i.id?"".concat(i.id,"-grid-").concat(n.displayIndex):void 0,f=[a.month],h=s.month,m=0===n.displayIndex,g=n.displayIndex===c.length-1,b=!m&&!g;"rtl"===l&&(g=(o=[m,g])[0],m=o[1]),m&&(f.push(a.caption_start),h=hF(hF({},h),s.caption_start)),g&&(f.push(a.caption_end),h=hF(hF({},h),s.caption_end)),b&&(f.push(a.caption_between),h=hF(hF({},h),s.caption_between));var v=null!==(r=null==u?void 0:u.Caption)&&void 0!==r?r:$F;return t.createElement("div",{key:n.displayIndex,className:f.join(" "),style:h},t.createElement(v,{id:d,displayMonth:n.displayMonth,displayIndex:n.displayIndex}),t.createElement(NA,{id:p,"aria-labelledby":d,displayMonth:n.displayMonth}))}function DA(e){var n=e.initialProps,o=kF(),r=vA(),i=_F(),a=l(!1),s=a[0],u=a[1];c((function(){o.initialFocus&&r.focusTarget&&(s||(r.focus(r.focusTarget),u(!0)))}),[o.initialFocus,s,r.focus,r.focusTarget,r]);var d=[o.classNames.root,o.className];o.numberOfMonths>1&&d.push(o.classNames.multiple_months),o.showWeekNumber&&d.push(o.classNames.with_weeknumber);var p=hF(hF({},o.styles.root),o.style),f=Object.keys(n).filter((function(e){return e.startsWith("data-")})).reduce((function(e,t){var o;return hF(hF({},e),((o={})[t]=n[t],o))}),{});return t.createElement("div",hF({className:d.join(" "),style:p,dir:o.dir,id:o.id},f),t.createElement("div",{className:o.classNames.months,style:o.styles.months},i.displayMonths.map((function(e,n){return t.createElement(IA,{key:n,displayIndex:n,displayMonth:e})}))))}function FA(e){var n=e.children,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["children"]);return t.createElement(OF,{initialProps:o},t.createElement(jF,null,t.createElement(wA,{initialProps:o},t.createElement(WF,{initialProps:o},t.createElement(XF,{initialProps:o},t.createElement(cA,null,t.createElement(bA,null,n)))))))}function AA(e){return t.createElement(FA,hF({},e),t.createElement(DA,{initialProps:e}))}const LA="object"==typeof global&&global&&global.Object===Object&&global;var VA="object"==typeof self&&self&&self.Object===Object&&self;const $A=(LA||VA||Function("return this")()).Symbol;var zA=Object.prototype,qA=zA.hasOwnProperty,HA=zA.toString,BA=$A?$A.toStringTag:void 0;var UA=Object.prototype.toString;var WA="[object Null]",GA="[object Undefined]",KA=$A?$A.toStringTag:void 0;function YA(e){return null==e?void 0===e?GA:WA:KA&&KA in Object(e)?function(e){var t=qA.call(e,BA),n=e[BA];try{e[BA]=void 0;var o=!0}catch{}var r=HA.call(e);return o&&(t?e[BA]=n:delete e[BA]),r}(e):function(e){return UA.call(e)}(e)}var ZA="[object Symbol]";const XA=Array.isArray;var QA=1/0,JA=$A?$A.prototype:void 0,eL=JA?JA.toString:void 0;function tL(e){if("string"==typeof e)return e;if(XA(e))return function(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r}(e,tL)+"";if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&YA(e)==ZA}(e))return eL?eL.call(e):"";var t=e+"";return"0"==t&&1/e==-QA?"-0":t}function nL(e){return null==e?"":tL(e)}function oL(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:function(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++o<r;)i[o]=e[o+t];return i}(e,t,n)}var rL=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function iL(e){return rL.test(e)}var lL="\\ud800-\\udfff",aL="["+lL+"]",sL="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",uL="\\ud83c[\\udffb-\\udfff]",cL="[^"+lL+"]",dL="(?:\\ud83c[\\udde6-\\uddff]){2}",pL="[\\ud800-\\udbff][\\udc00-\\udfff]",fL="(?:"+sL+"|"+uL+")"+"?",hL="[\\ufe0e\\ufe0f]?",mL=hL+fL+("(?:\\u200d(?:"+[cL,dL,pL].join("|")+")"+hL+fL+")*"),gL="(?:"+[cL+sL+"?",sL,dL,pL,aL].join("|")+")",bL=RegExp(uL+"(?="+uL+")|"+gL+mL,"g");function vL(e){return iL(e)?function(e){return e.match(bL)||[]}(e):function(e){return e.split("")}(e)}var yL=function(e){return function(t){var n=iL(t=nL(t))?vL(t):void 0,o=n?n[0]:t.charAt(0),r=n?oL(n,1).join(""):t.slice(1);return o[e]()+r}}("toUpperCase");const wL=yL;function xL(e){return wL(nL(e).toLowerCase())}const CL=({onClose:e,isNb:t,selected:n,removeSelection:o,setMonth:r,month:i,onClear:l})=>{const{goToMonth:a,nextMonth:s,previousMonth:u}=_F(),c=XA(n)?!n.length:tD(n)?!n:!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(n)||!function(e){for(var t=-1,n=null==e?0:e.length,o=0,r=[];++t<n;){var i=e[t];i&&(r[o++]=i)}return r}(Object.values(n)).length;return Me.jsxs("div",{className:"mt-2 flex justify-between mr-3",children:[Me.jsx(ER,{variant:"text",onClick:e=>{l?l():o(e)},size:"small",disabled:c,dataTest:"select-today",className:"!min-w-[60px]",startIcon:Me.jsx(tl,{icon:"ph:eraser-duotone",width:24,height:24})}),Me.jsxs("div",{className:"rdp-custom-caption-navigation flex gap-1",children:[Me.jsx(ER,{variant:"outlined",size:"small",dataTest:"previous-month",disabled:!u,onClick:()=>u&&a(u),startIcon:Me.jsx(sl,{})}),Me.jsx(ER,{size:"small",disabled:i&&uF(new Date(Date.now()),i),onClick:()=>{r(new Date(Date.now()))},variant:"outlined",dataTest:"select-today",className:"!disabled:cursor-default",children:t?"I dag":"Today"}),Me.jsx(ER,{variant:"outlined",size:"small",dataTest:"next-month",disabled:!s,onClick:()=>s&&a(s),startIcon:Me.jsx(al,{})})]}),Me.jsx(ER,{size:"small",onClick:t=>{null==e||e(t,"backdropClick")},dataTest:"select-today",className:"!min-w-[60px]",children:t?"Velg":"Select"})]})};function OL(e){const{month:t}=e;return Me.jsx("div",{className:"rdp-custom-caption flex justify-between items-center h-[30px] ml-4",children:t&&Me.jsx($F,{displayMonth:t})})}const kL=e=>Me.jsx(z,{...e,sx:{...e.sx,"& label.MuiInputLabel-shrink":{background:"white !important",color:"var(--colors-delta-500) !important"}}}),SL=e=>{const{caption:t,children:n}=e,{goToMonth:o}=_F(),{month:r}=kF(),i=null==n?void 0:n.map((e=>({id:e.props.value,label:e.props.children})));return Me.jsx(kL,{className:"w-[105px] ml-[-5px]",children:Me.jsx(MI,{dataTest:"StyledCalendarPickerSelectMonth",size:"small",variant:"standard",value:t,onChange:e=>{var t;const n=e.target.value,l=null==(t=i.find((e=>e.label===n)))?void 0:t.id;r&&!isNaN(Number(l))&&o(dF(r,Number(l)))},MenuProps:{className:"[&_ul]:overflow-auto [&_ul]:max-h-[250px]"},children:null==i?void 0:i.map((e=>Me.jsx(jI,{value:e.label,children:xL(e.label)},e.id)))})})},EL=e=>{const{caption:t,children:n}=e,{goToMonth:o}=_F(),{month:r}=kF(),i=null==n?void 0:n.map((e=>({id:e.props.value,label:e.props.children})));return Me.jsx(kL,{className:"w-[70px] ml-[5px]",children:Me.jsx(MI,{dataTest:"StyledCalendarPickerSelectYear",size:"small",variant:"standard",value:t,onChange:e=>{var t;const n=e.target.value,l=null==(t=i.find((e=>e.label===n)))?void 0:t.id;r&&!isNaN(Number(l))&&o(pF(r,Number(l)))},MenuProps:{className:"[&_ul]:overflow-auto [&_ul]:max-h-[250px]"},children:null==i?void 0:i.map((e=>Me.jsx(jI,{value:e.label,children:e.label},e.id)))})})},RL=({datePickerProps:e,popoverProps:t,positionAbove:n})=>{const{showOutsideDays:o=!0,locale:r,selected:i,numberOfMonths:a,disabledDays:s,onClear:u}=e,{open:c,anchorEl:d,onClose:p}=t,[f,h]=l(new Date(Date.now())),m="nb"===(null==r?void 0:r.code),g=(a||1)<2;return Me.jsx(O,{open:c,anchorEl:d,onClose:p,anchorOrigin:{vertical:n?"top":50,horizontal:"left"},transformOrigin:{vertical:n?"bottom":"top",horizontal:"left"},children:Me.jsx(AA,{disabled:s,month:f,onMonthChange:e=>{h(e)},captionLayout:"dropdown",locale:r||fF,fromYear:2e3,toYear:2050,"data-test":"calendar-picker",showWeekNumber:!0,showOutsideDays:o,fixedWeeks:!0,className:"font-roboto",classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-base text-[var(--colors-gray-700)] font-medium",nav:"space-x-1 flex items-center",nav_button:"h-7 w-7 flex text-[var(--colors-gray-700)] items-center justify-center border border-[var(--colors-gray-500)] hover:bg-[var(--colors-gray-50)] rounded",nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",head_row:"flex text-sm cursor-pointer",head_cell:"text-[var(--colors-gray-600)] w-9 cursor-pointer capitalize",row:"flex w-full mt-2",cell:"text-sm w-9 text-[var(--colors-gray-800)] relative [&:has([aria-selected])]:bg-gama-50 first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md ",day:"h-10 w-9 p-0 font-normal rounded-md hover:bg-[var(--colors-gray-50)] focus-visible:border-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-gama-500 focus-visible:z-50",day_today:"text-gama-700 text-base bg-gray-100 font-bold hover:bg-gama-50",day_selected:"[&.bg-gray-100]:bg-gama-500 bg-gama-500 text-white hover:bg-gama-500 hover:text-white",day_outside:"text-[var(--colors-gray-400)]",day_disabled:"text-[var(--colors-gray-400)]",day_range_middle:"aria-selected:bg-gama-50 [&.bg-gray-100.bg-gama-500]:bg-gama-50 aria-selected:text-[var(--colors-gray-800)]",day_hidden:"invisible",caption_end:g?"":"[&_tfoot]:hidden [&_.rdp-custom-caption]:opacity-0 [&_.rdp-custom-caption]:pointer-events-none"},components:{IconLeft:()=>Me.jsx(sl,{className:"h-4 w-4 "}),IconRight:()=>Me.jsx(al,{className:"h-4 w-4"}),Caption:e=>Me.jsx(OL,{...e,setMonth:h,month:f,isNb:m}),Dropdown:e=>"months"===e.name?Me.jsx(SL,{...e}):Me.jsx(EL,{...e})},footer:Me.jsx(CL,{onClose:p,isNb:m,selected:i,removeSelection:t=>{var n;return i&&(null==(n=null==e?void 0:e.onSelect)?void 0:n.call(e,void 0,new Date(Date.now()),{},t))},setMonth:h,month:f,onClear:u}),...e})})},TL=(e,t="dd.MM.yy")=>e?tF(e,t):"",NL="-";function PL(e){const t=function(e){const{theme:t,prefix:n}=e,o={nextPart:new Map,validators:[]};return function(e,t){return t?e.map((([e,n])=>{const o=n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e));return[e,o]})):e}(Object.entries(e.classGroups),n).forEach((([e,n])=>{_L(n,o,e,t)})),o}(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:function(e){const n=e.split(NL);return""===n[0]&&1!==n.length&&n.shift(),ML(n,t)||function(e){if(jL.test(e)){const t=jL.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){const r=n[e]||[];return t&&o[e]?[...r,...o[e]]:r}}}function ML(e,t){var n;if(0===e.length)return t.classGroupId;const o=e[0],r=t.nextPart.get(o),i=r?ML(e.slice(1),r):void 0;if(i)return i;if(0===t.validators.length)return;const l=e.join(NL);return null==(n=t.validators.find((({validator:e})=>e(l))))?void 0:n.classGroupId}const jL=/^\[(.+)\]$/;function _L(e,t,n,o){e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return function(e){return e.isThemeGetter}(e)?void _L(e(o),t,n,o):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,r])=>{_L(r,IL(t,e),n,o)}))}else{(""===e?t:IL(t,e)).classGroupId=n}}))}function IL(e,t){let n=e;return t.split(NL).forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function DL(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;function r(r,i){n.set(r,i),t++,t>e&&(t=0,o=n,n=new Map)}return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=o.get(e))?(r(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):r(e,t)}}}const FL="!";function AL(e){const t=e.separator,n=1===t.length,o=t[0],r=t.length;return function(e){const i=[];let l,a=0,s=0;for(let u=0;u<e.length;u++){let c=e[u];if(0===a){if(c===o&&(n||e.slice(u,u+r)===t)){i.push(e.slice(s,u)),s=u+r;continue}if("/"===c){l=u;continue}}"["===c?a++:"]"===c&&a--}const u=0===i.length?e:e.substring(s),c=u.startsWith(FL);return{modifiers:i,hasImportantModifier:c,baseClassName:c?u.substring(1):u,maybePostfixModifierPosition:l&&l>s?l-s:void 0}}}const LL=/\s+/;function VL(){let e,t,n=0,o="";for(;n<arguments.length;)(e=arguments[n++])&&(t=$L(e))&&(o&&(o+=" "),o+=t);return o}function $L(e){if("string"==typeof e)return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=$L(e[o]))&&(n&&(n+=" "),n+=t);return n}function zL(e,...t){let n,o,r,i=function(a){const s=t.reduce(((e,t)=>t(e)),e());return n=function(e){return{cache:DL(e.cacheSize),splitModifiers:AL(e),...PL(e)}}(s),o=n.cache.get,r=n.cache.set,i=l,l(a)};function l(e){const t=o(e);if(t)return t;const i=function(e,t){const{splitModifiers:n,getClassGroupId:o,getConflictingClassGroupIds:r}=t,i=new Set;return e.trim().split(LL).map((e=>{const{modifiers:t,hasImportantModifier:r,baseClassName:i,maybePostfixModifierPosition:l}=n(e);let a=o(l?i.substring(0,l):i),s=!!l;if(!a){if(!l)return{isTailwindClass:!1,originalClassName:e};if(a=o(i),!a)return{isTailwindClass:!1,originalClassName:e};s=!1}const u=function(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t}(t).join(":");return{isTailwindClass:!0,modifierId:r?u+FL:u,classGroupId:a,originalClassName:e,hasPostfixModifier:s}})).reverse().filter((e=>{if(!e.isTailwindClass)return!0;const{modifierId:t,classGroupId:n,hasPostfixModifier:o}=e,l=t+n;return!i.has(l)&&(i.add(l),r(n,o).forEach((e=>i.add(t+e))),!0)})).reverse().map((e=>e.originalClassName)).join(" ")}(e,n);return r(e,i),i}return function(){return i(VL.apply(null,arguments))}}function qL(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const HL=/^\[(?:([a-z-]+):)?(.+)\]$/i,BL=/^\d+\/\d+$/,UL=new Set(["px","full","screen"]),WL=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,GL=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,KL=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,YL=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function ZL(e){return QL(e)||UL.has(e)||BL.test(e)}function XL(e){return dV(e,"length",pV)}function QL(e){return!!e&&!Number.isNaN(Number(e))}function JL(e){return dV(e,"number",QL)}function eV(e){return!!e&&Number.isInteger(Number(e))}function tV(e){return e.endsWith("%")&&QL(e.slice(0,-1))}function nV(e){return HL.test(e)}function oV(e){return WL.test(e)}const rV=new Set(["length","size","percentage"]);function iV(e){return dV(e,rV,fV)}function lV(e){return dV(e,"position",fV)}const aV=new Set(["image","url"]);function sV(e){return dV(e,aV,mV)}function uV(e){return dV(e,"",hV)}function cV(){return!0}function dV(e,t,n){const o=HL.exec(e);return!!o&&(o[1]?"string"==typeof t?o[1]===t:t.has(o[1]):n(o[2]))}function pV(e){return GL.test(e)}function fV(){return!1}function hV(e){return KL.test(e)}function mV(e){return YL.test(e)}function gV(){const e=qL("colors"),t=qL("spacing"),n=qL("blur"),o=qL("brightness"),r=qL("borderColor"),i=qL("borderRadius"),l=qL("borderSpacing"),a=qL("borderWidth"),s=qL("contrast"),u=qL("grayscale"),c=qL("hueRotate"),d=qL("invert"),p=qL("gap"),f=qL("gradientColorStops"),h=qL("gradientColorStopPositions"),m=qL("inset"),g=qL("margin"),b=qL("opacity"),v=qL("padding"),y=qL("saturate"),w=qL("scale"),x=qL("sepia"),C=qL("skew"),O=qL("space"),k=qL("translate"),S=()=>["auto",nV,t],E=()=>[nV,t],R=()=>["",ZL,XL],T=()=>["auto",QL,nV],N=()=>["","0",nV],P=()=>[QL,JL],M=()=>[QL,nV];return{cacheSize:500,separator:":",theme:{colors:[cV],spacing:[ZL,XL],blur:["none","",oV,nV],brightness:P(),borderColor:[e],borderRadius:["none","","full",oV,nV],borderSpacing:E(),borderWidth:R(),contrast:P(),grayscale:N(),hueRotate:M(),invert:N(),gap:E(),gradientColorStops:[e],gradientColorStopPositions:[tV,XL],inset:S(),margin:S(),opacity:P(),padding:E(),saturate:P(),scale:P(),sepia:N(),skew:M(),space:E(),translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",nV]}],container:["container"],columns:[{columns:[oV]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",nV]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",eV,nV]}],basis:[{basis:S()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",nV]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",eV,nV]}],"grid-cols":[{"grid-cols":[cV]}],"col-start-end":[{col:["auto",{span:["full",eV,nV]},nV]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[cV]}],"row-start-end":[{row:["auto",{span:[eV,nV]},nV]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",nV]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",nV]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[O]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[O]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",nV,t]}],"min-w":[{"min-w":[nV,t,"min","max","fit"]}],"max-w":[{"max-w":[nV,t,"none","full","min","max","fit","prose",{screen:[oV]},oV]}],h:[{h:[nV,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[nV,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[nV,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[nV,t,"auto","min","max","fit"]}],"font-size":[{text:["base",oV,XL]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",JL]}],"font-family":[{font:[cV]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",nV]}],"line-clamp":[{"line-clamp":["none",QL,JL]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ZL,nV]}],"list-image":[{"list-image":["none",nV]}],"list-style-type":[{list:["none","disc","decimal",nV]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ZL,XL]}],"underline-offset":[{"underline-offset":["auto",ZL,nV]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",nV]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",nV]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",lV]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",iV]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},sV]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[ZL,nV]}],"outline-w":[{outline:[ZL,XL]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[ZL,XL]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",oV,uV]}],"shadow-color":[{shadow:[cV]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",oV,nV]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",nV]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",nV]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",nV]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[eV,nV]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",nV]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",nV]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",nV]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ZL,XL,JL]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const bV=zL(gV);function vV(...e){return bV(vo(e))}const yV=e=>{var t,n,o;const{dataTest:r,placeholder:i,disabled:l,onClick:a,inputClassName:s,onClear:u,allowClear:c,dateFormat:d,label:p}=e;if("range"!==e.mode)return null;const f=TL(null==(t=e.selected)?void 0:t.from,d),h=TL(null==(n=e.selected)?void 0:n.to,d),m=null!=(o=e.selected)&&o.from?e.selected.to?`${f} - ${h}`:f:"";return Me.jsx(PN,{dataTest:r,placeholder:i,label:p,size:"small",onClick:e=>!l&&a(e),InputProps:{endAdornment:Me.jsx(wl,{width:24,height:24})},value:m,disabled:!!l,className:vV(`w-60 ${s}`),allowClear:c,onClear:()=>{null==u||u()}})},wV=e=>{var t,n;const{dataTest:o,className:r,inputClassName:i,disabled:l,placeholderFrom:a,placeholderTo:s,dateFormat:u,onClick:c,labelFrom:d,labelTo:p}=e;if("range"!==e.mode)return null;const f=TL(null==(t=e.selected)?void 0:t.from,u),h=TL(null==(n=e.selected)?void 0:n.to,u);return Me.jsxs("div",{"data-test":o,className:`${r} ${l?"cursor-default text-[var(--colors-gray-300)]":"cursor-pointer"} inline-flex gap-4 w-fit items-center`,onClick:e=>!l&&c(e),children:[Me.jsx(PN,{label:d,autoComplete:"off",size:"small",dataTest:"styled-date-picker-input-range-from",placeholder:a,value:f,disabled:!!l,className:`${i} w-36`,InputProps:{endAdornment:Me.jsx(wl,{width:24,height:24})}}),Me.jsx(PN,{label:p,autoComplete:"off",dataTest:"styled-date-picker-input-range-to",size:"small",placeholder:s,value:h,disabled:!!l,className:`${i} w-36`,InputProps:{endAdornment:Me.jsx(wl,{width:24,height:24})}})]})},xV=e=>{const{dataTest:t,placeholder:n,disabled:o,onClick:r,inputClassName:i,onClear:l,allowClear:a,dateFormat:s}=e;return"single"!==e.mode?null:Me.jsx(PN,{dataTest:t,placeholder:n,size:"small",onClick:e=>!o&&r(e),InputProps:{endAdornment:Me.jsx(wl,{width:24,height:24})},value:TL(e.selected,s),disabled:!!o,className:vV(`w-36 ${i}`),allowClear:a,onClear:()=>{null==l||l()},label:e.label})},CV=e=>{const t="range"===e.mode&&!e.compact,n="range"===e.mode&&e.compact;return t?Me.jsx(yV,{...e,onClick:e.onClick}):n?Me.jsx(wV,{...e,onClick:e.onClick}):Me.jsx(xV,{...e,onClick:e.onClick})},OV=e=>{const[t,n]=l(null),[o,r]=l(!1);return Me.jsxs(Me.Fragment,{children:[Me.jsx(CV,{...e,onClick:e=>{n(e.currentTarget),((e,t)=>{const n=window.innerHeight,o=e.currentTarget.getBoundingClientRect(),r=o.top,i=n-o.bottom;t(i<300&&r>i)})(e,r)}}),Me.jsx(RL,{datePickerProps:{...e},popoverProps:{open:!!t,anchorEl:t,onClose:()=>{n(null)}},positionAbove:o})]})},kV=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:clock-outline",width:e,height:t,className:n,onClick:o,color:r}),SV=()=>{const[e,t]=l(null),n=!!e,o=u((e=>{t(e.currentTarget)}),[]);return{open:n,handleClose:u((()=>{t(null)}),[]),handleOpen:o,anchorEl:e}},EV=({type:e,value:t,onSelect:n})=>{const o=new Date,r="hours"===e,i=r?24:60,l=r?o.getHours():o.getMinutes();return Me.jsx("div",{className:"styled-time-picker-root_column",children:new Array(i).fill(null).map(((e,o)=>{const i=t&&o===(r?function(e){return VI(1,arguments),$I(e).getHours()}(t):function(e){return VI(1,arguments),$I(e).getMinutes()}(t)),a=l==o;return Me.jsx("div",{className:vo("styled-time-picker-root_cell",i&&"styled-time-picker-root_cell__cell-selected",a&&"styled-time-picker-root_cell__cell-now"),onClick:()=>{n(function(e,t){if(VI(2,arguments),"object"!==UO(t)||null===t)throw new RangeError("values parameter must be an object");var n=$I(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=dF(n,t.month)),null!=t.date&&n.setDate(LI(t.date)),null!=t.hours&&n.setHours(LI(t.hours)),null!=t.minutes&&n.setMinutes(LI(t.minutes)),null!=t.seconds&&n.setSeconds(LI(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(LI(t.milliseconds)),n)}(t||new Date,r?{hours:o}:{minutes:o}))},children:o.toString().padStart(2,"0")},o)}))})},RV=({value:e,onSelect:t,dataTest:n})=>{const o=s(null);return c((()=>{var e;null==(e=o.current)||e.querySelectorAll("div.styled-time-picker-root_cell__cell-selected").forEach((e=>e.scrollIntoView()))}),[o]),Me.jsxs("div",{ref:o,"data-test":n,className:"styled-time-picker-root",children:[Me.jsx(EV,{type:"hours",value:e,onSelect:t}),Me.jsx(EV,{type:"minutes",value:e,onSelect:t})]})},TV=({placeholder:e,disabled:t,inputClassName:n,value:o,onSelect:r,dataTest:i,width:l,anchorOrigin:a,transformOrigin:s,error:u,helperText:c,label:d})=>{const{anchorEl:p,open:f,handleClose:h,handleOpen:m}=SV();return Me.jsxs(Me.Fragment,{children:[Me.jsx(PN,{dataTest:i,placeholder:e,size:"small",error:u,helperText:c,onClick:e=>!t&&m(e),InputProps:{endAdornment:Me.jsx(kV,{width:24,height:24})},value:o?tF(o,"HH:mm"):"",sx:{maxWidth:l||130,width:l,minWidth:l},disabled:t,className:vo(n||"mb-2 pb-2"),label:d}),Me.jsxs(O,{open:f,anchorEl:p,onClose:h,anchorOrigin:a||{vertical:"bottom",horizontal:"left"},transformOrigin:s||{vertical:-5,horizontal:"left"},children:[Me.jsx(RV,{dataTest:`${i}-time-picker-body`,value:o,onSelect:r}),Me.jsxs("div",{className:"flex my-3 justify-between",children:[Me.jsx(ER,{variant:"text",onClick:()=>{r(void 0)},size:"small",disabled:!o,dataTest:"select-today",className:"!min-w-[40px] ml-2.5",startIcon:Me.jsx(tl,{icon:"ph:eraser-duotone",width:24,height:24})}),Me.jsx(ER,{size:"small",onClick:h,dataTest:"select-time",className:"!min-w-[40px] mr-4",startIcon:Me.jsx(tl,{icon:"bi:check-lg",width:20,height:20})})]})]})]})},NV=e=>Me.jsx(q,{...e}),PV=e=>Me.jsx(H,{...e}),MV=e=>Me.jsx(B,{...e}),jV=e=>Me.jsx(U,{...e}),_V=e=>Me.jsx(W,{...e}),IV=e=>Me.jsx(G,{...e}),DV=e=>{var t,n;return Me.jsx(K,{...e,classes:{paper:vo("border border-solid border-delta-300 shadow-[0px_2px_4px_0px_rgba(34,_33,_51,_0.15)]",null==(t=e.classes)?void 0:t.paper),list:vo("py-1",null==(n=e.classes)?void 0:n.list),...e.classes}})},FV=e=>{var t;return Me.jsx(I,{...e,classes:{root:vo("px-3 py-2.5",null==(t=e.classes)?void 0:t.root),...e.classes}})},AV=e=>Me.jsx(Y,{...e}),LV="_link_gyvti_1",VV=({href:e,title:t,disabled:n,size:o="large",dataTest:r,reflink:i,className:l,...a})=>{let s="text-sm";return"large"===o&&(s="text-base"),n?Me.jsx("span",{className:`font-roboto font-semibold w-fit underline rounded px-1 py-0.5 outline-none border-none text-delta-300 ${s}`,children:t}):Me.jsx("a",{...a,"data-test":r,ref:i,href:e,className:vo(`${LV} + ${s}`,l),children:t})},$V=e=>Me.jsx(Z,{...e,sx:{"&.MuiTab-textColorPrimary.Mui-selected":{color:"var(--colors-gama-500)"}}}),zV=e=>Me.jsx(X,{TabIndicatorProps:{style:{background:"var(--colors-gama-500)",color:"var(--colors-gama-500)"}},...e}),qV=e=>Me.jsx(Q,{...e}),HV=e=>Me.jsx(J,{...e}),BV=e=>Me.jsx(ee,{...e,className:vo("flex-row-reverse gap-2.5",e.className),expandIcon:Me.jsx(ql,{width:24,height:24}),sx:{...e.sx,backgroundColor:"transparent !important","& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"rotate(0deg)"},"& .MuiAccordionSummary-expandIconWrapper:not(.Mui-expanded)":{transform:"rotate(-90deg)"}}}),UV=e=>Me.jsx(te,{...e}),WV="select",GV="expand-column-id",KV="actions";
|
|
201
|
+
*/typeof self<"u"&&self;var pI=dI.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),r=n(18),i=n(19),l=n(45),a=n(46),s=n(47),u=n(48),c=n(49),d=n(12),p=n(32),f=n(33),h=n(31),m=n(1),g={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:o.default,Format:r.default,Leaf:i.default,Embed:u.default,Scroll:l.default,Block:s.default,Inline:a.default,Text:c.default,Attributor:{Attribute:d.default,Class:p.default,Style:f.default,Store:h.default}};t.default=g},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return r(t,e),t}(Error);t.ParchmentError=i;var l,a={},s={},u={},c={};function d(e,t){var n=f(e);if(null==n)throw new i("Unable to create "+e+" blot");var o=n,r=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:o.create(t);return new o(r,t)}function p(e,n){return void 0===n&&(n=!1),null==e?null:null!=e[t.DATA_KEY]?e[t.DATA_KEY].blot:n?p(e.parentNode,n):null}function f(e,t){var n;if(void 0===t&&(t=l.ANY),"string"==typeof e)n=c[e]||a[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=c.text;else if("number"==typeof e)e&l.LEVEL&l.BLOCK?n=c.block:e&l.LEVEL&l.INLINE&&(n=c.inline);else if(e instanceof HTMLElement){var o=(e.getAttribute("class")||"").split(/\s+/);for(var r in o)if(n=s[o[r]])break;n=n||u[e.tagName]}return null==n?null:t&l.LEVEL&n.scope&&t&l.TYPE&n.scope?n:null}function h(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length>1)return e.map((function(e){return h(e)}));var n=e[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new i("Invalid definition");if("abstract"===n.blotName)throw new i("Cannot register abstract class");return c[n.blotName||n.attrName]=n,"string"==typeof n.keyName?a[n.keyName]=n:(null!=n.className&&(s[n.className]=n),null!=n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(e){return e.toUpperCase()})):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach((function(e){(null==u[e]||null==n.className)&&(u[e]=n)})))),n}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(l=t.Scope||(t.Scope={})),t.create=d,t.find=p,t.query=f,t.register=h},function(e,t,n){var o=n(51),r=n(11),i=n(3),l=n(20),a=String.fromCharCode(0),s=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};s.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},s.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},s.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},s.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=i(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(r(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},s.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},s.prototype.filter=function(e){return this.ops.filter(e)},s.prototype.forEach=function(e){this.ops.forEach(e)},s.prototype.map=function(e){return this.ops.map(e)},s.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(o){(e(o)?t:n).push(o)})),[t,n]},s.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},s.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+l.length(t):t.delete?e-t.delete:e}),0)},s.prototype.length=function(){return this.reduce((function(e,t){return e+l.length(t)}),0)},s.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],o=l.iterator(this.ops),r=0;r<t&&o.hasNext();){var i;r<e?i=o.next(e-r):(i=o.next(t-r),n.push(i)),r+=l.length(i)}return new s(n)},s.prototype.compose=function(e){var t=l.iterator(this.ops),n=l.iterator(e.ops),o=[],i=n.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var a=i.retain;"insert"===t.peekType()&&t.peekLength()<=a;)a-=t.peekLength(),o.push(t.next());i.retain-a>0&&n.next(i.retain-a)}for(var u=new s(o);t.hasNext()||n.hasNext();)if("insert"===n.peekType())u.push(n.next());else if("delete"===t.peekType())u.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),d=t.next(c),p=n.next(c);if("number"==typeof p.retain){var f={};"number"==typeof d.retain?f.retain=c:f.insert=d.insert;var h=l.attributes.compose(d.attributes,p.attributes,"number"==typeof d.retain);if(h&&(f.attributes=h),u.push(f),!n.hasNext()&&r(u.ops[u.ops.length-1],f)){var m=new s(t.rest());return u.concat(m).chop()}}else"number"==typeof p.delete&&"number"==typeof d.retain&&u.push(p)}return u.chop()},s.prototype.concat=function(e){var t=new s(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},s.prototype.diff=function(e,t){if(this.ops===e.ops)return new s;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:a;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),i=new s,u=o(n[0],n[1],t),c=l.iterator(this.ops),d=l.iterator(e.ops);return u.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case o.INSERT:n=Math.min(d.peekLength(),t),i.push(d.next(n));break;case o.DELETE:n=Math.min(t,c.peekLength()),c.next(n),i.delete(n);break;case o.EQUAL:n=Math.min(c.peekLength(),d.peekLength(),t);var a=c.next(n),s=d.next(n);r(a.insert,s.insert)?i.retain(n,l.attributes.diff(a.attributes,s.attributes)):i.push(s).delete(n)}t-=n}})),i.chop()},s.prototype.eachLine=function(e,t){t=t||"\n";for(var n=l.iterator(this.ops),o=new s,r=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),a=l.length(i)-n.peekLength(),u="string"==typeof i.insert?i.insert.indexOf(t,a)-a:-1;if(u<0)o.push(n.next());else if(u>0)o.push(n.next(u));else{if(!1===e(o,n.next(1).attributes||{},r))return;r+=1,o=new s}}o.length()>0&&e(o,{},r)},s.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=l.iterator(this.ops),o=l.iterator(e.ops),r=new s;n.hasNext()||o.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===o.peekType())if("insert"===o.peekType())r.push(o.next());else{var i=Math.min(n.peekLength(),o.peekLength()),a=n.next(i),u=o.next(i);if(a.delete)continue;u.delete?r.push(u):r.retain(i,l.attributes.transform(a.attributes,u.attributes,t))}else r.retain(l.length(n.next()));return r.chop()},s.prototype.transformPosition=function(e,t){t=!!t;for(var n=l.iterator(this.ops),o=0;n.hasNext()&&o<=e;){var r=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(o<e||!t)&&(e+=r),o+=r):e-=Math.min(r,e-o)}return e},e.exports=s},function(e,t){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)},a=function(e){if(!e||"[object Object]"!==o.call(e))return!1;var t,r=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!i)return!1;for(t in e);return typeof t>"u"||n.call(e,t)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,n,o,r,i,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)o=u(d,n),d!==(r=u(t,n))&&(h&&r&&(a(r)||(i=l(r)))?(i?(i=!1,c=o&&l(o)?o:[]):c=o&&a(o)?o:{},s(d,{name:n,newValue:e(h,c,r)})):typeof r<"u"&&s(d,{name:n,newValue:r}));return d}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=d(n(3)),l=d(n(2)),a=d(n(0)),s=d(n(16)),u=d(n(6)),c=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=1,g=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),o(t,[{key:"attach",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new a.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new l.default).insert(this.value(),(0,i.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=a.default.query(e,a.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,o){this.format(n,o)}},{key:"insertAt",value:function(e,n,o){if("string"==typeof n&&n.endsWith("\n")){var i=a.default.create(b.blotName);this.parent.insertBefore(i,0===e?this:this.next),i.insertAt(0,n.slice(0,-1))}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o)}}]),t}(a.default.Embed);g.scope=a.default.Scope.BLOCK_BLOT;var b=function(e){function t(e){p(this,t);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return h(t,e),o(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(a.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),v(t))}),new l.default).insert("\n",v(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,o,i){n<=0||(a.default.query(o,a.default.Scope.BLOCK)?e+n===this.length()&&this.format(o,i):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),o,i),this.cache={})}},{key:"insertAt",value:function(e,n,o){if(null!=o)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o);if(0!==n.length){var i=n.split("\n"),l=i.shift();l.length>0&&(e<this.length()-1||null==this.children.tail?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),l):this.children.tail.insertAt(this.children.tail.length(),l),this.cache={});var a=this;i.reduce((function(e,t){return(a=a.split(e,!0)).insertAt(0,t),t.length}),e+l.length)}}},{key:"insertBefore",value:function(e,n){var o=this.children.head;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),o instanceof s.default&&o.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+m),this.cache.length}},{key:"moveChildren",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-m)){var o=this.clone();return 0===e?(this.parent.insertBefore(o,this),this):(this.parent.insertBefore(o,this.next),o)}var i=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},i}}]),t}(a.default.Block);function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e||("function"==typeof e.formats&&(t=(0,i.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope)?t:v(e.parent,t)}b.blotName="block",b.tagName="P",b.defaultChild="break",b.allowedChildren=[u.default,a.default.Embed,c.default],t.bubbleFormats=v,t.BlockEmbed=g,t.default=b},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var o="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},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();n(50);var l=g(n(2)),a=g(n(14)),s=g(n(8)),u=g(n(9)),c=g(n(0)),d=n(15),p=g(d),f=g(n(3)),h=g(n(10)),m=g(n(34));function g(e){return e&&e.__esModule?e:{default:e}}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var y=(0,h.default)("quill"),w=function(){function e(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(v(this,e),this.options=x(t,o),this.container=this.options.container,null==this.container)return y.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new s.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new a.default(this.scroll),this.selection=new p.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e){e===s.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(s.default.events.SCROLL_UPDATE,(function(e,t){var o=n.selection.lastRange,r=o&&0===o.length?o.index:void 0;C.call(n,(function(){return n.editor.update(null,t,r)}),e)}));var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+r+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||c.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&y.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var r=e.attrName||e.blotName;"string"==typeof r?this.register("formats/"+r,e,t):Object.keys(e).forEach((function(o){n.register(o,e[o],t)}))}else null!=this.imports[e]&&!o&&y.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?c.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),i(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var o=this,i=O(e,t,n),l=r(i,4);return e=l[0],t=l[1],n=l[3],C.call(this,(function(){return o.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;return C.call(this,(function(){var o=n.getSelection(!0),r=new l.default;if(null==o)return r;if(c.default.query(e,c.default.Scope.BLOCK))r=n.editor.formatLine(o.index,o.length,b({},e,t));else{if(0===o.length)return n.selection.format(e,t),r;r=n.editor.formatText(o.index,o.length,b({},e,t))}return n.setSelection(o,s.default.sources.SILENT),r}),o)}},{key:"formatLine",value:function(e,t,n,o,i){var l=this,a=void 0,s=O(e,t,n,o,i),u=r(s,4);return e=u[0],t=u[1],a=u[2],i=u[3],C.call(this,(function(){return l.editor.formatLine(e,t,a)}),i,e,0)}},{key:"formatText",value:function(e,t,n,o,i){var l=this,a=void 0,s=O(e,t,n,o,i),u=r(s,4);return e=u[0],t=u[1],a=u[2],i=u[3],C.call(this,(function(){return l.editor.formatText(e,t,a)}),i,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var o=this.container.getBoundingClientRect();return{bottom:n.bottom-o.top,height:n.height,left:n.left-o.left,right:n.right-o.left,top:n.top-o.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=O(e,t),o=r(n,2);return e=o[0],t=o[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=O(e,t),o=r(n,2);return e=o[0],t=o[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,o){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return C.call(this,(function(){return r.editor.insertEmbed(t,n,o)}),i,t)}},{key:"insertText",value:function(e,t,n,o,i){var l=this,a=void 0,s=O(e,0,n,o,i),u=r(s,4);return e=u[0],a=u[2],i=u[3],C.call(this,(function(){return l.editor.insertText(e,t,a)}),i,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var o=this,i=O(e,t,n),l=r(i,4);return e=l[0],t=l[1],n=l[3],C.call(this,(function(){return o.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return C.call(this,(function(){e=new l.default(e);var n=t.getLength(),o=t.editor.deleteText(0,n),r=t.editor.applyDelta(e),i=r.ops[r.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),r.delete(1)),o.compose(r)}),n)}},{key:"setSelection",value:function(t,n,o){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var i=O(t,n,o),l=r(i,4);t=l[0],n=l[1],o=l[3],this.selection.setRange(new d.Range(t,n),o),o!==s.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API,n=(new l.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return C.call(this,(function(){return e=new l.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function x(e,t){if((t=(0,f.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==w.DEFAULTS.theme){if(t.theme=w.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=m.default;var n=(0,f.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var o=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=w.import("modules/"+t);return null==n?y.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,f.default)(!0,{},w.DEFAULTS,{modules:o},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function C(e,t,n,o){if(this.options.strict&&!this.isEnabled()&&t===s.default.sources.USER)return new l.default;var r=null==n?null:this.getSelection(),i=this.editor.delta,a=e();if(null!=r&&(!0===n&&(n=r.index),null==o?r=k(r,a,t):0!==o&&(r=k(r,n,o,t)),this.setSelection(r,s.default.sources.SILENT)),a.length()>0){var u,c,d=[s.default.events.TEXT_CHANGE,a,i,t];(u=this.emitter).emit.apply(u,[s.default.events.EDITOR_CHANGE].concat(d)),t!==s.default.sources.SILENT&&(c=this.emitter).emit.apply(c,d)}return a}function O(e,t,n,r,i){var l={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(i=r,r=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(i=r,r=n,n=t,t=0),"object"===(typeof n>"u"?"undefined":o(n))?(l=n,i=r):"string"==typeof n&&(null!=r?l[n]=r:i=n),[e,t,l,i=i||s.default.sources.API]}function k(e,t,n,o){if(null==e)return null;var i=void 0,a=void 0;if(t instanceof l.default){var u=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,o!==s.default.sources.USER)})),c=r(u,2);i=c[0],a=c[1]}else{var p=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&o===s.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),f=r(p,2);i=f[0],a=f[1]}return new d.Range(i,a-i)}w.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},w.events=s.default.events,w.sources=s.default.sources,w.version="1.3.7",w.imports={delta:l.default,parchment:c.default,"core/module":u.default,"core/theme":m.default},t.expandConfig=x,t.overload=O,t.default=w},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=a(n(7)),l=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),o(t,[{key:"formatAt",value:function(e,n,o,i){if(t.compare(this.statics.blotName,o)<0&&l.default.query(o,l.default.Scope.BLOT)){var a=this.isolate(e,n);i&&a.wrap(o,i)}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,o,i)}},{key:"optimize",value:function(e){if(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var o=t.order.indexOf(e),r=t.order.indexOf(n);return o>=0||r>=0?o-r:e===n?0:e<n?-1:1}}]),t}(l.default.Inline);d.allowedChildren=[d,l.default.Embed,i.default],d.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=d},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(o(n(0)).default.Text);t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=l(n(54));function l(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=(0,l(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var d=function(e){function t(){a(this,t);var e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",c.error),e}return u(t,e),o(t,[{key:"emit",value:function(){c.log.apply(c,arguments),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];(this.listeners[e.type]||[]).forEach((function(t){var o=t.node,r=t.handler;(e.target===o||o.contains(e.target))&&r.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(i.default);d.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},d.sources={API:"api",SILENT:"silent",USER:"user"},t.default=d},function(e,t,n){function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.quill=t,this.options=n};r.DEFAULTS={},t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=["error","warn","log","info"],r="warn";function i(e){if(o.indexOf(e)<=o.indexOf(r)){for(var t,n=arguments.length,i=Array(n>1?n-1:0),l=1;l<n;l++)i[l-1]=arguments[l];(t=console)[e].apply(t,i)}}function l(e){return o.reduce((function(t,n){return t[n]=i.bind(console,n,e),t}),{})}i.level=l.level=function(e){r=e},t.default=l},function(e,t,n){var o=Array.prototype.slice,r=n(52),i=n(53),l=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:u(e,t,n))};function a(e){return null==e}function s(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}function u(e,t,n){var u,c;if(a(e)||a(t)||e.prototype!==t.prototype)return!1;if(i(e))return!!i(t)&&(e=o.call(e),t=o.call(t),l(e,t,n));if(s(e)){if(!s(t)||e.length!==t.length)return!1;for(u=0;u<e.length;u++)if(e[u]!==t[u])return!1;return!0}try{var d=r(e),p=r(t)}catch{return!1}if(d.length!=p.length)return!1;for(d.sort(),p.sort(),u=d.length-1;u>=0;u--)if(d[u]!=p[u])return!1;for(u=d.length-1;u>=0;u--)if(c=d[u],!l(e[c],t[c],n))return!1;return typeof e==typeof t}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var r=o.Scope.TYPE&o.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&o.Scope.LEVEL|r:this.scope=o.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=o.query(e,o.Scope.BLOT&(this.scope|o.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},l=d(n(2)),a=d(n(0)),s=d(n(4)),u=d(n(6)),c=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),t}(u.default);m.blotName="code",m.tagName="CODE";var g=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),r(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new l.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var r=this.descendant(c.default,this.length()-1),l=o(r,1)[0];null!=l&&l.deleteAt(l.length()-1,1),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,o,r){if(0!==n&&null!=a.default.query(o,a.default.Scope.BLOCK)&&(o!==this.statics.blotName||r!==this.statics.formats(this.domNode))){var i=this.newlineIndex(e);if(!(i<0||i>=e+n)){var l=this.newlineIndex(e,!0)+1,s=i-l+1,u=this.isolate(l,s),c=u.next;u.format(o,r),c instanceof t&&c.formatAt(0,e-l+n-s,o,r)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var r=this.descendant(c.default,e),i=o(r,2),l=i[0],a=i[1];l.insertAt(a,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(a.default.create("text","\n")),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=a.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof a.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(s.default);g.blotName="code-block",g.tagName="PRE",g.TAB=" ",t.Code=m,t.default=g},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o="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},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=b(n(2)),a=b(n(20)),s=b(n(0)),u=b(n(13)),c=b(n(24)),d=n(4),p=b(d),f=b(n(16)),h=b(n(21)),m=b(n(11)),g=b(n(3));function b(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var w=/^[ -~]*$/,x=function(){function e(t){y(this,e),this.scroll=t,this.delta=this.getDelta()}return i(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),(e=O(e)).reduce((function(e,l){var u=l.retain||l.delete||l.insert.length||1,c=l.attributes||{};if(null!=l.insert){if("string"==typeof l.insert){var f=l.insert;f.endsWith("\n")&&n&&(n=!1,f=f.slice(0,-1)),e>=i&&!f.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,f);var h=t.scroll.line(e),m=r(h,2),b=m[0],v=m[1],y=(0,g.default)({},(0,d.bubbleFormats)(b));if(b instanceof p.default){var w=b.descendant(s.default.Leaf,v),x=r(w,1)[0];y=(0,g.default)(y,(0,d.bubbleFormats)(x))}c=a.default.attributes.diff(y,c)||{}}else if("object"===o(l.insert)){var C=Object.keys(l.insert)[0];if(null==C)return e;t.scroll.insertAt(e,C,l.insert[C])}i+=u}return Object.keys(c).forEach((function(n){t.scroll.formatAt(e,u,n,c[n])})),e+u}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new l.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(o).forEach((function(r){if(null==n.scroll.whitelist||n.scroll.whitelist[r]){var i=n.scroll.lines(e,Math.max(t,1)),l=t;i.forEach((function(t){var i=t.length();if(t instanceof u.default){var a=e-t.offset(n.scroll),s=t.newlineIndex(a+l)-a+1;t.formatAt(a,s,r,o[r])}else t.format(r,o[r]);l-=i}))}})),this.scroll.optimize(),this.update((new l.default).retain(e).retain(t,(0,h.default)(o)))}},{key:"formatText",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(o).forEach((function(r){n.scroll.formatAt(e,t,r,o[r])})),this.update((new l.default).retain(e).retain(t,(0,h.default)(o)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new l.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],o=[];0===t?this.scroll.path(e).forEach((function(e){var t=r(e,1)[0];t instanceof p.default?n.push(t):t instanceof s.default.Leaf&&o.push(t)})):(n=this.scroll.lines(e,t),o=this.scroll.descendants(s.default.Leaf,e,t));var i=[n,o].map((function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=C((0,d.bubbleFormats)(n),t)}return t}));return g.default.apply(g.default,i)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new l.default).retain(e).insert(v({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(o).forEach((function(r){n.scroll.formatAt(e,t.length,r,o[r])})),this.update((new l.default).retain(e).insert(t,(0,h.default)(o)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return!(e.statics.blotName!==p.default.blotName||e.children.length>1)&&e.children.head instanceof f.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),o=this.scroll.line(e+t),i=r(o,2),a=i[0],s=i[1],c=0,d=new l.default;null!=a&&(c=a instanceof u.default?a.newlineIndex(s)-s+1:a.length()-s,d=a.delta().slice(s,s+c-1).insert("\n"));var p=this.getContents(e,t+c).diff((new l.default).insert(n).concat(d)),f=(new l.default).retain(e).concat(p);return this.applyDelta(f)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,o=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(w)&&s.default.find(t[0].target)){var r=s.default.find(t[0].target),i=(0,d.bubbleFormats)(r),a=r.offset(this.scroll),u=t[0].oldValue.replace(c.default.CONTENTS,""),p=(new l.default).insert(u),f=(new l.default).insert(r.value());e=(new l.default).retain(a).concat(p.diff(f,n)).reduce((function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)}),new l.default),this.delta=o.compose(e)}else this.delta=this.getDelta(),(!e||!(0,m.default)(o.compose(e),this.delta))&&(e=o.diff(this.delta,n));return e}}]),e}();function C(e,t){return Object.keys(t).reduce((function(n,o){return null==e[o]||(t[o]===e[o]?n[o]=t[o]:Array.isArray(t[o])?t[o].indexOf(e[o])<0&&(n[o]=t[o].concat([e[o]])):n[o]=[t[o],e[o]]),n}),{})}function O(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,h.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null!=t.attributes&&(!0===t.attributes.list||!0===t.attributes.bullet)&&((t=(0,h.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var o=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(o,t.attributes)}return e.push(t)}),new l.default)}t.default=x},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=u(n(0)),l=u(n(21)),a=u(n(11)),s=u(n(8));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var p=(0,u(n(10)).default)("quill:selection"),f=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=n},h=function(){function e(t,n){var o=this;d(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new f(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){o.mouseDown||setTimeout(o.update.bind(o,s.default.sources.USER),1)})),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e,t){e===s.default.events.TEXT_CHANGE&&t.length()>0&&o.update(s.default.sources.SILENT)})),this.emitter.on(s.default.events.SCROLL_BEFORE_UPDATE,(function(){if(o.hasFocus()){var e=o.getNativeRange();null!=e&&e.start.node!==o.cursor.textNode&&o.emitter.once(s.default.events.SCROLL_UPDATE,(function(){try{o.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch{}}))}})),this.emitter.on(s.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,r=n.startNode,i=n.startOffset,l=n.endNode,a=n.endOffset;o.setNativeRange(r,i,l,a)}})),this.update(s.default.sources.SILENT)}return r(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(s.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!i.default.query(e,i.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var o=i.default.find(n.start.node,!1);if(null==o)return;if(o instanceof i.default.Leaf){var r=o.split(n.start.offset);o.parent.insertBefore(this.cursor,r)}else o.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var r=void 0,i=this.scroll.leaf(e),l=o(i,2),a=l[0],s=l[1];if(null==a)return null;var u=a.position(s,!0),c=o(u,2);r=c[0],s=c[1];var d=document.createRange();if(t>0){d.setStart(r,s);var p=this.scroll.leaf(e+t),f=o(p,2);if(a=f[0],s=f[1],null==a)return null;var h=a.position(s,!0),m=o(h,2);return r=m[0],s=m[1],d.setEnd(r,s),d.getBoundingClientRect()}var g="left",b=void 0;return r instanceof Text?(s<r.data.length?(d.setStart(r,s),d.setEnd(r,s+1)):(d.setStart(r,s-1),d.setEnd(r,s),g="right"),b=d.getBoundingClientRect()):(b=a.domNode.getBoundingClientRect(),s>0&&(g="right")),{bottom:b.top+b.height,height:b.height,left:b[g],right:b[g],top:b.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return p.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var r=n.map((function(e){var n=o(e,2),r=n[0],l=n[1],a=i.default.find(r,!0),s=a.offset(t.scroll);return 0===l?s:a instanceof i.default.Container?s+a.length():s+a.index(r,l)})),l=Math.min(Math.max.apply(Math,c(r)),this.scroll.length()-1),a=Math.min.apply(Math,[l].concat(c(r)));return new f(a,l-a)}},{key:"normalizeNative",value:function(e){if(!m(this.root,e.startContainer)||!e.collapsed&&!m(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],r=[],i=this.scroll.length();return n.forEach((function(e,n){e=Math.min(i-1,e);var l=void 0,a=t.scroll.leaf(e),s=o(a,2),u=s[0],c=s[1],d=u.position(c,0!==n),p=o(d,2);l=p[0],c=p[1],r.push(l,c)})),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var r=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,r)),l=o(i,1)[0],a=l;if(t.length>0){var s=this.scroll.line(Math.min(t.index+t.length,r));a=o(s,1)[0]}if(null!=l&&null!=a){var u=e.getBoundingClientRect();n.top<u.top?e.scrollTop-=u.top-n.top:n.bottom>u.bottom&&(e.scrollTop+=n.bottom-u.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(p.info("setNativeRange",e,t,n,o),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus();var l=(this.getNativeRange()||{}).native;if(null==l||r||e!==l.startContainer||t!==l.startOffset||n!==l.endContainer||o!==l.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(o=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var a=document.createRange();a.setStart(e,t),a.setEnd(n,o),i.removeAllRanges(),i.addRange(a)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if("string"==typeof t&&(n=t,t=!1),p.info("setRange",e),null!=e){var o=this.rangeToNative(e);this.setNativeRange.apply(this,c(o).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.lastRange,n=this.getRange(),r=o(n,2),i=r[0],u=r[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,a.default)(t,this.lastRange)){var c;!this.composing&&null!=u&&u.native.collapsed&&u.start.node!==this.cursor.textNode&&this.cursor.restore();var d,p=[s.default.events.SELECTION_CHANGE,(0,l.default)(this.lastRange),(0,l.default)(t),e];(c=this.emitter).emit.apply(c,[s.default.events.EDITOR_CHANGE].concat(p)),e!==s.default.sources.SILENT&&(d=this.emitter).emit.apply(d,p)}}}]),e}();function m(e,t){try{t.parentNode}catch{return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=f,t.default=h},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return l(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,[{key:"insertInto",value:function(e,n){0===e.children.length?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(i(n(0)).default.Embed);u.blotName="break",u.tagName="BR",t.default=u},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),l=n(30),a=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return r(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=u(t);e.insertBefore(n,e.children.head||void 0)}catch(e){if(e instanceof a.ParchmentError)return;throw e}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var o=this.children.find(n),r=o[0],i=o[1];return null==e.blotName&&e(r)||null!=e.blotName&&r instanceof e?[r,i]:r instanceof t?r.descendant(e,i):[null,-1]},t.prototype.descendants=function(e,n,o){void 0===n&&(n=0),void 0===o&&(o=Number.MAX_VALUE);var r=[],i=o;return this.children.forEachAt(n,o,(function(n,o,l){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&r.push(n),n instanceof t&&(r=r.concat(n.descendants(e,o,i))),i-=l})),r},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,o){this.children.forEachAt(e,t,(function(e,t,r){e.formatAt(t,r,n,o)}))},t.prototype.insertAt=function(e,t,n){var o=this.children.find(e),r=o[0],i=o[1];if(r)r.insertAt(i,t,n);else{var l=null==n?a.create("text",t):a.create(t,n);this.appendChild(l)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new a.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var o=this.children.find(e,n),r=o[0],i=o[1],l=[[this,e]];return r instanceof t?l.concat(r.path(i,n)):(null!=r&&l.push([r,i]),l)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,o,r){e=e.split(o,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,o=[],r=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(o.push.apply(o,e.addedNodes),r.push.apply(r,e.removedNodes))})),r.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=a.find(e);null!=t&&(null==t.domNode.parentNode||t.domNode.parentNode===n.domNode)&&t.detach()}})),o.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=a.find(e.nextSibling));var o=u(e);(o.next!=t||null==o.next)&&(null!=o.parent&&o.parent.removeChild(n),n.insertBefore(o,t||void 0))}))},t}(l.default);function u(e){var t=a.find(e);if(null==t)try{t=a.create(e)}catch{t=a.create(a.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=s},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),l=n(31),a=n(17),s=n(1),u=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new l.default(n.domNode),n}return r(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=s.query(e);n instanceof i.default?this.attributes.attribute(n,t):t&&null!=n&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t)},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var o=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(o),o},t.prototype.update=function(t,n){var o=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===o.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,o){var r=e.prototype.wrap.call(this,n,o);return r instanceof t&&r.statics.scope===this.statics.scope&&this.attributes.move(r),r},t}(a.default);t.default=u},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),l=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=l.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){var o=n(11),r=n(3),i={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var o=r(!0,{},t);for(var i in n||(o=Object.keys(o).reduce((function(e,t){return null!=o[t]&&(e[t]=o[t]),e}),{})),e)void 0!==e[i]&&void 0===t[i]&&(o[i]=e[i]);return Object.keys(o).length>0?o:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,r){return o(e[r],t[r])||(n[r]=void 0===t[r]?null:t[r]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var o=Object.keys(t).reduce((function(n,o){return void 0===e[o]&&(n[o]=t[o]),n}),{});return Object.keys(o).length>0?o:void 0}}},iterator:function(e){return new l(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function l(e){this.ops=e,this.index=0,this.offset=0}l.prototype.hasNext=function(){return this.peekLength()<1/0},l.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,o=i.length(t);if(e>=o-n?(e=o-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var r={};return t.attributes&&(r.attributes=t.attributes),"number"==typeof t.retain?r.retain=e:"string"==typeof t.insert?r.insert=t.insert.substr(n,e):r.insert=t.insert,r}return{retain:1/0}},l.prototype.peek=function(){return this.ops[this.index]},l.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},l.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},l.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),o=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(o)}return[]},e.exports=i},function(e,t){var n=function(){function e(e,t){return null!=t&&e instanceof t}var t,n,o;try{t=Map}catch{t=function(){}}try{n=Set}catch{n=function(){}}try{o=Promise}catch{o=function(){}}function r(i,l,a,s,c){"object"==typeof l&&(a=l.depth,s=l.prototype,c=l.includeNonEnumerable,l=l.circular);var d=[],p=[],f=typeof Buffer<"u";function h(i,a){if(null===i)return null;if(0===a)return i;var m,g;if("object"!=typeof i)return i;if(e(i,t))m=new t;else if(e(i,n))m=new n;else if(e(i,o))m=new o((function(e,t){i.then((function(t){e(h(t,a-1))}),(function(e){t(h(e,a-1))}))}));else if(r.__isArray(i))m=[];else if(r.__isRegExp(i))m=new RegExp(i.source,u(i)),i.lastIndex&&(m.lastIndex=i.lastIndex);else if(r.__isDate(i))m=new Date(i.getTime());else{if(f&&Buffer.isBuffer(i))return m=Buffer.allocUnsafe?Buffer.allocUnsafe(i.length):new Buffer(i.length),i.copy(m),m;e(i,Error)?m=Object.create(i):typeof s>"u"?(g=Object.getPrototypeOf(i),m=Object.create(g)):(m=Object.create(s),g=s)}if(l){var b=d.indexOf(i);if(-1!=b)return p[b];d.push(i),p.push(m)}for(var v in e(i,t)&&i.forEach((function(e,t){var n=h(t,a-1),o=h(e,a-1);m.set(n,o)})),e(i,n)&&i.forEach((function(e){var t=h(e,a-1);m.add(t)})),i){var y;g&&(y=Object.getOwnPropertyDescriptor(g,v)),(!y||null!=y.set)&&(m[v]=h(i[v],a-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(i);for(v=0;v<w.length;v++){var x=w[v];(O=Object.getOwnPropertyDescriptor(i,x))&&!O.enumerable&&!c||(m[x]=h(i[x],a-1),O.enumerable||Object.defineProperty(m,x,{enumerable:!1}))}}if(c){var C=Object.getOwnPropertyNames(i);for(v=0;v<C.length;v++){var O,k=C[v];(O=Object.getOwnPropertyDescriptor(i,k))&&O.enumerable||(m[k]=h(i[k],a-1),Object.defineProperty(m,k,{enumerable:!1}))}}return m}return typeof l>"u"&&(l=!0),typeof a>"u"&&(a=1/0),h(i,a)}function i(e){return Object.prototype.toString.call(e)}function l(e){return"object"==typeof e&&"[object Date]"===i(e)}function a(e){return"object"==typeof e&&"[object Array]"===i(e)}function s(e){return"object"==typeof e&&"[object RegExp]"===i(e)}function u(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return r.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},r.__objToStr=i,r.__isDate=l,r.__isArray=a,r.__isRegExp=s,r.__getRegExpFlags=u,r}();"object"==typeof e&&e.exports&&(e.exports=n)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},l=f(n(0)),a=f(n(8)),s=n(4),u=f(s),c=f(n(16)),d=f(n(13)),p=f(n(25));function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function b(e){return e instanceof u.default||e instanceof s.BlockEmbed}var v=function(e){function t(e,n){h(this,t);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.emitter=n.emitter,Array.isArray(n.whitelist)&&(o.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),o.domNode.addEventListener("DOMNodeInserted",(function(){})),o.optimize(),o.enable(),o}return g(t,e),r(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var r=this.line(e),l=o(r,2),a=l[0],u=l[1],p=this.line(e+n),f=o(p,1)[0];if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=f&&a!==f&&u>0){if(a instanceof s.BlockEmbed||f instanceof s.BlockEmbed)return void this.optimize();if(a instanceof d.default){var h=a.newlineIndex(a.length(),!0);if(h>-1&&(a=a.split(h+1))===f)return void this.optimize()}else if(f instanceof d.default){var m=f.newlineIndex(0);m>-1&&f.split(m+1)}var g=f.children.head instanceof c.default?null:f.children.head;a.moveChildren(f,g),a.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,o,r){null!=this.whitelist&&!this.whitelist[o]||(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,o,r),this.optimize())}},{key:"insertAt",value:function(e,n,o){if(null==o||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==o||null==l.default.query(n,l.default.Scope.BLOCK)){var r=l.default.create(this.statics.defaultChild);this.appendChild(r),null==o&&n.endsWith("\n")&&(n=n.slice(0,-1)),r.insertAt(0,n,o)}else{var a=l.default.create(n,o);this.appendChild(a)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===l.default.Scope.INLINE_BLOT){var o=l.default.create(this.statics.defaultChild);o.appendChild(e),e=o}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(b,e)}},{key:"lines",value:function(){return function e(t,n,o){var r=[],i=o;return t.children.forEachAt(n,o,(function(t,n,o){b(t)?r.push(t):t instanceof l.default.Container&&(r=r.concat(e(t,n,i))),i-=o})),r}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(a.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=a.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(a.default.events.SCROLL_BEFORE_UPDATE,n,e),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(a.default.events.SCROLL_UPDATE,n,e)}}}]),t}(l.default.Scroll);v.blotName="scroll",v.className="ql-editor",v.tagName="DIV",v.defaultChild="block",v.allowedChildren=[u.default,s.BlockEmbed,p.default],t.default=v},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var o="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},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=m(n(21)),a=m(n(11)),s=m(n(3)),u=m(n(2)),c=m(n(20)),d=m(n(0)),p=m(n(5)),f=m(n(10)),h=m(n(9));function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var w=(0,f.default)("quill:keyboard"),x=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",C=function(e){function t(e,n){b(this,t);var o=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.bindings={},Object.keys(o.options.bindings).forEach((function(t){"list autofill"===t&&null!=e.scroll.whitelist&&!e.scroll.whitelist.list||o.options.bindings[t]&&o.addBinding(o.options.bindings[t])})),o.addBinding({key:t.keys.ENTER,shiftKey:null},R),o.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(o.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},k),o.addBinding({key:t.keys.DELETE},{collapsed:!0},S)):(o.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},k),o.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},S)),o.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},E),o.addBinding({key:t.keys.DELETE},{collapsed:!1},E),o.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},k),o.listen(),o}return y(t,e),i(t,null,[{key:"match",value:function(e,t){return t=P(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),i(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=P(e);if(null==o||null==o.key)return w.warn("Attempted to add invalid keyboard binding",o);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),o=(0,s.default)(o,t,n),this.bindings[o.key]=this.bindings[o.key]||[],this.bindings[o.key].push(o)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,l=(e.bindings[i]||[]).filter((function(e){return t.match(n,e)}));if(0!==l.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var u=e.quill.getLine(s.index),c=r(u,2),p=c[0],f=c[1],h=e.quill.getLeaf(s.index),m=r(h,2),g=m[0],b=m[1],v=0===s.length?[g,b]:e.quill.getLeaf(s.index+s.length),y=r(v,2),w=y[0],x=y[1],C=g instanceof d.default.Text?g.value().slice(0,b):"",O=w instanceof d.default.Text?w.value().slice(x):"",k={collapsed:0===s.length,empty:0===s.length&&p.length()<=1,format:e.quill.getFormat(s),offset:f,prefix:C,suffix:O};l.some((function(t){if(null!=t.collapsed&&t.collapsed!==k.collapsed||null!=t.empty&&t.empty!==k.empty||null!=t.offset&&t.offset!==k.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==k.format[e]})))return!1}else if("object"===o(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=k.format[e]:!1===t.format[e]?null==k.format[e]:(0,a.default)(t.format[e],k.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(k.prefix)||null!=t.suffix&&!t.suffix.test(k.suffix))&&!0!==t.handler.call(e,s,k)}))&&n.preventDefault()}}}}))}}]),t}(h.default);function O(e,t){var n,o=e===C.keys.LEFT?"prefix":"suffix";return g(n={key:e,shiftKey:t,altKey:null},o,/^$/),g(n,"handler",(function(n){var o=n.index;e===C.keys.RIGHT&&(o+=n.length+1);var i=this.quill.getLeaf(o);return!(r(i,1)[0]instanceof d.default.Embed&&(e===C.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,p.default.sources.USER):this.quill.setSelection(n.index-1,p.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,p.default.sources.USER):this.quill.setSelection(n.index+n.length+1,p.default.sources.USER),1))})),n}function k(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),o=r(n,1)[0],i={};if(0===t.offset){var l=this.quill.getLine(e.index-1),a=r(l,1)[0];if(null!=a&&a.length()>1){var s=o.formats(),u=this.quill.getFormat(e.index-1,1);i=c.default.attributes.diff(s,u)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,p.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-d,d,i,p.default.sources.USER),this.quill.focus()}}function S(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var o={},i=0,l=this.quill.getLine(e.index),a=r(l,1)[0];if(t.offset>=a.length()-1){var s=this.quill.getLine(e.index+1),u=r(s,1)[0];if(u){var d=a.formats(),f=this.quill.getFormat(e.index,1);o=c.default.attributes.diff(d,f)||{},i=u.length()}}this.quill.deleteText(e.index,n,p.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(e.index+i-1,n,o,p.default.sources.USER)}}function E(e){var t=this.quill.getLines(e),n={};if(t.length>1){var o=t[0].formats(),r=t[t.length-1].formats();n=c.default.attributes.diff(r,o)||{}}this.quill.deleteText(e,p.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,p.default.sources.USER),this.quill.setSelection(e.index,p.default.sources.SILENT),this.quill.focus()}function R(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var o=Object.keys(t.format).reduce((function(e,n){return d.default.query(n,d.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",o,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==o[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],p.default.sources.USER))}))}function T(e){return{key:C.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=d.default.query("code-block"),o=t.index,i=t.length,l=this.quill.scroll.descendant(n,o),a=r(l,2),s=a[0],u=a[1];if(null!=s){var c=this.quill.getIndex(s),f=s.newlineIndex(u,!0)+1,h=s.newlineIndex(c+u+i),m=s.domNode.textContent.slice(f,h).split("\n");u=0,m.forEach((function(t,r){e?(s.insertAt(f+u,n.TAB),u+=n.TAB.length,0===r?o+=n.TAB.length:i+=n.TAB.length):t.startsWith(n.TAB)&&(s.deleteAt(f+u,n.TAB.length),u-=n.TAB.length,0===r?o-=n.TAB.length:i-=n.TAB.length),u+=t.length+1})),this.quill.update(p.default.sources.USER),this.quill.setSelection(o,i,p.default.sources.SILENT)}}}}function N(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],p.default.sources.USER)}}}function P(e){if("string"==typeof e||"number"==typeof e)return P({key:e});if("object"===(typeof e>"u"?"undefined":o(e))&&(e=(0,l.default)(e,!1)),"string"==typeof e.key)if(null!=C.keys[e.key.toUpperCase()])e.key=C.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[x]=e.shortKey,delete e.shortKey),e}C.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},C.DEFAULTS={bindings:{bold:N("bold"),italic:N("italic"),underline:N("underline"),indent:{key:C.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",p.default.sources.USER)}},outdent:{key:C.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",p.default.sources.USER)}},"outdent backspace":{key:C.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",p.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,p.default.sources.USER)}},"indent code-block":T(!0),"outdent code-block":T(!1),"remove tab":{key:C.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,p.default.sources.USER)}},tab:{key:C.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new u.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,p.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,p.default.sources.SILENT)}},"list empty enter":{key:C.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,p.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,p.default.sources.USER)}},"checklist enter":{key:C.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),o=n[0],i=n[1],l=(0,s.default)({},o.formats(),{list:"checked"}),a=(new u.default).retain(e.index).insert("\n",l).retain(o.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(a,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:C.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),o=r(n,2),i=o[0],l=o[1],a=(new u.default).retain(e.index).insert("\n",t.format).retain(i.length()-l-1).retain(1,{header:null});this.quill.updateContents(a,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,o=this.quill.getLine(e.index),i=r(o,2),l=i[0],a=i[1];if(a>n)return!0;var s=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(e.index," ",p.default.sources.USER),this.quill.history.cutoff();var c=(new u.default).retain(e.index-a).delete(n+1).retain(l.length()-2-a).retain(1,{list:s});this.quill.updateContents(c,p.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,p.default.sources.SILENT)}},"code exit":{key:C.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),o=n[0],i=n[1],l=(new u.default).retain(e.index+o.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(l,p.default.sources.USER)}},"embed left":O(C.keys.LEFT,!1),"embed left shift":O(C.keys.LEFT,!0),"embed right":O(C.keys.RIGHT,!1),"embed right shift":O(C.keys.RIGHT,!0)}},t.default=C,t.SHORTKEY=x},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=s(n(0)),a=s(n(7));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(e,n){u(this,t);var o=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.selection=n,o.textNode=document.createTextNode(t.CONTENTS),o.domNode.appendChild(o.textNode),o._length=0,o}return d(t,e),i(t,null,[{key:"value",value:function(){}}]),i(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var o=this,i=0;null!=o&&o.statics.scope!==l.default.Scope.BLOCK_BLOT;)i+=o.offset(o.parent),o=o.parent;null!=o&&(this._length=t.CONTENTS.length,o.optimize(),o.formatAt(i,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),r=void 0,i=void 0,s=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var u=[e,n.start.offset,n.end.offset];r=u[0],i=u[1],s=u[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var c=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof a.default?(r=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=t.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(l.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var d=[i,s].map((function(e){return Math.max(0,Math.min(r.data.length,e-1))})),p=o(d,2);return i=p[0],s=p[1],{startNode:r,startOffset:i,endNode:r,endOffset:s}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var o=this.restore();o&&(t.range=o)}}},{key:"value",value:function(){return""}}]),t}(l.default.Embed);p.blotName="cursor",p.className="ql-cursor",p.tagName="span",p.CONTENTS="\ufeff",t.default=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=l(n(0)),r=n(4),i=l(r);function l(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),t}(o.default.Container);c.allowedChildren=[i.default,r.BlockEmbed,c],t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),o(t,[{key:"value",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?"#"+(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join(""):n}}]),t}(i.default.Attributor.Style),d=new i.default.Attributor.Class("color","ql-color",{scope:i.default.Scope.INLINE}),p=new c("color","color",{scope:i.default.Scope.INLINE});t.ColorAttributor=c,t.ColorClass=d,t.ColorStyle=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return l(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return c(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(i(n(6)).default);function c(e,t){var n=document.createElement("a");n.href=e;var o=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(o)>-1}u.blotName="link",u.tagName="A",u.SANITIZED_URL="about:blank",u.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=u,t.sanitize=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o="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},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=a(n(23)),l=a(n(107));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=0;function c(e,t){e.setAttribute(t,"true"!==e.getAttribute(t))}var d=function(){function e(t){var n=this;s(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:n.togglePicker();break;case i.default.keys.ESCAPE:n.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return r(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),c(this.label,"aria-expanded"),c(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case i.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=l.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+u,u+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var o=e.buildItem(n);t.appendChild(o),!0===n.selected&&e.selectItem(o)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===(typeof Event>"u"?"undefined":o(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=b(n(0)),r=b(n(5)),i=n(4),l=b(i),a=b(n(16)),s=b(n(25)),u=b(n(24)),c=b(n(35)),d=b(n(6)),p=b(n(22)),f=b(n(7)),h=b(n(55)),m=b(n(42)),g=b(n(23));function b(e){return e&&e.__esModule?e:{default:e}}r.default.register({"blots/block":l.default,"blots/block/embed":i.BlockEmbed,"blots/break":a.default,"blots/container":s.default,"blots/cursor":u.default,"blots/embed":c.default,"blots/inline":d.default,"blots/scroll":p.default,"blots/text":f.default,"modules/clipboard":h.default,"modules/history":m.default,"modules/keyboard":g.default}),o.default.register(l.default,a.default,u.default,d.default,p.default,f.default),t.default=r.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=function(){function e(e){this.domNode=e,this.domNode[o.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new o.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return o.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[o.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,r){var i=this.isolate(e,t);if(null!=o.query(n,o.Scope.BLOT)&&r)i.wrap(n,r);else if(null!=o.query(n,o.Scope.ATTRIBUTE)){var l=o.create(this.statics.scope);i.wrap(l),l.format(n,r)}},e.prototype.insertAt=function(e,t,n){var r=null==n?o.create("text",t):o.create(t,n),i=this.split(e);this.parent.insertBefore(r,i)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),(this.domNode.parentNode!=e.domNode||this.domNode.nextSibling!=n)&&e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[o.DATA_KEY]&&delete this.domNode[o.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?o.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?o.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),r=n(32),i=n(33),l=n(1),a=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=o.default.keys(this.domNode),n=r.default.keys(this.domNode),a=i.default.keys(this.domNode);t.concat(n).concat(a).forEach((function(t){var n=l.query(t,l.Scope.ATTRIBUTE);n instanceof o.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var o=t.attributes[n].value(t.domNode);e.format(n,o)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=a},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){i(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(i(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=l},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[i(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[i(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(t,n){r(this,e),this.quill=t,this.options=n,this.modules={}}return o(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();i.DEFAULTS={modules:{}},i.themes={default:i},t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=a(n(0)),l=a(n(7));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d="\ufeff",p=function(e){function t(e){s(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(d),n.rightGuard=document.createTextNode(d),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return c(t,e),o(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,o=e.data.split(d).join("");if(e===this.leftGuard)if(this.prev instanceof l.default){var r=this.prev.length();this.prev.insertAt(r,o),t={startNode:this.prev.domNode,startOffset:r+o.length}}else n=document.createTextNode(o),this.parent.insertBefore(i.default.create(n),this),t={startNode:n,startOffset:o.length};else e===this.rightGuard&&(this.next instanceof l.default?(this.next.insertAt(0,o),t={startNode:this.next.domNode,startOffset:o.length}):(n=document.createTextNode(o),this.parent.insertBefore(i.default.create(n),this.next),t={startNode:n,startOffset:o.length}));return e.data=d,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var o=n.restore(e.target);o&&(t.range=o)}}))}}]),t}(i.default.Embed);t.default=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var o=r(n(0));function r(e){return e&&e.__esModule?e:{default:e}}var i={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},l=new o.default.Attributor.Attribute("align","align",i),a=new o.default.Attributor.Class("align","ql-align",i),s=new o.default.Attributor.Style("align","text-align",i);t.AlignAttribute=l,t.AlignClass=a,t.AlignStyle=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var o=i(n(0)),r=n(26);function i(e){return e&&e.__esModule?e:{default:e}}var l=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),a=new r.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});t.BackgroundClass=l,t.BackgroundStyle=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var o=r(n(0));function r(e){return e&&e.__esModule?e:{default:e}}var i={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},l=new o.default.Attributor.Attribute("direction","dir",i),a=new o.default.Attributor.Class("direction","ql-direction",i),s=new o.default.Attributor.Style("direction","direction",i);t.DirectionAttribute=l,t.DirectionClass=a,t.DirectionStyle=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c={scope:i.default.Scope.INLINE,whitelist:["serif","monospace"]},d=new i.default.Attributor.Class("font","ql-font",c),p=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),o(t,[{key:"value",value:function(e){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(i.default.Attributor.Style),f=new p("font","font-family",c);t.FontStyle=f,t.FontClass=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var o=r(n(0));function r(e){return e&&e.__esModule?e:{default:e}}var i=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),l=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=i,t.SizeStyle=l},function(e,t,n){e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=l(n(0)),i=l(n(5));function l(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(e,n){a(this,t);var o=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.lastRecorded=0,o.ignoreChange=!1,o.clear(),o.quill.on(i.default.events.EDITOR_CHANGE,(function(e,t,n,r){e!==i.default.events.TEXT_CHANGE||o.ignoreChange||(o.options.userOnly&&r!==i.default.sources.USER?o.transform(t):o.record(t,n))})),o.quill.keyboard.addBinding({key:"Z",shortKey:!0},o.undo.bind(o)),o.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},o.redo.bind(o)),/Win/i.test(navigator.platform)&&o.quill.keyboard.addBinding({key:"Y",shortKey:!0},o.redo.bind(o)),o}return u(t,e),o(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],i.default.sources.USER),this.ignoreChange=!1;var o=p(n[e]);this.quill.setSelection(o)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),o=Date.now();if(this.lastRecorded+this.options.delay>o&&this.stack.undo.length>0){var r=this.stack.undo.pop();n=n.compose(r.undo),e=r.redo.compose(e)}else this.lastRecorded=o;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(l(n(9)).default);function d(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=r.default.query(e,r.default.Scope.BLOCK)})))}function p(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return d(e)&&(n-=1),n}c.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=c,t.getLastChangeIndex=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=h(n(3)),l=h(n(2)),a=h(n(8)),s=h(n(23)),u=h(n(34)),c=h(n(59)),d=h(n(60)),p=h(n(28)),f=h(n(61));function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=[!1,"center","right","justify"],y=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],w=[!1,"serif","monospace"],x=["1","2","3",!1],C=["small",!1,"large","huge"],O=function(e){function t(e,n){m(this,t);var o=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),r=function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null!=o.tooltip&&!o.tooltip.root.contains(n.target)&&document.activeElement!==o.tooltip.textbox&&!o.quill.hasFocus()&&o.tooltip.hide(),null!=o.pickers&&o.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))};return e.emitter.listenDOM("click",document.body,r),o}return b(t,e),o(t,[{key:"addModule",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice(3),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var o=e.value||"";null!=o&&t[n][o]&&(e.innerHTML=t[n][o])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&E(e,v),new d.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&E(e,y,"background"===n?"#ffffff":"#000000"),new c.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?E(e,w):e.classList.contains("ql-header")?E(e,x):e.classList.contains("ql-size")&&E(e,C)),new p.default(e)}));var o=function(){n.pickers.forEach((function(e){e.update()}))};this.quill.on(a.default.events.EDITOR_CHANGE,o)}}]),t}(u.default);O.DEFAULTS=(0,i.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var o=e.quill.getSelection(!0);e.quill.updateContents((new l.default).retain(o.index).delete(o.length).insert({image:n.target.result}),a.default.sources.USER),e.quill.setSelection(o.index+1,a.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var k=function(e){function t(e,n){m(this,t);var o=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.textbox=o.root.querySelector('input[type="text"]'),o.listen(),o}return b(t,e),o(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){s.default.match(t,"enter")?(e.save(),t.preventDefault()):s.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,a.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=S(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var o=n.index+n.length;this.quill.insertEmbed(o,this.root.getAttribute("data-mode"),e,a.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(o+1," ",a.default.sources.USER),this.quill.setSelection(o+2,a.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(f.default);function S(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e}function E(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var o=document.createElement("option");t===n?o.setAttribute("selected","selected"):o.setAttribute("value",t),e.appendChild(o)}))}t.BaseTooltip=k,t.default=O},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,o=this.iterator();n=o();){var r=n.length();if(e<r||t&&e===r&&(null==n.next||0!==n.next.length()))return[n,e];e-=r}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var o,r=this.find(e),i=r[0],l=e-r[1],a=this.iterator(i);(o=a())&&l<e+t;){var s=o.length();e>l?n(o,e-l,Math.min(t,l+s-e)):n(o,0,Math.min(s,e+t-l)),l+=s}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,o=this.iterator();n=o();)t=e(t,n);return t},e}();t.default=o},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),l=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=100,u=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,a),n.attach(),n}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,o,r){this.update(),e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.insertAt=function(t,n,o){this.update(),e.prototype.insertAt.call(this,t,n,o)},t.prototype.optimize=function(t,n){var o=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var r=[].slice.call(this.observer.takeRecords());r.length>0;)t.push(r.pop());for(var a=function(e,t){void 0===t&&(t=!0),null!=e&&e!==o&&null!=e.domNode.parentNode&&(null==e.domNode[l.DATA_KEY].mutations&&(e.domNode[l.DATA_KEY].mutations=[]),t&&a(e.parent))},u=function(e){null==e.domNode[l.DATA_KEY]||null==e.domNode[l.DATA_KEY].mutations||(e instanceof i.default&&e.children.forEach(u),e.optimize(n))},c=t,d=0;c.length>0;d+=1){if(d>=s)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach((function(e){var t=l.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(a(l.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=l.find(e,!1);a(t,!1),t instanceof i.default&&t.children.forEach((function(e){a(e,!1)}))}))):"attributes"===e.type&&a(t.prev)),a(t))})),this.children.forEach(u),r=(c=[].slice.call(this.observer.takeRecords())).slice();r.length>0;)t.push(r.pop())}},t.prototype.update=function(t,n){var o=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=l.find(e.target,!0);return null==t?null:null==t.domNode[l.DATA_KEY].mutations?(t.domNode[l.DATA_KEY].mutations=[e],t):(t.domNode[l.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null==e||e===o||null==e.domNode[l.DATA_KEY]||e.update(e.domNode[l.DATA_KEY].mutations||[],n)})),null!=this.domNode[l.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[l.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=l.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=u},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),l=n(1);function a(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,o){var r=this;n!==this.statics.blotName||o?e.prototype.format.call(this,n,o):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),r.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,o,r){null!=this.formats()[o]||l.query(o,l.Scope.ATTRIBUTE)?this.isolate(t,n).format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var o=this.formats();if(0===Object.keys(o).length)return this.unwrap();var r=this.next;r instanceof t&&r.prev===this&&a(o,r.formats())&&(r.moveChildren(this),r.remove())},t.blotName="inline",t.scope=l.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=s},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),l=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){var o=l.query(t.blotName).tagName;if(n.tagName!==o)return e.formats.call(this,n)},t.prototype.format=function(n,o){null!=l.query(n,l.Scope.BLOCK)&&(n!==this.statics.blotName||o?e.prototype.format.call(this,n,o):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,o,r){null!=l.query(o,l.Scope.BLOCK)?this.format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.insertAt=function(t,n,o){if(null==o||null!=l.query(n,l.Scope.INLINE))e.prototype.insertAt.call(this,t,n,o);else{var r=this.split(t),i=l.create(n,o);r.parent.insertBefore(i,r)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=l.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=a},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,o,r){0===t&&n===this.length()?this.format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=i},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),l=n(1),a=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return r(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,o){null==o?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,o)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=l.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=l.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){var o=document.createElement("div");if(o.classList.toggle("test-class",!1),o.classList.contains("test-class")){var r=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:r.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var o=n.indexOf(e,t);return-1!==o&&o===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),o=n.length>>>0,r=arguments[1],i=0;i<o;i++)if(t=n[i],e.call(r,t,i,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1,o=1,r=0;function i(e,t,n){if(e==t)return e?[[r,e]]:[];(n<0||e.length<n)&&(n=null);var o=u(e,t),i=e.substring(0,o);o=c(e=e.substring(o),t=t.substring(o));var a=e.substring(e.length-o),s=l(e=e.substring(0,e.length-o),t=t.substring(0,t.length-o));return i&&s.unshift([r,i]),a&&s.push([r,a]),p(s),null!=n&&(s=m(s,n)),s=g(s)}function l(e,t){var l;if(!e)return[[o,t]];if(!t)return[[n,e]];var s=e.length>t.length?e:t,u=e.length>t.length?t:e,c=s.indexOf(u);if(-1!=c)return l=[[o,s.substring(0,c)],[r,u],[o,s.substring(c+u.length)]],e.length>t.length&&(l[0][0]=l[2][0]=n),l;if(1==u.length)return[[n,e],[o,t]];var p=d(e,t);if(p){var f=p[0],h=p[1],m=p[2],g=p[3],b=p[4],v=i(f,m),y=i(h,g);return v.concat([[r,b]],y)}return a(e,t)}function a(e,t){for(var r=e.length,i=t.length,l=Math.ceil((r+i)/2),a=l,u=2*l,c=new Array(u),d=new Array(u),p=0;p<u;p++)c[p]=-1,d[p]=-1;c[a+1]=0,d[a+1]=0;for(var f=r-i,h=f%2!=0,m=0,g=0,b=0,v=0,y=0;y<l;y++){for(var w=-y+m;w<=y-g;w+=2){for(var x=a+w,C=(R=w==-y||w!=y&&c[x-1]<c[x+1]?c[x+1]:c[x-1]+1)-w;R<r&&C<i&&e.charAt(R)==t.charAt(C);)R++,C++;if(c[x]=R,R>r)g+=2;else if(C>i)m+=2;else if(h&&(S=a+f-w)>=0&&S<u&&-1!=d[S]&&R>=(k=r-d[S]))return s(e,t,R,C)}for(var O=-y+b;O<=y-v;O+=2){for(var k,S=a+O,E=(k=O==-y||O!=y&&d[S-1]<d[S+1]?d[S+1]:d[S-1]+1)-O;k<r&&E<i&&e.charAt(r-k-1)==t.charAt(i-E-1);)k++,E++;if(d[S]=k,k>r)v+=2;else if(E>i)b+=2;else if(!h){var R;if((x=a+f-O)>=0&&x<u&&-1!=c[x]&&(C=a+(R=c[x])-x,R>=(k=r-k)))return s(e,t,R,C)}}}return[[n,e],[o,t]]}function s(e,t,n,o){var r=e.substring(0,n),l=t.substring(0,o),a=e.substring(n),s=t.substring(o),u=i(r,l),c=i(a,s);return u.concat(c)}function u(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,o=Math.min(e.length,t.length),r=o,i=0;n<r;)e.substring(i,r)==t.substring(i,r)?i=n=r:o=r,r=Math.floor((o-n)/2+n);return r}function c(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,o=Math.min(e.length,t.length),r=o,i=0;n<r;)e.substring(e.length-r,e.length-i)==t.substring(t.length-r,t.length-i)?i=n=r:o=r,r=Math.floor((o-n)/2+n);return r}function d(e,t){var n=e.length>t.length?e:t,o=e.length>t.length?t:e;if(n.length<4||2*o.length<n.length)return null;function r(e,t,n){for(var o,r,i,l,a=e.substring(n,n+Math.floor(e.length/4)),s=-1,d="";-1!=(s=t.indexOf(a,s+1));){var p=u(e.substring(n),t.substring(s)),f=c(e.substring(0,n),t.substring(0,s));d.length<f+p&&(d=t.substring(s-f,s)+t.substring(s,s+p),o=e.substring(0,n-f),r=e.substring(n+p),i=t.substring(0,s-f),l=t.substring(s+p))}return 2*d.length>=e.length?[o,r,i,l,d]:null}var i,l,a,s,d,p=r(n,o,Math.ceil(n.length/4)),f=r(n,o,Math.ceil(n.length/2));return p||f?(i=f?p&&p[4].length>f[4].length?p:f:p,e.length>t.length?(l=i[0],a=i[1],s=i[2],d=i[3]):(s=i[0],d=i[1],l=i[2],a=i[3]),[l,a,s,d,i[4]]):null}function p(e){e.push([r,""]);for(var t,i=0,l=0,a=0,s="",d="";i<e.length;)switch(e[i][0]){case o:a++,d+=e[i][1],i++;break;case n:l++,s+=e[i][1],i++;break;case r:l+a>1?(0!==l&&0!==a&&(0!==(t=u(d,s))&&(i-l-a>0&&e[i-l-a-1][0]==r?e[i-l-a-1][1]+=d.substring(0,t):(e.splice(0,0,[r,d.substring(0,t)]),i++),d=d.substring(t),s=s.substring(t)),0!==(t=c(d,s))&&(e[i][1]=d.substring(d.length-t)+e[i][1],d=d.substring(0,d.length-t),s=s.substring(0,s.length-t))),0===l?e.splice(i-a,l+a,[o,d]):0===a?e.splice(i-l,l+a,[n,s]):e.splice(i-l-a,l+a,[n,s],[o,d]),i=i-l-a+(l?1:0)+(a?1:0)+1):0!==i&&e[i-1][0]==r?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,a=0,l=0,s="",d=""}""===e[e.length-1][1]&&e.pop();var f=!1;for(i=1;i<e.length-1;)e[i-1][0]==r&&e[i+1][0]==r&&(e[i][1].substring(e[i][1].length-e[i-1][1].length)==e[i-1][1]?(e[i][1]=e[i-1][1]+e[i][1].substring(0,e[i][1].length-e[i-1][1].length),e[i+1][1]=e[i-1][1]+e[i+1][1],e.splice(i-1,1),f=!0):e[i][1].substring(0,e[i+1][1].length)==e[i+1][1]&&(e[i-1][1]+=e[i+1][1],e[i][1]=e[i][1].substring(e[i+1][1].length)+e[i+1][1],e.splice(i+1,1),f=!0)),i++;f&&p(e)}var f=i;function h(e,t){if(0===t)return[r,e];for(var o=0,i=0;i<e.length;i++){var l=e[i];if(l[0]===n||l[0]===r){var a=o+l[1].length;if(t===a)return[i+1,e];if(t<a){e=e.slice();var s=t-o,u=[l[0],l[1].slice(0,s)],c=[l[0],l[1].slice(s)];return e.splice(i,1,u,c),[i+1,e]}o=a}}throw new Error("cursor_pos is out of bounds!")}function m(e,t){var n=h(e,t),o=n[1],i=n[0],l=o[i],a=o[i+1];if(null==l)return e;if(l[0]!==r)return e;if(null!=a&&l[1]+a[1]===a[1]+l[1])return o.splice(i,2,a,l),b(o,i,2);if(null!=a&&0===a[1].indexOf(l[1])){o.splice(i,2,[a[0],l[1]],[0,l[1]]);var s=a[1].slice(l[1].length);return s.length>0&&o.splice(i+2,0,[a[0],s]),b(o,i,3)}return e}function g(e){for(var t=!1,i=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},l=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},a=2;a<e.length;a+=1)e[a-2][0]===r&&l(e[a-2][1])&&e[a-1][0]===n&&i(e[a-1][1])&&e[a][0]===o&&i(e[a][1])&&(t=!0,e[a-1][1]=e[a-2][1].slice(-1)+e[a-1][1],e[a][1]=e[a-2][1].slice(-1)+e[a][1],e[a-2][1]=e[a-2][1].slice(0,-1));if(!t)return e;var s=[];for(a=0;a<e.length;a+=1)e[a][1].length>0&&s.push(e[a]);return s}function b(e,t,n){for(var o=t+n-1;o>=0&&o>=t-1;o--)if(o+1<e.length){var r=e[o],i=e[o+1];r[0]===i[1]&&e.splice(o,2,[r[0],r[1]+i[1]])}return e}f.INSERT=o,f.DELETE=n,f.EQUAL=r,e.exports=f},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function o(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?o:r).supported=o,t.unsupported=r},function(e,t){var n=Object.prototype.hasOwnProperty,o="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function l(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(o=!1)),l.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},l.prototype.listeners=function(e,t){var n=o?o+e:e,r=this._events[n];if(t)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var i=0,l=r.length,a=new Array(l);i<l;i++)a[i]=r[i].fn;return a},l.prototype.emit=function(e,t,n,r,i,l){var a=o?o+e:e;if(!this._events[a])return!1;var s,u,c=this._events[a],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,r),!0;case 5:return c.fn.call(c.context,t,n,r,i),!0;case 6:return c.fn.call(c.context,t,n,r,i,l),!0}for(u=1,s=new Array(d-1);u<d;u++)s[u-1]=arguments[u];c.fn.apply(c.context,s)}else{var p,f=c.length;for(u=0;u<f;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,r);break;default:if(!s)for(p=1,s=new Array(d-1);p<d;p++)s[p-1]=arguments[p];c[u].fn.apply(c[u].context,s)}}return!0},l.prototype.on=function(e,t,n){var r=new i(t,n||this),l=o?o+e:e;return this._events[l]?this._events[l].fn?this._events[l]=[this._events[l],r]:this._events[l].push(r):(this._events[l]=r,this._eventsCount++),this},l.prototype.once=function(e,t,n){var r=new i(t,n||this,!0),l=o?o+e:e;return this._events[l]?this._events[l].fn?this._events[l]=[this._events[l],r]:this._events[l].push(r):(this._events[l]=r,this._eventsCount++),this},l.prototype.removeListener=function(e,t,n,i){var l=o?o+e:e;if(!this._events[l])return this;if(!t)return 0==--this._eventsCount?this._events=new r:delete this._events[l],this;var a=this._events[l];if(a.fn)a.fn===t&&(!i||a.once)&&(!n||a.context===n)&&(0==--this._eventsCount?this._events=new r:delete this._events[l]);else{for(var s=0,u=[],c=a.length;s<c;s++)(a[s].fn!==t||i&&!a[s].once||n&&a[s].context!==n)&&u.push(a[s]);u.length?this._events[l]=1===u.length?u[0]:u:0==--this._eventsCount?this._events=new r:delete this._events[l]}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=o?o+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new r:delete this._events[t])):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prototype.setMaxListeners=function(){return this},l.prefixed=o,l.EventEmitter=l,typeof e<"u"&&(e.exports=l)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var o="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},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=y(n(3)),a=y(n(2)),s=y(n(0)),u=y(n(5)),c=y(n(10)),d=y(n(9)),p=n(36),f=n(37),h=y(n(13)),m=n(26),g=n(38),b=n(39),v=n(40);function y(e){return e&&e.__esModule?e:{default:e}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function O(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var k=(0,c.default)("quill:clipboard"),S="__ql-matcher",E=[[Node.TEXT_NODE,B],[Node.TEXT_NODE,z],["br",L],[Node.ELEMENT_NODE,z],[Node.ELEMENT_NODE,A],[Node.ELEMENT_NODE,q],[Node.ELEMENT_NODE,F],[Node.ELEMENT_NODE,H],["li",$],["b",D.bind(D,"bold")],["i",D.bind(D,"italic")],["style",V]],R=[p.AlignAttribute,g.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),T=[p.AlignStyle,f.BackgroundStyle,m.ColorStyle,g.DirectionStyle,b.FontStyle,v.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),N=function(e){function t(e,n){x(this,t);var o=C(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.root.addEventListener("paste",o.onPaste.bind(o)),o.container=o.quill.addContainer("ql-clipboard"),o.container.setAttribute("contenteditable",!0),o.container.setAttribute("tabindex",-1),o.matchers=[],E.concat(o.options.matchers).forEach((function(e){var t=r(e,2),i=t[0],l=t[1];!n.matchVisual&&l===q||o.addMatcher(i,l)})),o}return O(t,e),i(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new a.default).insert(n,w({},h.default.blotName,t[h.default.blotName]))}var o=this.prepareMatching(),i=r(o,2),l=i[0],s=i[1],u=I(this.container,l,s);return j(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new a.default).retain(u.length()-1).delete(1))),k.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,u.default.sources.SILENT);else{var o=this.convert(t);this.quill.updateContents((new a.default).retain(e).concat(o),n),this.quill.setSelection(e+o.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),o=(new a.default).retain(n.index),r=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout((function(){o=o.concat(t.convert()).delete(n.length),t.quill.updateContents(o,u.default.sources.USER),t.quill.setSelection(o.length()-n.length,u.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=r,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(o){var i=r(o,2),l=i[0],a=i[1];switch(l){case Node.TEXT_NODE:n.push(a);break;case Node.ELEMENT_NODE:t.push(a);break;default:[].forEach.call(e.container.querySelectorAll(l),(function(e){e[S]=e[S]||[],e[S].push(a)}))}})),[t,n]}}]),t}(d.default);function P(e,t,n){return"object"===(typeof t>"u"?"undefined":o(t))?Object.keys(t).reduce((function(e,n){return P(e,n,t[n])}),e):e.reduce((function(e,o){return o.attributes&&o.attributes[t]?e.push(o):e.insert(o.insert,(0,l.default)({},w({},t,n),o.attributes))}),new a.default)}function M(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function j(e,t){for(var n="",o=e.ops.length-1;o>=0&&n.length<t.length;--o){var r=e.ops[o];if("string"!=typeof r.insert)break;n=r.insert+n}return n.slice(-1*t.length)===t}function _(e){if(0===e.childNodes.length)return!1;var t=M(e);return["block","list-item"].indexOf(t.display)>-1}function I(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new a.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(o,r){var i=I(r,t,n);return r.nodeType===e.ELEMENT_NODE&&(i=t.reduce((function(e,t){return t(r,e)}),i),i=(r[S]||[]).reduce((function(e,t){return t(r,e)}),i)),o.concat(i)}),new a.default):new a.default}function D(e,t,n){return P(n,e,!0)}function F(e,t){var n=s.default.Attributor.Attribute.keys(e),o=s.default.Attributor.Class.keys(e),r=s.default.Attributor.Style.keys(e),i={};return n.concat(o).concat(r).forEach((function(t){var n=s.default.query(t,s.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(e),i[n.attrName])||(null!=(n=R[t])&&(n.attrName===t||n.keyName===t)&&(i[n.attrName]=n.value(e)||void 0),null!=(n=T[t])&&(n.attrName===t||n.keyName===t)&&(n=T[t],i[n.attrName]=n.value(e)||void 0))})),Object.keys(i).length>0&&(t=P(t,i)),t}function A(e,t){var n=s.default.query(e);if(null==n)return t;if(n.prototype instanceof s.default.Embed){var o={},r=n.value(e);null!=r&&(o[n.blotName]=r,t=(new a.default).insert(o,n.formats(e)))}else"function"==typeof n.formats&&(t=P(t,n.blotName,n.formats(e)));return t}function L(e,t){return j(t,"\n")||t.insert("\n"),t}function V(){return new a.default}function $(e,t){var n=s.default.query(e);if(null==n||"list-item"!==n.blotName||!j(t,"\n"))return t;for(var o=-1,r=e.parentNode;!r.classList.contains("ql-clipboard");)"list"===(s.default.query(r)||{}).blotName&&(o+=1),r=r.parentNode;return o<=0?t:t.compose((new a.default).retain(t.length()-1).retain(1,{indent:o}))}function z(e,t){return j(t,"\n")||(_(e)||t.length()>0&&e.nextSibling&&_(e.nextSibling))&&t.insert("\n"),t}function q(e,t){if(_(e)&&null!=e.nextElementSibling&&!j(t,"\n\n")){var n=e.offsetHeight+parseFloat(M(e).marginTop)+parseFloat(M(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function H(e,t){var n={},o=e.style||{};return o.fontStyle&&"italic"===M(e).fontStyle&&(n.italic=!0),o.fontWeight&&(M(e).fontWeight.startsWith("bold")||parseInt(M(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=P(t,n)),parseFloat(o.textIndent||0)>0&&(t=(new a.default).insert("\t").concat(t)),t}function B(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!M(e.parentNode).whiteSpace.startsWith("pre")){var o=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,o.bind(o,!0)),(null==e.previousSibling&&_(e.parentNode)||null!=e.previousSibling&&_(e.previousSibling))&&(n=n.replace(/^\s+/,o.bind(o,!1))),(null==e.nextSibling&&_(e.parentNode)||null!=e.nextSibling&&_(e.nextSibling))&&(n=n.replace(/\s+$/,o.bind(o,!1)))}return t.insert(n)}N.DEFAULTS={matchers:[],matchVisual:!0},t.default=N,t.matchAttributor=F,t.matchBlot=A,t.matchNewline=z,t.matchSpacing=q,t.matchText=B},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return l(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,[{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(i(n(6)).default);u.blotName="bold",u.tagName=["STRONG","B"],t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=c(n(2)),l=c(n(0)),a=c(n(5)),s=c(n(10)),u=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=(0,s.default)("quill:toolbar"),g=function(e){function t(e,n){p(this,t);var r,i=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(i.options.container)){var l=document.createElement("div");v(l,i.options.container),e.container.parentNode.insertBefore(l,e.container),i.container=l}else"string"==typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach((function(e){i.addHandler(e,i.options.handlers[e])})),[].forEach.call(i.container.querySelectorAll("button, select"),(function(e){i.attach(e)})),i.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t){e===a.default.events.SELECTION_CHANGE&&i.update(t)})),i.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){var e=i.quill.selection.getRange(),t=o(e,1)[0];i.update(t)})),i):(r=m.error("Container required for toolbar",i.options),f(i,r))}return h(t,e),r(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice(3),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void m.warn("ignoring attaching to disabled format",n,e);if(null==l.default.query(n))return void m.warn("ignoring attaching to nonexistent format",n,e)}var r="SELECT"===e.tagName?"change":"click";e.addEventListener(r,(function(r){var s=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var u=e.options[e.selectedIndex];s=!u.hasAttribute("selected")&&(u.value||!1)}else s=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),r.preventDefault();t.quill.focus();var c=t.quill.selection.getRange(),p=o(c,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,s);else if(l.default.query(n).prototype instanceof l.default.Embed){if(!(s=prompt("Enter "+n)))return;t.quill.updateContents((new i.default).retain(p.index).delete(p.length).insert(d({},n,s)),a.default.sources.USER)}else t.quill.format(n,s,a.default.sources.USER);t.update(p)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var r=o(n,2),i=r[0],l=r[1];if("SELECT"===l.tagName){var a=void 0;if(null==e)a=null;else if(null==t[i])a=l.querySelector("option[selected]");else if(!Array.isArray(t[i])){var s=t[i];"string"==typeof s&&(s=s.replace(/\"/g,'\\"')),a=l.querySelector('option[value="'+s+'"]')}null==a?(l.value="",l.selectedIndex=-1):a.selected=!0}else if(null==e)l.classList.remove("ql-active");else if(l.hasAttribute("value")){var u=t[i]===l.getAttribute("value")||null!=t[i]&&t[i].toString()===l.getAttribute("value")||null==t[i]&&!l.getAttribute("value");l.classList.toggle("ql-active",u)}else l.classList.toggle("ql-active",null!=t[i])}))}}]),t}(u.default);function b(e,t,n){var o=document.createElement("button");o.setAttribute("type","button"),o.classList.add("ql-"+t),null!=n&&(o.value=n),e.appendChild(o)}function v(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)b(n,e);else{var t=Object.keys(e)[0],o=e[t];Array.isArray(o)?y(n,t,o):b(n,t,o)}})),e.appendChild(n)}))}function y(e,t,n){var o=document.createElement("select");o.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),o.appendChild(t)})),e.appendChild(o)}g.DEFAULTS={},g.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=l.default.query(t,l.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,a.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",a.default.sources.USER):!e&&"right"===t&&this.quill.format("align",!1,a.default.sources.USER),this.quill.format("direction",e,a.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),o=parseInt(n.indent||0);if("+1"===e||"-1"===e){var r="+1"===e?1:-1;"rtl"===n.direction&&(r*=-1),this.quill.format("indent",o+r,a.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,a.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,a.default.sources.USER):this.quill.format("list","unchecked",a.default.sources.USER):this.quill.format("list",e,a.default.sources.USER)}}},t.default=g,t.addControls=v},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(e,n){l(this,t);var o=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.label.innerHTML=n,o.container.classList.add("ql-color-picker"),[].slice.call(o.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),o}return s(t,e),o(t,[{key:"buildItem",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var o=this.label.querySelector(".ql-color-label"),i=e&&e.getAttribute("data-value")||"";o&&("line"===o.tagName?o.style.stroke=i:o.style.fill=i)}}]),t}(i(n(28)).default);t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(e,n){l(this,t);var o=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.container.classList.add("ql-icon-picker"),[].forEach.call(o.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),o.defaultItem=o.container.querySelector(".ql-selected"),o.selectItem(o.defaultItem),o}return s(t,e),o(t,[{key:"selectItem",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(i(n(28)).default);t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(t,n){var o=this;r(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"})),this.hide()}return o(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var o=this.boundsContainer.getBoundingClientRect(),r=this.root.getBoundingClientRect(),i=0;if(r.right>o.right&&(i=o.right-r.right,this.root.style.left=t+i+"px"),r.left<o.left&&(i=o.left-r.left,this.root.style.left=t+i+"px"),r.bottom>o.bottom){var l=r.bottom-r.top,a=e.bottom-e.top+l;this.root.style.top=n-a+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=f(n(3)),a=f(n(8)),s=n(43),u=f(s),c=f(n(27)),d=n(15),p=f(n(41));function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var b=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],v=function(e){function t(e,n){h(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=b);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.container.classList.add("ql-snow"),o}return g(t,e),i(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),p.default),this.tooltip=new y(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)}))}}]),t}(u.default);v.DEFAULTS=(0,l.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var y=function(e){function t(e,n){h(this,t);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.preview=o.root.querySelector("a.ql-preview"),o}return g(t,e),i(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,a.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(a.default.events.SELECTION_CHANGE,(function(t,n,r){if(null!=t){if(0===t.length&&r===a.default.sources.USER){var i=e.quill.scroll.descendant(c.default,t.index),l=o(i,2),s=l[0],u=l[1];if(null!=s){e.linkRange=new d.Range(t.index-u,s.length());var p=c.default.formats(s.domNode);return e.preview.textContent=p,e.preview.setAttribute("href",p),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(s.BaseTooltip);y.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=v},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=D(n(29)),r=n(36),i=n(38),l=n(64),a=D(n(65)),s=D(n(66)),u=n(67),c=D(u),d=n(37),p=n(26),f=n(39),h=n(40),m=D(n(56)),g=D(n(68)),b=D(n(27)),v=D(n(69)),y=D(n(70)),w=D(n(71)),x=D(n(72)),C=D(n(73)),O=n(13),k=D(O),S=D(n(74)),E=D(n(75)),R=D(n(57)),T=D(n(41)),N=D(n(28)),P=D(n(59)),M=D(n(60)),j=D(n(61)),_=D(n(108)),I=D(n(62));function D(e){return e&&e.__esModule?e:{default:e}}o.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":r.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":p.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":f.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":r.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":p.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":f.FontStyle,"attributors/style/size":h.SizeStyle},!0),o.default.register({"formats/align":r.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":l.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":p.ColorStyle,"formats/font":f.FontClass,"formats/size":h.SizeClass,"formats/blockquote":a.default,"formats/code-block":k.default,"formats/header":s.default,"formats/list":c.default,"formats/bold":m.default,"formats/code":O.Code,"formats/italic":g.default,"formats/link":b.default,"formats/script":v.default,"formats/strike":y.default,"formats/underline":w.default,"formats/image":x.default,"formats/video":C.default,"formats/list/item":u.ListItem,"modules/formula":S.default,"modules/syntax":E.default,"modules/toolbar":R.default,"themes/bubble":_.default,"themes/snow":I.default,"ui/icons":T.default,"ui/picker":N.default,"ui/icon-picker":M.default,"ui/color-picker":P.default,"ui/tooltip":j.default},!0),t.default=o.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),o(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var o=this.value(e)||0;n="+1"===n?o+1:o-1}return 0===n?(this.remove(e),!0):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(i.default.Attributor.Class),d=new c("indent","ql-indent",{scope:i.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=d},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(o(n(4)).default);a.blotName="blockquote",a.tagName="blockquote",t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(e){function t(){return i(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),o(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(r(n(4)).default);s.blotName="header",s.tagName=["H1","H2","H3","H4","H5","H6"],t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=s(n(0)),l=s(n(4)),a=s(n(25));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return c(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),o(t,[{key:"format",value:function(e,n){e!==h.blotName||n?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(i.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:r(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(l.default);f.blotName="list-item",f.tagName="LI";var h=function(e){function t(e){c(this,t);var n=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),o=function(t){if(t.target.parentNode===e){var o=n.statics.formats(e),r=i.default.find(t.target);"checked"===o?r.format("list","unchecked"):"unchecked"===o&&r.format("list","checked")}};return e.addEventListener("touchstart",o),e.addEventListener("mousedown",o),n}return p(t,e),o(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",o=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return("checked"===e||"unchecked"===e)&&o.setAttribute("data-checked","checked"===e),o}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),o(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return u({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(e,n){if(e instanceof f)r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var o=null==n?this.length():n.offset(this),i=this.split(o);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=i.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(a.default);h.blotName="list",h.scope=i.default.Scope.BLOCK_BLOT,h.tagName=["OL","UL"],h.defaultChild="list-item",h.allowedChildren=[f],t.ListItem=f,t.default=h},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(o(n(56)).default);a.blotName="italic",a.tagName=["EM","I"],t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return l(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(i(n(6)).default);u.blotName="script",u.tagName=["SUB","SUP"],t.default=u},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(o(n(6)).default);a.blotName="strike",a.tagName="S",t.default=a},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(o(n(6)).default);a.blotName="underline",a.tagName="U",t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=a(n(0)),l=n(27);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=["alt","height","width"],p=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),o(t,[{key:"format",value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,l.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(i.default.Embed);p.blotName="image",p.tagName="IMG",t.default=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=n(4),l=a(n(27));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=["height","width"],p=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),o(t,[{key:"format",value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return l.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(i.BlockEmbed);p.blotName="video",p.className="ql-video",p.tagName="IFRAME",t.default=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=s(n(35)),l=s(n(5)),a=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),o(t,null,[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(i.default);p.blotName="formula",p.className="ql-formula",p.tagName="SPAN";var f=function(e){function t(){u(this,t);var e=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return d(t,e),o(t,null,[{key:"register",value:function(){l.default.register(p,!0)}}]),t}(a.default);t.FormulaBlot=p,t.default=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=s(n(0)),l=s(n(5)),a=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),o(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(s(n(13)).default);p.className="ql-syntax";var f=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),h=function(e){function t(e,n){u(this,t);var o=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof o.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var r=null;return o.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(r),r=setTimeout((function(){o.highlight(),r=null}),o.options.interval)})),o.highlight(),o}return d(t,e),o(t,null,[{key:"register",value:function(){l.default.register(f,!0),l.default.register(p,!0)}}]),o(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(l.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(p).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(l.default.sources.SILENT),null!=t&&this.quill.setSelection(t,l.default.sources.SILENT)}}}]),t}(a.default);h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=p,t.CodeToken=f,t.default=h},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var o=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=d(n(3)),l=d(n(8)),a=n(43),s=d(a),u=n(15),c=d(n(41));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],g=function(e){function t(e,n){p(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=m);var o=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.container.classList.add("ql-bubble"),o}return h(t,e),r(t,[{key:"extendToolbar",value:function(e){this.tooltip=new b(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),c.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),c.default)}}]),t}(s.default);g.DEFAULTS=(0,i.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var b=function(e){function t(e,n){p(this,t);var o=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.on(l.default.events.EDITOR_CHANGE,(function(e,t,n,r){if(e===l.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&r===l.default.sources.USER){o.show(),o.root.style.left="0px",o.root.style.width="",o.root.style.width=o.root.offsetWidth+"px";var i=o.quill.getLines(t.index,t.length);if(1===i.length)o.position(o.quill.getBounds(t));else{var a=i[i.length-1],s=o.quill.getIndex(a),c=Math.min(a.length()-1,t.index+t.length-s),d=o.quill.getBounds(new u.Range(s,c));o.position(d)}}else document.activeElement!==o.textbox&&o.quill.hasFocus()&&o.hide()})),o}return h(t,e),r(t,[{key:"listen",value:function(){var e=this;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),t}(a.BaseTooltip);b.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=b,t.default=g},function(e,t,n){e.exports=n(63)}]).default,fI=ke&&ke.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),hI=ke&&ke.__assign||function(){return hI=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},hI.apply(this,arguments)},mI=ke&&ke.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],l=0,a=i.length;l<a;l++,r++)o[r]=i[l];return o},gI=ke&&ke.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},bI=gI(t),vI=gI(ue),yI=gI(cI),wI=gI(pI),xI=function(e){function t(t){var n=e.call(this,t)||this;n.dirtyProps=["modules","formats","bounds","theme","children"],n.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],n.state={generation:0},n.selection=null,n.onEditorChange=function(e,t,o,r){var i,l,a,s;"text-change"===e?null===(l=(i=n).onEditorChangeText)||void 0===l||l.call(i,n.editor.root.innerHTML,t,r,n.unprivilegedEditor):"selection-change"===e&&(null===(s=(a=n).onEditorChangeSelection)||void 0===s||s.call(a,t,r,n.unprivilegedEditor))};var o=n.isControlled()?t.value:t.defaultValue;return n.value=o??"",n}return fI(t,e),t.prototype.validateProps=function(e){var t;if(bI.default.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(bI.default.Children.count(e.children)&&"textarea"===(null===(t=bI.default.Children.only(e.children))||void 0===t?void 0:t.type))throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.");if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},t.prototype.shouldComponentUpdate=function(e,t){var n=this;if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){var o=this.getEditorContents(),r=e.value??"";this.isEqualValue(r,o)||this.setEditorContents(this.editor,r)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),mI(this.cleanProps,this.dirtyProps).some((function(t){return!yI.default(e[t],n.props[t])}))},t.prototype.shouldComponentRegenerate=function(e){var t=this;return this.dirtyProps.some((function(n){return!yI.default(e[n],t.props[n])}))},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(e,t){var n=this;if(this.editor&&this.shouldComponentRegenerate(e)){var o=this.editor.getContents(),r=this.editor.getSelection();this.regenerationSnapshot={delta:o,selection:r},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){var i=this.regenerationSnapshot,l=(o=i.delta,i.selection);delete this.regenerationSnapshot,this.instantiateEditor();var a=this.editor;a.setContents(o),CI((function(){return n.setEditorSelection(a,l)}))}},t.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},t.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(e,t){var n=new wI.default(e,t);return null!=t.tabIndex&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n},t.prototype.hookEditor=function(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(e){e.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(e){return e&&e.ops},t.prototype.isEqualValue=function(e,t){return this.isDelta(e)&&this.isDelta(t)?yI.default(e.ops,t.ops):yI.default(e,t)},t.prototype.setEditorContents=function(e,t){var n=this;this.value=t;var o=this.getEditorSelection();"string"==typeof t?e.setContents(e.clipboard.convert(t)):e.setContents(t),CI((function(){return n.setEditorSelection(e,o)}))},t.prototype.setEditorSelection=function(e,t){if(this.selection=t,t){var n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}},t.prototype.setEditorTabIndex=function(e,t){var n,o;null!==(o=null===(n=e)||void 0===n?void 0:n.scroll)&&void 0!==o&&o.domNode&&(e.scroll.domNode.tabIndex=t)},t.prototype.setEditorReadOnly=function(e,t){t?e.disable():e.enable()},t.prototype.makeUnprivilegedEditor=function(e){var t=e;return{getHTML:function(){return t.root.innerHTML},getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var e=vI.default.findDOMNode(this.editingArea);if(!e)throw new Error("Cannot find element for editing area");if(3===e.nodeType)throw new Error("Editing area cannot be a text node");return e},t.prototype.renderEditingArea=function(){var e=this,t=this.props,n=t.children,o=t.preserveWhitespace,r={key:this.state.generation,ref:function(t){e.editingArea=t}};return bI.default.Children.count(n)?bI.default.cloneElement(bI.default.Children.only(n),r):o?bI.default.createElement("pre",hI({},r)):bI.default.createElement("div",hI({},r))},t.prototype.render=function(){var e;return bI.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(e=this.props.className,e??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(e,t,n,o){var r,i;if(this.editor){var l=this.isDelta(this.value)?o.getContents():o.getHTML();l!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=l,null===(i=(r=this.props).onChange)||void 0===i||i.call(r,e,t,n,o))}},t.prototype.onEditorChangeSelection=function(e,t,n){var o,r,i,l,a,s;if(this.editor){var u=this.getEditorSelection(),c=!u&&e,d=u&&!e;yI.default(e,u)||(this.selection=e,null===(r=(o=this.props).onChangeSelection)||void 0===r||r.call(o,e,t,n),c?null===(l=(i=this.props).onFocus)||void 0===l||l.call(i,e,t,n):d&&(null===(s=(a=this.props).onBlur)||void 0===s||s.call(a,u,t,n)))}},t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=wI.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(bI.default.Component);function CI(e){Promise.resolve().then(e)}const OI=Se(xI),kI="_viewMode_dgzrp_1",SI="_editMode_dgzrp_2",EI="_text-label_dgzrp_24",RI="_error-message_dgzrp_28",TI={toolbar:[[{font:[]}],[{size:[]}],["bold","italic","underline","strike","blockquote"],[{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}]]},NI=["size","font","bold","italic","underline","strike","blockquote","list","bullet","indent"],PI=({dataTest:e,...t})=>Me.jsxs(Me.Fragment,{children:[t.label&&Me.jsx("span",{className:vo(EI),"data-test":`label-${e}`,children:t.label}),t.disabled?Me.jsx(OI,{...t,className:vo(kI,t.className),readOnly:!0,modules:{toolbar:!1},"data-test":e}):Me.jsx(OI,{...t,className:vo(SI,t.className),modules:{...TI,...t.modules},formats:{...NI,...t.formats},"data-test":e}),(t.is_error?"error":t.is_warning?"warning":!!t.isRequired||null)&&Me.jsx("span",{className:RI,"data-test":`error-${e}`,children:t.error?t.error:"error"})]}),MI=({dataTest:e,allowClear:t,...n})=>Me.jsx(_,{...n,"data-test":e,value:n.value,IconComponent:e=>Me.jsx(tl,{...e,icon:"material-symbols:expand-more-rounded",width:24,height:24,className:vo(e.className,"select-custom-icon")}),endAdornment:t&&n.value?Me.jsx("div",{className:"hover:bg-gama-100 duration-300 absolute right-8 p-[2px] rounded-full flex items-center justify-center",onClick:()=>{var e;null==(e=n.onChange)||e.call(n,{target:{value:""}},null)},children:Me.jsx(Bl,{width:18,height:18})}):null,sx:{...n.sx,".MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-delta-500) !important"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-gama-500) !important"},"&.Mui-focused::after":{borderColor:"var(--colors-gama-500) !important"},"& .select-custom-icon":{marginTop:"-3.5px !important"}}}),jI=e=>Me.jsx(I,{...e,sx:{"&.MuiMenuItem-root":{fontSize:"14px !important"},"&.Mui-selected":{backgroundColor:"var(--colors-gama-50) !important"}},children:e.children});function _I({dataTest:e,...t}){return Me.jsx(D,{...t,className:vo("!text-sm",t.className),popupIcon:t.popupIcon||Me.jsx(tl,{icon:"material-symbols:expand-more-rounded",width:24,height:24,className:vo("select-custom-icon")}),"data-test":e,PaperComponent:({children:t})=>Me.jsx(F,{"data-test":`paper-${e}`,sx:{"& ul":{padding:"0 !important"},"& .MuiAutocomplete-option.Mui-focused":{background:"var(--colors-delta-50) !important"},"& li[aria-selected=true]":{background:"var(--colors-gama-50) !important"},"& li[aria-selected=true].MuiAutocomplete-option.Mui-focused":{background:"var(--colors-gama-50) !important"}},children:t}),sx:{...t.sx,"& .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-gama-500) !important"},"& .select-custom-icon":{marginTop:"-0.5px !important"},"& .MuiInputBase-inputSizeSmall":{minHeight:"23px !important"}}})}const II=({dataTest:e,...t})=>{var n,o,r;return Me.jsx(A,{...t,"data-test":e,classes:{...t.classes},slotProps:{...t.slotProps,thumb:{className:vo("w-4 h-4","before:shadow-none","vertical"===t.orientation?"ml-0 mb-1":"ml-1",t.disabled||!t.value?"bg-delta-200":"bg-gama-600"),...null==(n=t.slotProps)?void 0:n.thumb},rail:{className:"bg-delta-200",...null==(o=t.slotProps)?void 0:o.rail},markLabel:{className:vo("text-delta-600 text-sm font-semibold ml-1","vertical"===t.orientation&&"mb-1"),...null==(r=t.slotProps)?void 0:r.markLabel}},sx:{...t.sx,"& .MuiSlider-track":{backgroundColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)",borderColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)"},"& .MuiSlider-mark":{backgroundColor:"white",border:"1px solid var(--colors-gray-200)",borderRadius:"50%",height:"8px",width:"8px","&.MuiSlider-markActive":{backgroundColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)",border:"1px solid",borderColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)",opacity:1}}}})},DI=({dataTest:e,...t})=>Me.jsx(L,{...t,"data-test":e,sx:{"& .MuiButtonBase-root.Mui-checked":{color:"var(--colors-gama-500) !important"},"& .Mui-disabled .MuiSwitch-thumb":{backgroundColor:"var(--colors-gama-200) !important"},"& .MuiSwitch-thumb":{backgroundColor:"var(--colors-gama-500) !important"},"& .MuiSwitch-input:not(:checked) ~ .MuiSwitch-thumb":{backgroundColor:"var(--colors-gray-10) !important"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"var(--colors-gama-200) !important"},"& .PrivateSwitchBase-input.MuiSwitch-input":{height:"100% !important"}}}),FI=({dataTest:e,...t})=>Me.jsx(V,{...t,"data-test":e,sx:{"&":{color:"var(--colors-gray-200)"},"&.Mui-checked":{color:"var(--colors-gama-500)"}}}),AI=({dataTest:e,...t})=>Me.jsx($,{"data-test":e,...t});function LI(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function VI(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function $I(e){VI(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===UO(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function zI(e,t){VI(2,arguments);var n=$I(e),o=LI(t);return isNaN(o)?new Date(NaN):(o&&n.setDate(n.getDate()+o),n)}function qI(e,t){VI(2,arguments);var n=$I(e),o=LI(t);if(isNaN(o))return new Date(NaN);if(!o)return n;var r=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+o+1,0),r>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}var HI={};function BI(){return HI}function UI(e,t){var n,o,r,i,l,a,s,u;VI(1,arguments);var c=BI(),d=LI(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(l=t.locale)||void 0===l||null===(a=l.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:c.weekStartsOn)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=$I(e),f=p.getDay(),h=(f<d?7:0)+f-d;return p.setDate(p.getDate()-h),p.setHours(0,0,0,0),p}function WI(e){return VI(1,arguments),UI(e,{weekStartsOn:1})}function GI(e){VI(1,arguments);var t=function(e){VI(1,arguments);var t=$I(e),n=t.getFullYear(),o=new Date(0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);var r=WI(o),i=new Date(0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);var l=WI(i);return t.getTime()>=r.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),WI(n)}function KI(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function YI(e){VI(1,arguments);var t=$I(e);return t.setHours(0,0,0,0),t}var ZI=864e5;function XI(e,t){VI(2,arguments);var n=YI(e),o=YI(t),r=n.getTime()-KI(n),i=o.getTime()-KI(o);return Math.round((r-i)/ZI)}function QI(e,t){return VI(2,arguments),zI(e,7*LI(t))}function JI(e,t){return VI(2,arguments),qI(e,12*LI(t))}function eD(e,t){VI(2,arguments);var n=YI(e),o=YI(t);return n.getTime()===o.getTime()}function tD(e){return VI(1,arguments),e instanceof Date||"object"===UO(e)&&"[object Date]"===Object.prototype.toString.call(e)}function nD(e,t){VI(2,arguments);var n=$I(e),o=$I(t);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}var oD=6048e5;function rD(e){VI(1,arguments);var t=$I(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function iD(e){VI(1,arguments);var t=$I(e);return t.setDate(1),t.setHours(0,0,0,0),t}function lD(e){VI(1,arguments);var t=$I(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function aD(e,t){var n,o,r,i,l,a,s,u;VI(1,arguments);var c=BI(),d=LI(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(l=t.locale)||void 0===l||null===(a=l.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:c.weekStartsOn)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=$I(e),f=p.getDay(),h=6+(f<d?-7:0)-(f-d);return p.setDate(p.getDate()+h),p.setHours(23,59,59,999),p}function sD(e){return VI(1,arguments),aD(e,{weekStartsOn:1})}function uD(e,t){return VI(2,arguments),function(e,t){VI(2,arguments);var n=$I(e).getTime(),o=LI(t);return new Date(n+o)}(e,-LI(t))}function cD(e){VI(1,arguments);var t=$I(e),n=t.getUTCDay(),o=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}function dD(e){VI(1,arguments);var t=$I(e),n=t.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var r=cD(o),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var l=cD(i);return t.getTime()>=r.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}function pD(e){VI(1,arguments);var t=$I(e),n=cD(t).getTime()-function(e){VI(1,arguments);var t=dD(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),cD(n)}(t).getTime();return Math.round(n/6048e5)+1}function fD(e,t){var n,o,r,i,l,a,s,u;VI(1,arguments);var c=BI(),d=LI(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(l=t.locale)||void 0===l||null===(a=l.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:c.weekStartsOn)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=$I(e),f=p.getUTCDay(),h=(f<d?7:0)+f-d;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function hD(e,t){var n,o,r,i,l,a,s,u;VI(1,arguments);var c=$I(e),d=c.getUTCFullYear(),p=BI(),f=LI(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(l=t.locale)||void 0===l||null===(a=l.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:p.firstWeekContainsDate)&&void 0!==o?o:null===(s=p.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(d+1,0,f),h.setUTCHours(0,0,0,0);var m=fD(h,t),g=new Date(0);g.setUTCFullYear(d,0,f),g.setUTCHours(0,0,0,0);var b=fD(g,t);return c.getTime()>=m.getTime()?d+1:c.getTime()>=b.getTime()?d:d-1}function mD(e,t){VI(1,arguments);var n=$I(e),o=fD(n,t).getTime()-function(e,t){var n,o,r,i,l,a,s,u;VI(1,arguments);var c=BI(),d=LI(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(l=t.locale)||void 0===l||null===(a=l.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:c.firstWeekContainsDate)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),p=hD(e,t),f=new Date(0);return f.setUTCFullYear(p,0,d),f.setUTCHours(0,0,0,0),fD(f,t)}(n,t).getTime();return Math.round(o/6048e5)+1}function gD(e,t){for(var n=e<0?"-":"",o=Math.abs(e).toString();o.length<t;)o="0"+o;return n+o}var bD={y:function(e,t){var n=e.getUTCFullYear(),o=n>0?n:1-n;return gD("yy"===t?o%100:o,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):gD(n+1,2)},d:function(e,t){return gD(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return gD(e.getUTCHours()%12||12,t.length)},H:function(e,t){return gD(e.getUTCHours(),t.length)},m:function(e,t){return gD(e.getUTCMinutes(),t.length)},s:function(e,t){return gD(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,o=e.getUTCMilliseconds();return gD(Math.floor(o*Math.pow(10,n-3)),t.length)}};const vD=bD;var yD="midnight",wD="noon",xD="morning",CD="afternoon",OD="evening",kD="night",SD={G:function(e,t,n){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});default:return n.era(o,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var o=e.getUTCFullYear(),r=o>0?o:1-o;return n.ordinalNumber(r,{unit:"year"})}return vD.y(e,t)},Y:function(e,t,n,o){var r=hD(e,o),i=r>0?r:1-r;return"YY"===t?gD(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):gD(i,t.length)},R:function(e,t){return gD(dD(e),t.length)},u:function(e,t){return gD(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return gD(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return gD(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,n){var o=e.getUTCMonth();switch(t){case"M":case"MM":return vD.M(e,t);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,n){var o=e.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return gD(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,n,o){var r=mD(e,o);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):gD(r,t.length)},I:function(e,t,n){var o=pD(e);return"Io"===t?n.ordinalNumber(o,{unit:"week"}):gD(o,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):vD.d(e,t)},D:function(e,t,n){var o=function(e){VI(1,arguments);var t=$I(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var o=n-t.getTime();return Math.floor(o/864e5)+1}(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):gD(o,t.length)},E:function(e,t,n){var o=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,n,o){var r=e.getUTCDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return gD(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,o){var r=e.getUTCDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return gD(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){var o=e.getUTCDay(),r=0===o?7:o;switch(t){case"i":return String(r);case"ii":return gD(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,n){var o=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){var o,r=e.getUTCHours();switch(o=12===r?wD:0===r?yD:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){var o,r=e.getUTCHours();switch(o=r>=17?OD:r>=12?CD:r>=4?xD:kD,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var o=e.getUTCHours()%12;return 0===o&&(o=12),n.ordinalNumber(o,{unit:"hour"})}return vD.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):vD.H(e,t)},K:function(e,t,n){var o=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(o,{unit:"hour"}):gD(o,t.length)},k:function(e,t,n){var o=e.getUTCHours();return 0===o&&(o=24),"ko"===t?n.ordinalNumber(o,{unit:"hour"}):gD(o,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):vD.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):vD.s(e,t)},S:function(e,t){return vD.S(e,t)},X:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return RD(r);case"XXXX":case"XX":return TD(r);default:return TD(r,":")}},x:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"x":return RD(r);case"xxxx":case"xx":return TD(r);default:return TD(r,":")}},O:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ED(r,":");default:return"GMT"+TD(r,":")}},z:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ED(r,":");default:return"GMT"+TD(r,":")}},t:function(e,t,n,o){var r=o._originalDate||e;return gD(Math.floor(r.getTime()/1e3),t.length)},T:function(e,t,n,o){return gD((o._originalDate||e).getTime(),t.length)}};function ED(e,t){var n=e>0?"-":"+",o=Math.abs(e),r=Math.floor(o/60),i=o%60;if(0===i)return n+String(r);var l=t||"";return n+String(r)+l+gD(i,2)}function RD(e,t){return e%60==0?(e>0?"-":"+")+gD(Math.abs(e)/60,2):TD(e,t)}function TD(e,t){var n=t||"",o=e>0?"-":"+",r=Math.abs(e);return o+gD(Math.floor(r/60),2)+n+gD(r%60,2)}const ND=SD;var PD=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},MD=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},jD={p:MD,P:function(e,t){var n,o=e.match(/(P+)(p+)?/)||[],r=o[1],i=o[2];if(!i)return PD(e,t);switch(r){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",PD(r,t)).replace("{{time}}",MD(i,t))}};const _D=jD;var ID=["D","DD"],DD=["YY","YYYY"];function FD(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var AD={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const LD=function(e,t,n){var o,r=AD[e];return o="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};function VD(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const $D={date:VD({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:VD({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:VD({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var zD={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const qD=function(e,t,n,o){return zD[e]};function HD(e){return function(t,n){var o;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):r;o=e.formattingValues[i]||e.formattingValues[r]}else{var l=e.defaultWidth,a=null!=n&&n.width?String(n.width):e.defaultWidth;o=e.values[a]||e.values[l]}return o[e.argumentCallback?e.argumentCallback(t):t]}}var BD={ordinalNumber:function(e,t){var n=Number(e),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:HD({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:HD({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:HD({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:HD({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:HD({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};const UD=BD;function WD(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.width,r=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;var l,a=i[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(s,(function(e){return e.test(a)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(s,(function(e){return e.test(a)}));return l=e.valueCallback?e.valueCallback(u):u,{value:l=n.valueCallback?n.valueCallback(l):l,rest:t.slice(a.length)}}}var GD={ordinalNumber:function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.match(e.matchPattern);if(!o)return null;var r=o[0],i=t.match(e.parsePattern);if(!i)return null;var l=e.valueCallback?e.valueCallback(i[0]):i[0];return{value:l=n.valueCallback?n.valueCallback(l):l,rest:t.slice(r.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:WD({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:WD({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:WD({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:WD({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:WD({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const KD=GD;const YD={code:"en-US",formatDistance:LD,formatLong:$D,formatRelative:qD,localize:UD,match:KD,options:{weekStartsOn:0,firstWeekContainsDate:1}};var ZD=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,XD=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,QD=/^'([^]*?)'?$/,JD=/''/g,eF=/[a-zA-Z]/;function tF(e,t,n){var o,r,i,l,a,s,u,c,d,p,f,h,m,g,b,v,y,w;VI(2,arguments);var x=String(t),C=BI(),O=null!==(o=null!==(r=null==n?void 0:n.locale)&&void 0!==r?r:C.locale)&&void 0!==o?o:YD,k=LI(null!==(i=null!==(l=null!==(a=null!==(s=null==n?void 0:n.firstWeekContainsDate)&&void 0!==s?s:null==n||null===(u=n.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==a?a:C.firstWeekContainsDate)&&void 0!==l?l:null===(d=C.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==i?i:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=LI(null!==(f=null!==(h=null!==(m=null!==(g=null==n?void 0:n.weekStartsOn)&&void 0!==g?g:null==n||null===(b=n.locale)||void 0===b||null===(v=b.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==m?m:C.weekStartsOn)&&void 0!==h?h:null===(y=C.locale)||void 0===y||null===(w=y.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==f?f:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!O.localize)throw new RangeError("locale must contain localize property");if(!O.formatLong)throw new RangeError("locale must contain formatLong property");var E=$I(e);if(!function(e){if(VI(1,arguments),!tD(e)&&"number"!=typeof e)return!1;var t=$I(e);return!isNaN(Number(t))}(E))throw new RangeError("Invalid time value");var R=uD(E,KI(E)),T={firstWeekContainsDate:k,weekStartsOn:S,locale:O,_originalDate:E},N=x.match(XD).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,_D[t])(e,O.formatLong):e})).join("").match(ZD).map((function(o){if("''"===o)return"'";var r=o[0];if("'"===r)return function(e){var t=e.match(QD);return t?t[1].replace(JD,"'"):e}(o);var i=ND[r];if(i)return!(null!=n&&n.useAdditionalWeekYearTokens)&&function(e){return-1!==DD.indexOf(e)}(o)&&FD(o,t,String(e)),!(null!=n&&n.useAdditionalDayOfYearTokens)&&function(e){return-1!==ID.indexOf(e)}(o)&&FD(o,t,String(e)),i(R,o,O.localize,T);if(r.match(eF))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return o})).join("");return N}var nF=6048e5;function oF(e){return VI(1,arguments),Math.floor(function(e){return VI(1,arguments),$I(e).getTime()}(e)/1e3)}function rF(e,t){var n,o,r,i,l,a,s,u;VI(1,arguments);var c=BI(),d=LI(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(l=t.locale)||void 0===l||null===(a=l.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:c.firstWeekContainsDate)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),p=function(e,t){var n,o,r,i,l,a,s,u;VI(1,arguments);var c=$I(e),d=c.getFullYear(),p=BI(),f=LI(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(l=t.locale)||void 0===l||null===(a=l.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:p.firstWeekContainsDate)&&void 0!==o?o:null===(s=p.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setFullYear(d+1,0,f),h.setHours(0,0,0,0);var m=UI(h,t),g=new Date(0);g.setFullYear(d,0,f),g.setHours(0,0,0,0);var b=UI(g,t);return c.getTime()>=m.getTime()?d+1:c.getTime()>=b.getTime()?d:d-1}(e,t),f=new Date(0);return f.setFullYear(p,0,d),f.setHours(0,0,0,0),UI(f,t)}var iF=6048e5;function lF(e,t){return VI(1,arguments),function(e,t,n){VI(2,arguments);var o=UI(e,n),r=UI(t,n),i=o.getTime()-KI(o),l=r.getTime()-KI(r);return Math.round((i-l)/oD)}(function(e){VI(1,arguments);var t=$I(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}(e),iD(e),t)+1}function aF(e,t){VI(2,arguments);var n=$I(e),o=$I(t);return n.getTime()>o.getTime()}function sF(e,t){VI(2,arguments);var n=$I(e),o=$I(t);return n.getTime()<o.getTime()}function uF(e,t){VI(2,arguments);var n=$I(e),o=$I(t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}function cF(e,t){return VI(2,arguments),zI(e,-LI(t))}function dF(e,t){VI(2,arguments);var n=$I(e),o=LI(t),r=n.getFullYear(),i=n.getDate(),l=new Date(0);l.setFullYear(r,o,15),l.setHours(0,0,0,0);var a=function(e){VI(1,arguments);var t=$I(e),n=t.getFullYear(),o=t.getMonth(),r=new Date(0);return r.setFullYear(n,o+1,0),r.setHours(0,0,0,0),r.getDate()}(l);return n.setMonth(o,Math.min(i,a)),n}function pF(e,t){VI(2,arguments);var n=$I(e),o=LI(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(o),n)}const fF={code:"en-GB",formatDistance:LD,formatLong:{date:VD({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:VD({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:VD({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:qD,localize:UD,match:KD,options:{weekStartsOn:1,firstWeekContainsDate:4}};var hF=function(){return hF=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},hF.apply(this,arguments)};function mF(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function gF(e){return"multiple"===e.mode}function bF(e){return"range"===e.mode}function vF(e){return"single"===e.mode}var yF={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};var wF=Object.freeze({__proto__:null,formatCaption:function(e,t){return tF(e,"LLLL y",t)},formatDay:function(e,t){return tF(e,"d",t)},formatMonthCaption:function(e,t){return tF(e,"LLLL",t)},formatWeekNumber:function(e){return"".concat(e)},formatWeekdayName:function(e,t){return tF(e,"cccccc",t)},formatYearCaption:function(e,t){return tF(e,"yyyy",t)}}),xF=Object.freeze({__proto__:null,labelDay:function(e,t,n){return tF(e,"do MMMM (EEEE)",n)},labelMonthDropdown:function(){return"Month: "},labelNext:function(){return"Go to next month"},labelPrevious:function(){return"Go to previous month"},labelWeekNumber:function(e){return"Week n. ".concat(e)},labelWeekday:function(e,t){return tF(e,"cccc",t)},labelYearDropdown:function(){return"Year: "}});var CF=g(void 0);function OF(e){var n,o,r=e.initialProps,i={captionLayout:"buttons",classNames:yF,formatters:wF,labels:xF,locale:YD,modifiersClassNames:{},modifiers:{},numberOfMonths:1,styles:{},today:new Date,mode:"default"},l=function(e){var t=e.fromYear,n=e.toYear,o=e.fromMonth,r=e.toMonth,i=e.fromDate,l=e.toDate;return o?i=iD(o):t&&(i=new Date(t,0,1)),r?l=rD(r):n&&(l=new Date(n,11,31)),{fromDate:i?YI(i):void 0,toDate:l?YI(l):void 0}}(r),a=l.fromDate,s=l.toDate,u=null!==(n=r.captionLayout)&&void 0!==n?n:i.captionLayout;"buttons"!==u&&(!a||!s)&&(u="buttons"),(vF(r)||gF(r)||bF(r))&&(o=r.onSelect);var c=hF(hF(hF({},i),r),{captionLayout:u,classNames:hF(hF({},i.classNames),r.classNames),components:hF({},r.components),formatters:hF(hF({},i.formatters),r.formatters),fromDate:a,labels:hF(hF({},i.labels),r.labels),mode:r.mode||i.mode,modifiers:hF(hF({},i.modifiers),r.modifiers),modifiersClassNames:hF(hF({},i.modifiersClassNames),r.modifiersClassNames),onSelect:o,styles:hF(hF({},i.styles),r.styles),toDate:s});return t.createElement(CF.Provider,{value:c},e.children)}function kF(){var e=d(CF);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function SF(e){var n=kF(),o=n.locale,r=n.classNames,i=n.styles,l=n.formatters.formatCaption;return t.createElement("div",{className:r.caption_label,style:i.caption_label,"aria-live":"polite",role:"presentation",id:e.id},l(e.displayMonth,{locale:o}))}function EF(e){return t.createElement("svg",hF({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e),t.createElement("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"}))}function RF(e){var n,o,r=e.onChange,i=e.value,l=e.children,a=e.caption,s=e.className,u=e.style,c=kF(),d=null!==(o=null===(n=c.components)||void 0===n?void 0:n.IconDropdown)&&void 0!==o?o:EF;return t.createElement("div",{className:s,style:u},t.createElement("span",{className:c.classNames.vhidden},e["aria-label"]),t.createElement("select",{name:e.name,"aria-label":e["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:i,onChange:r},l),t.createElement("div",{className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true"},a,t.createElement(d,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})))}function TF(e){var n,o=kF(),r=o.fromDate,i=o.toDate,l=o.styles,a=o.locale,s=o.formatters.formatMonthCaption,u=o.classNames,c=o.components,d=o.labels.labelMonthDropdown;if(!r)return t.createElement(t.Fragment,null);if(!i)return t.createElement(t.Fragment,null);var p=[];if(function(e,t){VI(2,arguments);var n=$I(e),o=$I(t);return n.getFullYear()===o.getFullYear()}(r,i))for(var f=iD(r),h=r.getMonth();h<=i.getMonth();h++)p.push(dF(f,h));else for(f=iD(new Date),h=0;h<=11;h++)p.push(dF(f,h));var m=null!==(n=null==c?void 0:c.Dropdown)&&void 0!==n?n:RF;return t.createElement(m,{name:"months","aria-label":d(),className:u.dropdown_month,style:l.dropdown_month,onChange:function(t){var n=Number(t.target.value),o=dF(iD(e.displayMonth),n);e.onChange(o)},value:e.displayMonth.getMonth(),caption:s(e.displayMonth,{locale:a})},p.map((function(e){return t.createElement("option",{key:e.getMonth(),value:e.getMonth()},s(e,{locale:a}))})))}function NF(e){var n,o=e.displayMonth,r=kF(),i=r.fromDate,l=r.toDate,a=r.locale,s=r.styles,u=r.classNames,c=r.components,d=r.formatters.formatYearCaption,p=r.labels.labelYearDropdown,f=[];if(!i)return t.createElement(t.Fragment,null);if(!l)return t.createElement(t.Fragment,null);for(var h=i.getFullYear(),m=l.getFullYear(),g=h;g<=m;g++)f.push(pF(lD(new Date),g));var b=null!==(n=null==c?void 0:c.Dropdown)&&void 0!==n?n:RF;return t.createElement(b,{name:"years","aria-label":p(),className:u.dropdown_year,style:s.dropdown_year,onChange:function(t){var n=pF(iD(o),Number(t.target.value));e.onChange(n)},value:o.getFullYear(),caption:d(o,{locale:a})},f.map((function(e){return t.createElement("option",{key:e.getFullYear(),value:e.getFullYear()},d(e,{locale:a}))})))}function PF(){var e=kF(),t=function(e){var t=e.month,n=e.defaultMonth,o=e.today,r=t||n||o||new Date,i=e.toDate,l=e.fromDate,a=e.numberOfMonths,s=void 0===a?1:a;return i&&nD(i,r)<0&&(r=qI(i,-1*(s-1))),l&&nD(r,l)<0&&(r=l),iD(r)}(e),n=function(e,t){var n=l(e),o=n[0];return[void 0===t?o:t,n[1]]}(t,e.month),o=n[0],r=n[1];return[o,function(t){var n;if(!e.disableNavigation){var o=iD(t);r(o),null===(n=e.onMonthChange)||void 0===n||n.call(e,o)}}]}var MF=g(void 0);function jF(e){var n=kF(),o=PF(),r=o[0],i=o[1],l=function(e,t){for(var n=t.reverseMonths,o=t.numberOfMonths,r=iD(e),i=nD(iD(qI(r,o)),r),l=[],a=0;a<i;a++){var s=qI(r,a);l.push(s)}return n&&(l=l.reverse()),l}(r,n),a=function(e,t){if(!t.disableNavigation){var n=t.toDate,o=t.pagedNavigation,r=t.numberOfMonths,i=void 0===r?1:r,l=o?i:1,a=iD(e);if(!n)return qI(a,l);if(!(nD(n,e)<i))return qI(a,l)}}(r,n),s=function(e,t){if(!t.disableNavigation){var n=t.fromDate,o=t.pagedNavigation,r=t.numberOfMonths,i=o?void 0===r?1:r:1,l=iD(e);if(!n)return qI(l,-i);if(!(nD(l,n)<=0))return qI(l,-i)}}(r,n),u=function(e){return l.some((function(t){return uF(e,t)}))},c={currentMonth:r,displayMonths:l,goToMonth:i,goToDate:function(e,t){u(e)||(t&&sF(e,t)?i(qI(e,1+-1*n.numberOfMonths)):i(e))},previousMonth:s,nextMonth:a,isDateDisplayed:u};return t.createElement(MF.Provider,{value:c},e.children)}function _F(){var e=d(MF);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function IF(e){var n,o=kF(),r=o.classNames,i=o.styles,l=o.components,a=_F().goToMonth,s=function(t){a(qI(t,e.displayIndex?-e.displayIndex:0))},u=null!==(n=null==l?void 0:l.CaptionLabel)&&void 0!==n?n:SF,c=t.createElement(u,{id:e.id,displayMonth:e.displayMonth});return t.createElement("div",{className:r.caption_dropdowns,style:i.caption_dropdowns},t.createElement("div",{className:r.vhidden},c),t.createElement(TF,{onChange:s,displayMonth:e.displayMonth}),t.createElement(NF,{onChange:s,displayMonth:e.displayMonth}))}function DF(e){return t.createElement("svg",hF({width:"16px",height:"16px",viewBox:"0 0 120 120"},e),t.createElement("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"}))}function FF(e){return t.createElement("svg",hF({width:"16px",height:"16px",viewBox:"0 0 120 120"},e),t.createElement("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"}))}var AF=a((function(e,n){var o=kF(),r=o.classNames,i=o.styles,l=[r.button_reset,r.button];e.className&&l.push(e.className);var a=l.join(" "),s=hF(hF({},i.button_reset),i.button);return e.style&&Object.assign(s,e.style),t.createElement("button",hF({},e,{ref:n,type:"button",className:a,style:s}))}));function LF(e){var n,o,r=kF(),i=r.dir,l=r.locale,a=r.classNames,s=r.styles,u=r.labels,c=u.labelPrevious,d=u.labelNext,p=r.components;if(!e.nextMonth&&!e.previousMonth)return t.createElement(t.Fragment,null);var f=c(e.previousMonth,{locale:l}),h=[a.nav_button,a.nav_button_previous].join(" "),m=d(e.nextMonth,{locale:l}),g=[a.nav_button,a.nav_button_next].join(" "),b=null!==(n=null==p?void 0:p.IconRight)&&void 0!==n?n:FF,v=null!==(o=null==p?void 0:p.IconLeft)&&void 0!==o?o:DF;return t.createElement("div",{className:a.nav,style:s.nav},!e.hidePrevious&&t.createElement(AF,{name:"previous-month","aria-label":f,className:h,style:s.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick},"rtl"===i?t.createElement(b,{className:a.nav_icon,style:s.nav_icon}):t.createElement(v,{className:a.nav_icon,style:s.nav_icon})),!e.hideNext&&t.createElement(AF,{name:"next-month","aria-label":m,className:g,style:s.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick},"rtl"===i?t.createElement(v,{className:a.nav_icon,style:s.nav_icon}):t.createElement(b,{className:a.nav_icon,style:s.nav_icon})))}function VF(e){var n=kF().numberOfMonths,o=_F(),r=o.previousMonth,i=o.nextMonth,l=o.goToMonth,a=o.displayMonths,s=a.findIndex((function(t){return uF(e.displayMonth,t)})),u=0===s,c=s===a.length-1,d=n>1&&(u||!c),p=n>1&&(c||!u);return t.createElement(LF,{displayMonth:e.displayMonth,hideNext:d,hidePrevious:p,nextMonth:i,previousMonth:r,onPreviousClick:function(){r&&l(r)},onNextClick:function(){i&&l(i)}})}function $F(e){var n,o,r=kF(),i=r.classNames,l=r.disableNavigation,a=r.styles,s=r.captionLayout,u=r.components,c=null!==(n=null==u?void 0:u.CaptionLabel)&&void 0!==n?n:SF;return o=l?t.createElement(c,{id:e.id,displayMonth:e.displayMonth}):"dropdown"===s?t.createElement(IF,{displayMonth:e.displayMonth,id:e.id}):"dropdown-buttons"===s?t.createElement(t.Fragment,null,t.createElement(IF,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),t.createElement(VF,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})):t.createElement(t.Fragment,null,t.createElement(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),t.createElement(VF,{displayMonth:e.displayMonth,id:e.id})),t.createElement("div",{className:i.caption,style:a.caption},o)}function zF(e){var n=kF(),o=n.footer,r=n.styles,i=n.classNames.tfoot;return o?t.createElement("tfoot",{className:i,style:r.tfoot},t.createElement("tr",null,t.createElement("td",{colSpan:8},o))):t.createElement(t.Fragment,null)}function qF(){var e=kF(),n=e.classNames,o=e.styles,r=e.showWeekNumber,i=e.locale,l=e.weekStartsOn,a=e.ISOWeek,s=e.formatters.formatWeekdayName,u=e.labels.labelWeekday,c=function(e,t,n){for(var o=n?WI(new Date):UI(new Date,{locale:e,weekStartsOn:t}),r=[],i=0;i<7;i++){var l=zI(o,i);r.push(l)}return r}(i,l,a);return t.createElement("tr",{style:o.head_row,className:n.head_row},r&&t.createElement("td",{style:o.head_cell,className:n.head_cell}),c.map((function(e,r){return t.createElement("th",{key:r,scope:"col",className:n.head_cell,style:o.head_cell,"aria-label":u(e,{locale:i})},s(e,{locale:i}))})))}function HF(){var e,n=kF(),o=n.classNames,r=n.styles,i=n.components,l=null!==(e=null==i?void 0:i.HeadRow)&&void 0!==e?e:qF;return t.createElement("thead",{style:r.head,className:o.head},t.createElement(l,null))}function BF(e){var n=kF(),o=n.locale,r=n.formatters.formatDay;return t.createElement(t.Fragment,null,r(e.date,{locale:o}))}var UF=g(void 0);function WF(e){if(!gF(e.initialProps)){return t.createElement(UF.Provider,{value:{selected:void 0,modifiers:{disabled:[]}}},e.children)}return t.createElement(GF,{initialProps:e.initialProps,children:e.children})}function GF(e){var n=e.initialProps,o=e.children,r=n.selected,i=n.min,l=n.max,a={disabled:[]};r&&a.disabled.push((function(e){var t=l&&r.length>l-1,n=r.some((function(t){return eD(t,e)}));return!(!t||n)}));var s={selected:r,onDayClick:function(e,t,o){var a,s;if((null===(a=n.onDayClick)||void 0===a||a.call(n,e,t,o),!!(!t.selected||!i||(null==r?void 0:r.length)!==i))&&!!(t.selected||!l||(null==r?void 0:r.length)!==l)){var u=r?mF([],r,!0):[];if(t.selected){var c=u.findIndex((function(t){return eD(e,t)}));u.splice(c,1)}else u.push(e);null===(s=n.onSelect)||void 0===s||s.call(n,u,e,t,o)}},modifiers:a};return t.createElement(UF.Provider,{value:s},o)}function KF(){var e=d(UF);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}var YF,ZF=g(void 0);function XF(e){if(!bF(e.initialProps)){return t.createElement(ZF.Provider,{value:{selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}}},e.children)}return t.createElement(QF,{initialProps:e.initialProps,children:e.children})}function QF(e){var n=e.initialProps,o=e.children,r=n.selected,i=r||{},l=i.from,a=i.to,s=n.min,u=n.max,c={range_start:[],range_end:[],range_middle:[],disabled:[]};if(l?(c.range_start=[l],a?(c.range_end=[a],eD(l,a)||(c.range_middle=[{after:l,before:a}])):c.range_end=[l]):a&&(c.range_start=[a],c.range_end=[a]),s&&(l&&!a&&c.disabled.push({after:cF(l,s-1),before:zI(l,s-1)}),l&&a&&c.disabled.push({after:l,before:zI(l,s-1)}),!l&&a&&c.disabled.push({after:cF(a,s-1),before:zI(a,s-1)})),u){if(l&&!a&&(c.disabled.push({before:zI(l,1-u)}),c.disabled.push({after:zI(l,u-1)})),l&&a){var d=u-(XI(a,l)+1);c.disabled.push({before:cF(l,d)}),c.disabled.push({after:zI(a,d)})}!l&&a&&(c.disabled.push({before:zI(a,1-u)}),c.disabled.push({after:zI(a,u-1)}))}return t.createElement(ZF.Provider,{value:{selected:r,onDayClick:function(e,t,o){var i,l;null===(i=n.onDayClick)||void 0===i||i.call(n,e,t,o);var a=function(e,t){var n=t||{},o=n.from,r=n.to;return o&&r?eD(r,e)&&eD(o,e)?void 0:eD(r,e)?{from:r,to:void 0}:eD(o,e)?void 0:aF(o,e)?{from:e,to:r}:{from:o,to:e}:r?aF(e,r)?{from:r,to:e}:{from:e,to:r}:o?sF(e,o)?{from:e,to:o}:{from:o,to:e}:{from:e,to:void 0}}(e,r);null===(l=n.onSelect)||void 0===l||l.call(n,a,e,t,o)},modifiers:c}},o)}function JF(){var e=d(ZF);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function eA(e){return Array.isArray(e)?mF([],e,!0):void 0!==e?[e]:[]}!function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"}(YF||(YF={}));var tA=YF.Selected,nA=YF.Disabled,oA=YF.Hidden,rA=YF.Today,iA=YF.RangeEnd,lA=YF.RangeMiddle,aA=YF.RangeStart,sA=YF.Outside;var uA=g(void 0);function cA(e){var n=kF(),o=function(e,t,n){var o,r=((o={})[tA]=eA(e.selected),o[nA]=eA(e.disabled),o[oA]=eA(e.hidden),o[rA]=[e.today],o[iA]=[],o[lA]=[],o[aA]=[],o[sA]=[],o);return e.fromDate&&r[nA].push({before:e.fromDate}),e.toDate&&r[nA].push({after:e.toDate}),gF(e)?r[nA]=r[nA].concat(t.modifiers[nA]):bF(e)&&(r[nA]=r[nA].concat(n.modifiers[nA]),r[aA]=n.modifiers[aA],r[lA]=n.modifiers[lA],r[iA]=n.modifiers[iA]),r}(n,KF(),JF()),r=function(e){var t={};return Object.entries(e).forEach((function(e){var n=e[0],o=e[1];t[n]=eA(o)})),t}(n.modifiers),i=hF(hF({},o),r);return t.createElement(uA.Provider,{value:i},e.children)}function dA(){var e=d(uA);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function pA(e,t){return t.some((function(t){if("boolean"==typeof t)return t;if(function(e){return tD(e)}(t))return eD(e,t);if(function(e){return Array.isArray(e)&&e.every(tD)}(t))return t.includes(e);if(function(e){return!(!e||"object"!=typeof e||!("from"in e))}(t))return function(e,t){var n,o=t.from,r=t.to;return o&&r?(XI(r,o)<0&&(o=(n=[r,o])[0],r=n[1]),XI(e,o)>=0&&XI(r,e)>=0):r?eD(r,e):!!o&&eD(o,e)}(e,t);if(function(e){return!(!e||"object"!=typeof e||!("dayOfWeek"in e))}(t))return t.dayOfWeek.includes(e.getDay());if(function(e){return!!(e&&"object"==typeof e&&"before"in e&&"after"in e)}(t)){var n=XI(t.before,e)>0,o=XI(t.after,e)<0;return aF(t.before,t.after)?o&&n:n||o}return function(e){return!(!e||"object"!=typeof e||!("after"in e))}(t)?XI(e,t.after)>0:function(e){return!(!e||"object"!=typeof e||!("before"in e))}(t)?XI(t.before,e)>0:"function"==typeof t&&t(e)}))}function fA(e,t,n){var o=Object.keys(t).reduce((function(n,o){var r=t[o];return pA(e,r)&&n.push(o),n}),[]),r={};return o.forEach((function(e){return r[e]=!0})),n&&!uF(e,n)&&(r.outside=!0),r}var hA=365;function mA(e,t){var n=t.moveBy,o=t.direction,r=t.context,i=t.modifiers,l=t.retry,a=void 0===l?{count:0,lastFocused:e}:l,s=r.weekStartsOn,u=r.fromDate,c=r.toDate,d=r.locale,p={day:zI,week:QI,month:qI,year:JI,startOfWeek:function(e){return r.ISOWeek?WI(e):UI(e,{locale:d,weekStartsOn:s})},endOfWeek:function(e){return r.ISOWeek?sD(e):aD(e,{locale:d,weekStartsOn:s})}}[n](e,"after"===o?1:-1);"before"===o&&u?p=function(e){var t,n;if(VI(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==UO(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=$I(e);(void 0===n||n<t||isNaN(Number(t)))&&(n=t)})),n||new Date(NaN)}([u,p]):"after"===o&&c&&(p=function(e){var t,n;if(VI(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==UO(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=$I(e);(void 0===n||n>t||isNaN(t.getDate()))&&(n=t)})),n||new Date(NaN)}([c,p]));var f=!0;if(i){var h=fA(p,i);f=!h.disabled&&!h.hidden}return f?p:a.count>hA?a.lastFocused:mA(p,{moveBy:n,direction:o,context:r,modifiers:i,retry:hF(hF({},a),{count:a.count+1})})}var gA=g(void 0);function bA(e){var n=_F(),o=dA(),r=l(),i=r[0],a=r[1],s=l(),u=s[0],c=s[1],d=function(e,t){for(var n,o,r=iD(e[0]),i=rD(e[e.length-1]),l=r;l<=i;){var a=fA(l,t);if(a.disabled||a.hidden)l=zI(l,1);else{if(a.selected)return l;a.today&&!o&&(o=l),n||(n=l),l=zI(l,1)}}return o||n}(n.displayMonths,o),p=i??(u&&n.isDateDisplayed(u))?u:d,f=function(e){a(e)},h=kF(),m=function(e,t){if(i){var r=mA(i,{moveBy:e,direction:t,context:h,modifiers:o});eD(i,r)||(n.goToDate(r,i),f(r))}},g={focusedDay:i,focusTarget:p,blur:function(){c(i),a(void 0)},focus:f,focusDayAfter:function(){return m("day","after")},focusDayBefore:function(){return m("day","before")},focusWeekAfter:function(){return m("week","after")},focusWeekBefore:function(){return m("week","before")},focusMonthBefore:function(){return m("month","before")},focusMonthAfter:function(){return m("month","after")},focusYearBefore:function(){return m("year","before")},focusYearAfter:function(){return m("year","after")},focusStartOfWeek:function(){return m("startOfWeek","before")},focusEndOfWeek:function(){return m("endOfWeek","after")}};return t.createElement(gA.Provider,{value:g},e.children)}function vA(){var e=d(gA);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}var yA=g(void 0);function wA(e){if(!vF(e.initialProps)){return t.createElement(yA.Provider,{value:{selected:void 0}},e.children)}return t.createElement(xA,{initialProps:e.initialProps,children:e.children})}function xA(e){var n=e.initialProps,o=e.children,r={selected:n.selected,onDayClick:function(e,t,o){var r,i,l;null===(r=n.onDayClick)||void 0===r||r.call(n,e,t,o),!t.selected||n.required?null===(l=n.onSelect)||void 0===l||l.call(n,e,e,t,o):null===(i=n.onSelect)||void 0===i||i.call(n,void 0,e,t,o)}};return t.createElement(yA.Provider,{value:r},o)}function CA(){var e=d(yA);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function OA(e,t){var n=[e.classNames.day];return Object.keys(t).forEach((function(t){var o=e.modifiersClassNames[t];if(o)n.push(o);else if(function(e){return Object.values(YF).includes(e)}(t)){var r=e.classNames["day_".concat(t)];r&&n.push(r)}})),n}function kA(e,n,o){var r,i,l,a=kF(),s=vA(),u=function(e,t){return fA(e,dA(),t)}(e,n),d=function(e,t){var n=kF(),o=CA(),r=KF(),i=JF(),l=vA(),a=l.focusDayAfter,s=l.focusDayBefore,u=l.focusWeekAfter,c=l.focusWeekBefore,d=l.blur,p=l.focus,f=l.focusMonthBefore,h=l.focusMonthAfter,m=l.focusYearBefore,g=l.focusYearAfter,b=l.focusStartOfWeek,v=l.focusEndOfWeek;return{onClick:function(l){var a,s,u,c;vF(n)?null===(a=o.onDayClick)||void 0===a||a.call(o,e,t,l):gF(n)?null===(s=r.onDayClick)||void 0===s||s.call(r,e,t,l):bF(n)?null===(u=i.onDayClick)||void 0===u||u.call(i,e,t,l):null===(c=n.onDayClick)||void 0===c||c.call(n,e,t,l)},onFocus:function(o){var r;p(e),null===(r=n.onDayFocus)||void 0===r||r.call(n,e,t,o)},onBlur:function(o){var r;d(),null===(r=n.onDayBlur)||void 0===r||r.call(n,e,t,o)},onKeyDown:function(o){var r;switch(o.key){case"ArrowLeft":o.preventDefault(),o.stopPropagation(),"rtl"===n.dir?a():s();break;case"ArrowRight":o.preventDefault(),o.stopPropagation(),"rtl"===n.dir?s():a();break;case"ArrowDown":o.preventDefault(),o.stopPropagation(),u();break;case"ArrowUp":o.preventDefault(),o.stopPropagation(),c();break;case"PageUp":o.preventDefault(),o.stopPropagation(),o.shiftKey?m():f();break;case"PageDown":o.preventDefault(),o.stopPropagation(),o.shiftKey?g():h();break;case"Home":o.preventDefault(),o.stopPropagation(),b();break;case"End":o.preventDefault(),o.stopPropagation(),v()}null===(r=n.onDayKeyDown)||void 0===r||r.call(n,e,t,o)},onKeyUp:function(o){var r;null===(r=n.onDayKeyUp)||void 0===r||r.call(n,e,t,o)},onMouseEnter:function(o){var r;null===(r=n.onDayMouseEnter)||void 0===r||r.call(n,e,t,o)},onMouseLeave:function(o){var r;null===(r=n.onDayMouseLeave)||void 0===r||r.call(n,e,t,o)},onPointerEnter:function(o){var r;null===(r=n.onDayPointerEnter)||void 0===r||r.call(n,e,t,o)},onPointerLeave:function(o){var r;null===(r=n.onDayPointerLeave)||void 0===r||r.call(n,e,t,o)},onTouchCancel:function(o){var r;null===(r=n.onDayTouchCancel)||void 0===r||r.call(n,e,t,o)},onTouchEnd:function(o){var r;null===(r=n.onDayTouchEnd)||void 0===r||r.call(n,e,t,o)},onTouchMove:function(o){var r;null===(r=n.onDayTouchMove)||void 0===r||r.call(n,e,t,o)},onTouchStart:function(o){var r;null===(r=n.onDayTouchStart)||void 0===r||r.call(n,e,t,o)}}}(e,u),p=function(){var e=kF(),t=CA(),n=KF(),o=JF();return vF(e)?t.selected:gF(e)?n.selected:bF(e)?o.selected:void 0}(),f=!(!a.onDayClick&&"default"===a.mode);c((function(){var t;u.outside||s.focusedDay&&f&&eD(s.focusedDay,e)&&(null===(t=o.current)||void 0===t||t.focus())}),[s.focusedDay,e,o,f,u.outside]);var h=OA(a,u).join(" "),m=function(e,t){var n=hF({},e.styles.day);return Object.keys(t).forEach((function(t){var o;n=hF(hF({},n),null===(o=e.modifiersStyles)||void 0===o?void 0:o[t])})),n}(a,u),g=!!(u.outside&&!a.showOutsideDays||u.hidden),b=null!==(l=null===(i=a.components)||void 0===i?void 0:i.DayContent)&&void 0!==l?l:BF,v={style:m,className:h,children:t.createElement(b,{date:e,displayMonth:n,activeModifiers:u}),role:"gridcell"},y=s.focusTarget&&eD(s.focusTarget,e)&&!u.outside,w=s.focusedDay&&eD(s.focusedDay,e),x=hF(hF(hF({},v),((r={disabled:u.disabled,role:"gridcell"})["aria-selected"]=u.selected,r.tabIndex=w||y?0:-1,r)),d);return{isButton:f,isHidden:g,activeModifiers:u,selectedDays:p,buttonProps:x,divProps:v}}function SA(e){var n=s(null),o=kA(e.date,e.displayMonth,n);return o.isHidden?t.createElement("div",{role:"gridcell"}):o.isButton?t.createElement(AF,hF({name:"day",ref:n},o.buttonProps)):t.createElement("div",hF({},o.divProps))}function EA(e){var n=e.number,o=e.dates,r=kF(),i=r.onWeekNumberClick,l=r.styles,a=r.classNames,s=r.locale,u=r.labels.labelWeekNumber,c=(0,r.formatters.formatWeekNumber)(Number(n),{locale:s});if(!i)return t.createElement("span",{className:a.weeknumber,style:l.weeknumber},c);var d=u(Number(n),{locale:s});return t.createElement(AF,{name:"week-number","aria-label":d,className:a.weeknumber,style:l.weeknumber,onClick:function(e){i(n,o,e)}},c)}function RA(e){var n,o,r,i=kF(),l=i.styles,a=i.classNames,s=i.showWeekNumber,u=i.components,c=null!==(n=null==u?void 0:u.Day)&&void 0!==n?n:SA,d=null!==(o=null==u?void 0:u.WeekNumber)&&void 0!==o?o:EA;return s&&(r=t.createElement("td",{className:a.cell,style:l.cell},t.createElement(d,{number:e.weekNumber,dates:e.dates}))),t.createElement("tr",{className:a.row,style:l.row},r,e.dates.map((function(n){return t.createElement("td",{className:a.cell,style:l.cell,key:oF(n),role:"presentation"},t.createElement(c,{displayMonth:e.displayMonth,date:n}))})))}function TA(e,t,n){for(var o=null!=n&&n.ISOWeek?sD(t):aD(t,n),r=null!=n&&n.ISOWeek?WI(e):UI(e,n),i=XI(o,r),l=[],a=0;a<=i;a++)l.push(zI(r,a));var s=l.reduce((function(e,t){var o=null!=n&&n.ISOWeek?function(e){VI(1,arguments);var t=$I(e),n=WI(t).getTime()-GI(t).getTime();return Math.round(n/nF)+1}(t):function(e,t){VI(1,arguments);var n=$I(e),o=UI(n,t).getTime()-rF(n,t).getTime();return Math.round(o/iF)+1}(t,n),r=e.find((function(e){return e.weekNumber===o}));return r?(r.dates.push(t),e):(e.push({weekNumber:o,dates:[t]}),e)}),[]);return s}function NA(e){var n,o,r,i=kF(),l=i.locale,a=i.classNames,s=i.styles,u=i.hideHead,c=i.fixedWeeks,d=i.components,p=i.weekStartsOn,f=i.firstWeekContainsDate,h=i.ISOWeek,m=function(e,t){var n=TA(iD(e),rD(e),t);if(null!=t&&t.useFixedWeeks){var o=lF(e,t);if(o<6){var r=n[n.length-1],i=r.dates[r.dates.length-1],l=QI(i,6-o),a=TA(QI(i,1),l,t);n.push.apply(n,a)}}return n}(e.displayMonth,{useFixedWeeks:!!c,ISOWeek:h,locale:l,weekStartsOn:p,firstWeekContainsDate:f}),g=null!==(n=null==d?void 0:d.Head)&&void 0!==n?n:HF,b=null!==(o=null==d?void 0:d.Row)&&void 0!==o?o:RA,v=null!==(r=null==d?void 0:d.Footer)&&void 0!==r?r:zF;return t.createElement("table",{id:e.id,className:a.table,style:s.table,role:"grid","aria-labelledby":e["aria-labelledby"]},!u&&t.createElement(g,null),t.createElement("tbody",{className:a.tbody,style:s.tbody},m.map((function(n){return t.createElement(b,{displayMonth:e.displayMonth,key:n.weekNumber,dates:n.dates,weekNumber:n.weekNumber})}))),t.createElement(v,{displayMonth:e.displayMonth}))}var PA=typeof window<"u"&&window.document&&window.document.createElement?e.useLayoutEffect:e.useEffect,MA=!1,jA=0;function _A(){return"react-day-picker-".concat(++jA)}function IA(n){var o,r,i=kF(),l=i.dir,a=i.classNames,s=i.styles,u=i.components,c=_F().displayMonths,d=function(t){var n,o=t??(MA?_A():null),r=e.useState(o),i=r[0],l=r[1];return PA((function(){null===i&&l(_A())}),[]),e.useEffect((function(){!1===MA&&(MA=!0)}),[]),null!==(n=t??i)&&void 0!==n?n:void 0}(i.id?"".concat(i.id,"-").concat(n.displayIndex):void 0),p=i.id?"".concat(i.id,"-grid-").concat(n.displayIndex):void 0,f=[a.month],h=s.month,m=0===n.displayIndex,g=n.displayIndex===c.length-1,b=!m&&!g;"rtl"===l&&(g=(o=[m,g])[0],m=o[1]),m&&(f.push(a.caption_start),h=hF(hF({},h),s.caption_start)),g&&(f.push(a.caption_end),h=hF(hF({},h),s.caption_end)),b&&(f.push(a.caption_between),h=hF(hF({},h),s.caption_between));var v=null!==(r=null==u?void 0:u.Caption)&&void 0!==r?r:$F;return t.createElement("div",{key:n.displayIndex,className:f.join(" "),style:h},t.createElement(v,{id:d,displayMonth:n.displayMonth,displayIndex:n.displayIndex}),t.createElement(NA,{id:p,"aria-labelledby":d,displayMonth:n.displayMonth}))}function DA(e){var n=e.initialProps,o=kF(),r=vA(),i=_F(),a=l(!1),s=a[0],u=a[1];c((function(){o.initialFocus&&r.focusTarget&&(s||(r.focus(r.focusTarget),u(!0)))}),[o.initialFocus,s,r.focus,r.focusTarget,r]);var d=[o.classNames.root,o.className];o.numberOfMonths>1&&d.push(o.classNames.multiple_months),o.showWeekNumber&&d.push(o.classNames.with_weeknumber);var p=hF(hF({},o.styles.root),o.style),f=Object.keys(n).filter((function(e){return e.startsWith("data-")})).reduce((function(e,t){var o;return hF(hF({},e),((o={})[t]=n[t],o))}),{});return t.createElement("div",hF({className:d.join(" "),style:p,dir:o.dir,id:o.id},f),t.createElement("div",{className:o.classNames.months,style:o.styles.months},i.displayMonths.map((function(e,n){return t.createElement(IA,{key:n,displayIndex:n,displayMonth:e})}))))}function FA(e){var n=e.children,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["children"]);return t.createElement(OF,{initialProps:o},t.createElement(jF,null,t.createElement(wA,{initialProps:o},t.createElement(WF,{initialProps:o},t.createElement(XF,{initialProps:o},t.createElement(cA,null,t.createElement(bA,null,n)))))))}function AA(e){return t.createElement(FA,hF({},e),t.createElement(DA,{initialProps:e}))}const LA="object"==typeof global&&global&&global.Object===Object&&global;var VA="object"==typeof self&&self&&self.Object===Object&&self;const $A=(LA||VA||Function("return this")()).Symbol;var zA=Object.prototype,qA=zA.hasOwnProperty,HA=zA.toString,BA=$A?$A.toStringTag:void 0;var UA=Object.prototype.toString;var WA="[object Null]",GA="[object Undefined]",KA=$A?$A.toStringTag:void 0;function YA(e){return null==e?void 0===e?GA:WA:KA&&KA in Object(e)?function(e){var t=qA.call(e,BA),n=e[BA];try{e[BA]=void 0;var o=!0}catch{}var r=HA.call(e);return o&&(t?e[BA]=n:delete e[BA]),r}(e):function(e){return UA.call(e)}(e)}var ZA="[object Symbol]";const XA=Array.isArray;var QA=1/0,JA=$A?$A.prototype:void 0,eL=JA?JA.toString:void 0;function tL(e){if("string"==typeof e)return e;if(XA(e))return function(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r}(e,tL)+"";if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&YA(e)==ZA}(e))return eL?eL.call(e):"";var t=e+"";return"0"==t&&1/e==-QA?"-0":t}function nL(e){return null==e?"":tL(e)}function oL(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:function(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++o<r;)i[o]=e[o+t];return i}(e,t,n)}var rL=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function iL(e){return rL.test(e)}var lL="\\ud800-\\udfff",aL="["+lL+"]",sL="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",uL="\\ud83c[\\udffb-\\udfff]",cL="[^"+lL+"]",dL="(?:\\ud83c[\\udde6-\\uddff]){2}",pL="[\\ud800-\\udbff][\\udc00-\\udfff]",fL="(?:"+sL+"|"+uL+")"+"?",hL="[\\ufe0e\\ufe0f]?",mL=hL+fL+("(?:\\u200d(?:"+[cL,dL,pL].join("|")+")"+hL+fL+")*"),gL="(?:"+[cL+sL+"?",sL,dL,pL,aL].join("|")+")",bL=RegExp(uL+"(?="+uL+")|"+gL+mL,"g");function vL(e){return iL(e)?function(e){return e.match(bL)||[]}(e):function(e){return e.split("")}(e)}var yL=function(e){return function(t){var n=iL(t=nL(t))?vL(t):void 0,o=n?n[0]:t.charAt(0),r=n?oL(n,1).join(""):t.slice(1);return o[e]()+r}}("toUpperCase");const wL=yL;function xL(e){return wL(nL(e).toLowerCase())}const CL=({onClose:e,isNb:t,selected:n,removeSelection:o,setMonth:r,month:i,onClear:l})=>{const{goToMonth:a,nextMonth:s,previousMonth:u}=_F(),c=XA(n)?!n.length:tD(n)?!n:!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(n)||!function(e){for(var t=-1,n=null==e?0:e.length,o=0,r=[];++t<n;){var i=e[t];i&&(r[o++]=i)}return r}(Object.values(n)).length;return Me.jsxs("div",{className:"mt-2 flex justify-between mr-3",children:[Me.jsx(ER,{variant:"text",onClick:e=>{l?l():o(e)},size:"small",disabled:c,dataTest:"select-today",className:"!min-w-[60px]",startIcon:Me.jsx(tl,{icon:"ph:eraser-duotone",width:24,height:24})}),Me.jsxs("div",{className:"rdp-custom-caption-navigation flex gap-1",children:[Me.jsx(ER,{variant:"outlined",size:"small",dataTest:"previous-month",disabled:!u,onClick:()=>u&&a(u),startIcon:Me.jsx(sl,{})}),Me.jsx(ER,{size:"small",disabled:i&&uF(new Date(Date.now()),i),onClick:()=>{r(new Date(Date.now()))},variant:"outlined",dataTest:"select-today",className:"!disabled:cursor-default",children:t?"I dag":"Today"}),Me.jsx(ER,{variant:"outlined",size:"small",dataTest:"next-month",disabled:!s,onClick:()=>s&&a(s),startIcon:Me.jsx(al,{})})]}),Me.jsx(ER,{size:"small",onClick:t=>{null==e||e(t,"backdropClick")},dataTest:"select-today",className:"!min-w-[60px]",children:t?"Velg":"Select"})]})};function OL(e){const{month:t}=e;return Me.jsx("div",{className:"rdp-custom-caption flex justify-between items-center h-[30px] ml-4",children:t&&Me.jsx($F,{displayMonth:t})})}const kL=e=>Me.jsx(z,{...e,sx:{...e.sx,"& label.MuiInputLabel-shrink":{background:"white !important",color:"var(--colors-delta-500) !important"}}}),SL=e=>{const{caption:t,children:n}=e,{goToMonth:o}=_F(),{month:r}=kF(),i=null==n?void 0:n.map((e=>({id:e.props.value,label:e.props.children})));return Me.jsx(kL,{className:"w-[105px] ml-[-5px]",children:Me.jsx(MI,{dataTest:"StyledCalendarPickerSelectMonth",size:"small",variant:"standard",value:t,onChange:e=>{var t;const n=e.target.value,l=null==(t=i.find((e=>e.label===n)))?void 0:t.id;r&&!isNaN(Number(l))&&o(dF(r,Number(l)))},MenuProps:{className:"[&_ul]:overflow-auto [&_ul]:max-h-[250px]"},children:null==i?void 0:i.map((e=>Me.jsx(jI,{value:e.label,children:xL(e.label)},e.id)))})})},EL=e=>{const{caption:t,children:n}=e,{goToMonth:o}=_F(),{month:r}=kF(),i=null==n?void 0:n.map((e=>({id:e.props.value,label:e.props.children})));return Me.jsx(kL,{className:"w-[70px] ml-[5px]",children:Me.jsx(MI,{dataTest:"StyledCalendarPickerSelectYear",size:"small",variant:"standard",value:t,onChange:e=>{var t;const n=e.target.value,l=null==(t=i.find((e=>e.label===n)))?void 0:t.id;r&&!isNaN(Number(l))&&o(pF(r,Number(l)))},MenuProps:{className:"[&_ul]:overflow-auto [&_ul]:max-h-[250px]"},children:null==i?void 0:i.map((e=>Me.jsx(jI,{value:e.label,children:e.label},e.id)))})})},RL=({datePickerProps:e,popoverProps:t,positionAbove:n})=>{const{showOutsideDays:o=!0,locale:r,selected:i,numberOfMonths:a,disabledDays:s,onClear:u}=e,{open:c,anchorEl:d,onClose:p}=t,[f,h]=l(new Date(Date.now())),m="nb"===(null==r?void 0:r.code),g=(a||1)<2;return Me.jsx(O,{open:c,anchorEl:d,onClose:p,anchorOrigin:{vertical:n?"top":50,horizontal:"left"},transformOrigin:{vertical:n?"bottom":"top",horizontal:"left"},children:Me.jsx(AA,{disabled:s,month:f,onMonthChange:e=>{h(e)},captionLayout:"dropdown",locale:r||fF,fromYear:2e3,toYear:2050,"data-test":"calendar-picker",showWeekNumber:!0,showOutsideDays:o,fixedWeeks:!0,className:"font-roboto",classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-base text-[var(--colors-gray-700)] font-medium",nav:"space-x-1 flex items-center",nav_button:"h-7 w-7 flex text-[var(--colors-gray-700)] items-center justify-center border border-[var(--colors-gray-500)] hover:bg-[var(--colors-gray-50)] rounded",nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",head_row:"flex text-sm cursor-pointer",head_cell:"text-[var(--colors-gray-600)] w-9 cursor-pointer capitalize",row:"flex w-full mt-2",cell:"text-sm w-9 text-[var(--colors-gray-800)] relative [&:has([aria-selected])]:bg-gama-50 first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md ",day:"h-10 w-9 p-0 font-normal rounded-md hover:bg-[var(--colors-gray-50)] focus-visible:border-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-gama-500 focus-visible:z-50",day_today:"text-gama-700 text-base bg-gray-100 font-bold hover:bg-gama-50",day_selected:"[&.bg-gray-100]:bg-gama-500 bg-gama-500 text-white hover:bg-gama-500 hover:text-white",day_outside:"text-[var(--colors-gray-400)]",day_disabled:"text-[var(--colors-gray-400)]",day_range_middle:"aria-selected:bg-gama-50 [&.bg-gray-100.bg-gama-500]:bg-gama-50 aria-selected:text-[var(--colors-gray-800)]",day_hidden:"invisible",caption_end:g?"":"[&_tfoot]:hidden [&_.rdp-custom-caption]:opacity-0 [&_.rdp-custom-caption]:pointer-events-none"},components:{IconLeft:()=>Me.jsx(sl,{className:"h-4 w-4 "}),IconRight:()=>Me.jsx(al,{className:"h-4 w-4"}),Caption:e=>Me.jsx(OL,{...e,setMonth:h,month:f,isNb:m}),Dropdown:e=>"months"===e.name?Me.jsx(SL,{...e}):Me.jsx(EL,{...e})},footer:Me.jsx(CL,{onClose:p,isNb:m,selected:i,removeSelection:t=>{var n;return i&&(null==(n=null==e?void 0:e.onSelect)?void 0:n.call(e,void 0,new Date(Date.now()),{},t))},setMonth:h,month:f,onClear:u}),...e})})},TL=(e,t="dd.MM.yy")=>e?tF(e,t):"",NL="-";function PL(e){const t=function(e){const{theme:t,prefix:n}=e,o={nextPart:new Map,validators:[]};return function(e,t){return t?e.map((([e,n])=>{const o=n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e));return[e,o]})):e}(Object.entries(e.classGroups),n).forEach((([e,n])=>{_L(n,o,e,t)})),o}(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:function(e){const n=e.split(NL);return""===n[0]&&1!==n.length&&n.shift(),ML(n,t)||function(e){if(jL.test(e)){const t=jL.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){const r=n[e]||[];return t&&o[e]?[...r,...o[e]]:r}}}function ML(e,t){var n;if(0===e.length)return t.classGroupId;const o=e[0],r=t.nextPart.get(o),i=r?ML(e.slice(1),r):void 0;if(i)return i;if(0===t.validators.length)return;const l=e.join(NL);return null==(n=t.validators.find((({validator:e})=>e(l))))?void 0:n.classGroupId}const jL=/^\[(.+)\]$/;function _L(e,t,n,o){e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return function(e){return e.isThemeGetter}(e)?void _L(e(o),t,n,o):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,r])=>{_L(r,IL(t,e),n,o)}))}else{(""===e?t:IL(t,e)).classGroupId=n}}))}function IL(e,t){let n=e;return t.split(NL).forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function DL(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;function r(r,i){n.set(r,i),t++,t>e&&(t=0,o=n,n=new Map)}return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=o.get(e))?(r(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):r(e,t)}}}const FL="!";function AL(e){const t=e.separator,n=1===t.length,o=t[0],r=t.length;return function(e){const i=[];let l,a=0,s=0;for(let u=0;u<e.length;u++){let c=e[u];if(0===a){if(c===o&&(n||e.slice(u,u+r)===t)){i.push(e.slice(s,u)),s=u+r;continue}if("/"===c){l=u;continue}}"["===c?a++:"]"===c&&a--}const u=0===i.length?e:e.substring(s),c=u.startsWith(FL);return{modifiers:i,hasImportantModifier:c,baseClassName:c?u.substring(1):u,maybePostfixModifierPosition:l&&l>s?l-s:void 0}}}const LL=/\s+/;function VL(){let e,t,n=0,o="";for(;n<arguments.length;)(e=arguments[n++])&&(t=$L(e))&&(o&&(o+=" "),o+=t);return o}function $L(e){if("string"==typeof e)return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=$L(e[o]))&&(n&&(n+=" "),n+=t);return n}function zL(e,...t){let n,o,r,i=function(a){const s=t.reduce(((e,t)=>t(e)),e());return n=function(e){return{cache:DL(e.cacheSize),splitModifiers:AL(e),...PL(e)}}(s),o=n.cache.get,r=n.cache.set,i=l,l(a)};function l(e){const t=o(e);if(t)return t;const i=function(e,t){const{splitModifiers:n,getClassGroupId:o,getConflictingClassGroupIds:r}=t,i=new Set;return e.trim().split(LL).map((e=>{const{modifiers:t,hasImportantModifier:r,baseClassName:i,maybePostfixModifierPosition:l}=n(e);let a=o(l?i.substring(0,l):i),s=!!l;if(!a){if(!l)return{isTailwindClass:!1,originalClassName:e};if(a=o(i),!a)return{isTailwindClass:!1,originalClassName:e};s=!1}const u=function(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t}(t).join(":");return{isTailwindClass:!0,modifierId:r?u+FL:u,classGroupId:a,originalClassName:e,hasPostfixModifier:s}})).reverse().filter((e=>{if(!e.isTailwindClass)return!0;const{modifierId:t,classGroupId:n,hasPostfixModifier:o}=e,l=t+n;return!i.has(l)&&(i.add(l),r(n,o).forEach((e=>i.add(t+e))),!0)})).reverse().map((e=>e.originalClassName)).join(" ")}(e,n);return r(e,i),i}return function(){return i(VL.apply(null,arguments))}}function qL(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const HL=/^\[(?:([a-z-]+):)?(.+)\]$/i,BL=/^\d+\/\d+$/,UL=new Set(["px","full","screen"]),WL=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,GL=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,KL=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,YL=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function ZL(e){return QL(e)||UL.has(e)||BL.test(e)}function XL(e){return dV(e,"length",pV)}function QL(e){return!!e&&!Number.isNaN(Number(e))}function JL(e){return dV(e,"number",QL)}function eV(e){return!!e&&Number.isInteger(Number(e))}function tV(e){return e.endsWith("%")&&QL(e.slice(0,-1))}function nV(e){return HL.test(e)}function oV(e){return WL.test(e)}const rV=new Set(["length","size","percentage"]);function iV(e){return dV(e,rV,fV)}function lV(e){return dV(e,"position",fV)}const aV=new Set(["image","url"]);function sV(e){return dV(e,aV,mV)}function uV(e){return dV(e,"",hV)}function cV(){return!0}function dV(e,t,n){const o=HL.exec(e);return!!o&&(o[1]?"string"==typeof t?o[1]===t:t.has(o[1]):n(o[2]))}function pV(e){return GL.test(e)}function fV(){return!1}function hV(e){return KL.test(e)}function mV(e){return YL.test(e)}function gV(){const e=qL("colors"),t=qL("spacing"),n=qL("blur"),o=qL("brightness"),r=qL("borderColor"),i=qL("borderRadius"),l=qL("borderSpacing"),a=qL("borderWidth"),s=qL("contrast"),u=qL("grayscale"),c=qL("hueRotate"),d=qL("invert"),p=qL("gap"),f=qL("gradientColorStops"),h=qL("gradientColorStopPositions"),m=qL("inset"),g=qL("margin"),b=qL("opacity"),v=qL("padding"),y=qL("saturate"),w=qL("scale"),x=qL("sepia"),C=qL("skew"),O=qL("space"),k=qL("translate"),S=()=>["auto",nV,t],E=()=>[nV,t],R=()=>["",ZL,XL],T=()=>["auto",QL,nV],N=()=>["","0",nV],P=()=>[QL,JL],M=()=>[QL,nV];return{cacheSize:500,separator:":",theme:{colors:[cV],spacing:[ZL,XL],blur:["none","",oV,nV],brightness:P(),borderColor:[e],borderRadius:["none","","full",oV,nV],borderSpacing:E(),borderWidth:R(),contrast:P(),grayscale:N(),hueRotate:M(),invert:N(),gap:E(),gradientColorStops:[e],gradientColorStopPositions:[tV,XL],inset:S(),margin:S(),opacity:P(),padding:E(),saturate:P(),scale:P(),sepia:N(),skew:M(),space:E(),translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",nV]}],container:["container"],columns:[{columns:[oV]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",nV]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",eV,nV]}],basis:[{basis:S()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",nV]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",eV,nV]}],"grid-cols":[{"grid-cols":[cV]}],"col-start-end":[{col:["auto",{span:["full",eV,nV]},nV]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[cV]}],"row-start-end":[{row:["auto",{span:[eV,nV]},nV]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",nV]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",nV]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[O]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[O]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",nV,t]}],"min-w":[{"min-w":[nV,t,"min","max","fit"]}],"max-w":[{"max-w":[nV,t,"none","full","min","max","fit","prose",{screen:[oV]},oV]}],h:[{h:[nV,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[nV,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[nV,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[nV,t,"auto","min","max","fit"]}],"font-size":[{text:["base",oV,XL]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",JL]}],"font-family":[{font:[cV]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",nV]}],"line-clamp":[{"line-clamp":["none",QL,JL]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ZL,nV]}],"list-image":[{"list-image":["none",nV]}],"list-style-type":[{list:["none","disc","decimal",nV]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ZL,XL]}],"underline-offset":[{"underline-offset":["auto",ZL,nV]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",nV]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",nV]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",lV]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",iV]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},sV]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[ZL,nV]}],"outline-w":[{outline:[ZL,XL]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[ZL,XL]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",oV,uV]}],"shadow-color":[{shadow:[cV]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",oV,nV]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",nV]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",nV]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",nV]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[eV,nV]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",nV]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",nV]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",nV]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ZL,XL,JL]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const bV=zL(gV);function vV(...e){return bV(vo(e))}const yV=e=>{var t,n,o;const{dataTest:r,placeholder:i,disabled:l,onClick:a,inputClassName:s,onClear:u,allowClear:c,dateFormat:d,label:p}=e;if("range"!==e.mode)return null;const f=TL(null==(t=e.selected)?void 0:t.from,d),h=TL(null==(n=e.selected)?void 0:n.to,d),m=null!=(o=e.selected)&&o.from?e.selected.to?`${f} - ${h}`:f:"";return Me.jsx(PN,{dataTest:r,placeholder:i,label:p,size:"small",onClick:e=>!l&&a(e),InputProps:{endAdornment:Me.jsx(wl,{width:24,height:24})},value:m,disabled:!!l,className:vV(`w-60 ${s}`),allowClear:c,onClear:()=>{null==u||u()}})},wV=e=>{var t,n;const{dataTest:o,className:r,inputClassName:i,disabled:l,placeholderFrom:a,placeholderTo:s,dateFormat:u,onClick:c,labelFrom:d,labelTo:p}=e;if("range"!==e.mode)return null;const f=TL(null==(t=e.selected)?void 0:t.from,u),h=TL(null==(n=e.selected)?void 0:n.to,u);return Me.jsxs("div",{"data-test":o,className:`${r} ${l?"cursor-default text-[var(--colors-gray-300)]":"cursor-pointer"} inline-flex gap-4 w-fit items-center`,onClick:e=>!l&&c(e),children:[Me.jsx(PN,{label:d,autoComplete:"off",size:"small",dataTest:"styled-date-picker-input-range-from",placeholder:a,value:f,disabled:!!l,className:`${i} w-36`,InputProps:{endAdornment:Me.jsx(wl,{width:24,height:24})}}),Me.jsx(PN,{label:p,autoComplete:"off",dataTest:"styled-date-picker-input-range-to",size:"small",placeholder:s,value:h,disabled:!!l,className:`${i} w-36`,InputProps:{endAdornment:Me.jsx(wl,{width:24,height:24})}})]})},xV=e=>{const{dataTest:t,placeholder:n,disabled:o,onClick:r,inputClassName:i,onClear:l,allowClear:a,dateFormat:s}=e;return"single"!==e.mode?null:Me.jsx(PN,{dataTest:t,placeholder:n,size:"small",onClick:e=>!o&&r(e),InputProps:{endAdornment:Me.jsx(wl,{width:24,height:24})},value:TL(e.selected,s),disabled:!!o,className:vV(`w-36 ${i}`),allowClear:a,onClear:()=>{null==l||l()},label:e.label})},CV=e=>{const t="range"===e.mode&&!e.compact,n="range"===e.mode&&e.compact;return t?Me.jsx(yV,{...e,onClick:e.onClick}):n?Me.jsx(wV,{...e,onClick:e.onClick}):Me.jsx(xV,{...e,onClick:e.onClick})},OV=e=>{const[t,n]=l(null),[o,r]=l(!1);return Me.jsxs(Me.Fragment,{children:[Me.jsx(CV,{...e,onClick:e=>{n(e.currentTarget),((e,t)=>{const n=window.innerHeight,o=e.currentTarget.getBoundingClientRect(),r=o.top,i=n-o.bottom;t(i<300&&r>i)})(e,r)}}),Me.jsx(RL,{datePickerProps:{...e},popoverProps:{open:!!t,anchorEl:t,onClose:()=>{n(null)}},positionAbove:o})]})},kV=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:clock-outline",width:e,height:t,className:n,onClick:o,color:r}),SV=()=>{const[e,t]=l(null),n=!!e,o=u((e=>{t(e.currentTarget)}),[]);return{open:n,handleClose:u((()=>{t(null)}),[]),handleOpen:o,anchorEl:e}},EV=({type:e,value:t,onSelect:n})=>{const o=new Date,r="hours"===e,i=r?24:60,l=r?o.getHours():o.getMinutes();return Me.jsx("div",{className:"styled-time-picker-root_column",children:new Array(i).fill(null).map(((e,o)=>{const i=t&&o===(r?function(e){return VI(1,arguments),$I(e).getHours()}(t):function(e){return VI(1,arguments),$I(e).getMinutes()}(t)),a=l==o;return Me.jsx("div",{className:vo("styled-time-picker-root_cell",i&&"styled-time-picker-root_cell__cell-selected",a&&"styled-time-picker-root_cell__cell-now"),onClick:()=>{n(function(e,t){if(VI(2,arguments),"object"!==UO(t)||null===t)throw new RangeError("values parameter must be an object");var n=$I(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=dF(n,t.month)),null!=t.date&&n.setDate(LI(t.date)),null!=t.hours&&n.setHours(LI(t.hours)),null!=t.minutes&&n.setMinutes(LI(t.minutes)),null!=t.seconds&&n.setSeconds(LI(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(LI(t.milliseconds)),n)}(t||new Date,r?{hours:o}:{minutes:o}))},children:o.toString().padStart(2,"0")},o)}))})},RV=({value:e,onSelect:t,dataTest:n})=>{const o=s(null);return c((()=>{var e;null==(e=o.current)||e.querySelectorAll("div.styled-time-picker-root_cell__cell-selected").forEach((e=>e.scrollIntoView()))}),[o]),Me.jsxs("div",{ref:o,"data-test":n,className:"styled-time-picker-root",children:[Me.jsx(EV,{type:"hours",value:e,onSelect:t}),Me.jsx(EV,{type:"minutes",value:e,onSelect:t})]})},TV=({placeholder:e,disabled:t,inputClassName:n,value:o,onSelect:r,dataTest:i,width:l,anchorOrigin:a,transformOrigin:s,error:u,helperText:c,label:d})=>{const{anchorEl:p,open:f,handleClose:h,handleOpen:m}=SV();return Me.jsxs(Me.Fragment,{children:[Me.jsx(PN,{dataTest:i,placeholder:e,size:"small",error:u,helperText:c,onClick:e=>!t&&m(e),InputProps:{endAdornment:Me.jsx(kV,{width:24,height:24})},value:o?tF(o,"HH:mm"):"",sx:{maxWidth:l||130,width:l,minWidth:l},disabled:t,className:vo(n||"mb-2 pb-2"),label:d}),Me.jsxs(O,{open:f,anchorEl:p,onClose:h,anchorOrigin:a||{vertical:"bottom",horizontal:"left"},transformOrigin:s||{vertical:-5,horizontal:"left"},children:[Me.jsx(RV,{dataTest:`${i}-time-picker-body`,value:o,onSelect:r}),Me.jsxs("div",{className:"flex my-3 justify-between",children:[Me.jsx(ER,{variant:"text",onClick:()=>{r(void 0)},size:"small",disabled:!o,dataTest:"select-today",className:"!min-w-[40px] ml-2.5",startIcon:Me.jsx(tl,{icon:"ph:eraser-duotone",width:24,height:24})}),Me.jsx(ER,{size:"small",onClick:h,dataTest:"select-time",className:"!min-w-[40px] mr-4",startIcon:Me.jsx(tl,{icon:"bi:check-lg",width:20,height:20})})]})]})]})},NV=e=>Me.jsx(q,{...e}),PV=e=>Me.jsx(H,{...e}),MV=e=>Me.jsx(B,{...e}),jV=e=>Me.jsx(U,{...e}),_V=e=>Me.jsx(W,{...e}),IV=e=>Me.jsx(G,{...e}),DV=e=>{var t,n;return Me.jsx(K,{...e,classes:{paper:vo("border border-solid border-delta-300 shadow-[0px_2px_4px_0px_rgba(34,_33,_51,_0.15)]",null==(t=e.classes)?void 0:t.paper),list:vo("py-1",null==(n=e.classes)?void 0:n.list),...e.classes}})},FV=e=>{var t;return Me.jsx(I,{...e,classes:{root:vo("px-3 py-2.5",null==(t=e.classes)?void 0:t.root),...e.classes}})},AV=e=>Me.jsx(Y,{...e}),LV="_link_gyvti_1",VV=({href:e,title:t,disabled:n,size:o="large",dataTest:r,reflink:i,className:l,...a})=>{let s="text-sm";return"large"===o&&(s="text-base"),n?Me.jsx("span",{className:`font-roboto font-semibold w-fit underline rounded px-1 py-0.5 outline-none border-none text-delta-300 ${s}`,children:t}):Me.jsx("a",{...a,"data-test":r,ref:i,href:e,className:vo(`${LV} + ${s}`,l),children:t})},$V=e=>Me.jsx(Z,{...e,sx:{"&.MuiTab-textColorPrimary.Mui-selected":{color:"var(--colors-gama-500)"}}}),zV=e=>Me.jsx(X,{TabIndicatorProps:{style:{background:"var(--colors-gama-500)",color:"var(--colors-gama-500)"}},...e}),qV=e=>Me.jsx(Q,{...e}),HV=e=>Me.jsx(J,{...e}),BV=e=>Me.jsx(ee,{...e,className:vo("flex-row-reverse gap-2.5",e.className),expandIcon:Me.jsx(ql,{width:24,height:24}),sx:{...e.sx,backgroundColor:"transparent !important","& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"rotate(0deg)"},"& .MuiAccordionSummary-expandIconWrapper:not(.Mui-expanded)":{transform:"rotate(-90deg)"}}}),UV=e=>Me.jsx(te,{...e}),WV="select",GV="expand-column-id",KV="actions";
|
|
202
202
|
/**
|
|
203
203
|
* table-core
|
|
204
204
|
*
|