mui-simple
Version:
Override mui components to simplify usage
58 lines (55 loc) • 692 kB
JavaScript
import*as e from"react";import t,{forwardRef as n,isValidElement as r,useMemo as o,useRef as a,useState as i,useCallback as s,useEffect as l,createElement as u,cloneElement as c,Children as d,useLayoutEffect as p,useContext as h}from"react";import*as m from"@mui/icons-material";import{ArrowForwardIosSharp as f,KeyboardArrowUp as g,CommitRounded as v,Close as b,Check as y,MoreVert as x,ExpandMore as w,ChevronLeft as C,ChevronRight as k,ExpandLess as E,IndeterminateCheckBox as S,KeyboardArrowLeft as D,KeyboardArrowRight as M,DragHandle as T,North as P,South as F,ImportExport as A,LibraryAddCheck as I,LibraryAddCheckOutlined as O,ArrowDropDown as _,ArrowRight as L}from"@mui/icons-material";import{css as B,styled as V,useTheme as R,lighten as N,darken as $,useThemeProps as j,alpha as z}from"@mui/material/styles";import{Accordion as W,AccordionSummary as H,AccordionDetails as Y,Box as U,alpha as q,darken as G,lighten as K,Typography as X,Zoom as Z,Tooltip as Q,CircularProgress as J,LinearProgress as ee,linearProgressClasses as te,Button as ne,IconButton as re,ButtonGroup as oe,Alert as ae,AlertTitle as ie,AppBar as se,Toolbar as le,Fab as ue,useScrollTrigger as ce,Fade as de,Slide as pe,Autocomplete as he,TextField as me,Stack as fe,Snackbar as ge,Grow as ve,ClickAwayListener as be,InputAdornment as ye,Chip as xe,createFilterOptions as we,FormControlLabel as Ce,Checkbox as ke,FormHelperText as Ee,Avatar as Se,Backdrop as De,Badge as Me,Paper as Te,BottomNavigation as Pe,BottomNavigationAction as Fe,Breadcrumbs as Ae,Link as Ie,Card as Oe,CardActions as _e,CardContent as Le,CardHeader as Be,CardMedia as Ve,Collapse as Re,Menu as Ne,MenuList as $e,MenuItem as je,ListItemIcon as ze,ListItemText as We,Divider as He,useMediaQuery as Ye,Dialog as Ue,DialogTitle as qe,DialogContent as Ge,DialogContentText as Ke,DialogActions as Xe,Drawer as Ze,SwipeableDrawer as Qe,Slider as Je,Grid as et,FormControl as tt,InputLabel as nt,Select as rt,ListSubheader as ot,List as at,ListItem as it,ListItemButton as st,ListItemAvatar as lt,ListItemSecondaryAction as ut,Switch as ct,Pagination as dt,PaginationItem as pt,Popover as ht,Radio as mt,RadioGroup as ft,FormLabel as gt,Skeleton as vt,SpeedDial as bt,SpeedDialIcon as yt,SpeedDialAction as xt,Stepper as wt,StepContent as Ct,StepLabel as kt,StepConnector as Et,stepConnectorClasses as St,Step as Dt,MobileStepper as Mt,TableCell as Tt,Table as Pt,TableBody as Ft,TableContainer as At,TableRow as It,TableHead as Ot,TablePagination as _t,TableSortLabel as Lt,Tabs as Bt,Tab as Vt,ToggleButtonGroup as Rt,ToggleButton as Nt,SvgIcon as $t}from"@mui/material";import{Link as jt}from"react-router-dom";import zt from"react-inlinesvg";import{createFilterOptions as Wt}from"@mui/material/Autocomplete";import Ht from"react-draggable";import{jsx as Yt,jsxs as Ut}from"react/jsx-runtime";import qt from"@mui/material/Skeleton";import{unstable_useForkRef as Gt,unstable_generateUtilityClass as Kt,unstable_generateUtilityClasses as Xt,unstable_composeClasses as Zt,unstable_useEventCallback as Qt,unstable_ownerDocument as Jt,unstable_useControlled as en,unstable_useEnhancedEffect as tn,unstable_useId as nn,refType as rn}from"@mui/utils";import on from"@mui/material/Typography";import an from"@mui/utils/useEventCallback";import sn from"@mui/material/Fade";import ln from"@mui/utils/composeClasses";import un from"@mui/material/ButtonBase";import cn,{unstable_batchedUpdates as dn}from"react-dom";import pn from"@mui/material/useMediaQuery";import hn from"@mui/utils/useControlled";import mn from"@mui/material/IconButton";import{createSvgIcon as fn,capitalize as gn,isMuiElement as vn,unstable_useEnhancedEffect as bn,useForkRef as yn,ownerDocument as xn,unstable_useId as wn,useControlled as Cn}from"@mui/material/utils";import{useTheme as kn}from"@mui/system";import En from"@mui/material/TextField";import Sn from"@mui/utils/useEnhancedEffect";import Dn from"@mui/utils/useForkRef";import Mn from"@mui/material/InputAdornment";import Tn from"@mui/utils/useId";import Pn from"@mui/material/DialogContent";import Fn,{dialogClasses as An}from"@mui/material/Dialog";import In from"@mui/utils/generateUtilityClass";import On from"@mui/utils/generateUtilityClasses";import _n from"@mui/material/Button";import Ln from"@mui/material/DialogActions";import Bn from"@mui/material/List";import Vn from"@mui/material/ListItem";import Rn from"@mui/material/Chip";import Nn from"@mui/material/Grow";import $n from"@mui/material/Paper";import jn from"@mui/material/Popper";import zn from"@mui/material/Unstable_TrapFocus";import Wn from"@mui/material/Tab";import Hn,{tabsClasses as Yn}from"@mui/material/Tabs";import Un from"@mui/material/MenuList";import qn from"@mui/material/MenuItem";import Gn from"@mui/material/Divider";import{Droppable as Kn,Draggable as Xn,DragDropContext as Zn}from"react-beautiful-dnd";import Qn from"@mui/material/ButtonBase/TouchRipple";import Jn from"@mui/material/CircularProgress";import er from"@mui/material/generateUtilityClass";import tr from"@mui/material/generateUtilityClasses";import nr from"@mui/material/Collapse";function rr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function or(){return or=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},or.apply(null,arguments)}function ar(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function ir(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ir(Object(n),!0).forEach((function(t){rr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ir(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const ur=["useCustomStyle"],cr=["label"],dr=V((e=>{let{useCustomStyle:n}=e,r=lr(e,ur);return t.createElement(W,sr(sr({},n&&{disableGutters:!0,elevation:0,square:!0}),r),r.children)}),{shouldForwardProp:e=>!["useCustomStyle"].includes(e)})`
${function(e){if(!e.useCustomStyle)return B``;const{theme:t}=e;return B`
border: 1px solid ${t.palette.divider};
&:not(:last-child) {
border-bottom: 0;
}
&:before {
display: none;
}
`}};
`,pr=V((e=>{let n=lr(e,cr);return t.createElement(H,sr({},n))}),{shouldForwardProp:e=>!["bottomSecondaryLabel","useCustomStyle","bgColor","titleColor"].includes(e)})`
${function(e){if(!e.useCustomStyle)return B``;const{theme:t}=e;return B`
&.MuiAccordionSummary-root {
background-color: ${"dark"===t.palette.mode?"rgba(255, 255, 255, .05)":"rgba(0, 0, 0, .03)"};
flex-direction: row-reverse;
& .MuiAccordionSummary-expandIconWrapper.Mui-expanded {
transform: rotate(90deg);
}
& .MuiAccordionSummary-content {
margin-left: ${t.spacing(1)};
}
}
`}};
&.MuiAccordionSummary-root {
background-color: ${e=>e.bgColor};
color: ${e=>e.titleColor};
${e=>e.bottomSecondaryLabel?B`
& > div {
display: flex;
flex-direction: column;
}
`:B``}
}
`,hr=V(Y,{shouldForwardProp:e=>!["useCustomStyle","disabledContentPadding","bgColorDetails"].includes(e)})`
background-color: ${e=>e.bgColorDetails};
padding-bottom: 1em;
${function(e){if(!e.useCustomStyle)return B``;const{theme:t}=e;return B`
padding: ${t.spacing(2)};
border-top: 1px solid rgba(0, 0, 0, 0.125);
`}}
${e=>e.disabledContentPadding?B`
padding: 0;
`:B``}
`,mr=V(U)`
display: flex;
align-items: center;
justify-content: end;
padding: 0;
margin-bottom: -10px;
`;var fr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function gr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function vr(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var br={},yr={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(t=e.ElementType||(e.ElementType={})),e.isTag=function(e){return e.type===t.Tag||e.type===t.Script||e.type===t.Style},e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype}(yr);var xr,wr={},Cr=fr&&fr.__extends||(xr=function(e,t){return xr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},xr(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}xr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),kr=fr&&fr.__assign||function(){return kr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},kr.apply(this,arguments)};Object.defineProperty(wr,"__esModule",{value:!0}),wr.cloneNode=wr.hasChildren=wr.isDocument=wr.isDirective=wr.isComment=wr.isText=wr.isCDATA=wr.isTag=wr.Element=wr.Document=wr.CDATA=wr.NodeWithChildren=wr.ProcessingInstruction=wr.Comment=wr.Text=wr.DataNode=wr.Node=void 0;var Er=yr,Sr=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),$r(this,e)},e}();wr.Node=Sr;var Dr=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return Cr(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(Sr);wr.DataNode=Dr;var Mr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=Er.ElementType.Text,t}return Cr(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(Dr);wr.Text=Mr;var Tr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=Er.ElementType.Comment,t}return Cr(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(Dr);wr.Comment=Tr;var Pr=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=Er.ElementType.Directive,r}return Cr(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(Dr);wr.ProcessingInstruction=Pr;var Fr=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return Cr(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(Sr);wr.NodeWithChildren=Fr;var Ar=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=Er.ElementType.CDATA,t}return Cr(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(Fr);wr.CDATA=Ar;var Ir=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=Er.ElementType.Root,t}return Cr(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(Fr);wr.Document=Ir;var Or=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?Er.ElementType.Script:"style"===t?Er.ElementType.Style:Er.ElementType.Tag);var a=e.call(this,r)||this;return a.name=t,a.attribs=n,a.type=o,a}return Cr(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(Fr);function _r(e){return(0,Er.isTag)(e)}function Lr(e){return e.type===Er.ElementType.CDATA}function Br(e){return e.type===Er.ElementType.Text}function Vr(e){return e.type===Er.ElementType.Comment}function Rr(e){return e.type===Er.ElementType.Directive}function Nr(e){return e.type===Er.ElementType.Root}function $r(e,t){var n;if(void 0===t&&(t=!1),Br(e))n=new Mr(e.data);else if(Vr(e))n=new Tr(e.data);else if(_r(e)){var r=t?jr(e.children):[],o=new Or(e.name,kr({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=kr({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=kr({},e["x-attribsPrefix"])),n=o}else if(Lr(e)){r=t?jr(e.children):[];var a=new Ar(r);r.forEach((function(e){return e.parent=a})),n=a}else if(Nr(e)){r=t?jr(e.children):[];var i=new Ir(r);r.forEach((function(e){return e.parent=i})),e["x-mode"]&&(i["x-mode"]=e["x-mode"]),n=i}else{if(!Rr(e))throw new Error("Not implemented yet: ".concat(e.type));var s=new Pr(e.name,e.data);null!=e["x-name"]&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),n=s}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function jr(e){for(var t=e.map((function(e){return $r(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}wr.Element=Or,wr.isTag=_r,wr.isCDATA=Lr,wr.isText=Br,wr.isComment=Vr,wr.isDirective=Rr,wr.isDocument=Nr,wr.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},wr.cloneNode=$r,function(e){var t=fr&&fr.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=fr&&fr.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=yr,o=wr;n(wr,e);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},i=function(){function e(e,t,n){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=a),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:a,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?r.ElementType.Tag:void 0,a=new o.Element(e,t,void 0,n);this.addNode(a),this.tagStack.push(a)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===r.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new o.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment)this.lastNode.data+=e;else{var t=new o.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new o.Text(""),t=new o.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new o.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();e.DomHandler=i,e.default=i}(br);var zr={},Wr={};Object.defineProperty(Wr,"__esModule",{value:!0});var Hr="html",Yr="head",Ur="body",qr=/<([a-zA-Z]+[0-9]?)/,Gr=/<head[^]*>/i,Kr=/<body[^]*>/i,Xr=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Zr=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},Qr="object"==typeof window&&window.DOMParser;if("function"==typeof Qr){var Jr=new Qr;Xr=Zr=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),Jr.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var eo=document.implementation.createHTMLDocument();Xr=function(e,t){if(t){var n=eo.documentElement.querySelector(t);return n&&(n.innerHTML=e),eo}return eo.documentElement.innerHTML=e,eo}}var to,no="object"==typeof document&&document.createElement("template");no&&no.content&&(to=function(e){return no.innerHTML=e,no.content.childNodes}),Wr.default=function(e){var t,n,r=e.match(qr),o=r&&r[1]?r[1].toLowerCase():"";switch(o){case Hr:var a=Zr(e);if(!Gr.test(e))null===(t=null==(s=a.querySelector(Yr))?void 0:s.parentNode)||void 0===t||t.removeChild(s);if(!Kr.test(e))null===(n=null==(s=a.querySelector(Ur))?void 0:s.parentNode)||void 0===n||n.removeChild(s);return a.querySelectorAll(Hr);case Yr:case Ur:var i=Xr(e).querySelectorAll(o);return Kr.test(e)&&Gr.test(e)?i[0].parentNode.childNodes:i;default:return to?to(e):(s=Xr(e,Ur).querySelector(Ur)).childNodes;var s}};var ro={},oo={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{})}(oo),Object.defineProperty(ro,"__esModule",{value:!0}),ro.formatDOM=ro.formatAttributes=void 0;var ao=br,io=oo;function so(e){for(var t={},n=0,r=e.length;n<r;n++){var o=e[n];t[o.name]=o.value}return t}function lo(e){var t=function(e){return io.CASE_SENSITIVE_TAG_NAMES_MAP[e]}(e=e.toLowerCase());return t||e}ro.formatAttributes=so,ro.formatDOM=function e(t,n,r){void 0===n&&(n=null);for(var o,a=[],i=0,s=t.length;i<s;i++){var l=t[i];switch(l.nodeType){case 1:var u=lo(l.nodeName);(o=new ao.Element(u,so(l.attributes))).children=e("template"===u?l.content.childNodes:l.childNodes,o);break;case 3:o=new ao.Text(l.nodeValue);break;case 8:o=new ao.Comment(l.nodeValue);break;default:continue}var c=a[i-1]||null;c&&(c.next=o),o.parent=n,o.prev=c,o.next=null,a.push(o)}return r&&((o=new ao.ProcessingInstruction(r.substring(0,r.indexOf(" ")).toLowerCase(),r)).next=a[0]||null,o.parent=n,a.unshift(o),a[1]&&(a[1].prev=a[0])),a};var uo=fr&&fr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zr,"__esModule",{value:!0});var co=uo(Wr),po=ro,ho=/<(![a-zA-Z\s]+)>/;zr.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(ho),n=t?t[1]:void 0;return(0,po.formatDOM)((0,co.default)(e),null,n)};var mo={},fo={};fo.SAME=0;fo.CAMELCASE=1,fo.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1};function go(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}const vo={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((e=>{vo[e]=new go(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([e,t])=>{vo[e]=new go(e,1,!1,t,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((e=>{vo[e]=new go(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((e=>{vo[e]=new go(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((e=>{vo[e]=new go(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((e=>{vo[e]=new go(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((e=>{vo[e]=new go(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((e=>{vo[e]=new go(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((e=>{vo[e]=new go(e,5,!1,e.toLowerCase(),null,!1,!1)}));const bo=/[\-\:]([a-z])/g,yo=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((e=>{const t=e.replace(bo,yo);vo[t]=new go(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((e=>{const t=e.replace(bo,yo);vo[t]=new go(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((e=>{const t=e.replace(bo,yo);vo[t]=new go(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((e=>{vo[e]=new go(e,1,!1,e.toLowerCase(),null,!1,!1)}));vo.xlinkHref=new go("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((e=>{vo[e]=new go(e,1,!1,e.toLowerCase(),null,!0,!0)}));const{CAMELCASE:xo,SAME:wo,possibleStandardNames:Co}=fo,ko=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),Eo=Object.keys(Co).reduce(((e,t)=>{const n=Co[t];return n===wo?e[t]=t:n===xo?e[t.toLowerCase()]=t:e[t]=n,e}),{});mo.BOOLEAN=3,mo.BOOLEANISH_STRING=2,mo.NUMERIC=5,mo.OVERLOADED_BOOLEAN=4,mo.POSITIVE_NUMERIC=6,mo.RESERVED=0,mo.STRING=1,mo.getPropertyInfo=function(e){return vo.hasOwnProperty(e)?vo[e]:null},mo.isCustomAttribute=ko,mo.possibleStandardNames=Eo;var So={},Do={},Mo=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,To=/\n/g,Po=/^\s*/,Fo=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ao=/^:\s*/,Io=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Oo=/^[;\s]*/,_o=/^\s+|\s+$/g,Lo="";function Bo(e){return e?e.replace(_o,Lo):Lo}var Vo=fr&&fr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Do,"__esModule",{value:!0});var Ro=Vo((function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(e){var t=e.match(To);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function a(){var e={line:n,column:r};return function(t){return t.position=new i(e),u(),t}}function i(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function s(o){var a=new Error(t.source+":"+n+":"+r+": "+o);if(a.reason=o,a.filename=t.source,a.line=n,a.column=r,a.source=e,!t.silent)throw a}function l(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function u(){l(Po)}function c(e){var t;for(e=e||[];t=d();)!1!==t&&e.push(t);return e}function d(){var t=a();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;Lo!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,Lo===e.charAt(n-1))return s("End of comment missing");var i=e.slice(2,n-2);return r+=2,o(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}}function p(){var e=a(),t=l(Fo);if(t){if(d(),!l(Ao))return s("property missing ':'");var n=l(Io),r=e({type:"declaration",property:Bo(t[0].replace(Mo,Lo)),value:n?Bo(n[0].replace(Mo,Lo)):Lo});return l(Oo),r}}return i.prototype.content=e,u(),function(){var e,t=[];for(c(t);e=p();)!1!==e&&(t.push(e),c(t));return t}()}));Do.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,Ro.default)(e),o="function"==typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,a=e.value;o?t(r,a,e):a&&((n=n||{})[r]=a)}})),n};var No={};Object.defineProperty(No,"__esModule",{value:!0}),No.camelCase=void 0;var $o=/^--[a-zA-Z0-9-]+$/,jo=/-([a-z])/g,zo=/^[^-]+$/,Wo=/^-(webkit|moz|ms|o|khtml)-/,Ho=/^-(ms)-/,Yo=function(e,t){return t.toUpperCase()},Uo=function(e,t){return"".concat(t,"-")};No.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||zo.test(e)||$o.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(Ho,Uo):e.replace(Wo,Uo)).replace(jo,Yo))};var qo=fr&&fr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(So,"__esModule",{value:!0});var Go=qo(Do),Ko=No;So.default=function(e,t){var n={};return e&&"string"==typeof e?((0,Go.default)(e,(function(e,r){e&&r&&(n[(0,Ko.camelCase)(e,t)]=r)})),n):n};var Xo=t,Zo=So.default,Qo=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);var Jo={reactCompat:!0};var ea=Xo.version.split(".")[0]>=16,ta=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var na={PRESERVE_CUSTOM_ATTRIBUTES:ea,ELEMENTS_WITH_NO_TEXT_CHILDREN:ta,isCustomComponent:function(e,t){return-1===e.indexOf("-")?t&&"string"==typeof t.is:!Qo.has(e)},setStyleProp:function(e,t){if(null!=e)try{t.style=Zo(e,Jo)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!ta.has(e.name)},returnFirstArg:function(e){return e}},ra=mo,oa=na,aa=["checked","value"],ia=["input","select","textarea"],sa={reset:!0,submit:!0},la=function(e,t){var n,r,o,a,i,s={},l=(e=e||{}).type&&sa[e.type];for(n in e)if(o=e[n],ra.isCustomAttribute(n))s[n]=o;else if(a=ua(r=n.toLowerCase()))switch(i=ra.getPropertyInfo(a),-1===aa.indexOf(a)||-1===ia.indexOf(t)||l||(a=ua("default"+r)),s[a]=o,i&&i.type){case ra.BOOLEAN:s[a]=!0;break;case ra.OVERLOADED_BOOLEAN:""===o&&(s[a]=!0)}else oa.PRESERVE_CUSTOM_ATTRIBUTES&&(s[n]=o);return oa.setStyleProp(e.style,s),s};function ua(e){return ra.possibleStandardNames[e]}var ca=t,da=la,pa=na,ha=pa.setStyleProp,ma=pa.canTextBeChildOfNode;function fa(e){return pa.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&pa.isCustomComponent(e.name,e.attribs)}var ga=function e(t,n){for(var r,o,a,i,s,l=(n=n||{}).library||ca,u=l.cloneElement,c=l.createElement,d=l.isValidElement,p=[],h="function"==typeof n.replace,m=n.transform||pa.returnFirstArg,f=n.trim,g=0,v=t.length;g<v;g++)if(r=t[g],h&&d(a=n.replace(r)))v>1&&(a=u(a,{key:a.key||g})),p.push(m(a,r,g));else if("text"!==r.type){switch(i=r.attribs,fa(r)?ha(i.style,i):i&&(i=da(i,r.name)),s=null,r.type){case"script":case"style":r.children[0]&&(i.dangerouslySetInnerHTML={__html:r.children[0].data});break;case"tag":"textarea"===r.name&&r.children[0]?i.defaultValue=r.children[0].data:r.children&&r.children.length&&(s=e(r.children,n));break;default:continue}v>1&&(i.key=g),p.push(m(c(r.name,i,s),r,g))}else{if((o=!r.data.trim().length)&&r.parent&&!ma(r.parent))continue;if(f&&o)continue;p.push(m(r.data,r,g))}return 1===p.length?p[0]:p},va=br,ba=zr.default,ya=la,xa=ga;ba="function"==typeof ba.default?ba.default:ba;var wa={lowerCaseAttributeNames:!1};function Ca(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:xa(ba(e,(t=t||{}).htmlparser2||wa),t)}Ca.domToReact=xa,Ca.htmlToDOM=ba,Ca.attributesToProps=ya,Ca.Comment=va.Comment,Ca.Element=va.Element,Ca.ProcessingInstruction=va.ProcessingInstruction,Ca.Text=va.Text;var ka=Ca;Ca.default=Ca;var Ea=gr(ka);Ea.domToReact,Ea.htmlToDOM,Ea.attributesToProps,Ea.Comment,Ea.Element,Ea.ProcessingInstruction,Ea.Text;var Sa={exports:{}};
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var a in e)t.call(e,a)&&e[a]&&(r=o(r,a));return r}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(Sa);var Da=gr(Sa.exports);var Ma="object"==typeof global&&global&&global.Object===Object&&global,Ta="object"==typeof self&&self&&self.Object===Object&&self,Pa=Ma||Ta||Function("return this")(),Fa=Pa.Symbol,Aa=Object.prototype,Ia=Aa.hasOwnProperty,Oa=Aa.toString,_a=Fa?Fa.toStringTag:void 0;var La=Object.prototype.toString;var Ba="[object Null]",Va="[object Undefined]",Ra=Fa?Fa.toStringTag:void 0;function Na(e){return null==e?void 0===e?Va:Ba:Ra&&Ra in Object(e)?function(e){var t=Ia.call(e,_a),n=e[_a];try{e[_a]=void 0;var r=!0}catch(e){}var o=Oa.call(e);return r&&(t?e[_a]=n:delete e[_a]),o}(e):function(e){return La.call(e)}(e)}function $a(e){return null!=e&&"object"==typeof e}var ja="[object Symbol]";function za(e){return"symbol"==typeof e||$a(e)&&Na(e)==ja}var Wa=Array.isArray,Ha=1/0,Ya=Fa?Fa.prototype:void 0,Ua=Ya?Ya.toString:void 0;function qa(e){if("string"==typeof e)return e;if(Wa(e))return function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}(e,qa)+"";if(za(e))return Ua?Ua.call(e):"";var t=e+"";return"0"==t&&1/e==-Ha?"-0":t}var Ga=/\s/;var Ka=/^\s+/;function Xa(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&Ga.test(e.charAt(t)););return t}(e)+1).replace(Ka,""):e}function Za(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var Qa=NaN,Ja=/^[-+]0x[0-9a-f]+$/i,ei=/^0b[01]+$/i,ti=/^0o[0-7]+$/i,ni=parseInt;function ri(e){if("number"==typeof e)return e;if(za(e))return Qa;if(Za(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Za(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xa(e);var n=ei.test(e);return n||ti.test(e)?ni(e.slice(2),n?2:8):Ja.test(e)?Qa:+e}function oi(e){return e}var ai="[object AsyncFunction]",ii="[object Function]",si="[object GeneratorFunction]",li="[object Proxy]";function ui(e){if(!Za(e))return!1;var t=Na(e);return t==ii||t==si||t==ai||t==li}var ci,di=Pa["__core-js_shared__"],pi=(ci=/[^.]+$/.exec(di&&di.keys&&di.keys.IE_PROTO||""))?"Symbol(src)_1."+ci:"";var hi=Function.prototype.toString;function mi(e){if(null!=e){try{return hi.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var fi=/^\[object .+?Constructor\]$/,gi=Function.prototype,vi=Object.prototype,bi=gi.toString,yi=vi.hasOwnProperty,xi=RegExp("^"+bi.call(yi).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wi(e){return!(!Za(e)||(t=e,pi&&pi in t))&&(ui(e)?xi:fi).test(mi(e));var t}function Ci(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return wi(n)?n:void 0}var ki=Ci(Pa,"WeakMap"),Ei=function(){try{var e=Ci(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Si=Ei,Di=9007199254740991,Mi=/^(?:0|[1-9]\d*)$/;function Ti(e,t){var n=typeof e;return!!(t=null==t?Di:t)&&("number"==n||"symbol"!=n&&Mi.test(e))&&e>-1&&e%1==0&&e<t}function Pi(e,t){return e===t||e!=e&&t!=t}var Fi=9007199254740991;function Ai(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Fi}function Ii(e){return null!=e&&Ai(e.length)&&!ui(e)}var Oi=Object.prototype;function _i(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Oi)}function Li(e){return $a(e)&&"[object Arguments]"==Na(e)}var Bi=Object.prototype,Vi=Bi.hasOwnProperty,Ri=Bi.propertyIsEnumerable,Ni=Li(function(){return arguments}())?Li:function(e){return $a(e)&&Vi.call(e,"callee")&&!Ri.call(e,"callee")};var $i="object"==typeof exports&&exports&&!exports.nodeType&&exports,ji=$i&&"object"==typeof module&&module&&!module.nodeType&&module,zi=ji&&ji.exports===$i?Pa.Buffer:void 0,Wi=(zi?zi.isBuffer:void 0)||function(){return!1},Hi={};Hi["[object Float32Array]"]=Hi["[object Float64Array]"]=Hi["[object Int8Array]"]=Hi["[object Int16Array]"]=Hi["[object Int32Array]"]=Hi["[object Uint8Array]"]=Hi["[object Uint8ClampedArray]"]=Hi["[object Uint16Array]"]=Hi["[object Uint32Array]"]=!0,Hi["[object Arguments]"]=Hi["[object Array]"]=Hi["[object ArrayBuffer]"]=Hi["[object Boolean]"]=Hi["[object DataView]"]=Hi["[object Date]"]=Hi["[object Error]"]=Hi["[object Function]"]=Hi["[object Map]"]=Hi["[object Number]"]=Hi["[object Object]"]=Hi["[object RegExp]"]=Hi["[object Set]"]=Hi["[object String]"]=Hi["[object WeakMap]"]=!1;var Yi,Ui="object"==typeof exports&&exports&&!exports.nodeType&&exports,qi=Ui&&"object"==typeof module&&module&&!module.nodeType&&module,Gi=qi&&qi.exports===Ui&&Ma.process,Ki=function(){try{var e=qi&&qi.require&&qi.require("util").types;return e||Gi&&Gi.binding&&Gi.binding("util")}catch(e){}}(),Xi=Ki&&Ki.isTypedArray,Zi=Xi?(Yi=Xi,function(e){return Yi(e)}):function(e){return $a(e)&&Ai(e.length)&&!!Hi[Na(e)]},Qi=Object.prototype.hasOwnProperty;function Ji(e,t){var n=Wa(e),r=!n&&Ni(e),o=!n&&!r&&Wi(e),a=!n&&!r&&!o&&Zi(e),i=n||r||o||a,s=i?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var u in e)!t&&!Qi.call(e,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Ti(u,l))||s.push(u);return s}var es=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),ts=es,ns=Object.prototype.hasOwnProperty;function rs(e){if(!_i(e))return ts(e);var t=[];for(var n in Object(e))ns.call(e,n)&&"constructor"!=n&&t.push(n);return t}function os(e){return Ii(e)?Ji(e):rs(e)}var as=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,is=/^\w*$/;function ss(e,t){if(Wa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!za(e))||(is.test(e)||!as.test(e)||null!=t&&e in Object(t))}var ls=Ci(Object,"create");var us=Object.prototype.hasOwnProperty;var cs=Object.prototype.hasOwnProperty;function ds(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ps(e,t){for(var n=e.length;n--;)if(Pi(e[n][0],t))return n;return-1}ds.prototype.clear=function(){this.__data__=ls?ls(null):{},this.size=0},ds.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ds.prototype.get=function(e){var t=this.__data__;if(ls){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return us.call(t,e)?t[e]:void 0},ds.prototype.has=function(e){var t=this.__data__;return ls?void 0!==t[e]:cs.call(t,e)},ds.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ls&&void 0===t?"__lodash_hash_undefined__":t,this};var hs=Array.prototype.splice;function ms(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ms.prototype.clear=function(){this.__data__=[],this.size=0},ms.prototype.delete=function(e){var t=this.__data__,n=ps(t,e);return!(n<0)&&(n==t.length-1?t.pop():hs.call(t,n,1),--this.size,!0)},ms.prototype.get=function(e){var t=this.__data__,n=ps(t,e);return n<0?void 0:t[n][1]},ms.prototype.has=function(e){return ps(this.__data__,e)>-1},ms.prototype.set=function(e,t){var n=this.__data__,r=ps(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var fs=Ci(Pa,"Map");function gs(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function vs(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vs.prototype.clear=function(){this.size=0,this.__data__={hash:new ds,map:new(fs||ms),string:new ds}},vs.prototype.delete=function(e){var t=gs(this,e).delete(e);return this.size-=t?1:0,t},vs.prototype.get=function(e){return gs(this,e).get(e)},vs.prototype.has=function(e){return gs(this,e).has(e)},vs.prototype.set=function(e,t){var n=gs(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};var bs="Expected a function";function ys(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(bs);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(ys.Cache||vs),n}ys.Cache=vs;var xs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ws=/\\(\\)?/g,Cs=function(e){var t=ys(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(xs,(function(e,n,r,o){t.push(r?o.replace(ws,"$1"):n||e)})),t})),ks=Cs;function Es(e,t){return Wa(e)?e:ss(e,t)?[e]:ks(function(e){return null==e?"":qa(e)}(e))}var Ss=1/0;function Ds(e){if("string"==typeof e||za(e))return e;var t=e+"";return"0"==t&&1/e==-Ss?"-0":t}function Ms(e,t){for(var n=0,r=(t=Es(t,e)).length;null!=e&&n<r;)e=e[Ds(t[n++])];return n&&n==r?e:void 0}function Ts(e,t,n){var r=null==e?void 0:Ms(e,t);return void 0===r?n:r}function Ps(e){var t=this.__data__=new ms(e);this.size=t.size}Ps.prototype.clear=function(){this.__data__=new ms,this.size=0},Ps.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Ps.prototype.get=function(e){return this.__data__.get(e)},Ps.prototype.has=function(e){return this.__data__.has(e)},Ps.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ms){var r=n.__data__;if(!fs||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new vs(r)}return n.set(e,t),this.size=n.size,this};var Fs=Object.prototype.propertyIsEnumerable,As=Object.getOwnPropertySymbols,Is=As?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}(As(e),(function(t){ret